diff --git a/configure b/configure index 7e9637c81..e60b62f5c 100755 --- a/configure +++ b/configure @@ -15791,6 +15791,8 @@ else fi +srcdir=`cd $srcdir && pwd` + INCLUDE="-I$srcdir/include" if test x$srcdir != x.; then INCLUDE="-Iinclude $INCLUDE" diff --git a/configure.in b/configure.in index f7a002440..9446838b9 100644 --- a/configure.in +++ b/configure.in @@ -57,6 +57,9 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET AC_CHECK_TOOL(WINDRES, [windres], [:]) +dnl Make sure that srcdir is a full pathname +srcdir=`cd $srcdir && pwd` + dnl Set up the compiler and linker flags INCLUDE="-I$srcdir/include" if test x$srcdir != x.; then