By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,676 Members | 2,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,676 IT Pros & Developers. It's quick & easy.

Minor problem with configure (2.4.4)

P: n/a
configure expands
AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from
IEEE Stds 1003.1-2001)

to

#define _POSIX_C_SOURCE 200112L

that causes problems because _POSIX_C_SOURCE is defined by system
headers and I get hideous
warnings during compilation.

I tried to fix it by adding AC_UNDEFINE(_POSIX_C_SOURCE);
before AC_DEFINE but autoconf 2.59 won't take it:

configure.in:273: error: possibly undefined macro: AC_UNDEFINE
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.

Ideas?

Dec 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

sn****@gmail.com wrote:
configure expands
AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from
IEEE Stds 1003.1-2001)

to

#define _POSIX_C_SOURCE 200112L

that causes problems because _POSIX_C_SOURCE is defined by system
headers and I get hideous
warnings during compilation.

I tried to fix it by adding AC_UNDEFINE(_POSIX_C_SOURCE);
before AC_DEFINE but autoconf 2.59 won't take it:

configure.in:273: error: possibly undefined macro: AC_UNDEFINE
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.

Ideas?
It looks like AC_DEFINE is #define'd but AC_UNDEFINE isn't.

Try:

#undef _POSIX_C_SOURCE

instead.

Dec 29 '06 #2

P: n/a
sn****@gmail.com schrieb:
configure.in:273: error: possibly undefined macro: AC_UNDEFINE
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.

Ideas?
RTFM (autoconf documentation, in this case). There is no AC_UNDEFINE.

Regards,
Martin
Dec 30 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.