Re: GCC support for STDC constructs

2006-10-12 Thread Paul Eggert
Brian Dessent <[EMAIL PROTECTED]> writes: > Also, consider posting to the autoconf list (which I added to CC), as > this doesn't seem to necessarily have anything to do with gcc so much as > autoconf. I just now successfully configured GNU coreutils 6.3 using GCC 2.95.3 on Solaris 9 (32-bit sparc

Re: GCC support for STDC constructs

2006-10-12 Thread Brian Dessent
Prabhjeet Singh Grover wrote: > I have set CC to 'gcc' and CFLAGS to '-lsocket'. Tried setting CC to > 'gcc -ansi' also but without success. I am attaching the config.log file > as I was unable to figure out the issue. CFLAGS="-lsocket" seems quite wrong. That belongs in LDFLAGS not CFLAGS (and

Re: GCC support for STDC constructs

2006-10-12 Thread Brian Dessent
Brian Dessent wrote: > CFLAGS="-lsocket" seems quite wrong. That belongs in LDFLAGS not CFLAGS Sorry, I meant LIBS not LDFLAGS. LDFLAGS is the place for -L/path/ but -lfoo goes in LIBS. Brian ___ Autoconf mailing list Autoconf@gnu.org http://lists.

GCC support for STDC constructs

2006-10-12 Thread Prabhjeet Singh Grover
Hi, I have gcc 2.95.2 installed on Solaris 9 platform. I am installing OpenLDAP 2.3.27 (latest) on the same machine and have installed all the required pre-requisites for that. Now while running the ./configure command, I am getting an error "configure: error: OpenLDAP requires compiler to suppor

Re: unexpected editing of argument to AH_BOTTOM

2006-10-12 Thread Paul Eggert
"John W. Eaton" <[EMAIL PROTECTED]> writes: > I'm wondering whether this behavior is a bug or feature. I'd say it's a bug. Fixing it coherently may not be that easy, though. ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/list

unexpected editing of argument to AH_BOTTOM

2006-10-12 Thread John W. Eaton
I'm using autoconf 2.60a. Given the following configure script, AC_INIT AC_CONFIG_HEADER(config.h) AH_BOTTOM([ #define FOO #if defined (__LOSER_SYSTEM__) #undef FOO #endif ]) AC_OUTPUT running autoheader autoconf ./configure produces the following config.h file: /* c

Re: unexpected editing of argument to AH_BOTTOM

2006-10-12 Thread Andreas Schwab
"John W. Eaton" <[EMAIL PROTECTED]> writes: > Note that the #undef is commented out. The documentation for > AH_BOTTOM says > > ? Macro: AH_BOTTOM (text) > > Include text at the bottom of the header template file. > > so I wasn't expecting the text to be modified. #undef is special in a