# HG changeset patch # User Emmanuel Gil Peyrot # Date 1298422131 -3600 # Node ID 419761c8d9b977335e1fc5e9b111725d7b503ff6 # Parent d112357a0ec1bcaa571ebfabf455da4f9b2c5e08 Add configure option to build scn2kdump. diff --git a/README b/README --- a/README +++ b/README @@ -32,7 +32,7 @@ How to build: Just type './configure' followed by 'make'. If you want to build nwatowav (an utility to convert background musics to wav files), add '--enable-nwatowav' to the './configure' call. -Same with visarc (an utility to extract some data, such as the graphics files). +Same with visarc (an utility to extract some data, such as the graphics files) and scn2kdump (an utility to dump all data from a scenario file). Type 'make install' to install OtakuNoRaifu. diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -140,6 +140,12 @@ if test X$enable_nwatowav = X"yes"; then AC_SUBST(NWATOWAV, ['nwatowav${EXEEXT}']) fi +AC_ARG_ENABLE(scn2kdump, + AS_HELP_STRING([--enable-scn2kdump], [Build the scn2kdump utility (default no)])) +if test X$enable_scn2kdump = X"yes"; then + AC_SUBST(SCN2KDUMP, ['scn2kdump${EXEEXT}']) +fi + AC_ARG_ENABLE(visarc, AS_HELP_STRING([--enable-visarc], [Build the visarc utility (default no)])) if test X$enable_visarc = X"yes"; then diff --git a/scn2k/Makefile.am b/scn2k/Makefile.am --- a/scn2k/Makefile.am +++ b/scn2k/Makefile.am @@ -6,6 +6,7 @@ libscn2k_a_SOURCES = scn2k_cmd.cc scn2k_ command_handler.cc \ scn2k.h scn2k_impl.h +bin_PROGRAMS = $(SCN2KDUMP) EXTRA_PROGRAMS = scn2kdump scn2kdump_SOURCES = scn2kdump.cc