diff --git a/configure b/configure index 565b4672c0..c29078fe4b 100755 --- a/configure +++ b/configure @@ -35454,10 +35454,13 @@ else powerpc-*-darwin* ) CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" ;; - *) - ;; esac fi +case "${host}" in + powerpc-*-darwin* ) + CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX" + ;; +esac SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" diff --git a/configure.in b/configure.in index 1c445a06e2..ed2a157a4d 100644 --- a/configure.in +++ b/configure.in @@ -5661,10 +5661,16 @@ else dnl pragmas: CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" ;; - *) - ;; esac fi +dnl We have to output NO_GCC_PRAGMA with wx-config on Apple, too: +case "${host}" in + powerpc-*-darwin* ) + dnl Some Apple's GCC version are broken and can't handle the + dnl pragmas: + CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX" + ;; +esac dnl for convenience, sort the samples in alphabetical order