]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* m4sh.m4 (_AS_TEST_PREPARE): Rename as...
authorAkim Demaille <akim@epita.fr>
Sun, 25 Feb 2001 10:43:34 +0000 (10:43 +0000)
committerAkim Demaille <akim@epita.fr>
Sun, 25 Feb 2001 10:43:34 +0000 (10:43 +0000)
(_AS_BROKEN_TEST_PREPARE): this.
(_AS_TEST_PREPARE): New dummy but working version of this macro.
* acspecific.m4 (AC_PROG_INSTALL): Use AS_EXECUTABLE_P.

ChangeLog
acspecific.m4
lib/autoconf/specific.m4
lib/m4sugar/m4sh.m4
m4sh.m4

index cafb7a743782d9360f23461b8b04c149a30038ca..752623bbc24e574fa9dfbe6c4fccd8561555419a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-02-25  Akim Demaille  <akim@epita.fr>
+
+       * m4sh.m4 (_AS_TEST_PREPARE): Rename as...
+       (_AS_BROKEN_TEST_PREPARE): this.
+       (_AS_TEST_PREPARE): New dummy but working version of this macro.
+       * acspecific.m4 (AC_PROG_INSTALL): Use AS_EXECUTABLE_P.
+
 2001-02-25  Akim Demaille  <akim@epita.fr>
 
        * autoupdate.in (&parse_args): Support `-'.
index 8c75c8c013d6240723e7a42b88b24499eb40c778..d81f0003e19a535fcef454d6e475bc9e35cf6f2f 100644 (file)
@@ -217,7 +217,7 @@ AC_CACHE_VAL(ac_cv_path_install,
       # Don't use installbsd from OSF since it installs stuff as root
       # by default.
       for ac_prog in ginstall scoinst install; do
-        if test -f "$ac_dir/$ac_prog"; then
+        if AS_EXECUTABLE_P(["$ac_dir/$ac_prog"]); then
          if test $ac_prog = install &&
             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
index 8c75c8c013d6240723e7a42b88b24499eb40c778..d81f0003e19a535fcef454d6e475bc9e35cf6f2f 100644 (file)
@@ -217,7 +217,7 @@ AC_CACHE_VAL(ac_cv_path_install,
       # Don't use installbsd from OSF since it installs stuff as root
       # by default.
       for ac_prog in ginstall scoinst install; do
-        if test -f "$ac_dir/$ac_prog"; then
+        if AS_EXECUTABLE_P(["$ac_dir/$ac_prog"]); then
          if test $ac_prog = install &&
             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
index 4b975906bae19f237bfbb004c0fb25050655950b..82f500f38fe2332ded7d0be9f5f1dff1a2546057 100644 (file)
@@ -375,11 +375,13 @@ done; }
 ])# AS_MKDIR_P
 
 
-# _AS_TEST_PREPARE
-# ----------------
+# _AS_BROKEN_TEST_PREPARE
+# -----------------------
+# FIXME: This does not work and breaks way too many things.
+#
 # Find out ahead of time whether we want test -x (preferred) or test -f
 # to check whether a file is executable.
-m4_defun([_AS_TEST_PREPARE],
+m4_defun([_AS_BROKEN_TEST_PREPARE],
 [# Find out how to test for executable files. Don't use a zero-byte file,
 # as systems may use methods other than mode bits to determine executability.
 cat >conftest.file <<_ASEOF
@@ -395,7 +397,17 @@ else
   AS_ERROR([cannot check whether a file is executable on this system])
 fi
 rm -f conftest.file
-])# _AS_TEST_PREPARE
+])# _AS_BROKEN_TEST_PREPARE
+
+
+# _AS_TEST_PREPARE
+# ----------------
+m4_defun([_AS_TEST_PREPARE],
+[as_executable_p="test -f"
+])# _AS_BROKEN_TEST_PREPARE
+
+
+
 
 
 
diff --git a/m4sh.m4 b/m4sh.m4
index 4b975906bae19f237bfbb004c0fb25050655950b..82f500f38fe2332ded7d0be9f5f1dff1a2546057 100644 (file)
--- a/m4sh.m4
+++ b/m4sh.m4
@@ -375,11 +375,13 @@ done; }
 ])# AS_MKDIR_P
 
 
-# _AS_TEST_PREPARE
-# ----------------
+# _AS_BROKEN_TEST_PREPARE
+# -----------------------
+# FIXME: This does not work and breaks way too many things.
+#
 # Find out ahead of time whether we want test -x (preferred) or test -f
 # to check whether a file is executable.
-m4_defun([_AS_TEST_PREPARE],
+m4_defun([_AS_BROKEN_TEST_PREPARE],
 [# Find out how to test for executable files. Don't use a zero-byte file,
 # as systems may use methods other than mode bits to determine executability.
 cat >conftest.file <<_ASEOF
@@ -395,7 +397,17 @@ else
   AS_ERROR([cannot check whether a file is executable on this system])
 fi
 rm -f conftest.file
-])# _AS_TEST_PREPARE
+])# _AS_BROKEN_TEST_PREPARE
+
+
+# _AS_TEST_PREPARE
+# ----------------
+m4_defun([_AS_TEST_PREPARE],
+[as_executable_p="test -f"
+])# _AS_BROKEN_TEST_PREPARE
+
+
+