diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-08-01 00:04:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-08-01 00:04:48 +0000 |
commit | c0734708814c3871992a7d74a4f168a47dc05922 (patch) | |
tree | ea059ba31c250a6f11f93746e2c344aa14fa041a /bfd/configure.in | |
parent | bc6b39f5f5186513c2ed28da36c14746b145d26d (diff) | |
download | gdb-c0734708814c3871992a7d74a4f168a47dc05922.zip gdb-c0734708814c3871992a7d74a4f168a47dc05922.tar.gz gdb-c0734708814c3871992a7d74a4f168a47dc05922.tar.bz2 |
* Makefile.am: New file, based on old Makefile.in.
* acinclude.m4: New file, copied from old aclocal.m4.
* configure.in: Define and call AM_PROG_LIBTOOL and friends.
Remove shared library handling; now handled by libtool. Replace
AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AM_MAINTAINER_MODE,
AM_CYGWIN32, and AM_EXEEXT. Change all .o files to .lo. Remove
stamp-h handling in AC_OUTPUT.
* acconfig.h: Mention PACKAGE and VERSION.
* stamp-h.in: New file.
* dep-in.sed: Change .o to .lo.
* Makefile.in: Now built with automake.
* aclocal.m4: Now built with aclocal.
* config.in, configure: Rebuild.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r-- | bfd/configure.in | 552 |
1 files changed, 304 insertions, 248 deletions
diff --git a/bfd/configure.in b/bfd/configure.in index 3837292..7d2d97b 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -3,6 +3,123 @@ dnl AC_PREREQ(2.5) AC_INIT(libbfd.c) +AC_CANONICAL_SYSTEM +AC_ISC_POSIX + +AM_INIT_AUTOMAKE(bfd, 2.8.2) + +dnl This is a copy of AM_PROG_LIBTOOL from libtool 1.0, modified to +dnl not produce a shared library by default. +AC_DEFUN(AM_PROG_LIBTOOL, +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PROG_CC]) +AC_REQUIRE([AC_PROG_RANLIB]) +AC_REQUIRE([AM_PROG_LD]) +AC_REQUIRE([AC_PROG_LN_S]) + +# Always use our own libtool. +LIBTOOL='$(top_builddir)/libtool' +AC_SUBST(LIBTOOL) + +dnl Allow the --disable-shared flag to stop us from building shared libs. +AC_ARG_ENABLE(shared, +[ --enable-shared build shared libraries [default=yes]], +test "$enableval" = no && libtool_shared=" --disable-shared", +libtool_shared=--disable-shared) + +dnl Allow the --disable-static flag to stop us from building static libs. +AC_ARG_ENABLE(static, +[ --enable-static build static libraries [default=yes]], +test "$enableval" = no && libtool_static=" --disable-static", +libtool_static=) + +libtool_flags="$libtool_shared$libtool_static" +test "$silent" = yes && libtool_flags="$libtool_flags --silent" +test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" +test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +[case "$host" in +*-*-irix6*) + for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do + if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then + LD="${LD-ld} $f" + fi + done + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + CFLAGS="$CFLAGS -belf" + ;; +esac] + +# Actually configure libtool. ac_aux_dir is where install-sh is found. +CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ +LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \ +${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ +$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ +|| AC_MSG_ERROR([libtool configure failed]) +]) + +# AM_PROG_LD - find the path to the GNU or non-GNU linker +AC_DEFUN(AM_PROG_LD, +[AC_ARG_WITH(gnu-ld, +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) +if test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(ac_cv_path_LD, +[case "$LD" in + /*) + ac_cv_path_LD="$LD" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/ld"; then + ac_cv_path_LD="$ac_dir/ld" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then + test "$with_gnu_ld" = yes && break + else + test "$with_gnu_ld" != yes && break + fi + fi + done + IFS="$ac_save_ifs" + ;; +esac]) +LD="$ac_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_SUBST(LD) +AM_PROG_LD_GNU +]) + +AC_DEFUN(AM_PROG_LD_GNU, +[AC_CACHE_CHECK([whether we are using GNU ld], ac_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then + ac_cv_prog_gnu_ld=yes +else + ac_cv_prog_gnu_ld=no +fi]) +]) + +AM_PROG_LIBTOOL + AC_ARG_ENABLE(64-bit-bfd, [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)], [case "${enableval}" in @@ -18,14 +135,6 @@ AC_ARG_ENABLE(targets, no) enable_targets= ;; *) enable_targets=$enableval ;; esac])dnl -AC_ARG_ENABLE(shared, -[ --enable-shared build shared BFD library], -[case "${enableval}" in - yes) shared=true ;; - no) shared=false ;; - *bfd*) shared=true ;; - *) shared=false ;; -esac])dnl AC_ARG_ENABLE(commonbfdlib, [ --enable-commonbfdlib build shared BFD/opcodes/libiberty library], [case "${enableval}" in @@ -41,45 +150,24 @@ AC_ARG_WITH(mmap, *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;; esac],[want_mmap=false])dnl -AC_CONFIG_HEADER(config.h:config.in) +AM_CONFIG_HEADER(config.h:config.in) -AC_CONFIG_AUX_DIR(`cd $srcdir/..;pwd`) -AC_CANONICAL_SYSTEM if test -z "$target" ; then AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) fi AC_ARG_PROGRAM +AM_MAINTAINER_MODE +AM_CYGWIN32 +AM_EXEEXT + host64=false target64=false # host stuff: -ALLLIBS='$(TARGETLIB)' -PICFLAG= -SHLIB=unused-shlib -SHLINK=unused-shlink -if test "${shared}" = "true"; then - PICFLAG=-fpic - if test "${commonbfdlib}" = "true"; then - ALLLIBS='$(TARGETLIB)' - else - ALLLIBS='$(TARGETLIB) $(SHLIB) $(SHLINK)' -changequote(,)dnl - SHLIB=libbfd.so.`sed -e 's/[^0-9]*\([0-9.]*\).*/\1/' ${srcdir}/VERSION` -changequote([,])dnl - SHLINK=libbfd.so - fi -fi - AC_PROG_CC -AC_ISC_POSIX - -# check for win32 specific settings. -CY_CYGWIN32 -CY_EXEEXT - # Permit host specific settings. . ${srcdir}/configure.host @@ -88,37 +176,6 @@ AC_CHECK_TOOL(AR, ar) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_PROG_INSTALL -if test "${shared}" = "true"; then - if test "${GCC}" != "yes" && test "${shared_non_gcc}" != "yes"; then - AC_MSG_WARN([BFD --enable-shared only supported when using gcc]) - shared=false - ALLLIBS='$(TARGETLIB)' - PICFLAG= - SHLIB=unused-shlib - fi -fi - -AC_SUBST(ALLLIBS) -AC_SUBST(PICFLAG) -AC_SUBST(SHLIB) -AC_SUBST(SHLIB_CC) -AC_SUBST(SHLIB_CFLAGS) -AC_SUBST(SHLIB_LIBS) -if test "${commonbfdlib}" = "true"; then - COMMON_SHLIB=yes - PICLIST=piclist -else - COMMON_SHLIB= - PICLIST= -fi -AC_SUBST(COMMON_SHLIB) -AC_SUBST(PICLIST) -AC_SUBST(SHLINK) -AC_SUBST(INSTALL_SHLIB) - -VERSION=`cat ${srcdir}/VERSION` -AC_SUBST(VERSION) - BFD_HOST_64BIT_LONG=0 BFD_HOST_64_BIT_DEFINED=0 BFD_HOST_64_BIT= @@ -156,181 +213,181 @@ COREFLAG= if test "${target}" = "${host}"; then case "${host}" in alpha*-*-linux*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/alphalinux.h") ;; - alpha*-*-*) COREFILE=osf-core.o ;; - arm-*-riscix) COREFILE=trad-core.o ;; - hppa*-*-hpux*) COREFILE=hpux-core.o ;; - hppa*-*-hiux*) COREFILE=hpux-core.o ;; - hppa*-*-bsd*) COREFILE="hpux-core.o hppabsd-core.o" + alpha*-*-*) COREFILE=osf-core.lo ;; + arm-*-riscix) COREFILE=trad-core.lo ;; + hppa*-*-hpux*) COREFILE=hpux-core.lo ;; + hppa*-*-hiux*) COREFILE=hpux-core.lo ;; + hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; changequote(,)dnl i[3456]86-sequent-bsd*) changequote([,])dnl - COREFILE=trad-core.o; + COREFILE=trad-core.lo; AC_DEFINE(TRAD_HEADER,"hosts/symmetry.h") ;; changequote(,)dnl i[3456]86-sequent-sysv4*) ;; i[3456]86-sequent-sysv*) changequote([,])dnl - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/symmetry.h") ;; changequote(,)dnl i[3456]86-*-bsd* | i[3456]86-*-freebsd*) changequote([,])dnl - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/i386bsd.h") ;; changequote(,)dnl i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) changequote([,])dnl - COREFILE=netbsd-core.o + COREFILE=netbsd-core.lo ;; changequote(,)dnl i[3456]86-esix-sysv3*) changequote([,])dnl - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/esix.h") ;; changequote(,)dnl i[3456]86-*-sco* | i[3456]86-*-isc*) changequote([,])dnl - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/i386sco.h") ;; changequote(,)dnl i[3456]86-*-mach3*) changequote([,])dnl - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/i386mach3.h") ;; changequote(,)dnl i[3456]86-*-linux*) changequote([,])dnl - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/i386linux.h") ;; changequote(,)dnl - i[3456]86-*-isc*) COREFILE=trad-core.o ;; - i[3456]86-*-aix*) COREFILE=aix386-core.o ;; + i[3456]86-*-isc*) COREFILE=trad-core.lo ;; + i[3456]86-*-aix*) COREFILE=aix386-core.lo ;; changequote([,])dnl i860-*-mach3* | i860-*-osf1*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/i860mach3.h") ;; mips-dec-bsd*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/mipsbsd.h") ;; mips-dec-mach3*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/mipsmach3.h") ;; mips-*-netbsd* | mips*-*-openbsd*) - COREFILE=netbsd-core.o + COREFILE=netbsd-core.lo ;; mips-dec-*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/decstation.h") ;; - mips-sgi-irix4*) COREFILE=irix-core.o ;; - mips-sgi-irix5*) COREFILE=irix-core.o ;; - mips-sgi-irix6*) COREFILE=irix-core.o ;; + mips-sgi-irix4*) COREFILE=irix-core.lo ;; + mips-sgi-irix5*) COREFILE=irix-core.lo ;; + mips-sgi-irix6*) COREFILE=irix-core.lo ;; mips-*-mach3*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/mipsmach3.h") ;; mips-*-sysv4*) ;; mips-*-sysv* | mips-*-riscos*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/riscos.h") ;; mips-sony-bsd*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/news-mips.h") ;; m68*-bull*-sysv*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/dpx2.h") ;; - m68*-hp-hpux*) COREFILE=hpux-core.o ;; + m68*-hp-hpux*) COREFILE=hpux-core.lo ;; m68*-hp-bsd*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/hp300bsd.h") ;; m68*-*-linux*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/m68klinux.h") ;; m68*-motorola-sysv*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER, "hosts/delta68.h") ;; m68*-sony-*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/news.h") ;; m68*-*-netbsd* | m68*-*-openbsd*) - COREFILE=netbsd-core.o + COREFILE=netbsd-core.lo ;; m68*-apple-aux*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/m68kaux.h") ;; m88*-*-sysv4*) ;; - m88*-motorola-sysv*) COREFILE=ptrace-core.o ;; + m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;; m88*-*-mach3*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/m88kmach3.h") ;; ns32k-pc532-mach) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/pc532mach.h") ;; ns32k-*-netbsd* | ns32k-*-openbsd*) - COREFILE=netbsd-core.o - ;; - rs6000-*-lynx*) COREFILE=lynx-core.o ;; - rs6000-*-aix4*) COREFILE=rs6000-core.o ;; - rs6000-*-*) COREFILE=rs6000-core.o ;; - powerpc-*-*bsd*) COREFILE=netbsd-core.o ;; - powerpc-*-aix4*) COREFILE=rs6000-core.o ;; - powerpc-*-aix*) COREFILE=rs6000-core.o ;; + COREFILE=netbsd-core.lo + ;; + rs6000-*-lynx*) COREFILE=lynx-core.lo ;; + rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; + rs6000-*-*) COREFILE=rs6000-core.lo ;; + powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; + powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; + powerpc-*-aix*) COREFILE=rs6000-core.lo ;; powerpc-*-beos*) ;; sparc-*-netbsd* | sparc-*-openbsd*) - COREFILE=netbsd-core.o + COREFILE=netbsd-core.lo ;; tahoe-*-*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/tahoe.h") ;; vax-*-ultrix2*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/vaxult2.h") ;; vax-*-ultrix*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/vaxult2.h") ;; vax-*-*) - COREFILE=trad-core.o + COREFILE=trad-core.lo AC_DEFINE(TRAD_HEADER,"hosts/vaxbsd.h") ;; esac case "$COREFILE" in - aix386-core.o) COREFLAG=-DAIX386_CORE ;; - hppabsd-core.o) COREFLAG=-DHPPABSD_CORE ;; - hpux-core.o) COREFLAG=-DHPUX_CORE ;; - irix-core.o) COREFLAG=-DIRIX_CORE ;; - lynx-core.o) COREFLAG=-DLYNX_CORE ;; - osf-core.o) COREFLAG=-DOSF_CORE ;; - ptrace-core.o) COREFLAG=-DPTRACE_CORE ;; - rs6000-core.o) COREFLAG="$COREFLAG -DAIX_CORE" ;; - trad-core.o) COREFLAG="$COREFLAG -DTRAD_CORE" ;; + aix386-core.lo) COREFLAG=-DAIX386_CORE ;; + hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; + hpux-core.lo) COREFLAG=-DHPUX_CORE ;; + irix-core.lo) COREFLAG=-DIRIX_CORE ;; + lynx-core.lo) COREFLAG=-DLYNX_CORE ;; + osf-core.lo) COREFLAG=-DOSF_CORE ;; + ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; + rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; + trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; esac # The ELF code uses the native <sys/procfs.h> to handle core files. @@ -417,150 +474,150 @@ selarchs="$f" # Target backend .o files. tb= -elf="elf.o elflink.o" +elf="elf.lo elflink.lo" for vec in $selvecs do case "$vec" in # This list is alphabetized to make it easy to compare # with the two vector lists in targets.c. - a29kcoff_big_vec) tb="$tb coff-a29k.o cofflink.o" ;; - a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o" ;; - armcoff_little_vec) tb="$tb coff-arm.o cofflink.o " ;; - armcoff_big_vec) tb="$tb coff-arm.o cofflink.o " ;; - armpe_little_vec) tb="$tb pe-arm.o cofflink.o " ;; - armpe_big_vec) tb="$tb pe-arm.o cofflink.o " ;; - armpei_little_vec) tb="$tb pei-arm.o cofflink.o " ;; - armpei_big_vec) tb="$tb pei-arm.o cofflink.o " ;; - aout0_big_vec) tb="$tb aout0.o aout32.o" ;; - aout_arm_big_vec) tb="$tb aout-arm.o aout32.o" ;; - aout_arm_little_vec) tb="$tb aout-arm.o aout32.o" ;; - aout_mips_big_vec) tb="$tb mipsbsd.o aout32.o" ;; - aout_mips_little_vec) tb="$tb mipsbsd.o aout32.o" ;; - apollocoff_vec) tb="$tb coff-apollo.o" ;; - b_out_vec_big_host) tb="$tb bout.o aout32.o" ;; - b_out_vec_little_host) tb="$tb bout.o aout32.o" ;; - bfd_elf64_alpha_vec) tb="$tb elf64-alpha.o elf64.o $elf" + a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; + a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; + armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; + armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; + armpe_little_vec) tb="$tb pe-arm.lo cofflink.lo " ;; + armpe_big_vec) tb="$tb pe-arm.lo cofflink.lo " ;; + armpei_little_vec) tb="$tb pei-arm.lo cofflink.lo " ;; + armpei_big_vec) tb="$tb pei-arm.lo cofflink.lo " ;; + aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; + aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; + aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; + aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;; + aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;; + apollocoff_vec) tb="$tb coff-apollo.lo" ;; + b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; + b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; + bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" target64=true ;; # start-sanitize-arc - bfd_elf32_littlearc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;; - bfd_elf32_bigarc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;; + bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; + bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; # end-sanitize-arc - bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;; - bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;; - bfd_elf64_bigmips_vec) tb="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o" + bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; + bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; + bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" target64=true ;; - bfd_elf32_d10v_vec) tb="$tb elf32-d10v.o elf32.o $elf" ;; + bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; # start-sanitize-d30v - bfd_elf32_d30v_vec) tb="$tb elf32-d30v.o elf32.o $elf" ;; + bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; # end-sanitize-d30v - bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o $elf" ;; - bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o $elf" ;; - bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o $elf" ;; - bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;; - bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;; - bfd_elf64_littlemips_vec) tb="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o" + bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; + bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; + bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; + bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; + bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;; + bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo" target64=true ;; - bfd_elf32_m32r_vec) tb="$tb elf32-m32r.o elf32.o $elf" ;; - bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o $elf" ;; - bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o $elf" ;; - bfd_elf32_mn10200_vec) tb="$tb elf-m10200.o elf32.o $elf" ;; - bfd_elf32_mn10300_vec) tb="$tb elf-m10300.o elf32.o $elf" ;; - bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;; - bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;; - bfd_elf32_sh_vec) tb="$tb elf32-sh.o elf32.o $elf coff-sh.o" ;; - bfd_elf32_shl_vec) tb="$tb elf32-sh.o elf32.o $elf coff-sh.o" ;; - bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o $elf" ;; + bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; + bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; + bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; + bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; + bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; + bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; + bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; + bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; + bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; + bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; # start-sanitize-v850 - bfd_elf32_v850_vec) tb="$tb elf32-v850.o elf32.o $elf" ;; + bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; # end-sanitize-v850 - bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o $elf" + bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" target64=true ;; - bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o $elf" + bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf" target64=true ;; - bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o $elf" + bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf" target64=true ;; - cisco_core_vec) tb="$tb cisco-core.o" ;; - demo_64_vec) tb="$tb demo64.o aout64.o" + cisco_core_vec) tb="$tb cisco-core.lo" ;; + demo_64_vec) tb="$tb demo64.lo aout64.lo" target64=true ;; - ecoff_big_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;; - ecoff_little_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;; - ecoff_biglittle_vec) tb="$tb coff-mips.o ecoff.o ecofflink.o" ;; - ecoffalpha_little_vec) tb="$tb coff-alpha.o ecoff.o ecofflink.o" + ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; + ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; + ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; + ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo" target64=true ;; - go32coff_vec) tb="$tb coff-go32.o cofflink.o" ;; - go32stubbedcoff_vec) tb="$tb coff-stubgo32.o cofflink.o" ;; - evax_alpha_vec) tb="$tb evax-alpha.o evax-emh.o evax-egsd.o evax-etir.o evax-misc.o" + go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; + go32stubbedcoff_vec) tb="$tb coff-stubgo32.lo cofflink.lo" ;; + evax_alpha_vec) tb="$tb evax-alpha.lo evax-emh.lo evax-egsd.lo evax-etir.lo evax-misc.lo" target64=true ;; - h8300coff_vec) tb="$tb coff-h8300.o reloc16.o" ;; - h8500coff_vec) tb="$tb coff-h8500.o reloc16.o" ;; - host_aout_vec) tb="$tb host-aout.o aout32.o" ;; - hp300bsd_vec) tb="$tb hp300bsd.o aout32.o" ;; - hp300hpux_vec) tb="$tb hp300hpux.o aout32.o" ;; - i386aout_vec) tb="$tb i386aout.o aout32.o" ;; - i386bsd_vec) tb="$tb i386bsd.o aout32.o" ;; - i386coff_vec) tb="$tb coff-i386.o cofflink.o" ;; - i386dynix_vec) tb="$tb i386dynix.o aout32.o" ;; - i386freebsd_vec) tb="$tb i386freebsd.o aout32.o" ;; - i386msdos_vec) tb="$tb i386msdos.o" ;; - i386pe_vec) tb="$tb pe-i386.o cofflink.o " ;; - i386pei_vec) tb="$tb pei-i386.o cofflink.o" ;; - i386linux_vec) tb="$tb i386linux.o aout32.o" ;; - i386lynx_aout_vec) tb="$tb i386lynx.o lynx-core.o aout32.o" ;; - i386lynx_coff_vec) tb="$tb cf-i386lynx.o cofflink.o lynx-core.o" ;; - i386mach3_vec) tb="$tb i386mach3.o aout32.o" ;; - i386netbsd_vec) tb="$tb i386netbsd.o aout32.o" ;; - i386os9k_vec) tb="$tb i386os9k.o aout32.o" ;; - i860coff_vec) tb="$tb coff-i860.o cofflink.o" ;; - icoff_big_vec) tb="$tb coff-i960.o cofflink.o" ;; - icoff_little_vec) tb="$tb coff-i960.o cofflink.o" ;; - ieee_vec) tb="$tb ieee.o" ;; - m68kcoff_vec) tb="$tb coff-m68k.o cofflink.o" ;; - m68kcoffun_vec) tb="$tb coff-u68k.o coff-m68k.o cofflink.o" ;; - m68klinux_vec) tb="$tb m68klinux.o aout32.o" ;; - m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o" ;; - m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o" ;; - m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o" ;; - m68k4knetbsd_vec) tb="$tb m68k4knetbsd.o aout32.o" ;; - m68kaux_coff_vec) tb="$tb coff-aux.o coff-m68k.o cofflink.o" ;; - m68ksysvcoff_vec) tb="$tb coff-svm68k.o cofflink.o" ;; - m88kbcs_vec) tb="$tb coff-m88k.o" ;; - newsos3_vec) tb="$tb newsos3.o aout32.o" ;; - nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;; - nlm32_sparc_vec) tb="$tb nlm32-sparc.o nlm32.o nlm.o" ;; - nlm32_alpha_vec) tb="$tb nlm32-alpha.o nlm32.o nlm.o" + h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; + h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; + host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; + hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; + hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; + i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; + i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; + i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; + i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; + i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; + i386msdos_vec) tb="$tb i386msdos.lo" ;; + i386pe_vec) tb="$tb pe-i386.lo cofflink.lo " ;; + i386pei_vec) tb="$tb pei-i386.lo cofflink.lo" ;; + i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; + i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; + i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; + i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; + i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; + i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; + i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; + icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; + icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; + ieee_vec) tb="$tb ieee.lo" ;; + m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; + m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; + m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; + m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; + m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; + m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; + m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; + m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; + m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; + m88kbcs_vec) tb="$tb coff-m88k.lo" ;; + newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; + nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; + nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; + nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo" target64=true ;; - riscix_vec) tb="$tb aout32.o riscix.o" ;; - nlm32_powerpc_vec) tb="$tb nlm32-ppc.o nlm32.o nlm.o" ;; - pc532netbsd_vec) tb="$tb ns32knetbsd.o aout-ns32k.o" ;; - pc532machaout_vec) tb="$tb pc532-mach.o aout-ns32k.o" ;; - pmac_xcoff_vec) tb="$tb coff-pmac.o xcofflink.o" ;; - rs6000coff_vec) tb="$tb coff-rs6000.o xcofflink.o" ;; - bfd_powerpc_pe_vec) tb="$tb pe-ppc.o cofflink.o" ;; - bfd_powerpcle_pe_vec) tb="$tb pe-ppc.o cofflink.o" ;; - bfd_powerpc_pei_vec) tb="$tb pei-ppc.o cofflink.o" ;; - bfd_powerpcle_pei_vec) tb="$tb pei-ppc.o cofflink.o" ;; - ppcboot_vec) tb="$tb ppcboot.o" ;; - shcoff_vec) tb="$tb coff-sh.o cofflink.o" ;; - shlcoff_vec) tb="$tb coff-sh.o cofflink.o" ;; - som_vec) tb="$tb som.o" ;; - sparcle_aout_vec) tb="$tb aout-sparcle.o aout32.o" ;; - sparclinux_vec) tb="$tb sparclinux.o aout32.o stab-syms.o" ;; - sparclynx_aout_vec) tb="$tb sparclynx.o lynx-core.o aout32.o" ;; - sparclynx_coff_vec) tb="$tb cf-sparclynx.o lynx-core.o" ;; - sparcnetbsd_vec) tb="$tb sparcnetbsd.o aout32.o" ;; - sparccoff_vec) tb="$tb coff-sparc.o" ;; - srec_vec) tb="$tb srec.o" ;; - sunos_big_vec) tb="$tb sunos.o aout32.o" ;; - symbolsrec_vec) tb="$tb srec.o" ;; - tekhex_vec) tb="$tb tekhex.o" ;; + riscix_vec) tb="$tb aout32.lo riscix.lo" ;; + nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; + pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; + pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; + pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;; + rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; + bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;; + bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;; + bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;; + bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;; + ppcboot_vec) tb="$tb ppcboot.lo" ;; + shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; + shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; + som_vec) tb="$tb som.lo" ;; + sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; + sparclinux_vec) tb="$tb sparclinux.lo aout32.lo stab-syms.lo" ;; + sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; + sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; + sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; + sparccoff_vec) tb="$tb coff-sparc.lo" ;; + srec_vec) tb="$tb srec.lo" ;; + sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; + symbolsrec_vec) tb="$tb srec.lo" ;; + tekhex_vec) tb="$tb tekhex.lo" ;; # start-sanitize-tic80 - tic80coff_vec) tb="$tb coff-tic80.o cofflink.o" ;; + tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; # end-sanitize-tic80 - we32kcoff_vec) tb="$tb coff-we32k.o" ;; - z8kcoff_vec) tb="$tb coff-z8k.o reloc16.o" ;; - w65_vec) tb="$tb coff-w65.o reloc16.o" ;; - versados_vec) tb="$tb versados.o" ;; + we32kcoff_vec) tb="$tb coff-we32k.lo" ;; + z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; + w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; + versados_vec) tb="$tb versados.lo" ;; "") ;; *) AC_MSG_ERROR(*** unknown target vector $vec) ;; @@ -570,7 +627,7 @@ done # Target architecture .o files. # A couple of CPUs use shorter file names to avoid problems on DOS # filesystems. -ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.o/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` +ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` # Weed out duplicate .o files. f="" @@ -646,5 +703,4 @@ case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in esac rm -f doc/config.status -AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h, -[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac]) +AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h) |