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.

The problem is that libgcrypt.m4 relies in the use of a command-line
tool: libgcrypt-config.

Fortunately libgcrypt-config is a shell script with hard-coded values
and I suppose that we could use the --libgcrypt-prefix=/usr/mingw32 if
we install the mingw32 compiled version of libgcrypt on /usr/mingw32:

   (from libgcrypt.m4)
   LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config

I suppose that you have the cross-compiled version of libgcrypt
installed. If it is the case please try to use the --libgcrypt-prefix
option to configure. The generated libgcrypt-config should to the
right thing.



Reply via email to