about summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-10 04:12:12 +0000
committerRoland McGrath <roland@gnu.org>1995-03-10 04:12:12 +0000
commitff3d7ed36ae26261cc1c76e5f03ee053d65f9229 (patch)
treed3d4e3f17f3c4e7b6ff183615531400397655767 /configure.in
parentd8cc5f0c6a4c3efe88076c05c4e42cf2108b3763 (diff)
downloadglibc-ff3d7ed36ae26261cc1c76e5f03ee053d65f9229.tar.gz
glibc-ff3d7ed36ae26261cc1c76e5f03ee053d65f9229.tar.xz
glibc-ff3d7ed36ae26261cc1c76e5f03ee053d65f9229.zip
* configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
 	--enable-shared, --enable-profile, --enable-omitfp; pass settings
 	through to config.make.
	* config.make.in (build-shared, build-profile, build-omitfp): New
 	config vars.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in32
1 files changed, 27 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index bd4a1e7172..28314ca5a4 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_REVISION([$Id$])
-AC_PREREQ(2.1)dnl		dnl Minimum Autoconf version required.
+AC_REVISION([$CVSid$])
+AC_PREREQ(2.2)dnl		dnl Minimum Autoconf version required.
 AC_INIT(features.h)
 AC_CONFIG_HEADER(config.h)
 
@@ -19,6 +19,7 @@ gmp-srcdir = $withval" ;;
 esac
 ])
 
+dnl Arguments to specify presence of other packages/features.
 AC_ARG_WITH(gnu-binutils, dnl
   --with-gnu-binutils	  if using GNU binutils (as and ld),
 	    gnu_binutils=yes, gnu_binutils=no)
@@ -36,6 +37,18 @@ AC_ARG_WITH(weak-symbols, dnl
   --with-weak-symbols	  if weak symbols are available in as and ld,
 	    weak=yes, weak=no)
 
+dnl Arguments to enable or disable building the shared, profiled, and
+dnl -fomit-frame-pointer libraries.
+AC_ARG_ENABLE(shared, dnl
+[  --enable-shared         build shared library [default=yes if GNU ld & ELF]],
+	    shared=yes, shared=no, shared=default)
+AC_ARG_ENABLE(profile, dnl
+[  --enable-profile        build profiled library [default=yes]],
+	    profile=yes, profile=no, profile=yes)
+AC_ARG_ENABLE(omitfp, dnl
+[  --enable-omitfp       build undebuggable optimized library [default=no]],
+	    omitfp=yes, omitfp=no, omitfp=no)
+
 AC_CANONICAL_HOST
 # We keep the original values in `$config_*' and never modify them, so we
 # can write them unchanged into config.make.  Everything else uses
@@ -243,10 +256,10 @@ if test "$INSTALL" = "${srcdir}/install-sh"; then
   INSTALL='$(..)./install-sh'
 fi
 
-AC_PROG_CC
+AC_CHECK_TOOL(CC, gcc)
+AC_CHECK_TOOL(AR, ar)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
 AC_PROG_CPP
-AC_CHECK_PROG(AR, ar, ar, ar)
-AC_PROG_RANLIB
 
 AC_MSG_CHECKING(signed size_t type)
 AC_CACHE_VAL(libc_cv_signed_size_t, [dnl
@@ -402,6 +415,15 @@ if test $weak = yes; then
   AC_DEFINE(HAVE_WEAK_SYMBOLS)
 fi
 
+AC_SUBST(shared)
+if test $shared = default; then
+  if test $gnu_ld = yes; then
+    shared=$elf
+  fi
+fi
+AC_SUBST(profile)
+AC_SUBST(omitfp)
+
 
 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
   config_makefile=