On Sat, 24 Jan 2009 17:49, ametz...@downhill.at.eu.org said:

> GCRYPT_VERSION is expanded at libgwenhywfar build time to the version

FWIW, I suggest to use this in configure.ac:

  NEED_LIBGCRYPT_API=1
  NEED_LIBGCRYPT_VERSION=1.4.0

  # other configure stuff

  AC_DEFINE_UNQUOTED(NEED_LIBGCRYPT_VERSION, "$NEED_LIBGCRYPT_VERSION",
                                       [Required version of Libgcrypt])

  AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION",
                     have_libgcrypt=yes,have_libgcrypt=no)


  # close to the end use MSG_NOTICE or MSG_ERROR                      

  if test "$have_libgcrypt" = "no"; then
     die=yes
     AC_MSG_NOTICE([[
  ***  
  *** You need libgcrypt to build this program.
  **  This library is for example available at
  ***   ftp://ftp.gnupg.org/gcrypt/libgcrypt/
  *** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API 
is required.)
  ***]])
  fi
  

In the code use:

  if (!gcry_check_version (NEED_LIBGCRYPT_VERSION) )
    OOPS();




Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to