1 dnl Autoconf configure script for Cygwin.
3 dnl This file is part of Cygwin.
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
9 dnl Process this file with autoconf to produce a configure script.
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)
17 . ${srcdir}/../configure.cygwin
29 if test "x$with_cross_bootstrap" != "xyes"; then
37 case "$with_cross_host" in
40 install_host="install_host"
49 AC_SUBST(install_host)
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)
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.]) ;;
72 DLL_NAME="cygwin1.dll"
73 DLL_ENTRY="_dll_entry@12"
74 DEF_DLL_ENTRY="dll_entry@12"
76 TLSOFFSETS_H="tlsoffsets.h"
79 DLL_NAME="cygwin1.dll"
81 DEF_DLL_ENTRY="dll_entry"
83 TLSOFFSETS_H="tlsoffsets64.h"
85 *) AC_MSG_ERROR([Invalid target processor "$target_cpu"]) ;;
91 AC_SUBST(DEF_DLL_ENTRY)
93 AC_SUBST(TLSOFFSETS_H)
94 AC_CONFIG_FILES([Makefile])