From 704e0fdd4aea54665d5984e8564794c291388af6 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Fri, 8 Jul 2011 22:58:38 +0200 Subject: [PATCH] build-sys: autotools configure.ac update Add recent changes to autotools header, function and compiler capability checks. The patch also adds to .gitignore autoscan outputs. Signed-off-by: Sami Kerola --- .gitignore | 2 ++ configure.ac | 22 ++++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b663d88..5939e9c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ aclocal.m4 autom4te.cache/ +autoscan.log config.guess config.h config.h.in @@ -8,6 +9,7 @@ config.log config.status config.sub configure +configure.scan contrib/Makefile contrib/Makefile.in depcomp diff --git a/configure.ac b/configure.ac index 0894f27..89d285e 100644 --- a/configure.ac +++ b/configure.ac @@ -23,24 +23,38 @@ AC_PROG_LIBTOOL LT_INIT # Checks for header files. - -AC_CHECK_HEADERS([arpa/inet.h \ +AC_CHECK_HEADERS([\ + arpa/inet.h \ fcntl.h \ + langinfo.h \ libintl.h \ netinet/in.h \ + stddef.h \ stdlib.h \ string.h \ strings.h \ sys/socket.h \ - unistd.h]) + unistd.h \ +]) # Checks for typedefs, structures, and compiler characteristics. +AC_C_INLINE AC_HEADER_STDBOOL AC_TYPE_SIZE_T +AC_TYPE_UINT32_T # Checks for library functions. AC_FUNC_MALLOC -AC_CHECK_FUNCS([inet_ntoa memset strerror strstr strdup]) +AC_FUNC_REALLOC +AC_CHECK_FUNCS([\ + inet_ntoa \ + memset \ + nl_langinfo \ + strdup \ + strerror \ + strrchr \ + strstr \ +]) AC_CONFIG_FILES([Makefile man/Makefile