[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loading config.site when $prefix contains IFS characters
From: |
Paul Eggert |
Subject: |
Re: loading config.site when $prefix contains IFS characters |
Date: |
Sun, 03 Jul 2005 22:25:05 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Thanks. It's odd that it would work differently for you than for me.
I installed into Autoconf the following slightly revamped version of
that patch:
2005-07-03 Alexandre Duret-Lutz <address@hidden>
* lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
for loop over config.site files using `set', to allow
directory names containing IFS characters.
--- lib/autoconf/general.m4 1 Jul 2005 22:20:56 -0000 1.872
+++ lib/autoconf/general.m4 4 Jul 2005 05:19:19 -0000
@@ -1738,14 +1738,17 @@ AU_DEFUN([AC_VALIDATE_CACHED_SYSTEM_TUPL
# Look for site or system specific initialization scripts.
m4_define([AC_SITE_LOAD],
[# Prefer explicitly selected file to automatically selected ones.
-if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site
$ac_default_prefix/etc/config.site"
- fi
+if test -n "$CONFIG_SITE"; then
+ set x "$CONFIG_SITE"
+elif test "x$prefix" != xNONE; then
+ set x "$prefix/share/config.site" "$prefix/etc/config.site"
+else
+ set x "$ac_default_prefix/share/config.site" \
+ "$ac_default_prefix/etc/config.site"
fi
-for ac_site_file in $CONFIG_SITE; do
+shift
+for ac_site_file
+do
if test -r "$ac_site_file"; then
AC_MSG_NOTICE([loading site script $ac_site_file])
sed 's/^/| /' "$ac_site_file" >&AS_MESSAGE_LOG_FD