Mailing List Archive

Missing commit for pth config check?
the new gcryptrnd application (daemon?) won't compile (with or without pth)

However there is no ./configure check that checks pth is available. I started
to write a check, but then noticed that most of it is there. Is there just a
missing check like:
Index: src/Makefile.am
===================================================================
--- src/Makefile.am (revision 1149)
+++ src/Makefile.am (working copy)
@@ -25,7 +25,9 @@
include_HEADERS = gcrypt.h gcrypt-module.h

lib_LTLIBRARIES = libgcrypt.la
-sbin_PROGRAMS = gcryptrnd
+if HAVE_PTH
+ sbin_PROGRAMS = gcryptrnd
+endif
bin_PROGRAMS = getrandom

if HAVE_LD_VERSION_SCRIPT
Index: configure.ac
===================================================================
--- configure.ac (revision 1149)
+++ configure.ac (working copy)
@@ -437,6 +437,9 @@
[AC_SEARCH_LIBS(setsockopt, [socket], , , [-lnsl])])
AC_SEARCH_LIBS(setsockopt, [nsl])

+AC_CHECK_PTH(2.0.6,,,,have_pth=yes,)
+AM_CONDITIONAL(HAVE_PTH, test x$have_pth = xyes)
+
##################################
#### Checks for header files. ####
##################################


Brad
Re: Missing commit for pth config check? [ In reply to ]
On Thu, 16 Mar 2006 20:42:00 +1100, Brad Hards said:

> the new gcryptrnd application (daemon?) won't compile (with or without pth)
> However there is no ./configure check that checks pth is available. I started
> to write a check, but then noticed that most of it is there. Is there just a
> missing check like:

Sorry, I might have missed to commit that. Done right now. The
checks are anyway not ready as wee need to check for several other
things before we can build gcryptrnd.

> +AC_CHECK_PTH(2.0.6,,,,have_pth=yes,)

I prefer to use the check as used by GnuPG which is much simpler and
not as error prone as the official pth check.



Shalom-Salam,

Werner


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel