# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.65]) AC_INIT([libomxil-e7270], [0.1]) AM_INIT_AUTOMAKE([tar-ustar]) #AC_CONFIG_HEADERS([config.h]) # Set to 'm4' the directory where the extra autoconf macros are stored AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_FILES([ omxil-e7270-v4l2.pc srp.pc Makefile exynos/Makefile exynos/libvideocodec/Makefile openmax/Makefile openmax/osal/Makefile openmax/core/Makefile openmax/component/Makefile openmax/component/common/Makefile openmax/component/video/Makefile openmax/component/video/dec/Makefile openmax/component/video/dec/h264/Makefile openmax/component/video/dec/hevc/Makefile openmax/component/video/dec/mpeg4/Makefile openmax/component/video/dec/mpeg2/Makefile openmax/component/video/dec/vc1/Makefile openmax/component/video/dec/vp8/Makefile openmax/component/video/dec/vp9/Makefile openmax/component/video/enc/Makefile openmax/component/video/enc/h264/Makefile openmax/component/video/enc/hevc/Makefile openmax/component/video/enc/mpeg4/Makefile openmax/component/video/enc/vp8/Makefile openmax/component/video/enc/vp9/Makefile ]) # Checks for programs. AC_PROG_CC AC_PROG_CPP AC_PROG_CXX AM_PROG_CC_C_O AC_PROG_LIBTOOL AC_PROG_AWK AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_CXX AM_PROG_AS # Check for libtool AM_PROG_LIBTOOL # Checks for libraries. # Check for pthread AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_ERROR([pthread is required])]) # Check for libdl AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([libdl is required])]) # Checks for header files. AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE AC_TYPE_SIZE_T AC_TYPE_SSIZE_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MMAP AC_FUNC_REALLOC AC_CHECK_FUNCS([gettimeofday memmove memset munmap]) AC_DEFINE([SLP_PLATFORM]) AC_DEFINE([USE_IMMEDIATE_DISPLAY]) PKG_CHECK_MODULES(EXYNOSCOMMON,exynos-common) AC_SUBST(EXYNOSCOMMON_CFLAGS) AC_SUBST(EXYNOSCOMMON_LIBS) PKG_CHECK_MODULES(TBM, libtbm) AC_SUBST(TBM_CFLAGS) AC_SUBST(TBM_LIBS) dnl use dlog ------------------------------------------------------------------ AC_ARG_ENABLE(dlog, AC_HELP_STRING([--enable-dlog], [using dlog]), [ case "${enableval}" in yes) USE_DLOG=yes ;; no) USE_DLOG=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-dlog) ;; esac ],[USE_DLOG=no]) if test "x$USE_DLOG" = "xyes"; then PKG_CHECK_MODULES(DLOG, dlog) AC_SUBST(DLOG_CFLAGS) AC_SUBST(DLOG_LIBS) fi AM_CONDITIONAL(USE_DLOG, test "x$USE_DLOG" = "xyes") dnl end ----------------------------------------------------------------------- AC_ARG_ENABLE([exynos7270], AC_HELP_STRING([--enable-exynos7270], [Enable exynos7270 specific code]), [ case "${enableval}" in yes) EXYNOS_7270=yes ;; no) EXYNOS_7270=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-exynos7270) ;; esac ], [EXYNOS_7270=no]) AM_CONDITIONAL([EXYNOS_7270], [test "x$EXYNOS_7270" = "xyes"]) AC_ARG_ENABLE(s3dsupport, AC_HELP_STRING([--enable-s3dsupport], [use s3d support]), [ case "${enableval}" in yes) BOARD_USE_S3D_SUPPORT=yes ;; no) BOARD_USE_S3D_SUPPORT=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-s3dsupport) ;; esac ], [BOARD_USE_S3D_SUPPORT=no]) AM_CONDITIONAL([BOARD_USE_S3D_SUPPORT], [test "x$BOARD_USE_S3D_SUPPORT" = "xyes"]) AC_OUTPUT