summaryrefslogtreecommitdiff
path: root/guile-readline
diff options
context:
space:
mode:
authorNeil Jerram <neil@ossau.uklinux.net>2009-06-14 17:58:15 +0100
committerNeil Jerram <neil@ossau.uklinux.net>2009-06-14 17:58:15 +0100
commit39b94fee4304d56babf5bd62e10c5786a79f4389 (patch)
tree1d5f04c3e89090afba890610c593ff53e6047e56 /guile-readline
parentf856c2b6d77633366f154cb38cd4edb384b4892d (diff)
Provide easier configure options for GMP and readline
This patch uses the AC_LIB_LINKFLAGS macro, provided by Gnulib's havelib module, to provide --with-gmp-prefix and --with-readline-prefix configure options. Many thanks to Bruno Haible for suggesting and explaining this to me. * configure.in (top level): Add AC_LIB_LINKFLAGS(gmp). * guile-readline/configure.in (AC_CONFIG_AUX_DIR): Change to ../build-aux, to share the main build-aux directory and so avoid having to distribute multiple copies of config.rpath. (top level): Add AC_LIB_LINKFLAGS(readline). * lib/Makefile.am, m4/gnulib-cache.m4: Regenerated by gnulib-tool for new import of the `havelib' module.
Diffstat (limited to 'guile-readline')
-rw-r--r--guile-readline/configure.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/guile-readline/configure.in b/guile-readline/configure.in
index 9098a31e6..d05356618 100644
--- a/guile-readline/configure.in
+++ b/guile-readline/configure.in
@@ -7,7 +7,7 @@ AC_INIT(guile-readline,
]),
[bug-guile@gnu.org])
-AC_CONFIG_AUX_DIR([.])
+AC_CONFIG_AUX_DIR([../build-aux])
AC_CONFIG_SRCDIR(readline.c)
AM_CONFIG_HEADER([guile-readline-config.h])
AM_INIT_AUTOMAKE([foreign no-define])
@@ -38,6 +38,7 @@ for termlib in ncurses curses termcap terminfo termlib ; do
[LIBS="-l${termlib} $LIBS"; break])
done
+AC_LIB_LINKFLAGS(readline)
AC_CHECK_LIB(readline, readline)
if test $ac_cv_lib_readline_readline = no; then
AC_MSG_WARN([libreadline was not found on your system.])