build: Generate entry macros as well.

This commit is contained in:
Juho Hämäläinen 2019-05-10 16:33:44 +03:00
parent 0fdfef668d
commit 13b3ed1a75

View file

@ -17,5 +17,10 @@ AC_DEFUN([CC_CHECK_DROID_ENUM],
AC_MSG_RESULT([$cc_check_droid_enum])
if test x"$cc_check_droid_enum" = x"yes"; then
AC_DEFINE(HAVE_ENUM_$2,,[define if enum $2 is found in headers])
AC_DEFINE(STRING_ENTRY_IF_$2,[STRING_ENTRY($2),],[string entry for enum $2])
AC_DEFINE(FANCY_ENTRY_IF_$2(n),[{$2, n},],[fancy entry for enum $2])
else
AC_DEFINE(STRING_ENTRY_IF_$2,,[string entry for enum $2])
AC_DEFINE(FANCY_ENTRY_IF_$2(n),,[fancy entry for enum $2])
fi
])