Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82bca63

Browse files
committed
Avoid linking python with readline.
1 parent 03904bf commit 82bca63

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

configure

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 42046 .
2+
# From configure.in Revision: 42199 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.59 for python 2.5.
55
#
@@ -20016,6 +20016,8 @@ _ACEOF
2001620016
fi
2001720017

2001820018
# check where readline lives
20019+
# save the value of LIBS so we don't actually link Python with readline
20020+
LIBS_no_readline=$LIBS
2001920021

2002020022
echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
2002120023
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
@@ -20506,6 +20508,9 @@ rm -f conftest*
2050620508

2050720509
fi
2050820510

20511+
# End of readline checks: restore LIBS
20512+
LIBS=$LIBS_no_readline
20513+
2050920514
echo "$as_me:$LINENO: checking for broken nice()" >&5
2051020515
echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6
2051120516
if test "${ac_cv_broken_nice+set}" = set; then

configure.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2898,6 +2898,8 @@ then
28982898
fi
28992899

29002900
# check where readline lives
2901+
# save the value of LIBS so we don't actually link Python with readline
2902+
LIBS_no_readline=$LIBS
29012903
AC_CHECK_LIB(readline, readline)
29022904
if test "$ac_cv_have_readline_readline" = no
29032905
then
@@ -2941,6 +2943,9 @@ then
29412943
[Define if you can turn off readline's signal handling.]), )
29422944
fi
29432945

2946+
# End of readline checks: restore LIBS
2947+
LIBS=$LIBS_no_readline
2948+
29442949
AC_MSG_CHECKING(for broken nice())
29452950
AC_CACHE_VAL(ac_cv_broken_nice, [
29462951
AC_TRY_RUN([

0 commit comments

Comments
 (0)