Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 1 | From 823a4deb61f6f9b91b0cfc4a7e7b20922c635777 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 1 Sep 2022 13:13:50 -0700 |
| 4 | Subject: [PATCH] configure: Fix check for AC_CHECK_LIB |
| 5 | |
| 6 | Check for nettle_pbkdf2_hmac_sha256 from libnettle instead of main() |
| 7 | which is not in nettle library |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/pauldreik/rdfind/pull/115] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | configure.ac | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | --- a/configure.ac |
| 16 | +++ b/configure.ac |
| 17 | @@ -46,7 +46,7 @@ AC_CHECK_HEADER(nettle/sha.h,,[AC_MSG_ER |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame^] | 18 | On Debian-ish systems, use "apt-get install nettle-dev" to get a system |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 19 | wide nettle install. |
| 20 | ])]) |
| 21 | -AC_CHECK_LIB(nettle,main,,[AC_MSG_ERROR([ |
| 22 | +AC_CHECK_LIB(nettle,nettle_pbkdf2_hmac_sha256,,[AC_MSG_ERROR([ |
| 23 | Could not link to libnettle. Please install nettle |
| 24 | first. If you have already done so; please run ldconfig |
| 25 | as root or check whether the path libnettle was installed |