use ip xfrm state in crypto evaltests
[strongswan.git] / configure.in
index 8a7f171..f9824bb 100644 (file)
@@ -53,6 +53,13 @@ AC_ARG_WITH(
 )
 
 AC_ARG_WITH(
+       [strongswan-conf],
+       AS_HELP_STRING([--with-strongswan-conf=file],[strongswan.conf file other than "sysconfdir/strongswan.conf"]),
+       [AC_DEFINE_UNQUOTED(STRONGSWAN_CONF, "$withval")],
+       [AC_DEFINE_UNQUOTED(STRONGSWAN_CONF, "${sysconfdir}/strongswan.conf")]
+)
+
+AC_ARG_WITH(
        [urandom-device],
        AS_HELP_STRING([--with-urandom-device=dev],[set the device for pseudo random data other than "/dev/urandom"]),
        [AC_DEFINE_UNQUOTED(DEV_URANDOM, "$withval")],
@@ -217,6 +224,17 @@ AC_ARG_ENABLE(
 )
 
 AC_ARG_ENABLE(
+       [random],
+       AS_HELP_STRING([--disable-random],[disable RNG implementation on top of /dev/(u)random. (default is NO).]),
+       [if test x$enableval = xyes; then
+               random=true
+        else
+               random=false
+       fi],
+       random=true
+)
+
+AC_ARG_ENABLE(
        [x509],
        AS_HELP_STRING([--disable-x509],[disable own X509 certificate implementation plugin. (default is NO).]),
        [if test x$enableval = xyes; then
@@ -582,6 +600,7 @@ AM_CONDITIONAL(USE_SHA1, test x$sha1 = xtrue)
 AM_CONDITIONAL(USE_SHA2, test x$sha2 = xtrue)
 AM_CONDITIONAL(USE_FIPS_PRF, test x$fips_prf = xtrue)
 AM_CONDITIONAL(USE_GMP, test x$gmp = xtrue)
+AM_CONDITIONAL(USE_RANDOM, test x$random = xtrue)
 AM_CONDITIONAL(USE_X509, test x$x509 = xtrue)
 AM_CONDITIONAL(USE_HMAC, test x$hmac = xtrue)
 AM_CONDITIONAL(USE_MYSQL, test x$mysql = xtrue)
@@ -638,6 +657,7 @@ AC_OUTPUT(
        src/libstrongswan/plugins/sha2/Makefile
        src/libstrongswan/plugins/fips_prf/Makefile
        src/libstrongswan/plugins/gmp/Makefile
+       src/libstrongswan/plugins/random/Makefile
        src/libstrongswan/plugins/hmac/Makefile
        src/libstrongswan/plugins/x509/Makefile
        src/libstrongswan/plugins/curl/Makefile