/[autoconf]/autoconf/lib/m4sugar/m4sh.m4
ViewVC logotype

Diff of /autoconf/lib/m4sugar/m4sh.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.68 by eggert, Wed Oct 31 19:23:37 2001 UTC revision 1.69 by eggert, Wed Oct 31 20:07:48 2001 UTC
# Line 462  fi Line 462  fi
462  # _AS_LINENO_WORKS  # _AS_LINENO_WORKS
463  # ---------------  # ---------------
464  # Succeed if the currently executing shell supports LINENO.  # Succeed if the currently executing shell supports LINENO.
465    # This macro does not expand to a single shell command, so be careful
466    # when using it.  Surrounding the body of this macro with {} would
467    # cause "bash -c '_ASLINENO_WORKS'" to fail (with Bash 2.05, anyway),
468    # but that bug is irrelevant to our use of LINENO.
469  m4_define([_AS_LINENO_WORKS],  m4_define([_AS_LINENO_WORKS],
470  [{  [
471    as_lineno_1=$LINENO    as_lineno_1=$LINENO
472    as_lineno_2=$LINENO    as_lineno_2=$LINENO
473    as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`    as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
474    test "x$as_lineno_1" != "x$as_lineno_2" &&    test "x$as_lineno_1" != "x$as_lineno_2" &&
475    test "x$as_lineno_3"  = "x$as_lineno_2"    test "x$as_lineno_3"  = "x$as_lineno_2" dnl
476  }])  ])
477    
478  # _AS_LINENO_PREPARE  # _AS_LINENO_PREPARE
479  # ------------------  # ------------------

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26