From: Roland McGrath Date: Mon, 27 May 1996 17:49:32 +0000 (+0000) Subject: Mon May 27 13:49:02 1996 Roland McGrath X-Git-Tag: fsf-origin~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44b8c1b50e6f96c52c50adfbe7ab8c54b10f1df1;p=thirdparty%2Fautoconf.git Mon May 27 13:49:02 1996 Roland McGrath * acspecific.m4 (AC_SYS_LONG_FILE_NAMES): If $TMPDIR names an existing, writable directory, then test it instead of /tmp, /var/tmp, and /usr/tmp for long file name support. --- diff --git a/acspecific.m4 b/acspecific.m4 index 7d6fad8f..c7d75f3e 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -1593,13 +1593,20 @@ AC_DEFUN(AC_SYS_LONG_FILE_NAMES, [ac_cv_sys_long_file_names=yes # Test for long file names in all the places we know might matter: # . the current directory, where building will happen -# /tmp where it might want to write temporary files -# /var/tmp likewise -# /usr/tmp likewise # $prefix/lib where we will be installing things # $exec_prefix/lib likewise # eval it to expand exec_prefix. -for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do +# $TMPDIR if set, where it might want to write temporary files +# if $TMPDIR is not set: +# /tmp where it might want to write temporary files +# /var/tmp likewise +# /usr/tmp likewise +if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then + ac_tmpdirs="$TMPDIR" +else + ac_tmpdirs='/tmp /var/tmp /usr/tmp' +fi +for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do test -d $ac_dir || continue test -w $ac_dir || continue # It is less confusing to not echo anything here. (echo 1 > $ac_dir/conftest9012345) 2>/dev/null diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 7d6fad8f..c7d75f3e 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -1593,13 +1593,20 @@ AC_DEFUN(AC_SYS_LONG_FILE_NAMES, [ac_cv_sys_long_file_names=yes # Test for long file names in all the places we know might matter: # . the current directory, where building will happen -# /tmp where it might want to write temporary files -# /var/tmp likewise -# /usr/tmp likewise # $prefix/lib where we will be installing things # $exec_prefix/lib likewise # eval it to expand exec_prefix. -for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do +# $TMPDIR if set, where it might want to write temporary files +# if $TMPDIR is not set: +# /tmp where it might want to write temporary files +# /var/tmp likewise +# /usr/tmp likewise +if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then + ac_tmpdirs="$TMPDIR" +else + ac_tmpdirs='/tmp /var/tmp /usr/tmp' +fi +for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do test -d $ac_dir || continue test -w $ac_dir || continue # It is less confusing to not echo anything here. (echo 1 > $ac_dir/conftest9012345) 2>/dev/null