~ubuntu-branches/ubuntu/feisty/freeradius/feisty-security

« back to all changes in this revision

Viewing changes to src/modules/rlm_eap/types/rlm_eap_peap/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2006-12-16 20:45:11 UTC
  • mfrom: (3.1.10 feisty)
  • Revision ID: james.westby@ubuntu.com-20061216204511-3pbbsu4s8jtehsor
Tags: 1.1.3-3
Fix POSIX compliance problem in init script.  Closes: #403384. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Autoconf input file.
 
3
#
 
4
# Version:      $Id: configure.in,v 1.2.4.1 2006/05/21 16:18:04 nbk Exp $
 
5
#
 
6
 
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])
4
10
 
5
11
fail=
6
 
SMART_LIBS=
7
 
SMART_CLFAGS=
 
12
eap_peap_ldflags=
 
13
eap_peap_cflags=
 
14
 
8
15
if test x$with_[]modname != xno; then
9
16
 
10
 
        AC_PROG_CC
 
17
        dnl ############################################################
 
18
        dnl # Check for command line options
 
19
        dnl ############################################################
11
20
 
12
 
        dnl extra argument: --with-rlm-eap-peap-lib-dir
13
 
        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 []],
16
 
        [ case "$withval" in
17
 
            no)
18
 
                AC_MSG_ERROR(Need rlm-eap-peap-lib-dir)
19
 
                ;;
20
 
            yes)
21
 
                ;;
22
 
            *)
23
 
                rlm_eap_peap_lib_dir="$withval"
24
 
                ;;
25
 
          esac ]
26
 
        )
 
22
        [  --with-rlm-eap-peap-lib-dir      directory for eap-peap libs],
 
23
        eap_peap_ldflags="-L$withval")
27
24
 
28
 
        dnl extra argument: --with-rlm-eap-peap-include-dir
29
 
        rlm_eap_peap_inc_dir=
30
25
        AC_ARG_WITH(rlm-eap-peap-include-dir,
31
 
        [ --with-rlm-eap-peap-include-dir=DIR Directory for EAPPEAP include files []],
32
 
        [ case "$withval" in
33
 
            no)
34
 
                AC_MSG_ERROR(Need rlm-eap-peap-include-dir)
35
 
                ;;
36
 
            yes)
37
 
                ;;
38
 
            *)
39
 
                rlm_eap_peap_inc_dir="$withval"
40
 
                ;;
41
 
          esac ]
42
 
        )
43
 
 
44
 
        dnl #
45
 
        dnl # extra argument: --openssl-includes=dir
46
 
        dnl #
47
 
        AC_ARG_WITH(openssl-includes,
48
 
        [  --with-openssl-includes=DIR       Directory to look for OpenSSL include files],
49
 
        [ case "$withval" in
50
 
            *)
51
 
                rlm_eap_peap_inc_dir="$rlm_eap_peap_inc_dir $withval"
52
 
                SMART_CFLAGS="$SMART_CFLAGS -I$withval"
53
 
                ;;
54
 
          esac ]
55
 
        )
56
 
 
57
 
        dnl #
58
 
        dnl # extra argument: --openssl-libraries=dir
59
 
        dnl #
60
 
        AC_ARG_WITH(openssl-libraries,
61
 
        [  --with-openssl-libraries=DIR      Directory to look for OpenSSL library files],
62
 
        [ case "$withval" in
63
 
            *)
64
 
                rlm_eap_peap_lib_dir="$rlm_eap_peap_lib_dir $withval"
65
 
                SMART_LIBS="$SMART_LIBS -L$withval"
66
 
                ;;
67
 
          esac ]
68
 
        )
69
 
 
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")
 
28
 
 
29
        dnl ############################################################
 
30
        dnl # Check for OpenSSL support
 
31
        dnl ############################################################
 
32
 
 
33
        AC_MSG_CHECKING(for OpenSSL support)
 
34
        if test "x$OPENSSL_LIBS" != "x"; then
 
35
                AC_MSG_RESULT(yes)
 
36
        else
 
37
                AC_MSG_RESULT(no)
 
38
                fail="OpenSSL"
74
39
        fi
75
40
 
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"
80
 
    fi
81
 
 
82
 
        AC_SMART_CHECK_LIB(ssl, SSL_new)
83
 
    if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
84
 
            fail="$fail libssl"
85
 
    fi
86
 
 
87
 
        AC_CHECK_HEADERS( \
88
 
                openssl/err.h \
89
 
                openssl/engine.h \
90
 
        )
91
 
 
92
41
        targetname=modname
93
42
else
94
43
        targetname=
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])
106
55
                fi
107
56
                if test x"$libsuggestion" != x; then
108
 
                        AC_MSG_WARN([$libsuggestion]) 
 
57
                        AC_MSG_WARN([$libsuggestion])
109
58
                fi
110
59
                targetname=""
111
60
        fi
112
61
fi
113
62
 
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)