]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AC_INIT_SRCDIR): Use AS_DIRNAME, since I think it's now DOS-friendly.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 18 Oct 2001 23:40:44 +0000 (23:40 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 18 Oct 2001 23:40:44 +0000 (23:40 +0000)
lib/autoconf/general.m4

index 7ce22508538c4a75ed1b206df9520933095aaf6c..87afe80da79d74c54732f1439011a328bf9e1576 100644 (file)
@@ -502,10 +502,7 @@ m4_define([_AC_INIT_SRCDIR],
 if test -z "$srcdir"; then
   ac_srcdir_defaulted=yes
   # Try the directory containing this script, then its parent.
-  ac_prog=$[0]
-dnl FIXME: should use AS_DIRNAME here once it is made DOS-friendly.
-  ac_confdir=`echo "$ac_prog" | sed 's%[[\\/][^\\/][^\\/]]*$%%'`
-  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+  ac_confdir=`AS_DIRNAME(["$[0]"])`
   srcdir=$ac_confdir
   if test ! -r $srcdir/$ac_unique_file; then
     srcdir=..