summaryrefslogtreecommitdiff
path: root/legacy/eet/m4/efl_fnmatch.m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-02-03 20:47:48 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-02-03 20:47:48 +0000
commit519cb988478605381f83252a3b6d62fbbd6463a2 (patch)
tree01d31bdfba0ed0b820fca5454b1aa71c32b89331 /legacy/eet/m4/efl_fnmatch.m4
parent64f1c415e28c8c325c6c6f44f70275ceeb472211 (diff)
use efl_fnmatch m4 macro
SVN revision: 45852
Diffstat (limited to 'legacy/eet/m4/efl_fnmatch.m4')
-rw-r--r--legacy/eet/m4/efl_fnmatch.m431
1 files changed, 31 insertions, 0 deletions
diff --git a/legacy/eet/m4/efl_fnmatch.m4 b/legacy/eet/m4/efl_fnmatch.m4
new file mode 100644
index 0000000000..a92ac6b636
--- /dev/null
+++ b/legacy/eet/m4/efl_fnmatch.m4
@@ -0,0 +1,31 @@
1dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if fnmatch functions are available or not.
5
6dnl Usage: EFL_CHECK_FNMATCH([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl Call AC_SUBST(EFL_FNMATCH_LIBS)
8
9AC_DEFUN([EFL_CHECK_FNMATCH],
10[
11
12AC_CHECK_HEADER([fnmatch.h], [_efl_have_fnmatch="yes"], [_efl_have_fnmatch="no"])
13
14if test "x${_efl_have_fnmatch}" = "xyes" ; then
15 AC_SEARCH_LIBS([fnmatch],
16 [fnmatch evil iberty],
17 [_efl_have_fnmatch="yes"],
18 [_efl_have_fnmatch="no"])
19fi
20
21EFL_FNMATCH_LIBS=""
22
23if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then
24 EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch}
25fi
26
27AC_SUBST(EFL_FNMATCH_LIBS)
28
29AS_IF([test "x$_efl_have_fnmatch" = "xyes"], [$1], [$2])
30
31])