aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-28 23:53:24 +0900
committerCedric Bail <cedric.bail@free.fr>2013-03-30 18:14:26 +0900
commitcd28bc814552bf52bb670e108343b23d48fa839e (patch)
tree8119c42e8ad25f496aa500fafec79b0d91e21060 /m4
parentreprotect _mixer_popup_key_down_cb (diff)
downloadenlightenment-cd28bc814552bf52bb670e108343b23d48fa839e.tar.gz
e: add support for systemd user session.
Diffstat (limited to 'm4')
-rw-r--r--m4/pkg_var.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/pkg_var.m4 b/m4/pkg_var.m4
new file mode 100644
index 000000000..3d0a309bc
--- /dev/null
+++ b/m4/pkg_var.m4
@@ -0,0 +1,14 @@
+# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
+# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# -------------------------------------------
+# Retrieves the value of the pkg-config variable for the given module.
+AC_DEFUN([EFL_PKG_CHECK_VAR],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
+
+_PKG_CONFIG([$1], [variable="][$3]["], [$2])
+AS_VAR_COPY([$1], [pkg_cv_][$1])
+
+AS_VAR_IF([$1], [""], [$5], [$4])dnl
+])# PKG_CHECK_VAR
+