--- /dev/null 2005-12-16 14:04:54.000000000 +0100 +++ www-client/mozilla-firefox/files/1.5/system-nss-gentoo.patch 2006-01-23 16:10:30.000000000 +0100 @@ -0,0 +1,64 @@ +--- mozilla/build/autoconf/nspr.m4.orig 2006-01-23 15:52:07.000000000 +0100 ++++ mozilla/build/autoconf/nspr.m4 2006-01-23 16:02:54.000000000 +0100 +@@ -33,7 +33,7 @@ + fi + + unset ac_cv_path_NSPR_CONFIG +- AC_PATH_PROG(NSPR_CONFIG, nspr-config, no) ++ AC_PATH_PROG(NSPR_CONFIG, nspr-config, pkg-config) + min_nspr_version=ifelse([$1], ,4.0.0,$1) + AC_MSG_CHECKING(for NSPR - version >= $min_nspr_version (skipping)) + +@@ -41,15 +41,15 @@ + if test "$NSPR_CONFIG" = "no"; then + no_nspr="yes" + else +- NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags` +- NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs` ++ NSPR_CFLAGS=`$NSPR_CONFIG nspr --cflags` ++ NSPR_LIBS=`$NSPR_CONFIG nspr --libs` + + dnl Skip version check for now +- nspr_config_major_version=`$NSPR_CONFIG $nspr_config_args --version | \ ++ nspr_config_major_version=`$NSPR_CONFIG nspr --modversion | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` +- nspr_config_minor_version=`$NSPR_CONFIG $nspr_config_args --version | \ ++ nspr_config_minor_version=`$NSPR_CONFIG nspr --modversion | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` +- nspr_config_micro_version=`$NSPR_CONFIG $nspr_config_args --version | \ ++ nspr_config_micro_version=`$NSPR_CONFIG nspr --modversion | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + fi + +--- mozilla/build/autoconf/nss.m4.orig 2006-01-23 15:52:16.000000000 +0100 ++++ mozilla/build/autoconf/nss.m4 2006-01-23 16:04:38.000000000 +0100 +@@ -33,7 +33,7 @@ + fi + + unset ac_cv_path_NSS_CONFIG +- AC_PATH_PROG(NSS_CONFIG, nss-config, no) ++ AC_PATH_PROG(NSS_CONFIG, nss-config, pkg-config) + min_nss_version=ifelse([$1], ,3.0.0,$1) + AC_MSG_CHECKING(for NSS - version >= $min_nss_version (skipping)) + +@@ -41,15 +41,15 @@ + if test "$NSS_CONFIG" = "no"; then + no_nss="yes" + else +- NSS_CFLAGS=`$NSS_CONFIG $nss_config_args --cflags` +- NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs` ++ NSS_CFLAGS=`$NSS_CONFIG nss --cflags` ++ NSS_LIBS=`$NSS_CONFIG nss --libs` + + dnl Skip version check for now +- nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \ ++ nss_config_major_version=`$NSS_CONFIG nss --modversion | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` +- nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \ ++ nss_config_minor_version=`$NSS_CONFIG nss --modversion | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` +- nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \ ++ nss_config_micro_version=`$NSS_CONFIG nss --modversion | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + fi +