From f59c18531769a5b8e9ea7791156b03ccaa5203fd Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Mon, 18 Oct 2010 14:15:12 +0200 Subject: [PATCH] added configure.in and Doxyfile template --- configure.in | 55 +++++++++++++++++++++++++++++++++++ doc/{Doxyfile => Doxyfile.in} | 0 2 files changed, 55 insertions(+) create mode 100644 configure.in rename doc/{Doxyfile => Doxyfile.in} (100%) diff --git a/configure.in b/configure.in new file mode 100644 index 00000000..719acbe7 --- /dev/null +++ b/configure.in @@ -0,0 +1,55 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. +# +# Copyright (C) 2010 Olaf Bergmann +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +AC_PREREQ([2.67]) +AC_INIT([libcoap], [0.05]) +AC_CONFIG_SRCDIR([coap.h]) + +# Checks for programs. +AC_PROG_MAKE_SET +AC_PROG_CC +AC_PROG_RANLIB +AC_PATH_PROG(DOXYGEN, doxygen, [:]) + +AC_C_BIGENDIAN + +# Checks for libraries. +AC_CHECK_LIB([coap], [coap_new_pdu]) + +AC_SEARCH_LIBS([gethostbyname], [nsl]) +AC_SEARCH_LIBS([socket], [socket]) + +# Checks for header files. +AC_CHECK_HEADERS([arpa/inet.h limits.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_SIZE_T +AC_TYPE_SSIZE_T + +# Checks for library functions. +AC_FUNC_MALLOC +AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo]) + +AC_CONFIG_HEADERS([config.h]) + +AC_CONFIG_FILES([Makefile + doc/Makefile + doc/Doxyfile + examples/Makefile]) +AC_OUTPUT diff --git a/doc/Doxyfile b/doc/Doxyfile.in similarity index 100% rename from doc/Doxyfile rename to doc/Doxyfile.in