From 3ebb2ce607be7ad194f399e6901d34fd9f1c4bdb Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 29 May 2009 00:07:30 +0200 Subject: autogen.sh: fix errors with new autotools. The following errors occurred when running ./autogen.sh : $ ./autogen.sh + aclocal configure.ac:18: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS ../../lib/autoconf/specific.m4:386: AC_USE_SYSTEM_EXTENSIONS is expanded from... ../../lib/autoconf/specific.m4:332: AC_GNU_SOURCE is expanded from... configure.ac:18: the top level configure.ac:18: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS configure.ac:19: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS ../../lib/autoconf/specific.m4:459: AC_MINIX is expanded from... configure.ac:19: the top level configure.ac:19: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS and so on for autoheader and friends. According to the autotools docs, the proper way to handle this is to just call AC_USE_SYSTEM_EXTENSIONS. Michael --- configure.ac | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 56f2444..540d0ba 100644 --- a/configure.ac +++ b/configure.ac @@ -14,9 +14,7 @@ AH_TEMPLATE([TARGET_SYSTEM], AC_DEFINE_UNQUOTED(TARGET_SYSTEM, ["$target"]) dnl Check if we're compiling on a weird platform :) -AC_AIX -AC_GNU_SOURCE -AC_MINIX +AC_USE_SYSTEM_EXTENSIONS dnl dnl Command line options -- cgit v1.2.3