]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-03-22 Pavel Roskin <pavel_roskin@geocities.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sun, 21 Mar 1999 13:54:14 +0000 (13:54 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sun, 21 Mar 1999 13:54:14 +0000 (13:54 +0000)
* autoheader.sh: Report an error if AC_CONFIG_HEADER is not
present in the configure input file.

ChangeLog
autoheader.in
autoheader.sh
bin/autoheader.in

index f2638e89b6bd38f678004aa7d0b9ab9c9eb40f73..75a6a994327dfe52a427b8748a74549c40c790c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-03-22  Pavel Roskin  <pavel_roskin@geocities.com>
+
+       * autoheader.sh: Report an error if AC_CONFIG_HEADER is not
+       present in the configure input file.
+
 1999-03-21  Ben Elliston  <bje@cygnus.com>
 
        * config.guess: Correct typo for detecting ELF on FreeBSD.
index 20eabaed3c39f628f8dcd52e643dea7ed0dcc1b6..67f642fbc572a0ae04f2dc2ef6bc52fb8ea90f86 100644 (file)
@@ -108,7 +108,7 @@ case $# in
   *) echo "$usage" >&2; exit 1 ;;
 esac
 
-config_h=config.h
+config_h=undefined
 syms=
 types=
 funcs=
@@ -150,19 +150,20 @@ eval "`$M4 -I$AC_MACRODIR $use_localdir $r autoheader.m4$f $infile |
 # is a substring of it.
 syms="`for sym in $syms; do echo $sym; done | sort | uniq | sed 's@^@ @'`"
 
-if test $# -eq 0; then
-  tmpout=autoh$$
-  trap "rm -f $tmpout; exit 1" 1 2 15
-  exec > $tmpout
-fi
-
 # Support "outfile[:infile]", defaulting infile="outfile.in".
 case "$config_h" in
+undefined) echo "error: AC_CONFIG_HEADER not found in $infile" >&2; exit 1 ;;
 *:*) config_h_in=`echo "$config_h"|sed 's%.*:%%'`
      config_h=`echo "$config_h"|sed 's%:.*%%'` ;;
 *) config_h_in="${config_h}.in" ;;
 esac
 
+if test $# -eq 0; then
+  tmpout=autoh$$
+  trap "rm -f $tmpout; exit 1" 1 2 15
+  exec > $tmpout
+fi
+
 # Don't write "do not edit" -- it will get copied into the
 # config.h, which it's ok to edit.
 cat <<EOF
index 20eabaed3c39f628f8dcd52e643dea7ed0dcc1b6..67f642fbc572a0ae04f2dc2ef6bc52fb8ea90f86 100644 (file)
@@ -108,7 +108,7 @@ case $# in
   *) echo "$usage" >&2; exit 1 ;;
 esac
 
-config_h=config.h
+config_h=undefined
 syms=
 types=
 funcs=
@@ -150,19 +150,20 @@ eval "`$M4 -I$AC_MACRODIR $use_localdir $r autoheader.m4$f $infile |
 # is a substring of it.
 syms="`for sym in $syms; do echo $sym; done | sort | uniq | sed 's@^@ @'`"
 
-if test $# -eq 0; then
-  tmpout=autoh$$
-  trap "rm -f $tmpout; exit 1" 1 2 15
-  exec > $tmpout
-fi
-
 # Support "outfile[:infile]", defaulting infile="outfile.in".
 case "$config_h" in
+undefined) echo "error: AC_CONFIG_HEADER not found in $infile" >&2; exit 1 ;;
 *:*) config_h_in=`echo "$config_h"|sed 's%.*:%%'`
      config_h=`echo "$config_h"|sed 's%:.*%%'` ;;
 *) config_h_in="${config_h}.in" ;;
 esac
 
+if test $# -eq 0; then
+  tmpout=autoh$$
+  trap "rm -f $tmpout; exit 1" 1 2 15
+  exec > $tmpout
+fi
+
 # Don't write "do not edit" -- it will get copied into the
 # config.h, which it's ok to edit.
 cat <<EOF
index 20eabaed3c39f628f8dcd52e643dea7ed0dcc1b6..67f642fbc572a0ae04f2dc2ef6bc52fb8ea90f86 100644 (file)
@@ -108,7 +108,7 @@ case $# in
   *) echo "$usage" >&2; exit 1 ;;
 esac
 
-config_h=config.h
+config_h=undefined
 syms=
 types=
 funcs=
@@ -150,19 +150,20 @@ eval "`$M4 -I$AC_MACRODIR $use_localdir $r autoheader.m4$f $infile |
 # is a substring of it.
 syms="`for sym in $syms; do echo $sym; done | sort | uniq | sed 's@^@ @'`"
 
-if test $# -eq 0; then
-  tmpout=autoh$$
-  trap "rm -f $tmpout; exit 1" 1 2 15
-  exec > $tmpout
-fi
-
 # Support "outfile[:infile]", defaulting infile="outfile.in".
 case "$config_h" in
+undefined) echo "error: AC_CONFIG_HEADER not found in $infile" >&2; exit 1 ;;
 *:*) config_h_in=`echo "$config_h"|sed 's%.*:%%'`
      config_h=`echo "$config_h"|sed 's%:.*%%'` ;;
 *) config_h_in="${config_h}.in" ;;
 esac
 
+if test $# -eq 0; then
+  tmpout=autoh$$
+  trap "rm -f $tmpout; exit 1" 1 2 15
+  exec > $tmpout
+fi
+
 # Don't write "do not edit" -- it will get copied into the
 # config.h, which it's ok to edit.
 cat <<EOF