aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.ac
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2004-12-18 16:43:38 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2004-12-18 08:43:38 -0800
commit207db768e9f789aa5ae05d5ab896410c38cd2208 (patch)
tree678a333ec82bb203284379d3442639aaa13e6db8 /libiberty/configure.ac
parent4fb735e4bff30d180a4cfe05582d9f5c1fa8db7a (diff)
downloadgcc-207db768e9f789aa5ae05d5ab896410c38cd2208.zip
gcc-207db768e9f789aa5ae05d5ab896410c38cd2208.tar.gz
gcc-207db768e9f789aa5ae05d5ab896410c38cd2208.tar.bz2
Makefile.in (top_builddir): Set to `.'.
2004-12-18 H.J. Lu <hongjiu.lu@intel.com> * Makefile.in (top_builddir): Set to `.'. (OUTPUT_OPTION): Removed. (LIBTOOL): New. (LTLIBOBJS): New. (EXTRA_LTOFILES): New. (FLAGS_TO_PASS): Add EXTRA_LTOFILES. (all): Remove stamp-picdir. (LTCOMPILE): New. (.c.lo): New rule. (REQUIRED_LTOFILES): New. (CONFIGURED_LTOFILES): New. ($(TARGETLIB)): Check .libs for PIC object files. Depend on $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS). (stamp-picdir): Completely removed. (maint-missing): Pass $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES) $(CONFIGURED_OFILES) (maint-buildall): Depend on $(REQUIRED_LTOFILES) $(CONFIGURED_LTOFILES). (mostlyclean): Also remove *.lo .libs. Run "make maint-deps". * aclocal.m4: Include ../libtool.m4. * config.table: Don't check --enable-shared. * configure.ac (AC_PROG_LIBTOOL): Add. (AC_PROG_CC_C_O): Removed. (OUTPUT_OPTION): Removed. (NO_MINUS_C_MINUS_O): Removed. (ltpexecute): New substitute. (LIBOBJS): Cleanup. * configure: Regenerated. * maint-tool: Updated for .lo/libtool. From-SVN: r92353
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r--libiberty/configure.ac35
1 files changed, 10 insertions, 25 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 650faee..9e13b5c 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -113,21 +113,13 @@ GCC_NO_EXECUTABLES
AC_PROG_CC
AC_PROG_CPP_WERROR
+AC_PROG_LIBTOOL
+
if test x$GCC = xyes; then
ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
fi
AC_SUBST(ac_libiberty_warn_cflags)
-AC_PROG_CC_C_O
-# autoconf is lame and doesn't give us any substitution variable for this.
-if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
- NO_MINUS_C_MINUS_O=yes
-else
- OUTPUT_OPTION='-o $@'
-fi
-AC_SUBST(NO_MINUS_C_MINUS_O)
-AC_SUBST(OUTPUT_OPTION)
-
AC_C_CONST
AC_C_INLINE
AC_C_BIGENDIAN_CROSS
@@ -515,13 +507,16 @@ fi
# Figure out which version of pexecute to use.
case "${host}" in
- *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
- *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
- *-*-msdos*) pexecute=./pex-msdos.o ;;
- *-*-os2-emx*) pexecute=./pex-os2.o ;;
- *) pexecute=./pex-unix.o ;;
+ *-*-mingw* | *-*-winnt*) pex=./pex-win32 ;;
+ *-*-msdosdjgpp*) pex=./pex-djgpp ;;
+ *-*-msdos*) pex=./pex-msdos ;;
+ *-*-os2-emx*) pex=./pex-os2 ;;
+ *) pex=./pex-unix ;;
esac
+pexecute=${pex}.o
+ltpexecute=${pex}.lo
AC_SUBST(pexecute)
+AC_SUBST(ltpexecute)
libiberty_AC_FUNC_STRNCMP
@@ -534,16 +529,6 @@ else
fi
AC_SUBST(INSTALL_DEST)
-m4_pattern_allow(LIBOBJS)
-L=""
-for l in x $LIBOBJS; do
- case $l in
- x) ;;
- *) L="$L ./$l" ;;
- esac
-done
-LIBOBJS="$L"
-
# We need multilib support, but only if configuring for the target.
AC_CONFIG_FILES([Makefile testsuite/Makefile])
AC_CONFIG_COMMANDS([default],