From: Han-Wen Nienhuys Date: Sat, 28 Oct 2006 15:54:03 +0000 (+0200) Subject: more robust srcdir check X-Git-Tag: release/2.10.0-2~63 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=30e335ef53c04c48a840e1c2be1ad546331767ff;p=lilypond.git more robust srcdir check --- diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4 index 813b830977..be97fa96de 100644 --- a/stepmake/aclocal.m4 +++ b/stepmake/aclocal.m4 @@ -668,7 +668,11 @@ AC_DEFUN(STEPMAKE_INIT, [ AC_MSG_CHECKING(builddir) ugh_ugh_autoconf250_builddir="`pwd`" - if test "$srcdir" = "."; then + + here_dir=$(cd . && pwd) + full_src_dir=$(cd $srcdir && pwd) + + if test "$full_src_dir" = "$here_dir"; then srcdir_build=yes else srcdir_build=no