1 # configure.ac -*- autoconf -*- vim: filetype=config
5 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
6 # Copyright (C) 2009, 2010, MinGW Project
9 # Configuration script for mingw-get
12 # This is free software. Permission is granted to copy, modify and
13 # redistribute this software, under the provisions of the GNU General
14 # Public License, Version 3, (or, at your option, any later version),
15 # as published by the Free Software Foundation; see the file COPYING
16 # for licensing details.
18 # Note, in particular, that this software is provided "as is", in the
19 # hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not
20 # even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
21 # PARTICULAR PURPOSE. Under no circumstances will the author, or the
22 # MinGW Project, accept liability for any damages, however caused,
23 # arising from the use of this software.
25 AC_INIT([mingw-get],[0.1-alpha-3],[http://mingw.org/reporting_bugs])
27 AC_SUBST([COPYRIGHT_HOLDER],["MinGW Project"])
28 AC_SUBST([YEARS_OF_ISSUE],["2009, 2010"])
30 # Override the normal UNIX-centric autoconf default prefix;
31 # substitute the MinGW standard in its place.
33 AC_PREFIX_DEFAULT([C:/MinGW])
35 # We need the canonical representation of the intended host platform
36 # identification triplet, from which to deduce the subsystem designator
37 # in distributed tarball names. (Note that we explicitly override any
38 # user specified "build_alias", because autoconf gets upset if "host"
39 # is specified without "build", and we need "host" if cross-compiling;
40 # all we need in this case is "host" != "build", and we don't really
41 # care what "build" is, but AC_CANONICAL_HOST gets very upset, when it
42 # calls ${srcdir}/build-aux/config.sub, if the user specifies a short
43 # form which it cannot resolve -- e.g. "--build=linux" will fail).
45 AC_CONFIG_AUX_DIR([build-aux])
46 build_alias=`${srcdir}/build-aux/config.guess`
49 # We need both C and C++ compilers; check how to invoke them
54 # We also need a lexical analyser generator
58 # Ensure that (at least the headers for) prerequisite libraries,
59 # zlib, libbz2 and liblzma are available
61 AC_CHECK_HEADER([zlib.h],,MINGW_AC_ASSERT_MISSING([zlib-dev],
62 [libz-1.2.3-1-mingw32-dev.tar.gz]))
63 AC_CHECK_HEADER([bzlib.h],,MINGW_AC_ASSERT_MISSING([libbz2-dev],
64 [bzip2-1.0.5-2-mingw32-dev.tar.gz]))
65 AC_CHECK_HEADER([lzma.h],,MINGW_AC_ASSERT_MISSING([liblzma-dev],
66 [liblzma-4.999.9beta_20091209-3-mingw32-dev.tar.bz2]))
68 # Set up the archive librarian, to match our compiler settings
70 AC_CHECK_TOOL([AR],[ar],[ar])
71 AC_SUBST([ARFLAGS],[${ARFLAGS-rcs}])
73 # Identify tools required for product installation
79 # As for the archive librarian, we need to ensure that the tool
80 # for stripping binaries is compatible with the compiler
82 AC_CHECK_TOOL([STRIP],[strip],[strip])
84 # Establish the product version banner, and create a makefile
86 AC_CONFIG_FILES([version.c Makefile])
89 # $RCSfile$: end of file