diff options
Diffstat (limited to 'm4/ac_define_if.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 000000000..961ca6445 --- /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 +]) |