4
# Version: $Id: configure.in,v 1.2.4.1 2006/05/21 16:18:04 nbk Exp $
1
7
AC_INIT(rlm_eap_peap.c)
2
AC_REVISION($Revision: 1.2 $)
8
AC_REVISION($Revision: 1.2.4.1 $)
3
9
AC_DEFUN(modname,[rlm_eap_peap])
8
15
if test x$with_[]modname != xno; then
17
dnl ############################################################
18
dnl # Check for command line options
19
dnl ############################################################
12
dnl extra argument: --with-rlm-eap-peap-lib-dir
14
21
AC_ARG_WITH(rlm-eap-peap-lib-dir,
15
[ --with-rlm-eap-peap-lib-dir=DIR Directory for EAPPEAP library files []],
18
AC_MSG_ERROR(Need rlm-eap-peap-lib-dir)
23
rlm_eap_peap_lib_dir="$withval"
22
[ --with-rlm-eap-peap-lib-dir directory for eap-peap libs],
23
eap_peap_ldflags="-L$withval")
28
dnl extra argument: --with-rlm-eap-peap-include-dir
30
25
AC_ARG_WITH(rlm-eap-peap-include-dir,
31
[ --with-rlm-eap-peap-include-dir=DIR Directory for EAPPEAP include files []],
34
AC_MSG_ERROR(Need rlm-eap-peap-include-dir)
39
rlm_eap_peap_inc_dir="$withval"
45
dnl # extra argument: --openssl-includes=dir
47
AC_ARG_WITH(openssl-includes,
48
[ --with-openssl-includes=DIR Directory to look for OpenSSL include files],
51
rlm_eap_peap_inc_dir="$rlm_eap_peap_inc_dir $withval"
52
SMART_CFLAGS="$SMART_CFLAGS -I$withval"
58
dnl # extra argument: --openssl-libraries=dir
60
AC_ARG_WITH(openssl-libraries,
61
[ --with-openssl-libraries=DIR Directory to look for OpenSSL library files],
64
rlm_eap_peap_lib_dir="$rlm_eap_peap_lib_dir $withval"
65
SMART_LIBS="$SMART_LIBS -L$withval"
70
smart_try_dir=$rlm_eap_peap_inc_dir
71
AC_SMART_CHECK_INCLUDE(openssl/ssl.h)
72
if test "x$ac_cv_header_openssl_ssl_h" != "xyes"; then
73
fail="$fail (openssl/ssl.h)"
26
[ --with-rlm-eap-peap-include-dir directory for eap-peap includes],
27
eap_peap_cflags="-I$withval")
29
dnl ############################################################
30
dnl # Check for OpenSSL support
31
dnl ############################################################
33
AC_MSG_CHECKING(for OpenSSL support)
34
if test "x$OPENSSL_LIBS" != "x"; then
76
smart_try_dir=$rlm_eap_peap_lib_dir
77
AC_SMART_CHECK_LIB(crypto, DH_new)
78
if test "x$ac_cv_lib_crypto_DH_new" != "xyes"; then
79
fail="$fail libcrypto"
82
AC_SMART_CHECK_LIB(ssl, SSL_new)
83
if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
102
51
AC_MSG_WARN([silently not building ]modname[.])
103
52
AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.])
104
53
if test x"$headersuggestion" != x; then
105
AC_MSG_WARN([$headersuggestion])
54
AC_MSG_WARN([$headersuggestion])
107
56
if test x"$libsuggestion" != x; then
108
AC_MSG_WARN([$libsuggestion])
57
AC_MSG_WARN([$libsuggestion])
114
eap_peap_ldflags=$SMART_LIBS
115
eap_peap_cflags=$SMART_CFLAGS
116
63
AC_SUBST(eap_peap_ldflags)
117
64
AC_SUBST(eap_peap_cflags)
118
65
AC_SUBST(targetname)