summaryrefslogtreecommitdiff
path: root/configure.in
blob: 0dfd707a63f1c2004c2b907739f57699b385bddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
dnl Process this file with autoconf to produce configure.
AC_INIT(Makefile.in)
. $srcdir/GUILE-VERSION
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AM_MAINTAINER_MODE

dnl FIXME: tsort, xargs not GNU standard.
all_subdirs=`cat $srcdir/*/PLUGIN/REQ $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
req_subdirs=`cat $srcdir/*/PLUGIN/REQ /dev/null | tsort | xargs echo`
opt_subdirs=`cat $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`

AC_CONFIG_SUBDIRS($all_subdirs)
for d in $all_subdirs; do
  if test -d $srcdir/$d ; then
    existingdirs="$existingdirs $d"
    test -n "$silent" || echo Configuring plug-in component $d
  fi
done

for d in $req_subdirs; do
  test -d $srcdir/$d || {
     echo ERROR: Missing required package: $d 1>&2
     exit 1
  }
done

AC_SUBST(existingdirs)
AC_OUTPUT(Makefile newdoc/Makefile newdoc/ref/Makefile newdoc/tutorial/Makefile)