DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(gcrypt.info.gz) Building sources using Automake

Info Catalog (gcrypt.info.gz) Building sources (gcrypt.info.gz) Preparation (gcrypt.info.gz) Initializing the library
 
 2.3 Building sources using Automake
 ===================================
 
 It is much easier if you use GNU Automake instead of writing your own
 Makefiles.  If you do that you do not have to worry about finding and
 invoking the `libgcrypt-config' script at all.  Libgcrypt provides an
 extension to Automake that does all the work for you.
 
  -- Macro: AM_PATH_LIBGCRYPT ([MINIMUM-VERSION], [ACTION-IF-FOUND],
           [ACTION-IF-NOT-FOUND])
      Check whether Libgcrypt (at least version MINIMUM-VERSION, if
      given) exists on the host system.  If it is found, execute
      ACTION-IF-FOUND, otherwise do ACTION-IF-NOT-FOUND, if given.
 
      Additionally, the function defines `LIBGCRYPT_CFLAGS' to the flags
      needed for compilation of the program to find the `gcrypt.h'
      header file, and `LIBGCRYPT_LIBS' to the linker flags needed to
      link the program to the Libgcrypt library.
 
    You can use the defined Autoconf variables like this in your
 `Makefile.am':
 
      AM_CPPFLAGS = $(LIBGCRYPT_CFLAGS)
      LDADD = $(LIBGCRYPT_LIBS)
 
Info Catalog (gcrypt.info.gz) Building sources (gcrypt.info.gz) Preparation (gcrypt.info.gz) Initializing the library
automatically generated byinfo2html