Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.712 diff -c -r1.712 autoconf.texi *** doc/autoconf.texi 6 Nov 2002 10:29:21 -0000 1.712 --- doc/autoconf.texi 6 Nov 2002 14:56:08 -0000 *************** *** 12052,12057 **** --- 12052,12062 ---- @itemx -V Print the version number of Autoconf and exit. + @item --silent + @itemx --quiet + @itemx -q + Do not print progress messages. + @item --debug @itemx -d Don't remove the temporary files. Index: lib/autoconf/general.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v retrieving revision 1.810 diff -c -r1.810 general.m4 *** lib/autoconf/general.m4 5 Nov 2002 20:28:08 -0000 1.810 --- lib/autoconf/general.m4 6 Nov 2002 14:56:24 -0000 *************** *** 1134,1139 **** --- 1134,1140 ---- # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. + # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= *************** *** 1147,1152 **** --- 1148,1156 ---- do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; dnl If you change this globbing pattern, test it on an old shell -- dnl it's sensitive. Putting any kind of quote in it causes syntax errors. [ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)] Index: lib/autoconf/status.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/status.m4,v retrieving revision 1.31 diff -c -r1.31 status.m4 *** lib/autoconf/status.m4 17 Oct 2002 10:34:11 -0000 1.31 --- lib/autoconf/status.m4 6 Nov 2002 14:56:32 -0000 *************** *** 1250,1257 **** # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: exec AS_MESSAGE_LOG_FD>/dev/null ! $SHELL $CONFIG_STATUS || ac_cs_success=false exec AS_MESSAGE_LOG_FD>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. --- 1250,1259 ---- # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && ac_config_status_args="$ac_config_status_args --silent" exec AS_MESSAGE_LOG_FD>/dev/null ! $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec AS_MESSAGE_LOG_FD>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. *************** *** 1277,1282 **** --- 1279,1286 ---- # configure, is in config.log if it exists. debug=false + recheck=false + silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF *************** *** 1340,1345 **** --- 1344,1351 ---- -h, --help print this help, then exit -V, --version print version number, then exit + -q, --quiet, --silent + do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions m4_ifset([AC_LIST_FILES], *************** *** 1419,1430 **** case $ac_option in # Handling of the options. _ACEOF - cat >>$CONFIG_STATUS <<_ACEOF - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running $SHELL $[0] " $ac_configure_args " --no-create --no-recursion" - exec $SHELL $[0] $ac_configure_args --no-create --no-recursion ;; - _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) --- 1425,1433 ---- case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) *************** *** 1443,1448 **** --- 1446,1454 ---- $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + silent=: ;; # This is an error. -*) AC_MSG_ERROR([unrecognized option: $[1] *************** *** 1453,1458 **** --- 1459,1478 ---- esac shift done + + ac_configure_extra_args= + + if $silent; then + exec AS_MESSAGE_FD>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" + fi + + _ACEOF + cat >>$CONFIG_STATUS <<_ACEOF + if \$recheck; then + echo "running $SHELL $[0] " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&AS_MESSAGE_FD + exec $SHELL $[0] $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + fi _ACEOF