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-2],[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 both C and C++ compilers; check how to invoke them
40 # We also need a lexical analyser generator
44 # Ensure that (at least the headers for) prerequisite libraries,
45 # zlib, libbz2 and liblzma are available
47 AC_CHECK_HEADER([zlib.h],,MINGW_AC_ASSERT_MISSING([zlib],
48 [libz-1.2.3-1-mingw32-dev.tar.gz]))
49 AC_CHECK_HEADER([bzlib.h],,MINGW_AC_ASSERT_MISSING([libbz2],
50 [bzip2-1.0.5-2-mingw32-dev.tar.gz]))
51 AC_CHECK_HEADER([lzma.h],,MINGW_AC_ASSERT_MISSING([liblzma],
52 [liblzma-4.999.9beta_20091209-3-mingw32-dev.tar.bz2]))
54 # Set up the archive librarian, to match our compiler settings
56 AC_CHECK_TOOL([AR],[ar],[ar])
57 AC_SUBST([ARFLAGS],[${ARFLAGS-rcs}])
59 # Identify tools required for product installation
65 # As for the archive librarian, we need to ensure that the tool
66 # for stripping binaries is compatible with the compiler
68 AC_CHECK_TOOL([STRIP],[strip],[strip])
70 # Establish the product version banner, and create a makefile
72 AC_CONFIG_FILES([version.c Makefile])
75 # $RCSfile$: end of file