mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
Added configure switch --with-termlib making it possible to explicitly set termcap support library
This commit is contained in:
parent
b08a097f81
commit
7d95eb2665
14
configure.ac
14
configure.ac
@ -549,6 +549,11 @@ AC_ARG_WITH(builtin-tomcrypt,
|
|||||||
[TOMCRYPT_BUILD=Y])
|
[TOMCRYPT_BUILD=Y])
|
||||||
AC_SUBST(TOMCRYPT_BUILD)
|
AC_SUBST(TOMCRYPT_BUILD)
|
||||||
|
|
||||||
|
TERMLIB=
|
||||||
|
AC_ARG_WITH(termlib,
|
||||||
|
[ --with-termlib build with explicitly specified termcap support library],
|
||||||
|
[TERMLIB=${withval}])
|
||||||
|
|
||||||
dnl Avoid dumb '-g -O2' autoconf's default
|
dnl Avoid dumb '-g -O2' autoconf's default
|
||||||
dnl Debugging information and optimization flags should be set in prefix.$platform file
|
dnl Debugging information and optimization flags should be set in prefix.$platform file
|
||||||
dnl Should be replaced with AC_PROG_GCC_DEFAULT_FLAGS() when available
|
dnl Should be replaced with AC_PROG_GCC_DEFAULT_FLAGS() when available
|
||||||
@ -858,18 +863,21 @@ else
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(CRYPTLIB)
|
AC_SUBST(CRYPTLIB)
|
||||||
|
|
||||||
dnl Check for libraries
|
dnl Check for termcap support
|
||||||
AC_SEARCH_LIBS(dlopen, dl)
|
|
||||||
AC_CHECK_LIB(m, main)
|
|
||||||
if test "$EDITLINE_FLG" = "Y"; then
|
if test "$EDITLINE_FLG" = "Y"; then
|
||||||
|
if test -z "$TERMLIB"; then
|
||||||
AC_CHECK_LIB(curses, tgetent, TERMLIB=curses, \
|
AC_CHECK_LIB(curses, tgetent, TERMLIB=curses, \
|
||||||
AC_CHECK_LIB(ncurses, tgetent, TERMLIB=ncurses, \
|
AC_CHECK_LIB(ncurses, tgetent, TERMLIB=ncurses, \
|
||||||
AC_CHECK_LIB(termcap, tgetent, TERMLIB=termcap, \
|
AC_CHECK_LIB(termcap, tgetent, TERMLIB=termcap, \
|
||||||
AC_CHECK_LIB(tinfo, tgetent, TERMLIB=tinfo, \
|
AC_CHECK_LIB(tinfo, tgetent, TERMLIB=tinfo, \
|
||||||
AC_MSG_ERROR(termcap support not found)))))
|
AC_MSG_ERROR(termcap support not found)))))
|
||||||
|
fi
|
||||||
AC_SUBST(TERMLIB)
|
AC_SUBST(TERMLIB)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Check for libraries
|
||||||
|
AC_SEARCH_LIBS(dlopen, dl)
|
||||||
|
AC_CHECK_LIB(m, main)
|
||||||
AC_SEARCH_LIBS(inet_aton, resolv)
|
AC_SEARCH_LIBS(inet_aton, resolv)
|
||||||
AC_CHECK_LIB(atomic, main)
|
AC_CHECK_LIB(atomic, main)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user