Stepan Kasal wrote:
> There was one remaining problem: AC_GNU_SOURCE has to be called early in
> configure.ac.
> ...
@@ -4,6 +4,7 @@
 
 AC_PREREQ(2.57)
 AC_INIT(regexp, 1.0, clisp-list)
+AC_GNU_SOURCE
 AC_CONFIG_SRCDIR(regexp.lisp)
 AC_CONFIG_AUX_DIR(../../src/build-aux)
 AC_CONFIG_HEADERS(config.h)

That might be a little too early, because AC_GNU_SOURCE emits a definition
into the config header, but before AC_CONFIG_HEADERS it doesn't know the
file name... I would put it after the determination of CC and CPP, but
before all AC_CHECK_HEADER and AC_CHECK_FUNC tests:

 AC_PREREQ(2.57)
 AC_INIT(regexp, 1.0, clisp-list)
 AC_CONFIG_SRCDIR(regexp.lisp)
 AC_CONFIG_AUX_DIR(../../src/build-aux)
 AC_CONFIG_HEADERS(config.h)
 
 AC_MSG_NOTICE([* Regexp (Checks)])
 AC_PROG_CC
 AC_PROG_CPP
 AC_AIX
+AC_GNU_SOURCE
 AC_HEADER_STDC
 AC_CHECK_HEADERS(string.h sys/types.h)


Bruno



_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to