aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.in
diff options
context:
space:
mode:
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-13 16:47:56 +0000
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-13 16:47:56 +0000
commitdb42028b69ab668886c7b77ac602eeb473892a6b (patch)
tree6efdb62e23ea1b74c2fa5ca8d8984cbaddc5a18a /libstdc++-v3/configure.in
parentfd2ce42712717e13ab2dd0a9568284546698d902 (diff)
2001-07-13 Stephen M. Webb <stephen@bregmasoft.com>
Loren J. Rittle <ljrittle@acm.org> Phil Edwards <pme@sources.redhat.com> * include/Makefile.am: New file encapsulating header generation rules. * Makefile.am (SUBDIRS): Prepend 'include' directory. * acinclude.m4: Moved/removed rules for building various headers. * configure.in (AC_OUTPUT): Add include/Makefile. * mkc++config: Removed. * testsuite_flags.in: Changed build-includes to match new scheme. * mknumeric_limits: Likewise. * libio/Makefile.am: Changed INCLUDES to maatch new header scheme. * libmath/Makefile.am: Likewise. * libsupc++/Makefile.am: Likewise. * src/Makefile.am: Likewise; removed rules to build headers. * libmath/mathconf.h: Changed #include'd header names to match. * libmath/stubs.c: Likewise. * src/gen-num-limits.cc: Likewise. * configure: Regenerated. * config.h.in: Regenerated. * aclocal.m4: Regenerated. * Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * libio/Makefile.in: Regenerated. * libmath/Makefile.in: Regenerated. * libsupc++/Makefile.in: Regenerated. * src/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43985 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/configure.in')
-rw-r--r--libstdc++-v3/configure.in58
1 files changed, 18 insertions, 40 deletions
diff --git a/libstdc++-v3/configure.in b/libstdc++-v3/configure.in
index ffbf49e218a..f9de3833533 100644
--- a/libstdc++-v3/configure.in
+++ b/libstdc++-v3/configure.in
@@ -36,6 +36,10 @@ AC_CANONICAL_SYSTEM
target_alias=${target_alias-$target}
AC_SUBST(target_alias)
+# Will set LN_S to either 'ln -s' or 'ln'. With autoconf 2.50+, can also
+# be 'cp -p' if linking isn't available.
+AC_PROG_LN_S
+
# We use these options to decide which functions to include.
AC_ARG_WITH(target-subdir,
[ --with-target-subdir=SUBDIR
@@ -53,8 +57,6 @@ AC_SUBST(enable_shared)
AC_SUBST(enable_static)
GLIBCPP_CHECK_GNU_MAKE
-
-
AM_CONFIG_HEADER(config.h)
# Check for c++ or library specific bits that don't require linking.
@@ -79,7 +81,7 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
# compiler may not run on this machine, may not be able to link
# executables, or may produce executables we can't run on this
# machine.
- xcompiling=1
+ GLIBCPP_IS_CROSS_COMPILING=1
# If Canadian cross, then don't pick up tools from the build
# directory.
@@ -196,7 +198,7 @@ else
# We are being configured natively. We can do more elaborate tests
# that include AC_TRY_COMPILE now, as the linker is assumed to be
# working.
- xcompiling=0
+ GLIBCPP_IS_CROSS_COMPILING=0
CANADIAN=no
# Check for available headers.
@@ -219,15 +221,14 @@ else
AC_FUNC_MMAP
fi
-# Now that ctype is determined for all possible targets, we can do this...
-AC_LINK_FILES($os_include_dir/bits/ctype_base.h, \
-include/bits/ctype_base.h)
-AC_LINK_FILES($os_include_dir/bits/ctype_inline.h, \
-include/bits/ctype_inline.h)
-AC_LINK_FILES($os_include_dir/bits/ctype_noninline.h, \
-include/bits/ctype_noninline.h)
-AC_LINK_FILES($ATOMICITYH/bits/atomicity.h, include/bits/atomicity.h)
+# Propagate the target-specific source directories through the build chain.
+OS_INC_SRCDIR=$os_include_dir/bits
+ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits
+AC_SUBST(OS_INC_SRCDIR)
+AC_SUBST(ATOMICITY_INC_SRCDIR)
+# Set up cross-compile flags
+AC_SUBST(GLIBCPP_IS_CROSS_COMPILING)
AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes)
AC_CACHE_SAVE
@@ -239,9 +240,6 @@ else
multilib_arg=
fi
-
-# Generate the various Makefiles, include files, and scripts.
-
# Needed so that g++ can find the correct include subdir automatically.
INTERFACE=v3
@@ -260,20 +258,16 @@ else
fi
AC_SUBST(LIBSUPCXX_PICFLAGS)
-# This should be done by mkincludedir, but hack around it now.
-blddir=`pwd`
-echo "checking for $blddir/include"
-
-if test ! -d "$blddir/include"; then
- mkdir "$blddir/include"
-fi
-
+# Generate the various Makefiles, include files, and scripts.
# NB: Multilibs need MULTISUBDIR defined correctly in src/Makefile.am
# and libsupc++/Makefile.am so that multilib installs will end up
# installed in the correct place. To work around this not being passed
# down from config-ml.in -> top_srcdir/Makefile.am ->
# top_srcdir/{src,libsupc++}/Makefile.am, manually append it here.
-AC_OUTPUT(Makefile src/Makefile libmath/Makefile libio/Makefile libsupc++/Makefile testsuite/Makefile mkcheck testsuite_flags,
+AC_OUTPUT(Makefile \
+ include/Makefile src/Makefile \
+ libmath/Makefile libio/Makefile libsupc++/Makefile \
+ testsuite/Makefile mkcheck testsuite_flags,
[if test -n "$CONFIG_FILES"; then
ac_file=Makefile . ${glibcpp_basedir}/../config-ml.in
grep '^MULTISUBDIR =' Makefile >> src/Makefile
@@ -294,22 +288,6 @@ CXX="${CXX}"
)
-# Generate bits/c++config.h
-# NB: This must be the first generated file as others include it. . .
-$srcdir/mkc++config $blddir $srcdir
-
-# Generate bits/std_limits.h and src/limitsMEMBERS.cc
-if test ! -f stamp-limits; then
- $srcdir/mknumeric_limits $blddir $srcdir $xcompiling
- if test ! -f include/bits/std_limits.h; then
- echo "mknumeric_limits failed to execute properly: exiting"
- exit 1
- else
- touch stamp-limits
- fi
-fi
-
-
# Sanity checking & User-visible messages.
# Checks down here, otherwise they get scrolled off before
# the user will notice.