debian/masterdebian/stretch-backportsjessie-backportsupstream
upstream/0.1.0
Last change
on this file since de80d66 was
de80d66,
checked in by Daniel Kahn Gillmor <dkg@…>, 8 years ago
|
Imported Upstream version 0.1.0
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | dnl Check for libgnutls libraries |
---|
2 | dnl CHECK_LIBGNUTLS(MINIMUM-VERSION) |
---|
3 | AC_DEFUN(CHECK_LIBGNUTLS, |
---|
4 | [dnl |
---|
5 | |
---|
6 | AC_ARG_WITH( |
---|
7 | libgnutls, |
---|
8 | [AC_HELP_STRING([--with-libgnutls=PATH],[Path to libgnutls])], |
---|
9 | tls_prefix="$withval", |
---|
10 | tls_prefix="/usr" |
---|
11 | ) |
---|
12 | |
---|
13 | if test -x $tls_prefix -a ! -d $tls_prefix; then |
---|
14 | GTLS_BIN=$tls_prefix |
---|
15 | else |
---|
16 | test_paths="$tls_prefix:$tls_prefix/bin:$tls_prefix/sbin" |
---|
17 | test_paths="${test_paths}:/usr/bin:/usr/sbin" |
---|
18 | test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin" |
---|
19 | AC_PATH_PROG(GTLS_BIN, libgnutls-config, no, [$test_paths]) |
---|
20 | fi |
---|
21 | |
---|
22 | if test "$GTLS_BIN" = "no"; then |
---|
23 | AC_MSG_ERROR([*** The libgnutls-config binary installed by GnuTLS could not be found!]) |
---|
24 | AC_MSG_ERROR([*** Use the --with-libgnutls option with the full path to libgnutls-config]) |
---|
25 | else |
---|
26 | dnl TODO: Check versions |
---|
27 | LIBGNUTLS_LIBS="`$GTLS_BIN --libs`" |
---|
28 | LIBGNUTLS_CFLAGS="`$GTLS_BIN --cflags`" |
---|
29 | LIBGNUTLS_VERSION="`$GTLS_BIN --version`" |
---|
30 | LIBGNUTLS_PREFIX="`$GTLS_BIN --prefix`" |
---|
31 | GNUTLS_CERTTOOL="${LIBGNUTLS_PREFIX}/bin/certtool" |
---|
32 | AC_SUBST(LIBGNUTLS_LIBS) |
---|
33 | AC_SUBST(LIBGNUTLS_CFLAGS) |
---|
34 | AC_SUBST(LIBGNUTLS_VERSION) |
---|
35 | AC_SUBST(GNUTLS_CERTTOOL) |
---|
36 | AC_SUBST(LIBGNUTLS_PREFIX) |
---|
37 | fi |
---|
38 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.