changeset 46:4eaee1fcffa7 stable-1-10

more fixes for Solaris
author Carl Byington <carl@five-ten-sg.com>
date Sat, 22 Mar 2008 11:32:28 -0700
parents 4fd5f0d51144
children a4861687fbd1
files configure.in src/Makefile.am
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sat Mar 22 11:01:54 2008 -0700
+++ b/configure.in	Sat Mar 22 11:32:28 2008 -0700
@@ -37,6 +37,9 @@
 AC_FUNC_STAT
 AC_CHECK_FUNCS([daemon gethostbyname inet_ntoa memchr memmove memset regcomp strdup strtol])
 
+# check for posix threads
+ACX_PTHREAD
+
 AC_CONFIG_FILES([Makefile
                  syslog2iptables.rc
                  syslog2iptables.spec
--- a/src/Makefile.am	Sat Mar 22 11:01:54 2008 -0700
+++ b/src/Makefile.am	Sat Mar 22 11:32:28 2008 -0700
@@ -7,8 +7,9 @@
 INCLUDES= $(all_includes)
 
 # the library search path.
-syslog2iptables_LDFLAGS = $(all_libraries) -pthread
+syslog2iptables_LDFLAGS = $(PTHREAD_CFLAGS) $(PTHREAD_LIBS)
+syslog2iptables_LDADD   = $(all_libraries)
 
 # default compile flags
-syslog2iptables_CXXFLAGS = -pthread
+syslog2iptables_CXXFLAGS = $(PTHREAD_CFLAGS)