[project @ 1999-11-12 16:22:08 by sewardj]
authorsewardj <unknown>
Fri, 12 Nov 1999 16:22:10 +0000 (16:22 +0000)
committersewardj <unknown>
Fri, 12 Nov 1999 16:22:10 +0000 (16:22 +0000)
Add checks for readline library (as opposed to headers).

acconfig.h
configure.in
mk/config.mk.in

index c568b0e..691d3c5 100644 (file)
@@ -63,6 +63,9 @@
 /* Define if you support the production (and use) of Win32 DLLs. */
 #undef HAVE_WIN32_DLL_SUPPORT
 
+/* Define if you have and want to use readline in Hugs. */
+#undef HAVE_LIBREADLINE
+
 /* Define if C Symbols have a leading underscore added by the compiler */
 #undef LEADING_UNDERSCORE
 
index c36b9ac..0465ab6 100644 (file)
@@ -615,7 +615,17 @@ AC_CHECK_LIB(iberty, xmalloc)
 AC_CHECK_LIB(bfd,    bfd_init)
 
 dnl ** check for readline, for Hugs
-AC_CHECK_LIB(readline, readline)
+AC_CHECK_LIB(readline, readline,
+[
+AC_DEFINE(HAVE_LIBREADLINE,1)
+HaveLibReadline=YES
+],
+[
+AC_DEFINE(HAVE_LIBREADLINE,0)
+HaveLibReadline=NO
+])
+AC_SUBST(HaveLibReadline)
+
 
 dnl ################################################################
 dnl Check for libraries
index 7ce15a8..713b42c 100644 (file)
@@ -233,6 +233,7 @@ GhcLibsWithReadline=NO
 # (no path == in standard include path)
 #
 ReadlineIncludePath=
+HaveLibReadline=@HaveLibReadline@
 
 # Strip local symbols from libraries?  This can make the libraries smaller,
 # but makes debugging somewhat more difficult.  Doesn't work with all ld's.