]> git.saurik.com Git - wxWidgets.git/blobdiff - configure.in
Added MSW toplevel.cpp and regenerated makefiles and such.
[wxWidgets.git] / configure.in
index 5c8eb217f97b8be039ab8a101464b85eeb00a5c4..049843487e8d4c36651c1c820515fe890610705c 100644 (file)
@@ -2228,9 +2228,10 @@ if test "$wxUSE_SHARED" = "yes"; then
     fi
 
     dnl the extra compiler flags needed for compilation of shared library
-    dnl sources, the default is understood by many compilers but not all - for
-    dnl them we set it specially below
-    PIC_FLAG="-fPIC"
+    if test "$GCC" = "yes"; then
+        dnl the switch for gcc is the same under all platforms
+        PIC_FLAG="-fPIC"
+    fi
 
     dnl the command to use for creating the shared library
     SHARED_LD="${CXX} -shared -o"
@@ -2255,7 +2256,7 @@ if test "$wxUSE_SHARED" = "yes"; then
                 AC_TRY_COMPILE([],
                     [
                         #ifndef __INTEL_COMPILER
-                            #error Not icc
+                        #error Not icc
                         #endif
                     ],
                     wx_cv_prog_icc=yes,
@@ -2414,6 +2415,27 @@ fi
 
 if test "$USE_WIN32" = 1; then
     AC_CHECK_HEADERS(w32api.h)
+    
+    dnl check if can use _WIN_IE macro
+    AC_CACHE_CHECK([if w32api has good enough MSIE support], wx_cv_w32api_win_ie,
+    [
+      AC_TRY_COMPILE([#include <w32api.h>],
+                   [
+                     #define wxCHECK_W32API_VERSION( major, minor ) \
+                     ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
+                     && ( ( __W32API_MAJOR_VERSION > (major) ) \
+                     || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
+                     
+                     #if !wxCHECK_W32API_VERSION(1,1)
+                     #error You need w32api 1.1 or newer
+                     #endif
+                   ], [
+                      wx_cv_w32api_win_ie=yes
+                      CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
+                   ], [
+                      wx_cv_w32api_win_ie=no
+                   ])
+    ])
 fi
 
 dnl ---------------------------------------------------------------------------