autoconf-patches
[Top][All Lists]
Advanced

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

FYI: Pr/207


From: Akim Demaille
Subject: FYI: Pr/207
Date: 07 Feb 2002 13:08:25 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        Fix Autoconf PR/207:
        AC_PREFIX_PROGRAM fails with dashed program names

        * lib/autoconf/general.m4 (AC_PREFIX_PROGRAM): Just use a fresh
        variable when looking for the prefix program.
        Now it also works for shell variables.

Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.216
diff -u -u -r1.216 NEWS
--- NEWS 31 Jan 2002 17:33:44 -0000 1.216
+++ NEWS 7 Feb 2002 12:06:49 -0000
@@ -93,6 +93,9 @@
 - AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS and AC_OUTPUT.
   Are much less expensive when using long lists of files.
 
+- AC_PREFIX_PROGRAM
+  Works with shell variables, and non alphanumeric names.
+
 ** Library macros
 
 - AC_FUNC_STRERROR_R now sets STRERROR_R_CHAR_P, not HAVE_WORKING_STRERROR_R,
Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.786
diff -u -u -r1.786 general.m4
--- lib/autoconf/general.m4 31 Jan 2002 16:54:33 -0000 1.786
+++ lib/autoconf/general.m4 7 Feb 2002 12:06:50 -0000
@@ -489,18 +489,15 @@
 # and it might use a cached value for the path.
 # No big loss, I think, since most configures don't use this macro anyway.
 AC_DEFUN([AC_PREFIX_PROGRAM],
-[dnl Get an upper case version of $[1].
-m4_pushdef([AC_Prog], m4_toupper([$1]))dnl
-if test "x$prefix" = xNONE; then
+[if test "x$prefix" = xNONE; then
 dnl We reimplement AC_MSG_CHECKING (mostly) to avoid the ... in the middle.
-  _AS_ECHO_N([checking for prefix by])
-  AC_PATH_PROG(AC_Prog, [$1])
-  if test -n "$ac_cv_path_[]AC_Prog"; then
-    prefix=`AS_DIRNAME(["$ac_cv_path_[]AC_Prog"])`
+  _AS_ECHO_N([checking for prefix by ])
+  AC_PATH_PROG(ac_prefix_program, [$1])
+  if test -n $ac_prefix_program; then
+    prefix=`AS_DIRNAME(["$ac_prefix_program"])`
     prefix=`AS_DIRNAME(["$prefix"])`
   fi
 fi
-m4_popdef([AC_Prog])dnl
 ])# AC_PREFIX_PROGRAM
 
 



reply via email to

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