Hello Raphael, On Tue, Sep 20, 2011 at 10:56:20PM +0200, Raphael Bircher wrote: > Hi at all > > In the build today I first run autoconf. There I got same output > wich I don't know to inteprate. Maybe sameone who has experience > with autoconf take a look on it. Here is the output: > > automake: no `Makefile.am' found for any configure output > server3:main server3$ autoconf > configure.in:2077: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call > detected in body > ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... > ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from... > ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... > ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... > ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from... > acinclude.m4:15: AX_FUNC_WHICH_GETSPNAM_R is expanded from... > configure.in:2077: the top level
this due to changes in recent autoconf. In acinclude.m4, the call to AC_LANG_PROGRAM must be quoted. Try the attached patch, for me it removed the warning. Regards, -- Ariel Constenla-Haile La Plata, Argentina
configure.in:2077: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from... ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from... acinclude.m4:15: AX_FUNC_WHICH_GETSPNAM_R is expanded from... configure.in:2077: the top level
diff --git a/acinclude.m4 b/acinclude.m4 index 71f0154..ed60f4f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -33,7 +33,7 @@ ac_cv_func_which_getspnam_r=unknown # assuming an implicit prototype. In which case, we're out of luck. # AC_COMPILE_IFELSE( - AC_LANG_PROGRAM( + [AC_LANG_PROGRAM( [[ #include <sys/types.h> #include <shadow.h> @@ -41,7 +41,7 @@ AC_COMPILE_IFELSE( [[ const char *name = "myname"; getspnam_r(name) /* ; */ - ]]), + ]])], ac_cv_func_which_getspnam_r=no) # @@ -51,7 +51,7 @@ AC_COMPILE_IFELSE( if test "$ac_cv_func_which_getspnam_r" = "unknown"; then AC_COMPILE_IFELSE( - AC_LANG_PROGRAM( + [AC_LANG_PROGRAM( [[ #include <sys/types.h> #include <shadow.h> @@ -61,7 +61,7 @@ AC_COMPILE_IFELSE( struct spwd spwdStruct; const char *name = "myname"; getspnam_r(name, &spwdStruct, buffer, sizeof buffer, 0) /* ; */ - ]]), + ]])], ac_cv_func_which_getspnam_r=five) fi @@ -73,7 +73,7 @@ fi if test "$ac_cv_func_which_getspnam_r" = "unknown"; then AC_COMPILE_IFELSE( - AC_LANG_PROGRAM( + [AC_LANG_PROGRAM( [[ #include <sys/types.h> #include <shadow.h> @@ -83,7 +83,7 @@ AC_COMPILE_IFELSE( struct spwd spwdStruct; const char *name = "myname"; getspnam_r(name, &spwdStruct, buffer, sizeof buffer) /* ; */ - ]]), + ]])], ac_cv_func_which_getspnam_r=four) fi
pgpEBfC3YdkuX.pgp
Description: PGP signature