move autoreconf check from mxe-conf to autotools

see: http://lists.nongnu.org/archive/html/mingw-cross-env-list/2018-03/msg00006.html
This commit is contained in:
Tony Theodore 2018-03-30 16:43:43 +11:00
parent be40af4586
commit e9b65d556a
2 changed files with 14 additions and 12 deletions

View File

@ -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

View File

@ -22,18 +22,6 @@ define $(PKG)_BUILD_$(BUILD)
mkdir -p '$(PREFIX)/bin'
$(INSTALL) -m755 '$(EXT_DIR)/config.guess' '$(PREFIX)/bin/'
# 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') \
> '$(1)/configure.ac'
cd '$(1)' && autoreconf -fiv
cd '$(1)' && ./configure
#create script "wine" in a directory which is in PATH
mkdir -p '$(PREFIX)/$(BUILD)/bin/'
(echo '#!/usr/bin/env bash'; \