Make sure -DNO_GCC_PRAGMA is in wx-config output regardless of the reason.

Mostly reverts configure.in,1.916,1.917 and uses a simpler method.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2005-01-20 16:10:17 +00:00
parent 8ea92b4d77
commit c08ebc6275
2 changed files with 13 additions and 20 deletions

14
configure vendored
View File

@@ -41211,6 +41211,11 @@ else
fi
GCC_PRAGMA_FLAGS=""
PCH_FLAGS=""
if test $GCC_PCH = 1 ; then
GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
PCH_FLAGS="-DWX_PRECOMP"
else
case "${host}" in
powerpc-*-darwin* )
GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
@@ -41330,16 +41335,7 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
;;
esac
PCH_FLAGS=""
if test $GCC_PCH = 1 ; then
if test "x$GCC_PRAGMA_FLAGS" = "x"; then
PCH_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
else
PCH_FLAGS="-DWX_PRECOMP"
fi
fi
CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"