]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acspecific.m4 (AC_PROG_LN_S): If neither `ln -s' nor `ln' work,
authorAkim Demaille <akim@epita.fr>
Wed, 18 Oct 2000 12:18:27 +0000 (12:18 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 18 Oct 2000 12:18:27 +0000 (12:18 +0000)
fall back to `cp'.

acgeneral.m4
configure
lib/autoconf/general.m4

index b866ea5939760736bf505b0aa18077e0608c7f60..b32a030437e6cefa655ef05d2331e625b84a6c46 100644 (file)
@@ -926,12 +926,12 @@ define([_AC_SHELL_DIRNAME],
       X$1 : 'X\(//\)$' \| \
       X$1 : 'X\(/\)' \| \
       .   : '\(.\)' 2>/dev/null ||
-echo "X$1" | sed '
+echo "X$1" | sed ['
            /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
            /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
            /^X\(\/\/\)$/{ s//\1/p; q; }
            /^X\(\/\).*/{ s//\1/p; q; }
-           s/.*/./p; q'])
+           s/.*/./p; q']])
 
 
 ## --------------------------------------------------- ##
index 8eb782a1de5c4ed179df5e0f74199e7cab21da3f..a14613b5c216fb3c89a6767996a6b36432ebbd4e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1695,8 +1695,8 @@ for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
       X"$ac_file" : 'X\(/\)' \| \
       .   : '\(.\)' 2>/dev/null ||
 echo "X"$ac_file"" | sed '
-           /^X\(.*^/\)\/\/*^/^/*\/*$/{ s//\1/p; q; }
-           /^X\(\/\/\)^/.*/{ s//\1/p; q; }
+           /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
+           /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
            /^X\(\/\/\)$/{ s//\1/p; q; }
            /^X\(\/\).*/{ s//\1/p; q; }
            s/.*/./p; q'`
index b866ea5939760736bf505b0aa18077e0608c7f60..b32a030437e6cefa655ef05d2331e625b84a6c46 100644 (file)
@@ -926,12 +926,12 @@ define([_AC_SHELL_DIRNAME],
       X$1 : 'X\(//\)$' \| \
       X$1 : 'X\(/\)' \| \
       .   : '\(.\)' 2>/dev/null ||
-echo "X$1" | sed '
+echo "X$1" | sed ['
            /^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/p; q; }
            /^X\(\/\/\)[^/].*/{ s//\1/p; q; }
            /^X\(\/\/\)$/{ s//\1/p; q; }
            /^X\(\/\).*/{ s//\1/p; q; }
-           s/.*/./p; q'])
+           s/.*/./p; q']])
 
 
 ## --------------------------------------------------- ##