]> granicus.if.org Git - python/commitdiff
Avoid linking python with readline.
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 10 Feb 2006 20:49:30 +0000 (20:49 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 10 Feb 2006 20:49:30 +0000 (20:49 +0000)
configure
configure.in

index 0f87215376a01094a60447ac8003d2821f74b3ae..8159268c92774f2dc06f7f08870e0c34f3bc127b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 42046 .
+# From configure.in Revision: 42199 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.5.
 #
@@ -20016,6 +20016,8 @@ _ACEOF
 fi
 
 # check where readline lives
+# save the value of LIBS so we don't actually link Python with readline
+LIBS_no_readline=$LIBS
 
 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
@@ -20506,6 +20508,9 @@ rm -f conftest*
 
 fi
 
+# End of readline checks: restore LIBS
+LIBS=$LIBS_no_readline
+
 echo "$as_me:$LINENO: checking for broken nice()" >&5
 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
 if test "${ac_cv_broken_nice+set}" = set; then
index 1950072bceb24a7fb7142f5d147f07fd258e0f34..3892528f9970d0b34e0ba72d59c42ce2e8deab3d 100644 (file)
@@ -2898,6 +2898,8 @@ then
 fi
 
 # check where readline lives
+# save the value of LIBS so we don't actually link Python with readline
+LIBS_no_readline=$LIBS
 AC_CHECK_LIB(readline, readline)
 if test "$ac_cv_have_readline_readline" = no
 then
@@ -2941,6 +2943,9 @@ then
   [Define if you can turn off readline's signal handling.]), )
 fi
 
+# End of readline checks: restore LIBS
+LIBS=$LIBS_no_readline
+
 AC_MSG_CHECKING(for broken nice())
 AC_CACHE_VAL(ac_cv_broken_nice, [
 AC_TRY_RUN([