зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1379539 - Remove unnecessary NSPR dependency. r=glandium
This commit is contained in:
Родитель
4f808a0fde
Коммит
034b4fdfa6
|
@ -179,11 +179,8 @@ AC_SUBST_LIST(NSPR_CFLAGS)
|
||||||
AC_SUBST(NSPR_INCLUDE_DIR)
|
AC_SUBST(NSPR_INCLUDE_DIR)
|
||||||
AC_SUBST(NSPR_LIB_DIR)
|
AC_SUBST(NSPR_LIB_DIR)
|
||||||
|
|
||||||
NSPR_PKGCONF_CHECK="nspr"
|
PKGCONF_REQUIRES_PRIVATE="Requires.private: nspr"
|
||||||
if test -n "$MOZ_SYSTEM_NSPR"; then
|
if test -n "$MOZ_SYSTEM_NSPR"; then
|
||||||
# piggy back on $MOZ_SYSTEM_NSPR to set a variable for the nspr check for js.pc
|
|
||||||
NSPR_PKGCONF_CHECK="nspr >= $NSPR_MINVER"
|
|
||||||
|
|
||||||
_SAVE_CFLAGS=$CFLAGS
|
_SAVE_CFLAGS=$CFLAGS
|
||||||
CFLAGS="$CFLAGS $NSPR_CFLAGS"
|
CFLAGS="$CFLAGS $NSPR_CFLAGS"
|
||||||
AC_TRY_COMPILE([#include "prlog.h"],
|
AC_TRY_COMPILE([#include "prlog.h"],
|
||||||
|
@ -193,8 +190,12 @@ if test -n "$MOZ_SYSTEM_NSPR"; then
|
||||||
,
|
,
|
||||||
AC_MSG_ERROR([system NSPR does not support PR_STATIC_ASSERT]))
|
AC_MSG_ERROR([system NSPR does not support PR_STATIC_ASSERT]))
|
||||||
CFLAGS=$_SAVE_CFLAGS
|
CFLAGS=$_SAVE_CFLAGS
|
||||||
|
# piggy back on $MOZ_SYSTEM_NSPR to set a variable for the nspr check for js.pc
|
||||||
|
PKGCONF_REQUIRES_PRIVATE="Requires.private: nspr >= $NSPR_MINVER"
|
||||||
|
elif test -n "$JS_POSIX_NSPR"; then
|
||||||
|
PKGCONF_REQUIRES_PRIVATE=
|
||||||
fi
|
fi
|
||||||
AC_SUBST(NSPR_PKGCONF_CHECK)
|
AC_SUBST([PKGCONF_REQUIRES_PRIVATE])
|
||||||
|
|
||||||
fi # _IS_OUTER_CONFIGURE
|
fi # _IS_OUTER_CONFIGURE
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,6 @@ includedir=@includedir@
|
||||||
Name: SpiderMonkey @MOZILLA_VERSION@
|
Name: SpiderMonkey @MOZILLA_VERSION@
|
||||||
Description: The Mozilla library for JavaScript
|
Description: The Mozilla library for JavaScript
|
||||||
Version: @MOZILLA_VERSION@
|
Version: @MOZILLA_VERSION@
|
||||||
Requires.private: @NSPR_PKGCONF_CHECK@
|
@PKGCONF_REQUIRES_PRIVATE@
|
||||||
Libs: -L${libdir} -l@JS_LIBRARY_NAME@
|
Libs: -L${libdir} -l@JS_LIBRARY_NAME@
|
||||||
Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -I${includedir}/@JS_LIBRARY_NAME@
|
Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -I${includedir}/@JS_LIBRARY_NAME@
|
||||||
|
|
Загрузка…
Ссылка в новой задаче