]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygserver/configure.in
* smallprint.c: New file.
[newlib-cygwin.git] / winsup / cygserver / configure.in
CommitLineData
c57452c8
CF
1dnl Autoconf configure script for Cygwin.
2dnl Copyright 2003 Red Hat, Inc.
3dnl
4dnl This file is part of Cygwin.
5dnl
6dnl This software is a copyrighted work licensed under the terms of the
7dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for
8dnl details.
9dnl
10dnl Process this file with autoconf to produce a configure script.
11
99fc5e10 12AC_PREREQ(2.59)dnl
c57452c8
CF
13AC_INIT(cygserver.cc)
14
99fc5e10
CF
15AC_CONFIG_AUX_DIR(../..)
16
ddb67621 17INSTALL=`cd $srcdir/../..; echo $(pwd)/install-sh -c`
7f4773b3 18
c57452c8 19AC_PROG_INSTALL
c57452c8
CF
20AC_CANONICAL_SYSTEM
21
22LIB_AC_PROG_CC
23LIB_AC_PROG_CXX
24
25case "$with_cross_host" in
26 ""|*cygwin*)
27 all_host="all_host"
28 install_host="install_host"
29 ;;
30 *)
31 all_host=
32 install_host=
33 ;;
34esac
35
36AC_SUBST(all_host)
37AC_SUBST(install_host)
38
39AC_CHECK_TOOL(AR, ar, ar)
40AC_CHECK_TOOL(AS, as, as)
41AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
42AC_CHECK_TOOL(LD, ld, ld)
43AC_CHECK_TOOL(NM, nm, nm)
44AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
45AC_CHECK_TOOL(WINDRES, windres, windres)
46
47AC_ALLOCA
48AC_PROG_MAKE_SET
49
50dnl check whether gcc supports __builtin_memset.
51# Test for builtin mem* functions.
52AC_LANG_SAVE
53AC_LANG_CPLUSPLUS
54AC_TRY_COMPILE([
55#include <string.h>
56void foo(char *s, int c, size_t n)
57{
58 __builtin_memset(s, c, n);
59}
60], [ ],
61use_builtin_memset=yes, use_builtin_memset=no)
62if test $use_builtin_memset = "yes"; then
63 AC_DEFINE(HAVE_BUILTIN_MEMSET)
64fi
65AC_LANG_RESTORE
66
67AC_ARG_ENABLE(debugging,
68[ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging],
69[case "${enableval}" in
70yes) AC_DEFINE(DEBUGGING) ;;
71no) ;;
72esac
73])
74
75AC_OUTPUT(Makefile)
This page took 0.095486 seconds and 5 git commands to generate.