8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

Autoconf: the usage of the readline library can be turned off with

'--without-readline'.
This commit is contained in:
eku 2002-10-01 10:38:13 +00:00
parent 0daee56dff
commit 6fcc4ccdc7

View File

@ -1,4 +1,4 @@
dnl $Id: configure.in,v 1.50 2002-10-01 05:47:58 eku Exp $
dnl $Id: configure.in,v 1.51 2002-10-01 10:38:13 eku Exp $
dnl ############################# INITIALISATION ###############################
@ -109,6 +109,15 @@ if test "$FIREBIRD_ARCH_TYPE" = "classic"; then
fi
AC_SUBST(MANAGER_PROCESS_TARGET)
READLINE_FLG=Y
AC_ARG_WITH(readline,
[ --with-readline support fancy command line editing (default=yes)],
[case "$withval" in
yes) READLINE_FLG=Y;;
no) READLINE_FLG=N;;
*) AC_MSG_ERROR(bad value '${withval}' for --with-readline);;
esac])
dnl Check for system header files
AC_CHECK_HEADERS(assert.h)
AC_CHECK_HEADERS(ctype.h)
@ -133,7 +142,9 @@ AC_CHECK_HEADERS(stdarg.h)
AC_CHECK_HEADERS(stdlib.h)
AC_CHECK_HEADERS(string.h)
AC_CHECK_HEADERS(signal.h)
AC_CHECK_HEADERS(readline/readline.h)
if test "$READLINE_FLG" = "Y"; then
AC_CHECK_HEADERS(readline/readline.h)
fi
AC_CHECK_HEADERS(pwd.h)
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(varargs.h)
@ -149,7 +160,9 @@ fi
AC_CHECK_LIB(crypt, main)
AC_CHECK_LIB(curses, main)
dnl AC_CHECK_LIB(termcap, main)
AC_CHECK_LIB(readline, main,,, $LIBS)
if test "$READLINE_FLG" = "Y"; then
AC_CHECK_LIB(readline, main,,, $LIBS)
fi
AC_CHECK_LIB(stdc++, main,,, $LIBS)