From 5b77d2068a4f8cc93eace20ea70339f8aaa0a158 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 10 Oct 2012 22:12:29 +0000 Subject: efl: helper macro and remove duplicated defines. AC_CHECK_HEADERS() will already define HAVE_STDINT_H and HAVE_INTTYPES_H. SVN revision: 77834 --- m4/ac_define_if.m4 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 m4/ac_define_if.m4 (limited to 'm4') 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 @@ +dnl use: AC_DEFINE_IF(id, testcond, val, comment) +AC_DEFUN([AC_DEFINE_IF], +[ +if $2; then + AC_DEFINE($1, $3, $4) +fi +]) -- cgit v1.2.1