diff options
author | Patrik Nyblom <[email protected]> | 2011-11-18 20:48:37 +0100 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2011-11-18 20:48:50 +0100 |
commit | de1dc9682e8c6c56e03d5deb20019ff98d0b569a (patch) | |
tree | 589fe4242e9a9564eaf7419188ed10e461004f85 /erts/configure.in | |
parent | 49052a3d7422e0e776a8df83fa3d8280686cab0f (diff) | |
parent | 8bbf9f0fdaf572af53892e14c282e0e73a5eea13 (diff) | |
download | otp-de1dc9682e8c6c56e03d5deb20019ff98d0b569a.tar.gz otp-de1dc9682e8c6c56e03d5deb20019ff98d0b569a.tar.bz2 otp-de1dc9682e8c6c56e03d5deb20019ff98d0b569a.zip |
Merge branch 'pan/osx_gcc_fixes'
* pan/osx_gcc_fixes:
Fix typo in erts/configure.in
Make OTP build w/alternative gcc on MacOS Lion
OTP-9712
Diffstat (limited to 'erts/configure.in')
-rw-r--r-- | erts/configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/erts/configure.in b/erts/configure.in index 8f30ae3850..e3eb6034e6 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -490,7 +490,19 @@ CFLAG_RUNTIME_LIBRARY_PATH="-Wl,-R" case $host_os in darwin*) CFLAG_RUNTIME_LIBRARY_PATH= - CFLAGS="$CFLAGS -no-cpp-precomp" + AC_TRY_COMPILE([],[ + #if __GNUC__ >= 4 + ; + #else + #error old or no gcc + #endif + ], + gcc_need_no_cpp_precomp=no, + gcc_need_no_cpp_precomp=yes) + + if test x$gcc_need_no_cpp_precomp = xyes; then + CFLAGS="$CFLAGS -no-cpp-precomp" + fi ;; win32) CFLAG_RUNTIME_LIBRARY_PATH= |