aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/configure.ac
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2006-12-20 22:35:51 +0000
committerHans-Peter Nilsson <hp@axis.com>2006-12-20 22:35:51 +0000
commit70a9be6357eb482c1b7f075078bd1c63c0553f67 (patch)
treeabf75c7c4aabab533abb267ffb753bf57a950ded /sim/erc32/configure.ac
parente80204fc86b91cf6f6e193e7c7d4a34a21c85e81 (diff)
downloadgdb-70a9be6357eb482c1b7f075078bd1c63c0553f67.zip
gdb-70a9be6357eb482c1b7f075078bd1c63c0553f67.tar.gz
gdb-70a9be6357eb482c1b7f075078bd1c63c0553f67.tar.bz2
* configure.ac: Add test for readline, substitute READLINE.
* Makefile.in (READLINE_LIB): New substituted-contents variable. (SIM_EXTRA_LIBDEPS): Don't set. (SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of ../../readline/libreadline.a. * configure: Regenerate.
Diffstat (limited to 'sim/erc32/configure.ac')
-rw-r--r--sim/erc32/configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/sim/erc32/configure.ac b/sim/erc32/configure.ac
index f1aeada..7637a77 100644
--- a/sim/erc32/configure.ac
+++ b/sim/erc32/configure.ac
@@ -25,4 +25,13 @@ else
fi
AC_SUBST(TERMCAP)
+# We prefer the in-tree readline. Top-level dependencies make sure
+# src/readline (if it's there) is configured before src/sim.
+if test -r ../../readline/Makefile; then
+ READLINE=../../readline/libreadline.a
+else
+ AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
+ AC_ERROR([the required "readline" library is missing]), $TERMCAP)
+fi
+AC_SUBST(READLINE)
SIM_AC_OUTPUT