diff options
| author | Tom Yu <tlyu@mit.edu> | 1996-06-12 23:34:35 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 1996-06-12 23:34:35 +0000 |
| commit | 15e47291414a0ec73dfd4183492a3b6a8a295da4 (patch) | |
| tree | 29cccf4266ddcf559e8e5bee7cc0c3592954243a /src/util/autoconf | |
| parent | 44217b465a75cd6f6222eeda8df2e1f4a8fb13f0 (diff) | |
| download | krb5-15e47291414a0ec73dfd4183492a3b6a8a295da4.tar.gz krb5-15e47291414a0ec73dfd4183492a3b6a8a295da4.tar.xz krb5-15e47291414a0ec73dfd4183492a3b6a8a295da4.zip | |
* acgeneral.m4 (AC_OUTPUT_FILES): allow for multiple files in
AC_OUTPUT; this is done via
AC_OUTPUT(outfile[:infile1[+infile2[+infile3...]]]). The
source files are concatenated and substituted over.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8341 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/autoconf')
| -rw-r--r-- | src/util/autoconf/acgeneral.m4 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/util/autoconf/acgeneral.m4 b/src/util/autoconf/acgeneral.m4 index f2ac545cd..4e3d2a870 100644 --- a/src/util/autoconf/acgeneral.m4 +++ b/src/util/autoconf/acgeneral.m4 @@ -1987,7 +1987,19 @@ changequote([, ])dnl ])dnl echo creating "$ac_file" rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + # allow for outfile[:infile1[+infile2[+infile3...]]] syntax + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}+" + ac_files_in= + for ac_file_name in $ac_file_in + do + ac_files_in="$ac_files_in $ac_given_srcdir/$ac_file_name" + done + IFS="$ac_save_ifs" + configure_input=`echo $ac_files_in | sed 's%/./%/%g +s% *./%%g +s% *%+%g +s%^%Generated automatically from % +s%$% by configure.%'` case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; @@ -1999,7 +2011,7 @@ s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g ifdef([AC_PROVIDE_AC_PROG_INSTALL], [s%@INSTALL@%$INSTALL%g ])dnl -" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file +" -f conftest.subs $ac_files_in > $ac_file dnl This would break Makefile dependencies. dnl if cmp -s $ac_file conftest.out 2>/dev/null; then dnl echo "$ac_file is unchanged" |
