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 TARGET_LDFLAGS="-lsocket"
60 dnl Adding enabled options
61 if test "x$udp" = "xyes" ; then
62 echo "UDP transport enabled"
63 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_UDP"
65 if test "x$tcp" = "xyes" ; then
66 echo "TCP transport enabled"
67 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TCP"
69 if test "x$tls" = "xyes" ; then
70 echo "TLS (RadSec) transport enabled"
71 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TLS"
73 if test "x$dtls" = "xyes" ; then
74 echo "DTLS transport enabled"
75 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS"
78 AC_SUBST(TARGET_CFLAGS)
79 AC_SUBST(TARGET_LDFLAGS)