Make sure to only export if new --enable-termcap is set.

This commit is contained in:
Joachim Nilsson 2010-07-19 03:33:39 +02:00
parent 576e437290
commit 60245e5e51
2 changed files with 4 additions and 0 deletions

2
configure vendored
View File

@ -11269,6 +11269,7 @@ AM_CFLAGS="-std=gnu99 $inline_cflags -W -Wall -Wundef -Wunused -Wstrict-prototyp
### The following magic for determining the location of termcap library is from GNU Texinfo
### http://www.tex.ac.uk/tex-archive/macros/texinfo/texinfo/configure.ac
if test x$enable_termcap = "xyes"; then
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
# rather ncurses. So we check for it.
TERMLIBS=
@ -11387,6 +11388,7 @@ if test -n "$ac_cv_var_ospeed" \
TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
fi
#
fi
# Do not use <ncurses/termcap.h> unless we're linking with ncurses.
# Must come after the termlib tests.

View File

@ -112,6 +112,7 @@ AC_SUBST(AM_CFLAGS)
### The following magic for determining the location of termcap library is from GNU Texinfo
### http://www.tex.ac.uk/tex-archive/macros/texinfo/texinfo/configure.ac
if test x$enable_termcap = "xyes"; then
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
# rather ncurses. So we check for it.
TERMLIBS=
@ -167,6 +168,7 @@ if test -n "$ac_cv_var_ospeed" \
TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
fi
AC_SUBST(TERMLIBS)#
fi
# Do not use <ncurses/termcap.h> unless we're linking with ncurses.
# Must come after the termlib tests.