diff options
Diffstat (limited to 'epan/configure.in')
-rw-r--r-- | epan/configure.in | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/epan/configure.in b/epan/configure.in index 872061c11b..460e9a4fee 100644 --- a/epan/configure.in +++ b/epan/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.14 2001/10/28 01:27:59 guy Exp $ +# $Id: configure.in,v 1.15 2001/12/07 22:56:57 guy Exp $ dnl dnl Process this file with autoconf 2.13 or later to produce a dnl configure script; 2.12 doesn't generate a "configure" script that @@ -57,6 +57,17 @@ then CFLAGS="-Ae +O2 $CFLAGS" AC_MSG_RESULT(HP ANSI C compiler - added -Ae +O2) ;; + darwin*) + # + # It may be called "cc", but it's really a GCC derivative + # with a problematic special precompiler and precompiled + # headers; turn off the special precompiler, as some + # apparently-legal code won't compile with its precompiled + # headers. + # + CFLAGS="-no-cpp-precomp $CFLAGS" + AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp) + ;; *) AC_MSG_RESULT(none needed) ;; @@ -64,8 +75,11 @@ then else case "$host_os" in darwin*) - CFLAGS="-traditional-cpp $CFLAGS" - AC_MSG_RESULT(Apple cc compiler - added -traditional-cpp) + # + # See comments above about Apple's lovely C compiler. + # + CFLAGS="-no-cpp-precomp $CFLAGS" + AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp) ;; *) AC_MSG_RESULT(none needed) |