summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>2016-05-09 15:29:10 +0000
committerMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>2016-05-09 15:29:10 +0000
commit565fbc870173f335bbc50f32ac7f67e5b36c2bd7 (patch)
tree29ed8fe53a13356cc79d94000843fc0a9cca0ce9 /dev-libs
parentgettext-0.19.7: import Cygwin patches (diff)
downloadprefix-565fbc870173f335bbc50f32ac7f67e5b36c2bd7.tar.gz
prefix-565fbc870173f335bbc50f32ac7f67e5b36c2bd7.tar.bz2
prefix-565fbc870173f335bbc50f32ac7f67e5b36c2bd7.zip
openssl gentoo.config-1.0.2: add Cygwin detection
Diffstat (limited to 'dev-libs')
-rwxr-xr-xdev-libs/openssl/files/gentoo.config-1.0.29
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-libs/openssl/files/gentoo.config-1.0.2 b/dev-libs/openssl/files/gentoo.config-1.0.2
index b3f6cedfbe..aea716dd63 100755
--- a/dev-libs/openssl/files/gentoo.config-1.0.2
+++ b/dev-libs/openssl/files/gentoo.config-1.0.2
@@ -34,6 +34,8 @@ if [[ $1 == "test" ]] ; then
"i386-apple-darwinX |darwin-i386-cc" \
"powerpc-apple-darwinX |darwin-ppc-cc" \
"i586-pc-winnt |winnt-parity" \
+ "i586-pc-cygwin2.0 |Cygwin" \
+ "x86_64-pc-cygwin |Cygwin-x86_64" \
"s390-ibm-linux-gnu |linux-generic32 -DB_ENDIAN" \
"s390x-linux-gnu |linux64-s390x" \
;do
@@ -57,6 +59,7 @@ fi
# Detect the operating system
case ${CHOST} in
*-aix*) system="aix";;
+ *-cygwin*) system="Cygwin";;
*-darwin*) system="darwin";;
*-freebsd*) system="BSD";;
*-hpux*) system="hpux";;
@@ -130,6 +133,12 @@ BSD)
aix)
machine=${compiler}
;;
+Cygwin)
+ case ${chost_machine} in
+ x86_64) machine=x86_64 ;;
+ *) echo ${system} ;; # Cygwin-x86 is 'Cygwin' only
+ esac
+ ;;
darwin)
case ${chost_machine} in
powerpc64) machine=ppc-cc; system=${system}64;;