(_AC_INIT_SRCDIR): Use AS_DIRNAME, since I think it's now DOS-friendly.

This commit is contained in:
Paul Eggert 2001-10-18 23:40:44 +00:00
parent 026fa457f7
commit 1cca42f044

View 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=..