From 05cd62d64b7ca185753bf45d6eba8b977616c3d6 Mon Sep 17 00:00:00 2001 From: roland Date: Mon, 29 Jul 1996 05:29:56 +0000 Subject: [PATCH] Sun Jul 28 23:46:14 1996 Roland McGrath * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure in those directories. * config.make.in (add-ons): New varaible, set from @subdirs@. * Makefile (subdirs): Added $(add-ons) at the end. --- Makefile | 2 +- config.make.in | 1 + configure.in | 15 +++++++++++---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c83e9a3774..4b3446f13e 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ endif subdirs = csu assert ctype db locale intl catgets math setjmp signal stdlib \ stdio-common $(stdio) malloc string wcsmbs time dirent grp pwd\ posix io termios resource misc login socket sysvipc gmon gnulib \ - wctype manual $(sysdep-subdirs) nss elf po + wctype manual $(sysdep-subdirs) nss elf po $(add-ons) export subdirs := $(subdirs) # Benign, useless in GNU make before 3.63. # The mach and hurd subdirectories have many generated header files which diff --git a/config.make.in b/config.make.in index 2454003cb9..b099199c36 100644 --- a/config.make.in +++ b/config.make.in @@ -27,6 +27,7 @@ build-shared = @shared@ build-profile = @profile@ build-omitfp = @omitfp@ stdio = @stdio@ +add-ons = @subdirs@ # Build tools. CC = @CC@ diff --git a/configure.in b/configure.in index a8870c9c75..f1d3d9b0ca 100644 --- a/configure.in +++ b/configure.in @@ -63,13 +63,20 @@ 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=$enableval, shared=default) + shared=$enableval, shared=default) AC_ARG_ENABLE(profile, dnl [ --enable-profile build profiled library [default=yes]], - profile=$enableval, profile=yes) + profile=$enableval, profile=yes) AC_ARG_ENABLE(omitfp, dnl -[ --enable-omitfp build undebuggable optimized library [default=no]], - omitfp=$enableval, omitfp=no) +[ --enable-omitfp build undebuggable optimized library [default=no]], + omitfp=$enableval, omitfp=no) + +dnl Generic infrastructure for drop-in additions to libc. +AC_ARG_ENABLE(add-ons, dnl +[ --enable-add-ons=DIR... configure and build named extra directories], + add_ons=`echo "$enableval" | sed 's/,/ /g'`, + add_ons=) +AC_CONFIG_SUBDIRS($add_ons) AC_CANONICAL_HOST # We keep the original values in `$config_*' and never modify them, so we -- 2.11.0