Lines 502-511
Link Here
|
502 |
# We can run in multiple dirs, so we have to cache the trace |
502 |
# We can run in multiple dirs, so we have to cache the trace |
503 |
# data in $PWD rather than an env var. |
503 |
# data in $PWD rather than an env var. |
504 |
local trace_file=".__autoconf_trace_data" |
504 |
local trace_file=".__autoconf_trace_data" |
505 |
if [[ ! -e ${trace_file} ]] || [[ ! aclocal.m4 -ot ${trace_file} ]] ; then |
505 |
if [[ aclocal.m4 -nt ${trace_file} ]]; then |
506 |
WANT_AUTOCONF="2.5" autoconf \ |
506 |
WANT_AUTOCONF="2.5" autoconf \ |
507 |
$(autotools_m4dir_include) \ |
507 |
$(autotools_m4dir_include) \ |
508 |
${ALL_AUTOTOOLS_MACROS[@]/#/--trace=} > ${trace_file} 2>/dev/null |
508 |
${ALL_AUTOTOOLS_MACROS[@]/#/--trace=} > "${trace_file}" 2>/dev/null |
|
|
509 |
[[ aclocal.m4 -ot ${trace_file} ]] || { sleep 1; touch "${trace_file}"; } |
509 |
fi |
510 |
fi |
510 |
|
511 |
|
511 |
local macro args=() |
512 |
local macro args=() |
Lines 513-519
Link Here
|
513 |
has ${macro} ${ALL_AUTOTOOLS_MACROS[@]} || die "internal error: add ${macro} to ALL_AUTOTOOLS_MACROS" |
514 |
has ${macro} ${ALL_AUTOTOOLS_MACROS[@]} || die "internal error: add ${macro} to ALL_AUTOTOOLS_MACROS" |
514 |
args+=( -e ":${macro}:" ) |
515 |
args+=( -e ":${macro}:" ) |
515 |
done |
516 |
done |
516 |
grep "${args[@]}" ${trace_file} |
517 |
grep "${args[@]}" "${trace_file}" |
517 |
} |
518 |
} |
518 |
|
519 |
|
519 |
# @FUNCTION: autotools_check_macro_val |
520 |
# @FUNCTION: autotools_check_macro_val |