aboutsummaryrefslogtreecommitdiff
path: root/m4/ac_ecore.m4
blob: 952026ab51942e700be0306575767716901cd4bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)
])