bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] Re: error: possibly undefined macro: AC_CHECK_HEADERS_O


From: Bruno Haible
Subject: Re: [bug-gnulib] Re: error: possibly undefined macro: AC_CHECK_HEADERS_ONCE
Date: Thu, 25 Aug 2005 17:06:55 +0200
User-agent: KMail/1.5

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]