aboutsummaryrefslogblamecommitdiff
path: root/m4/vl_lib_ecore.m4
blob: 01728534656e37327f395fb04544a801ee0a50ec (plain) (tree)






















                                                               
AC_DEFUN([VL_LIB_ECORE],
[
  AC_CACHE_CHECK([for Ecore],
    vl_cv_lib_ecore,
    [
      ORIG_LIBS="$LIBS"
      TRY_LIBS="-lecore"
      LIBS="$ORIG_LIBS $TRY_LIBS"

      AC_TRY_LINK_FUNC(ecore_init, vl_cv_lib_ecore="$TRY_LIBS")

      if test -n "$vl_cv_lib_ecore"; then
        LIBS="$ORIG_LIBS $TRY_LIBS"
      else
        LIBS="$ORIG_LIBS"
        AC_MSG_ERROR([You need Ecore])
      fi
    ])

    if test -n "$vl_cv_lib_ecore"; then
      AC_CHECK_HEADERS(Ecore.h)
    fi
])