]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4, ltmain.in: autoconf now says the best thing to do
authorPeter O'Gorman <peter@pogma.com>
Fri, 30 Jul 2004 13:35:30 +0000 (13:35 +0000)
committerPeter O'Gorman <peter@pogma.com>
Fri, 30 Jul 2004 13:35:30 +0000 (13:35 +0000)
with CDPATH is to (unset CDPATH) >/dev/null 2>&1 && unset CDPATH,
so do it.

ChangeLog
ltmain.in
m4/libtool.m4

index 4a94ed52b985537cf4ba9d20730ac833a64aaeea..0b5714f4e429b67ca3103dfba085afee41a6e057 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-07-30  Peter O'Gorman  <peter@pogma.com>
+
+       * m4/libtool.m4, ltmain.in: autoconf now says the best thing to do
+       with CDPATH is to (unset CDPATH) >/dev/null 2>&1 && unset CDPATH,
+       so do it.
+
 2004-07-29  Gary V. Vaughan  <gary@gnu.org>
 
        * Makefile.am ($(top_srcdir)/config/ltmain.sh): Ugh. More hair to
index 6afe1175dcf89d69ed0a59c0d140bbfaecce1191..91fe69370145af942b3d555f1aa1e66cdb2d2d8f 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -5176,9 +5176,7 @@ EOF
 Xsed='${SED} -e 1s/^X//'
 sed_quote_subst='$sed_quote_subst'
 
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test \"\${CDPATH+set}\" = set; then CDPATH=\${ZSH_VERSION+.}:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
 relink_command=\"$relink_command\"
 
index 6a6c7b848a651d3dfe46946c6d6139759a2b694a..475e09f5a9df3dfdee939d4e8d8d971dd4c5796c 100644 (file)
@@ -433,9 +433,7 @@ m4_define([_LT_AC_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 m4_define([_LT_CONFIG_COMMANDS],
 [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [
 
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
 sed_quote_subst='$sed_quote_subst'
 double_quote_subst='$double_quote_subst'
@@ -503,9 +501,7 @@ _LT_LIBTOOL_CONFIG_VARS
 _LT_LIBTOOL_TAG_VARS
 # ### END LIBTOOL CONFIG
 
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
 _LT_EOF
 
@@ -716,9 +712,7 @@ _LT_EOF
   exit 0
 fi
 
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
 if test -z "$ECHO"; then
 if test "X${echo_test_string+set}" != Xset; then