[project @ 2001-06-28 17:56:10 by rrt]
authorrrt <unknown>
Thu, 28 Jun 2001 17:56:10 +0000 (17:56 +0000)
committerrrt <unknown>
Thu, 28 Jun 2001 17:56:10 +0000 (17:56 +0000)
Set C and CPP flags before finding gcc

configure.in

index dd73226..9d5c769 100644 (file)
@@ -511,20 +511,7 @@ esac
 dnl ** does #! path/to/perl work? (sometimes it's too long...)
 FPTOOLS_SHEBANG_PERL
 
-
-dnl ** look for GCC and find out which version
-dnl     Figure out which C compiler to use.  Gcc is preferred.
-dnl     If gcc, make sure it's at least 2.1
-dnl
-AC_PROG_CC
-FPTOOLS_HAVE_GCC
-
-dnl ** does the C compiler support option -mwin32 ?
-FPTOOLS_CC_MWIN32
-
-dnl ** figure out how to invoke cpp directly (gcc -E is no good)
-AC_PROG_CPP
-
+dnl ** set up extra GCC options on Win32
 case $HostOS_CPP in
 cygwin32|mingw32)
    STD_CC_OPTS="-mno-cygwin $CC_MWIN32_FLAG"
@@ -539,6 +526,18 @@ esac
 SRC_CC_OPTS="-O $STD_CC_OPTS"
 AC_SUBST(SRC_CC_OPTS)
 
+dnl ** look for GCC and find out which version
+dnl     Figure out which C compiler to use.  Gcc is preferred.
+dnl     If gcc, make sure it's at least 2.1
+dnl
+AC_PROG_CC
+FPTOOLS_HAVE_GCC
+
+dnl ** does the C compiler support option -mwin32 ?
+FPTOOLS_CC_MWIN32
+
+dnl ** figure out how to invoke cpp directly (gcc -E is no good)
+AC_PROG_CPP
 
 dnl ** figure out how to do context diffs
 FPTOOLS_PROG_DIFF