shithub: sox

Download patch

ref: 30eeaa08ca4b4ffe87b1d2783654afd3350c66e3
parent: 5ed26883a877848cd755ec32dd9e6e3317b0a017
author: cbagwell <cbagwell>
date: Fri Nov 5 23:35:22 EST 2004

cygwin fix to allow default CFLAGS settings

--- a/configure
+++ b/configure
@@ -1511,13 +1511,6 @@
     NONENONEs,x,x, &&
   program_prefix=${target_alias}-
 
-case "$target" in
-	*cygwin* )
-		CFLAGS="$CFLAGS -mno-cygwin"
-		CPPFLAGS="$CPPFLAGS -mno-cygwin"
-		LDFLAGS="$LDFLAGS -mno-cygwin"
-esac
-
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -2852,6 +2845,13 @@
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
+
+case "$target" in
+	*cygwin* )
+		CFLAGS="$CFLAGS -mno-cygwin"
+		CPPFLAGS="$CPPFLAGS -mno-cygwin"
+		LDFLAGS="$LDFLAGS -mno-cygwin"
+esac
 
 if test "$GCC" = yes; then
     CFLAGS="$CFLAGS -Wall"
--- a/configure.in
+++ b/configure.in
@@ -60,13 +60,6 @@
 dnl Set host type
 AC_CANONICAL_SYSTEM
 
-case "$target" in
-	*cygwin* )
-		CFLAGS="$CFLAGS -mno-cygwin"
-		CPPFLAGS="$CPPFLAGS -mno-cygwin"
-		LDFLAGS="$LDFLAGS -mno-cygwin"
-esac
-
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_RANLIB
@@ -73,6 +66,13 @@
 AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_CPP
+
+case "$target" in
+	*cygwin* )
+		CFLAGS="$CFLAGS -mno-cygwin"
+		CPPFLAGS="$CPPFLAGS -mno-cygwin"
+		LDFLAGS="$LDFLAGS -mno-cygwin"
+esac
 
 dnl Extra CFLAGS if we have gcc
 if test "$GCC" = yes; then