]> git.saurik.com Git - wxWidgets.git/blobdiff - configure.in
small change (honour 'verbose' parameter in LoadFile)
[wxWidgets.git] / configure.in
index 2bc64ebdfc7b72ae7b1a7532d87d38620e761fc1..1c6fe05030483569ed8ee568869e7b72d49f323f 100644 (file)
@@ -587,6 +587,7 @@ case "${host}" in
     AC_DEFINE(__WIN95__)
     AC_DEFINE(__WINDOWS__)
     AC_DEFINE(__GNUWIN32__)
+    AC_DEFINE(STRICT)
     AC_DEFINE(WINVER, 0x0400)
     DEFAULT_DEFAULT_wxUSE_MSW=1
   ;;
@@ -596,6 +597,7 @@ case "${host}" in
     AC_DEFINE(__WIN95__)
     AC_DEFINE(__WINDOWS__)
     AC_DEFINE(__GNUWIN32__)
+    AC_DEFINE(STRICT)
     AC_DEFINE(WINVER, 0x0400)
     DEFAULT_DEFAULT_wxUSE_MSW=1
   ;;
@@ -1299,6 +1301,8 @@ SEARCH_INCLUDE="\
                               \
     /usr/include/Motif1.2     \
     /opt/xpm/include/X11      \
+    /opt/GBxpm/include/       \
+    /opt/GBxpm/X11/include/   \
                               \
     /usr/Motif1.2/include     \
     /usr/dt/include           \
@@ -1384,24 +1388,28 @@ WXGTK12=
 
 WXWINE=
 
-if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
-    AC_MSG_CHECKING(for Windows headers)
-    WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, windows.h)
-    INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
-  
-    dnl --- Quick & Dirty ; link against most/all libraries
-    dnl --- This will bloat the executable, but it'll work for now...
-    LIBS="$LIBS  -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -loldnames -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
+dnl Extension for programs; '.exe' for msw builds
+PROGRAM_EXT= 
 
-    if test "$ac_find_includes" != "" ; then
-        AC_MSG_RESULT(found $ac_find_includes)
-        TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
+if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
+    if test "$cross_compiling" = "yes" ; then
+       AC_MSG_WARN(Cross compiling --- skipping windows.h check)
     else
-        AC_MSG_RESULT(no)
-        if test "$cross_compiling" != "yes" ; then
+       AC_MSG_CHECKING(for Windows headers)
+       WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, windows.h)
+       if test "$ac_find_includes" != "" ; then
+            AC_MSG_RESULT(found $ac_find_includes)
+            TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
+       else
+            AC_MSG_RESULT(no)
             AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
         fi  
     fi
+    
+    INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
+    dnl --- Quick & Dirty ; link against most/all libraries
+    dnl --- This will bloat the executable, but it'll work for now...
+    LIBS="$LIBS  -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
 
     TOOLKIT=MSW
     
@@ -1411,6 +1419,7 @@ if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
     GENERICOBJS=MSW_GENERICOBJS
     UNIXOBJS=
     GUIDIST=MSW_DIST
+    PROGRAM_EXT=.exe
 fi
 
 if test "$wxUSE_GTK" = 1; then
@@ -2692,6 +2701,7 @@ AC_SUBST(WX_TARGET_LIBRARY)
 AC_SUBST(WX_LIBRARY_LINK1)
 AC_SUBST(WX_LIBRARY_LINK2)
 AC_SUBST(WX_LIBRARY_LINK3)
+AC_SUBST(PROGRAM_EXT)
 
 dnl are we supposed to create the links?
 AC_SUBST(WX_CREATE_LINKS)
@@ -2796,6 +2806,8 @@ AC_OUTPUT([
            utils/wxMMedia2/Makefile
            utils/wxMMedia2/lib/Makefile
            utils/wxMMedia2/sample/Makefile
+           utils/glcanvas/Makefile
+           utils/glcanvas/${TOOLKIT_DIR}/Makefile
           ],
           [
             chmod +x wx-config