summaryrefslogtreecommitdiff
path: root/m4/pkg_var.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/pkg_var.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 0000000000..3d0a309bcb
--- /dev/null
+++ b/m4/pkg_var.m4
@@ -0,0 +1,14 @@
1# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
2# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3# -------------------------------------------
4# Retrieves the value of the pkg-config variable for the given module.
5AC_DEFUN([EFL_PKG_CHECK_VAR],
6[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
8
9_PKG_CONFIG([$1], [variable="][$3]["], [$2])
10AS_VAR_COPY([$1], [pkg_cv_][$1])
11
12AS_VAR_IF([$1], [""], [$5], [$4])dnl
13])# PKG_CHECK_VAR
14