Hi all,

I am porting my rsyslog project to the Solaris Sunstudio compiler (no
fun, I know...).

I have a problem with AC_CHECK_HEADERS. When it calls the
preprocessor, it ignores CFLAGS. However, the Sunstudio compiler needs
-std=c99 even when the preprocessor is called and if it is missing,
things do not work out.

I know I can use the optional forth argument to skip the preprocessor
call, but this does not sound like a really clean solution (more kind
of a work-around). I am searching for a way to make autoconf call the
preprocessor with a set of flags I can specify. Is this possible?

For your reference, here is a failed build:

http://build.rsyslog.com:8010/builders/rsyslog%20solaris11x64%20rsyslog/builds/426/steps/shell_3/logs/config.log

A problem line is
""/usr/include/sys/feature_tests.h", line 358: #error: "Compiler or
options invalid; UNIX 03 and POSIX.1-2001 applications require the use
of c99""

Searching for "Compiler or options invalid" brings up the details.
There are multiple instances.

TIA,
Rainer

_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to