diff options
author | Linus Nordberg <linus@nordu.net> | 2010-11-11 11:02:14 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-11-11 11:02:14 +0100 |
commit | 5e428810893515156023f647251a0d094562480c (patch) | |
tree | f9fa5f4128853379a004e7cf21222e28478753a6 /lib/configure.ac | |
parent | 83e82dba47aced4a93f9e431b4d8bca94c2f8517 (diff) |
Build even when not configured with `--enable-tls'.
Diffstat (limited to 'lib/configure.ac')
-rw-r--r-- | lib/configure.ac | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/configure.ac b/lib/configure.ac index 2039233..de02a4e 100644 --- a/lib/configure.ac +++ b/lib/configure.ac @@ -11,13 +11,6 @@ AC_PROG_LIBTOOL # Checks for programs. AC_PROG_CC -# Enable-knobs. -AH_TEMPLATE([RS_ENABLE_TLS], [TLS (RadSec) enabled]) -AH_TEMPLATE([RADPROT_TLS], []) -AC_ARG_ENABLE([tls], AS_HELP_STRING([--enable-tls], [enable TLS (RadSec)]), - [AC_DEFINE([RS_ENABLE_TLS]) - AC_DEFINE([RADPROT_TLS])]) - # Checks for libraries. AC_CHECK_LIB([confuse], [cfg_init],, AC_MSG_ERROR([required library libconfuse not found])) @@ -25,11 +18,16 @@ AC_CHECK_LIB([event_core], [event_get_version],, AC_MSG_ERROR([required library libevent_core not found])) AC_CHECK_LIB([freeradius-radius], [rad_alloc],, AC_MSG_ERROR([required library libfreeradius-radius not found])) -dnl TODO: Only do this if --enable-tls or --enable-dtls. -#AC_CHECK_LIB([ssl], [SSL_new],, -# AC_MSG_ERROR([required library libssl not found])) -AC_CHECK_LIB([event_openssl], [bufferevent_openssl_socket_new],, - AC_MSG_ERROR([required library event_openssl not found])) + +# Enable-knobs. +AH_TEMPLATE([RS_ENABLE_TLS], [TLS (RadSec) enabled]) +AH_TEMPLATE([RADPROT_TLS], []) +AC_ARG_ENABLE([tls], AS_HELP_STRING([--enable-tls], [enable TLS (RadSec)]), + [AC_CHECK_LIB([event_openssl], [bufferevent_openssl_socket_new],, + AC_MSG_ERROR([required library event_openssl not found])) + AC_DEFINE([RS_ENABLE_TLS]) + AC_DEFINE([RADPROT_TLS])]) +AM_CONDITIONAL([RS_ENABLE_TLS], [test "${enable_tls+set}" = set]) # Checks for header files. AC_CHECK_HEADERS( |