git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22782
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
AC_MSG_CHECKING([if the compiler supports precompiled headers])
AC_TRY_COMPILE([],
[
AC_MSG_CHECKING([if the compiler supports precompiled headers])
AC_TRY_COMPILE([],
[
- #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) || \
- (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)
- #error "no pch support"
+ #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
+ #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"
if test "$wxUSE_EXPAT" != "no"; then
if test "$wxUSE_EXPAT" != "no"; then
cat >>confdefs.h <<\_ACEOF
#define wxUSE_EXPAT 1
_ACEOF
cat >>confdefs.h <<\_ACEOF
#define wxUSE_EXPAT 1
_ACEOF
# Check whether --enable-precomp-headers or --disable-precomp-headers was given.
if test "${enable_precomp_headers+set}" = set; then
enableval="$enable_precomp_headers"
# Check whether --enable-precomp-headers or --disable-precomp-headers was given.
if test "${enable_precomp_headers+set}" = set; then
enableval="$enable_precomp_headers"