diff --git a/Makefile.am b/Makefile.am index f27d5c68b3..02a7e4d25e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,8 +12,8 @@ dist_noinst_DATA = \ resources/js/d3.v3.min.js \ resources/js/hogan.min.js -noinst_PROGRAMS = bin2c -bin2c_SOURCES = src/bin2c.c +bin2c$(EXEEXT): src/bin2c.c + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@ $(LDFLAGS_FOR_BUILD) BUILT_SOURCES = \ src/tpls.h \ diff --git a/README.md b/README.md index 6160684e18..7ae3552030 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ Distro | NCurses | GeoIP (opt) |GeoIP2 (opt) **Gentoo** | sys-libs/ncurses | dev-libs/geoip | dev-libs/libmaxminddb | dev-libs/openssl **Slackware** | ncurses | GeoIP | libmaxminddb | openssl -**Note**: You may need to install build tools like `gcc`, `autoconf`, +**Note**: You may need to install build tools like `gcc`, `autoconf`, `autoconf-archive` `gettext`, `autopoint` etc for compiling/building software from source. e.g., `base-devel`, `build-essential`, `"Development Tools"`. diff --git a/configure.ac b/configure.ac index 09d693ac82..054736d85b 100644 --- a/configure.ac +++ b/configure.ac @@ -17,6 +17,9 @@ AC_CONFIG_HEADERS([src/config.h]) AC_PROG_CC([cc gcc clang]) AM_PROG_CC_C_O +# Find build compiler for the cross compilation case +AX_CC_FOR_BUILD + # Check for programs AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION([0.19])