]> git.sur5r.net Git - kconfig-frontends/commitdiff
configure: fix search for secondary ncurses libs
authorYann E. MORIN" <yann.morin.1998@free.fr>
Mon, 5 Mar 2012 20:45:56 +0000 (21:45 +0100)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Mon, 5 Mar 2012 20:45:56 +0000 (21:45 +0100)
When building statically, the ncurses library must be specified if
one tries to link any of the libpanel of libmenu libraries.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
configure.ac

index bac33aeaec390655d17189b79e8623d47eb2e536..86df369ff8f73db9553b798ac097d479fef568e6 100644 (file)
@@ -225,7 +225,8 @@ AS_IF(
      AC_SEARCH_LIBS(
         [new_panel],
         [panelw panel],
-        [ac_ct_panel_lib_found=yes; break])
+        [ac_ct_panel_lib_found=yes; break],,
+        [$ncurses_LIBS])
      AS_IF(
         [test -z "$ac_ct_panel_lib_found"],
         [AS_IF(
@@ -235,7 +236,8 @@ AS_IF(
      AC_SEARCH_LIBS(
         [menu_init],
         [menuw menu],
-        [ac_ct_menu_lib_found=yes; break])
+        [ac_ct_menu_lib_found=yes; break],,
+        [$ncurses_LIBS])
      AS_IF(
         [test -z "$ac_ct_panel_lib_found"],
         [AS_IF(