diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-09-08 18:42:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-09-08 18:42:21 +0000 |
commit | 87d4f06b2f690c2469a32d7322d4d29546052c7d (patch) | |
tree | 5db1ab4dc0a564fdc995d750c9370ebf2fddd844 /configure.ac | |
parent | c16ff99f815047f7a3af6449938428707f81eded (diff) | |
download | wireshark-87d4f06b2f690c2469a32d7322d4d29546052c7d.tar.gz wireshark-87d4f06b2f690c2469a32d7322d4d29546052c7d.tar.bz2 wireshark-87d4f06b2f690c2469a32d7322d4d29546052c7d.zip |
At least with the Shiny New llvm-gcc in Xcode 4.4.1, there's no need to
add -no-cpp-precomp; I think the way the compiler handled precompiled
headers changed at some point. Let's stop adding it; that would fix bug
5878.
svn path=/trunk/; revision=44816
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/configure.ac b/configure.ac index 968eaa0811..e9c3d22db2 100644 --- a/configure.ac +++ b/configure.ac @@ -499,28 +499,6 @@ if test "x$GCC" = "xyes" ; then CXXFLAGS="$CXXFLAGS -Wno-return-type" AC_MSG_RESULT(GCC on Solaris - added -Wno-return-type -DFUNCPROTO=15) ;; - darwin*) - # - # See comments above about Apple's lovely C compiler. - # - # NOTE: to AC_PROG_CC, "GCC" means "any compiler that - # defines __GNUC__"; clang defines __GNUC__, so that - # means we think clang is GCC. - # - # clang whines about -no-cpp-precomp being unused - # so we check whether this is really clang, and - # only add -no-cpp-precomp if it's not. - # - if test "x$CC" != "xclang" ; then - CFLAGS="-no-cpp-precomp $CFLAGS" - AC_MSG_RESULT(Apple GCC - added -no-cpp-precomp) - else - # - # Clang, clang, clang went the trolley.... - # - AC_MSG_RESULT(none needed) - fi - ;; *) AC_MSG_RESULT(none needed) ;; @@ -544,32 +522,6 @@ else CXXFLAGS="+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. - # - # On the other hand, if it's called "clang", it's not a - # GCC derivative, and it whines if you pass it - # -no-cpp-precomp. - # - # XXX - is there any version of autoconf we support - # where it uses another way to decide if the compiler - # is GCC or not? - # - if test "x$CC" != "xclang" ; then - CFLAGS="-no-cpp-precomp $CFLAGS" - AC_MSG_RESULT(Apple CC - added -no-cpp-precomp) - else - # - # Clang, clang, clang went the trolley.... - # - AC_MSG_RESULT(none needed) - fi - ;; *) AC_MSG_RESULT(none needed) ;; |