MySQL ソースからbuild時にconfigureの一部オプションが認識されなくなる問題

 MySQL ソースからbuild時にconfigureの一部オプションが認識されなくなる問題 5.1.31以降から5.1.45まで続いている。原因はautoconfのバージョンアップに伴なうもの。
解決方法を上記ページより引用

From the autoconf point of view the warning is correct. plugin.m4 indeed checks
$with_plugin_foo variables without declaring a --with-plugin-foo option using
AC_ARG_WITH() macro. That is, --with-plugin-foo is properly flagged as unrecognized.

Two possible fixes, neither is perfect:

1. add AC_DISABLE_OPTION_CHECKING to configure.in
   this will turn off all warnings about unrecognized --with- or --enable
   including warnings for user mistakes like --with-big-tbales

2. In plugin.m4 add a line to the _MYSQL_PLUGIN macro:

   m4_define([$2], [$1])
+  _AC_ENABLE_IF([with],[plugin-$1])
   _MYSQL_PLUGAPPEND([__mysql_plugin_list__],[$1])

   it will register --with-plugin-XXX options for all plugins, making them recognized.
Drawback - it's undocumented internal autoconf macro. Perhaps not portable across
autoconf version, best to wrap it in m4_ifdef:

   m4_ifdef([_AC_ENABLE_IF], [AC_ENABLE_IF([with],[plugin-$1])])

ようするに、configureに正しいマクロが出力されていないので、手動で修正するということのようだ。