From 99042aa646d4895ed3736e7a955adcceaa7d7dbb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Sep 2015 14:10:13 +0300 Subject: Disable building dyecmd on Android. --- configure.ac | 2 ++ src/Makefile.am | 4 ++++ 2 files changed, 6 insertions(+) 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)"\" \ -- cgit v1.2.3-70-g09d2