summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuri <yuri>2010-03-13 21:51:52 +0000
committeryuri <yuri>2010-03-13 21:51:52 +0000
commit5bc66fafc348c547870bbf51c9c4a7215ad4ff25 (patch)
treeb1a5225cb68f7607e4fb57409de1302b7877944c
parentc80e78920805f131281c20779a7a25cdf8276d7f (diff)
fix mingw32 crosscompilation under linux - select correct WIN32 GUI
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 04b8d0bc7..788164644 100644
--- a/configure.in
+++ b/configure.in
@@ -67,6 +67,16 @@ OPTIM="${OPTIM:=}"
AC_SUBST(ARCHFLAGS)
AC_SUBST(OPTIM)
+dnl in case of cross-compiling mingw32 under linux we must change uname for Win32 GUI
+dnl run ./configure --host=i686-pc-ming32 try use X11 without change uname
+if test "x$cross_compiling" != xno ; then
+ case $host_alias in
+ *mingw*)
+ uname=MINGW
+ ;;
+ esac
+fi
+
dnl OS-specific pre-tests...
dnl uname_GUI equals $uname unless we target cygwin
dnl in combination with X11.