summaryrefslogtreecommitdiff
path: root/doc/README.autoconf
blob: 3f928aae0de6cea4d5048dcde82c246a03fa6284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
If you want to use the gnutls library in other projects
using autoconf/aclocal, put in your 

aclocal.m4:
 include(libgnutls.m4)

configure.in:
 AM_PATH_LIBGNUTLS( 1.0.0,, AC_MSG_ERROR([[
***
*** libgnutls was not found. You may want to get it from
*** ftp://ftp.gnutls.org/pub/gnutls/
]]))

these macros define LIBGNUTLS_LIBS and LIBGNUTLS_CFLAGS. If you want to
use the GPL gnutls parts then also add:

aclocal.m4:
 include(libgnutls-extra.m4)

configure.in:
 AM_PATH_LIBGNUTLS_EXTRA( 1.0.0,, AC_MSG_ERROR([[
***
*** libgnutls-extra was not found. You may want to get it from
*** ftp://ftp.gnutls.org/pub/gnutls/
]]))

which define LIBGNUTLS_EXTRA_LIBS and LIBGNUTLS_EXTRA_CFLAGS.