diff options
author | Thomas Groman <tgroman@nuegia.net> | 2020-08-23 17:15:35 -0700 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2020-08-23 18:10:05 -0700 |
commit | e8dada8eff0b36a98b514af6adc039d2920a2109 (patch) | |
tree | 4afe7a19db71a0ab714faac45ced87a457c36c77 /old-configure.in | |
parent | aaeaf52308b698084c978636b4f56f87d0603f49 (diff) | |
download | UXP-e8dada8eff0b36a98b514af6adc039d2920a2109.tar UXP-e8dada8eff0b36a98b514af6adc039d2920a2109.tar.gz UXP-e8dada8eff0b36a98b514af6adc039d2920a2109.tar.lz UXP-e8dada8eff0b36a98b514af6adc039d2920a2109.tar.xz UXP-e8dada8eff0b36a98b514af6adc039d2920a2109.zip |
Dick, YOU'RE FIRED!
Revert "Issue #1342 - Remove support for system libevent"
This reverts commit 90c5288fef22004d6e4d441b3ae10b9cd1836103.
Diffstat (limited to 'old-configure.in')
-rw-r--r-- | old-configure.in | 92 |
1 files changed, 58 insertions, 34 deletions
diff --git a/old-configure.in b/old-configure.in index 68fc4c7f3..6f4fef93a 100644 --- a/old-configure.in +++ b/old-configure.in @@ -2005,9 +2005,64 @@ esac MOZ_CONFIG_NSPR() -# TODO: We need to find a better place to define this include -NSS_CFLAGS="-I${DIST}/include/nss" -AC_SUBST(NSS_CFLAGS) +dnl ======================================================== +dnl system libevent Support +dnl ======================================================== +MOZ_ARG_WITH_STRING(system-libevent, +[ --with-system-libevent[=PFX] + Use system libevent [installed at prefix PFX]], + LIBEVENT_DIR=$withval) + +_SAVE_CFLAGS=$CFLAGS +_SAVE_LDFLAGS=$LDFLAGS +_SAVE_LIBS=$LIBS +if test "$LIBEVENT_DIR" = yes; then + PKG_CHECK_MODULES(MOZ_LIBEVENT, libevent, + MOZ_SYSTEM_LIBEVENT=1, + LIBEVENT_DIR=/usr) +fi +if test -z "$LIBEVENT_DIR" -o "$LIBEVENT_DIR" = no; then + MOZ_SYSTEM_LIBEVENT= +elif test -z "$MOZ_SYSTEM_LIBEVENT"; then + CFLAGS="-I${LIBEVENT_DIR}/include $CFLAGS" + LDFLAGS="-L${LIBEVENT_DIR}/lib $LDFLAGS" + MOZ_CHECK_HEADER(event.h, + [if test ! -f "${LIBEVENT_DIR}/include/event.h"; then + AC_MSG_ERROR([event.h found, but is not in ${LIBEVENT_DIR}/include]) + fi], + AC_MSG_ERROR([--with-system-libevent requested but event.h not found])) + AC_CHECK_LIB(event, event_init, + [MOZ_SYSTEM_LIBEVENT=1 + MOZ_LIBEVENT_CFLAGS="-I${LIBEVENT_DIR}/include" + MOZ_LIBEVENT_LIBS="-L${LIBEVENT_DIR}/lib -levent"], + [MOZ_SYSTEM_LIBEVENT= MOZ_LIBEVENT_CFLAGS= MOZ_LIBEVENT_LIBS=]) +fi +CFLAGS=$_SAVE_CFLAGS +LDFLAGS=$_SAVE_LDFLAGS +LIBS=$_SAVE_LIBS + +AC_SUBST(MOZ_SYSTEM_LIBEVENT) + +dnl ======================================================== +dnl = If NSS was not detected in the system, +dnl = use the one in the source tree (mozilla/security/nss) +dnl ======================================================== + +MOZ_ARG_WITH_BOOL(system-nss, +[ --with-system-nss Use system installed NSS], + _USE_SYSTEM_NSS=1 ) + +if test -n "$_USE_SYSTEM_NSS"; then + AC_MSG_ERROR([Building with system NSS is currently not supported.]) +fi + +if test -n "$_USE_SYSTEM_NSS"; then + AM_PATH_NSS(3.41, [MOZ_SYSTEM_NSS=1], [AC_MSG_ERROR([you don't have NSS installed or your version is too old])]) +fi + +if test -z "$MOZ_SYSTEM_NSS"; then + NSS_CFLAGS="-I${DIST}/include/nss" +fi if test -z "$SKIP_LIBRARY_CHECKS"; then dnl system JPEG support @@ -5543,37 +5598,6 @@ fi AC_SUBST(MOZILLA_VERSION) -dnl ======================================================== -dnl Directive 4 -dnl ======================================================== - -DIRECTIVE4_LIST=" -MOZ_OFFICIAL_BRANDING=$MOZ_OFFICIAL_BRANDING -MOZ_BRANDING_DIRECTORY=$MOZ_BRANDING_DIRECTORY -MC_BASILISK=$MC_BASILISK -MC_PALEMOON=$MC_PALEMOON -MOZ_EME=$MOZ_EME -MOZ_WEBRTC=$MOZ_WEBRTC -MOZ_SYSTEM_JPEG=$MOZ_SYSTEM_JPEG -MOZ_SYSTEM_ZLIB=$MOZ_SYSTEM_ZLIB -MOZ_SYSTEM_BZ2=$MOZ_SYSTEM_BZ2 -MOZ_SYSTEM_PNG=$MOZ_SYSTEM_PNG -MOZ_SYSTEM_LIBVPX=$MOZ_SYSTEM_LIBVPX -MOZ_SYSTEM_SQLITE=$MOZ_SYSTEM_SQLITE -MOZ_SYSTEM_JEMALLOC=$MOZ_SYSTEM_JEMALLOC" - -DIRECTIVE4=`$PYTHON $_topsrcdir/build/directive4.py $DIRECTIVE4_LIST` - -if test -n "$DIRECTIVE4"; then - if test -n "$MC_PRIVATE_BUILD"; then - AC_MSG_WARN([Private Build - The configuration you have chosen to use with official branding deviates from official build configuration. Your build is thus for personal and private use only and must not be (re)distributed - Please see: http://www.palemoon.org/redist.shtml]) - else - AC_MSG_ERROR([Branding Violation - Please see: http://www.palemoon.org/redist.shtml]) - fi -fi - -AC_SUBST(DIRECTIVE4) - dnl Spit out some output dnl ======================================================== |