X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=m4%2Fsc_plugin.m4;h=fccc087c62cc79b6a8aaa8f573d6940510c1967c;hp=bd55725ffc0807334e834389205ea14f807da403;hb=3a179f6f4ad2586325656b49bd9d5a53efc8700c;hpb=bf3b8e60b2fdc493c4e04b05ce67abf69ca9a4ff diff --git a/m4/sc_plugin.m4 b/m4/sc_plugin.m4 index bd55725..fccc087 100644 --- a/m4/sc_plugin.m4 +++ b/m4/sc_plugin.m4 @@ -69,7 +69,7 @@ AC_DEFUN([AC_SC_PLUGIN], ) if test "x$enable_plugin" = "xyes"; then if test "x$2" = "xyes" || test "x$force" = "xyes"; then - AC_DEFINE([HAVE_PLUGIN_]m4_toupper([$1]), 1, [Define to 1 if the $1 plugin is enabled.]) + AC_DEFINE([HAVE_PLUGIN_]m4_translit(m4_toupper([$1]),[-],[_]), 1, [Define to 1 if the $1 plugin is enabled.]) if test "x$2" != "xyes"; then dependency_warning="yes" fi @@ -78,8 +78,8 @@ AC_DEFUN([AC_SC_PLUGIN], enable_plugin="no (dependency error)" fi fi - AM_CONDITIONAL([BUILD_PLUGIN_]m4_toupper([$1]), test "x$enable_plugin" = "xyes") - enable_$1="$enable_plugin" + AM_CONDITIONAL([BUILD_PLUGIN_]m4_translit(m4_toupper([$1]),[-][_]), test "x$enable_plugin" = "xyes") + m4_translit(enable_$1,[-],[_])="$enable_plugin" ] )