1 AC_INIT(radsecproxy, 1.4-beta2, radsecproxy@uninett.no)
8 [ --enable-udp whether to enable UDP transport: yes/no; default yes ],
9 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
12 echo "--enable-udp argument must be yes or no"
19 [ --enable-tcp whether to enable TCP transport: yes/no; default yes ],
20 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
23 echo "--enable-tcp argument must be yes or no"
30 [ --enable-tls whether to enable TLS (RadSec) transport: yes/no; default yes ],
31 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
34 echo "--enable-tls argument must be yes or no"
41 [ --enable-dtls whether to enable DTLS transport: yes/no; default yes ],
42 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
45 echo "--enable-dtls argument must be yes or no"
50 dnl Check if we're on Solaris and set CFLAGS accordingly
52 case "${target_os}" in
54 TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
55 if test "$GCC" != yes ; then
56 TARGET_CFLAGS="$TARGET_CFLAGS -mt"
58 TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
60 TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
63 TARGET_CFLAGS="-Wall -pedantic -pthread"
66 dnl Adding enabled options
67 if test "x$udp" = "xyes" ; then
68 echo "UDP transport enabled"
69 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_UDP"
71 if test "x$tcp" = "xyes" ; then
72 echo "TCP transport enabled"
73 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TCP"
75 if test "x$tls" = "xyes" ; then
76 echo "TLS (RadSec) transport enabled"
77 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TLS"
79 if test "x$dtls" = "xyes" ; then
80 echo "DTLS transport enabled"
81 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS"
84 AC_SUBST(TARGET_CFLAGS)
85 AC_SUBST(TARGET_LDFLAGS)