1 dnl Autoconf configure script for Cygwin.
2 dnl Copyright 2003 Red Hat, Inc.
4 dnl This file is part of Cygwin.
6 dnl This software is a copyrighted work licensed under the terms of the
7 dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for
10 dnl Process this file with autoconf to produce a configure script.
15 AC_CONFIG_AUX_DIR(../..)
17 INSTALL=`cd $srcdir/../..; echo $(pwd)/install-sh -c`
25 case "$with_cross_host" in
28 install_host="install_host"
37 AC_SUBST(install_host)
39 AC_CHECK_TOOL(AR, ar, ar)
40 AC_CHECK_TOOL(AS, as, as)
41 AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
42 AC_CHECK_TOOL(LD, ld, ld)
43 AC_CHECK_TOOL(NM, nm, nm)
44 AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
45 AC_CHECK_TOOL(WINDRES, windres, windres)
50 dnl check whether gcc supports __builtin_memset.
51 # Test for builtin mem* functions.
56 void foo(char *s, int c, size_t n)
58 __builtin_memset(s, c, n);
61 use_builtin_memset=yes, use_builtin_memset=no)
62 if test $use_builtin_memset = "yes"; then
63 AC_DEFINE(HAVE_BUILTIN_MEMSET)
67 AC_ARG_ENABLE(debugging,
68 [ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging],
69 [case "${enableval}" in
70 yes) AC_DEFINE(DEBUGGING) ;;