]> granicus.if.org Git - pdns/commitdiff
Build kqueue mplexer into recursor on FreeBSD
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 28 Jan 2015 09:22:41 +0000 (10:22 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 28 Jan 2015 09:23:39 +0000 (10:23 +0100)
configure.ac
pdns/Makefile.am

index 4b2314aaa3f67b3d7b7e1865d4b49e731d9e9675..73f2c59e55ca900b9804bc8e2eab012d1f147b1f 100644 (file)
@@ -154,12 +154,18 @@ linux*)
 darwin*)
   CXXFLAGS="-D__APPLE_USE_RFC_3542 -D_XOPEN_SOURCE $CXXFLAGS"
   ;;
+freebsd*)
+  LDFLAGS="-pthread $LDFLAGS"
+  CXXFLAGS="-pthread $CXXFLAGS"
+  have_freebsd="yes"
+  ;;
 *)
   LDFLAGS="-pthread $LDFLAGS"
   CXXFLAGS="-pthread $CXXFLAGS"
   ;;
 esac
 
+AM_CONDITIONAL([HAVE_FREEBSD], [test "x$have_freebsd" = "xyes"])
 AM_CONDITIONAL([HAVE_LINUX], [test "x$have_linux" = "xyes"])
 
 AC_SUBST(THREADFLAGS)
index 3c893ef3978fa94ee25e0c6c465e57c243ebf30c..76ff42f832977ed9ce64596556ab62952fefa9c3 100644 (file)
@@ -979,6 +979,10 @@ if LUA
 pdns_recursor_LDADD += $(LUA_LIBS)
 endif
 
+if HAVE_FREEBSD
+pdns_recursor_SOURCES += kqueuemplexer.cc
+endif
+
 if HAVE_LINUX
 pdns_recursor_SOURCES += epollmplexer.cc
 endif