1 dnl Process this file with autoconf to produce a configure script.
3 dnl This file is part of a free win32 library
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.
11 AC_INIT(lib/scrnsave.c)
15 dnl Find install command
18 dnl check for cc and CFLAGS
19 CFLAGS=${CFLAGS-"-O2 -g"}
20 AC_CHECK_TOOL(CC, gcc, gcc)
23 AC_SUBST(with_cross_host)
25 dnl check for various tools
26 AC_CHECK_TOOL(AR, ar, ar)
28 AC_CHECK_TOOL(AS, as, as)
30 AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
32 AC_CHECK_TOOL(LD, ld, ld)
34 AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
36 AC_CHECK_TOOL(WINDRES, windres, windres)
39 AC_MSG_CHECKING([for build environment])
40 case "$build_alias" in
41 *-mingw*) BUILDENV=mingw;;
42 *-cygwin*) BUILDENV=cygwin;;
44 if test -z "$BUILDENV"; then
45 AC_MSG_RESULT(standard)
47 AC_MSG_RESULT($BUILDENV)
51 AC_OUTPUT(Makefile lib/Makefile lib/ddk/Makefile lib/directx/Makefile)