]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Oct 2007 20:52:01 +0000 (13:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 5 Oct 2007 20:52:01 +0000 (13:52 -0700)
correctly.

ChangeLog
lib/autoconf/general.m4

index a5b43aeab0fe5b04ee5e5162be950d390dbc9d81..666c07f9a692291cfc997333e6bb77ce03194de1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
+       correctly.
+
 2007-10-05  Jim Meyering  <meyering@redhat.com>
 
        Avoid makeinfo warnings.
index 0f8a5dcfea8443f235df2896cf3cd966d9c52a48..10df3992e95b895fde23471b7989696049f50bdc 100644 (file)
@@ -904,8 +904,9 @@ do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
   case $ac_val in
-    / | // ) ;;
-    */ ) eval $ac_var='`echo "$ac_val" | sed "s|/*\$||"`' ;;
+    */ )
+      ac_val=`expr "X$ac_val" : 'X\(.*[[^/]]\)' \| "X$ac_val" : 'X\(.*\)'`
+      eval $ac_var=\$ac_val;;
   esac
   # Be sure to have absolute directory names.
   case $ac_val in