From 60245e5e5108a91cfe1274269e99d6fbc2b592be Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 19 Jul 2010 03:33:39 +0200 Subject: [PATCH] Make sure to only export if new --enable-termcap is set. --- configure | 2 ++ configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index a835629..8981921 100755 --- a/configure +++ b/configure @@ -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 unless we're linking with ncurses. # Must come after the termlib tests. diff --git a/configure.ac b/configure.ac index c75823d..598df12 100644 --- a/configure.ac +++ b/configure.ac @@ -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 unless we're linking with ncurses. # Must come after the termlib tests.