Add hooks for using autconf-style Makefile.in in language subdirs.
authorPer Bothner <bothner@gcc.gnu.org>
Tue, 29 Jul 1997 22:03:06 +0000 (15:03 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Tue, 29 Jul 1997 22:03:06 +0000 (15:03 -0700)
* configure.in (all_outputs, oldstyle_subdirs):  New variables.
Pass all_outputs to AC_OUTPUT.

From-SVN: r14554

gcc/configure.in

index f18d23088fa2eecb853b9dc73867188944a57529..65a95fc1029f2eb445338c55dac25eda5c6a8874 100644 (file)
@@ -2923,6 +2923,7 @@ all_boot_languages=
 all_compilers=
 all_stagestuff=
 all_diff_excludes=
+all_outputs=Makefile
 # List of language makefile fragments.
 all_lang_makefiles=
 all_headers=
@@ -2937,6 +2938,7 @@ all_lib2funcs=
 
 language_fragments="Make-lang"
 language_hooks="Make-hooks"
+oldstyle_subdirs=
 
 for s in .. $subdirs
 do
@@ -2948,6 +2950,7 @@ do
                stagestuff=
                diff_excludes=
                headers=
+               outputs=
                lib2funcs=
                . ${srcdir}/$s/config-lang.in
                if [[ "x$language" = x ]]
@@ -2965,6 +2968,11 @@ do
                all_stagestuff="$all_stagestuff $stagestuff"
                all_diff_excludes="$all_diff_excludes $diff_excludes"
                all_headers="$all_headers $headers"
+               all_outputs="$all_outputs $outputs"
+               if [[ x$outputs = x ]]
+               then
+                       oldstyle_subdirs="$oldstyle_subdirs $s"
+               fi
                all_lib2funcs="$all_lib2funcs $lib2funcs"
        fi
 done
@@ -3073,7 +3081,7 @@ fi
 
 # Create the Makefile
 # and configure language subdirectories
-AC_OUTPUT(Makefile,
+AC_OUTPUT($all_outputs,
 [
 . $srcdir/configure.lang
 case x$CONFIG_HEADERS in