[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PPL-devel] User-visible changes to lib-link.m4 and lib-prefix.m4
From: |
Bruno Haible |
Subject: |
Re: [PPL-devel] User-visible changes to lib-link.m4 and lib-prefix.m4 |
Date: |
Thu, 9 Oct 2008 00:16:13 +0200 |
User-agent: |
KMail/1.5.4 |
Hi Roberto,
> However, the problem we observe is not in the location of the library.
The problem should go away if, on Linux/x86_64 systems, you use
--prefix=PREFIX --libdir=PREFIX/lib64
when installing the gmp library or, as a simple measure afterwards, copy
or symlink lib to lib64.
> The problem is that, passing from the version
> distributed with Gettext 0.14.6 to the version distributed with
> Gettext 0.15, the right -Idir flag is not added to CPPFLAGS.
The AC_LIB_LINKFLAGS macro does not augment CPPFLAGS if it does not find
the library. Augmenting CPPFLAGS without setting the LIBGMP, LIBGMPXX
variables accordingly would only cause trouble.
> AC_DEFUN([AC_CHECK_GMP],
> [
> dnl Since libgmp and libgmpxx are usually installed in the same location,
> dnl let the prefixes default from each other.
> if test -n "$with_libgmpxx_prefix" && test -z "$with_libgmp_prefix"; then
> with_libgmp_prefix="$with_libgmpxx_prefix"
> else
> if test -n "$with_libgmp_prefix" && test -z "$with_libgmpxx_prefix";
> then
> with_libgmpxx_prefix="$with_libgmp_prefix"
> fi
> fi
>
> dnl Check how to link with libgmp.
> AC_LIB_LINKFLAGS([gmp])
>
> dnl Check how to link with libgmpxx.
> AC_LIB_LINKFLAGS([gmpxx], [gmp])
This all OK.
Bruno