aboutsummaryrefslogblamecommitdiff
path: root/m4/ac_ecore.m4
blob: 952026ab51942e700be0306575767716901cd4bd (plain) (tree)



















                                                                           
AC_DEFUN([AC_CHK_ECORE],
[
  AC_ARG_WITH(
    [ecore-config],
    [  --with-ecore-config=ECORE_CONFIG_PATH  use ecore-config specified ],
    [ECORE_CONFIG=$withval;
     if ! test -x "$ECORE_CONFIG"; then
       AC_MSG_ERROR([$ECORE_CONFIG not found])
     fi],
    [AC_PATH_PROG(ECORE_CONFIG, "ecore-config", "", $PATH)
     if test -z "$ECORE_CONFIG"; then
       AC_MSG_ERROR([You need ecore !])
     fi])

  ecore_cflags=`$ECORE_CONFIG --cflags`
  ecore_libs=`$ECORE_CONFIG --libs`
  
  AC_SUBST(ecore_cflags)
  AC_SUBST(ecore_libs)
])