improved the solaris depenendent stuff
authorvenaas <venaas>
Wed, 11 Mar 2009 14:33:44 +0000 (14:33 +0000)
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Wed, 11 Mar 2009 14:33:44 +0000 (14:33 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@489 e88ac4ed-0b26-0410-9574-a7f39faa03bf

Makefile.am
Makefile.am-solaris [deleted file]
configure.ac

index 06d9c1f..1422223 100644 (file)
@@ -29,7 +29,7 @@ radsecproxy_SOURCES = radsecproxy.c \
                      tls.h \
                      dtls.h
 
-radsecproxy_CFLAGS  = -g -Wall -pedantic -pthread @SSL_CFLAGS@ @TARGET_CFLAGS@
+radsecproxy_CFLAGS  = -g @SSL_CFLAGS@ @TARGET_CFLAGS@
 radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
 radsecproxy_LDADD   = @SSL_LIBS@
 
diff --git a/Makefile.am-solaris b/Makefile.am-solaris
deleted file mode 100644 (file)
index 20f67ae..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-sbin_PROGRAMS        = radsecproxy
-
-radsecproxy_SOURCES = radsecproxy.c \
-                     tlscommon.c \
-                      gconfig.c \
-                      util.c \
-                      debug.c \
-                      list.c \
-                      hash.c \
-                     tlv11.c \
-                     hostport.c \
-                     radmsg.c \
-                     udp.c \
-                     tcp.c \
-                     tls.c \
-                     dtls.c \
-                      radsecproxy.h \
-                      tlscommon.h \
-                      gconfig.h \
-                      debug.h \
-                      util.h \
-                      list.h \
-                      hash.h \
-                     tlv11.h \
-                     hostport.h \
-                     radmsg.h \
-                     udp.h \
-                     tcp.h \
-                     tls.h \
-                     dtls.h
-
-radsecproxy_CFLAGS  = -g -mt @SSL_CFLAGS@ @TARGET_CFLAGS@
-radsecproxy_LDFLAGS = -lpthread -lsocket -lnsl @SSL_LDFLAGS@ @TARGET_LDFLAGS@
-radsecproxy_LDADD   = @SSL_LIBS@
-
-dist_sysconf_DATA   = $(srcdir)/radsecproxy.conf-example
-dist_man_MANS       = radsecproxy.1 radsecproxy.conf.5
index aafe22e..de8652e 100644 (file)
@@ -50,11 +50,11 @@ dnl Check if we're on Solaris and set CFLAGS accordingly
 AC_CANONICAL_SYSTEM
 case "${target_os}" in
   solaris*)
-    TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
-    TARGET_LDFLAGS="-lsocket"
+    TARGET_CFLAGS="-mt -DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
+    TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
     ;;
   *)
-    TARGET_CFLAGS=""
+    TARGET_CFLAGS="-Wall -pedantic -pthread"
     TARGET_LDFLAGS=""
   esac
 dnl Adding enabled options