Cyrus-SASL の configure.in と aclocal.m4 がひどい件
AC_ARG_WITH(plugindir, [ --with-plugindir=DIR set the directory where plugins will be found [[/usr/lib/sasl2]] ], plugindir=$withval, plugindir=/usr/lib/sasl2) AC_DEFINE_UNQUOTED(PLUGINDIR, "$plugindir", [Runtime plugin location]) AC_SUBST(plugindir) AC_ARG_WITH(configdir, [ --with-configdir=DIR set the directory where config files will be found [/usr/lib/sasl2] ], configdir=$withval, configdir=$plugindir:/etc/sasl2)
なんだよこれ、ダメすぎじゃね? --with-plugindir は prefix 無視してるし、 --with-configdir は説明だけみると /usr/lib/sasl2 だけ見にいくように見えるけど、実際には $plugindir を参照する上、/etc/sasl2 も勝手に見に行く。
しかも /etc/sasl2 は決め打ち。$dbpath とか sysconfdir を参照するという発想がないのかよ。
しかも、aclocal.m4 しかパッケージにバンドルしてないし…。aclocal.m4 を手作業で編集してるのかこれは。正直、出直してこいって感じだ。
dnl Figure out what database path we're using AC_DEFUN([SASL_DB_PATH_CHECK], [ AC_ARG_WITH(dbpath, [ --with-dbpath=PATH set the DB path to use [/etc/sasldb2] ], dbpath=$withval, dbpath=/etc/sasldb2) AC_MSG_CHECKING(DB path to use) AC_MSG_RESULT($dbpath) AC_DEFINE_UNQUOTED(SASL_DB_PATH, "$dbpath", [Path to default SASLdb database])])