[gaim-migrate @ 14819]

Fri, 16 Dec 2005 21:41:46 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Fri, 16 Dec 2005 21:41:46 +0000
changeset 12507
9c4e2db872fd
parent 12506
9f00ca80cb59
child 12508
32f6f8bf3a57

[gaim-migrate @ 14819]
Some distributions *cough* fedora *cough* are starting to package NSS
completely separately from Mozilla, so this is necessary to pick up the
new pkg-config file

configure.ac file | annotate | diff | comparison | revisions
--- a/configure.ac	Fri Dec 16 19:50:11 2005 +0000
+++ b/configure.ac	Fri Dec 16 21:41:46 2005 +0000
@@ -1007,11 +1007,19 @@
 	enable_nss="no"
 
 	if test "x$nss_manual_check" = "xno"; then
-		PKG_CHECK_MODULES(NSS, mozilla-nss, have_nss="yes", have_nss="no")
+		if `$PKG_CONFIG --exists mozilla-nss`; then
+			PKG_CHECK_MODULES(NSS, mozilla-nss, have_nss="yes", have_nss="no")
+			mozilla_nspr="mozilla-nspr"
+			mozilla_nss="mozilla-nss"
+		else
+			if `$PKG_CONFIG --exists nss`; then
+				PKG_CHECK_MODULES(NSS, nss, have_nss="yes")
+				mozilla_nspr="nspr"
+				mozilla_nss="nss"
+			fi
+		fi
 
 		if test "x$have_nss" = "xyes"; then
-			mozilla_nspr="mozilla-nspr"
-			mozilla_nss="mozilla-nss"
 
 			AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS])
 			AC_DEFINE(HAVE_SSL, 1, [Define if you have SSL])

mercurial