OSDN Git Service

Collect distributable package files in user specified directory.
[mingw/mingw-get.git] / aclocal.m4
1 # aclocal.m4 -*- autoconf -*- vim: filetype=config
2 #
3 # $Id$
4 #
5 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
6 # Copyright (C) 2009, 2010, MinGW Project
7 #
8 #
9 # Configuration script for mingw-get
10 #
11 #
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.
17 #
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.
24 #
25 m4_include([build-aux/m4/missing.m4])
26 m4_include([build-aux/m4/makeopts.m4])
27
28 # MINGW_AC_OUTPUT
29 # ---------------
30 # A wrapper for AC_OUTPUT itself, to ensure that missing prerequisite
31 # checks are completed, before the final output stage.
32 #
33 AC_DEFUN([MINGW_AC_OUTPUT],
34 [AC_REQUIRE([_MINGW_AC_ABORT_IF_MISSING_PREREQ])dnl
35  AC_OUTPUT($@)dnl
36 ])# MINGW_AC_OUTPUT
37
38 # MINGW_AC_PROG_LEX
39 # -----------------
40 # A wrapper for AC_PROG_LEX; it causes configure to abort, issuing a
41 # missing lex diagnostic, when building from SCM sources, (as indicated
42 # by absence of ${srcdir}/src/pkginfo/pkginfo.c), when no lex processor
43 # appears to be available.  Furthermore, if AC_PROG_LEX fails to assign
44 # a sane value to LEX_OUTPUT_ROOT, this provides lex.yy as default.
45 #
46 AC_DEFUN([MINGW_AC_PROG_LEX],
47 [AC_REQUIRE([AC_PROG_LEX])dnl
48  AS_IF([test x${LEX_OUTPUT_ROOT} = x],[LEX_OUTPUT_ROOT=lex.yy])
49  AS_IF([test x${LEX} != x:],,[test -f ${srcdir}/src/pkginfo/pkginfo.c],,
50  [MINGW_AC_ASSERT_MISSING([lex (or for preference, flex)],
51   [flex-2.5.35-2-msys-1.0.13-bin.tar.lzma (or equivalent)])dnl
52  ])dnl
53 ])# MINGW_AC_PROG_LEX
54 #
55 # $RCSfile$: end of file