diff options
Diffstat (limited to 'configure')
-rw-r--r-- | configure | 31 |
1 files changed, 25 insertions, 6 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac for Readline 8.2, version 2.95. +# From configure.ac for Readline 8.2, version 2.96. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for readline 8.2. # @@ -752,6 +752,7 @@ ac_subst_files='' ac_user_opts=' enable_option_checking with_curses +with_shared_termcap_library enable_multibyte enable_shared enable_static @@ -1405,6 +1406,9 @@ Optional Packages: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-curses use the curses library instead of the termcap library + --enable-shared-termcap-library + link the readline shared library against the + termcap/curses shared library [[default=NO]] Some influential environment variables: CC C compiler command @@ -2986,6 +2990,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac opt_curses=no +opt_shared_termcap_lib=no # Check whether --with-curses was given. @@ -2995,6 +3000,13 @@ then : fi +# Check whether --with-shared-termcap-library was given. +if test ${with_shared_termcap_library+y} +then : + withval=$with_shared_termcap_library; opt_shared_termcap_lib=$withval +fi + + if test "$opt_curses" = "yes"; then prefer_curses=yes fi @@ -7297,7 +7309,8 @@ elif test $bash_cv_termcap_lib = libc; then TERMCAP_LIB= TERMCAP_DEP= else -TERMCAP_LIB=-lcurses +# we assume ncurses is installed somewhere the linker can find it +TERMCAP_LIB=-lncurses TERMCAP_DEP= fi @@ -7318,6 +7331,10 @@ then : fi fi +case "$opt_shared_termcap_lib" in +[Yy][Ee][Ss]) SHARED_TERMCAP="$TERMCAP_LIB" ;; +-l*) SHARED_TERMCAP="$opt_shared_termcap_lib" ;; +esac case "$TERMCAP_LIB" in -ltinfo) TERMCAP_PKG_CONFIG_LIB=tinfo ;; @@ -7810,10 +7827,12 @@ if test -f ${srcdir}/support/shobj-conf; then printf %s "checking configuration for building shared libraries... " >&6; } eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` -# case "$SHLIB_LIBS" in -# *curses*|*termcap*|*termlib*) ;; -# *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; -# esac + # SHARED_TERMCAP is set only if opt_shared_termcap_library is set + case "$SHLIB_LIBS" in + *curses*|*tinfo*) ;; + *termcap*|*termlib*) ;; # common aliases + *) SHLIB_LIBS="$SHLIB_LIBS $SHARED_TERMCAP" ;; + esac |