< prev index next >

make/autoconf/lib-x11.m4

Print this page




 102     HEADERS_TO_CHECK="X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h"
 103     # There is no Xrandr extension on AIX
 104     if test "x$OPENJDK_TARGET_OS" = xaix; then
 105       X_CFLAGS="$X_CFLAGS -DNO_XRANDR"
 106     else
 107       HEADERS_TO_CHECK="$HEADERS_TO_CHECK X11/extensions/Xrandr.h"
 108     fi
 109 
 110     # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
 111     AC_CHECK_HEADERS([$HEADERS_TO_CHECK],
 112         [X11_HEADERS_OK=yes],
 113         [X11_HEADERS_OK=no; break],
 114         [
 115           # include <X11/Xlib.h>
 116           # include <X11/Xutil.h>
 117         ]
 118     )
 119 
 120     if test "x$X11_HEADERS_OK" = xno; then
 121       HELP_MSG_MISSING_DEPENDENCY([x11])
 122       AC_MSG_ERROR([Could not find all X11 headers (shape.h Xrender.h Xrandr.h XTest.h Intrinsic.h). $HELP_MSG])
 123     fi
 124 
 125     # If XLinearGradient isn't available in Xrender.h, signal that it needs to be
 126     # defined in libawt_xawt.
 127     AC_MSG_CHECKING([if XlinearGradient is defined in Xrender.h])
 128     AC_COMPILE_IFELSE(
 129         [AC_LANG_PROGRAM([[#include <X11/extensions/Xrender.h>]],
 130             [[XLinearGradient x;]])],
 131         [AC_MSG_RESULT([yes])],
 132         [AC_MSG_RESULT([no])
 133          X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS"])
 134 
 135     CFLAGS="$OLD_CFLAGS"
 136     AC_LANG_POP(C)
 137   fi # NEEDS_LIB_X11
 138 
 139   AC_SUBST(X_CFLAGS)
 140   AC_SUBST(X_LIBS)
 141 ])


 102     HEADERS_TO_CHECK="X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h"
 103     # There is no Xrandr extension on AIX
 104     if test "x$OPENJDK_TARGET_OS" = xaix; then
 105       X_CFLAGS="$X_CFLAGS -DNO_XRANDR"
 106     else
 107       HEADERS_TO_CHECK="$HEADERS_TO_CHECK X11/extensions/Xrandr.h"
 108     fi
 109 
 110     # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
 111     AC_CHECK_HEADERS([$HEADERS_TO_CHECK],
 112         [X11_HEADERS_OK=yes],
 113         [X11_HEADERS_OK=no; break],
 114         [
 115           # include <X11/Xlib.h>
 116           # include <X11/Xutil.h>
 117         ]
 118     )
 119 
 120     if test "x$X11_HEADERS_OK" = xno; then
 121       HELP_MSG_MISSING_DEPENDENCY([x11])
 122       AC_MSG_ERROR([Could not find all X11 headers (shape.h Xrender.h Xrander.h XTest.h Intrinsic.h). $HELP_MSG])
 123     fi
 124 
 125     # If XLinearGradient isn't available in Xrender.h, signal that it needs to be
 126     # defined in libawt_xawt.
 127     AC_MSG_CHECKING([if XlinearGradient is defined in Xrender.h])
 128     AC_COMPILE_IFELSE(
 129         [AC_LANG_PROGRAM([[#include <X11/extensions/Xrender.h>]],
 130             [[XLinearGradient x;]])],
 131         [AC_MSG_RESULT([yes])],
 132         [AC_MSG_RESULT([no])
 133          X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS"])
 134 
 135     CFLAGS="$OLD_CFLAGS"
 136     AC_LANG_POP(C)
 137   fi # NEEDS_LIB_X11
 138 
 139   AC_SUBST(X_CFLAGS)
 140   AC_SUBST(X_LIBS)
 141 ])
< prev index next >