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 |
# ------------------ |
# ------------------ |