$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
