summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-08-10 20:34:15 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-08-10 20:34:15 +1000
commitc7572b26611241cb86319193693b940f5dbf47c9 (patch)
tree49cae2de2fd3cc456dc53483d1b09939f0deb412
parent8bc6b900ed8609d67e75bc7266b9b533a703eb4a (diff)
- (dtucker) [configure.ac] Test libedit library and headers for compatibility.
Report from skeleten AT shillest.net, ok djm@
-rw-r--r--ChangeLog6
-rw-r--r--configure.ac16
2 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a27ad62..37539b72 100644
--- 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
@@ -2900,4 +2904,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
-$Id: ChangeLog,v 1.3863 2005/08/09 17:09:53 tim Exp $
+$Id: ChangeLog,v 1.3864 2005/08/10 10:34:15 dtucker Exp $
diff --git a/configure.ac b/configure.ac
index a6fae9ff..60dbd0c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.283 2005/08/09 17:09:54 tim Exp $
+# $Id: configure.ac,v 1.284 2005/08/10 10:34:15 dtucker Exp $
#
# Copyright (c) 1999-2004 Damien Miller
#
@@ -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 ]
)