summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcls%seawood.org <devnull@localhost>2001-04-24 04:11:28 +0000
committercls%seawood.org <devnull@localhost>2001-04-24 04:11:28 +0000
commit122014e104876172df9beaac9773675286475136 (patch)
tree4f80f14badd2c2bf0cdab3ce8c836227df2cbcbc
parent21410cb93838207a6e1cc1c342697b849c3c6d65 (diff)
downloadnss-hg-122014e104876172df9beaac9773675286475136.tar.gz
Add support for Irix 6.5.
Thanks to "John Mark Vandenberg" <john.vandenberg@adacel.com> for the patch. Bug #77276 r/a=blizzard sr=cls
-rwxr-xr-xsecurity/nss/configure39
-rw-r--r--security/nss/configure.in23
2 files changed, 60 insertions, 2 deletions
diff --git a/security/nss/configure b/security/nss/configure
index 263eb7317..4956ed1e3 100755
--- a/security/nss/configure
+++ b/security/nss/configure
@@ -2579,6 +2579,41 @@ EOF
fi
;;
+*-irix*)
+ cat >> confdefs.h <<\EOF
+#define XP_UNIX 1
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define IRIX 1
+EOF
+
+ CFLAGS="$CFLAGS "
+ CXXFLAGS="$CXXFLAGS -ansiW"
+ DSO_CFLAGS=-KPIC
+ DSO_LDOPTS=-shared
+ _OPTIMIZE_FLAGS=-O2
+
+ if test -n "$USE_PTHREADS"; then
+ cat >> confdefs.h <<\EOF
+#define _REENTRANT 1
+EOF
+
+ OS_LIBS="-lpthread $OS_LIBS"
+ fi
+
+ OS_LIBS="$OS_LIBS -ldl -lc"
+
+ case "$OS_RELEASE" in
+ 6.5)
+ cat >> confdefs.h <<\EOF
+#define IRIX6_5 1
+EOF
+
+ ;;
+ esac
+ ;;
+
*-linux*)
USE_PTHREADS=1
cat >> confdefs.h <<\EOF
@@ -2856,7 +2891,7 @@ fi
# Extract the first word of "nspr-config", so it can be a program name with args.
set dummy nspr-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2860: checking for $ac_word" >&5
+echo "configure:2895: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_NSPR_CONFIG'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2891,7 +2926,7 @@ fi
min_nspr_version=4.0.0
echo $ac_n "checking for NSPR - version >= $min_nspr_version (skipping)""... $ac_c" 1>&6
-echo "configure:2895: checking for NSPR - version >= $min_nspr_version (skipping)" >&5
+echo "configure:2930: checking for NSPR - version >= $min_nspr_version (skipping)" >&5
no_nspr=""
if test "$NSPR_CONFIG" = "no"; then
diff --git a/security/nss/configure.in b/security/nss/configure.in
index f5ef1e6af..ea065d455 100644
--- a/security/nss/configure.in
+++ b/security/nss/configure.in
@@ -611,6 +611,29 @@ case "$target" in
fi
;;
+*-irix*)
+ AC_DEFINE(XP_UNIX)
+ AC_DEFINE(IRIX)
+ CFLAGS="$CFLAGS "
+ CXXFLAGS="$CXXFLAGS -ansiW"
+ DSO_CFLAGS=-KPIC
+ DSO_LDOPTS=-shared
+ _OPTIMIZE_FLAGS=-O2
+
+ if test -n "$USE_PTHREADS"; then
+ AC_DEFINE(_REENTRANT)
+ OS_LIBS="-lpthread $OS_LIBS"
+ fi
+
+ OS_LIBS="$OS_LIBS -ldl -lc"
+
+ case "$OS_RELEASE" in
+ 6.5)
+ AC_DEFINE(IRIX6_5)
+ ;;
+ esac
+ ;;
+
*-linux*)
USE_PTHREADS=1
AC_DEFINE(XP_UNIX)