X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=3ff1cc3ab40bb76634f4243fd413feb5cddcb55c;hb=869d3bd09e1f636fa0952709ddc0038a6c40ca70;hp=11bad1d44c798f5fae0e2c94b8d37fed87e287cb;hpb=5e057b3271a05ba7e83fc6c0b43db8c6b9926123;p=libradsec.git diff --git a/configure.ac b/configure.ac index 11bad1d..3ff1cc3 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,9 @@ -AC_INIT(radsecproxy, 1.4.3, radsecproxy@uninett.no) +AC_INIT(radsecproxy, 1.5-dev, radsecproxy@uninett.no) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE AC_PROG_CC AM_PROG_CC_C_O +AC_PROG_RANLIB udp=yes AC_ARG_ENABLE(udp, [ --enable-udp whether to enable UDP transport: yes/no; default yes ], @@ -46,7 +47,26 @@ AC_ARG_ENABLE(dtls, exit -1 fi ]) - + +AC_ARG_ENABLE(fticks, +AC_HELP_STRING([--enable-fticks],[build with F-Ticks support [default=no]]), +[case $enableval in +yes|no) ;; +*) AC_MSG_ERROR([bad value $enableval for --enable-fticks, need yes or no]) ;; +esac], +[enable_fticks=no]) + +if test "$enable_fticks" = "yes"; then +AC_CHECK_LIB([nettle], [nettle_sha256_init],, + [AC_MSG_WARN([required library nettle not found, fticks support disabled]) + enable_fticks=no]) +fi + +if test "$enable_fticks" = "yes"; then +AC_DEFINE([WANT_FTICKS], [1]) +fi +AM_CONDITIONAL(WANT_FTICKS, test "$enable_fticks" = "yes") + dnl Check if we're on Solaris and set CFLAGS accordingly AC_CANONICAL_SYSTEM case "${target_os}" in @@ -88,4 +108,7 @@ AM_CONDITIONAL(HAVE_DOCBOOK2X_MAN, test "$DOCBOOK2X_MAN" = "yes") AC_SUBST(TARGET_CFLAGS) AC_SUBST(TARGET_LDFLAGS) AX_CHECK_SSL -AC_OUTPUT(Makefile) +AC_OUTPUT([ + Makefile + tests/Makefile +])