summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-09-17 12:41:31 +0000
committerWerner Koch <wk@gnupg.org>2002-09-17 12:41:31 +0000
commit9f66d05caee37150c39e6aaf9ab1639a47b02919 (patch)
treec7c302f460c86a75b762f3390a839d4379645181
parentc2fa23b3f0a1fcaa3fe511c97e17ff20f32b6689 (diff)
downloadlibgcrypt-9f66d05caee37150c39e6aaf9ab1639a47b02919.tar.gz
* configure.ac: Check for Pth and Pthreads.
-rw-r--r--AUTHORS6
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac23
3 files changed, 30 insertions, 3 deletions
diff --git a/AUTHORS b/AUTHORS
index 80754264..0a93d962 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -52,6 +52,10 @@ twoaday@freakmail.de
More credits
============
+The ATH implementation (src/ath*) has been taken from GPGME and
+relicensed to the GPL by the copyrighr holder of GPGME (g10 Code
+GmbH) it is now considered to be a part of Libgcrypt.
+
Most of the stuff in mpi has been taken from the GMP library by
Torbjorn Granlund <tege@noisy.tmg.se>.
@@ -69,3 +73,5 @@ Wedgwood 1996-1999.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+
diff --git a/ChangeLog b/ChangeLog
index 7a279807..c2604cd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-09-17 Werner Koch <wk@gnupg.org>
+
+ * configure.ac: Check for Pth and Pthreads.
+
2002-08-23 Werner Koch <wk@gnupg.org>
Released 1.1.9.
diff --git a/configure.ac b/configure.ac
index 6aacb4eb..1b0bf5d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -384,9 +384,26 @@ AC_CHECK_FUNCS(waitpid wait4 sigaction sigprocmask fopen64 fstat64)
GNUPG_CHECK_MLOCK
GNUPG_FUNC_MKDIR_TAKES_ONE_ARG
-dnl
-dnl Check whether we can use Linux capabilities as requested
-dnl
+#
+# The ATH systems needs to know whether pth or pthreads are available.
+#
+have_pth=no
+have_pthread=no
+AC_CHECK_LIB(pth,pth_version,have_pth=yes)
+if test "$have_pth" = yes; then
+ AC_DEFINE(HAVE_PTH, ,[Define if we have Pth.])
+fi
+AC_CHECK_LIB(pthread,pthread_create,have_pthread=yes)
+if test "$have_pthread" = yes; then
+ AC_DEFINE(HAVE_PTHREAD, ,[Define if we have pthread.])
+fi
+AM_CONDITIONAL(HAVE_PTH, test "$have_pth" = "yes")
+AM_CONDITIONAL(HAVE_PTHREAD, test "$have_pthread" = "yes")
+
+
+#
+# Check whether we can use Linux capabilities as requested
+#
if test "$use_capabilities" = "yes" ; then
use_capabilities=no
AC_CHECK_HEADERS(sys/capability.h)