|
|
767ab2 |
Use pkg-config for Mozilla NSS library detection
|
|
|
767ab2 |
|
|
|
767ab2 |
Author: Jan Vcelak <jvcelak@redhat.com>
|
|
|
767ab2 |
|
|
|
767ab2 |
---
|
|
|
767ab2 |
configure.in | 22 +++++-----------------
|
|
|
767ab2 |
1 file changed, 5 insertions(+), 17 deletions(-)
|
|
|
767ab2 |
|
|
|
767ab2 |
diff --git a/configure.in b/configure.in
|
|
|
767ab2 |
index ecffe30..2a9cfb4 100644
|
|
|
767ab2 |
--- a/configure.in
|
|
|
767ab2 |
+++ b/configure.in
|
|
|
767ab2 |
@@ -1223,28 +1223,16 @@ if test $ol_link_tls = no ; then
|
|
|
767ab2 |
fi
|
|
|
767ab2 |
fi
|
|
|
767ab2 |
|
|
|
767ab2 |
-dnl NOTE: caller must specify -I/path/to/nspr4 and -I/path/to/nss3
|
|
|
767ab2 |
-dnl and -L/path/to/nspr4 libs and -L/path/to/nss3 libs if those libs
|
|
|
767ab2 |
-dnl are not in the default system location
|
|
|
767ab2 |
if test $ol_link_tls = no ; then
|
|
|
767ab2 |
if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
|
|
|
767ab2 |
- have_moznss=no
|
|
|
767ab2 |
- AC_CHECK_HEADERS([nssutil.h])
|
|
|
767ab2 |
- if test "$ac_cv_header_nssutil_h" = yes ; then
|
|
|
767ab2 |
- AC_CHECK_LIB([nss3], [NSS_Initialize],
|
|
|
767ab2 |
- [ have_moznss=yes ], [ have_moznss=no ])
|
|
|
767ab2 |
- fi
|
|
|
767ab2 |
+ PKG_CHECK_MODULES(MOZNSS, [nss nspr], [have_moznss=yes], [have_moznss=no])
|
|
|
767ab2 |
|
|
|
767ab2 |
- if test "$have_moznss" = yes ; then
|
|
|
767ab2 |
+ if test $have_moznss = yes ; then
|
|
|
767ab2 |
ol_with_tls=moznss
|
|
|
767ab2 |
ol_link_tls=yes
|
|
|
767ab2 |
- AC_DEFINE(HAVE_MOZNSS, 1,
|
|
|
767ab2 |
- [define if you have MozNSS])
|
|
|
767ab2 |
- TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
|
|
|
767ab2 |
- else
|
|
|
767ab2 |
- if test $ol_with_tls = moznss ; then
|
|
|
767ab2 |
- AC_MSG_ERROR([MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)])
|
|
|
767ab2 |
- fi
|
|
|
767ab2 |
+ AC_DEFINE(HAVE_MOZNSS, 1, [define if you have MozNSS])
|
|
|
767ab2 |
+ TLS_LIBS="$MOZNSS_LIBS"
|
|
|
767ab2 |
+ CFLAGS="$CFLAGS $MOZNSS_CFLAGS"
|
|
|
767ab2 |
fi
|
|
|
767ab2 |
fi
|
|
|
767ab2 |
fi
|
|
|
767ab2 |
--
|
|
|
767ab2 |
1.7.11.7
|
|
|
767ab2 |
|