Bug 1043417 - don't check for X headers in js/src; r=mshal

This commit is contained in:
Nathan Froyd 2014-07-24 09:59:55 -04:00
parent 1023cdecbc
commit d6641186a2

View File

@ -3845,37 +3845,6 @@ AC_SUBST(MOZ_LINKER)
AC_CHECK_FUNCS(posix_fadvise posix_fallocate)
dnl Check for missing components
if test "$COMPILE_ENVIRONMENT"; then
if test "$MOZ_X11"; then
dnl ====================================================
dnl = Check if X headers exist
dnl ====================================================
_SAVE_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $XCFLAGS"
AC_TRY_COMPILE([
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
],
[
Display *dpy = 0;
if ((dpy = XOpenDisplay(NULL)) == NULL) {
fprintf(stderr, ": can't open %s\n", XDisplayName(NULL));
exit(1);
}
], [],
[ AC_MSG_ERROR([Can't find X headers (install libxt-dev (Debian/Ubuntu), libXt-devel (Fedora), or xorg-x11-libXt-devel (SuSE)).]) ])
CFLAGS="$_SAVE_CFLAGS"
if test -n "$MISSING_X"; then
AC_MSG_ERROR([ Could not find the following X libraries: $MISSING_X ]);
fi
fi # MOZ_X11
fi # COMPILE_ENVIRONMENT
dnl Set various defines and substitutions
dnl ========================================================