diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-02 16:34:57 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-02 16:34:57 +0200 |
commit | 4af7b4fa9b0cc85ea8b7a00f748c324d5f56b47b (patch) | |
tree | 21ab5ec48049589b5a5f8c1f47a7cd79ebac2190 | |
parent | fa75134008bd9206ca02380927c27581feb65c3e (diff) |
Use pkg-config file for gnutls if possible.
This allows building against a gnutls built for a an architecture other
than the host architecture.
-rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -212,7 +212,14 @@ echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings detect_gnutls() { - if libgnutls-config --version > /dev/null 2> /dev/null; then + if $PKG_CONFIG --exists gnutls; then + cat <<EOF>>Makefile.settings +EFLAGS+=`$PKG_CONFIG --libs gnutls` +CFLAGS+=`$PKG_CONFIG --cflags gnutls` +EOF + ssl=gnutls + ret=1 + elif libgnutls-config --version > /dev/null 2> /dev/null; then cat <<EOF>>Makefile.settings EFLAGS+=`libgnutls-config --libs` CFLAGS+=`libgnutls-config --cflags` |