fi
AC_SUBST(edje_def)
-EDJE_CC_PRG=""
-EDJE_DECC_PRG=""
-if test "x$have_edje_cc" = "xyes"; then
- AM_CONDITIONAL(BUILD_EDJE_CC, true)
- AM_CONDITIONAL(BUILD_EDJE_DECC, true)
- EDJE_CC_PRG="edje_cc"
- EDJE_DECC_PRG="edje_decc"
-else
- AM_CONDITIONAL(BUILD_EDJE_CC, false)
- AM_CONDITIONAL(BUILD_EDJE_DECC, false)
-fi
-AC_SUBST(EDJE_CC_PRG)
-AC_SUBST(EDJE_DECC_PRG)
-
AC_ARG_WITH(eet,
[ --with-eet=DIR use eet in <DIR>],
[CFLAGS="$CFLAGS -I$withval/include"
AC_ARG_WITH(imlib2,
[ --with-imlib2=DIR use imlib2 in <DIR>],
[CFLAGS="$CFLAGS -I$withval/include"
- LIBS="-L$withval/lib $LIBS"])
-
- AC_PATH_GENERIC(imlib2, ,
- AC_DEFINE(HAVE_IMLIB, 1, [Define to 1 if you have Imlib2]), [
- have_imlib2="no"
+ LIBS="-L$withval/lib $LIBS"
+ IMLIB2_CONFIG="$withval/bin/imlib2-config"])
+ if [ test -z "$IMLIB2_CONFIG" ]; then IMLIB2_CONFIG="imlib2-config"; fi
+ imlib2_libs=`$IMLIB2_CONFIG --libs`
+ imlib2_cflags=`$IMLIB2_CONFIG --cflags`
+ V=`$IMLIB2_CONFIG --version`
+ if [ test -z "$V" ]; then
+ have_edje_cc="no";
AC_MSG_WARN(Cannot find imlib2: Is imlib2-config in path?)
- ])
+ else
+ AC_DEFINE(HAVE_IMLIB, 1, [Define to 1 if you have Imlib2])
+ fi
fi
AC_ARG_WITH(evas,
AC_MSG_RESULT([Not found, EDC syntax file will not be installed])
fi
+EDJE_CC_PRG=""
+EDJE_DECC_PRG=""
+if test "x$have_edje_cc" = "xyes"; then
+ AM_CONDITIONAL(BUILD_EDJE_CC, true)
+ AM_CONDITIONAL(BUILD_EDJE_DECC, true)
+ EDJE_CC_PRG="edje_cc"
+ EDJE_DECC_PRG="edje_decc"
+ EDJE_RECC_PRG="edje_recc"
+ IMLIB2_CFLAGS=$imlib2_cflags
+ IMLIB2_LIBS=$imlib2_libs
+else
+ AM_CONDITIONAL(BUILD_EDJE_CC, false)
+ AM_CONDITIONAL(BUILD_EDJE_DECC, false)
+fi
+AC_SUBST(EDJE_CC_PRG)
+AC_SUBST(EDJE_DECC_PRG)
+AC_SUBST(EDJE_RECC_PRG)
+AC_SUBST(IMLIB2_CFLAGS)
+AC_SUBST(IMLIB2_LIBS)
+
AC_SUBST(vimdir)
AC_OUTPUT([