1 AC_INIT(radsecproxy, 1.5, radsecproxy@uninett.no)
9 [ --enable-udp whether to enable UDP transport: yes/no; default yes ],
10 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
13 echo "--enable-udp argument must be yes or no"
20 [ --enable-tcp whether to enable TCP transport: yes/no; default yes ],
21 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
24 echo "--enable-tcp argument must be yes or no"
31 [ --enable-tls whether to enable TLS (RadSec) transport: yes/no; default yes ],
32 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
35 echo "--enable-tls argument must be yes or no"
42 [ --enable-dtls whether to enable DTLS transport: yes/no; default yes ],
43 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
46 echo "--enable-dtls argument must be yes or no"
52 AC_HELP_STRING([--enable-fticks],[build with F-Ticks support [default=no]]),
55 *) AC_MSG_ERROR([bad value $enableval for --enable-fticks, need yes or no]) ;;
59 if test "$enable_fticks" = "yes"; then
60 AC_CHECK_LIB([nettle], [nettle_sha256_init],,
61 [AC_MSG_WARN([required library nettle not found, fticks support disabled])
65 if test "$enable_fticks" = "yes"; then
66 AC_DEFINE([WANT_FTICKS], [1])
68 AM_CONDITIONAL(WANT_FTICKS, test "$enable_fticks" = "yes")
70 dnl Check if we're on Solaris and set CFLAGS accordingly
72 case "${target_os}" in
74 TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
75 if test "$GCC" != yes ; then
76 TARGET_CFLAGS="$TARGET_CFLAGS -mt"
78 TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
80 TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
83 TARGET_CFLAGS="-Wall -pedantic -pthread"
86 dnl Adding enabled options
87 if test "x$udp" = "xyes" ; then
88 echo "UDP transport enabled"
89 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_UDP"
91 if test "x$tcp" = "xyes" ; then
92 echo "TCP transport enabled"
93 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TCP"
95 if test "x$tls" = "xyes" ; then
96 echo "TLS (RadSec) transport enabled"
97 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TLS"
99 if test "x$dtls" = "xyes" ; then
100 echo "DTLS transport enabled"
101 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS"
104 AC_ARG_VAR([DOCBOOK2X_MAN], [docbook2x-man])
105 AC_CHECK_PROG([DOCBOOK2X_MAN], [docbook2x-man], [yes])
106 AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, test "$DOCBOOK2X_MAN" = "yes")
108 AC_SUBST(TARGET_CFLAGS)
109 AC_SUBST(TARGET_LDFLAGS)