]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygwin/configure.ac
Cygwin: Drop AC_SUBST(LIBSERVER)
[newlib-cygwin.git] / winsup / cygwin / configure.ac
1 dnl Autoconf configure script for Cygwin.
2 dnl
3 dnl This file is part of Cygwin.
4 dnl
5 dnl This software is a copyrighted work licensed under the terms of the
6 dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 dnl details.
8 dnl
9 dnl Process this file with autoconf to produce a configure script.
10
11 AC_PREREQ([2.59])
12 AC_INIT([Cygwin DLL],[0],[cygwin@cygwin.com],[cygwin],[https://cygwin.com])
13 AC_CONFIG_SRCDIR(Makefile.in)
14 AC_CONFIG_HEADER(config.h)
15 AC_CONFIG_AUX_DIR(..)
16
17 . ${srcdir}/../configure.cygwin
18
19 AC_PROG_INSTALL
20 AC_NO_EXECUTABLES
21 AC_CANONICAL_TARGET
22
23 AC_PROG_CC
24 AC_PROG_CXX
25 AC_PROG_CPP
26 AC_LANG(C)
27
28 AC_WINDOWS_HEADERS
29 if test "x$with_cross_bootstrap" != "xyes"; then
30 AC_WINDOWS_LIBS
31 fi
32
33 AC_LANG(C++)
34
35 AC_CYGWIN_INCLUDES
36
37 case "$with_cross_host" in
38 ""|*cygwin*)
39 all_host="all_host"
40 install_host="install_host"
41 ;;
42 *)
43 all_host=
44 install_host=
45 ;;
46 esac
47
48 AC_SUBST(all_host)
49 AC_SUBST(install_host)
50
51 AC_CHECK_TOOL(AR, ar, ar)
52 AC_CHECK_TOOL(AS, as, as)
53 AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
54 AC_CHECK_TOOL(LD, ld, ld)
55 AC_CHECK_TOOL(NM, nm, nm)
56 AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
57 AC_CHECK_TOOL(OBJDUMP, objdump, objdump)
58 AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
59 AC_CHECK_TOOL(STRIP, strip, strip)
60 AC_CHECK_TOOL(WINDRES, windres, windres)
61
62 AC_ARG_ENABLE(debugging,
63 [ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging],
64 [case "${enableval}" in
65 yes) AC_DEFINE([DEBUGGING],[1],[Define if DEBUGGING support is requested.]) ;;
66 no) ;;
67 esac
68 ])
69
70 case "$target_cpu" in
71 i?86)
72 DLL_NAME="cygwin1.dll"
73 DLL_ENTRY="_dll_entry@12"
74 DEF_DLL_ENTRY="dll_entry@12"
75 DIN_FILE="i686.din"
76 TLSOFFSETS_H="tlsoffsets.h"
77 ;;
78 x86_64)
79 DLL_NAME="cygwin1.dll"
80 DLL_ENTRY="dll_entry"
81 DEF_DLL_ENTRY="dll_entry"
82 DIN_FILE="x86_64.din"
83 TLSOFFSETS_H="tlsoffsets64.h"
84 ;;
85 *) AC_MSG_ERROR([Invalid target processor "$target_cpu"]) ;;
86 esac
87
88 AC_CONFIGURE_ARGS
89 AC_SUBST(DLL_NAME)
90 AC_SUBST(DLL_ENTRY)
91 AC_SUBST(DEF_DLL_ENTRY)
92 AC_SUBST(DIN_FILE)
93 AC_SUBST(TLSOFFSETS_H)
94 AC_CONFIG_FILES([Makefile])
95 AC_OUTPUT
This page took 0.039838 seconds and 5 git commands to generate.