-# This file is a shell script fragment that supplies the information
-# necessary to tailor a template configure script into the configure
-# script appropriate for this directory. For more information, check
-# any existing configure script.
-
-srctrigger=ldmain.c
-srcname="linker"
-target_dependent=true
-
-# per-host:
-
-case "${host}" in
-
- rs6000-ibm-aix*) my_host=rs6000
- ;;
- hppa*-hp-hpux) my_host=hppahpux
- ;;
- hppa*-hp-bsd) my_host=hppabsd
- ;;
- mips-dec-ultrix*) my_host=decstation
- ;;
- mips-sgi-irix3*) my_host=irix3
- ;;
- mips-sgi-irix4*) my_host=irix4
- ;;
- m88k-motorola-*) my_host=delta88
- ;;
- m88k-dg-dgux*) my_host=dgux
- ;;
- m68k-cbm-amigados) my_host=amigados
- ;;
- m68k-cbm-svr4) my_host=amix
- ;;
- m68k-hp-hpux) my_host=hp300
- ;;
- m68k-hp-bsd) my_host=hp300bsd
- ;;
- m68k-apollo*-sysv*) my_host=apollov68
- ;;
- m68k-apollo*-bsd*) my_host=apollo68
- ;;
- m68k-sony-*) my_host=news
- ;;
- m68k-sun-sunos*) my_host=sun3
- ;;
- i386-go32-*) my_host=go32
- ;;
- i386-*-sysv) my_host=i386v
- ;;
- i386-*-isc) my_host=isc
- ;;
- i386-*-mach) my_host=i386mach
- ;;
- i386-*-bsd) my_host=i386-aout
- ;;
- i386-*-msdos) my_host=dose
- ;;
- sparc-sun-sunos64) my_host=sparc-ll
- ;;
- sparc-sun-sunos4*) my_host=sparc
- ;;
- sparc-sun-solaris2) my_host=solaris2
- ;;
- romp-*-*) my_host=rtbsd
- ;;
- a29k-*-*) my_host=ultra3
- ;;
- tahoe-*-*) my_host=tahoe
- ;;
- vax-dec-ultrix*) my_host=vaxult
- ;;
- vax-dec-bsd*) my_host=vaxbsd
- ;;
+dnl Process this file with autoconf to produce a configure script
+dnl
+AC_PREREG(2.13)
+AC_INIT(ldmain.c)
+
+AC_CANONICAL_SYSTEM
+
+AM_INIT_AUTOMAKE(ld, 2.10.91)
+
+AM_PROG_LIBTOOL
+
+AC_ARG_ENABLE(targets,
+[ --enable-targets alternative target configurations],
+[case "${enableval}" in
+ yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
+ ;;
+ no) enable_targets= ;;
+ *) enable_targets=$enableval ;;
+esac])dnl
+AC_ARG_ENABLE(64-bit-bfd,
+[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
+[case "${enableval}" in
+ yes) want64=true ;;
+ no) want64=false ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
+esac],[want64=false])dnl
+
+build_warnings="-W -Wall"
+AC_ARG_ENABLE(build-warnings,
+[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
+[case "${enableval}" in
+ yes) ;;
+ no) build_warnings="-w";;
+ ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
+ build_warnings="${build_warnings} ${t}";;
+ *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
+ build_warnings="${t} ${build_warnings}";;
+ *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;