precompiled headers check accounts for Apple compiler now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-08-12 21:42:18 +00:00
parent 4fd0fc66a7
commit e06468e89b
2 changed files with 13 additions and 4 deletions

13
aclocal.m4 vendored
View File

@@ -1653,9 +1653,16 @@ AC_DEFUN(AC_BAKEFILE_PRECOMP_HEADERS,
AC_MSG_CHECKING([if the compiler supports precompiled headers]) AC_MSG_CHECKING([if the compiler supports precompiled headers])
AC_TRY_COMPILE([], AC_TRY_COMPILE([],
[ [
#if !defined(__GNUC__) || !defined(__GNUC_MINOR__) || \ #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
(__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) #error "no pch support"
#error "no pch support" #endif
#if (__GNUC__ < 3)
#error "no pch support"
#endif
#if (__GNUC__ == 3) && \
((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
#error "no pch support"
#endif #endif
], ],
[ [

4
configure vendored
View File

@@ -19289,7 +19289,7 @@ fi
if test "$wxUSE_EXPAT" != "no"; then if test "$wxUSE_EXPAT" != "no"; then
wxUSE_XML=1 wxUSE_XML=yes
cat >>confdefs.h <<\_ACEOF cat >>confdefs.h <<\_ACEOF
#define wxUSE_EXPAT 1 #define wxUSE_EXPAT 1
_ACEOF _ACEOF
@@ -34880,6 +34880,8 @@ fi
# Check whether --enable-precomp-headers or --disable-precomp-headers was given. # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
if test "${enable_precomp_headers+set}" = set; then if test "${enable_precomp_headers+set}" = set; then
enableval="$enable_precomp_headers" enableval="$enable_precomp_headers"