summaryrefslogtreecommitdiff
path: root/audio/moc-devel/patches/patch-ab
blob: 8f51196266f4d397f4c84a75347e60e2b41bd49a (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
$NetBSD: patch-ab,v 1.3 2013/02/10 08:39:00 ryoon Exp $

- use export-dynamic correctly
- check for sched_get_priority_max being in -lrt

--- configure.in.orig	2012-10-11 19:39:37.000000000 +0000
+++ configure.in
@@ -87,7 +87,10 @@ AC_CHECK_HEADERS([fcntl.h string.h strin
 		 AC_MSG_ERROR([Can't find required header files.]))
 AC_CHECK_HEADERS([sys/select.h inttypes.h limits.h stdint.h])
 
-AC_CHECK_FUNCS([sched_get_priority_max])
+AC_CHECK_FUNCS([sched_get_priority_max], ,
+	       [AC_CHECK_LIB([rt], 
+		[sched_get_priority_max], 
+		[EXTRA_LIBS="$EXTRA_LIBS -lrt"])])
 
 dnl langinfo
 AC_CHECK_HEADERS([langinfo.h])
@@ -142,7 +145,7 @@ AX_CFLAGS_GCC_OPTION(-W)
 
 PKG_PROG_PKG_CONFIG([0.20])
 
-if test "x$PKG_CONFIG" == "x"
+if test "x$PKG_CONFIG" = "x"
 then
 	AC_MSG_WARN([No pkg-config utility found or it's too old, I will have trouble finding installed libraries.])
 fi