]> git.saurik.com Git - wxWidgets.git/blobdiff - configure
wxLaunchDefaultBrowser() now supports wxBROWSER_NEW_WINDOW flag (and it actually...
[wxWidgets.git] / configure
index 48b3d7795377ef7b0ced26b14792cde2f64cb2ca..4bbb1e9b931926578494e0cd8a339cb97fd3d40a 100755 (executable)
--- a/configure
+++ b/configure
@@ -22533,17 +22533,20 @@ SEARCH_INCLUDE="\
 
 echo "$as_me:$LINENO: checking for libraries directory" >&5
 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
-if test "${wx_cv_std_libpath+set}" = set; then
+
+case "${host}" in
+    *-*-irix6* )
+        if test "${wx_cv_std_libpath+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
 
-        for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
-            for e in a so sl dylib dll.a; do
-                libc="$d/libc.$e"
-                if test -f $libc; then
-                    save_LIBS="$LIBS"
-                    LIBS="$libc"
-                    cat >conftest.$ac_ext <<_ACEOF
+                for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
+                    for e in a so sl dylib dll.a; do
+                        libc="$d/libc.$e"
+                        if test -f $libc; then
+                            save_LIBS="$LIBS"
+                            LIBS="$libc"
+                            cat >conftest.$ac_ext <<_ACEOF
 int main() { return 0; }
 _ACEOF
 rm -f conftest.$ac_objext conftest$ac_exeext
@@ -22575,23 +22578,48 @@ sed 's/^/| /' conftest.$ac_ext >&5
 fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
-                    LIBS="$save_LIBS"
-                    if test "x$wx_cv_std_libpath" != "x"; then
-                        break 2
-                    fi
+                            LIBS="$save_LIBS"
+                            if test "x$wx_cv_std_libpath" != "x"; then
+                                break 2
+                            fi
+                        fi
+                    done
+                done
+                if test "x$wx_cv_std_libpath" = "x"; then
+                    wx_cv_std_libpath="lib"
                 fi
-            done
-        done
-        if test "x$wx_cv_std_libpath" = "x"; then
+
+
+fi
+
+        ;;
+
+    *-*-solaris2* )
+                if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
+            wx_cv_std_libpath="lib/64"
+        else
             wx_cv_std_libpath="lib"
         fi
+        ;;
 
+    *-*-linux* )
+                if test "$ac_cv_sizeof_void_p" = 8 -a \
+                -d "/usr/lib64" -a ! -h "/usr/lib64"; then
+            wx_cv_std_libpath="lib64"
+        else
+            wx_cv_std_libpath="lib"
+        fi
+        ;;
+
+    *)
+        wx_cv_std_libpath="lib";
+        ;;
+esac
 
-fi
 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
 echo "${ECHO_T}$wx_cv_std_libpath" >&6
 
-SEARCH_LIB=`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g`
+SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
 
 if test "$build" != "$host" -a "$GCC" = yes; then
                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
@@ -22621,7 +22649,6 @@ for ac_dir in $SEARCH_INCLUDE /usr/include;
         fi
         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -22633,24 +22660,6 @@ for ac_dir in $SEARCH_INCLUDE /usr/include;
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libXt.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
             x_libraries=$ac_find_libraries
         fi
     fi
@@ -26339,7 +26348,6 @@ fi
             echo "$as_me:$LINENO: checking for gpewidget library" >&5
 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -26351,24 +26359,6 @@ echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libgpewidget.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
             if test "$ac_find_libraries" != "" ; then
 
     if test "$ac_find_libraries" = "default location"; then
@@ -28467,7 +28457,6 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -28479,24 +28468,6 @@ echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libXm.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
 
         if test "x$ac_find_libraries" != "x" ; then
             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
@@ -28519,6 +28490,8 @@ echo "${ECHO_T}found in $ac_find_libraries" >&6
         else
                                                 save_CFLAGS=$CFLAGS
             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
+            save_LIBS="$LIBS"
+            LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
 
             cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
@@ -28571,9 +28544,9 @@ else
 sed 's/^/| /' conftest.$ac_ext >&5
 
 
-                        echo "$as_me:$LINENO: result: no" >&5
+                    echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
-                        { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
+                    { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
    { (exit 1); exit 1; }; }
 
@@ -28583,6 +28556,7 @@ rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 
             CFLAGS=$save_CFLAGS
+            LIBS="$save_LIBS"
         fi
 
         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
@@ -28899,7 +28873,6 @@ _ACEOF
             echo "$as_me:$LINENO: checking for Xpm library" >&5
 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -28911,24 +28884,6 @@ echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libXpm.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
             if test "$ac_find_libraries" != "" ; then
 
     if test "$ac_find_libraries" = "default location"; then
@@ -29919,7 +29874,6 @@ if test "$wxUSE_DISPLAY" = "yes"; then
         echo "$as_me:$LINENO: checking for Xinerama" >&5
 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -29931,24 +29885,6 @@ echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libXinerama.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
         if test "$ac_find_libraries" != "" ; then
 
     if test "$ac_find_libraries" = "default location"; then
@@ -29973,7 +29909,6 @@ echo "${ECHO_T}yes" >&6
             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -29985,24 +29920,6 @@ echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
             if test "$ac_find_libraries" != "" ; then
                 echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
@@ -30336,7 +30253,6 @@ if test $ac_cv_header_GL_gl_h = yes; then
                 echo "$as_me:$LINENO: checking for -lGL" >&5
 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -30348,24 +30264,6 @@ echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libGL.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
                 if test "$ac_find_libraries" != "" ; then
                     echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
@@ -30390,7 +30288,6 @@ echo "${ECHO_T}yes" >&6
                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -30402,24 +30299,6 @@ echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libGLU.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
                     if test "$ac_find_libraries" != "" ; then
 
     if test "$ac_find_libraries" = "default location"; then
@@ -30456,7 +30335,6 @@ echo "${ECHO_T}no" >&6
                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -30468,24 +30346,6 @@ echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libMesaGL.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
                     if test "$ac_find_libraries" != "" ; then
 
     if test "$ac_find_libraries" = "default location"; then
@@ -39775,9 +39635,9 @@ else
 sed 's/^/| /' conftest.$ac_ext >&5
 
 
-                                                                                                                                                                        CFLAGS_OLD="$CFLAGS"
+                                                                                                                                                                        CXXFLAGS_OLD="$CXXFLAGS"
                         if test "$GCC" = yes ; then
-                            CFLAGS="$CFLAGS -Werror"
+                            CXXFLAGS="$CXXFLAGS -Werror"
                         fi
 
                         cat >conftest.$ac_ext <<_ACEOF
@@ -39882,7 +39742,7 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 fi
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
-                        CFLAGS="$CFLAGS_OLD"
+                        CXXFLAGS="$CXXFLAGS_OLD"
 
 
 fi
@@ -39956,9 +39816,9 @@ else
 sed 's/^/| /' conftest.$ac_ext >&5
 
 
-                                                                                                                                                                        CFLAGS_OLD="$CFLAGS"
+                                                                                                                                                                        CXXFLAGS_OLD="$CXXFLAGS"
                         if test "$GCC" = yes ; then
-                            CFLAGS="$CFLAGS -Werror"
+                            CXXFLAGS="$CXXFLAGS -Werror"
                         fi
 
                         cat >conftest.$ac_ext <<_ACEOF
@@ -40063,7 +39923,7 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 fi
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
-                        CFLAGS="$CFLAGS_OLD"
+                        CXXFLAGS="$CXXFLAGS_OLD"
 
 
 fi
@@ -42004,7 +41864,6 @@ fi
         echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
 echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
 
-
   ac_find_libraries=
   for ac_dir in $SEARCH_LIB;
   do
@@ -42016,24 +41875,6 @@ echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
     done
   done
 
-  if test "x$ac_find_libraries" = "x" ; then
-
-  ac_find_libraries=
-  for ac_dir in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64;
-  do
-    for ac_extension in a so sl dylib dll.a; do
-      if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
-        ac_find_libraries=$ac_dir
-        break 2
-      fi
-    done
-  done
-
-    if test "x$ac_find_libraries" != "x" ; then
-      ac_find_libraries="default location"
-    fi
-  fi
-
 
         if test "$ac_find_libraries" = "" ; then
             echo "$as_me:$LINENO: result: no" >&5
@@ -43718,12 +43559,19 @@ EOF
       ;;
 
       *-*-aix* )
-                                       if test "x$GCC" = "xyes"; then
-           PIC_FLAG=""
-           SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
-           SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
+        if test "x$GCC" = "xyes"; then
+                                           PIC_FLAG=""
+
+                                                           case "${BAKEFILE_HOST}" in
+               *-*-aix5* )
+                   LD_EXPFULL="-Wl,-bexpfull"
+                   ;;
+           esac
+
+           SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
+           SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
        else
-                                    # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
+                               # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
 set dummy makeC++SharedLib; ac_word=$2
 echo "$as_me:$LINENO: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
@@ -43759,7 +43607,7 @@ else
 echo "${ECHO_T}no" >&6
 fi
 
-                        SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
+            SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
         fi
       ;;
@@ -44434,11 +44282,7 @@ if test ${D}DEPSMODE = gcc ; then
     fi
     exit 0
 elif test ${D}DEPSMODE = mwcc ; then
-    ${D}*
-    status=${D}?
-    if test ${D}{status} != 0 ; then
-        exit ${D}{status}
-    fi
+    ${D}* || exit ${D}?
     # Run mwcc again with -MM and redirect into the dep file we want
     # NOTE: We can't use shift here because we need ${D}* to be valid
     prevarg=
@@ -44459,7 +44303,7 @@ elif test ${D}DEPSMODE = mwcc ; then
     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
     exit 0
 elif test ${D}DEPSMODE = unixcc; then
-    ${D}* || exit
+    ${D}* || exit ${D}?
     # Run compiler again with deps flag and redirect into the dep file.
     # It doesn't work if the '-o FILE' option is used, but without it the
     # dependency file will contain the wrong name for the object. So it is
@@ -45473,189 +45317,9 @@ if test "$wxUSE_OMF" = "yes"; then
     esac
 fi
 
-GCC_PRAGMA_FLAGS=""
-PCH_FLAGS=""
-
 if test $GCC_PCH = 1 ; then
-    PCH_FLAGS="-DWX_PRECOMP"
-    GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
-else
-        if test "$GCC" = yes; then
-        echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
-echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
-        cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-#if (__GNUC__ < 4)
-             Not GCC 4.0 or greater
-             #endif
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-        { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
-             echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-            case "${host}" in
-                *-*-darwin* )
-                                                            GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
-                ;;
-                *-*-mingw32* )
-                                                                                                                                            if test "$wxUSE_STL" = "yes" -o \
-                    "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
-                    "$wxUSE_NO_RTTI" != "yes"; then
-                        echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
-echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
-                        cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
-                             Not GCC 3.2 or greater
-                             #endif
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-        { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
-                             echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-                    fi
-                    ;;
-                *-pc-os2_emx | *-pc-os2-emx )
-                                                                                if test "$wxUSE_STL" = "yes"; then
-                        echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
-echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
-                        cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
-                             Not GCC 3.2 or greater
-                             #endif
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-        { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-        { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
-                             echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-                    fi
-                    ;;
-            esac
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-    fi
+    CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
 fi
-CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
 
 
 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"