python: disable the readline dynload module even if the build system builds it
[packages.git] / net / quagga / patches-old / 001-quagga_readline.patch
1 --- a/configure
2 +++ b/configure
3 @@ -10972,7 +10972,7 @@ if test "${ac_cv_lib_curses_tputs+set}" 
4    echo $ECHO_N "(cached) $ECHO_C" >&6
5  else
6    ac_check_lib_save_LIBS=$LIBS
7 -LIBS="-lcurses  $LIBS"
8 +#LIBS="-lcurses  $LIBS"
9  cat >conftest.$ac_ext <<_ACEOF
10  /* confdefs.h.  */
11  _ACEOF
12 @@ -11108,7 +11108,8 @@ if test $ac_cv_lib_ncurses_tputs = yes; 
13  #define HAVE_LIBNCURSES 1
14  _ACEOF
15  
16 -  LIBS="-lncurses $LIBS"
17 +#  LIBS="-lncurses $LIBS"
18 +CURSES=-lncurses
19  
20  fi
21  
22 @@ -11125,7 +11126,7 @@ if test "${ac_cv_lib_readline_main+set}"
23    echo $ECHO_N "(cached) $ECHO_C" >&6
24  else
25    ac_check_lib_save_LIBS=$LIBS
26 -LIBS="-lreadline  $LIBS"
27 +LIBS="-lreadline $CURSES $LIBS"
28  cat >conftest.$ac_ext <<_ACEOF
29  /* confdefs.h.  */
30  _ACEOF
31 @@ -11182,7 +11183,8 @@ if test $ac_cv_lib_readline_main = yes; 
32  #define HAVE_LIBREADLINE 1
33  _ACEOF
34  
35 -  LIBS="-lreadline $LIBS"
36 +#  LIBS="-lreadline $LIBS"
37 +CURSES="$CURSES -lreadline"
38  
39  fi
40  
41 @@ -11342,7 +11344,7 @@ if test "${ac_cv_lib_readline_rl_complet
42    echo $ECHO_N "(cached) $ECHO_C" >&6
43  else
44    ac_check_lib_save_LIBS=$LIBS
45 -LIBS="-lreadline  $LIBS"
46 +LIBS="-lreadline $CURSES $LIBS"
47  cat >conftest.$ac_ext <<_ACEOF
48  /* confdefs.h.  */
49  _ACEOF
50 @@ -11405,7 +11407,7 @@ if test $ac_cv_lib_readline_rl_completio
51  #define HAVE_LIBREADLINE 1
52  _ACEOF
53  
54 -  LIBS="-lreadline $LIBS"
55 +#  LIBS="-lreadline $LIBS"
56  
57  fi
58