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"
AC_TRY_COMPILE([],
[
#ifndef __INTEL_COMPILER
- #error Not icc
+ #error Not icc
#endif
],
wx_cv_prog_icc=yes,
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 ---------------------------------------------------------------------------