[Python-checkins] r42307 - python/trunk/configure python/trunk/configure.in

martin.v.loewis python-checkins at python.org
Fri Feb 10 21:49:31 CET 2006


Author: martin.v.loewis
Date: Fri Feb 10 21:49:30 2006
New Revision: 42307

Modified:
   python/trunk/configure
   python/trunk/configure.in
Log:
Avoid linking python with readline.


Modified: python/trunk/configure
==============================================================================
--- python/trunk/configure	(original)
+++ python/trunk/configure	Fri Feb 10 21:49:30 2006
@@ -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 @@
 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 @@
 
 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

Modified: python/trunk/configure.in
==============================================================================
--- python/trunk/configure.in	(original)
+++ python/trunk/configure.in	Fri Feb 10 21:49:30 2006
@@ -2898,6 +2898,8 @@
 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 @@
   [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([


More information about the Python-checkins mailing list