blob: 5f8257ec90187e88488fca9cb14be2158c0d87c8 (
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
|
$NetBSD: patch-ab,v 1.2 2011/09/04 14:31:58 joerg Exp $
--- configure.in.orig 2007-07-30 15:48:41.000000000 +0000
+++ configure.in
@@ -39,7 +39,7 @@ case "$OS" in
;;
esac
-LDFLAGS="$LDFLAGS -export-dynamic"
+LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h string.h strings.h sys/param.h unistd.h sys/un.h \
@@ -49,7 +49,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])
|