freebsd-ports/devel/libdispatch/files/patch-configure.ac
Stanislav Sedov 03a0dc36b8 - Update to revision 210.
- Use BlocksRuntime and clang from base if present.
2011-09-09 07:32:40 +00:00

22 lines
464 B
Text

--- configure.ac.orig 2011-09-08 23:48:16.000000000 -0700
+++ configure.ac 2011-09-08 23:48:28.000000000 -0700
@@ -137,7 +137,18 @@
# Find libraries we will need
#
AC_SEARCH_LIBS(clock_gettime, rt)
-AC_SEARCH_LIBS(pthread_create, pthread)
+
+#
+# Find how to enable threads
+#
+case $host in
+*freebsd*)
+ LIBS="${LIBS} -pthread"
+ ;;
+*)
+ AC_SEARCH_LIBS(pthread_create, pthread)
+ ;;
+esac
#
# Prefer native kqueue(2); otherwise use libkqueue if present.