diff options
author | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2012-10-10 22:12:29 +0000 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2012-10-10 22:12:29 +0000 |
commit | 5b77d2068a4f8cc93eace20ea70339f8aaa0a158 (patch) | |
tree | 0530a895409409c72639b1e560575c5934281767 /m4 | |
parent | cf5ba612bb34ddde3ee4c8746f72725982847a9b (diff) |
efl: helper macro and remove duplicated defines.
AC_CHECK_HEADERS() will already define HAVE_STDINT_H and HAVE_INTTYPES_H.
SVN revision: 77834
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ac_define_if.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/ac_define_if.m4 b/m4/ac_define_if.m4 new file mode 100644 index 0000000000..961ca64452 --- /dev/null +++ b/m4/ac_define_if.m4 | |||
@@ -0,0 +1,7 @@ | |||
1 | dnl use: AC_DEFINE_IF(id, testcond, val, comment) | ||
2 | AC_DEFUN([AC_DEFINE_IF], | ||
3 | [ | ||
4 | if $2; then | ||
5 | AC_DEFINE($1, $3, $4) | ||
6 | fi | ||
7 | ]) | ||