diff options
-rw-r--r-- | m4/ac_evas.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/m4/ac_evas.m4 b/m4/ac_evas.m4 new file mode 100644 index 0000000..16feb10 --- /dev/null +++ b/m4/ac_evas.m4 @@ -0,0 +1,20 @@ +AC_DEFUN([AC_CHK_EVAS], +[ + AC_ARG_WITH( + [evas-config], + [ --with-evas-config=EVAS_CONFIG_PATH use evas-config specified ], + [EVAS_CONFIG=$withval; + if ! test -x "$EVAS_CONFIG"; then + AC_MSG_ERROR([$EVAS_CONFIG not found]) + fi], + [AC_PATH_PROG(EVAS_CONFIG, "evas-config", "", $PATH) + if test -z "$EVAS_CONFIG"; then + AC_MSG_ERROR([You need evas !]) + fi]) + + evas_cflags=`$EVAS_CONFIG --cflags` + evas_libs=`$EVAS_CONFIG --libs` + + AC_SUBST(evas_cflags) + AC_SUBST(evas_libs) +]) |