summaryrefslogtreecommitdiff
blob: bb93fc2d39cd0f5cefd7fe795b6dfce0dcf4fe34 (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
https://bugs.gentoo.org/690092

--- gom-0.29.103/configure.in
+++ gom-0.29.103/configure.in
@@ -25,6 +25,7 @@
 AC_PROG_CC
 AC_PROG_INSTALL
 AC_PROG_LN_S
+PKG_PROG_PKG_CONFIG
 
 
 dnl Custom options to configure
@@ -39,11 +40,11 @@
 
 dnl Checks for libraries.
 
-AC_CHECK_LIB(ncurses, beep)
-if [[ "$ac_cv_lib_ncurses_beep" != "yes" ]]
-    then AC_MSG_ERROR("Need ncurses library for terminal gomii!")
-fi
-
+PKG_CHECK_MODULES(NCURSES, ncurses, [
+		  LIBS="$LIBS $NCURSES_LIBS"
+		 ],[
+		  AC_MSG_ERROR([Need ncurses library for terminal gomii!])
+		 ])
 
 if [[ "$enable_x_gomii" = "yes" ]]; then
       AC_CHECK_LIB(X11, main)