diff options
author | Jim Meyering <jim@meyering.net> | 2007-03-17 12:54:28 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-03-17 12:54:28 +0100 |
commit | 7828d1b4e2bc9837236440e6330463cd8515eb82 (patch) | |
tree | 6f67b99511eae2a3003564def8ca968572e6de90 /bootstrap | |
parent | 5b3313c120808c724c1962ec7ce9c07b29ca104f (diff) | |
download | coreutils-7828d1b4e2bc9837236440e6330463cd8515eb82.tar.xz |
Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
* bootstrap: Put ""s around use of $build_aux, in case
someone uses a name containing shell meta-characters.
Reported by Alfred M. Szmidt.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -169,10 +169,15 @@ insert_sorted_if_absent() { } # Die if there is no AC_CONFIG_AUX_DIR($build_aux) line in configure.ac. -grep '^[ ]*AC_CONFIG_AUX_DIR('$build_aux')' configure.ac >/dev/null || +found_aux_dir=no +grep '^[ ]*AC_CONFIG_AUX_DIR(\['"$build_aux"'\])' configure.ac \ + >/dev/null && found_aux_dir=yes +grep '^[ ]*AC_CONFIG_AUX_DIR('"$build_aux"')' configure.ac \ + >/dev/null && found_aux_dir=yes +if test $found_aux_dir = no; then { echo "$0: expected line not found in configure.ac. Add the following:" >&2 - echo " AC_CONFIG_AUX_DIR($build_aux)" >&2. + echo " AC_CONFIG_AUX_DIR([$build_aux])" >&2. } # If $build_aux doesn't exist, create it now, otherwise some bits |