bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] [PATH] Honor `$TMPDIR' in `configure'


From: Ludovic Courtès
Subject: [bug-inetutils] [PATH] Honor `$TMPDIR' in `configure'
Date: Thu, 21 Feb 2008 19:38:52 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

The attached patch changes M4 macro `IU_CONFIG_PATHS' to honor
`$TMPDIR'.  I'll let you debate whether using `${foo:-bar}' is
reasonable nowadays.  :-)

Thanks,
Ludovic.

diff -ubB --show-c-function /home/ludo/tmp/acinclude.m4\~ 
/home/ludo/tmp/acinclude.m4
--- acinclude.m4~       2008-02-21 19:33:10.000000000 +0100
+++ acinclude.m4        2008-02-21 19:34:05.000000000 +0100
@@ -277,8 +277,10 @@ AC_DEFUN([IU_CONFIG_PATHS], [
   IU_UCASE=ABCDEFGHIJKLMNOPQRSTUVWXYZ
   iu_lcase=abcdefghijklmnopqrstuvwxyz
 
-  iu_cache_file="/tmp/,iu-path-cache.$$"
-  iu_tmp_file="/tmp/,iu-tmp.$$"
+  tmpdir="$TMPDIR"
+  test x"$tmpdir" = x && tmpdir="/tmp"
+  iu_cache_file="$tmpdir/,iu-path-cache.$$"
+  iu_tmp_file="$tmpdir/,iu-tmp.$$"
   ac_clean_files="$ac_clean_files $iu_cache_file $iu_tmp_file"
   while read iu_path iu_search; do
     test "$iu_path" = "#" -o -z "$iu_path" && continue

reply via email to

[Prev in Thread] Current Thread [Next in Thread]