[TDA995X_CFLAGS="-I$withval/inc"],
[TDA995X_CFLAGS="-I\$(abs_top_srcdir)/nxp_hdmi/inc"])
+ ## Exynos support
+ AC_ARG_ENABLE([exynos],
+ [AS_HELP_STRING([--enable-exynos],
+ [enable support for the Exynos (default is yes)])],
+ [use_exynos=$enableval],
+ [use_exynos=yes])
+
## Raspberry Pi support
AC_ARG_ENABLE([rpi],
[AS_HELP_STRING([--enable-rpi],
LIBS="$libs_pre_rpi"
fi
fi
+ ## search for X11/xrandr
+ libs_tmp="$LIBS"
+ use_x11_xrandr="yes"
+ AC_CHECK_HEADER(X11/Xlib.h,,[use_x11_xrandr="no"])
+ AC_CHECK_HEADER(X11/Xatom.h,,[use_x11_xrandr="no"])
+ AC_CHECK_HEADER(X11/extensions/Xrandr.h,,[use_x11_xrandr="no"])
+ AC_CHECK_LIB(X11,XOpenDisplay,,[use_x11_xrandr="no"])
+ AC_CHECK_LIB(Xrandr,XRRGetScreenResources,,[use_x11_xrandr="no"])
+ if test "x$use_x11_xrandr" = "xyes"; then
+ AC_DEFINE([HAVE_RANDR],[1],[Define to 1 to include support for the X11 randr extension])
+ AM_CONDITIONAL(USE_X11_RANDR, true)
+ else
+ LIBS="$libs_tmp"
+ fi
;;
*-apple-darwin*)
AC_CHECK_HEADER(mach/mach_time.h,,AC_MSG_ERROR($msg_required_header_missing))
features="$features\n TDA995x support :\t\t\tno"
fi
+ ## mark Exynos support as available
+ if test "x$use_exynos" != "xno"; then
+ AC_DEFINE([HAVE_EXYNOS_API],[1],[Define to 1 to include Exynos support])
+ AM_CONDITIONAL(USE_EXYNOS_API, true)
+ features="$features\n Exynos support :\t\t\tyes"
+ LIB_INFO="$LIB_INFO 'EXYNOS'"
+ CPPFLAGS="$CPPFLAGS $EXYNOS_CFLAGS"
+ else
+ AM_CONDITIONAL(USE_EXYNOS_API, false)
+ features="$features\n EXYNOS support :\t\t\tno"
+ fi
+
+
## check if our build system is complete
AC_CHECK_HEADER(algorithm,,AC_MSG_ERROR($msg_required_header_missing))
AC_CHECK_HEADER(ctype.h,,AC_MSG_ERROR($msg_required_header_missing))
platform/posix/os-edid.cpp \
platform/adl/adl-edid.cpp \
platform/nvidia/nv-edid.cpp
+if USE_X11_RANDR
+libcec_la_SOURCES += platform/X11/randr-edid.cpp
+endif
+
endif
## Raspberry Pi support
adapter/TDA995x/TDA995xCECAdapterCommunication.cpp
endif
+ ## Exynos support
+ if USE_EXYNOS_API
+ libcec_la_SOURCES += adapter/Exynos/ExynosCECAdapterDetection.cpp \
+ adapter/Exynos/ExynosCECAdapterCommunication.cpp
+ endif
libcec_la_LDFLAGS = @LIBS_LIBCEC@ -version-info @VERSION@