]> andersk Git - openssh.git/commitdiff
- (dtucker) [configure.ac] Test libedit library and headers for compatibility.
authordtucker <dtucker>
Wed, 10 Aug 2005 10:34:15 +0000 (10:34 +0000)
committerdtucker <dtucker>
Wed, 10 Aug 2005 10:34:15 +0000 (10:34 +0000)
   Report from skeleten AT shillest.net, ok djm@

ChangeLog
configure.ac

index 7ca17447db0701dd22334e41e1bebb03475775f4..58fae16c5cb13828e77da4193f4a788eda9d5d49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20050810
+ - (dtucker) [configure.ac] Test libedit library and headers for compatibility.
+   Report from skeleten AT shillest.net, ok djm@
+
 20050809
  - (tim) [configure.ac] Allow --with-audit=no. OK dtucker@
    Report by skeleten AT shillest.net
index 066a5097c875ebe31ce5eaa285102f8d47810e31..6b035fe7df805165f1c536667c874617f155fd35 100644 (file)
@@ -1023,6 +1023,20 @@ AC_ARG_WITH(libedit,
                        [ AC_MSG_ERROR(libedit not found) ],
                        [ -lcurses ]
                )
+               AC_MSG_CHECKING(if libedit version is compatible)
+               AC_TRY_COMPILE([#include <histedit.h>],
+                   [
+int main(void)
+{
+       int i = H_SETSIZE;
+       el_init("", NULL, NULL, NULL);
+       exit(0);
+}
+                   ],
+                   [ AC_MSG_RESULT(yes) ],
+                   [ AC_MSG_RESULT(no)
+                     AC_MSG_ERROR(libedit version is not compatible) ]
+               )
        fi ]
 )
 
This page took 0.103829 seconds and 5 git commands to generate.