]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Handle DOS paths when setting up ac_top_builddir.
authorTim Van Holder <tim.van.holder@pandora.be>
Thu, 20 Sep 2001 15:51:04 +0000 (15:51 +0000)
committerTim Van Holder <tim.van.holder@pandora.be>
Thu, 20 Sep 2001 15:51:04 +0000 (15:51 +0000)
lib/autoconf/status.m4

index 08947994f7dca4316693fc23bc3331a013d3b9d7..432e0cb25943eacb90ff22071c29745d332c86a9 100644 (file)
@@ -50,7 +50,7 @@
 # Roland McGrath, Noah Friedman, david d zuhn, and many others.
 
 
-# This files handles about all the preparation aspects for
+# This file handles about all the preparation aspects for
 # `config.status': registering the configuration files, the headers,
 # the links, and the commands `config.status' will run.  There is a
 # little mixture though of things actually handled by `configure',
 # - `ac_top_srcdir' is `build -> top-src'
 m4_define([_AC_SRCPATHS],
 [if test $1 != .; then
-  ac_dir_suffix=/`echo $1 | sed 's,^\./,,'`
+  ac_dir_suffix=/`echo $1 | sed 's,^\.[[\\/]],,'`
   # A "../" for each directory in $ac_dir_suffix.
-  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[[^/]]*,../,g'`
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[[^\\/]]*,../,g'`
 else
   ac_dir_suffix= ac_top_builddir=
 fi