Stepan Kasal wrote: > The autodetection code (_AC_INIT_SRCDIR in lib/autoconf/general.m4) tries > the folowing candidates for srcdir: > 1) directory name of the configure script > 2) .. > > So if configure was called with full path, srcdir is set to the full path. > This can cause problems: VPATH build is recognized by "test $srcdir = ." > (for example, search ac_vpsub in lib/autoconf/status.m4). > > I think _AC_INIT_SRCDIR should try srcdir=. before the other two > candidates.
Couldn't you simply fix the VPATH detection? Comparing `(cd $srcdir; pwd)` and `pwd` should do the trick, no?
