diff options
author | Tony Theodore <tonyt@logyst.com> | 2018-03-30 05:43:43 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2018-03-30 05:43:43 (GMT) |
commit | e9b65d556af7d737433ba3732d2a734c27de63ac (patch) | |
tree | 2ca3bb4c7f779327aaef11419dada8e877e7f553 /src/autotools.mk | |
parent | be40af4586940202ad07cb9402e0157f38407e54 (diff) | |
download | mxe-e9b65d556af7d737433ba3732d2a734c27de63ac.zip mxe-e9b65d556af7d737433ba3732d2a734c27de63ac.tar.gz mxe-e9b65d556af7d737433ba3732d2a734c27de63ac.tar.bz2 |
move autoreconf check from mxe-conf to autotools
see: http://lists.nongnu.org/archive/html/mingw-cross-env-list/2018-03/msg00006.html
Diffstat (limited to 'src/autotools.mk')
-rw-r--r-- | src/autotools.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/autotools.mk b/src/autotools.mk index 475f912..0b111d1 100644 --- a/src/autotools.mk +++ b/src/autotools.mk @@ -7,3 +7,17 @@ $(PKG)_VERSION := 1 $(PKG)_DEPS := libtool pkgconf $(PKG)_TARGETS := $(BUILD) $(PKG)_TYPE := meta + +define $(PKG)_BUILD_$(BUILD) + # fail early if autotools can't autoreconf + # 1. detect mismatches in installation locations + # 2. ??? + (echo 'AC_INIT([mxe.cc], [1])'; \ + $(foreach PROG, autoconf automake libtool, \ + echo 'AC_PATH_PROG([$(call uc,$(PROG))], [$(PROG)])';) \ + echo 'PKG_PROG_PKG_CONFIG(0.16)'; \ + echo 'AC_OUTPUT') \ + > '$(BUILD_DIR)/configure.ac' + cd '$(BUILD_DIR)' && autoreconf -fiv + cd '$(BUILD_DIR)' && ./configure +endef |