必要なツールとソースがすべて揃っていると思います。これには、git リポジトリからの bison の最新ソースも含まれます。
./bootstrap を実行すると、次のエラーが表示されます。
lib/local.mk:19: error: lib_libbison_a_SOURCES must be set with '=' before using '+='
Makefile.am:60: 'lib/local.mk' included from here
lib/local.mk:19: warning: variable 'lib_libbison_a_SOURCES' is defined but no program or
lib/local.mk:19: library has 'lib_libbison_a' as canonical name (possible typo)
Makefile.am:60: 'lib/local.mk' included from here
autoreconf-2.69: automake failed with exit status: 1
./bootstrap: autoreconf failed
ソースを見ると、lib/local.mk の 19 行目 (上記のエラー メッセージの最初の行) より前に lib/gnulib.mk が含まれていることがわかります。lib/gnulib.mk は生成されたファイルです。たとえば、次のとおりです。
libbison_a_SOURCES =
libbison_a_LIBADD = $(gl_LIBOBJS)
libbison_a_DEPENDENCIES = $(gl_LIBOBJS)
EXTRA_libbison_a_SOURCES =
lib/local.mk には次のものがあります。
lib_libbison_a_SOURCES += \
そのため、生成されたファイルに "lib_" がありません (または修正されたソースに余分な "lib_" があります)。
この問題を克服する方法はありますか?