|
From: | Aleksander Morgado |
Subject: | [pdf-devel] libgcrypt when cross-compiling with mingw32 |
Date: | Sun, 16 Nov 2008 12:44:03 +0100 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080925) |
Hi,The AM_PATH_LIBGCRYPT macro from m4/libgcrypt.m4 will check the existence of the libgcrypt library and its version. But it doesn't work when cross-compiling with mingw32, as it doesn't look for libgcrypt in the mingw32 environment.
When running configure with the mingw32 host: $> ./configure --host=i586-mingw32msvc --without-zlib --enable-nocheck ... checking for libgcrypt-config... /usr/bin/libgcrypt-config checking for LIBGCRYPT - version >= 1.2.4... yes (1.4.1) ...I was expecting a crash here, as I don't have libgcrypt in mingw32 environment. (If I try to compile, it won't, of course).
Why don't we use AC_CHECK_LIB() to check for libgcrypt? If we want the >=1.2.4 check we can put in AC_CHECK_LIB a function which is available in 1.2.4 and not in previous versions.
Cheers, -Aleksander
[Prev in Thread] | Current Thread | [Next in Thread] |