]> granicus.if.org Git - pdns/commitdiff
Build devpoll and ports mplexer in on Solaris
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 28 Jan 2015 18:19:40 +0000 (19:19 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 28 Jan 2015 18:19:40 +0000 (19:19 +0100)
configure.ac
pdns/Makefile.am

index 73f2c59e55ca900b9804bc8e2eab012d1f147b1f..cb9998237ab94c97c6787ec5b5a98e9933c99e4b 100644 (file)
@@ -140,12 +140,14 @@ case "$host_os" in
 solaris2.10)
   LIBS="-lposix4 -lpthread -lrt $LIBS"
   CXXFLAGS="-D_REENTRANT $CXXFLAGS"
+  have_solaris="yes"
   ;;
 solaris2.8 | solaris2.9 )
   AC_DEFINE(NEED_POSIX_TYPEDEF,,[If POSIX typedefs need to be defined])
   AC_DEFINE(NEED_INET_NTOP_PROTO,,[If your OS is so broken that it needs an additional prototype])
   LIBS="-lposix4 -lpthread $LIBS"
   CXXFLAGS="-D_REENTRANT $CXXFLAGS"
+  have_solaris="yes"
   ;;
 linux*)
   THREADFLAGS="-pthread"
@@ -167,6 +169,7 @@ esac
 
 AM_CONDITIONAL([HAVE_FREEBSD], [test "x$have_freebsd" = "xyes"])
 AM_CONDITIONAL([HAVE_LINUX], [test "x$have_linux" = "xyes"])
+AM_CONDITIONAL([HAVE_SOLARIS], [test "x$have_solaris" = "xyes"])
 
 AC_SUBST(THREADFLAGS)
 AC_SUBST([DYNLINKFLAGS], [-export-dynamic])
index 76ff42f832977ed9ce64596556ab62952fefa9c3..e92434e7e00d1ee04f883181a62fa416c3e7ad5c 100644 (file)
@@ -987,6 +987,12 @@ if HAVE_LINUX
 pdns_recursor_SOURCES += epollmplexer.cc
 endif
 
+if HAVE_SOLARIS
+pdns_recursor_SOURCES += \
+       devpollmplexer.cc \
+       portsmplexer.cc
+endif
+
 pdns_control_SOURCES = \
        arguments.cc \
        dynloader.cc \