Commit cc652c15 authored by Henrik Gramner's avatar Henrik Gramner
Browse files

configure: Simplify cygwin/mingw/msys code

Avoids some code duplication.

Also drop the -mno-cygwin check since that option was removed back in 2008.
parent 8b2d2a6d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment