]> diplodocus.org Git - nmh/blobdiff - m4/readline.m4
getpass.c: Move interface to own file.
[nmh] / m4 / readline.m4
index 7a2710dca9b93fccf2325ed48e7b649bc168ab13..f2c7dc86bafe3fd8382e8d33a26371be9ccbcf45 100644 (file)
@@ -1,4 +1,3 @@
-dnl
 dnl Our readline heuristic.  If we haven't been asked about readline, then
 dnl try to compile with it.  If we've been asked for it, then we fail
 dnl if we cannot use it.  If we were explicitly NOT asked for it, then
@@ -14,11 +13,12 @@ AS_IF([test x"$with_readline" = xyes -o x"$with_readline" = xmaybe],
     [save_LIBS="$LIBS"
     LIBS=
     AC_SEARCH_LIBS([readline], [readline editline],
-                  [READLINELIB="$LIBS"
+                  [READLINELIB="$LIBS"
                   AC_DEFINE([READLINE_SUPPORT], [1],
                             [Support for using readline() in whatnow])],
-                  [AS_IF([test x"$with_readline" = xyes],
-                         [AC_MSG_ERROR([Unable to find a readline library])])])
+                  [AS_IF([test x"$with_readline" = xyes],
+                         [AC_MSG_ERROR([Unable to find a readline library])])],
+                  [$TERMLIB])
     LIBS="$save_LIBS"])
 ])