summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-06-14 15:54:37 +0000
committerMoritz Schulte <mo@g10code.com>2003-06-14 15:54:37 +0000
commit77442b2b6cc30af51b6ccfbcf5a893d05052bf4b (patch)
treefc6cf32eba4c612385ba7a5a53c4344304c7fbf1
parente15b1571c3b9cc44c6c0400eca775101d254740e (diff)
downloadlibgcrypt-77442b2b6cc30af51b6ccfbcf5a893d05052bf4b.tar.gz
2003-06-11 Moritz Schulte <moritz@g10code.com>
* configure.ac: Remove --enable-libgpg-error flag. Ue AC_PATH_GPG_ERROR.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac24
2 files changed, 9 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index 6275570d..af2bf19e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-11 Moritz Schulte <moritz@g10code.com>
+
+ * configure.ac: Remove --enable-libgpg-error flag.
+ Ue AC_PATH_GPG_ERROR.
+
2003-06-09 Moritz Schulte <moritz@g10code.com>
* NEWS: Mention API changes and libgpg-error.
diff --git a/configure.ac b/configure.ac
index f581452b..19827796 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,26 +116,6 @@ default_ciphers="$available_ciphers"
default_pubkey_ciphers="$available_pubkey_ciphers"
default_digests="$available_digests"
-dnl Support for the --enable-libgpg-error switch.
-AC_MSG_CHECKING([wether to use libgpg-error])
-AC_ARG_ENABLE(libgpg-error,
- AC_HELP_STRING([--enable-libgpg-error]
- [use libgpg-error, this is the default]),
- [use_libgpg_error=$enableval],
- [])
-if test "x$use_libgpg_error" = "x"; then
- use_libgpg_error=yes
-fi
-if test "x$use_libgpg_error" != "xyes"; then
- use_libgpg_error=no
-fi
-AM_CONDITIONAL(USE_LIBGPG_ERROR, test "$use_libgpg_error" = "yes")
-AC_MSG_RESULT($use_libgpg_error)
-if test "$use_libgpg_error" = "yes"; then
- LIBGCRYPT_CONFIG_CFLAGS="$LIBGCRYPT_CONFIG_CFLAGS -DUSE_LIBGPG_ERROR"
- CFLAGS="$CFLAGS -DUSE_LIBGPG_ERROR"
-fi
-
dnl Support for the --enable-ciphers switch.
AC_ARG_ENABLE(ciphers,
AC_HELP_STRING([--enable-ciphers=ciphers],
@@ -156,6 +136,10 @@ for cipher in $enabled_ciphers; do
done
AC_MSG_RESULT([$enabled_ciphers])
+AM_PATH_GPG_ERROR(0.1)
+AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GCRYPT,
+ [The default error source for libgcrypt.])
+
dnl Support for the --enable-pubkey-ciphers switch.
AC_ARG_ENABLE(pubkey-ciphers,
AC_HELP_STRING([--enable-pubkey-ciphers=ciphers],