mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
build: Fix Gnulib compilation when $builddir != $srcdir.
* configure.ac: Add -I$top_srcdir_absolute to 'CPPFLAGS'. Fixes out-of-source-tree compilation of lib/regex.c. Reported at <https://lists.gnu.org/archive/html/guile-devel/2014-03/msg00022.html>.
This commit is contained in:
parent
c6a2691fff
commit
da7e43a6e0
1 changed files with 3 additions and 0 deletions
|
@ -1636,6 +1636,9 @@ AC_SUBST(top_builddir_absolute)
|
|||
top_srcdir_absolute=`(cd $srcdir && pwd)`
|
||||
AC_SUBST(top_srcdir_absolute)
|
||||
|
||||
dnl Add -I flag so that lib/glthread/lock.h finds <libguile/threads.h>.
|
||||
CPPFLAGS="-I$top_srcdir_absolute $CPPFLAGS"
|
||||
|
||||
dnl `sitedir' goes into libpath.h and the pkg-config file.
|
||||
pkgdatadir="$datadir/$PACKAGE_TARNAME"
|
||||
sitedir="$pkgdatadir/site/$GUILE_EFFECTIVE_VERSION"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue