Only build epollmultiplexer on Linux
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 27 Jan 2015 13:21:56 +0000 (14:21 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 27 Jan 2015 13:21:56 +0000 (14:21 +0100)
fixes make -C pdns pdns_recursor on OSX

configure.ac
pdns/Makefile.am

index 81a2503d98024712a8b7d642ca1a58802568f195..e60b25640bb40600432173b1cdd314e430dfd865 100644 (file)
@@ -149,6 +149,7 @@ solaris2.8 | solaris2.9 )
   ;;
 linux*)
   THREADFLAGS="-pthread"
+  have_linux="yes"
   ;;
 darwin*)
   CXXFLAGS="-D__APPLE_USE_RFC_3542 -D_XOPEN_SOURCE $CXXFLAGS"
@@ -159,6 +160,8 @@ darwin*)
   ;;
 esac
 
+AM_CONDITIONAL([HAVE_LINUX], [test "x$have_linux" = "xyes"])
+
 AC_SUBST(THREADFLAGS)
 AC_SUBST([DYNLINKFLAGS], [-export-dynamic])
 
index 299159bbcee00d68123d713d610f65fd5ed2369c..fe4c4a9fa416a06bd9380c3ca404e17dd116dbf1 100644 (file)
@@ -948,7 +948,6 @@ pdns_recursor_SOURCES = \
        dnsparser.cc \
        dnsrecords.cc dnsrecords.hh \
        dnswriter.cc dnswriter.hh \
-       epollmplexer.cc \
        iputils.cc \
        json.cc json.hh \
        logger.cc \
@@ -993,6 +992,10 @@ if LUA
 pdns_recursor_LDADD += $(LUA_LIBS)
 endif
 
+if HAVE_LINUX
+pdns_recursor_SOURCES += epollmplexer.cc
+endif
+
 pdns_control_SOURCES = \
        arguments.cc \
        dynloader.cc \