diff options
-rwxr-xr-x | configure.ac | 2 | ||||
-rw-r--r-- | src/Makefile.am | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0edeca5f4..d1bf4cd8a 100755 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,8 @@ AC_ARG_ENABLE(androidbuild, *) AC_MSG_ERROR(bad value ${enableval} for --enable-androidbuild) ;; esac],[androidbuild_enabled=false]) +AM_CONDITIONAL(ENABLE_DYECMD, test x$androidbuild_enabled = xyes) + # Enable nacl build AC_ARG_ENABLE(naclbuild, [ --enable-naclbuild Turn on nacl building], diff --git a/src/Makefile.am b/src/Makefile.am index 5d40b4c18..ba83b5fcb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,10 @@ AUTOMAKE_OPTIONS = subdir-objects +if ENABLE_DYECMD bin_PROGRAMS = manaplus dyecmd +else +bin_PROGRAMS = manaplus +endif dyecmd_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\" \ -DLOCALEDIR=\""$(localedir)"\" \ |