From 756c6912e5ccb107bb2b3ec4813871b409f889ab Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 5 Aug 1997 23:36:49 +0000 Subject: [PATCH] fix to missing program --- ChangeLog | 3 +++ THANKS | 1 + lib/missing | 10 +++++++++- missing | 10 +++++++++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 035fa813..4c89e968 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Tue Aug 5 16:59:41 1997 Tom Tromey + * missing: Examine A[CM]_CONFIG_HEADER for name of files to + touch. From Markus F.X.J. Oberhumer. + * automake.in (require_file_internal): Better error message when installing. diff --git a/THANKS b/THANKS index ef676b0d..6d5b5fee 100644 --- a/THANKS +++ b/THANKS @@ -2,6 +2,7 @@ Automake was originally written by David J. MacKenzie . It would not be what it is today without the invaluable help of these people: +"Markus F.X.J. Oberhumer" Akim Demaille Alexander V. Lukyanov Alexandre Oliva diff --git a/lib/missing b/lib/missing index a6abd069..79a3e4ed 100755 --- a/lib/missing +++ b/lib/missing @@ -80,7 +80,15 @@ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`configure.in'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." - touch config.h.in + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in` + if test -z "$files"; then + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in` + test -z "$files" || files="$files.in" + else + files=`echo "$files" | sed -e 's/:/ /g'` + fi + test -z "$files" && files="config.h.in" + touch $files ;; automake) diff --git a/missing b/missing index a6abd069..79a3e4ed 100755 --- a/missing +++ b/missing @@ -80,7 +80,15 @@ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`configure.in'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." - touch config.h.in + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER([^):]*:\([^)]*\)).*/\1/p' configure.in` + if test -z "$files"; then + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^):]*\)).*/\1/p' configure.in` + test -z "$files" || files="$files.in" + else + files=`echo "$files" | sed -e 's/:/ /g'` + fi + test -z "$files" && files="config.h.in" + touch $files ;; automake) -- 2.43.5