From b7f937bdbbb419c85c2fe2682dc48aa247b621fc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Sep 2006 10:50:33 +0000 Subject: r18216: a special override for the broken HP-UX C compiler. It does support C99 initialisers without any flags, but if you don't give it -AC99 then it dies when those initialisers are very complex (This used to be commit 46f72d7e3f285d08a043b4e8551f22c4dffe65e5) --- source4/lib/replace/libreplace_macros.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4') 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 -- cgit