[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does not find header files or libraries under /usr/local
From: |
Ludovic Courtès |
Subject: |
Re: Does not find header files or libraries under /usr/local |
Date: |
Tue, 30 May 2006 16:56:58 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Hi,
Matt Kraai <address@hidden> writes:
> I don't have access to that box at the moment, so I can't give a
> complete list, but from memory, openssh requires openssl and was able
> to find it even though it was in /usr/local.
Often, `configure' scripts provide a `--with-PACKAGE-prefix' option (or
`--with-PACKAGE-includes', or `--with-PACKAGE-libs') so that one can
specify where to look fo a particular package. For instance,
`libgcrypt.m4' contains the following snippet:
AC_ARG_WITH(libgcrypt-prefix,
AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
[prefix where LIBGCRYPT is installed (optional)]),
libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
if test x$libgcrypt_config_prefix != x ; then
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
fi
fi
Consequently, users of the documented libgcrypt M4 macros automatically
get this new `--with' option.
Guile's `configure' already has a number of `--with' options that come
from various `.m4' files depended on. Perhaps we could add one option
for GMP, or, better, ask the GMP maintainers to provide a set of M4
macros that does this? :-)
Thanks,
Ludovic.