summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-09-24 12:45:33 +0200
committerSimon Josefsson <simon@josefsson.org>2007-09-24 12:45:33 +0200
commit80e03f917e9180a93bc3f84d9a2ffa86fda3ee41 (patch)
tree9dd34a8e98fce98f9b30a123de501830f42ceedf
parentde7cc29e8e6039b104d5bebe80e0f84f4d46fe17 (diff)
downloadgnutls-80e03f917e9180a93bc3f84d9a2ffa86fda3ee41.tar.gz
Add --disable-camellia. Remove automake conditional, not used.
-rw-r--r--configure.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index e38d7197a4..f362804874 100644
--- a/configure.in
+++ b/configure.in
@@ -449,17 +449,21 @@ AM_CONDITIONAL(ENABLE_AUTHZ, test "$ac_enable_authz" != "no")
dnl Check for Camellia support
dnl
AC_MSG_CHECKING([for Camellia support in libgcrypt])
-if test -n "`$LIBGCRYPT_CONFIG --algorithms|grep -i camellia`"; then
- is_camellia_present=yes
+AC_ARG_ENABLE(camellia,
+ AS_HELP_STRING([--disable-camellia], [disable Camellia cipher]),
+ ac_enable_camellia=no)
+if test "$ac_enable_authz" != "no" && \
+ test -n "`$LIBGCRYPT_CONFIG --algorithms | grep -i camellia`"; then
+ ac_enable_camellia=yes
+else
+ ac_enable_camellia=no
fi
-if test x$is_camellia_present = xyes; then
+if test "$ac_enable_camellia = "yes"; then
AC_MSG_RESULT([yes])
AC_DEFINE(ENABLE_CAMELLIA, 1, [enable camellia block cipher])
else
AC_MSG_RESULT([no])
fi
-AM_CONDITIONAL(ENABLE_CAMELLIA, test "$is_camellia_present" = "yes")
-
AC_MSG_CHECKING([whether to disable extra PKI stuff])
AC_ARG_ENABLE(extra-pki,