Reliable BSD-x86-elf detection in ./config.
authorAndy Polyakov <appro@openssl.org>
Sun, 6 Feb 2005 13:20:23 +0000 (13:20 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 6 Feb 2005 13:20:23 +0000 (13:20 +0000)
config

diff --git a/config b/config
index a4a5bd0fbf3a4adeaf925b5967b9f48dfe4ec4a1..711af61541a9711181e65ed00b8f1442996ce960 100755 (executable)
--- a/config
+++ b/config
@@ -647,8 +647,10 @@ case "$GUESSOS" in
   sparc64-*-*bsd*)     OUT="BSD-sparc64" ;;
   ia64-*-*bsd*)                OUT="BSD-ia64" ;;
   amd64-*-*bsd*)       OUT="BSD-x86_64" ;;
-  *86*-*-freebsd[3-9]*)        OUT="BSD-x86-elf" ;;
-  *86*-*-*bsd*)                OUT="BSD-x86" ;;
+  *86*-*-*bsd*)                case "`(file -L /usr/lib/libc.so.*) 2>/dev/null`" in
+                       *ELF*)  OUT="BSD-x86-elf" ;;
+                       *)      OUT="BSD-x86" ;;
+                       esac ;;
   *-*-*bsd*)           OUT="BSD-generic32" ;;
 
   *-*-osf)             OUT="osf1-alpha-cc" ;;
@@ -660,15 +662,9 @@ case "$GUESSOS" in
          OUT="OpenUNIX-8" 
        fi
        ;;
-  *-*-unixware7) OUT="unixware-7" ;;
-  *-*-UnixWare7) OUT="unixware-7" ;;
-  *-*-Unixware7) OUT="unixware-7" ;;
-  *-*-unixware20*) OUT="unixware-2.0" ;;
-  *-*-unixware21*) OUT="unixware-2.1" ;;
-  *-*-UnixWare20*) OUT="unixware-2.0" ;;
-  *-*-UnixWare21*) OUT="unixware-2.1" ;;
-  *-*-Unixware20*) OUT="unixware-2.0" ;;
-  *-*-Unixware21*) OUT="unixware-2.1" ;;
+  *-*-[Uu]nix[Ww]are7) OUT="unixware-7" ;;
+  *-*-[Uu]nix[Ww]are20*) OUT="unixware-2.0" ;;
+  *-*-[Uu]nix[Ww]are21*) OUT="unixware-2.1" ;;
   *-*-vos)
        options="$options no-threads no-shared no-asm no-dso"
        EXE=".pm"