summaryrefslogtreecommitdiff
path: root/openwrt/package/quagga/patches/quagga-readline.patch
blob: 8e3b80562193c441cff5a74483b04efcdeb141a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- quagga-0.98.4/configure.orig	Mon Jun 27 19:05:31 2005
+++ quagga-0.98.4/configure	Thu Jul 28 07:02:12 2005
@@ -10937,7 +10937,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lcurses  $LIBS"
+#LIBS="-lcurses  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -11071,7 +11071,8 @@
 #define HAVE_LIBNCURSES 1
 _ACEOF
 
-  LIBS="-lncurses $LIBS"
+#  LIBS="-lncurses $LIBS"
+CURSES=-lncurses
 
 fi
 
@@ -11088,7 +11089,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline  $LIBS"
+LIBS="-lreadline $CURSES $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -11144,7 +11145,8 @@
 #define HAVE_LIBREADLINE 1
 _ACEOF
 
-  LIBS="-lreadline $LIBS"
+#  LIBS="-lreadline $LIBS"
+CURSES="$CURSES -lreadline"
 
 fi
 
@@ -11303,7 +11305,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline  $LIBS"
+LIBS="-lreadline $CURSES $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -11365,7 +11367,7 @@
 #define HAVE_LIBREADLINE 1
 _ACEOF
 
-  LIBS="-lreadline $LIBS"
+#  LIBS="-lreadline $LIBS"
 
 fi