/* 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
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
# (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.