summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2021-11-20 23:59:44 -0500
committerMoonchild <moonchild@palemoon.org>2022-04-07 15:43:28 +0200
commit3adf5e5d9cd5108c699e4b4914dce59cae59b07e (patch)
treede765cb82c1052a89812da41b08f5c7a97409bd3 /build
parentb2ad7e8ed963768f53053bd0495e69f80c3a4c33 (diff)
downloaduxp-3adf5e5d9cd5108c699e4b4914dce59cae59b07e.tar.gz
Issue #1847 - Transfer build configuration to gyp
Diffstat (limited to 'build')
-rw-r--r--build/autoconf/nspr-build.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/build/autoconf/nspr-build.m4 b/build/autoconf/nspr-build.m4
index b53fb4d37f..2858d1f2bd 100644
--- a/build/autoconf/nspr-build.m4
+++ b/build/autoconf/nspr-build.m4
@@ -138,6 +138,8 @@ if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
,
AC_MSG_ERROR([system NSPR does not support PR_UINT64 or including prtypes.h does not provide it]))
CFLAGS=$_SAVE_CFLAGS
+ NSPR_INCLUDE_DIR=`echo ${NSPR_CFLAGS} | sed -e 's/.*-I\([^ ]*\).*/\1/'`
+ NSPR_LIB_DIR=`echo ${NSPR_LIBS} | sed -e 's/.*-L\([^ ]*\).*/\1/'`
elif test -z "$JS_POSIX_NSPR"; then
NSPR_INCLUDE_DIR="${DIST}/include/nspr"
NSPR_CFLAGS="-I${NSPR_INCLUDE_DIR}"