Date: Thu, 10 Aug 2000 16:02:54 -0400 (EDT)
   From: "John David Anglin" <[EMAIL PROTECTED]>

   Here is a patch to correct the exit status of autoconf under hpux shells.

Most of that patch is OK, but the hunks quoted below can be
simplified.  Just replace the "exit 2" with "exit", and similarly for
the "exit 1".

As far as I know, autoconf doesn't document its exit status, other
than nonzero exit status means an error, so there's no reason to
insist on any particular nonzero exit status like 1 or 2.

   @@ -297,7 +297,10 @@
      ## --------------------------------- ##
      script)
      # M4 expansion.
   -  $run_m4f -D_AC_WARNINGS=$_ac_warnings $infile >$tmp/configure || exit 2
   +  $run_m4f -D_AC_WARNINGS=$_ac_warnings $infile >$tmp/configure ||
   +{
   +  (exit 2); exit
   +}

      # You can add your own prefixes to pattern if you want to check for
      # them too.
   @@ -552,7 +555,10 @@
      do
        # The request may be several lines long, hence sed has to quit.
        trace_opt="$trace_opt -t "`echo "$trace" | sed -e 's/:.*//;q'`
   -    echo "$trace" | $AWK -f $tmp/translate.awk >>$tmp/trace.m4 || exit 1
   +    echo "$trace" | $AWK -f $tmp/translate.awk >>$tmp/trace.m4 ||
   +{
   +    (exit 1); exit
   +}
      done
      echo "divert(0)dnl" >>$tmp/trace.m4

Reply via email to