I've written about it before, here's the patch. It changes AC_PROG_CC_STDC to try the `-std' flag rather than `-std1' (for OSF or Ultrix) because the latter is kind of like 'gcc -ansi' (i.e., terminally strict). Treat with caution, I don't actually have one of those, but that's what we're using in our project and it's what the man page says. Btw., it would be nice in general if that list of tested options was somehow user extensible. I'm very happy about the new one-argument forms of AC_PROG_CC/CXX (although it would be useful to also have a way to get the default list *plus* my list), so this ought to be possible here as well. -- Peter Eisentraut Sernanders väg 10:115 [EMAIL PROTECTED] 75262 Uppsala http://yi.org/peter-e/ Sweden
*** aclang.m4.orig Tue Apr 18 23:38:16 2000 --- aclang.m4 Tue Apr 18 23:41:15 2000 *************** AC_DEFUN(AC_PROG_CC_STDC, *** 840,852 **** [ac_cv_prog_cc_stdc=no ac_save_CC=$CC # Don't try gcc -ansi; that turns off useful extensions and ! # breaks some systems' header files. # AIX -qlanglvl=ansi ! # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ ! for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" AC_TRY_COMPILE( --- 840,853 ---- [ac_cv_prog_cc_stdc=no ac_save_CC=$CC # Don't try gcc -ansi; that turns off useful extensions and ! # breaks some systems' header files. Similarly for -std1 ! # on OSF/1. # AIX -qlanglvl=ansi ! # Ultrix and OSF/1 -std # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ ! for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" AC_TRY_COMPILE(