]> git.pond.sub.org Git - empserver/commitdiff
client: New configure --with-readline
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 8 Dec 2015 19:57:49 +0000 (20:57 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 09:22:29 +0000 (11:22 +0200)
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
configure.ac
m4/my_lib_readline.m4
src/client/configure.ac

index c0816116f21b57093561a089272c661822f13f88..7e56c02af49a5fb31dc053896b5368164ae79d0d 100644 (file)
@@ -73,7 +73,7 @@ LIBS_util="$LIBS"
 LIBS="$LIBS_SOCKETS $LIBS"
 AX_LIB_SOCKET_NSL
 LIBS_server="$LIBS"
-MY_LIB_READLINE
+MY_WITH_READLINE
 
 
 ### Checks for header files
@@ -235,6 +235,7 @@ AC_OUTPUT
 AC_MSG_NOTICE([])
 AC_MSG_NOTICE([-= Configuration summary =-])
 AC_MSG_NOTICE([Thread package: $empthread])
+AC_MSG_NOTICE([      readline: $with_readline])
 AC_MSG_NOTICE([      terminfo: $with_terminfo])
 AC_MSG_NOTICE([    EMPIREHOST: $EMPIREHOST])
 AC_MSG_NOTICE([    EMPIREPORT: $EMPIREPORT])
index 5d570e5eb6f69e3755770bce6799c2cfd763a7e6..37fedec5610681e577bcbf6d52d6991955c5c2eb 100644 (file)
@@ -23,3 +23,18 @@ AC_DEFUN([MY_LIB_READLINE], [
                  [Define if you have libreadline])
     fi
 ])
+
+AC_DEFUN([MY_WITH_READLINE],
+[
+  AC_ARG_WITH([readline],
+    [AS_HELP_STRING([--with-readline],
+      [support fancy command line editing @<:@default=check@:>@])],
+    [],
+    [with_readline=check])
+  if test "x$with_readline" != xno; then
+      MY_LIB_READLINE
+      if test "x$have_readline$with_readline" = xnoyes; then
+         AC_MSG_FAILURE([--with-readline was given, but test for readline failed])
+      fi
+      with_readline="$have_readline"
+  fi])
index 90cc518ea9042789852234e640fa747c6cd747fc..2baebcad007060219fff2ed0b1d82038db099822 100644 (file)
@@ -58,7 +58,7 @@ if test "$Windows_API" = yes; then
        AC_LIBOBJ([w32/w32io])
        AC_LIBOBJ([w32/w32sockets])
 fi
-MY_LIB_READLINE
+MY_WITH_READLINE
 
 
 ### Checks for header files.
@@ -94,6 +94,7 @@ AC_OUTPUT
 
 AC_MSG_NOTICE([])
 AC_MSG_NOTICE([-= Configuration summary =-])
+AC_MSG_NOTICE([      readline: $with_readline])
 AC_MSG_NOTICE([      terminfo: $with_terminfo])
 AC_MSG_NOTICE([    EMPIREHOST: $EMPIREHOST])
 AC_MSG_NOTICE([    EMPIREPORT: $EMPIREPORT])