summaryrefslogtreecommitdiffstats
path: root/src/mxe-conf.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/mxe-conf.mk')
-rw-r--r--src/mxe-conf.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mxe-conf.mk b/src/mxe-conf.mk
index f1af447..3e10a16 100644
--- a/src/mxe-conf.mk
+++ b/src/mxe-conf.mk
@@ -69,6 +69,18 @@ define $(PKG)_BUILD
echo 'Description: OpenGL'; \
echo 'Libs: -lglu32';) \
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/glu.pc'
+
+ # 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
endef
$(PKG)_BUILD_$(BUILD) = $($(PKG)_BUILD_COMMON)