[CLN-list] configuration (and build) fails unless top_srcdir = top_builddir
Alexei Sheplyakov
varg at theor.jinr.ru
Mon Apr 7 07:39:04 CEST 2008
Dear Richard,
On Sun, Apr 06, 2008 at 09:47:04PM +0200, Richard B. Kreckel wrote:
> Ooops. Can you, please, word a comment what this line does and why,
> and I'll happily apply it. I'm afraid someone will remove it again some day
> because it looks sooo much like nonsense.
[PATCH] configure.ac: create subdirectory to hold auto-generated headers.
This is necessary for VPATH builds (i.e. when build directory is different
from the source one).
---
configure.ac | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index d9c5d66..32325d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,6 +154,13 @@ dnl checks for compiler characteristics
dnl
AC_C_CHAR_UNSIGNED
dnl DEFS __CHAR_UNSIGNED__ if char is unsigned
+
+dnl Create a subdirectory in the ${top_builddir} to hold auto-generated
+dnl headers. This subdirectory does not exist when ${top_builddir} != ${top_srcdir}
+dnl (a.k.a. "VPATH build").
+if test ! -d include/cln; then
+ AS_MKDIR_P([include/cln])
+fi
CL_MACHINE([integer types and behaviour],${srcdir}/autoconf/intparam.c,[CL_INTPARAM_CROSS],include/cln/intparam.h,cl_cv_file_intparam_h)
dnl builds include/cln/intparam.h
CL_MACHINE([floating-point types and behaviour],${srcdir}/autoconf/floatparam.c,[CL_FLOATPARAM_CROSS],include/cln/floatparam.h,cl_cv_file_floatparam_h)
--
1.5.4.2
> That feature is useful for people like Paul Zimmermann, who have
> fifty-some versions of libgmp sitting in /opt/.
I understand why such feature is useful. But it doesn't work properly.
That is, /usr/lib/libgmp.so.? is used anyway, unless I manually set LDFLAGS,
i.e.
LDFLAGS="-Wl,--rpath=~/package/gmp/4.2.2/lib" ../configure --with-gmp=~/package/gmp/4.2.2 --disable-static
Best regards,
Alexei
--
All science is either physics or stamp collecting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/cln-list/attachments/20080407/b1f16bee/attachment.sig
More information about the CLN-list
mailing list