X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=8438bcb468079d762db078b9255011e780503de2;hb=e506e1b12f1b206aa38e30e5eac817f8b7c6125e;hp=8f0be567f97a7093506f68e2fdcae6b29deb8bde;hpb=0db04b4576766f6860474bf04bdac23bceb65a80;p=libradsec.git diff --git a/configure.ac b/configure.ac index 8f0be56..8438bcb 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,8 @@ -AC_INIT(radsecproxy, 1.4.2, radsecproxy@uninett.no) +AC_INIT(radsecproxy, 1.6-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 +46,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 @@ -60,7 +79,7 @@ case "${target_os}" in TARGET_LDFLAGS="-lpthread -lsocket -lnsl" ;; *) - TARGET_CFLAGS="-Wall -pedantic -pthread" + TARGET_CFLAGS="-Wall -pedantic -Wno-long-long -pthread" TARGET_LDFLAGS="" esac dnl Adding enabled options @@ -88,4 +107,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 +])