From: Henrik Gramner Date: Tue, 3 Nov 2015 16:55:08 +0000 (+0100) Subject: configure: Simplify cygwin/mingw/msys code X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=cc652c158c1fa65bfeafb6446b5be855850065d0;p=x264 configure: Simplify cygwin/mingw/msys code Avoids some code duplication. Also drop the -mno-cygwin check since that option was removed back in 2008. --- diff --git a/configure b/configure index 84bbf9d2..50d4f534 100755 --- a/configure +++ b/configure @@ -601,29 +601,18 @@ case $host_os in define HAVE_MALLOC_H libm="-lm" ;; - cygwin*) + cygwin*|mingw*|msys*) EXE=".exe" - if [ $compiler_style = GNU ] && cc_check "" -mno-cygwin; then - CFLAGS="$CFLAGS -mno-cygwin" - LDFLAGS="$LDFLAGS -mno-cygwin" - fi - if cpp_check "" "" "defined(__CYGWIN__)" ; then - define HAVE_MALLOC_H + if [[ $host_os = cygwin* ]] && cpp_check "" "" "defined(__CYGWIN__)" ; then SYS="CYGWIN" + define HAVE_MALLOC_H else SYS="WINDOWS" DEVNULL="NUL" LDFLAGSCLI="$LDFLAGSCLI -lshell32" - RC="${RC-${cross_prefix}windres}" + [ $compiler = GNU ] && RC="${RC-${cross_prefix}windres}" || RC="${RC-rc}" fi ;; - mingw*) - SYS="WINDOWS" - EXE=".exe" - DEVNULL="NUL" - LDFLAGSCLI="$LDFLAGSCLI -lshell32" - [ $compiler = GNU ] && RC="${RC-${cross_prefix}windres}" || RC="${RC-rc}" - ;; sunos*|solaris*) SYS="SunOS" define HAVE_MALLOC_H