* alloca.c: New file, needed to support the AC_FUNC_ALLOCA call in
[bpt/guile.git] / configure.in
dissimilarity index 82%
index 00762c4..c11e3b3 100644 (file)
@@ -1,88 +1,27 @@
-AC_INIT(Makefile.in)
-
-rm -f config.build-subdirs
-
-. $srcdir/GUILE-VERSION
-
-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)
-existingdirs=
-for d in $all_subdirs; do
-  if test -d $srcdir/$d ; then
-    existingdirs="$existingdirs $d"
-    if test "x$verbose" = xyes; then
-       if test -f $srcdir/$d/PLUGIN/greet ; then
-         cat $srcdir/$d/PLUGIN/greet
-       else
-        echo ===
-        echo === Configuring plug-in component $d
-        echo ===
-       fi
-    fi
-  fi
-done
-
-for d in $req_subdirs; do
-  if test ! -d $srcdir/$d ; then
-    echo "*******"
-    echo "*******"
-    echo "**\+/**"
-    echo "**=*=**" ERROR: Missing required package: $d
-    echo "**/+\**"
-    echo "*******"
-    echo "*******"
-    exit 1
-  fi
-done
-
-if test "x$verbose" = xyes; then
-  for d in $opt_subdirs; do
-    if test ! -d $srcdir/$d ; then
-      echo "*****"
-      echo "*===*"
-      echo "*=*=*" WARNING: Missing suggested package: $d
-      echo "*===*"
-      echo "*****"
-    fi
-  done
-fi
-
-
-AC_PROG_CC
-
-### build_subdirs is the list of directories we actually want to
-### build.  It's not equivalent to existingdirs: if we can't find the
-### Tcl libraries, then we don't want to build in gtcltk-lib.
-###
-### So why can't we just forget about gtcltk-lib altogether, and
-### delete it from existingdirs, in that case?  Well, in order for
-### 'make dist' to work, we still need to configure gtcltk-lib, and
-### the top-level Makefile needs to know it exists,
-build_subdirs="${existingdirs}"
-
-### Decide which directories to build; remove the ones we don't want
-### from build_subdirs.
-
-### Use gtcltk-lib only if we seem to have Tcl installed on the
-### system.  We really should check for Tk as well, but that involves
-### finding all the X libraries that we need to do a complete link.
-AC_CHECK_LIB(tcl7.5, Tcl_CreateInterp, have_tcl=true, have_tcl=false, -lm)
-if $have_tcl; then :; else
-  build_subdirs="`echo $build_subdirs | sed s:gtcltk-lib::`"
-  req_subdirs="`echo $req_subdirs | sed s:gtcltk-lib::`"
-fi  
-
-### Write the list of survivors, the directories we do want to build,
-### to a file in the top level, so the subdirectories' configuration
-### scripts can find it.  We don't want to pass the list in the
-### environment, because the subdirectory configuration scripts can be
-### run on their own.
-echo "${build_subdirs}" > config.build-subdirs
-
-AC_SUBST(existingdirs)
-AC_SUBST(build_subdirs)
-AC_SUBST(GUILE_VERSION)
-AC_OUTPUT(Makefile doc/Makefile)
+dnl Process this file with autoconf to produce configure.
+AC_INIT(Makefile.in)
+. $srcdir/GUILE-VERSION
+AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
+
+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 doc/Makefile doc/guile-programmer/Makefile doc/guile-user/Makefile newdoc/Makefile newdoc/ref/Makefile newdoc/tutorial/Makefile)