Debian added an epoch "2" to the version of NSS library. Fix configure
to account for that.
Related: https://launchpad.net/debian/sid/+source/nss
with_nss=no
with_gnutls=no
if test x"$ac_crypto" = xnss; then
- PKG_CHECK_MODULES(NSS, [nss >= 3.11])
+ PKG_CHECK_MODULES(NSS, [nss >= 3.11], [have_nss=yes], [have_nss=no])
+ if test "$have_nss" != yes; then
+ # workaround on Debian, where the NSS module bumped the epoch
+ PKG_CHECK_MODULES(NSS, [nss >= 2:3.11])
+ fi
# Work around a pkg-config bug (fdo #29801) where exists != usable
FOO=`$PKG_CONFIG --cflags --libs nss`