diff options
| -rw-r--r-- | config.guess | 94 | ||||
| -rw-r--r-- | config.sub | 45 | ||||
| -rw-r--r-- | ltconfig | 18 | ||||
| -rw-r--r-- | ltmain.sh | 91 | 
4 files changed, 194 insertions, 54 deletions
| diff --git a/config.guess b/config.guess index 6cb567b8ae..e1b5871708 100644 --- a/config.guess +++ b/config.guess @@ -24,7 +24,7 @@  # Written by Per Bothner <bothner@cygnus.com>.  # The master version of this file is at the FSF in /home/gd/gnu/lib. -# Please send patches to the Autoconf mailing list <autoconf@gnu.org>. +# Please send patches to <autoconf-patches@gnu.org>.  #  # This script attempts to guess a canonical system name similar to  # config.sub.  If it succeeds, it prints the system name on stdout, and @@ -156,6 +156,9 @@ EOF      wgrisc:OpenBSD:*:*)  	echo mipsel-unknown-openbsd${UNAME_RELEASE}  	exit 0 ;; +    *:OS/390:*:*) +	echo i370-ibm-openedition +	exit 0 ;;      arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)  	echo arm-acorn-riscix${UNAME_RELEASE}  	exit 0;; @@ -328,15 +331,18 @@ EOF      AViiON:dgux:*:*)          # DG/UX returns AViiON for all architectures          UNAME_PROCESSOR=`/usr/bin/uname -p` -        if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then -	if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ -	     -o ${TARGET_BINARY_INTERFACE}x = x ] ; then +	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110] +	then +	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ +	       [ ${TARGET_BINARY_INTERFACE}x = x ] +	    then  		echo m88k-dg-dgux${UNAME_RELEASE} -	else +	    else  		echo m88k-dg-dguxbcs${UNAME_RELEASE} +	    fi +	else +	    echo i586-dg-dgux${UNAME_RELEASE}  	fi -        else echo i586-dg-dgux${UNAME_RELEASE} -        fi   	exit 0 ;;      M88*:DolphinOS:*:*)	# DolphinOS (SVR3)  	echo m88k-dolphin-sysv3 @@ -453,7 +459,7 @@ EOF                    exit (0);                }  EOF -	($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` +	(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`  	rm -f $dummy.c $dummy  	esac  	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` @@ -550,7 +556,7 @@ EOF  	echo t90-cray-unicos${UNAME_RELEASE}  	exit 0 ;;      CRAY*T3E:*:*:*) -	echo t3e-cray-unicosmk${UNAME_RELEASE} +	echo alpha-cray-unicosmk${UNAME_RELEASE}  	exit 0 ;;      CRAY-2:*:*:*)  	echo cray2-cray-unicos @@ -588,7 +594,7 @@ EOF  	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`  	exit 0 ;;      *:NetBSD:*:*) -	echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` +	echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`  	exit 0 ;;      *:OpenBSD:*:*)  	echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` @@ -618,12 +624,6 @@ EOF  	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`  	exit 0 ;;      *:Linux:*:*) -	# uname on the ARM produces all sorts of strangeness, and we need to -	# filter it out. -	case "$UNAME_MACHINE" in -	  armv*)		      UNAME_MACHINE=$UNAME_MACHINE ;; -	  arm* | sa110*)	      UNAME_MACHINE="arm" ;; -	esac  	# The BFD linker knows what the default object file format is, so  	# first see if it will tell us. cd to the root directory to prevent @@ -636,11 +636,38 @@ EOF  				    s/ .*//  				    p'`          case "$ld_supported_emulations" in -	  i?86linux)  echo "${UNAME_MACHINE}-pc-linux-gnuaout"      ; exit 0 ;; -	  i?86coff)   echo "${UNAME_MACHINE}-pc-linux-gnucoff"      ; exit 0 ;; -	  sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; -	  armlinux)   echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; -	  m68klinux)  echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; +	  *ia64) +		echo "${UNAME_MACHINE}-unknown-linux" +		exit 0 +		;; +	  i?86linux) +		echo "${UNAME_MACHINE}-pc-linux-gnuaout" +		exit 0 +		;; +	  i?86coff) +		echo "${UNAME_MACHINE}-pc-linux-gnucoff" +		exit 0 +		;; +	  sparclinux) +		echo "${UNAME_MACHINE}-unknown-linux-gnuaout" +		exit 0 +		;; +	  armlinux) +		echo "${UNAME_MACHINE}-unknown-linux-gnuaout" +		exit 0 +		;; +	  elf32arm*) +		echo "${UNAME_MACHINE}-unknown-linux-gnu" +		exit 0 +		;; +	  armelf_linux*) +		echo "${UNAME_MACHINE}-unknown-linux-gnu" +		exit 0 +		;; +	  m68klinux) +		echo "${UNAME_MACHINE}-unknown-linux-gnuaout" +		exit 0 +		;;  	  elf32ppc)  		# Determine Lib Version  		cat >$dummy.c <<EOF @@ -670,7 +697,9 @@ EOF  			fi  		fi	  		rm -f $dummy.c $dummy -		echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;; +		echo powerpc-unknown-linux-gnu${LIBC} +		exit 0 +		;;  	esac  	if test "${UNAME_MACHINE}" = "alpha" ; then @@ -797,19 +826,21 @@ EOF  	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}  	exit 0 ;;      i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) +	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`  	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then -		echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} +		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}  	else -		echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} +		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}  	fi  	exit 0 ;;      i?86:*:5:7*) -	UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` -	(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 -	(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) && UNAME_MACHINE=i586 -	(/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null) && UNAME_MACHINE=i686 -	(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585 -	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE} +        # Fixed at (any) Pentium or better +        UNAME_MACHINE=i586 +        if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then +	    echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} +	else +	    echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} +	fi  	exit 0 ;;      i?86:*:3.2:*)  	if test -f /usr/options/cb.name; then @@ -943,6 +974,9 @@ EOF      *:Rhapsody:*:*)  	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}  	exit 0 ;; +    *:QNX:*:4*) +	echo i386-qnx-qnx${UNAME_VERSION} +	exit 0 ;;  esac  #echo '(No uname command or uname output not recognized.)' 1>&2 diff --git a/config.sub b/config.sub index 2436b45347..28426bb8fa 100644 --- a/config.sub +++ b/config.sub @@ -105,7 +105,7 @@ case $os in  	-scout)  		;;  	-wrs) -		os=vxworks +		os=-vxworks  		basic_machine=$1  		;;  	-hiux*) @@ -156,13 +156,17 @@ case $os in  	-psos*)  		os=-psos  		;; +	-mint | -mint[0-9]*) +		basic_machine=m68k-atari +		os=-mint +		;;  esac  # Decode aliases for certain CPU-COMPANY combinations.  case $basic_machine in  	# Recognize the basic CPU types without company name.  	# Some are omitted here because they have special meanings below. -	tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ +	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \  		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \  		| 580 | i960 | h8300 \  		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ @@ -171,12 +175,12 @@ case $basic_machine in  		| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \  		| mips64orion | mips64orionel | mipstx39 | mipstx39el \  		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ -		| mips64vr5000 | miprs64vr5000el \ +		| mips64vr5000 | miprs64vr5000el | mcore \  		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ -		| thumb | d10v) +		| thumb | d10v | fr30)  		basic_machine=$basic_machine-unknown  		;; -	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65) +	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)  		;;  	# We use `pc' rather than `unknown' @@ -191,7 +195,8 @@ case $basic_machine in  		exit 1  		;;  	# Recognize the basic CPU types with company name. -	vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ +	# FIXME: clean up the formatting here. +	vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \  	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \  	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \  	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ @@ -204,10 +209,10 @@ case $basic_machine in  	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \  	      | mips64el-* | mips64orion-* | mips64orionel-* \  	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ -	      | mipstx39-* | mipstx39el-* \ +	      | mipstx39-* | mipstx39el-* | mcore-* \  	      | f301-* | armv*-* | t3e-* \  	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ -	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* ) +	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )  		;;  	# Recognize the various machine names and aliases which stand  	# for a CPU type and a company and sometimes even an OS. @@ -425,7 +430,6 @@ case $basic_machine in  		;;  	i370-ibm* | ibm*)  		basic_machine=i370-ibm -		os=-mvs  		;;  # I'm not sure what "Sysv32" means.  Should this be sysv3.2?  	i[34567]86v32) @@ -460,6 +464,9 @@ case $basic_machine in  		basic_machine=i386-unknown  		os=-mingw32  		;; +	i386-qnx | qnx) +		basic_machine=i386-qnx +		;;  	iris | iris4d)  		basic_machine=mips-sgi  		case $os in @@ -488,7 +495,7 @@ case $basic_machine in  	miniframe)  		basic_machine=m68000-convergent  		;; -	*mint | *MiNT) +	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)  		basic_machine=m68k-atari  		os=-mint  		;; @@ -514,6 +521,10 @@ case $basic_machine in  		basic_machine=i386-unknown  		os=-msdos  		;; +	mvs) +		basic_machine=i370-ibm +		os=-mvs +		;;  	ncr3000)  		basic_machine=i486-ncr  		os=-sysv4 @@ -523,7 +534,7 @@ case $basic_machine in  		os=-netbsd  		;;  	netwinder) -		basic_machine=armv4l-corel +		basic_machine=armv4l-rebel  		os=-linux  		;;  	news | news700 | news800 | news900) @@ -907,7 +918,7 @@ case $os in  	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \  	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \  	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ -	      | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*) +	      | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)  	# Remember, each alternative MUST END IN *, to match a version number.  		;;  	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ @@ -926,6 +937,9 @@ case $os in  	-sunos6*)  		os=`echo $os | sed -e 's|sunos6|solaris3|'`  		;; +	-opened*) +		os=-openedition +		;;  	-osfrose*)  		os=-osfrose  		;; @@ -963,6 +977,9 @@ case $os in  	-oss*)  		os=-sysv3  		;; +        -qnx) +		os=-qnx4 +		;;  	-svr4)  		os=-sysv4  		;; @@ -1012,7 +1029,7 @@ case $basic_machine in  	*-acorn)  		os=-riscix1.2  		;; -	arm*-corel) +	arm*-rebel)  		os=-linux  		;;  	arm*-semi) @@ -1186,7 +1203,7 @@ case $basic_machine in  			-genix*)  				vendor=ns  				;; -			-mvs*) +			-mvs* | -opened*)  				vendor=ibm  				;;  			-ptx*) @@ -1188,8 +1188,8 @@ EOF    netbsd*)      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' -      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +      archive_cmds='$CC -shared $compile_rpath $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' +      archive_expsym_cmds='$CC -shared $compile_rpath $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'      else        archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'        # can we support soname and/or expsyms with a.out? -oliva @@ -1210,8 +1210,8 @@ EOF  EOF      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' -      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +      archive_cmds='$CC -shared $compile_rpath $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' +      archive_expsym_cmds='$CC -shared $compile_rpath $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'      else        ld_shlibs=no      fi @@ -1226,8 +1226,8 @@ EOF    *)      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then -      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' -      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +      archive_cmds='$CC -shared $compile_rpath $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib' +      archive_expsym_cmds='$CC -shared $compile_rpath $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'      else        ld_shlibs=no      fi @@ -1428,9 +1428,9 @@ else      no_undefined_flag=' -z text'      # $CC -shared without GNU ld will not create a library from C++      # object files and a static libstdc++, better avoid it by now -    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts' +    archive_cmds='$LD $compile_rpath -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ -		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp' +		$LD $compile_rpath -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'      hardcode_libdir_flag_spec='-R$libdir'      hardcode_shlibpath_var=no      case "$host_os" in @@ -1448,7 +1448,7 @@ else      hardcode_shlibpath_var=no      ;; -  sysv4) +  sysv4 | sysv5)      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'      runpath_var='LD_RUN_PATH'      hardcode_shlibpath_var=no @@ -1162,7 +1162,7 @@ compiler."        *.o | *.obj | *.a | *.lib)  	# A standard object. -	objs="$objs $arg" +	libobjs="$libobjs $arg"  	;;        *.lo) @@ -1796,6 +1796,94 @@ compiler."  	esac        fi +      if test -n "$rpath$xrpath"; then +	# If the user specified any rpath flags, then add them. +	for libdir in $rpath $xrpath; do +	  # This is the magic to use -rpath. +	  case "$compile_rpath " in +	  *" $libdir "*) ;; +	  *) compile_rpath="$compile_rpath $libdir" ;; +	  esac +	  case "$finalize_rpath " in +	  *" $libdir "*) ;; +	  *) finalize_rpath="$finalize_rpath $libdir" ;; +	  esac +	done +      fi + +      # Now hardcode the library paths +      rpath= +      hardcode_libdirs= +      for libdir in $compile_rpath; do +	if test -n "$hardcode_libdir_flag_spec"; then +	  if test -n "$hardcode_libdir_separator"; then +	    if test -z "$hardcode_libdirs"; then +	      hardcode_libdirs="$libdir" +	    else +	      # Just accumulate the unique libdirs. +	      case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in +	      *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) +		;; +	      *) +		hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" +		;; +	      esac +	    fi +	  else +	    eval flag=\"$hardcode_libdir_flag_spec\" +	    rpath="$rpath $flag" +	  fi +	elif test -n "$runpath_var"; then +	  case "$perm_rpath " in +	  *" $libdir "*) ;; +	  *) perm_rpath="$perm_rpath $libdir" ;; +	  esac +	fi +      done +      # Substitute the hardcoded libdirs into the rpath. +      if test -n "$hardcode_libdir_separator" && +	 test -n "$hardcode_libdirs"; then +	libdir="$hardcode_libdirs" +	eval rpath=\" $hardcode_libdir_flag_spec\" +      fi +      compile_rpath="$rpath" + +      rpath= +      hardcode_libdirs= +      for libdir in $finalize_rpath; do +	if test -n "$hardcode_libdir_flag_spec"; then +	  if test -n "$hardcode_libdir_separator"; then +	    if test -z "$hardcode_libdirs"; then +	      hardcode_libdirs="$libdir" +	    else +	      # Just accumulate the unique libdirs. +	      case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in +	      *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) +		;; +	      *) +		hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" +		;; +	      esac +	    fi +	  else +	    eval flag=\"$hardcode_libdir_flag_spec\" +	    rpath="$rpath $flag" +	  fi +	elif test -n "$runpath_var"; then +	  case "$finalize_perm_rpath " in +	  *" $libdir "*) ;; +	  *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; +	  esac +	fi +      done +      # Substitute the hardcoded libdirs into the rpath. +      if test -n "$hardcode_libdir_separator" && +	 test -n "$hardcode_libdirs"; then +	libdir="$hardcode_libdirs" +	eval rpath=\" $hardcode_libdir_flag_spec\" +      fi +      finalize_rpath="$rpath" +        # Create the output directory, or remove our outputs if we need to.        if test -d $output_objdir; then  	$show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*" @@ -1955,6 +2043,7 @@ EOF  		    done  	      done  	      if test -n "$a_deplib" ; then +		newdeplibs="$newdeplibs $a_deplib"  		droppeddeps=yes  		echo  		echo "*** Warning: This library needs some functionality provided by $a_deplib." | 
