]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_PATH_PROG, AC_OUTPUT_FILES, AC_OUTPUT_SUBDIRS):
authorAkim Demaille <akim@epita.fr>
Wed, 8 Mar 2000 17:32:40 +0000 (17:32 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 8 Mar 2000 17:32:40 +0000 (17:32 +0000)
Fix quotation problems in DOS path handling.

ChangeLog
acgeneral.m4
configure
lib/autoconf/general.m4

index 4f91ad719fd269fc289ca70680d0727a2fc20c22..bb535290c9392cd69322d80fd24950dfb42edad3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-08  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (AC_PATH_PROG, AC_OUTPUT_FILES, AC_OUTPUT_SUBDIRS):
+       Fix quotation problems in DOS path handling.
+
 2000-03-08   Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 
        * acspecific.m4 (AC_FUNC_MMAP, AC_FUNC_ALLOCA): Make them C++
index 1e870f24d5c30b92cc214fc0c8446e7ce47de340..26a067780d017802e3e432adf0f79af1eef1d70a 100644 (file)
@@ -2238,7 +2238,7 @@ set dummy $2; ac_word=[$]2
 AC_MSG_CHECKING([for $ac_word])
 AC_CACHE_VAL(ac_cv_path_$1,
 [case "[$]$1" in
-  [/\\]* | ?:[/\\]*)
+  [[/\\]]* | ?:[[/\\]]*)
   ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
   ;;
   *)
@@ -3881,7 +3881,7 @@ dnl to be created too.
   .)  srcdir=.
       if test -z "$ac_dots"; then top_srcdir=.
       else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
-  [/\\]* | ?:[/\\]* )
+  [[/\\]]* | ?:[[/\\]]* )
       srcdir="$ac_given_srcdir$ac_dir_suffix";
       top_srcdir=$ac_given_srcdir ;;
   *) # Relative path.
@@ -3890,11 +3890,11 @@ dnl to be created too.
   esac
 
 ifdef([AC_PROVIDE_AC_PROG_INSTALL],
-[[  case "$ac_given_INSTALL" in
-  [/\\$]* | ?:[/\\]* ) INSTALL="$ac_given_INSTALL" ;;
+[  case "$ac_given_INSTALL" in
+  [[/\\$]]* | ?:[[/\\]]* ) INSTALL="$ac_given_INSTALL" ;;
   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
   esac
-]])dnl
+])dnl
 
   echo creating "$ac_file"
   rm -f "$ac_file"
@@ -4219,7 +4219,7 @@ dnl to be created too.
   fi
 
   case "$srcdir" in
-  [[/\\$]]* | ?:[/\\]* ) ac_rel_source="$srcdir/$ac_source" ;;
+  [[/\\$]]* | ?:[[/\\]]* ) ac_rel_source="$srcdir/$ac_source" ;;
       *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
   esac
 
@@ -4338,7 +4338,7 @@ dnl to be created too.
     case "$srcdir" in
     .) # No --srcdir option.  We are building in place.
       ac_sub_srcdir=$srcdir ;;
-    [/\\]* | ?:[/\\] ) # Absolute path.
+    [[/\\]]* | ?:[[/\\]] ) # Absolute path.
       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
     *) # Relative path.
       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
@@ -4359,16 +4359,16 @@ dnl to be created too.
 
       # Make the cache file name correct relative to the subdirectory.
       case "$cache_file" in
-      [/\\]* | ?:[/\\]* ) ac_sub_cache_file=$cache_file ;;
+      [[/\\]]* | ?:[[/\\]]* ) ac_sub_cache_file=$cache_file ;;
       *) # Relative path.
         ac_sub_cache_file="$ac_dots$cache_file" ;;
       esac
 ifdef([AC_PROVIDE_AC_PROG_INSTALL],
-[[      case "$ac_given_INSTALL" in
-        [/\\$]* | ?:[/\\]*) INSTALL="$ac_given_INSTALL" ;;
+[      case "$ac_given_INSTALL" in
+        [[/\\$]]* | ?:[[/\\]]*) INSTALL="$ac_given_INSTALL" ;;
         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
       esac
-]])dnl
+])dnl
 
       echo "[running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
       # The eval makes quoting arguments work.
index 167439e6345e80946f23dd303eb095e3955ced12..967aa9166655e05ff73056965877a44af7f5b0e2 100755 (executable)
--- a/configure
+++ b/configure
@@ -848,7 +848,7 @@ if test "${ac_cv_path_M4+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" 1>&6
 else
   case "$M4" in
-  /\\* | ?:/\\*)
+  [/\\]* | ?:[/\\]*)
   ac_cv_path_M4="$M4" # Let the user override the test with a path.
   ;;
   *)
@@ -951,7 +951,7 @@ if test "${ac_cv_path_PERL+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" 1>&6
 else
   case "$PERL" in
-  /\\* | ?:/\\*)
+  [/\\]* | ?:[/\\]*)
   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   ;;
   *)
@@ -1396,7 +1396,7 @@ for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
   .)  srcdir=.
       if test -z "$ac_dots"; then top_srcdir=.
       else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
-  /\\* | ?:/\\* )
+  [/\\]* | ?:[/\\]* )
       srcdir="$ac_given_srcdir$ac_dir_suffix";
       top_srcdir=$ac_given_srcdir ;;
   *) # Relative path.
index 1e870f24d5c30b92cc214fc0c8446e7ce47de340..26a067780d017802e3e432adf0f79af1eef1d70a 100644 (file)
@@ -2238,7 +2238,7 @@ set dummy $2; ac_word=[$]2
 AC_MSG_CHECKING([for $ac_word])
 AC_CACHE_VAL(ac_cv_path_$1,
 [case "[$]$1" in
-  [/\\]* | ?:[/\\]*)
+  [[/\\]]* | ?:[[/\\]]*)
   ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
   ;;
   *)
@@ -3881,7 +3881,7 @@ dnl to be created too.
   .)  srcdir=.
       if test -z "$ac_dots"; then top_srcdir=.
       else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
-  [/\\]* | ?:[/\\]* )
+  [[/\\]]* | ?:[[/\\]]* )
       srcdir="$ac_given_srcdir$ac_dir_suffix";
       top_srcdir=$ac_given_srcdir ;;
   *) # Relative path.
@@ -3890,11 +3890,11 @@ dnl to be created too.
   esac
 
 ifdef([AC_PROVIDE_AC_PROG_INSTALL],
-[[  case "$ac_given_INSTALL" in
-  [/\\$]* | ?:[/\\]* ) INSTALL="$ac_given_INSTALL" ;;
+[  case "$ac_given_INSTALL" in
+  [[/\\$]]* | ?:[[/\\]]* ) INSTALL="$ac_given_INSTALL" ;;
   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
   esac
-]])dnl
+])dnl
 
   echo creating "$ac_file"
   rm -f "$ac_file"
@@ -4219,7 +4219,7 @@ dnl to be created too.
   fi
 
   case "$srcdir" in
-  [[/\\$]]* | ?:[/\\]* ) ac_rel_source="$srcdir/$ac_source" ;;
+  [[/\\$]]* | ?:[[/\\]]* ) ac_rel_source="$srcdir/$ac_source" ;;
       *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
   esac
 
@@ -4338,7 +4338,7 @@ dnl to be created too.
     case "$srcdir" in
     .) # No --srcdir option.  We are building in place.
       ac_sub_srcdir=$srcdir ;;
-    [/\\]* | ?:[/\\] ) # Absolute path.
+    [[/\\]]* | ?:[[/\\]] ) # Absolute path.
       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
     *) # Relative path.
       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
@@ -4359,16 +4359,16 @@ dnl to be created too.
 
       # Make the cache file name correct relative to the subdirectory.
       case "$cache_file" in
-      [/\\]* | ?:[/\\]* ) ac_sub_cache_file=$cache_file ;;
+      [[/\\]]* | ?:[[/\\]]* ) ac_sub_cache_file=$cache_file ;;
       *) # Relative path.
         ac_sub_cache_file="$ac_dots$cache_file" ;;
       esac
 ifdef([AC_PROVIDE_AC_PROG_INSTALL],
-[[      case "$ac_given_INSTALL" in
-        [/\\$]* | ?:[/\\]*) INSTALL="$ac_given_INSTALL" ;;
+[      case "$ac_given_INSTALL" in
+        [[/\\$]]* | ?:[[/\\]]*) INSTALL="$ac_given_INSTALL" ;;
         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
       esac
-]])dnl
+])dnl
 
       echo "[running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
       # The eval makes quoting arguments work.