diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-12-12 02:29:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-12-12 02:29:18 +0000 |
commit | b9dbb25306887f4e45ee9a75cf0416426e2ad35f (patch) | |
tree | c6cc8f275238cec9d9fe89b5b7333bcdf3844f1b | |
parent | 374d511f464aaa020409f92b5b5099e72c9321e3 (diff) |
If --enable-add-ons is given without an argument, set the addons list
to all subdirs with a configure script.
-rw-r--r-- | configure.in | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 5d35ac51c5..c3b971451f 100644 --- a/configure.in +++ b/configure.in @@ -85,14 +85,24 @@ fi 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=]) +[ --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,... + search for add-ons if no parameter given], + [case "$enableval" in + yes) add_ons=`echo $srcdir/*/configure | \ + sed -e "s!$srcdir/!!g" -e 's!/configure!!g'`;; + *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;; + esac], + [add_ons=]) AC_CONFIG_SUBDIRS($add_ons) add_ons_pfx= if test x"$add_ons" != x; then for f in $add_ons; do - add_ons_pfx="$add_ons_pfx $f/" + # Test whether such a subdir really exists. + if test -d $srcdir/$f; then + add_ons_pfx="$add_ons_pfx $f/" + else + AC_MSG_ERROR(add-on directory \"$f\" does not exist) + fi done fi |