#
# $Id$
#
-# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
-# Copyright (C) 2009, 2010, 2011, MinGW Project
+# Written by Keith Marshall <keith@users.osdn.me>
+# Copyright (C) 2009-2013, 2020, MinGW.org Project
#
#
# Configuration script for mingw-get
# hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not
# even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
# PARTICULAR PURPOSE. Under no circumstances will the author, or the
-# MinGW Project, accept liability for any damages, however caused,
+# MinGW.org Project, accept liability for any damages, however caused,
# arising from the use of this software.
#
- AC_INIT([mingw-get],[0.3-alpha-2],[http://mingw.org/Reporting_Bugs])
+ m4_include([VERSION.m4])
+ AC_INIT([mingw-get],__VERSION__,[http://mingw.org/Reporting_Bugs])
- AC_SUBST([COPYRIGHT_HOLDER],["MinGW Project"])
- AC_SUBST([YEARS_OF_ISSUE],["2009, 2010, 2011"])
+ AC_SUBST([COPYRIGHT_HOLDER],["MinGW.org Project"])
+ AC_SUBST([YEARS_OF_ISSUE],["2009-2013, 2017, 2020"])
+
+# Specify the default internet domain and relative directory path,
+# whence packages are to be offered for download; user may remap these
+# at configure time, by specifying alternatives for either, or both of
+# the precious variables, PACKAGE_DIST_DOMAIN and PACKAGE_DIST_DIR.
+#
+ MINGW_AC_PACKAGE_DIST_URL([https://osdn.net],[dl/mingw])
+
+# Identify the formal release classes for each of the CLI and the GUI
+# application sub-packages; these may be overriden at configure time,
+# by specifying a common SNAPSHOT_CLASS definition, (e.g. by running
+#
+# SNAPSHOT_CLASS=pre ./config.status --recheck && ./config.status
+#
+# to update the configuration for the "preview" class), when we wish
+# to build snapshots for distribution between formal releases.
+#
+ AC_SUBST([CLI_RELEASE_CLASS],[${SNAPSHOT_CLASS-${RELEASE_CLASS-"beta"}}])
+ AC_SUBST([GUI_RELEASE_CLASS],[${SNAPSHOT_CLASS-${RELEASE_CLASS-"alpha"}}])
# Override the normal UNIX-centric autoconf default prefix;
# substitute the MinGW standard in its place.
# calls ${srcdir}/build-aux/config.sub, if the user specifies a short
# form which it cannot resolve -- e.g. "--build=linux" will fail).
#
- AC_CONFIG_AUX_DIR([build-aux])
- build_alias=`${srcdir}/build-aux/config.guess`
+ MINGW_AC_CONFIG_AUX_DIR([build-aux])
+ build_alias=`${ac_aux_dir}/config.guess`
AC_CANONICAL_HOST
+# Establish the appropriate mechanism for invoking 'make' recursively,
+# WITHOUT incurring the noise of its "Entering directory..." messages.
+#
+ MINGW_AC_MAKE_NO_PRINT_DIRECTORY
+
# We need both C and C++ compilers; check how to invoke them
#
AC_PROG_CC
AC_PROG_CXX
-# We also need a lexical analyser generator
+# We also need a Windows resource compiler,
+# and a lexical analyser generator
#
- AC_PROG_LEX
+ AC_CHECK_TOOL([RC],[windres],[windres])
+ MINGW_AC_PROG_LEX
# Ensure that (at least the headers for) prerequisite libraries,
-# zlib, libbz2 and liblzma are available
+# zlib, libbz2, liblzma, liblua, and libwtklite are available
#
AC_CHECK_HEADER([zlib.h],,MINGW_AC_ASSERT_MISSING([zlib-dev],
[libz-1.2.3-1-mingw32-dev.tar.gz]))
[bzip2-1.0.5-2-mingw32-dev.tar.gz]))
AC_CHECK_HEADER([lzma.h],,MINGW_AC_ASSERT_MISSING([liblzma-dev],
[liblzma-4.999.9beta_20091209-3-mingw32-dev.tar.bz2]))
+ AC_CHECK_HEADER([lua.h],,MINGW_AC_ASSERT_MISSING([lua-dev],
+ [lua-5.2.0-1-mingw32-dev.tar.xz]))
+ AC_CHECK_HEADER([wtklite.h],,MINGW_AC_ASSERT_MISSING([wtklite-dev],
+ [wtklite-0.1.0-1-mingw32-dev.tar.xz]))
# Set up the archive librarian, to match our compiler settings
#
AC_PROG_INSTALL
AC_PROG_LN_S
-# As for the archive librarian, we need to ensure that the tool
-# for stripping binaries is compatible with the compiler
-#
- AC_CHECK_TOOL([STRIP],[strip],[strip])
-
# Identify features to be traced to facilitate debugging; make
# it precious, to avoid introducing accidental inconsistencies.
#
# Establish the product version banner, and create a makefile
#
- AC_CONFIG_FILES([version.c Makefile])
+ AC_CONFIG_FILES([Makefile])
MINGW_AC_OUTPUT
#
# $RCSfile$: end of file