Added checks at the autogen.sh stage for missing m4 macros
[geda-gaf/peter-b.git] / libgeda / acinclude.m4
blobdf6b582c1bea5fe6ae5d45daac54b6bb2863db28
2 dnl This macro checks that a m4 macro is define.  The primary use of
3 dnl this macro is to inform users that they haven't installed required
4 dnl -devel packages at autogen.sh time.  This macro is based on a 
5 dnl prototype macro created by Peter Brett.
7 AC_DEFUN([AC_GEDA_MACRO_CHECK], 
9   ifdef(  [$1], 
10           true,   dnl NOP
11           [
12             AC_FATAL(
13                       [m4 macro `$1' is not defined.  Ensure that `$2' is installed in your aclocal search path.  Maybe you are missing a -dev package?], 
14                     )
15           ]
16        )