diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/replace/libreplace_macros.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_macros.m4 b/source4/lib/replace/libreplace_macros.m4 index 9cf06c1a37..a50104cd1c 100644 --- a/source4/lib/replace/libreplace_macros.m4 +++ b/source4/lib/replace/libreplace_macros.m4 @@ -37,6 +37,16 @@ if test x"$c99_init" = x"no"; then ], [AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)]) fi + +if test "`uname`" = "HP-UX"; then + if test "$ac_cv_c_compiler_gnu" = no; then + # special override for broken HP-UX compiler - I can't find a way to test + # this properly (its a compiler bug) + CFLAGS="$CFLAGS -AC99"; + c99_init=yes; + fi +fi + if test x"$c99_init" = x"yes"; then saved_CFLAGS="" $1 |