Feature #1006 ยป 0051-Autotools-Require-enable-ack-legacy-to-configure.patch
configure.ac | ||
---|---|---|
fcdb_postgres=no
|
||
fcdb_sqlite3=no
|
||
AC_ARG_ENABLE([ack-legacy],
|
||
AS_HELP_STRING([--enable-ack-legacy],
|
||
[acknowledge that using autotools to build freeciv is a legacy system]),
|
||
[case "${enableval}" in
|
||
yes) ack_legacy=yes ;;
|
||
no) ack_legacy=no ;;
|
||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-ack-legacy) ;;
|
||
esac], [ack_legacy=no])
|
||
if test "x$ack_legacy" != "xyes" ; then
|
||
AC_MSG_ERROR([Recommended build system for freeciv is meson. See doc/INSTALL.meson.
|
||
To still build with autotools, configure with --enable-ack-legacy option.])
|
||
fi
|
||
dnl checks for databases
|
||
dnl all: Autodetect as many as possible [default].
|
||
dnl mysql: use mysql database
|
doc/README.packaging | ||
---|---|---|
* Minimum version of Qt is Qt-5.15, when building in Qt5-mode
|
||
* Configuring source directory is no longer allowed in autotools builds.
|
||
You have to use separate build dir(s)
|
||
* One needs to use configure option --enable-ack-legacy to build
|
||
with autotools. Use meson based system instead, if possible
|
||
* Minimum autoconf version, for autotools based builds, is now 2.69
|
||
* New 'qt6x' mode for building Qt based components linked against
|
||
relatively new Qt6 versions
|
platforms/windows/installer_msys2/Makefile.autotools | ||
---|---|---|
# Create build directory
|
||
mkdir -p $(BUILD_DIR)/$(WINARCH)-$(GUI)
|
||
# Configure
|
||
cd $(BUILD_DIR)/$(WINARCH)-$(GUI); $(SRC_ROOT)/../../../configure FREECIV_LABEL_FORCE="<base>-msys2" CPPFLAGS="-D_WIN32_WINNT=$(MIN_WIN_VER)" --enable-client=$(CLIENT) --with-followtag="windows-S3_3" --with-tinycthread --without-readline --disable-sys-lua --enable-fcdb=sqlite3 --with-sqlite3-prefix=/$(ARCHDIR) --enable-fcmp=$(FCMP) --with-cacert-path="./ssl/certs/ca-bundle.crt" $(EXTRA_CONFIG)
|
||
cd $(BUILD_DIR)/$(WINARCH)-$(GUI); $(SRC_ROOT)/../../../configure FREECIV_LABEL_FORCE="<base>-msys2" CPPFLAGS="-D_WIN32_WINNT=$(MIN_WIN_VER)" --enable-client=$(CLIENT) --with-followtag="windows-S3_3" --with-tinycthread --without-readline --disable-sys-lua --enable-fcdb=sqlite3 --with-sqlite3-prefix=/$(ARCHDIR) --enable-fcmp=$(FCMP) --with-cacert-path="./ssl/certs/ca-bundle.crt" --enable-ack-legacy $(EXTRA_CONFIG)
|
||
configure-freeciv-ruledit-qt5:
|
||
# Create build directory
|
||
mkdir -p $(BUILD_DIR)/$(WINARCH)-ruledit-qt5
|
||
# Configure
|
||
cd $(BUILD_DIR)/$(WINARCH)-ruledit-qt5; $(SRC_ROOT)/../../../configure FREECIV_LABEL_FORCE="<base>-msys2" CPPFLAGS="-D_WIN32_WINNT=$(MIN_WIN_VER)" --with-qtver=qt5 --disable-client --disable-server --disable-fcmp --disable-freeciv-manual --disable-sys-lua --enable-ruledit --enable-ai-static=stub --with-cacert-path="./ssl/certs/ca-bundle.crt" --with-qt5-includes=/$(ARCHDIR)/include --with-qt5-libs=/$(ARCHDIR)/lib $(EXTRA_CONFIG)
|
||
cd $(BUILD_DIR)/$(WINARCH)-ruledit-qt5; $(SRC_ROOT)/../../../configure FREECIV_LABEL_FORCE="<base>-msys2" CPPFLAGS="-D_WIN32_WINNT=$(MIN_WIN_VER)" --with-qtver=qt5 --disable-client --disable-server --disable-fcmp --disable-freeciv-manual --disable-sys-lua --enable-ruledit --enable-ai-static=stub --with-cacert-path="./ssl/certs/ca-bundle.crt" --with-qt5-includes=/$(ARCHDIR)/include --with-qt5-libs=/$(ARCHDIR)/lib --enable-ack-legacy $(EXTRA_CONFIG)
|
||
configure-freeciv-ruledit-qt6:
|
||
# Create build directory
|
||
mkdir -p $(BUILD_DIR)/$(WINARCH)-ruledit-qt6
|
||
# Configure
|
||
cd $(BUILD_DIR)/$(WINARCH)-ruledit-qt6; $(SRC_ROOT)/../../../configure FREECIV_LABEL_FORCE="<base>-msys2" CPPFLAGS="-D_WIN32_WINNT=$(MIN_WIN_VER)" --with-qtver=qt6 --disable-client --disable-server --disable-fcmp --disable-freeciv-manual --disable-sys-lua --enable-ruledit --enable-ai-static=stub --with-cacert-path="./ssl/certs/ca-bundle.crt" --with-qt6-includes=/$(ARCHDIR)/include/qt6 --with-qt6-libs=/$(ARCHDIR)/lib $(EXTRA_CONFIG)
|
||
cd $(BUILD_DIR)/$(WINARCH)-ruledit-qt6; $(SRC_ROOT)/../../../configure FREECIV_LABEL_FORCE="<base>-msys2" CPPFLAGS="-D_WIN32_WINNT=$(MIN_WIN_VER)" --with-qtver=qt6 --disable-client --disable-server --disable-fcmp --disable-freeciv-manual --disable-sys-lua --enable-ruledit --enable-ai-static=stub --with-cacert-path="./ssl/certs/ca-bundle.crt" --with-qt6-includes=/$(ARCHDIR)/include/qt6 --with-qt6-libs=/$(ARCHDIR)/lib --enable-ack-legacy $(EXTRA_CONFIG)
|
||
# Install Freeciv
|
||