[CLN-list] configuration (and build) fails unless top_srcdir = top_builddir

Alexei Sheplyakov varg at theor.jinr.ru
Sun Apr 6 11:43:37 CEST 2008


Dear Richard,

On Sat, Apr 05, 2008 at 11:45:51PM +0200, Richard B. Kreckel wrote:
> Hi!
> 
> CLN 1.2.2 has been released.

This commit

Author: Richard Kreckel <kreckel at ginac.de>
Date:   Sat Mar 15 21:13:51 2008 +0000

    Optional support for configure --with-gmp=GMP-PREFIX.

breaks VPATH builds:

$ mkdir _build; cd _build
$ ../configure --disable-static
[skipped autoconfish boilerplate]

configure: checking for integer types and behaviour...
creating include/cln/intparam.h
mv: cannot move `conftest.h' to `include/cln/intparam.h': No such file or directory
configure: checking for floating-point types and behaviour...
creating include/cln/floatparam.h
mv: cannot move `conftest.h' to `include/cln/floatparam.h': No such file or directory


The patch below reverts incorrect changes:

diff --git a/configure.ac b/configure.ac
index d9c5d66..048996a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,6 +154,7 @@ dnl           checks for compiler characteristics
 dnl
 AC_C_CHAR_UNSIGNED
                       dnl DEFS __CHAR_UNSIGNED__ if char is unsigned
+test -d 'include/cln' || mkdir -p 'include/cln'
 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)




BTW, --with-gmp=PREFIX doesn't work properly and is very confusing. It doesn't
set correct linker flags, so the *run-time* linker either can't find libgmp.so
or even worse -- uses one found in the default library search path.


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/20080406/2d000617/attachment.sig 


More information about the CLN-list mailing list