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
_______________________________________________
bug-inetutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-inetutils

Reply via email to