Patchwork [16/81] move mingw32 code after selection of OS

login
register
mail settings
Submitter Juan Quintela
Date Aug. 3, 2009, 12:46 p.m.
Message ID <5bb4a7540a8daa27ef9c60c6f70f52117d2d62eb.1249301360.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/30517/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 3, 2009, 12:46 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

Patch

diff --git a/configure b/configure
index 6e59f74..d283c34 100755
--- a/configure
+++ b/configure
@@ -364,6 +364,14 @@  if [ "$bsd" = "yes" ] ; then
   bsd_user="yes"
 fi

+if test "$mingw32" = "yes" ; then
+  linux="no"
+  EXESUF=".exe"
+  linux_user="no"
+  bsd_user="no"
+  CFLAGS="-DWIN32_LEAN_AND_MEAN -DWINVER=0x501 $CFLAGS"
+fi
+
 # find source path
 source_path=`dirname "$0"`
 source_path_used="no"
@@ -666,14 +674,6 @@  echo "NOTE: The object files are built at the place where configure is launched"
 exit 1
 fi

-if test "$mingw32" = "yes" ; then
-    linux="no"
-    EXESUF=".exe"
-    linux_user="no"
-    bsd_user="no"
-    CFLAGS="-DWIN32_LEAN_AND_MEAN -DWINVER=0x501 $CFLAGS"
-fi
-
 if test ! -x "$(which cgcc 2>/dev/null)"; then
     sparse="no"
 fi