diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-03-21 09:58:07 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-03-21 09:58:07 +1100 |
commit | 1df61452ea479323b22bd6f522e7d1f09fca5fe6 (patch) | |
tree | a92fa121b1183947008ad59887379c379cbc0c58 /configure.ac | |
parent | 86a5f8dd0afd10c8b844c81b04b436dd2bb852a3 (diff) |
- (dtucker) [configure.ac] Make configure error out if the user specifies
--with-libedit but the required libs can't be found, rather than silently
ignoring and continuing. ok tim@
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d7713850..f105e20d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.255 2005/03/20 22:55:17 dtucker Exp $ +# $Id: configure.ac,v 1.256 2005/03/20 22:58:08 dtucker Exp $ # # Copyright (c) 1999-2004 Damien Miller # @@ -850,13 +850,18 @@ LIBEDIT_MSG="no" AC_ARG_WITH(libedit, [ --with-libedit[[=PATH]] Enable libedit support for sftp], [ if test "x$withval" != "xno" ; then + if test "x$withval" != "xyes"; then + CPPFLAGS="$CPPFLAGS -I$withval/include" + LDFLAGS="$LDFLAGS -L$withval/lib" + fi AC_CHECK_LIB(edit, el_init, [ AC_DEFINE(USE_LIBEDIT, [], [Use libedit for sftp]) LIBEDIT="-ledit -lcurses" LIBEDIT_MSG="yes" AC_SUBST(LIBEDIT) ], - [], [-lcurses] + [ AC_MSG_ERROR(libedit not found) ], + [ -lcurses ] ) fi ] ) |