2 AC_INIT(radsecproxy, 1.5-dev, radsecproxy@uninett.no)
4 AC_INIT(radsecproxy, 1.4.3, radsecproxy@uninett.no)
13 [ --enable-udp whether to enable UDP transport: yes/no; default yes ],
14 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
17 echo "--enable-udp argument must be yes or no"
24 [ --enable-tcp whether to enable TCP transport: yes/no; default yes ],
25 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
28 echo "--enable-tcp argument must be yes or no"
35 [ --enable-tls whether to enable TLS (RadSec) transport: yes/no; default yes ],
36 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
39 echo "--enable-tls argument must be yes or no"
46 [ --enable-dtls whether to enable DTLS transport: yes/no; default yes ],
47 [ if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
50 echo "--enable-dtls argument must be yes or no"
56 AC_HELP_STRING([--enable-fticks],[build with F-Ticks support [default=no]]),
59 *) AC_MSG_ERROR([bad value $enableval for --enable-fticks, need yes or no]) ;;
63 if test "$enable_fticks" = "yes"; then
64 AC_CHECK_LIB([nettle], [nettle_sha256_init],,
65 [AC_MSG_WARN([required library nettle not found, fticks support disabled])
69 if test "$enable_fticks" = "yes"; then
70 AC_DEFINE([WANT_FTICKS], [1])
72 AM_CONDITIONAL(WANT_FTICKS, test "$enable_fticks" = "yes")
74 dnl Check if we're on Solaris and set CFLAGS accordingly
76 case "${target_os}" in
78 TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
79 if test "$GCC" != yes ; then
80 TARGET_CFLAGS="$TARGET_CFLAGS -mt"
82 TARGET_CFLAGS="$TARGET_CFLAGS -pthreads"
84 TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
87 TARGET_CFLAGS="-Wall -pedantic -pthread"
90 dnl Adding enabled options
91 if test "x$udp" = "xyes" ; then
92 echo "UDP transport enabled"
93 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_UDP"
95 if test "x$tcp" = "xyes" ; then
96 echo "TCP transport enabled"
97 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TCP"
99 if test "x$tls" = "xyes" ; then
100 echo "TLS (RadSec) transport enabled"
101 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_TLS"
103 if test "x$dtls" = "xyes" ; then
104 echo "DTLS transport enabled"
105 TARGET_CFLAGS="$TARGET_CFLAGS -DRADPROT_DTLS"
108 AC_ARG_VAR([DOCBOOK2X_MAN], [docbook2x-man])
109 AC_CHECK_PROG([DOCBOOK2X_MAN], [docbook2x-man], [yes])
110 AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, test "$DOCBOOK2X_MAN" = "yes")
112 AC_SUBST(TARGET_CFLAGS)
113 AC_SUBST(TARGET_LDFLAGS)