1 AC_INIT(radsecproxy, 2.0-devel, venaas@uninett.no)
7 [ --enable-udp whether to enable UDP transport: yes/no; default yes ],
8 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
11 echo "--enable-udp argument must be yes or no"
18 [ --enable-tcp whether to enable TCP transport: yes/no; default yes ],
19 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
22 echo "--enable-tcp argument must be yes or no"
29 [ --enable-tls whether to enable TLS (RadSec) transport: yes/no; default yes ],
30 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
33 echo "--enable-tls argument must be yes or no"
40 [ --enable-dtls whether to enable DTLS transport: yes/no; default yes ],
41 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
44 echo "--enable-dtls argument must be yes or no"
49 dnl Check if we're on Solaris and set CFLAGS accordingly
51 case "${target_os}" in
53 TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
54 if test "$GCC" != yes ; then
55 TARGET_CFLAGS="$TARGET_CFLAGS -mt"
57 TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
60 TARGET_CFLAGS="-Wall -pedantic -pthread"
63 dnl Adding enabled options
64 if test "x$udp" = "xyes" ; then
65 echo "UDP transport enabled"
66 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_UDP"
68 if test "x$tcp" = "xyes" ; then
69 echo "TCP transport enabled"
70 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TCP"
72 if test "x$tls" = "xyes" ; then
73 echo "TLS (RadSec) transport enabled"
74 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TLS"
76 if test "x$dtls" = "xyes" ; then
77 echo "DTLS transport enabled"
78 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS"
81 AC_SUBST(TARGET_CFLAGS)
82 AC_SUBST(TARGET_LDFLAGS)