]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_REVISION): Put a dot at the end of the line.
authorAkim Demaille <akim@epita.fr>
Tue, 1 Aug 2000 08:17:07 +0000 (08:17 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 1 Aug 2000 08:17:07 +0000 (08:17 +0000)
(_AC_INIT_HELP): Output the bug report address at
the end of a `configure --help' output.
(_AC_INIT_NOTICE): Ditto, but at the top of `configure'.

ChangeLog
acgeneral.m4
configure
lib/autoconf/general.m4

index 779d497b4d6c78fa1a21fd8c325de94ce42eb674..057171fc720e1654ac0706df43c4e75e70323093 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-08-01  Didier Verna  <didier@lrde.epita.fr>
+
+       * acgeneral.m4 (AC_REVISION): Put a dot at the end of the line.
+       (_AC_INIT_HELP): Output the bug report address at
+       the end of a `configure --help' output.
+       (_AC_INIT_NOTICE): Ditto, but at the top of `configure'.
+
 2000-07-31  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_INIT_PREPARE_FDS): New macro, pulled out of
index d5dcc420c53f623ef3c2d44b1d4f995e562598bc..c162ee24e8acadedaf45c59d4fe273a6b9c81e69 100644 (file)
@@ -1086,7 +1086,7 @@ $1])dnl
 # The second quote in the translit is just to cope with font-lock-mode
 # which sees the opening of a string.
 define([AC_REVISION],
-[AC_DIVERT([REVISION], [@%:@ From configure.in translit([$1], $"")])dnl
+[AC_DIVERT([REVISION], [@%:@ From configure.in translit([$1], $"").])dnl
 ])
 
 
@@ -1735,6 +1735,8 @@ ifset([AC_PACKAGE_STRING],
   cat <<\EOF
 AC_DIVERT_POP()dnl
 AC_DIVERT_PUSH([HELP_END])dnl
+ifset([AC_PACKAGE_BUGREPORT], [
+Report bugs to <AC_PACKAGE_BUGREPORT>.])
 EOF
 fi
 
@@ -1933,9 +1935,12 @@ AC_DIVERT_POP()dnl
 # ---------------
 define([_AC_INIT_NOTICE],
 [AC_DIVERT([NOTICE],
-[# Guess values for system-dependent variables and create Makefiles.
-@%:@ Generated by Autoconf AC_ACVERSION.])dnl
-])
+[@%:@ Guess values for system-dependent variables and create Makefiles.
+@%:@ Generated by Autoconf AC_ACVERSION[]dnl
+ifset([AC_PACKAGE_STRING], [ for AC_PACKAGE_STRING]).
+ifset([AC_PACKAGE_BUGREPORT], [@%:@
+@%:@ Report bugs to <AC_PACKAGE_BUGREPORT>.])dnl
+])])
 
 
 # _AC_INIT_COPYRIGHT
index 1c198f3f7ff10188025ea9e3ba218fc42b4ced99..feb3ff614e1d965421c97941608b662a042d62c5 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,8 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by Autoconf 2.14a.
+# Generated by Autoconf 2.14a for Autoconf 2.14a.
+#
+# Report bugs to <bug-autoconf@gnu.org>.
 #
 # Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
 # Free Software Foundation, Inc.
@@ -16,7 +18,9 @@ subdirs=
 MFLAGS= MAKEFLAGS=
 SHELL=${CONFIG_SHELL-/bin/sh}
 # Maximum number of lines to put in a shell here document.
-: ${ac_max_here_lines=48}
+# This variable seems obsolete.  It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
 # Sed expression to map a string onto a valid sh and CPP variable names.
 ac_tr_sh='sed y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
 ac_tr_cpp='sed y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
@@ -455,7 +459,7 @@ if test "$ac_init_help" = "long"; then
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
 To assign environment variables (e.g., CC, CFLAGS...), specify them as
-VAR=VALUE.  See below for descriptions of useful variables.
+VAR=VALUE.  See below for descriptions of some of the useful variables.
 
 Defaults for the options are specified in brackets.
 
@@ -515,6 +519,8 @@ if test -n "$ac_init_help"; then
      short | recursive ) echo "Configuration of Autoconf 2.14a:";;
    esac
   cat <<\EOF
+
+Report bugs to <bug-autoconf@gnu.org>.
 EOF
 fi
 
@@ -645,6 +651,7 @@ rm -rf conftest* confdefs.h
 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
 echo >confdefs.h
 
+# Let the site file select an alternate cache file if it wants to.
 # Prefer explicitly selected file to automatically selected ones.
 if test -z "$CONFIG_SITE"; then
   if test "x$prefix" != xNONE; then
@@ -675,24 +682,50 @@ else
   >$cache_file
 fi
 
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_suggest_removing_cache=false
+for ac_var in `(set) 2>&1 |
+               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+  eval ac_old_set=\$ac_cv_env_${ac_var}_set
+  eval ac_new_set=\$ac_env_${ac_var}_set
+  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
+  eval ac_new_val="\$ac_env_${ac_var}_value"
+  case $ac_old_set,$ac_new_set in
+    set,)
+      echo "configure: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2
+      ac_suggest_removing_cache=: ;;
+    ,set)
+      echo "configure: WARNING: \`$ac_var' was not set in the previous run" >&2
+      ac_suggest_removing_cache=: ;;
+    ,);;
+    *)
+      if test "x$ac_old_val" != "x$ac_new_val"; then
+        echo "configure: WARNING: \`$ac_var' has changed since the previous run:" >&2
+        echo "configure: WARNING:   former value:  $ac_old_val" >&2
+        echo "configure: WARNING:   current value: $ac_new_val" >&2
+        ac_suggest_removing_cache=:
+      fi;;
+  esac
+done
+if $ac_suggest_removing_cache; then
+  echo "configure: WARNING: changes in the environment can compromise the build" >&2
+  echo "configure: WARNING: consider removing $cache_file and starting over" >&2
+fi
+
 ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 ac_gnu_compiler=$ac_cv_prog_gcc
 
-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
-  # Stardent Vistra SVR4 grep lacks -e, says Kaveh R. Ghazi.
-  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
-    ECHO_N= ECHO_C='
-' ECHO_T='     '
-  else
-    ECHO_N=-n ECHO_C= ECHO_T=
-  fi
-else
-  ECHO_N= ECHO_C='\c' ECHO_T=
-fi
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='     ' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
 
 ac_aux_dir=
 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
@@ -728,7 +761,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
-echo "configure:641: checking for a BSD compatible install" >&5
+echo "configure:672: checking for a BSD compatible install" >&5
 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 if test -z "$INSTALL"; then
 if test "${ac_cv_path_install+set}" = set; then
@@ -775,7 +808,7 @@ fi
     INSTALL=$ac_install_sh
   fi
 fi
-echo "configure:687: result: $INSTALL" >&5
+echo "configure:718: result: $INSTALL" >&5
 echo "${ECHO_T}$INSTALL" >&6
 
 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -786,7 +819,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
-echo "configure:694: checking whether build environment is sane" >&5
+echo "configure:725: checking whether build environment is sane" >&5
 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 # Just in case
 sleep 1
@@ -823,7 +856,7 @@ else
 Check your system clock" >&2; exit 1; }
 fi
 rm -f conftest*
-echo "configure:729: result: yes" >&5
+echo "configure:760: result: yes" >&5
 echo "${ECHO_T}yes" >&6
 if test "$program_transform_name" = s,x,x,; then
   program_transform_name=
@@ -844,7 +877,7 @@ test "$program_suffix" != NONE &&
 # sed with no file args requires a program.
 test -z "$program_transform_name" && program_transform_name="s,x,x,"
 
-echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5
 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
@@ -864,11 +897,11 @@ fi
 rm -f conftestmake
 fi
 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
-  echo "configure:768: result: yes" >&5
+  echo "configure:799: result: yes" >&5
 echo "${ECHO_T}yes" >&6
   SET_MAKE=
 else
-  echo "configure:772: result: no" >&5
+  echo "configure:803: result: no" >&5
 echo "${ECHO_T}no" >&6
   SET_MAKE="MAKE=${MAKE-make}"
 fi
@@ -890,78 +923,78 @@ cat >>confdefs.h <<EOF
 EOF
 
 missing_dir=`cd $ac_aux_dir && pwd`
-echo "configure:788: checking for working aclocal" >&5
+echo "configure:819: checking for working aclocal" >&5
 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
    ACLOCAL=aclocal
-   echo "configure:795: result: found" >&5
+   echo "configure:826: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    ACLOCAL="$missing_dir/missing aclocal"
-   echo "configure:799: result: missing" >&5
+   echo "configure:830: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
-echo "configure:802: checking for working autoconf" >&5
+echo "configure:833: checking for working autoconf" >&5
 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
    AUTOCONF=autoconf
-   echo "configure:809: result: found" >&5
+   echo "configure:840: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    AUTOCONF="$missing_dir/missing autoconf"
-   echo "configure:813: result: missing" >&5
+   echo "configure:844: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
-echo "configure:816: checking for working automake" >&5
+echo "configure:847: checking for working automake" >&5
 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (automake --version) < /dev/null > /dev/null 2>&1; then
    AUTOMAKE=automake
-   echo "configure:823: result: found" >&5
+   echo "configure:854: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    AUTOMAKE="$missing_dir/missing automake"
-   echo "configure:827: result: missing" >&5
+   echo "configure:858: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
-echo "configure:830: checking for working autoheader" >&5
+echo "configure:861: checking for working autoheader" >&5
 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
    AUTOHEADER=autoheader
-   echo "configure:837: result: found" >&5
+   echo "configure:868: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    AUTOHEADER="$missing_dir/missing autoheader"
-   echo "configure:841: result: missing" >&5
+   echo "configure:872: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
-echo "configure:844: checking for working makeinfo" >&5
+echo "configure:875: checking for working makeinfo" >&5
 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
    MAKEINFO=makeinfo
-   echo "configure:851: result: found" >&5
+   echo "configure:882: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    MAKEINFO="$missing_dir/missing makeinfo"
-   echo "configure:855: result: missing" >&5
+   echo "configure:886: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
@@ -976,7 +1009,7 @@ for ac_prog in gm4 gnum4 m4
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
-echo "configure:868: checking for $ac_word" >&5
+echo "configure:899: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 if test "${ac_cv_path_M4+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1002,10 +1035,10 @@ esac
 fi
 M4=$ac_cv_path_M4
 if test -n "$M4"; then
-  echo "configure:893: result: $M4" >&5
+  echo "configure:924: result: $M4" >&5
 echo "${ECHO_T}$M4" >&6
 else
-  echo "configure:896: result: no" >&5
+  echo "configure:927: result: no" >&5
 echo "${ECHO_T}no" >&6
 fi
 
@@ -1013,7 +1046,7 @@ test -n "$M4" && break
 done
 test -n "$M4" || M4="m4"
 
-echo "configure:902: checking whether m4 supports frozen files" >&5
+echo "configure:933: checking whether m4 supports frozen files" >&5
 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
 if test "${ac_cv_prog_gnu_m4+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1025,7 +1058,7 @@ if test x"$M4" != x; then
   esac
 fi
 fi
-echo "configure:914: result: $ac_cv_prog_gnu_m4" >&5
+echo "configure:945: result: $ac_cv_prog_gnu_m4" >&5
 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
 if test x"$ac_cv_prog_gnu_m4" != xyes; then
   { echo "configure: error: GNU m4 1.4 is required" >&2; exit 1; }
@@ -1038,7 +1071,7 @@ for ac_prog in mawk gawk nawk awk
 do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
-echo "configure:926: checking for $ac_word" >&5
+echo "configure:957: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 if test "${ac_cv_prog_AWK+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1060,10 +1093,10 @@ fi
 fi
 AWK=$ac_cv_prog_AWK
 if test -n "$AWK"; then
-  echo "configure:947: result: $AWK" >&5
+  echo "configure:978: result: $AWK" >&5
 echo "${ECHO_T}$AWK" >&6
 else
-  echo "configure:950: result: no" >&5
+  echo "configure:981: result: no" >&5
 echo "${ECHO_T}no" >&6
 fi
 
@@ -1071,25 +1104,25 @@ test -n "$AWK" && break
 done
 
 # Generating man pages.
-echo "configure:956: checking for working help2man" >&5
+echo "configure:987: checking for working help2man" >&5
 echo $ECHO_N "checking for working help2man... $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if
 # an executable is not found, even if stderr is redirected.
 # Redirect stdin to placate older versions of autoconf.  Sigh.
 if (help2man --version) < /dev/null > /dev/null 2>&1; then
    HELP2MAN=help2man
-   echo "configure:963: result: found" >&5
+   echo "configure:994: result: found" >&5
 echo "${ECHO_T}found" >&6
 else
    HELP2MAN="\${SHELL} \${top_srcdir}/missing help2man"
-   echo "configure:967: result: missing" >&5
+   echo "configure:998: result: missing" >&5
 echo "${ECHO_T}missing" >&6
 fi
 
 # We use a path for perl so the #! line in autoscan will work.
 # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2
-echo "configure:973: checking for $ac_word" >&5
+echo "configure:1004: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 if test "${ac_cv_path_PERL+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1116,10 +1149,10 @@ esac
 fi
 PERL=$ac_cv_path_PERL
 if test -n "$PERL"; then
-  echo "configure:999: result: $PERL" >&5
+  echo "configure:1030: result: $PERL" >&5
 echo "${ECHO_T}$PERL" >&6
 else
-  echo "configure:1002: result: no" >&5
+  echo "configure:1033: result: no" >&5
 echo "${ECHO_T}no" >&6
 fi
 
@@ -1140,7 +1173,7 @@ fi
 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
-echo "configure:1021: checking for a BSD compatible install" >&5
+echo "configure:1052: checking for a BSD compatible install" >&5
 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 if test -z "$INSTALL"; then
 if test "${ac_cv_path_install+set}" = set; then
@@ -1187,7 +1220,7 @@ fi
     INSTALL=$ac_install_sh
   fi
 fi
-echo "configure:1067: result: $INSTALL" >&5
+echo "configure:1098: result: $INSTALL" >&5
 echo "${ECHO_T}$INSTALL" >&6
 
 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -1209,18 +1242,17 @@ trap '' 1 2 15
 cat >confcache <<\EOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure
-# scripts and configure runs.  It is not useful on other systems.
-# If it contains results you don't want to keep, you may remove or edit it.
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems.  If it contains results you don't
+# want to keep, you may remove or edit it.
 #
-# By default, configure uses `config.cache' as the cache file,
-# creating it if it does not exist already.  You can give configure
-# the --cache-file=FILE option to use a different cache file; that is
-# what configure does when it calls configure scripts in
-# subdirectories, so they share the cache.
-# Giving --cache-file=/dev/null disables caching, for debugging configure.
-# config.status only pays attention to the cache file if you give it the
-# --recheck option to rerun configure.
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
 #
+# `ac_cv_env_foo' variables (set or unset) will be overriden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
 EOF
 # The following way of writing the cache mishandles newlines in values,
 # but we know of no workaround that is simple, portable, and efficient.
@@ -1243,7 +1275,7 @@ EOF
       ;;
     esac;
 } |
-  sed 's/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/' >>confcache
+  sed '/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/' >>confcache
 if cmp -s $cache_file confcache; then :; else
   if test -w $cache_file; then
     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
@@ -1588,9 +1620,13 @@ cat >>$CONFIG_STATUS <<\EOF
 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   case $ac_file in
-  *:*) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
-       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
-  *) ac_file_in=$ac_file.in ;;
+  - | *:- | *:-:* ) # input from stdin
+        cat >$tmp/stdin
+        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
   esac
 
   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
@@ -1634,20 +1670,39 @@ done; }
   *) INSTALL=$ac_dots$ac_given_INSTALL ;;
   esac
 
-  echo creating "$ac_file"
-  rm -f "$ac_file"
+  if test x"$ac_file" != x-; then
+    echo creating $ac_file
+    rm -f "$ac_file"
+  fi
   configure_input="Generated automatically from `echo $ac_file_in |
                                                  sed 's,.*/,,'` by configure."
 
   # Don't redirect the output to AC_FILE directly: use `mv' so that
   # updating is atomic, and doesn't need trapping.
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
   ac_file_inputs=`IFS=:
-                  for f in $ac_file_in; do echo $ac_given_srcdir/$f; done`
-  for ac_file_input in $ac_file_inputs;
-  do
-    test -f "$ac_file_input" ||
-        { echo "configure: error: cannot find input file \`$ac_file_input'" >&2; exit 1; }
-  done
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]* | ?:[\\/]*)
+         # Absolute
+         test -f "$f" || { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
+         echo $f;;
+      *) # Relative
+         if test -f "$f"; then
+           # Build tree
+           echo $f
+         elif test -f "$ac_given_srcdir/$f"; then
+           # Source tree
+           echo $ac_given_srcdir/$f
+         else
+           # /dev/null tree
+           { echo "configure: error: cannot find input file \\\`$f'" >&2; exit 1; }
+         fi;;
+      esac
+    done`
 EOF
 cat >>$CONFIG_STATUS <<EOF
   sed "$ac_vpsub
@@ -1661,7 +1716,13 @@ s,@srcdir@,$srcdir,;t t
 s,@top_srcdir@,$top_srcdir,;t t
 s,@INSTALL@,$INSTALL,;t t
 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
-  mv $tmp/out $ac_file
+  rm -f $tmp/stdin
+  if test x"$ac_file" != x-; then
+    mv $tmp/out $ac_file
+  else
+    cat $tmp/out
+    rm -f $tmp/out
+  fi
 
 done
 EOF
index d5dcc420c53f623ef3c2d44b1d4f995e562598bc..c162ee24e8acadedaf45c59d4fe273a6b9c81e69 100644 (file)
@@ -1086,7 +1086,7 @@ $1])dnl
 # The second quote in the translit is just to cope with font-lock-mode
 # which sees the opening of a string.
 define([AC_REVISION],
-[AC_DIVERT([REVISION], [@%:@ From configure.in translit([$1], $"")])dnl
+[AC_DIVERT([REVISION], [@%:@ From configure.in translit([$1], $"").])dnl
 ])
 
 
@@ -1735,6 +1735,8 @@ ifset([AC_PACKAGE_STRING],
   cat <<\EOF
 AC_DIVERT_POP()dnl
 AC_DIVERT_PUSH([HELP_END])dnl
+ifset([AC_PACKAGE_BUGREPORT], [
+Report bugs to <AC_PACKAGE_BUGREPORT>.])
 EOF
 fi
 
@@ -1933,9 +1935,12 @@ AC_DIVERT_POP()dnl
 # ---------------
 define([_AC_INIT_NOTICE],
 [AC_DIVERT([NOTICE],
-[# Guess values for system-dependent variables and create Makefiles.
-@%:@ Generated by Autoconf AC_ACVERSION.])dnl
-])
+[@%:@ Guess values for system-dependent variables and create Makefiles.
+@%:@ Generated by Autoconf AC_ACVERSION[]dnl
+ifset([AC_PACKAGE_STRING], [ for AC_PACKAGE_STRING]).
+ifset([AC_PACKAGE_BUGREPORT], [@%:@
+@%:@ Report bugs to <AC_PACKAGE_BUGREPORT>.])dnl
+])])
 
 
 # _AC_INIT_COPYRIGHT