一,compile nspr (http://www.mozilla.org/projects/nspr/)
tar zxvf nspr-4.3.tar.gz
cd nspr-4.3
mkdir build
mkdir inst
cd build
../mozilla/nsprpub/configure --prefix=~/nspr-4.3/inst
make
make install
cp -rfL dist/* /usr
二,compile nss (http://www.mozilla.org/projects/security/pki/nss)
tar zxvf nss-3.8.tar.gz
cd nss-3.8
echo 'INCLUDES += -I/usr/include/nspr -I$(DIST)/include/dbm' \
>> mozilla/security/coreconf/headers.mk
sed -e 's:$(DIST)/lib/$(LIB_PREFIX)plc4:/usr/lib/$(LIB_PREFIX)plc4:' -e 's:$(DIST)/lib/$(LIB_PREFIX)plds4:/usr/lib/$(LIB_PREFIX)plds4:' -i mozilla/security/nss/lib/ckfw/builtins/Makefile
sed -e 's:$(DIST)/lib/$(LIB_PREFIX)plc4:/usr/lib/$(LIB_PREFIX)plc4:' -e 's:$(DIST)/lib/$(LIB_PREFIX)plds4:/usr/lib/$(LIB_PREFIX)plds4:' -i mozilla/security/nss/lib/fortcrypt/swfort/pkcs11/Makefile
sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' -i mozilla/security/coreconf/source.mk
三,compile gaim-0.71
tar jxvf gaim-0.71.tar.bz2
cd gaim-0.71
./configure --prefix=/usr --with-nss-includes=/usr/include/nss --with-nspr-includes=/usr/include/nspr
(you should see SSL/Library/Libraries.....: Mozilla NSS)
make && make install