]> cygwin.com Git - cygwin-apps/setup.git/blame - configure.in
2002-05-11 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / configure.in
CommitLineData
37ee316b
CF
1dnl Copyright (c) 2000, Red Hat, Inc.
2dnl
3dnl This program is free software; you can redistribute it and/or modify
4dnl it under the terms of the GNU General Public License as published by
5dnl the Free Software Foundation; either version 2 of the License, or
6dnl (at your option) any later version.
7dnl
8dnl A copy of the GNU General Public License can be found at
9dnl http://www.gnu.org/
739457f4 10dnl
6dfbe297 11dnl Written by Christopher Faylor <cgf@redhat.com>
f6100b6f
RC
12dnl and Robert Collins <rbtcollins@hotmail.com>
13dnl
14dnl $Id$
15dnl
37ee316b
CF
16dnl Autoconf configure script for Cygwin utilities.
17dnl
739457f4
CF
18dnl Process this file with autoconf to produce a configure script.
19
db04fc41
RC
20AC_INIT
21AC_PREREQ(2.53)
22AC_CONFIG_AUX_DIR(cfgaux)
f6100b6f
RC
23AM_INIT_AUTOMAKE(setup, 0)
24dnl AM_CONFIG_HEADER(include/autoconf.h)
25AM_MAINTAINER_MODE
db04fc41
RC
26AC_CONFIG_SRCDIR([Makefile.in])
27AC_REVISION($Revision$)dnl
28
19911586
RC
29AC_MSG_CHECKING([Whether to build inilint])
30AC_ARG_ENABLE(inilint,
31 AC_HELP_STRING([--enable-inilint],
32 [Build the inilint tool]),
33 ac_cv_enable_inilint=$enableval, ac_cv_enable_inilint=no)
34AC_MSG_RESULT([$ac_cv_enable_inilint])
35if test $ac_cv_enable_inilint = yes; then
36 INILINT="inilint"
37else
38 INILINT=
39fi
40AC_SUBST(INILINT)
41
f6100b6f 42AC_LANG_CPLUSPLUS
db04fc41 43AC_PROG_CXX
f6100b6f
RC
44AM_PROG_CC_C_O
45AM_PROG_LEX
46AC_PROG_YACC
db04fc41
RC
47AC_CANONICAL_BUILD
48AC_CANONICAL_HOST
6908b7d7 49AC_PROG_LIBTOOL
739457f4 50
f6100b6f
RC
51dnl AC_CHECK_TOOL(AR, ar, ar)
52dnl AC_SUBST(AR)
53dnl AC_CHECK_TOOL(AS, as, as)
54dnl AC_SUBST(AS)
55dnl AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
56dnl AC_SUBST(RANLIB)
57dnl AC_CHECK_TOOL(LD, ld, ld)
58dnl AC_SUBST(LD)
59dnl AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
60dnl AC_SUBST(DLLTOOL)
739457f4
CF
61AC_CHECK_TOOL(WINDRES, windres, windres)
62AC_SUBST(WINDRES)
f6100b6f
RC
63dnl AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
64dnl AC_SUBST(OBJCOPY)
739457f4 65
45e01f23
RC
66AC_CHECK_LIB(mingw32,main)
67
19911586
RC
68AC_CHECK_HEADERS(alloca.h \
69 errno.h \
70 string \
71 string.h )
45e01f23 72
db04fc41
RC
73AC_CONFIG_SUBDIRS(zlib)
74AC_CONFIG_SUBDIRS(bz2lib)
6908b7d7 75AC_CONFIG_SUBDIRS(libgetopt++)
739457f4 76
2b48ecd0
RC
77dnl add portability sources to inilint
78case "$host_os" in
79mingw32)
80 AM_CONDITIONAL(MINGWTARGET, true)
81 ;;
82*)
83 AM_CONDITIONAL(MINGWTARGET, false)
84 ;;
85esac
86
db04fc41
RC
87AC_CONFIG_FILES([Makefile])
88AC_OUTPUT
This page took 0.04079 seconds and 5 git commands to generate.