diff options
Diffstat (limited to 'm4/ac_ecore.m4')
-rw-r--r-- | m4/ac_ecore.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/m4/ac_ecore.m4 b/m4/ac_ecore.m4 new file mode 100644 index 0000000..952026a --- /dev/null +++ b/m4/ac_ecore.m4 @@ -0,0 +1,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) +]) |