comparison configure.ac @ 21715:dc3b920b27d0

NSS is in the pkg-config package 'microb-engine-nss' on maemo, not 'nss' or 'mozilla-nss'. (microb-engine-nss will only be tried if the other two names are not found.)
author Will Thompson <will.thompson@collabora.co.uk>
date Mon, 03 Dec 2007 14:40:46 +0000
parents d7845234c752
children ca3271a66314
comparison
equal deleted inserted replaced
21714:1c9f741ee9c7 21715:dc3b920b27d0
1657 AC_MSG_RESULT(no) 1657 AC_MSG_RESULT(no)
1658 have_nss="no" 1658 have_nss="no"
1659 ]) 1659 ])
1660 mozilla_nspr="mozilla-nspr" 1660 mozilla_nspr="mozilla-nspr"
1661 mozilla_nss="mozilla-nss" 1661 mozilla_nss="mozilla-nss"
1662 else 1662 elif `$PKG_CONFIG --exists nss`; then
1663 if `$PKG_CONFIG --exists nss`; then 1663 PKG_CHECK_MODULES(NSS, nss, [
1664 PKG_CHECK_MODULES(NSS, nss, [ 1664 have_nss="yes"
1665 have_nss="yes" 1665 ], [
1666 ], [ 1666 AC_MSG_RESULT(no)
1667 AC_MSG_RESULT(no) 1667 have_nss="no"
1668 ]) 1668 ])
1669 mozilla_nspr="nspr" 1669 mozilla_nspr="nspr"
1670 mozilla_nss="nss" 1670 mozilla_nss="nss"
1671 fi 1671 elif `$PKG_CONFIG --exists microb-engine-nss`; then
1672 PKG_CHECK_MODULES(NSS, microb-engine-nss, [
1673 have_nss="yes"
1674 ], [
1675 AC_MSG_RESULT(no)
1676 have_nss="no"
1677 ])
1678 mozilla_nspr="mozilla-nspr"
1679 mozilla_nss="microb-engine-nss"
1672 fi 1680 fi
1673 1681
1674 if test "x$have_nss" = "xyes"; then 1682 if test "x$have_nss" = "xyes"; then
1675 1683
1676 AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS]) 1684 AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS])