OSDN Git Service

Import w32api-3.17 source code on "legacy" branch.
[mingw/mingw-org-wsl.git] / w32api / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl This file is part of a free win32 library
4 dnl
5 dnl This program is distributed in the hope that it will be useful,
6 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
7 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8 dnl GNU General Public License for more details.
9
10 AC_PREREQ(2.59)
11 AC_INIT(lib/scrnsave.c)
12
13 AC_CANONICAL_SYSTEM
14
15 dnl Find install command
16 AC_PROG_INSTALL
17
18 dnl check for cc and CFLAGS
19 CFLAGS=${CFLAGS-"-O2 -g"}
20 AC_CHECK_TOOL(CC, gcc, gcc)
21 AC_SUBST(CC)
22 AC_SUBST(CFLAGS)
23 AC_SUBST(with_cross_host)
24
25 dnl check for various tools
26 AC_CHECK_TOOL(AR, ar, ar)
27 AC_SUBST(AR)
28 AC_CHECK_TOOL(AS, as, as)
29 AC_SUBST(AS)
30 AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
31 AC_SUBST(RANLIB)
32 AC_CHECK_TOOL(LD, ld, ld)
33 AC_SUBST(LD)
34 AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
35 AC_SUBST(DLLTOOL)
36 AC_CHECK_TOOL(WINDRES, windres, windres)
37 AC_SUBST(WINDRES)
38
39 AC_MSG_CHECKING([for build environment])
40 case "$build_alias" in
41 *-mingw*) BUILDENV=mingw;;
42 *-cygwin*) BUILDENV=cygwin;;
43 esac
44 if test -z "$BUILDENV"; then
45         AC_MSG_RESULT(standard)
46 else
47         AC_MSG_RESULT($BUILDENV)
48 fi
49 AC_SUBST(BUILDENV)
50
51 AC_OUTPUT(Makefile lib/Makefile lib/ddk/Makefile lib/directx/Makefile)