aboutsummaryrefslogtreecommitdiff
path: root/libltdl/config.guess
diff options
context:
space:
mode:
Diffstat (limited to 'libltdl/config.guess')
-rwxr-xr-xlibltdl/config.guess63
1 files changed, 13 insertions, 50 deletions
diff --git a/libltdl/config.guess b/libltdl/config.guess
index 396482d6..917bbc50 100755
--- a/libltdl/config.guess
+++ b/libltdl/config.guess
@@ -1,10 +1,9 @@
1#! /bin/sh 1#! /bin/sh
2# Attempt to guess a canonical system name. 2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5# Inc.
6 5
7timestamp='2006-07-02' 6timestamp='2005-07-08'
8 7
9# This file is free software; you can redistribute it and/or modify it 8# This file is free software; you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by 9# under the terms of the GNU General Public License as published by
@@ -107,7 +106,7 @@ set_cc_for_build='
107trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 106trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 107trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109: ${TMPDIR=/tmp} ; 108: ${TMPDIR=/tmp} ;
110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 109 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
@@ -207,11 +206,8 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
207 *:ekkoBSD:*:*) 206 *:ekkoBSD:*:*)
208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 207 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209 exit ;; 208 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
213 macppc:MirBSD:*:*) 209 macppc:MirBSD:*:*)
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 210 echo powerppc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;; 211 exit ;;
216 *:MirBSD:*:*) 212 *:MirBSD:*:*)
217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 213 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
@@ -768,14 +764,7 @@ EOF
768 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 764 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
769 exit ;; 765 exit ;;
770 *:FreeBSD:*:*) 766 *:FreeBSD:*:*)
771 case ${UNAME_MACHINE} in 767 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
772 pc98)
773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
774 amd64)
775 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
776 *)
777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778 esac
779 exit ;; 768 exit ;;
780 i*:CYGWIN*:*) 769 i*:CYGWIN*:*)
781 echo ${UNAME_MACHINE}-pc-cygwin 770 echo ${UNAME_MACHINE}-pc-cygwin
@@ -790,11 +779,8 @@ EOF
790 i*:PW*:*) 779 i*:PW*:*)
791 echo ${UNAME_MACHINE}-pc-pw32 780 echo ${UNAME_MACHINE}-pc-pw32
792 exit ;; 781 exit ;;
793 x86:Interix*:[3456]*) 782 x86:Interix*:[34]*)
794 echo i586-pc-interix${UNAME_RELEASE} 783 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
795 exit ;;
796 EM64T:Interix*:[3456]*)
797 echo x86_64-unknown-interix${UNAME_RELEASE}
798 exit ;; 784 exit ;;
799 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 785 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
800 echo i${UNAME_MACHINE}-pc-mks 786 echo i${UNAME_MACHINE}-pc-mks
@@ -808,7 +794,7 @@ EOF
808 i*:UWIN*:*) 794 i*:UWIN*:*)
809 echo ${UNAME_MACHINE}-pc-uwin 795 echo ${UNAME_MACHINE}-pc-uwin
810 exit ;; 796 exit ;;
811 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 797 amd64:CYGWIN*:*:*)
812 echo x86_64-unknown-cygwin 798 echo x86_64-unknown-cygwin
813 exit ;; 799 exit ;;
814 p*:CYGWIN*:*) 800 p*:CYGWIN*:*)
@@ -831,9 +817,6 @@ EOF
831 arm*:Linux:*:*) 817 arm*:Linux:*:*)
832 echo ${UNAME_MACHINE}-unknown-linux-gnu 818 echo ${UNAME_MACHINE}-unknown-linux-gnu
833 exit ;; 819 exit ;;
834 avr32*:Linux:*:*)
835 echo ${UNAME_MACHINE}-unknown-linux-gnu
836 exit ;;
837 cris:Linux:*:*) 820 cris:Linux:*:*)
838 echo cris-axis-linux-gnu 821 echo cris-axis-linux-gnu
839 exit ;; 822 exit ;;
@@ -868,11 +851,7 @@ EOF
868 #endif 851 #endif
869 #endif 852 #endif
870EOF 853EOF
871 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 854 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
872 /^CPU/{
873 s: ::g
874 p
875 }'`"
876 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 855 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
877 ;; 856 ;;
878 mips64:Linux:*:*) 857 mips64:Linux:*:*)
@@ -891,16 +870,9 @@ EOF
891 #endif 870 #endif
892 #endif 871 #endif
893EOF 872EOF
894 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 873 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
895 /^CPU/{
896 s: ::g
897 p
898 }'`"
899 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 874 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
900 ;; 875 ;;
901 or32:Linux:*:*)
902 echo or32-unknown-linux-gnu
903 exit ;;
904 ppc:Linux:*:*) 876 ppc:Linux:*:*)
905 echo powerpc-unknown-linux-gnu 877 echo powerpc-unknown-linux-gnu
906 exit ;; 878 exit ;;
@@ -944,9 +916,6 @@ EOF
944 sparc:Linux:*:* | sparc64:Linux:*:*) 916 sparc:Linux:*:* | sparc64:Linux:*:*)
945 echo ${UNAME_MACHINE}-unknown-linux-gnu 917 echo ${UNAME_MACHINE}-unknown-linux-gnu
946 exit ;; 918 exit ;;
947 vax:Linux:*:*)
948 echo ${UNAME_MACHINE}-dec-linux-gnu
949 exit ;;
950 x86_64:Linux:*:*) 919 x86_64:Linux:*:*)
951 echo x86_64-unknown-linux-gnu 920 echo x86_64-unknown-linux-gnu
952 exit ;; 921 exit ;;
@@ -992,7 +961,7 @@ EOF
992 LIBC=gnulibc1 961 LIBC=gnulibc1
993 # endif 962 # endif
994 #else 963 #else
995 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 964 #ifdef __INTEL_COMPILER
996 LIBC=gnu 965 LIBC=gnu
997 #else 966 #else
998 LIBC=gnuaout 967 LIBC=gnuaout
@@ -1002,11 +971,7 @@ EOF
1002 LIBC=dietlibc 971 LIBC=dietlibc
1003 #endif 972 #endif
1004EOF 973EOF
1005 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 974 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
1006 /^LIBC/{
1007 s: ::g
1008 p
1009 }'`"
1010 test x"${LIBC}" != x && { 975 test x"${LIBC}" != x && {
1011 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 976 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1012 exit 977 exit
@@ -1217,6 +1182,7 @@ EOF
1217 *:Darwin:*:*) 1182 *:Darwin:*:*)
1218 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1183 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1219 case $UNAME_PROCESSOR in 1184 case $UNAME_PROCESSOR in
1185 *86) UNAME_PROCESSOR=i686 ;;
1220 unknown) UNAME_PROCESSOR=powerpc ;; 1186 unknown) UNAME_PROCESSOR=powerpc ;;
1221 esac 1187 esac
1222 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1188 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
@@ -1295,9 +1261,6 @@ EOF
1295 i*86:skyos:*:*) 1261 i*86:skyos:*:*)
1296 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1262 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1297 exit ;; 1263 exit ;;
1298 i*86:rdos:*:*)
1299 echo ${UNAME_MACHINE}-pc-rdos
1300 exit ;;
1301esac 1264esac
1302 1265
1303#echo '(No uname command or uname output not recognized.)' 1>&2 1266#echo '(No uname command or uname output not recognized.)' 1>&2