~ubuntu-branches/ubuntu/maverick/strongswan/maverick

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2009-04-01 22:17:52 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090401221752-eozrk0ctabblo94z
* New upstream release, which incorporates the fix. Removed dpatch for it.
  Closes: #521950: CVE-2009-0790: DoS
* New support for EAP RADIUS authentication, enabled for this package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
dnl  initialize & set some vars
17
17
dnl ===========================
18
18
 
19
 
AC_INIT(strongSwan,4.2.9)
 
19
AC_INIT(strongSwan,4.2.14)
20
20
AM_INIT_AUTOMAKE(tar-ustar)
 
21
AC_CONFIG_MACRO_DIR([m4])
21
22
AC_C_BIGENDIAN
22
23
AC_SUBST(confdir, '${sysconfdir}')
23
24
PKG_PROG_PKG_CONFIG
185
186
)
186
187
 
187
188
AC_ARG_ENABLE(
 
189
        [md4],
 
190
        AS_HELP_STRING([--enable-md4],[enable MD4 software implementation plugin (default is NO).]),
 
191
        [if test x$enableval = xyes; then
 
192
                md4=true
 
193
        fi]
 
194
)
 
195
 
 
196
AC_ARG_ENABLE(
188
197
        [md5],
189
198
        AS_HELP_STRING([--disable-md5],[disable own MD5 software implementation plugin. (default is NO).]),
190
199
        [if test x$enableval = xyes; then
379
388
 
380
389
AC_ARG_ENABLE(
381
390
        [lock-profiler],
382
 
        AS_HELP_STRING([--enable-lock-profiling],[enable lock/mutex profiling code (default is NO).]),
 
391
        AS_HELP_STRING([--enable-lock-profiler],[enable lock/mutex profiling code (default is NO).]),
383
392
        [if test x$enableval = xyes; then
384
393
                lock_profiler=true
385
394
        fi]
450
459
)
451
460
 
452
461
AC_ARG_ENABLE(
 
462
        [eap-mschapv2],
 
463
        AS_HELP_STRING([--enable-eap-mschapv2],[build MS-CHAPv2 authenication module for EAP (default is NO).]),
 
464
        [if test x$enableval = xyes; then
 
465
                eap_mschapv2=true
 
466
        fi]
 
467
)
 
468
 
 
469
AC_ARG_ENABLE(
 
470
        [eap-radius],
 
471
        AS_HELP_STRING([--enable-eap-radius],[build RADIUS proxy authenication module for EAP (default is NO).]),
 
472
        [if test x$enableval = xyes; then
 
473
                eap_radius=true
 
474
        fi]
 
475
)
 
476
 
 
477
AC_ARG_ENABLE(
453
478
        [kernel-netlink],
454
479
        AS_HELP_STRING([--disable-kernel-netlink],[disable the netlink kernel interface. (default is NO).]),
455
480
        [if test x$enableval = xyes; then
570
595
)
571
596
 
572
597
AC_ARG_ENABLE(
 
598
        [threads],
 
599
        AS_HELP_STRING([--disable-threads],[disable the use of threads in pluto. Charon always uses threads. (default is NO).]),
 
600
        [if test x$enableval = xyes; then
 
601
                threads=true
 
602
         else
 
603
                threads=false
 
604
        fi],
 
605
        threads=true
 
606
)
 
607
 
 
608
AC_ARG_ENABLE(
573
609
        [charon],
574
610
        AS_HELP_STRING([--disable-charon],[disable the IKEv2 keying daemon charon. (default is NO).]),
575
611
        [if test x$enableval = xyes; then
697
733
AC_CHECK_FUNCS(backtrace)
698
734
AC_CHECK_FUNCS(dladdr)
699
735
 
 
736
AC_MSG_CHECKING([for gcc atomic operations])
 
737
AC_TRY_RUN(
 
738
[
 
739
        int main() {
 
740
                volatile int ref = 1;
 
741
                __sync_fetch_and_add (&ref, 1);
 
742
                __sync_sub_and_fetch (&ref, 1);
 
743
                /* Make sure test fails if operations are not supported */
 
744
                __sync_val_compare_and_swap(&ref, 1, 0);
 
745
                return ref;
 
746
        }
 
747
],
 
748
[AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_GCC_ATOMIC_OPERATIONS)],
 
749
[AC_MSG_RESULT([no])],
 
750
[AC_MSG_RESULT([no])])
 
751
 
 
752
AC_CHECK_FUNC(
 
753
        [register_printf_function],
 
754
        [AC_DEFINE(HAVE_PRINTF_HOOKS)],
 
755
        [
 
756
                AC_MSG_NOTICE([printf does not support custom format specifiers!])
 
757
                AC_HAVE_LIBRARY([vstr],[LIBS="$LIBS"]; vstr=true,[AC_MSG_ERROR([Vstr string library not found])])
 
758
        ])
 
759
 
700
760
if test x$gmp = xtrue; then
701
761
        AC_HAVE_LIBRARY([gmp],[LIBS="$LIBS"],[AC_MSG_ERROR([GNU Multi Precision library gmp not found])])
702
762
        AC_MSG_CHECKING([gmp.h version >= 4.1.4])
821
881
if test x$sha2 = xtrue; then
822
882
        libstrongswan_plugins=${libstrongswan_plugins}" sha2"
823
883
fi
 
884
if test x$md4 = xtrue; then
 
885
        libstrongswan_plugins=${libstrongswan_plugins}" md4"
 
886
fi
824
887
if test x$md5 = xtrue; then
825
888
        libstrongswan_plugins=${libstrongswan_plugins}" md5"
826
889
fi
873
936
AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue)
874
937
AM_CONDITIONAL(USE_AES, test x$aes = xtrue)
875
938
AM_CONDITIONAL(USE_DES, test x$des = xtrue)
 
939
AM_CONDITIONAL(USE_MD4, test x$md4 = xtrue)
876
940
AM_CONDITIONAL(USE_MD5, test x$md5 = xtrue)
877
941
AM_CONDITIONAL(USE_SHA1, test x$sha1 = xtrue)
878
942
AM_CONDITIONAL(USE_SHA2, test x$sha2 = xtrue)
907
971
AM_CONDITIONAL(USE_EAP_MD5, test x$eap_md5 = xtrue)
908
972
AM_CONDITIONAL(USE_EAP_GTC, test x$eap_gtc = xtrue)
909
973
AM_CONDITIONAL(USE_EAP_AKA, test x$eap_aka = xtrue)
 
974
AM_CONDITIONAL(USE_EAP_MSCHAPV2, test x$eap_mschapv2 = xtrue)
 
975
AM_CONDITIONAL(USE_EAP_RADIUS, test x$eap_radius = xtrue)
910
976
AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue)
911
977
AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue)
912
978
AM_CONDITIONAL(USE_KERNEL_KLIPS, test x$kernel_klips = xtrue)
928
994
AM_CONDITIONAL(USE_SELF_TEST, test x$self_test = xtrue)
929
995
AM_CONDITIONAL(USE_CAPABILITIES, test x$capabilities = xlibcap)
930
996
AM_CONDITIONAL(USE_PLUTO, test x$pluto = xtrue)
 
997
AM_CONDITIONAL(USE_THREADS, test x$threads = xtrue)
931
998
AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue)
932
999
AM_CONDITIONAL(USE_TOOLS, test x$tools = xtrue)
933
1000
AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$tools = xtrue)
934
1001
AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue)
 
1002
AM_CONDITIONAL(USE_VSTR, test x$vstr = xtrue)
935
1003
 
936
1004
dnl ==============================
937
1005
dnl  set global definitions
955
1023
        src/libstrongswan/Makefile
956
1024
        src/libstrongswan/plugins/aes/Makefile
957
1025
        src/libstrongswan/plugins/des/Makefile
 
1026
        src/libstrongswan/plugins/md4/Makefile
958
1027
        src/libstrongswan/plugins/md5/Makefile
959
1028
        src/libstrongswan/plugins/sha1/Makefile
960
1029
        src/libstrongswan/plugins/sha2/Makefile
984
1053
        src/charon/plugins/eap_gtc/Makefile
985
1054
        src/charon/plugins/eap_sim/Makefile
986
1055
        src/charon/plugins/eap_sim_file/Makefile
 
1056
        src/charon/plugins/eap_mschapv2/Makefile
 
1057
        src/charon/plugins/eap_radius/Makefile
987
1058
        src/charon/plugins/kernel_netlink/Makefile
988
1059
        src/charon/plugins/kernel_pfkey/Makefile
989
1060
        src/charon/plugins/kernel_klips/Makefile