* radsecproxy.c (extractattr): Add vendor_flag argument and enforce
[radsecproxy.git] / configure.ac
index aafe22e..e6b62c0 100644 (file)
@@ -1,4 +1,5 @@
-AC_INIT(radsecproxy, 2.0-devel, venaas@uninett.no)
+AC_INIT(radsecproxy, 1.4-devel, radsecproxy@uninett.no)
+AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE
 AC_PROG_CC
 AM_PROG_CC_C_O
@@ -51,10 +52,15 @@ AC_CANONICAL_SYSTEM
 case "${target_os}" in
   solaris*)
     TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
-    TARGET_LDFLAGS="-lsocket"
+    if test "$GCC" != yes ; then
+      TARGET_CFLAGS="$TARGET_CFLAGS -mt"
+    else
+      TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
+    fi
+    TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
     ;;
   *)
-    TARGET_CFLAGS=""
+    TARGET_CFLAGS="-Wall -pedantic -pthread"
     TARGET_LDFLAGS=""
   esac
 dnl Adding enabled options