]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/configure.ac
Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET, fix AC_INIT usage
[newlib-cygwin.git] / winsup / cygwin / configure.ac
CommitLineData
4dd1ecc3
CV
1dnl Autoconf configure script for Cygwin.
2dnl Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3dnl 2006, 2008, 2009, 2011, 2012, 2013, 2014 Red Hat, Inc.
4dnl
5dnl This file is part of Cygwin.
6dnl
7dnl This software is a copyrighted work licensed under the terms of the
8dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9dnl details.
10dnl
11dnl Process this file with autoconf to produce a configure script.
12
6436024c
CV
13AC_PREREQ(2.59)
14AC_INIT([Cygwin DLL],[0],[cygwin@cygwin.com],[cygwin],[https://cygwin.com])
4dd1ecc3 15AC_CONFIG_SRCDIR(Makefile.in)
1fd5e000 16AC_CONFIG_HEADER(config.h)
4c36016b
CF
17AC_CONFIG_AUX_DIR(..)
18
19. ${srcdir}/../configure.cygwin
20
1fd5e000 21AC_PROG_INSTALL
6a432cb1 22AC_NO_EXECUTABLES
6436024c 23AC_CANONICAL_TARGET
1fd5e000 24
4c36016b
CF
25AC_PROG_CC
26AC_PROG_CXX
27AC_PROG_CPP
28AC_LANG(C)
2a6d6db8
CF
29
30AC_WINDOWS_HEADERS
31AC_WINDOWS_LIBS
32
4c36016b
CF
33AC_LANG(C++)
34
35AC_CYGWIN_INCLUDES
1fd5e000 36
e94903eb
CF
37case "$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 ;;
46esac
47
48AC_SUBST(all_host)
49AC_SUBST(install_host)
50
1fd5e000 51AC_CHECK_TOOL(AR, ar, ar)
1fd5e000 52AC_CHECK_TOOL(AS, as, as)
cbda22eb 53AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
1fd5e000 54AC_CHECK_TOOL(LD, ld, ld)
48beacf6 55AC_CHECK_TOOL(NM, nm, nm)
cbda22eb
CF
56AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
57AC_CHECK_TOOL(OBJDUMP, objdump, objdump)
58AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
59AC_CHECK_TOOL(STRIP, strip, strip)
1fd5e000 60AC_CHECK_TOOL(WINDRES, windres, windres)
1fd5e000 61
1fd5e000
CF
62AC_PROG_MAKE_SET
63
1fd5e000
CF
64AC_ARG_ENABLE(debugging,
65[ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging],
66[case "${enableval}" in
67yes) AC_DEFINE(DEBUGGING) ;;
68no) ;;
69esac
70])
71
1fd5e000
CF
72dnl The only time we might want to transform the install names
73dnl is for unix x cygwin. Otherwise we don't. For now we don't
74dnl transform names.
75
76dnl if test "x$cross_compiling" = "xno" -a ; then
77dnl if test "x$program_transform_name" = "xs,x,x,"; then
78dnl program_transform_name=""
79dnl fi
80dnl if test "x$program_transform_name" = "x"; then
81dnl program_transform_name="s,^,$target_alias-,"
82dnl else
83dnl program_transform_name="$program_transform_name -e s,^,$target_alias-,"
84dnl fi
85dnl fi
86
1fd5e000 87case "$target_cpu" in
61522196
CV
88 i?86)
89 DLL_NAME="cygwin1.dll"
90 DLL_ENTRY="_dll_entry@12"
1fd5e000 91 DEF_DLL_ENTRY="dll_entry@12"
bfebe413 92 DIN_FILE="i686.din"
61522196 93 TLSOFFSETS_H="tlsoffsets.h"
943072f4 94 ;;
61522196
CV
95 x86_64)
96 DLL_NAME="cygwin1.dll"
97 DLL_ENTRY="dll_entry"
98 DEF_DLL_ENTRY="dll_entry"
bfebe413 99 DIN_FILE="x86_64.din"
61522196 100 TLSOFFSETS_H="tlsoffsets64.h"
943072f4 101 ;;
1fd5e000
CF
102 *) AC_MSG_ERROR(Invalid target processor \"$target_cpu\") ;;
103esac
104
4c36016b 105AC_CONFIGURE_ARGS
4392d36c 106AC_SUBST(LIBSERVER)
61522196 107AC_SUBST(DLL_NAME)
1fd5e000
CF
108AC_SUBST(DLL_ENTRY)
109AC_SUBST(DEF_DLL_ENTRY)
61522196
CV
110AC_SUBST(DIN_FILE)
111AC_SUBST(TLSOFFSETS_H)
9a4d574b 112AC_OUTPUT(Makefile)
This page took 0.391344 seconds and 5 git commands to generate.