msvcp140: Import __ExceptionPtrCopy implementation.
[wine.git] / configure.ac
blob41a29cee3983f1a0089d232e29e329a5de23c685
1 dnl Process this file with autoconf to produce a configure script.
2 dnl Original author: Michael Patra
3 dnl For detailed change history, see the git commit logs.
5 m4_define(WINE_VERSION,regexp(m4_include(VERSION),[version \([-.0-9A-Za-z]+\)],[\1]))
7 dnl autoconf versions before 2.63b don't have AS_VAR_APPEND or AS_VAR_IF
8 AC_PREREQ(2.63b)
9 AC_INIT([Wine],[WINE_VERSION],[wine-devel@winehq.org],[wine],[https://www.winehq.org])
10 AC_CONFIG_SRCDIR(server/atom.c)
11 AC_CONFIG_HEADERS(include/config.h)
12 AC_CONFIG_AUX_DIR(tools)
14 libwine_version="1.0"
16 dnl **** Command-line arguments ****
18 AC_ARG_ENABLE(win16, AS_HELP_STRING([--disable-win16],[do not include Win16 support]))
19 AC_ARG_ENABLE(win64, AS_HELP_STRING([--enable-win64],[build a Win64 emulator on AMD64 (won't run Win32 binaries)]))
20 AC_ARG_ENABLE(tests, AS_HELP_STRING([--disable-tests],[do not build the regression tests]))
21 AC_ARG_ENABLE(build-id, AS_HELP_STRING([--enable-build-id],[include .buildid section in output objects]))
22 AC_ARG_ENABLE(maintainer-mode, AS_HELP_STRING([--enable-maintainer-mode],[enable maintainer-specific build rules]))
23 AC_ARG_ENABLE(silent-rules, AS_HELP_STRING([--enable-silent-rules],[use silent build rules (override: "make V=1")]))
24 AC_ARG_ENABLE(werror, AS_HELP_STRING([--enable-werror],[treat compilation warnings as errors]))
26 AC_ARG_WITH(alsa,      AS_HELP_STRING([--without-alsa],[do not use the Alsa sound support]))
27 AC_ARG_WITH(capi,      AS_HELP_STRING([--without-capi],[do not use CAPI (ISDN support)]))
28 AC_ARG_WITH(coreaudio, AS_HELP_STRING([--without-coreaudio],[do not use the CoreAudio sound support]),
29             [if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi])
30 AC_ARG_WITH(cups,      AS_HELP_STRING([--without-cups],[do not use CUPS]))
31 AC_ARG_WITH(dbus,      AS_HELP_STRING([--without-dbus],[do not use DBus (dynamic device support)]))
32 AC_ARG_WITH(float-abi, AS_HELP_STRING([--with-float-abi=abi],[specify the ABI (soft|softfp|hard) for ARM platforms]))
33 AC_ARG_WITH(fontconfig,AS_HELP_STRING([--without-fontconfig],[do not use fontconfig]))
34 AC_ARG_WITH(freetype,  AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
35 AC_ARG_WITH(gettext,   AS_HELP_STRING([--without-gettext],[do not use gettext]))
36 AC_ARG_WITH(gettextpo, AS_HELP_STRING([--with-gettextpo],[use the GetTextPO library to rebuild po files]),
37             [if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi])
38 AC_ARG_WITH(gphoto,    AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)]))
39 AC_ARG_WITH(gnutls,    AS_HELP_STRING([--without-gnutls],[do not use GnuTLS (schannel support)]))
40 AC_ARG_WITH(gssapi,    AS_HELP_STRING([--without-gssapi],[do not use GSSAPI (Kerberos SSP support)]))
41 AC_ARG_WITH(gstreamer, AS_HELP_STRING([--without-gstreamer],[do not use GStreamer (codecs support)]))
42 AC_ARG_WITH(inotify,   AS_HELP_STRING([--without-inotify],[do not use inotify (filesystem change notifications)]))
43 AC_ARG_WITH(krb5,      AS_HELP_STRING([--without-krb5],[do not use krb5 (Kerberos)]))
44 AC_ARG_WITH(ldap,      AS_HELP_STRING([--without-ldap],[do not use LDAP]),
45             [if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi])
46 AC_ARG_WITH(mingw,     AS_HELP_STRING([--without-mingw],[do not use the MinGW cross-compiler]))
47 AC_ARG_WITH(netapi,    AS_HELP_STRING([--without-netapi],[do not use the Samba NetAPI library]))
48 AC_ARG_WITH(openal,    AS_HELP_STRING([--without-openal],[do not use OpenAL]),
49             [if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi])
50 AC_ARG_WITH(opencl,    AS_HELP_STRING([--without-opencl],[do not use OpenCL]),
51             [if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi])
52 AC_ARG_WITH(opengl,    AS_HELP_STRING([--without-opengl],[do not use OpenGL]))
53 AC_ARG_WITH(osmesa,     AS_HELP_STRING([--without-osmesa],[do not use the OSMesa library]))
54 AC_ARG_WITH(oss,       AS_HELP_STRING([--without-oss],[do not use the OSS sound support]))
55 AC_ARG_WITH(pcap,      AS_HELP_STRING([--without-pcap],[do not use the Packet Capture library]),
56             [if test "x$withval" = "xno"; then ac_cv_header_pcap_pcap_h=no; fi])
57 AC_ARG_WITH(pthread,   AS_HELP_STRING([--without-pthread],[do not use the pthread library]),
58             [if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi])
59 AC_ARG_WITH(pulse,     AS_HELP_STRING([--without-pulse],[do not use PulseAudio sound support]))
60 AC_ARG_WITH(sane,      AS_HELP_STRING([--without-sane],[do not use SANE (scanner support)]))
61 AC_ARG_WITH(sdl,       AS_HELP_STRING([--without-sdl],[do not use SDL]))
62 AC_ARG_WITH(udev,      AS_HELP_STRING([--without-udev],[do not use udev (plug and play support)]))
63 AC_ARG_WITH(unwind,    AS_HELP_STRING([--without-unwind],[do not use the libunwind library (exception handling)]))
64 AC_ARG_WITH(usb,       AS_HELP_STRING([--without-usb],[do not use the libusb library]))
65 AC_ARG_WITH(v4l2,      AS_HELP_STRING([--without-v4l2],[do not use v4l2 (video capture)]))
66 AC_ARG_WITH(vulkan,    AS_HELP_STRING([--without-vulkan],[do not use Vulkan]))
67 AC_ARG_WITH(xcomposite,AS_HELP_STRING([--without-xcomposite],[do not use the Xcomposite extension]),
68             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi])
69 AC_ARG_WITH(xcursor,   AS_HELP_STRING([--without-xcursor],[do not use the Xcursor extension]),
70             [if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi])
71 AC_ARG_WITH(xfixes,  AS_HELP_STRING([--without-xfixes],[do not use Xfixes for clipboard change notifications]),
72             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xfixes_h=no; fi])
73 AC_ARG_WITH(xinerama,  AS_HELP_STRING([--without-xinerama],[do not use Xinerama (legacy multi-monitor support)]),
74             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi])
75 AC_ARG_WITH(xinput,    AS_HELP_STRING([--without-xinput],[do not use the Xinput extension]),
76             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi])
77 AC_ARG_WITH(xinput2,   AS_HELP_STRING([--without-xinput2],[do not use the Xinput 2 extension]),
78             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi])
79 AC_ARG_WITH(xrandr,    AS_HELP_STRING([--without-xrandr],[do not use Xrandr (multi-monitor support)]),
80             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi])
81 AC_ARG_WITH(xrender,   AS_HELP_STRING([--without-xrender],[do not use the Xrender extension]),
82             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi])
83 AC_ARG_WITH(xshape,    AS_HELP_STRING([--without-xshape],[do not use the Xshape extension]),
84             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi])
85 AC_ARG_WITH(xshm,      AS_HELP_STRING([--without-xshm],[do not use XShm (shared memory extension)]),
86             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi])
87 AC_ARG_WITH(xxf86vm,   AS_HELP_STRING([--without-xxf86vm],[do not use XFree video mode extension]),
88             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi])
90 AC_ARG_WITH(system-dllpath,AS_HELP_STRING([--with-system-dllpath=PATH],[load external PE dependencies from colon-separated path PATH]),
91             AC_SUBST(system_dllpath,[$withval]))
92 AC_ARG_WITH(wine-tools,AS_HELP_STRING([--with-wine-tools=DIR],[use Wine tools from directory DIR]))
93 AC_ARG_WITH(wine64,    AS_HELP_STRING([--with-wine64=DIR],[use the 64-bit Wine in DIR for a Wow64 build]))
95 AC_CANONICAL_HOST
97 AC_SUBST(dlldir,[\${libdir}/wine])
98 AC_SUBST(fontdir,[\${datadir}/wine/fonts])
99 AC_SUBST(nlsdir,[\${datadir}/wine/nls])
100 AC_SUBST(srcdir)
102 dnl **** Check for some programs ****
104 AC_PROG_MAKE_SET
105 AC_PROG_CC
106 AC_PROG_CXX
107 dnl We can't use AC_PROG_CPP for winegcc, it uses by default $(CC) -E
108 AC_CHECK_TOOL(CPPBIN,cpp,cpp)
109 AC_DEFINE_UNQUOTED(EXEEXT,["$ac_exeext"],[Define to the file extension for executables.])
110 AC_CHECK_TOOL(LD,ld)
112 case $host in
113   *-darwin*)
114     with_fontconfig=${with_fontconfig:-no}
115     ;;
116   *-mingw32*|*-cygwin*)
117     enable_win16=${enable_win16:-no}
118     with_mingw=${with_mingw:-no}
119     ;;
120 esac
122 AC_SUBST(TARGETFLAGS)
123 case $host in
124   x86_64*|amd64*)
125     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
126     then
127       CC="$CC -m32"
128       CXX="$CXX -m32"
129       AC_CACHE_CHECK([whether $CC works], wine_cv_cc_m32,
130           [AC_LINK_IFELSE([AC_LANG_PROGRAM()],[wine_cv_cc_m32=yes],[wine_cv_cc_m32=no])])
131       test $wine_cv_cc_m32 != no || AC_MSG_ERROR([Cannot build a 32-bit program, you need to install 32-bit development libraries.])
132       host_cpu="i386"
133       notice_platform="32-bit "
134       TARGETFLAGS="$TARGETFLAGS -m32"
135       PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig}
136       export PKG_CONFIG_PATH
137       enable_win16=${enable_win16:-yes}
138       with_unwind=${with_unwind:-no}
139     else
140       if test "x${GCC}" = "xyes"
141       then
142         AC_CACHE_CHECK([whether $CC supports __builtin_ms_va_list],wine_cv_builtin_ms_va_list,
143             [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>]], [[void func(__builtin_ms_va_list *args);]])],
144                           [wine_cv_builtin_ms_va_list=yes],[wine_cv_builtin_ms_va_list=no])])
145         test $wine_cv_builtin_ms_va_list != no || AC_MSG_ERROR([You need gcc >= 4.4 or clang >= 3.8 to build Wine as 64-bit.])
146       fi
147       CC="$CC -m64"
148       CXX="$CXX -m64"
149       host_cpu="x86_64"
150       notice_platform="64-bit "
151       TARGETFLAGS="$TARGETFLAGS -m64"
152       enable_wow64=${enable_wow64:-yes}
153       enable_wow64win=${enable_wow64win:-yes}
154       enable_wow64cpu=${enable_wow64cpu:-yes}
155     fi
156     ;;
157   arm*)
158     AC_CACHE_CHECK([whether $CC supports Thumb-2],wine_cv_thumb2,
159         [WINE_TRY_ASM_LINK([".syntax unified\n\t.thumb\n\tldm r0,{r0-r8}"],,,
160                            [wine_cv_thumb2=yes],[wine_cv_thumb2=no])])
161     if test x"$wine_cv_thumb2" = xyes
162     then
163         CFLAGS="$CFLAGS -mthumb"
164         TARGETFLAGS="$TARGETFLAGS -mthumb"
165     else
166         CFLAGS="$CFLAGS -marm"
167         TARGETFLAGS="$TARGETFLAGS -marm"
168     fi
169     case $with_float_abi in
170       soft|softfp|hard)
171         float_abi=$with_float_abi ;;
172       *)
173         case $host_os in
174           *eabihf)
175             float_abi=hard ;;
176           *)
177             float_abi=softfp
178             saved_CFLAGS=$CFLAGS
179             CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
180             AC_CACHE_CHECK([whether $CC supports -mfloat-abi=$float_abi],wine_cv_float_abi,
181                 [WINE_TRY_ASM_LINK(["vmrs r2,fpscr"],,,[wine_cv_float_abi=yes],[wine_cv_float_abi=no])])
182             if test $wine_cv_float_abi = no
183             then
184                 float_abi=soft
185                 WINE_WARNING([Floating point is not supported for this target. The resulting build won't be compatible with Windows ARM binaries.])
186             fi
187             CFLAGS=$saved_CFLAGS
188         esac
189         ;;
190     esac
191     CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
192     TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
193     ;;
194   aarch64*)
195     enable_wow64=${enable_wow64:-yes}
196     enable_wow64win=${enable_wow64win:-yes}
197     ;;
198   i[[3456789]]86*)
199     enable_win16=${enable_win16:-yes}
200     with_unwind=${with_unwind:-no}
201     ;;
202 esac
204 dnl enable_win16 defaults to yes on x86, to no on other CPUs
205 enable_win16=${enable_win16:-no}
206 enable_win64=${enable_win64:-no}
207 enable_wow64=${enable_wow64:-no}
208 enable_wow64win=${enable_wow64win:-no}
209 enable_wow64cpu=${enable_wow64cpu:-no}
211 dnl Disable winetest too if tests are disabled
212 enable_winetest=${enable_winetest:-$enable_tests}
214 dnl Some special cases for the 64-bit build
215 if test "x$enable_win64" = "xyes"
216 then
217     test -z "$with_wine64" || AC_MSG_ERROR([--enable-win64 and --with-wine64 are mutually exclusive.
218 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree.])
221 case $build_os in
222   cygwin*|mingw32*) AC_SUBST(toolsext,".exe") ;;
223   *) AC_SUBST(toolsext,"") ;;
224 esac
226 AC_CACHE_CHECK([for the directory containing the Wine tools], wine_cv_toolsdir,
227   [wine_cv_toolsdir="$with_wine_tools"
228    if test -z "$with_wine_tools"; then
229      if test "$cross_compiling" = "yes"; then
230        AC_MSG_ERROR([you must use the --with-wine-tools option when cross-compiling.])
231      elif test -n "$with_wine64"; then
232        wine_cv_toolsdir="$with_wine64"
233      fi
234    fi])
235 if test -z "$wine_cv_toolsdir"; then
236     wine_makedep=tools/makedep$toolsext
237 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
238     wine_makedep=$wine_cv_toolsdir/tools/makedep$toolsext
239     enable_tools=${enable_tools:-no}
240     test -f "$wine_makedep" || AC_MSG_ERROR([the Wine tools have not yet been built in $wine_cv_toolsdir])
241 else
242     AC_MSG_ERROR([could not find Wine tools in $wine_cv_toolsdir])
244 AC_SUBST(toolsdir,[$wine_cv_toolsdir])
245 AC_SUBST(MAKEDEP,[$wine_makedep])
246 AC_SUBST(RUNTESTFLAGS,["-q -P wine"])
247 AC_SUBST(SED_CMD,["LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"])
249 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
250 then
251     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
254 dnl Check for flex
255 AC_CHECK_PROGS(FLEX,flex,none)
256 if test "$FLEX" = "none"
257 then
258   AC_MSG_ERROR([no suitable flex found. Please install the 'flex' package.])
260 AC_CACHE_CHECK([whether flex is recent enough],wine_cv_recent_flex,
261     [cat >conftest.l <<EOF
262 %top{
263 #include "prediluvian.h"
267     if $FLEX -t conftest.l >/dev/null 2>&AS_MESSAGE_LOG_FD
268     then
269       wine_cv_recent_flex=yes
270     else
271       wine_cv_recent_flex=no
272     fi])
273 test $wine_cv_recent_flex != no || AC_MSG_ERROR([Your flex version is too old. Please install flex version 2.5.33 or newer.])
275 dnl Check for bison
276 AC_CHECK_PROGS(BISON,bison,none)
277 if test "$BISON" = "none"
278 then
279   AC_MSG_ERROR([no suitable bison found. Please install the 'bison' package.])
281 AC_CACHE_CHECK([whether bison is recent enough],wine_cv_recent_bison,
282     [cat >conftest.y <<EOF
283 %define parse.error verbose
285 empty: ;
287     if $BISON conftest.y >/dev/null 2>&AS_MESSAGE_LOG_FD
288     then
289       wine_cv_recent_bison=yes
290     else
291       wine_cv_recent_bison=no
292     fi])
293 test $wine_cv_recent_bison != no || AC_MSG_ERROR([Your bison version is too old. Please install bison version 3.0 or newer.])
295 AC_CHECK_TOOLS(AR,[ar gar],ar)
296 AC_CHECK_TOOL(STRIP,strip,strip)
297 AC_PROG_RANLIB
298 AC_PROG_LN_S
299 AC_PROG_EGREP
300 AC_PATH_PROG(LDCONFIG, ldconfig, true, [/sbin /usr/sbin $PATH])
301 AC_CHECK_PROGS(MSGFMT, msgfmt, false)
302 WINE_PATH_PKG_CONFIG
304 if test "x$enable_maintainer_mode" != "xyes"
305 then
306   FONTFORGE=""
307   RSVG=""
308   CONVERT=""
309   ICOTOOL=""
310 else
311   test "$srcdir" = . || AC_MSG_ERROR([Maintainer mode cannot work out of tree.])
312   AC_CHECK_PROGS(FONTFORGE, fontforge, false)
313   AC_CHECK_PROGS(RSVG, rsvg-convert rsvg, false)
314   AC_CHECK_PROGS(CONVERT, convert, false)
315   AC_CHECK_PROGS(ICOTOOL, icotool, false)
316   test "$FONTFORGE" != "false" || AC_MSG_ERROR([You need fontforge to rebuild fonts in maintainer mode.])
317   test "$RSVG" != "false" || AC_MSG_ERROR([You need rsvg to rebuild icons in maintainer mode.])
319   dnl Check the imagemagick version
320   if test "$CONVERT" = false
321   then
322     AC_MSG_ERROR([You need imagemagick to rebuild icons in maintainer mode.])
323   else
324     AC_MSG_CHECKING([for recent enough imagemagick])
325     convert_version=`convert --version | head -n1`
326     if test "x$convert_version" != "x"
327     then
328       convert_version_major=`expr "$convert_version" : '.* \([[0-9]]*\)\.[[0-9]]*'`
329       convert_version_minor=`expr "$convert_version" : '.* [[0-9]]*\.\([[0-9]]*\)'`
330       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
331       then
332         CONVERT=false
333       fi
334     fi
335     if test "$CONVERT" = false
336     then
337       AC_MSG_RESULT([no ($convert_version_major.$convert_version_minor)])
338       AC_MSG_ERROR([You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode.])
339     else
340       AC_MSG_RESULT([yes ($convert_version_major.$convert_version_minor)])
341     fi
342   fi
344   dnl Check the icotool version
345   if test "$ICOTOOL" = false
346   then
347     AC_MSG_ERROR([You need icotool to rebuild icons in maintainer mode.])
348   else
349     AC_MSG_CHECKING([for recent enough icotool])
350     icotool_version=`icotool --version | head -n1`
351     if test "x$icotool_version" != "x"
352     then
353       icotool_version_major=`expr "$icotool_version" : '.* \([[0-9]]*\)\.[[0-9]]*'`
354       icotool_version_minor=`expr "$icotool_version" : '.* [[0-9]]*\.\([[0-9]]*\)'`
355       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
356       then
357         ICOTOOL=false
358         WINE_WARNING([icotool version 0.29.0 or newer is needed to rebuild icons.])
359       fi
360     fi
361     if test "$ICOTOOL" = false
362     then
363       AC_MSG_RESULT([no ($icotool_version_major.$icotool_version_minor)])
364       AC_MSG_ERROR([You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode.])
365     else
366       AC_MSG_RESULT([yes ($icotool_version_major.$icotool_version_minor)])
367     fi
368   fi
370   dnl Maintainer mode requires gettext
371   with_gettext=yes
372   with_gettextpo=yes
374   dnl Maintainer mode wants -Werror
375   enable_werror=yes
378 test "x$with_gettext" != xno || MSGFMT=false
379 if test "$MSGFMT" != "false"
380 then
381   AC_CACHE_CHECK([whether msgfmt supports contexts],wine_cv_msgfmt_contexts,
382   [cat >conftest.po <<EOF
383 # comment
384 msgctxt "ctxt"
385 msgid "id"
386 msgstr "str"
388   if $MSGFMT -o /dev/null conftest.po 2>&AS_MESSAGE_LOG_FD
389   then
390     wine_cv_msgfmt_contexts=yes
391   else
392     wine_cv_msgfmt_contexts=no
393   fi])
394   test $wine_cv_msgfmt_contexts != no || MSGFMT=false
396 WINE_WARNING_WITH(gettext,[test "$MSGFMT" = false],
397                   [gettext tools not found (or too old), translations won't be built.],
398                   [enable_po])
400 dnl **** Check for some libraries ****
402 dnl Check for -li386 for NetBSD and OpenBSD
403 AC_CHECK_LIB(i386,i386_set_ldt,[AC_SUBST(I386_LIBS, "-li386")])
405 AC_SUBST(OPENGL_LIBS,"")
407 dnl **** Check for header files ****
409 AC_SYS_LARGEFILE()
411 AC_CHECK_HEADERS(\
412         AL/al.h \
413         ApplicationServices/ApplicationServices.h \
414         CL/cl.h \
415         Carbon/Carbon.h \
416         CoreAudio/CoreAudio.h \
417         DiskArbitration/DiskArbitration.h \
418         EGL/egl.h \
419         IOKit/IOKitLib.h \
420         IOKit/hid/IOHIDLib.h \
421         OpenAL/al.h \
422         OpenCL/opencl.h \
423         Security/Security.h \
424         SystemConfiguration/SCDynamicStoreCopyDHCPInfo.h \
425         SystemConfiguration/SCNetworkConfiguration.h \
426         arpa/inet.h \
427         arpa/nameser.h \
428         asm/types.h \
429         asm/user.h \
430         elf.h \
431         float.h \
432         gettext-po.h \
433         libproc.h \
434         link.h \
435         linux/cdrom.h \
436         linux/filter.h \
437         linux/hdreg.h \
438         linux/hidraw.h \
439         linux/input.h \
440         linux/ioctl.h \
441         linux/major.h \
442         linux/param.h \
443         linux/serial.h \
444         linux/types.h \
445         linux/ucdrom.h \
446         lwp.h \
447         mach-o/loader.h \
448         mach/mach.h \
449         machine/cpu.h \
450         machine/sysarch.h \
451         mntent.h \
452         netdb.h \
453         netinet/in.h \
454         netinet/in_systm.h \
455         netinet/tcp.h \
456         netinet/tcp_fsm.h \
457         pcap/pcap.h \
458         port.h \
459         pthread.h \
460         pwd.h \
461         sasl/sasl.h \
462         sched.h \
463         scsi/scsi.h \
464         scsi/scsi_ioctl.h \
465         scsi/sg.h \
466         stdint.h \
467         sys/attr.h \
468         sys/auxv.h \
469         sys/cdio.h \
470         sys/epoll.h \
471         sys/event.h \
472         sys/filio.h \
473         sys/ipc.h \
474         sys/link.h \
475         sys/modem.h \
476         sys/mtio.h \
477         sys/param.h \
478         sys/prctl.h \
479         sys/ptrace.h \
480         sys/queue.h \
481         sys/random.h \
482         sys/resource.h \
483         sys/scsiio.h \
484         sys/shm.h \
485         sys/signal.h \
486         sys/socketvar.h \
487         sys/sockio.h \
488         sys/statvfs.h \
489         sys/strtio.h \
490         sys/syscall.h \
491         sys/sysinfo.h \
492         sys/times.h \
493         sys/uio.h \
494         sys/user.h \
495         sys/utsname.h \
496         sys/vnode.h \
497         sys/xattr.h \
498         syscall.h \
499         utime.h \
500         valgrind/memcheck.h \
501         valgrind/valgrind.h
503 WINE_HEADER_MAJOR()
504 AC_HEADER_STAT()
506 dnl **** Checks for headers that depend on other ones ****
508 AC_CHECK_HEADERS([sys/conf.h sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,
509     [#include <sys/types.h>
510      #ifdef HAVE_SYS_PARAM_H
511      # include <sys/param.h>
512      #endif])
514 dnl check for broken Linux sysctl.h that causes deprecation warnings
515 saved_sysctl_h_CFLAGS=$CFLAGS
516 test "x${GCC}" != xyes || CFLAGS="$CFLAGS -Werror"
517 AC_CHECK_HEADERS([sys/sysctl.h],,,
518     [#include <sys/types.h>
519      #ifdef HAVE_SYS_PARAM_H
520      # include <sys/param.h>
521      #endif])
522 CFLAGS=$saved_sysctl_h_CFLAGS
524 AC_CHECK_HEADERS(\
525         netinet/ip.h \
526         net/if.h \
527         net/if_arp.h \
528         net/if_dl.h \
529         net/if_types.h \
530         net/route.h \
531         netinet/if_ether.h \
532         netinet/in_pcb.h \
533         netinet/ip_icmp.h \
534         netinet/ip_var.h \
535         netinet/udp.h \
536         netinet6/ip6_var.h \
537         netipx/ipx.h \
538         sys/un.h \
539 ,,,[#include <sys/types.h>
540      #include <sys/socket.h>
541      #ifdef HAVE_SYS_SOCKETVAR_H
542      # include <sys/socketvar.h>
543      #endif
544      #ifdef HAVE_NET_ROUTE_H
545      # include <net/route.h>
546      #endif
547      #ifdef HAVE_NETINET_IN_H
548      # include <netinet/in.h>
549      #endif
550      #ifdef HAVE_NETINET_IN_SYSTM_H
551      # include <netinet/in_systm.h>
552      #endif
553      #ifdef HAVE_NET_IF_H
554      # include <net/if.h>
555      #endif
556      #ifdef HAVE_NETINET_IP_H
557      # include <netinet/ip.h>
558      #endif])
560 AC_CHECK_HEADERS([netinet/udp_var.h netinet/icmp_var.h netinet/icmp6.h netinet/tcp_var.h ],,,
561     [#include <sys/types.h>
562      #include <sys/socket.h>
563      #ifdef HAVE_SYS_SOCKETVAR_H
564      # include <sys/socketvar.h>
565      #endif
566      #ifdef HAVE_NETINET_IN_H
567      # include <netinet/in.h>
568      #endif
569      #ifdef HAVE_NETINET_IN_SYSTM_H
570      # include <netinet/in_systm.h>
571      #endif
572      #ifdef HAVE_NETINET_IP_H
573      # include <netinet/ip.h>
574      #endif
575      #ifdef HAVE_NETINET_IP_VAR_H
576      # include <netinet/ip_var.h>
577      #endif
578      #ifdef HAVE_NETINET_IP_ICMP_H
579      # include <netinet/ip_icmp.h>
580      #endif
581      #ifdef HAVE_NETINET_UDP_H
582      # include <netinet/udp.h>
583      #endif
584      #ifdef HAVE_NETINET_TCP_H
585      # include <netinet/tcp.h>
586      #endif])
588 AC_CHECK_HEADERS([linux/ipx.h linux/irda.h linux/rtnetlink.h],,,
589     [#include <sys/types.h>
590      #include <sys/socket.h>
591      #ifdef HAVE_ASM_TYPES_H
592      # include <asm/types.h>
593      #endif
594      #ifdef HAVE_LINUX_TYPES_H
595      # include <linux/types.h>
596      #endif])
598 AC_CHECK_HEADERS([resolv.h],,,
599     [#include <sys/types.h>
600      #include <sys/socket.h>
601      #ifdef HAVE_NETINET_IN_H
602      # include <netinet/in.h>
603      #endif
604      #ifdef HAVE_ARPA_NAMESER_H
605      # include <arpa/nameser.h>
606      #endif])
608 AC_CHECK_HEADERS([ifaddrs.h],,,[#include <sys/types.h>])
610 AC_CHECK_HEADERS(sys/ucontext.h,,,[#include <signal.h>])
612 AC_CHECK_HEADERS([sys/thr.h],,,
613 [#include <sys/types.h>
614 #ifdef HAVE_SYS_UCONTEXT_H
615 #include <sys/ucontext.h>
616 #endif])
618 AC_CHECK_HEADERS([pthread_np.h],,,
619 [#ifdef HAVE_PTHREAD_H
620 #include <pthread.h>
621 #endif])
623 AC_CHECK_HEADERS([linux/videodev2.h],,,
624 [#include <sys/time.h>
625 #include <sys/types.h>
626 #ifdef HAVE_ASM_TYPES_H
627 #include <asm/types.h>
628 #endif])
630 AC_CHECK_HEADERS([libprocstat.h],,,
631 [#ifdef HAVE_SYS_PARAM_H
632 #include <sys/param.h>
633 #endif
634 #include <sys/socket.h>
635 #ifdef HAVE_SYS_QUEUE_H
636 #include <sys/queue.h>
637 #endif])
639 if test "x$ac_cv_header_sys_xattr_h" = xyes
640 then
641     AC_CACHE_CHECK([whether getxattr takes additional arguments], wine_cv_xattr_extra_args,
642         [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/xattr.h>]], [[getxattr("", "", "", 0, 0, 0);]])],
643                            [wine_cv_xattr_extra_args=yes],[wine_cv_xattr_extra_args=no])])
644     test $wine_cv_xattr_extra_args != yes || AC_DEFINE(XATTR_ADDITIONAL_OPTIONS, 1, [Define if xattr functions take additional arguments (macOS)])
647 dnl **** Check for working dll ****
649 AC_SUBST(DLLFLAGS,"")
650 AC_SUBST(LDDLLFLAGS,"")
651 AC_SUBST(LDEXECFLAGS,"")
652 AC_SUBST(EXTRACFLAGS,"")
653 AC_SUBST(UNIXDLLFLAGS,"-fPIC")
654 AC_SUBST(UNIXLDFLAGS,["-shared -Wl,-Bsymbolic -Wl,-soname,\$(UNIXLIB)"])
655 AC_SUBST(TOP_INSTALL_LIB,"")
656 AC_SUBST(TOP_INSTALL_DEV,"")
657 AC_SUBST(WINELOADER_LDFLAGS,"")
658 AC_SUBST(WINEPRELOADER_LDFLAGS,"")
659 LIBEXT="so"
660 WINE_PATH_SONAME_TOOLS
661 WINE_CONFIG_HELPERS
663 wine_binary="wine"
664 test "x$enable_win64" != "xyes" || wine_binary="wine64"
665 AC_SUBST(WINELOADER_PROGRAMS,"$wine_binary")
666 libwine_soversion=`expr $libwine_version : '\([[0-9]]*\)\..*'`
668 case $host_os in
669   cygwin*|mingw32*)
670     AC_CHECK_TOOL(DLLTOOL,dlltool,false)
671     LIBEXT="dll"
672     EXTRACFLAGS="-D__WINE_PE_BUILD"
673     dnl Disable stdcall fixups to catch prototype mismatches
674     case $host_cpu in
675       *i[[3456]]86*) WINE_TRY_CFLAGS([-Wl,--disable-stdcall-fixup],
676                                      [LDDLLFLAGS="-Wl,--disable-stdcall-fixup"]) ;;
677     esac
678     dnl Disable modules that can't be used on Windows
679     enable_loader=${enable_loader:-no}
680     enable_server=${enable_server:-no}
681     dnl Disable dependencies that are not useful on Windows
682     with_x=${with_x:-no}
683     with_pthread=${with_pthread:-no}
684     ;;
686   darwin*|macosx*)
687     AC_LANG_PUSH([Objective C])
688         AC_CHECK_HEADERS(Metal/Metal.h)
689     AC_LANG_POP([Objective C])
690     LIBEXT="dylib"
691     DLLFLAGS="$DLLFLAGS -fPIC"
692     LDDLLFLAGS="-fPIC"
693     dnl declare needed frameworks
694     AC_SUBST(COREFOUNDATION_LIBS,"-framework CoreFoundation")
695     AC_SUBST(IOKIT_LIBS,"-framework IOKit -framework CoreFoundation")
696     AC_SUBST(APPLICATIONSERVICES_LIBS,"-framework ApplicationServices")
697     AC_SUBST(CORESERVICES_LIBS,"-framework CoreServices")
698     AC_SUBST(APPKIT_LIBS,"-framework AppKit")
699     AC_SUBST(SYSTEMCONFIGURATION_LIBS,"-framework SystemConfiguration")
701     WINELOADER_LDFLAGS="-Wl,-pie,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
703     wine_can_build_preloader=yes
704     WINEPRELOADER_LDFLAGS="-nostartfiles -nodefaultlibs -e _start -ldylib1.o -Wl,-image_base,0x7d400000,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist,-segaddr,WINE_4GB_RESERVE,0x100000000"
705     WINE_TRY_CFLAGS([-Wl,-no_new_main -e _main],
706                     [WINEPRELOADER_LDFLAGS="-Wl,-no_new_main $WINEPRELOADER_LDFLAGS"
707                      WINE_TRY_CFLAGS([-Wl,-no_new_main -e _main -mmacosx-version-min=10.7 -nostartfiles -nodefaultlibs],
708                                      [WINEPRELOADER_LDFLAGS="-mmacosx-version-min=10.7 $WINEPRELOADER_LDFLAGS"],
709                                      [wine_can_build_preloader=no])],
710                     [WINE_TRY_CFLAGS([-mmacosx-version-min=10.7 -nostartfiles -nodefaultlibs],
711                                      [WINEPRELOADER_LDFLAGS="-mmacosx-version-min=10.7 $WINEPRELOADER_LDFLAGS"],
712                                      [wine_can_build_preloader=no])])
713     if test "$wine_can_build_preloader" = "yes"
714     then
715         WINE_TRY_CFLAGS([-Wl,-no_pie],
716                         [WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS"])
717         test "$wine_binary" = wine || WINE_IGNORE_FILE("loader/wine-preloader")
718         WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
719     else
720         WINE_WARNING([can't build Wine preloader; many programs won't work])
721     fi
723     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
724     then
725         dnl DiskArbitration API is not public on Darwin < 8.0, use it only if header found
726         AC_SUBST(DISKARBITRATION_LIBS,"-framework DiskArbitration -framework CoreFoundation")
727     fi
728     if test "$ac_cv_header_Security_Security_h" = "yes"
729     then
730         AC_SUBST(SECURITY_LIBS,"-framework Security -framework CoreFoundation")
731     fi
732     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes"
733     then
734         AC_SUBST(COREAUDIO_LIBS,"-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI")
735         enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes}
736     fi
737     if test "$ac_cv_header_OpenAL_al_h" = "yes"
738     then
739         AC_SUBST(OPENAL_LIBS,"-framework OpenAL")
740         AC_DEFINE_UNQUOTED(HAVE_OPENAL,1,[Define to 1 if OpenAL is available])
741         ac_cv_lib_openal=yes
742     fi
743     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
744     then
745         AC_SUBST(OPENCL_LIBS,"-framework OpenCL")
746         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
747     fi
748     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
749     then
750         ac_save_LIBS="$LIBS"
751         LIBS="$LIBS $IOKIT_LIBS"
752         AC_CHECK_FUNCS(IOHIDManagerCreate)
753         LIBS="$ac_save_LIBS"
754     fi
756     if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
757     then
758         AC_SUBST(CARBON_LIBS,"-framework Carbon")
759     fi
760     if test "$ac_cv_header_Metal_Metal_h" = "yes"
761     then
762         AC_SUBST(METAL_LIBS,"-framework Metal")
763     fi
765     dnl Check for MTLDevice registryID property
766     if test "$ac_cv_header_Metal_Metal_h" = "yes"
767     then
768         AC_MSG_CHECKING([whether MTLDevice protocol supports registryID property])
769         AC_LANG_PUSH([Objective C])
770         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Metal/Metal.h>]], [[id<MTLDevice> device; device.registryID;]])],
771                               [AC_MSG_RESULT(yes)
772                                AC_DEFINE(HAVE_MTLDEVICE_REGISTRYID, 1, [Define if MTLDevice protocol has registryID property.])],
773                               [AC_MSG_RESULT(no)])
774         AC_LANG_POP([Objective C])
775     fi
777     dnl Enable Mac driver on Mac OS X 10.6 or later
778     if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
779     then
780         ac_save_LIBS="$LIBS"
781         LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
782         AC_CHECK_FUNC(CGDisplayModeGetWidth,enable_winemac_drv=${enable_winemac_drv:-yes})
783         LIBS="$ac_save_LIBS"
784     fi
786     UNIXLDFLAGS="-dynamiclib -install_name @rpath/\$(UNIXLIB) -Wl,-rpath,@loader_path\/"
787     AC_SUBST(LIBWINE_SHAREDLIB,"libwine.$libwine_version.dylib")
788     AC_SUBST(LIBWINE_LDFLAGS,["-dynamiclib -install_name @rpath/libwine.$libwine_soversion.dylib -Wl,-rpath,@loader_path/ -compatibility_version $libwine_soversion -current_version $libwine_version"])
789     AC_SUBST(WINELOADER_DEPENDS,"wine_info.plist")
790     TOP_INSTALL_LIB="$TOP_INSTALL_LIB libs/wine/libwine.$libwine_version.dylib libs/wine/libwine.$libwine_soversion.dylib"
791     ;;
793   linux-android*)
794     AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux])
795     DLLFLAGS="$DLLFLAGS -fPIC"
796     LDDLLFLAGS="-fPIC"
797     LDEXECFLAGS="-Wl,-pie"
798     enable_wineandroid_drv=${enable_wineandroid_drv:-yes}
799     WINE_TRY_CFLAGS([-Wl,-z,defs],[UNIXLDFLAGS="$UNIXLDFLAGS -Wl,-z,defs"])
800     WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],[WINELOADER_LDFLAGS="-Wl,--export-dynamic"])
801     WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
803     WINE_CHECK_SONAME(EGL,eglGetProcAddress)
804     WINE_CHECK_SONAME(GLESv2,glFlush)
806     if test "x$exec_prefix" = xNONE
807     then
808       case $host_cpu in
809         *i[[3456]]86*) exec_prefix='${prefix}/x86' ;;
810         *x86_64*)      exec_prefix='${prefix}/x86_64' ;;
811         *arm*)         exec_prefix='${prefix}/armeabi-v7a' ;;
812         *aarch64*)     exec_prefix='${prefix}/arm64-v8a' ;;
813       esac
814     fi
815     ;;
817   *)
818     AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux])
819     test "$ac_cv_sys_file_offset_bits" = 64 && AC_DEFINE(_TIME_BITS,64,[Define to 64 to enable 64-bit time_t on Linux])
820     case $host_cpu in
821       *i[[3456789]]86*)
822         DLLFLAGS="$DLLFLAGS -fno-PIC"
823         LDDLLFLAGS="-fno-PIC"
824         WINE_TRY_CFLAGS([-fno-PIC -Wl,-z,notext],[LDDLLFLAGS="$LDDLLFLAGS -Wl,-z,notext"])
825         ;;
826       *)
827         DLLFLAGS="$DLLFLAGS -fPIC"
828         LDDLLFLAGS="-fPIC" ;;
829     esac
830     LIBWINE_LDFLAGS="-shared -Wl,-soname,libwine.so.$libwine_soversion"
832     echo '{ global: *; };' >conftest.map
833     WINE_TRY_CFLAGS([-shared -Wl,--version-script=conftest.map],
834                     [LIBWINE_LDFLAGS="$LIBWINE_LDFLAGS -Wl,--version-script=\$(srcdir)/wine.map"])
835     rm -f conftest.map
837     WINE_TRY_CFLAGS([-Wl,-z,defs],[UNIXLDFLAGS="$UNIXLDFLAGS -Wl,-z,defs"])
838     WINE_TRY_CFLAGS([-Wl,--export-dynamic],[WINELOADER_LDFLAGS="-Wl,--export-dynamic"])
839     WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
841     case $host_cpu in
842       *i[[3456789]]86* | x86_64 | *aarch64* | arm*)
843         WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x7bc00000],
844                         [case $host_os in
845                          freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x60000000" ;;
846                          *) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-Ttext-segment=0x7d000000" ;;
847                          esac],
848                         [WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7d000400],
849                                          [case $host_os in
850                                             freebsd* | kfreebsd*-gnu) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x60000400" ;;
851                                             *) WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,--section-start,.interp=0x7d000400" ;;
852                                          esac])
853                          AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
854                          if test "x$PRELINK" = xfalse
855                          then
856                              WINE_WARNING([prelink not found and linker does not support relocation, base address of core dlls won't be set correctly.])
857                          fi])
858         WINE_TRY_CFLAGS([-Wl,-z,max-page-size=0x1000],
859                         [WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -Wl,-z,max-page-size=0x1000"])
860         ;;
861     esac
862     AC_SUBST(LIBWINE_SHAREDLIB,"libwine.so.$libwine_version")
863     AC_SUBST(LIBWINE_DEPENDS,"wine.map")
864     TOP_INSTALL_LIB="$TOP_INSTALL_LIB libs/wine/libwine.so.$libwine_version libs/wine/libwine.so.$libwine_soversion"
865     ;;
866 esac
868 enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
869 enable_wineandroid_drv=${enable_wineandroid_drv:-no}
870 enable_winemac_drv=${enable_winemac_drv:-no}
872 dnl Check for cross compiler to build test programs
873 AC_SUBST(CROSSTARGET)
874 if test "x$with_mingw" != xno
875 then
876     case "x$with_mingw" in
877       x|xyes) WINE_CHECK_MINGW_PROG(CROSSCC,false) ;;
878       *) CROSSCC=$with_mingw ;;
879     esac
880     if test "$CROSSCC" != "false"
881     then
882         ac_save_CC="$CC"
883         saved_CFLAGS=$CFLAGS
884         saved_LDFLAGS=$LDFLAGS
885         AC_SUBST(CROSSCFLAGS,${CROSSCFLAGS:-"-g -O2"})
886         AC_SUBST(EXTRACROSSCFLAGS,"-D__WINE_PE_BUILD -Wall")
887         AC_SUBST(CROSSLDFLAGS)
889         CC="$CROSSCC"
890         CFLAGS=$CROSSCFLAGS
891         LDFLAGS=$CROSSLDFLAGS
892         AC_CACHE_CHECK([whether $CROSSCC works], wine_cv_crosscc,
893             [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],[wine_cv_crosscc=yes],[wine_cv_crosscc=no])])
894         if test $wine_cv_crosscc = yes
895         then
896             set x $CROSSCC
897             shift
898             while test $# -ge 1
899             do
900                 case "$1" in
901                     *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
902                     *-clang) CROSSTARGET=`expr "$1" : '\(.*\)-clang'` ;;
903                 esac
904                 shift
905             done
907             dnl Check if cross compiler supports -target argument
908             llvm_target=$CROSSTARGET
909             llvm_cflags="-fuse-ld=lld"
910             if test -z "$llvm_target"
911             then
912                 case $host_cpu in
913                 *i[[3456789]]86*) llvm_target=i686-windows ;;
914                 *) llvm_target=$host_cpu-windows ;;
915                 esac
916             fi
917             case $llvm_target in
918             *windows) llvm_cflags="$llvm_cflags -Wl,-subsystem:console" ;;
919             esac
920             WINE_TRY_CROSSCFLAGS([-target $llvm_target $llvm_cflags],
921                                  [CROSSTARGET=$llvm_target
922                                   EXTRACROSSCFLAGS="$EXTRACROSSCFLAGS -target $CROSSTARGET"
923                                   AC_SUBST(DELAYLOADFLAG,["-Wl,-delayload,"])
924                                   CFLAGS="$CFLAGS $llvm_cflags"])
925         fi
926         AC_MSG_CHECKING([for $CROSSCC option to enable C99 features])
927         AC_CACHE_VAL([wine_cv_crosscc_c99],
928             [wine_cv_crosscc_c99=no
929              for arg in '' '-std=gnu99'
930              do
931                  CC="$CROSSCC $arg"
932                  AC_COMPILE_IFELSE([AC_LANG_SOURCE([$ac_c_conftest_c99_program])],
933                                    [wine_cv_crosscc_c99=$arg],[wine_cv_crosscc_c99=no])
934                  test "x$wine_cv_crosscc_c99" != xno && break
935              done])
936         case "x$wine_cv_crosscc_c99" in
937           x) AC_MSG_RESULT([none needed]) ;;
938           xno) AC_MSG_RESULT([unsupported]) ;;
939           x*) AC_MSG_RESULT([$wine_cv_crosscc_c99])
940               CROSSCC="$CROSSCC $wine_cv_crosscc_c99" ;;
941         esac
943         WINE_TRY_CROSSCFLAGS([-fno-strict-aliasing])
944         dnl clang needs to be told to fail on unknown options
945         WINE_TRY_CROSSCFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
946         WINE_TRY_CROSSCFLAGS([-Werror=ignored-optimization-argument],[CFLAGS="$CFLAGS -Werror=ignored-optimization-argument"])
947         WINE_TRY_CROSSCFLAGS([-Wdeclaration-after-statement])
948         WINE_TRY_CROSSCFLAGS([-Wempty-body])
949         WINE_TRY_CROSSCFLAGS([-Wignored-qualifiers])
950         WINE_TRY_CROSSCFLAGS([-Winit-self])
951         WINE_TRY_CROSSCFLAGS([-Wpacked-not-aligned],[EXTRACROSSCFLAGS="$EXTRACROSSCFLAGS -Wno-packed-not-aligned"])
952         WINE_TRY_CROSSCFLAGS([-Wpragma-pack],[EXTRACROSSCFLAGS="$EXTRACROSSCFLAGS -Wno-pragma-pack"])
953         WINE_TRY_CROSSCFLAGS([-Wshift-overflow=2])
954         WINE_TRY_CROSSCFLAGS([-Wstrict-prototypes])
955         WINE_TRY_CROSSCFLAGS([-Wtype-limits])
956         WINE_TRY_CROSSCFLAGS([-Wunused-but-set-parameter])
957         WINE_TRY_CROSSCFLAGS([-Wvla])
958         WINE_TRY_CROSSCFLAGS([-Wwrite-strings])
959         WINE_TRY_CROSSCFLAGS([-Wpointer-arith])
960         WINE_TRY_CROSSCFLAGS([-Wlogical-op])
961         WINE_TRY_CROSSCFLAGS([-Wabsolute-value])
963         case $host_cpu in
964           *i[[3456789]]86*) WINE_TRY_CROSSCFLAGS([-fno-omit-frame-pointer])
965                             WINE_TRY_CROSSCFLAGS([-Wl,--disable-stdcall-fixup],[CROSSLDFLAGS="$CROSSLDFLAGS -Wl,--disable-stdcall-fixup"]) ;;
966           x86_64) WINE_TRY_CROSSCFLAGS([-Wno-format])
967                   WINE_TRY_CROSSCFLAGS([-Wformat-overflow])
968                   WINE_TRY_CROSSCFLAGS([-Wnonnull])
969                   WINE_TRY_CROSSCFLAGS([-mcx16]) ;;
970           aarch64) WINE_TRY_CROSSCFLAGS([-Wno-format]) ;;
971         esac
973         dnl Determine debug info format
974         AC_SUBST(CROSSDEBUG)
975         if test -z "$CROSSDEBUG"
976         then
977           for ac_flag in $CROSSCFLAGS; do
978             case $ac_flag in
979              -gdwarf*)    CROSSDEBUG=dwarf ;;
980              -gcodeview)  CROSSDEBUG=pdb ;;
981              -g)          CROSSDEBUG=${CROSSDEBUG:-dwarf} ;;
982             esac
983           done
984         fi
986         ac_debug_format_seen=""
987         for ac_flag in $CROSSCFLAGS; do
988           case $ac_flag in
989            -gdwarf*|-gcodeview)  ac_debug_format_seen=$ac_flag ;;
990           esac
991         done
992         if test "x$ac_debug_format_seen" = x
993         then
994           case $CROSSDEBUG in
995             *dwarf)  WINE_TRY_CROSSCFLAGS([-gdwarf-4]) ;;
996             pdb)     WINE_TRY_CROSSCFLAGS([-gcodeview]) ;;
997           esac
998         fi
1000         WINE_TRY_CROSSCFLAGS([-fexcess-precision=standard],[AC_SUBST(EXCESS_PRECISION_CFLAGS,"-fexcess-precision=standard")])
1002         if test "x$enable_werror" = "xyes"
1003         then
1004             WINE_TRY_CROSSCFLAGS([-Werror])
1005         fi
1006         if test "x$enable_build_id" = "xyes"
1007         then
1008             WINE_TRY_CROSSCFLAGS([-Wl,--build-id], [CROSSCFLAGS="$CROSSCFLAGS -Wl,--build-id"
1009                             CROSSLDFLAGS="$CROSSLDFLAGS -Wl,--build-id"])
1010         fi
1012         CFLAGS=$saved_CFLAGS
1013         LDFLAGS=$saved_LDFLAGS
1014         CC="$ac_save_CC"
1015     fi
1017 WINE_NOTICE_WITH(mingw,[test "x$CROSSTARGET" = "x"],
1018                  [MinGW compiler not found, cross-compiling PE files won't be supported.])
1020 case $host_cpu in
1021   aarch64*) test "x$CROSSTARGET" != x || AC_MSG_ERROR([PE cross-compilation is required for ARM64, please install clang/llvm-dlltool/lld, or llvm-mingw.]) ;;
1022 esac
1024 dnl **** External libraries ****
1026 if test "x$with_system_dllpath" != "x" -a "$CROSSCC" != "false"
1027 then
1028     WINE_MINGW_PACKAGE_FLAGS(FAUDIO,[FAudio],[-lFAudio],
1029         [WINE_CHECK_MINGW_HEADER(FAudio.h,
1030             [WINE_CHECK_MINGW_LIB(FAudio,FAudio_CommitOperationSet,[:],[FAUDIO_PE_CFLAGS=""; FAUDIO_PE_LIBS=""],[$FAUDIO_PE_LIBS])],
1031             [FAUDIO_PE_CFLAGS=""; FAUDIO_PE_LIBS=""])])
1032     if test "x$FAUDIO_PE_LIBS" = "x"
1033     then
1034         WINE_NOTICE([FAudio ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1035     fi
1037     WINE_MINGW_PACKAGE_FLAGS(JPEG,[libjpeg],,
1038         [WINE_CHECK_MINGW_HEADER(jpeglib.h,
1039             [WINE_CHECK_MINGW_LIB(jpeg,jpeg_start_decompress,[:],[JPEG_PE_CFLAGS=""; JPEG_PE_LIBS=""],[$JPEG_PE_LIBS])],
1040             [JPEG_PE_CFLAGS=""; JPEG_PE_LIBS=""],
1041             [#include <stddef.h>
1042              #include <stdio.h>])])
1043     if test "x$JPEG_PE_LIBS" = "x"
1044     then
1045         WINE_NOTICE([libjpeg ${notice_platform}MinGW development files not found; using bundled version.])
1046     fi
1048     WINE_MINGW_PACKAGE_FLAGS(LCMS2,[lcms2],[-llcms2],
1049         [WINE_CHECK_MINGW_HEADER(lcms2.h,
1050             [WINE_CHECK_MINGW_LIB(lcms2,cmsOpenProfileFromFile,[:],[LCMS2_PE_CFLAGS=""; LCMS2_PE_LIBS=""],[$LCMS2_PE_LIBS])],
1051             [LCMS2_PE_CFLAGS=""; LCMS2_PE_LIBS=""])])
1052     if test "x$LCMS2_PE_LIBS" = "x"
1053     then
1054         WINE_NOTICE([liblcms2 ${notice_platform}MinGW development files not found; using bundled version.])
1055     fi
1057     WINE_MINGW_PACKAGE_FLAGS(MPG123,[libmpg123],[-lmpg123],
1058         [WINE_CHECK_MINGW_HEADER(mpg123.h,
1059             [WINE_CHECK_MINGW_LIB(mpg123,mpg123_feed,[:],[MPG123_PE_CFLAGS=""; MPG123_PE_LIBS=""],[$MPG123_PE_LIBS])],
1060             [MPG123_PE_CFLAGS=""; MPG123_PE_LIBS=""])])
1061     if test "x$MPG123_PE_LIBS" = "x"
1062     then
1063         WINE_NOTICE([libmpg123 ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1064     fi
1066     WINE_MINGW_PACKAGE_FLAGS(PNG,[libpng],,
1067         [WINE_CHECK_MINGW_HEADER(png.h,
1068             [WINE_CHECK_MINGW_LIB(png,png_create_read_struct,[:],[PNG_PE_CFLAGS=""; PNG_PE_LIBS=""],[$PNG_PE_LIBS])],
1069             [PNG_PE_CFLAGS=""; PNG_PE_LIBS=""])])
1070     if test "x$PNG_PE_LIBS" = "x"
1071     then
1072         WINE_NOTICE([libpng ${notice_platform}MinGW development files not found; using bundled version.])
1073     fi
1075     WINE_MINGW_PACKAGE_FLAGS(TIFF,[libtiff-4],,
1076         [WINE_CHECK_MINGW_HEADER(tiffio.h,
1077             [WINE_CHECK_MINGW_LIB(tiff,TIFFClientOpen,[:],[TIFF_PE_CFLAGS=""; TIFF_PE_LIBS=""],[$TIFF_PE_LIBS])],
1078             [TIFF_PE_CFLAGS=""; TIFF_PE_LIBS=""])])
1079     if test "x$TIFF_PE_LIBS" = "x"
1080     then
1081         WINE_NOTICE([libtiff ${notice_platform}MinGW development files not found; using bundled version.])
1082     fi
1084     WINE_MINGW_PACKAGE_FLAGS(XML2,[libxml-2.0],[-lxml2],
1085         [WINE_CHECK_MINGW_HEADER(libxml/parser.h)
1086         WINE_CHECK_MINGW_HEADER(libxml/xmlsave.h)
1087         WINE_CHECK_MINGW_HEADER(libxml/SAX2.h)
1088         if test "$ac_cv_mingw_header_libxml_parser_h" = "yes" -a "$ac_cv_mingw_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_mingw_header_libxml_SAX2_h" = "yes"
1089         then
1090             WINE_CHECK_MINGW_LIB(xml2,xmlFirstElementChild,[:],[XML2_PE_CFLAGS=""; XML2_PE_LIBS=""],[$XML2_PE_LIBS])
1091         else
1092             XML2_PE_CFLAGS=""
1093             XML2_PE_LIBS=""
1094         fi])
1095     if test "x$XML2_PE_LIBS" = "x"
1096     then
1097         WINE_NOTICE([libxml2 ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1098     fi
1100     WINE_MINGW_PACKAGE_FLAGS(XSLT,[libxslt],[-lxslt],
1101         [WINE_CHECK_MINGW_HEADER(libxslt/pattern.h)
1102         WINE_CHECK_MINGW_HEADER(libxslt/transform.h)
1103         if test "$ac_cv_mingw_header_libxslt_pattern_h" = "yes" -a "$ac_cv_mingw_header_libxslt_transform_h" = "yes"
1104         then
1105             WINE_CHECK_MINGW_LIB(xslt,xsltCompilePattern,[:],[XSLT_PE_CFLAGS=""; XSLT_PE_LIBS=""],[$XSLT_PE_LIBS])
1106         else
1107             XSLT_PE_CFLAGS=""
1108             XSLT_PE_LIBS=""
1109         fi])
1110     if test "x$XSLT_PE_LIBS" = "x"
1111     then
1112         WINE_NOTICE([libxslt ${notice_platform}MinGW development files not found; using bundled version.])
1113     fi
1115     WINE_MINGW_PACKAGE_FLAGS(VKD3D,[libvkd3d libvkd3d-shader],[-lvkd3d -lvkd3d-shader],
1116         [WINE_CHECK_MINGW_HEADER(vkd3d.h)
1117         WINE_CHECK_MINGW_HEADER(vkd3d_shader.h)
1118         if test "$ac_cv_mingw_header_vkd3d_h" = "yes" -a "$ac_cv_mingw_header_vkd3d_shader_h" = "yes"
1119         then
1120             WINE_CHECK_MINGW_LIB(vkd3d,vkd3d_set_log_callback,[:],[:],[$VKD3D_PE_LIBS])
1121             WINE_CHECK_MINGW_LIB(vkd3d-shader,vkd3d_shader_compile,[:],[:],[$VKD3D_PE_LIBS])
1122             if test "$ac_cv_mingw_lib_vkd3d" = "no" -o "$ac_cv_mingw_lib_vkd3d_shader" = "no"
1123             then
1124                 VKD3D_PE_CFLAGS=""
1125                 VKD3D_PE_LIBS=""
1126             fi
1127         else
1128             VKD3D_PE_CFLAGS=""
1129             VKD3D_PE_LIBS=""
1130         fi])
1131     if test "x$VKD3D_PE_LIBS" = "x"
1132     then
1133         WINE_NOTICE([libvkd3d ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1134     fi
1136     WINE_MINGW_PACKAGE_FLAGS(ZLIB,[zlib],[-lz],
1137         [WINE_CHECK_MINGW_HEADER(zlib.h,
1138             [WINE_CHECK_MINGW_LIB(z,inflate,[:],[ZLIB_PE_CFLAGS=""; ZLIB_PE_LIBS=""],[$ZLIB_PE_LIBS])],
1139             [ZLIB_PE_CFLAGS=""; ZLIB_PE_LIBS=""])])
1140     if test "x$ZLIB_PE_LIBS" = "x"
1141     then
1142         WINE_NOTICE([zlib ${notice_platform}MinGW development files not found; using bundled version.])
1143     fi
1146 WINE_EXTLIB_FLAGS(FAUDIO, faudio, "faudio mfplat mfreadwrite mfuuid propsys", "-I\$(top_srcdir)/libs/faudio/include")
1147 WINE_EXTLIB_FLAGS(GSM, gsm, gsm, "-I\$(top_srcdir)/libs/gsm/inc")
1148 WINE_EXTLIB_FLAGS(JPEG, jpeg, jpeg, "-I\$(top_srcdir)/libs/jpeg")
1149 WINE_EXTLIB_FLAGS(JXR, jxr, jxr, "-I\$(top_srcdir)/libs/jxr/jxrgluelib -I\$(top_srcdir)/libs/jxr/image/sys")
1150 WINE_EXTLIB_FLAGS(LCMS2, lcms2, lcms2, "-I\$(top_srcdir)/libs/lcms2/include")
1151 WINE_EXTLIB_FLAGS(MPG123, mpg123, mpg123, "-I\$(top_srcdir)/libs/mpg123/src/libmpg123")
1152 WINE_EXTLIB_FLAGS(PNG, png, "png \$(ZLIB_PE_LIBS)", "-I\$(top_srcdir)/libs/png")
1153 WINE_EXTLIB_FLAGS(TIFF, tiff, "tiff \$(ZLIB_PE_LIBS)", "-I\$(top_srcdir)/libs/tiff/libtiff")
1154 WINE_EXTLIB_FLAGS(VKD3D, vkd3d, vkd3d, "-I\$(top_srcdir)/libs/vkd3d/include")
1155 WINE_EXTLIB_FLAGS(XML2, xml2, xml2, "-I\$(top_srcdir)/libs/xml2/include -DLIBXML_STATIC")
1156 WINE_EXTLIB_FLAGS(XSLT, xslt, xslt, "-I\$(top_srcdir)/libs/xslt/libxslt -I\$(top_srcdir)/libs/xslt -DLIBXSLT_STATIC")
1157 WINE_EXTLIB_FLAGS(ZLIB, zlib, z, "-I\$(top_srcdir)/libs/zlib -DFAR= -DZ_SOLO")
1159 dnl **** Check for pthread ****
1161 if test "$ac_cv_header_pthread_h" = "yes"
1162 then
1163     AC_CHECK_FUNC(pthread_create,,[AC_CHECK_LIB(pthread,pthread_create,[AC_SUBST(PTHREAD_LIBS,"-lpthread")])])
1165 WINE_ERROR_WITH(pthread,[test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x],
1166 [pthread ${notice_platform}development files not found.
1167 Wine cannot support threads without libpthread.])
1169 dnl **** Check for X11 ****
1171 AC_PATH_XTRA
1173 if test "$have_x" = "yes"
1174 then
1175     ac_save_CPPFLAGS="$CPPFLAGS"
1176     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1178     WINE_CHECK_SONAME(X11,XCreateWindow,,,[$X_LIBS $X_EXTRA_LIBS])
1179     WINE_CHECK_SONAME(Xext,XextCreateExtension,[X_LIBS="$X_LIBS -lXext"],,[$X_LIBS -lX11 $X_EXTRA_LIBS])
1180     X_LIBS="$X_LIBS -lX11"
1182     dnl *** All of the following tests require X11/Xlib.h
1183     AC_CHECK_HEADERS([X11/Xlib.h \
1184                       X11/XKBlib.h \
1185                       X11/Xutil.h \
1186                       X11/Xcursor/Xcursor.h \
1187                       X11/extensions/shape.h \
1188                       X11/extensions/XInput.h \
1189                       X11/extensions/XInput2.h \
1190                       X11/extensions/XShm.h \
1191                       X11/extensions/Xcomposite.h \
1192                       X11/extensions/Xfixes.h \
1193                       X11/extensions/Xinerama.h \
1194                       X11/extensions/Xrandr.h \
1195                       X11/extensions/Xrender.h \
1196                       X11/extensions/xf86vmode.h \
1197                       X11/extensions/xf86vmproto.h],,,
1198 [#ifdef HAVE_X11_XLIB_H
1199 # include <X11/Xlib.h>
1200 #endif
1201 #ifdef HAVE_X11_XUTIL_H
1202 # include <X11/Xutil.h>
1203 #endif])
1205         dnl *** Check for X keyboard extension
1206         if test "$ac_cv_header_X11_XKBlib_h" = "yes"
1207         then
1208               AC_CHECK_LIB(X11, XkbQueryExtension,
1209               AC_DEFINE(HAVE_XKB, 1, [Define if you have the XKB extension]),,[$X_LIBS $X_EXTRA_LIBS])
1210         fi
1212         dnl *** Check for X cursor
1213         if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
1214         then
1215             WINE_CHECK_SONAME(Xcursor,XcursorImageLoadCursor,,,[$X_LIBS $X_EXTRA_LIBS])
1216         fi
1217         WINE_NOTICE_WITH(xcursor,[test "x$ac_cv_lib_soname_Xcursor" = "x"],
1218                          [libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.])
1220         dnl *** Check for X input extension
1221         if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
1222         then
1223             WINE_CHECK_SONAME(Xi,XOpenDevice,,,[$X_LIBS $X_EXTRA_LIBS])
1224         fi
1225         WINE_NOTICE_WITH(xinput,[test "x$ac_cv_lib_soname_Xi" = "x"],
1226                          [libxi ${notice_platform}development files not found, the Xinput extension won't be supported.])
1228         dnl *** Check for X input 2 extension
1229         if test "x$ac_cv_lib_soname_Xi" != x
1230         then
1231             WINE_NOTICE_WITH(xinput2,[test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"],
1232                              [XInput2 headers not found, the XInput 2 extension won't be supported.])
1233         fi
1235         dnl *** Check for X Shm extension
1236         if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
1237         then
1238               AC_CHECK_LIB(Xext, XShmQueryExtension,
1239               AC_DEFINE(HAVE_LIBXXSHM, 1, [Define if you have the X Shm extension]),,[$X_LIBS $X_EXTRA_LIBS])
1240         fi
1241         WINE_NOTICE_WITH(xshm,[test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"],
1242                          [XShm ${notice_platform}development files not found, X Shared Memory won't be supported.])
1244         dnl *** Check for X shape extension
1245         if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
1246         then
1247               AC_CHECK_LIB(Xext,XShapeQueryExtension,
1248               AC_DEFINE(HAVE_LIBXSHAPE, 1, [Define if you have the X Shape extension]),,[$X_LIBS $X_EXTRA_LIBS])
1249         fi
1250         WINE_NOTICE_WITH(xshape,[test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"],
1251                          [XShape ${notice_platform}development files not found, XShape won't be supported.])
1253         dnl *** Check for XFree86 VMODE extension
1254         if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
1255         then
1256             WINE_CHECK_SONAME(Xxf86vm,XF86VidModeQueryExtension,,,[$X_LIBS $X_EXTRA_LIBS])
1257         fi
1258         WINE_NOTICE_WITH(xxf86vm,[test "x$ac_cv_lib_soname_Xxf86vm" = "x"],
1259                          [libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.])
1261         dnl *** Check for Transform functions in Xrender
1262         if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x"
1263         then
1264             WINE_CHECK_SONAME(Xrender,XRenderQueryExtension,
1265               [AC_CHECK_LIB(Xrender,XRenderSetPictureTransform,
1266                 [AC_DEFINE(HAVE_XRENDERSETPICTURETRANSFORM, 1,
1267                  [Define if Xrender has the XRenderSetPictureTransform function])],,[$X_LIBS $X_EXTRA_LIBS])
1268                AC_CHECK_LIB(Xrender,XRenderCreateLinearGradient,
1269                 [AC_DEFINE(HAVE_XRENDERCREATELINEARGRADIENT, 1,
1270                  [Define if Xrender has the XRenderCreateLinearGradient function])],,[$X_LIBS $X_EXTRA_LIBS])],,[$X_LIBS $X_EXTRA_LIBS])
1272         fi
1273         WINE_WARNING_WITH(xrender,[test "x$ac_cv_lib_soname_Xrender" = "x"],
1274                          [libxrender ${notice_platform}development files not found, XRender won't be supported.])
1276         dnl *** Check for X RandR extension
1277         if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
1278         then
1279                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
1280 #include <X11/extensions/Xrandr.h>]], [[static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;]])],
1281                   [WINE_CHECK_SONAME(Xrandr,XRRQueryExtension,
1282                     [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
1283 #include <X11/extensions/Xrandr.h>]], [[static typeof(XRRGetProviderResources) *f; if (f) return 0;]])],
1284                       [AC_DEFINE(HAVE_XRRGETPROVIDERRESOURCES, 1,
1285                         [Define if Xrandr has the XRRGetProviderResources function])],
1286                       [WINE_NOTICE([libxrandr ${notice_platform}development files too old, XRandR display device handler won't be supported.])])],,[$X_LIBS $X_EXTRA_LIBS])])
1287         fi
1288         WINE_NOTICE_WITH(xrandr,[test "x$ac_cv_lib_soname_Xrandr" = "x"],
1289                          [libxrandr ${notice_platform}development files not found, XRandr won't be supported.])
1291         dnl *** Check for Xfixes extension
1292         if test "$ac_cv_header_X11_extensions_Xfixes_h" = "yes"
1293         then
1294                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
1295 #include <X11/extensions/Xfixes.h>]], [[static typeof(XFixesQueryVersion) * func; if (func) return 0;]])],
1296                   [WINE_CHECK_SONAME(Xfixes,XFixesQueryVersion,,,[$X_LIBS $X_EXTRA_LIBS])])
1297         fi
1298         WINE_NOTICE_WITH(xfixes,[test "x$ac_cv_lib_soname_Xfixes" = "x"],
1299                          [libxfixes ${notice_platform}development files not found, Xfixes won't be supported.])
1301         dnl *** Check for Xinerama extension
1302         if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
1303         then
1304                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
1305 #include <X11/extensions/Xinerama.h>]], [[static typeof(XineramaQueryScreens) * func; if (func) return 0;]])],
1306                   [WINE_CHECK_SONAME(Xinerama,XineramaQueryScreens,,,[$X_LIBS $X_EXTRA_LIBS])])
1307         fi
1308         WINE_NOTICE_WITH(xinerama,[test "x$ac_cv_lib_soname_Xinerama" = "x"],
1309                          [libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.])
1311         dnl *** Check for X Composite extension
1312         if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
1313         then
1314             WINE_CHECK_SONAME(Xcomposite,XCompositeRedirectWindow,,,[$X_LIBS $X_EXTRA_LIBS])
1315         fi
1316         WINE_NOTICE_WITH(xcomposite,[test "x$ac_cv_lib_soname_Xcomposite" = "x"],
1317                          [libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.])
1319         dnl *** Check for XICCallback struct
1320         AC_CHECK_MEMBERS([XICCallback.callback, XEvent.xcookie],,,
1321 [#ifdef HAVE_X11_XLIB_H
1322 #include <X11/Xlib.h>
1323 #endif])
1325     dnl *** End of X11/Xlib.h check
1327     dnl Check for the presence of OpenGL
1328     opengl_msg=""
1329     if test "x$with_opengl" != "xno"
1330     then
1331         WINE_CHECK_SONAME(GL,glXCreateContext,
1332                      [OPENGL_LIBS="-lGL"],
1333                      [WINE_CHECK_SONAME(GL,glXCreateContext,
1334                             [OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"],
1335                             [if test -f /usr/X11R6/lib/libGL.a
1336                             then
1337                                 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
1338 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
1339                             else
1340                                 opengl_msg="No OpenGL library found on this system."
1341                             fi],
1342                             $X_LIBS -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib)],
1343                      $X_LIBS -lm $X_EXTRA_LIBS)
1344         if test "x$with_osmesa" != "xno"
1345         then
1346             WINE_CHECK_SONAME(OSMesa,OSMesaGetProcAddress,,,[$X_LIBS -lm $X_EXTRA_LIBS])
1347             WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
1348                              [libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
1349         fi
1350     fi
1351     WINE_WARNING_WITH(opengl,[test -n "$opengl_msg"],[$opengl_msg
1352 OpenGL and Direct3D won't be supported.])
1354     CPPFLAGS="$ac_save_CPPFLAGS"
1355 else
1356     X_CFLAGS=""
1357     X_LIBS=""
1360 if test "$enable_wineandroid_drv$enable_winemac_drv" = "nono"
1361 then
1362     WINE_ERROR_WITH(x,[test "x$X_LIBS" = "x"],
1363 [X ${notice_platform}development files not found. Wine will be built
1364 without X support, which probably isn't what you want. You will need
1365 to install ${notice_platform}development packages of Xlib at the very least.],
1366                     [enable_winex11_drv])
1367 else
1368     WINE_NOTICE_WITH(x,[test "x$X_LIBS" = "x"],
1369                      [X ${notice_platform}development files not found, the X11 driver won't be supported.],
1370                      [enable_winex11_drv])
1373 dnl **** Check for OpenCL ****
1374 if test "$ac_cv_header_CL_cl_h" = "yes"
1375 then
1376     AC_CHECK_LIB(OpenCL,clGetPlatformInfo,[AC_SUBST(OPENCL_LIBS,["-lOpenCL"])])
1378 WINE_NOTICE_WITH(opencl,[test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes],
1379                  [OpenCL ${notice_platform}development files not found, OpenCL won't be supported.],
1380                  [enable_opencl])
1382 dnl **** Check for libpcap ****
1383 if test "$ac_cv_header_pcap_pcap_h" = "yes"
1384 then
1385     AC_CHECK_LIB(pcap,pcap_create,[AC_SUBST(PCAP_LIBS,["-lpcap"])])
1387 WINE_NOTICE_WITH(pcap,[test "x$ac_cv_lib_pcap_pcap_create" != xyes],
1388                  [pcap ${notice_platform}development files not found, wpcap won't be supported.],
1389                  [enable_wpcap])
1391 dnl **** Check for inotify ****
1392 if test "x$with_inotify" != "xno"
1393 then
1394     WINE_PACKAGE_FLAGS(INOTIFY,[libinotify],,,,
1395         [AC_CHECK_HEADERS([sys/inotify.h])
1396          AC_CHECK_LIB(inotify,inotify_add_watch,[:],[INOTIFY_LIBS=""],[$INOTIFY_LIBS])])
1398 WINE_NOTICE_WITH(inotify,[test "$ac_cv_header_sys_inotify_h" != "yes"],
1399                  [libinotify ${notice_platform}development files not found (or too old), filesystem change notifications won't be supported.])
1401 dnl **** Check for libdbus ****
1402 if test "x$with_dbus" != "xno"
1403 then
1404     WINE_PACKAGE_FLAGS(DBUS,[dbus-1],,,,
1405         [AC_CHECK_HEADER([dbus/dbus.h],
1406             [WINE_CHECK_SONAME(dbus-1, dbus_connection_close,,[DBUS_CFLAGS=""],[$DBUS_LIBS])],
1407             [DBUS_CFLAGS=""])])
1409 WINE_NOTICE_WITH(dbus,[test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
1410                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"],
1411                  [libdbus ${notice_platform}development files not found, no dynamic device support.])
1413 dnl **** Check for libgnutls ****
1414 if test "x$with_gnutls" != "xno"
1415 then
1416     WINE_PACKAGE_FLAGS(GNUTLS,[gnutls],[-lgnutls],,,
1417         [AC_CHECK_HEADER(gnutls/gnutls.h,
1418             [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>
1419 #include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
1420                 [WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],[$GNUTLS_LIBS],[[libgnutls\\(-deb0\\)\\{0,1\\}]])
1421                  WINE_CHECK_LIB_FUNCS(gnutls_cipher_init,[$GNUTLS_LIBS],,
1422                                       [WINE_NOTICE([libgnutls ${notice_platform}development files too old, bcrypt encryption won't be supported.])])])],
1423             [GNUTLS_CFLAGS=""])])
1425 WINE_WARNING_WITH(gnutls,[test "x$ac_cv_lib_soname_gnutls" = "x"],
1426                  [libgnutls ${notice_platform}development files not found, no schannel support.])
1428 dnl **** Check for SANE ****
1429 if test "x$with_sane" != "xno"
1430 then
1431     WINE_PACKAGE_FLAGS(SANE,[sane-backends],,[`${SANE_CONFIG:-sane-config} --cflags 2>/dev/null`],[`${SANE_CONFIG:-sane-config} --ldflags 2>/dev/null`],
1432         [AC_CHECK_HEADER(sane/sane.h,
1433             [AC_CHECK_LIB(sane,sane_init,[:],,[$SANE_LIBS])])])
1435 WINE_NOTICE_WITH(sane,[test "$ac_cv_lib_sane_sane_init" != "yes"],
1436                  [libsane ${notice_platform}development files not found, scanners won't be supported.],
1437                  [enable_sane_ds])
1439 dnl **** Check for libusb ****
1440 if test "x$with_usb" != "xno"
1441 then
1442     WINE_PACKAGE_FLAGS(USB,[libusb-1.0],[-lusb-1.0],,,
1443         [AC_CHECK_HEADER([libusb.h],
1444             [AC_CHECK_LIB(usb-1.0,libusb_interrupt_event_handler,[:],[USB_LIBS=""],[$USB_LIBS])],
1445             [USB_LIBS=""])])
1447 WINE_NOTICE_WITH(usb,[test "$ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" != "yes"],
1448                  [libusb-1.0 ${notice_platform}development files not found (or too old), USB devices won't be supported.],
1449                  [enable_wineusb_sys])
1451 dnl **** Check for libv4l2 ****
1452 if test "x$with_v4l2" != "xno"
1453 then
1454     WINE_CHECK_SONAME(v4l2,v4l2_open)
1456 WINE_NOTICE_WITH(v4l2,[test "x$ac_cv_lib_soname_v4l2" = "x"],
1457                  [libv4l2 ${notice_platform}development files not found.])
1459 dnl **** Check for libgphoto2 ****
1460 if test "x$with_gphoto" != "xno"
1461 then
1462     WINE_PACKAGE_FLAGS(GPHOTO2,[libgphoto2],[-lgphoto2],
1463                        [`${GPHOTO2_CONFIG:-gphoto2-config} --cflags 2>/dev/null`],[`${GPHOTO2_CONFIG:-gphoto2-config} --libs 2>/dev/null`],
1464         [AC_CHECK_HEADER(gphoto2-camera.h,
1465                         [AC_CHECK_LIB(gphoto2,gp_camera_new,[:],,[$GPHOTO2_LIBS])])])
1466     WINE_PACKAGE_FLAGS(GPHOTO2_PORT,[libgphoto2_port],[-lgphoto2_port],
1467                        [`${GPHOTO2_PORT_CONFIG:-gphoto2-port-config} --cflags 2>/dev/null`],
1468                        [`${GPHOTO2_PORT_CONFIG:-gphoto2-port-config} --libs 2>/dev/null`],
1469         [AC_CHECK_HEADER(gphoto2-port.h,
1470                         [AC_CHECK_LIB(gphoto2_port,gp_port_info_list_new,
1471                                       [AC_DEFINE(HAVE_GPHOTO2_PORT, 1, [Define if we have the libgphoto2_port development environment])],
1472                                       [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""],
1473                                       [$GPHOTO2_PORT_LIBS])],
1474                         [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""])])
1476 WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"],
1477                  [libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.],
1478                  [enable_gphoto2_ds])
1479 WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"],
1480                  [libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.])
1483 dnl **** Check for resolver library ***
1484 if test "$ac_cv_header_resolv_h" = "yes"
1485 then
1486     AC_CACHE_CHECK([for resolver library], ac_cv_have_resolv,
1487       [ac_save_LIBS="$LIBS"
1488        for lib in '' -lresolv
1489        do
1490          LIBS="$lib $ac_save_LIBS"
1491          AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
1492 #include <netinet/in.h>
1493 #endif
1494 #include <resolv.h>]],[[if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0); ns_initparse(0,0,0)]])],
1495            [ac_cv_have_resolv=${lib:-"none required"}],[ac_cv_have_resolv="not found"])
1496          test "x$ac_cv_have_resolv" = "xnot found" || break
1497        done
1498        LIBS="$ac_save_LIBS"])
1500     case "$ac_cv_have_resolv" in
1501       "not found") ;;
1502       "none required")
1503         AC_DEFINE(HAVE_RESOLV, 1, [Define if you have the resolver library and header]) ;;
1504       *)
1505         AC_DEFINE(HAVE_RESOLV, 1)
1506         AC_SUBST(RESOLV_LIBS,$ac_cv_have_resolv) ;;
1507     esac
1509     if test "x$ac_cv_have_resolv" != "xnot found"
1510     then
1511         AC_CACHE_CHECK([for res_getservers], ac_cv_have_res_getservers,
1512                        [ac_save_LIBS="$LIBS"
1513                         LIBS="$RESOLV_LIBS $LIBS"
1514                         AC_LINK_IFELSE([AC_LANG_PROGRAM(
1515         [[#include <resolv.h>]],[[res_getservers(NULL, NULL, 0);]])],[ac_cv_have_res_getservers=yes],[ac_cv_have_res_getservers=no])
1516                          LIBS="$ac_save_LIBS"])
1517         if test "$ac_cv_have_res_getservers" = "yes"
1518         then
1519           AC_DEFINE(HAVE_RES_GETSERVERS, 1, [Define to 1 if you have the `res_getservers' function.])
1520         fi
1521     fi
1524 dnl **** Check for FreeType 2 ****
1525 if test "x$with_freetype" != "xno"
1526 then
1527     WINE_PACKAGE_FLAGS(FREETYPE,[freetype2],[-lfreetype],
1528                        [`(${FREETYPE_CONFIG:-freetype-config} --cflags || ${FREETYPE2_CONFIG:-freetype2-config} --cflags) 2>/dev/null`],
1529                        [`(${FREETYPE_CONFIG:-freetype-config} --libs || ${FREETYPE2_CONFIG:-freetype2-config} --libs) 2>/dev/null`],
1530         [AC_CHECK_HEADERS([ft2build.h])
1531         if test "$ac_cv_header_ft2build_h" = "yes"
1532         then
1533             WINE_CHECK_SONAME(freetype,FT_Init_FreeType,
1534                 [AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed])
1535                  AC_CHECK_TYPES(FT_TrueTypeEngineType,,,[#include <ft2build.h>
1536 #include FT_MODULE_H])],
1537                 [FREETYPE_LIBS=""],[$FREETYPE_LIBS])
1538         else
1539             FREETYPE_CFLAGS=""
1540             FREETYPE_LIBS=""
1541         fi])
1543 WINE_ERROR_WITH(freetype,[test "x$ac_cv_lib_soname_freetype" = x],
1544                 [FreeType ${notice_platform}development files not found. Fonts will not be built.],
1545                 [enable_fonts])
1547 dnl **** Check for pthread functions ****
1548 WINE_CHECK_LIB_FUNCS(\
1549         pthread_getthreadid_np,
1550         [$PTHREAD_LIBS])
1552 dnl **** Check for gettextpo ****
1553 if test "x$enable_tools" != xno -a "x$with_gettextpo" = xyes
1554 then
1555     if test "$ac_cv_header_gettext_po_h" = "yes"
1556     then
1557         AC_CHECK_LIB(gettextpo,po_message_msgctxt,
1558                      [AC_DEFINE(HAVE_LIBGETTEXTPO,1,[Define to 1 if you have the `gettextpo' library (-lgettextpo).])
1559                       AC_SUBST(GETTEXTPO_LIBS,"-lgettextpo")])
1560     fi
1561     WINE_NOTICE_WITH(gettextpo,[test "x$GETTEXTPO_LIBS" = "x"],
1562       [GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.])
1563     WINE_NOTICE_WITH(gettextpo,[test "$srcdir" != .],
1564       [Rebuilding po files is not supported for out of tree builds.])
1567 dnl **** Check for PulseAudio ****
1568 if test "x$with_pulse" != "xno";
1569 then
1570     WINE_PACKAGE_FLAGS(PULSE,[libpulse],,,,
1571         [AC_CHECK_HEADERS(pulse/pulseaudio.h,
1572             [AC_CHECK_LIB(pulse, pa_stream_is_corked,[:],[PULSE_LIBS=""],[$PULSE_LIBS])],
1573             [PULSE_LIBS=""])])
1575 WINE_NOTICE_WITH(pulse, [test -z "$PULSE_LIBS"],
1576         [libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.],
1577         [enable_winepulse_drv])
1579 dnl **** Check for gstreamer ****
1580 if test "x$with_gstreamer" != "xno"
1581 then
1582     WINE_PACKAGE_FLAGS(GSTREAMER,[gstreamer-1.0 gstreamer-video-1.0 gstreamer-audio-1.0],,,,
1583         [AC_CHECK_HEADER([gst/gst.h],
1584             [AC_MSG_CHECKING([whether gint64 defined by gst/gst.h is indeed 64-bit])
1585               AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gst/gst.h>]],
1586                                                  [[static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;]])],
1587                 [AC_MSG_RESULT([yes])
1588                  AC_CHECK_LIB(gstreamer-1.0,gst_pad_new,[:],,[$GSTREAMER_LIBS])],
1589                 [AC_MSG_RESULT([no])
1590                  ac_glib2_broken=yes
1591                  WINE_NOTICE([glib-2.0 pkgconfig configuration is for the wrong architecture, winegstreamer won't be built.])])])])
1593 WINE_NOTICE_WITH(gstreamer,[test "x$ac_glib2_broken" != xyes -a "x$ac_cv_lib_gstreamer_1_0_gst_pad_new" != xyes],
1594                  [gstreamer-1.0 base plugins ${notice_platform}development files not found, GStreamer won't be supported.],
1595                  [enable_winegstreamer])
1597 dnl **** Check for ALSA 1.x ****
1598 AC_SUBST(ALSA_LIBS,"")
1599 if test "x$with_alsa" != "xno"
1600 then
1601     AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access_mask,
1602         [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <alsa/asoundlib.h>]], [[snd_pcm_hw_params_get_access_mask(NULL, NULL)]])],
1603                         [ALSA_LIBS="-lasound"])])
1605 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
1607 dnl **** Check for OSSv4 ****
1608 if test "x$with_oss" != xno
1609 then
1610     ac_save_CPPFLAGS="$CPPFLAGS"
1611     if test -f /etc/oss.conf
1612     then
1613         . /etc/oss.conf
1614     fi
1615     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
1616     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
1617     AC_CHECK_HEADER([sys/soundcard.h],
1618         [AC_CHECK_MEMBERS([oss_sysinfo.numaudioengines],
1619             [AC_SUBST(OSS4_CFLAGS,"$ac_oss_incl")
1620              AC_CHECK_LIB(ossaudio,_oss_ioctl,
1621                  [AC_SUBST(OSS4_LIBS,"-lossaudio")])],,
1622             [#include <sys/soundcard.h>])])
1623     CPPFLAGS="$ac_save_CPPFLAGS"
1625 WINE_NOTICE_WITH(oss,[test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes],
1626                  [OSS sound system found but too old (OSSv4 needed), OSS won't be supported.],
1627                  [enable_wineoss_drv])
1629 dnl **** Check for libudev ****
1630 if test "x$with_udev" != "xno"
1631 then
1632     WINE_PACKAGE_FLAGS(UDEV,[libudev],[-ludev],,,
1633         [AC_CHECK_HEADERS(libudev.h,
1634             [AC_CHECK_LIB(udev,udev_new,
1635                 AC_DEFINE(HAVE_UDEV,1,[Define to 1 if you have the `udev' library (-ludev).]),
1636                 [UDEV_LIBS=""],[$UDEV_LIBS])],
1637             [UDEV_LIBS=""])])
1639 WINE_NOTICE_WITH(udev,[test "x$UDEV_LIBS" = "x"],
1640                  [libudev ${notice_platform}development files not found, plug and play won't be supported.])
1642 dnl **** Check for libunwind ****
1643 if test "x$with_unwind" != xno
1644 then
1645     WINE_PACKAGE_FLAGS(UNWIND,[libunwind],[-lunwind],,,
1646        [AC_CACHE_CHECK([for unw_step],wine_cv_have_unw_step,
1647            [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
1648 #include <libunwind.h>]],
1649                 [[unw_cursor_t cursor; unw_step( &cursor );]])],
1650                 [wine_cv_have_unw_step="yes"],[wine_cv_have_unw_step="no"])])
1651         if test "$wine_cv_have_unw_step" = no -a -n "$UNWIND_LIBS"
1652         then
1653             save_libs=$LIBS
1654             dnl Force static libgcc, libunwind breaks libgcc_s unwinding
1655             UNWIND_LIBS="-static-libgcc $UNWIND_LIBS"
1656             LIBS="$UNWIND_LIBS $LIBS"
1657             AC_CACHE_CHECK([for unw_step in libunwind],wine_cv_have_libunwind_unw_step,
1658                [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
1659 #include <libunwind.h>]],
1660                     [[unw_cursor_t cursor; unw_step( &cursor );]])],
1661                     [wine_cv_have_libunwind_unw_step="yes"],
1662                     [wine_cv_have_libunwind_unw_step="no"])])
1663             LIBS=$save_libs
1664         fi
1665         test "$wine_cv_have_libunwind_unw_step" = yes || UNWIND_LIBS=""
1666         if test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" != xnono
1667         then
1668             AC_DEFINE(HAVE_LIBUNWIND,1,[Define to 1 if you have the `unwind' library (-lunwind).])
1669         fi])
1671 case $host in
1672   aarch64*|*-darwin*)
1673     WINE_NOTICE_WITH(unwind,[test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" = xnono],
1674                      [libunwind ${notice_platform}development files not found, stack unwinding won't work.]) ;;
1675 esac
1677 dnl **** Check for libSDL2 ****
1678 if test "x$with_sdl" != "xno"
1679 then
1680     WINE_PACKAGE_FLAGS(SDL2,[sdl2],[-lSDL2],,,
1681         [AC_CHECK_HEADERS([SDL.h],
1682             [WINE_CHECK_SONAME(SDL2,SDL_Init,,,[$SDL2_LIBS],[[libSDL2-2.0*]])])])
1684 WINE_NOTICE_WITH(sdl,[test "x$ac_cv_lib_soname_SDL2" = "x"],
1685                  [libSDL2 ${notice_platform}development files not found, SDL2 won't be supported.])
1687 dnl **** Check for capi4linux ****
1688 if test "x$with_capi" != "xno"
1689 then
1690     WINE_PACKAGE_FLAGS(CAPI20,[capi20],,,,
1691      dnl Check for broken kernel header that doesn't define __user
1692     [AC_CHECK_HEADERS([capi20.h linux/capi.h],,,[#define __user])
1693     if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
1694     then
1695         AC_CHECK_LIB(capi20,capi20_register,[:],[CAPI20_LIBS=""],[$CAPI20_LIBS])
1696     fi])
1698 WINE_NOTICE_WITH(capi,[test "x$ac_cv_lib_capi20_capi20_register" != xyes],
1699                  [libcapi20 ${notice_platform}development files not found, ISDN won't be supported.],
1700                  [enable_capi2032])
1702 dnl **** Check for cups ****
1703 if test "x$with_cups" != "xno"
1704 then
1705     WINE_PACKAGE_FLAGS(CUPS,[cups],[-lcups],
1706                        [`${CUPS_CONFIG:-cups-config} --cflags 2>/dev/null`],
1707                        [`${CUPS_CONFIG:-cups-config} --libs 2>/dev/null`],
1708                        [AC_CHECK_HEADERS(cups/cups.h cups/ppd.h)
1709                         if test "$ac_cv_header_cups_cups_h" = "yes"
1710                         then
1711                             WINE_CHECK_SONAME(cups,cupsGetDefault,,[CUPS_LIBS=""],[$CUPS_LIBS])
1712                         else
1713                             CUPS_CFLAGS=""
1714                             CUPS_LIBS=""
1715                         fi])
1717 WINE_NOTICE_WITH(cups,[test "x$ac_cv_lib_soname_cups" = "x"],
1718                  [libcups ${notice_platform}development files not found, CUPS won't be supported.])
1720 dnl **** Check for fontconfig ****
1721 if test "x$with_fontconfig" != "xno"
1722 then
1723     WINE_PACKAGE_FLAGS(FONTCONFIG,[fontconfig],,[$X_CFLAGS],[$X_LIBS],
1724         [AC_CHECK_HEADERS([fontconfig/fontconfig.h])
1725         if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
1726         then
1727             WINE_CHECK_SONAME(fontconfig,FcInit,,[FONTCONFIG_CFLAGS=""],[$FONTCONFIG_LIBS])
1728         else
1729             FONTCONFIG_CFLAGS=""
1730         fi])
1732 WINE_NOTICE_WITH(fontconfig,[test "x$ac_cv_lib_soname_fontconfig" = "x"],
1733                  [fontconfig ${notice_platform}development files not found, fontconfig won't be supported.])
1735 dnl **** Check for krb5 ****
1736 if test "x$with_krb5" != "xno"
1737 then
1738     WINE_PACKAGE_FLAGS(KRB5,[krb5],,
1739                        [`${KRB5_CONFIG:-krb5-config} --cflags 2>/dev/null`],
1740                        [`${KRB5_CONFIG:-krb5-config} --libs 2>/dev/null`],
1741         [AC_CHECK_HEADERS([krb5/krb5.h])
1742          if test "$ac_cv_header_krb5_krb5_h" = "yes"
1743          then
1744              WINE_CHECK_SONAME(krb5,krb5_is_config_principal,,[KRB5_CFLAGS=""],[$KRB5_LIBS])
1745          else
1746              KRB5_CFLAGS=""
1747          fi])
1749 WINE_NOTICE_WITH(krb5,[test "x$ac_cv_lib_soname_krb5" = "x"],
1750                  [libkrb5 ${notice_platform}development files not found (or too old), Kerberos won't be supported.])
1751 test "x$ac_cv_lib_soname_krb5" != "x" || with_gssapi=${with_gssapi:-no}
1753 dnl **** Check for gssapi ****
1754 if test "x$with_gssapi" != "xno"
1755 then
1756     WINE_PACKAGE_FLAGS(GSSAPI,[krb5-gssapi],,
1757                        [`${KRB5_CONFIG:-krb5-config} --cflags gssapi 2>/dev/null`],
1758                        [`${KRB5_CONFIG:-krb5-config} --libs gssapi 2>/dev/null`],
1759         [AC_CHECK_HEADERS([gssapi/gssapi.h gssapi/gssapi_ext.h])
1760         if test "$ac_cv_header_gssapi_gssapi_h" = "yes" -a "$ac_cv_header_gssapi_gssapi_ext_h" = "yes"
1761         then
1762             WINE_CHECK_SONAME(gssapi_krb5, gss_init_sec_context,,[GSSAPI_CFLAGS=""],[$GSSAPI_LIBS])
1763         else
1764             GSSAPI_CFLAGS=""
1765         fi])
1767 WINE_NOTICE_WITH(gssapi,[test "x$ac_cv_lib_soname_gssapi_krb5" = "x"],
1768                  [libgssapi_krb5 ${notice_platform}development files not found (or too old), no Kerberos SSP support.])
1770 dnl **** Check for OpenAL 1.1 ****
1771 if test "$ac_cv_header_AL_al_h" = "yes"
1772 then
1773     WINE_CHECK_SONAME(openal,alGetSource3i,[AC_SUBST(OPENAL_LIBS,"-lopenal")
1774                       ac_cv_lib_openal=yes
1775                       AC_DEFINE_UNQUOTED(HAVE_OPENAL,1,[Define to 1 if OpenAL is available])],,)
1777 WINE_NOTICE_WITH(openal,[test "x$ac_cv_lib_openal" != xyes],
1778                  [libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.],
1779                  [enable_openal32])
1781 dnl **** Check for libprocstat ****
1782 if test "$ac_cv_header_libprocstat_h" = "yes"
1783 then
1784     AC_CHECK_LIB(procstat,procstat_open_sysctl,
1785                  [AC_DEFINE(HAVE_LIBPROCSTAT, 1, [Define to 1 if you have the `procstat' library (-lprocstat).])
1786                   AC_SUBST(PROCSTAT_LIBS,"-lprocstat")])
1789 dnl **** Check for libodbc ****
1790 WINE_CHECK_SONAME(odbc,SQLConnect,,[AC_DEFINE_UNQUOTED(SONAME_LIBODBC,["libodbc.$LIBEXT"])])
1792 dnl **** Check for libnetapi ****
1793 if test "x$with_netapi" != "xno"
1794 then
1795     WINE_PACKAGE_FLAGS(NETAPI,[netapi],,,,
1796       [WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])],[$NETAPI_LIBS])])
1798 WINE_NOTICE_WITH(netapi,[test "x$ac_cv_lib_soname_netapi" = "x"],
1799                  [libnetapi not found, Samba NetAPI won't be supported.],
1800                  [enable_netapi])
1803 dnl **** Check for any sound system ****
1804 if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv$enable_wineandroid_drv" = xnonononono -a \
1805         "x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
1806 then
1807     WINE_WARNING([No sound system was found. Windows applications will be silent.])
1810 dnl *** Check for Vulkan ***
1811 if test "x$with_vulkan" != "xno"
1812 then
1813     WINE_CHECK_SONAME(vulkan, vkGetInstanceProcAddr)
1814     if test "x$ac_cv_lib_soname_vulkan" = "x"
1815     then
1816         WINE_CHECK_SONAME(MoltenVK, vkGetInstanceProcAddr)
1817     fi
1819 WINE_NOTICE_WITH(vulkan,[test "x$ac_cv_lib_soname_vulkan" = "x" -a "x$ac_cv_lib_soname_MoltenVK" = "x"],
1820                  [libvulkan and libMoltenVK ${notice_platform}development files not found, Vulkan won't be supported.])
1822 dnl **** Check for gcc specific options ****
1824 if test "x${GCC}" = "xyes"
1825 then
1826   EXTRACFLAGS="$EXTRACFLAGS -Wall -pipe"
1828   dnl Check for some compiler flags
1829   dnl clang needs to be told to fail on unknown options
1830   saved_CFLAGS=$CFLAGS
1831   WINE_TRY_CFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
1832   WINE_TRY_CFLAGS([-Werror=unused-command-line-argument],[CFLAGS="$CFLAGS -Werror=unused-command-line-argument"])
1833   WINE_TRY_CFLAGS([-Werror=ignored-optimization-argument],[CFLAGS="$CFLAGS -Werror=ignored-optimization-argument"])
1834   WINE_TRY_CFLAGS([-fcf-protection=none])
1835   WINE_TRY_CFLAGS([-fno-stack-protector])
1836   WINE_TRY_CFLAGS([-fno-strict-aliasing])
1837   WINE_TRY_CFLAGS([-Wdeclaration-after-statement])
1838   WINE_TRY_CFLAGS([-Wempty-body])
1839   WINE_TRY_CFLAGS([-Wignored-qualifiers])
1840   WINE_TRY_CFLAGS([-Winit-self])
1841   WINE_TRY_CFLAGS([-Wpacked-not-aligned],[EXTRACFLAGS="$EXTRACFLAGS -Wno-packed-not-aligned"])
1842   WINE_TRY_CFLAGS([-Wpragma-pack],[EXTRACFLAGS="$EXTRACFLAGS -Wno-pragma-pack"])
1843   WINE_TRY_CFLAGS([-Wshift-overflow=2])
1844   WINE_TRY_CFLAGS([-Wstrict-prototypes])
1845   WINE_TRY_CFLAGS([-Wtype-limits])
1846   WINE_TRY_CFLAGS([-Wunused-but-set-parameter])
1847   WINE_TRY_CFLAGS([-Wvla])
1848   WINE_TRY_CFLAGS([-Wwrite-strings])
1850   if test -z "$CROSSTARGET"
1851   then
1852     WINE_TRY_CFLAGS([-fexcess-precision=standard],[AC_SUBST(EXCESS_PRECISION_CFLAGS,"-fexcess-precision=standard")])
1853   fi
1855   dnl Check for noisy string.h
1856   WINE_TRY_CFLAGS([-Wpointer-arith],
1857      [saved_string_h_CFLAGS=$CFLAGS
1858       CFLAGS="$CFLAGS -Wpointer-arith -Werror"
1859       AC_CACHE_CHECK([for broken string.h that generates warnings with -Wpointer-arith], ac_cv_c_string_h_warnings,
1860           AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]])],[ac_cv_c_string_h_warnings=no],[ac_cv_c_string_h_warnings=yes]))
1861       test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
1862       CFLAGS=$saved_string_h_CFLAGS])
1864   dnl Check for noisy string.h on logical ops
1865   WINE_TRY_CFLAGS([-Wlogical-op],
1866      [saved_string_h_CFLAGS=$CFLAGS
1867       CFLAGS="$CFLAGS -Wlogical-op -Werror"
1868       AC_CACHE_CHECK([for broken string.h that generates warnings with -Wlogical-op], ac_cv_c_logicalop_noisy,
1869           AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>
1870 char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=no],[ac_cv_c_logicalop_noisy=yes]))
1871       CFLAGS=$saved_string_h_CFLAGS
1872       test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"])
1874   dnl Check for 64-bit compare-and-swap
1875   AC_CACHE_CHECK([for flags needed for 64-bit compare-and-swap support], wine_cv_64bit_compare_swap,
1876       [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
1877 #error no
1878 #endif]])],
1879           [wine_cv_64bit_compare_swap="none needed"],
1880           [case $host_cpu in
1881             *i[[3456]]86*) wine_cv_64bit_compare_swap="-march=i586" ;;
1882             *arm*)         wine_cv_64bit_compare_swap="-march=armv7-a" ;;
1883             *)             wine_cv_64bit_compare_swap="unknown" ;;
1884            esac
1885            if test "x$wine_cv_64bit_compare_swap" != xunknown
1886            then
1887                dnl try with the new flags
1888                CFLAGS="$CFLAGS $wine_cv_64bit_compare_swap"
1889                AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
1890 #error no
1891 #endif]])],,[wine_cv_64bit_compare_swap="unknown"])
1892                CFLAGS=$saved_CFLAGS
1893            fi])])
1894   case "$wine_cv_64bit_compare_swap" in
1895       unknown) AC_MSG_ERROR([gcc doesn't support 64-bit compare-and-swap on this platform]) ;;
1896       "none needed") ;;
1897       *) EXTRACFLAGS="$EXTRACFLAGS $wine_cv_64bit_compare_swap" ;;
1898   esac
1900   dnl Determine debug info format
1901   ac_debug_format_seen=""
1902   for ac_flag in $CFLAGS; do
1903     case $ac_flag in
1904       -gdwarf*)    ac_debug_format_seen=yes ;;
1905       -g)          ac_debug_format_seen=${ac_debug_format_seen:-default} ;;
1906     esac
1907   done
1908   if test "x$ac_debug_format_seen" = xdefault
1909   then
1910     WINE_TRY_CFLAGS([-gdwarf-4])
1911   fi
1913   dnl Disable gcc builtins except for Mingw
1914   AC_SUBST(MSVCRTFLAGS,"")
1915   case $host_os in
1916     mingw32*)  dnl Check for delayload linker support
1917        WINE_TRY_CFLAGS([-Wl,-delayload,autoconftest.dll],[AC_SUBST(DELAYLOADFLAG,["-Wl,-delayload,"])]) ;;
1918     *) MSVCRTFLAGS="-D_WIN32"
1919        WINE_TRY_CFLAGS([-fno-builtin],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-builtin"])
1920        WINE_TRY_CFLAGS([-fshort-wchar],[MSVCRTFLAGS="$MSVCRTFLAGS -fshort-wchar"])
1921        WINE_TRY_CFLAGS([-Wno-format],[MSVCRTFLAGS="$MSVCRTFLAGS -Wno-format"]) ;;
1922   esac
1924   case $host_cpu in
1925     dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections
1926     *i[[3456789]]86*) WINE_TRY_CFLAGS([-fno-omit-frame-pointer]) ;;
1927     *x86_64*)
1928       case $host_os in
1929         dnl Mingw uses Windows 64-bit types, not Unix ones
1930         cygwin*|mingw32*) WINE_TRY_CFLAGS([-Wno-format]) ;;
1931         dnl Default to ms_abi on 64-bit
1932         *) if test -z "$CROSSTARGET"
1933            then
1934                AC_CACHE_CHECK([for working -mabi=ms], ac_cv_mabi_ms,
1935                    [CFLAGS="$CFLAGS -mabi=ms"
1936                     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
1937 int a(int b, ...) { __builtin_ms_va_list list; __builtin_ms_va_start(list,b); }]])],
1938                        [ac_cv_mabi_ms=yes],[ac_cv_mabi_ms=no])
1939                     CFLAGS=$saved_CFLAGS])
1940                test $ac_cv_mabi_ms = yes || AC_MSG_ERROR([The compiler doesn't support -mabi=ms. Use gcc instead of clang, or install mingw-w64.])
1941            fi
1942            MSVCRTFLAGS="$MSVCRTFLAGS -mabi=ms" ;;
1943       esac ;;
1944     arm*)
1945       WINE_TRY_CFLAGS([-Wincompatible-function-pointer-types],[EXTRACFLAGS="$EXTRACFLAGS -Wno-error=incompatible-function-pointer-types"]) ;;
1946   esac
1948   CFLAGS=$saved_CFLAGS
1950   dnl Enable -Werror
1951   if test "x$enable_werror" = "xyes"
1952   then
1953       WINE_TRY_CFLAGS([-Werror])
1954   fi
1955   if test "x$enable_build_id" = "xyes"
1956   then
1957       WINE_TRY_CFLAGS([-Wl,--build-id], [CFLAGS="$CFLAGS -Wl,--build-id"
1958                       LDFLAGS="$LDFLAGS -Wl,--build-id"])
1959   fi
1962 dnl **** Disable Fortify, it has too many false positives
1964 AC_CACHE_CHECK([for the need to disable Fortify], ac_cv_c_fortify_enabled,
1965     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],
1966 [[#if (defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0) || (defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0)
1967 #error Fortify enabled
1968 #endif]])],
1969         [ac_cv_c_fortify_enabled=no],[ac_cv_c_fortify_enabled=yes]))
1970 if test "$ac_cv_c_fortify_enabled" = yes
1971 then
1972     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
1975 dnl **** Check for CFI directives support ****
1977 AC_CACHE_CHECK([whether CFI directives are supported in assembly code], ac_cv_c_cfi_support,
1978     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");]])],
1979                       ac_cv_c_cfi_support="yes",ac_cv_c_cfi_support="no"))
1980 if test "$ac_cv_c_cfi_support" = "yes"
1981 then
1982    DLLFLAGS="$DLLFLAGS -fasynchronous-unwind-tables"
1983    LDDLLFLAGS="$LDDLLFLAGS -fasynchronous-unwind-tables"
1984    UNIXDLLFLAGS="$UNIXDLLFLAGS -fasynchronous-unwind-tables"
1985 else
1986    if test "x$enable_win64" = "xyes"
1987    then
1988       WINE_WARNING([building 64-bit Wine without support for CFI directives; exception handling will not work properly.])
1989    fi
1992 dnl **** Platform-specific checks ****
1994 case $host_os in
1995   linux*)
1996     case $host_cpu in
1997       *i[[3456789]]86*|x86_64*|*aarch64*|arm*)
1998         test "$wine_binary" = wine || WINE_IGNORE_FILE("loader/wine-preloader")
1999         WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
2000         ;;
2001     esac
2002     ;;
2003 esac
2005 dnl **** Check for functions ****
2007 ac_save_CFLAGS="$CFLAGS"
2008 CFLAGS="$CFLAGS $BUILTINFLAG"
2009 AC_CHECK_FUNCS(\
2010         epoll_create \
2011         fstatfs \
2012         futimens \
2013         futimes \
2014         futimesat \
2015         getattrlist \
2016         getauxval \
2017         getifaddrs \
2018         getrandom \
2019         kqueue \
2020         mach_continuous_time \
2021         pipe2 \
2022         port_create \
2023         posix_fadvise \
2024         posix_fallocate \
2025         prctl \
2026         proc_pidinfo \
2027         sched_yield \
2028         setproctitle \
2029         setprogname \
2030         sigprocmask \
2031         sysinfo \
2032         tcdrain \
2033         thr_kill2
2035 CFLAGS="$ac_save_CFLAGS"
2037 dnl Check for -ldl
2038 AC_SEARCH_LIBS(dlopen, dl)
2039 WINE_CHECK_LIB_FUNCS(dlinfo,[$DL_LIBS])
2041 dnl Check for -lnsl for Solaris
2042 AC_SEARCH_LIBS(gethostbyname, nsl)
2044 dnl Check for -lsocket for Solaris
2045 AC_SEARCH_LIBS(connect, socket)
2047 dnl Check for -lresolv for Solaris
2048 AC_SEARCH_LIBS(inet_aton, resolv)
2050 dnl **** Check for functions which may rely on -lsocket on Solaris.
2051 AC_CHECK_FUNCS(getaddrinfo)
2053 dnl Check for clock_gettime which may be in -lrt
2054 case $host_os in
2055     darwin*|macosx*) ;;
2056     *) ac_save_LIBS=$LIBS
2057         AC_SEARCH_LIBS(clock_gettime, rt,
2058             [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define to 1 if you have the `clock_gettime' function.])
2059                 test "$ac_res" = "none required" || AC_SUBST(RT_LIBS,"$ac_res")])
2060     LIBS=$ac_save_LIBS
2061     ;;
2062 esac
2064 dnl **** Check for OpenLDAP ***
2065 if test "x$with_ldap" != "xno"
2066 then
2067     dnl Actually there's no pkg-config support for ldap, but this way we can still override the flags
2068     WINE_PACKAGE_FLAGS(LDAP,[openldap],[-lldap -llber],,,
2069         [AC_CHECK_HEADERS([ldap.h lber.h])
2070         if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
2071         then
2072             AC_CHECK_TYPE(LDAPSortKey,
2073                 [AC_CHECK_LIB(ldap, ldap_initialize,
2074                     [AC_CHECK_LIB(lber, ber_init,
2075                         [AC_DEFINE(HAVE_LDAP, 1, [Define if you have the OpenLDAP development environment])],
2076                         [LDAP_LIBS=""],
2077                         [$PTHREAD_LIBS $LDAP_LIBS])],
2078                     [LDAP_LIBS=""],
2079                     [$PTHREAD_LIBS $LDAP_LIBS])],
2080                 [LDAP_LIBS=""],
2081                 [#include <ldap.h>])
2082         else
2083             LDAP_LIBS=""
2084         fi])
2086 WINE_NOTICE_WITH(ldap,[test "x$LDAP_LIBS" = "x"],
2087                  [libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.])
2089 AC_CACHE_CHECK([for sched_setaffinity],wine_cv_have_sched_setaffinity,
2090                 AC_LINK_IFELSE([AC_LANG_PROGRAM(
2091 [[#include <sched.h>]], [[sched_setaffinity(0, 0, 0);]])],[wine_cv_have_sched_setaffinity=yes],[wine_cv_have_sched_setaffinity=no]))
2092 if test "$wine_cv_have_sched_setaffinity" = "yes"
2093 then
2094   AC_DEFINE(HAVE_SCHED_SETAFFINITY, 1, [Define to 1 if you have the `sched_setaffinity' function.])
2097 dnl **** Check for types ****
2099 AC_C_INLINE
2100 AC_CHECK_TYPES([sigset_t],,,[#include <sys/types.h>
2101 #include <signal.h>])
2102 AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>])
2104 AC_CHECK_TYPES([struct xinpgen],,,
2105 [#include <sys/types.h>
2106 #include <sys/socket.h>
2107 #ifdef HAVE_SYS_SOCKETVAR_H
2108 #include <sys/socketvar.h>
2109 #endif
2110 #ifdef HAVE_NET_ROUTE_H
2111 #include <net/route.h>
2112 #endif
2113 #ifdef HAVE_NETINET_IN_H
2114 #include <netinet/in.h>
2115 #endif
2116 #ifdef HAVE_NETINET_IN_SYSTM_H
2117 #include <netinet/in_systm.h>
2118 #endif
2119 #ifdef HAVE_NETINET_IP_H
2120 #include <netinet/ip.h>
2121 #endif
2122 #ifdef HAVE_NETINET_IN_PCB_H
2123 #include <netinet/in_pcb.h>
2124 #endif])
2126 AC_CACHE_CHECK([for sigaddset],wine_cv_have_sigaddset,
2127                AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>]], [[sigset_t set; sigaddset(&set,SIGTERM);]])],[wine_cv_have_sigaddset=yes],[wine_cv_have_sigaddset=no]))
2128 if test "$wine_cv_have_sigaddset" = "yes"
2129 then
2130   AC_DEFINE(HAVE_SIGADDSET, 1, [Define if sigaddset is supported])
2134 AC_CACHE_CHECK([whether we can use re-entrant gethostbyname_r Linux style],
2135         wine_cv_linux_gethostbyname_r_6,
2136         AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]],[[
2137     char *name=0;
2138     struct hostent he;
2139     struct hostent *result;
2140     char *buf=0;
2141     int bufsize=0;
2142     int errnr;
2143     char *addr=0;
2144     int addrlen=0;
2145     int addrtype=0;
2146     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
2147     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
2148     ]])],[wine_cv_linux_gethostbyname_r_6=yes],[wine_cv_linux_gethostbyname_r_6=no
2149         ])
2150    )
2151    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
2152    then
2153       AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6, 1,
2154                 [Define if Linux-style gethostbyname_r and gethostbyaddr_r are available])
2155    fi
2157 dnl Check for socket structure members
2158 AC_CHECK_MEMBERS([struct msghdr.msg_accrights, struct sockaddr_un.sun_len],,,
2159 [#include <sys/types.h>
2160 #include <sys/socket.h>
2161 #ifdef HAVE_SYS_UN_H
2162 # include <sys/un.h>
2163 #endif])
2165 dnl Check for scsireq_t and sg_io_hdr_t members
2166 AC_CHECK_MEMBERS([scsireq_t.cmd, sg_io_hdr_t.interface_id],,,
2167 [#include <sys/types.h>
2168 #ifdef HAVE_SCSI_SG_H
2169 #include <scsi/sg.h>
2170 #endif])
2172 dnl Check for siginfo_t members
2173 AC_CHECK_MEMBERS([siginfo_t.si_fd],,,[#include <signal.h>])
2175 dnl Check for struct mtget members
2176 AC_CHECK_MEMBERS([struct mtget.mt_blksiz, struct mtget.mt_gstat, struct mtget.mt_blkno],,,
2177 [#include <sys/types.h>
2178 #ifdef HAVE_SYS_MTIO_H
2179 #include <sys/mtio.h>
2180 #endif])
2182 dnl Check for stat.st_blocks and ns-resolved times
2183 AC_CHECK_MEMBERS([
2184         struct stat.st_mtim,
2185         struct stat.st_mtimespec,
2186         struct stat.st_ctim,
2187         struct stat.st_ctimespec,
2188         struct stat.st_atim,
2189         struct stat.st_atimespec,
2190         struct stat.st_birthtime,
2191         struct stat.st_birthtim,
2192         struct stat.st_birthtimespec,
2193         struct stat.__st_birthtime,
2194         struct stat.__st_birthtim])
2196 dnl Check for sin6_scope_id
2197 AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,,
2198 [#include <sys/types.h>
2199 #ifdef HAVE_NETINET_IN_H
2200 #include <netinet/in.h>
2201 #endif])
2203 dnl Check for struct __res_state._u._ext.nscount6
2204 AC_CHECK_MEMBERS([struct __res_state._u._ext.nscount6],,,
2205 [#ifdef HAVE_RESOLV_H
2206 #include <resolv.h>
2207 #endif])
2209 dnl Check for struct in6_pktinfo
2210 AC_CHECK_MEMBERS([struct in6_pktinfo.ipi6_addr],,,
2211 [#ifdef HAVE_NETINET_IN_H
2212 #include <netinet/in.h>
2213 #endif])
2215 dnl Check for struct ipstat
2216 AC_CHECK_MEMBERS([struct ipstat.ips_total],,,
2217 [#include <sys/types.h>
2218 #ifdef HAVE_SYS_SOCKETVAR_H
2219 #include <sys/socketvar.h>
2220 #endif
2221 #ifdef HAVE_NETINET_IN_H
2222 #include <netinet/in.h>
2223 #endif
2224 #ifdef HAVE_NETINET_IP_VAR_H
2225 #include <netinet/ip_var.h>
2226 #endif])
2228 dnl Check for struct ip_stats
2229 AC_CHECK_MEMBERS([struct ip_stats.ips_total],,,
2230 [#ifdef HAVE_NETINET_IP_VAR_H
2231 #include <netinet/ip_var.h>
2232 #endif])
2234 dnl Check for struct ip6stat
2235 AC_CHECK_MEMBERS([struct ip6stat.ip6s_total],,,
2236 [#include <sys/types.h>
2237 #ifdef HAVE_SYS_SOCKETVAR_H
2238 #include <sys/socketvar.h>
2239 #endif
2240 #ifdef HAVE_NETINET_IN_H
2241 #include <netinet/in.h>
2242 #endif
2243 #ifdef HAVE_NETINET6_IP6_VAR_H
2244 #include <netinet6/ip6_var.h>
2245 #endif])
2247 dnl Check for struct icmpstat
2248 AC_CHECK_MEMBERS([struct icmpstat.icps_error],,,
2249 [#include <sys/types.h>
2250 #ifdef HAVE_SYS_SOCKETVAR_H
2251 #include <sys/socketvar.h>
2252 #endif
2253 #ifdef HAVE_NETINET_IN_H
2254 #include <netinet/in.h>
2255 #endif
2256 #ifdef HAVE_NETINET_IP_H
2257 #include <netinet/ip.h>
2258 #endif
2259 #ifdef HAVE_NETINET_IP_ICMP_H
2260 #include <netinet/ip_icmp.h>
2261 #endif
2262 #ifdef HAVE_NETINET_ICMP_VAR_H
2263 #include <netinet/icmp_var.h>
2264 #endif])
2266 dnl Check for struct icmp6stat
2267 AC_CHECK_MEMBERS([struct icmp6stat.icp6s_error],,,
2268 [#include <sys/types.h>
2269 #ifdef HAVE_SYS_SOCKETVAR_H
2270 #include <sys/socketvar.h>
2271 #endif
2272 #ifdef HAVE_NETINET_IN_H
2273 #include <netinet/in.h>
2274 #endif
2275 #ifdef HAVE_NETINET_ICMP6_H
2276 #include <netinet/icmp6.h>
2277 #endif])
2279 dnl Check for struct tcpstat
2280 AC_CHECK_MEMBERS([struct tcpstat.tcps_connattempt],,,
2281 [#include <sys/types.h>
2282 #ifdef HAVE_SYS_SOCKETVAR_H
2283 #include <sys/socketvar.h>
2284 #endif
2285 #ifdef HAVE_NETINET_IN_H
2286 #include <netinet/in.h>
2287 #endif
2288 #ifdef HAVE_NETINET_TCP_H
2289 #include <netinet/tcp.h>
2290 #endif
2291 #ifdef HAVE_NETINET_TCP_VAR_H
2292 #include <netinet/tcp_var.h>
2293 #endif])
2295 dnl Check for struct tcp_stats
2296 AC_CHECK_MEMBERS([struct tcp_stats.tcps_connattempt],,,
2297 [#ifdef HAVE_NETINET_TCP_VAR_H
2298 #include <netinet/tcp_var.h>
2299 #endif])
2301 dnl Check for struct udpstat
2302 AC_CHECK_MEMBERS([struct udpstat.udps_ipackets],,,
2303 [#include <sys/types.h>
2304 #ifdef HAVE_NETINET_IN_H
2305 #include <netinet/in.h>
2306 #endif
2307 #ifdef HAVE_NETINET_IP_VAR_H
2308 #include <netinet/ip_var.h>
2309 #endif
2310 #ifdef HAVE_NETINET_UDP_H
2311 #include <netinet/udp.h>
2312 #endif
2313 #ifdef HAVE_NETINET_UDP_VAR_H
2314 #include <netinet/udp_var.h>
2315 #endif])
2317 dnl Check for struct ifreq.ifr_hwaddr
2318 AC_CHECK_MEMBERS([struct ifreq.ifr_hwaddr],,,
2319 [#include <sys/types.h>
2320 #ifdef HAVE_NET_IF_H
2321 # include <net/if.h>
2322 #endif])
2324 dnl Check for struct sysinfo members totalram and mem_unit
2325 AC_CHECK_MEMBERS([struct sysinfo.totalram, struct sysinfo.mem_unit],,,
2326 [#ifdef HAVE_SYS_SYSINFO_H
2327 # include <sys/sysinfo.h>
2328 #endif])
2330 LIBS="$ac_save_LIBS"
2332 dnl Check for __builtin_popcount
2333 AC_CACHE_CHECK([for __builtin_popcount], ac_cv_have___builtin_popcount,
2334                AC_LINK_IFELSE([AC_LANG_PROGRAM(,[[return __builtin_popcount(1)]])],
2335                [ac_cv_have___builtin_popcount="yes"], [ac_cv_have___builtin_popcount="no"]))
2336 if test "$ac_cv_have___builtin_popcount" = "yes"
2337 then
2338     AC_DEFINE(HAVE___BUILTIN_POPCOUNT, 1, [Define to 1 if you have the `__builtin_popcount' built-in function.])
2341 AC_CACHE_CHECK([for __clear_cache], ac_cv_have___clear_cache,
2342                AC_LINK_IFELSE([AC_LANG_PROGRAM(,[[__clear_cache((void*)0, (void*)0); return 0;]])],
2343                [ac_cv_have___clear_cache="yes"], [ac_cv_have___clear_cache="no"]))
2344 if test "$ac_cv_have___clear_cache" = "yes"
2345 then
2346     AC_DEFINE(HAVE___CLEAR_CACHE, 1, [Define to 1 if you have the `__clear_cache' (potentially built-in) function.])
2349 dnl *** check for the need to define platform-specific symbols
2351 case $host_cpu in
2352   *i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
2353   *x86_64*)         WINE_CHECK_DEFINE([__x86_64__]) ;;
2354   *sparc64*)        WINE_CHECK_DEFINE([__sparc64__]) ;;
2355   *sparc*)          WINE_CHECK_DEFINE([__sparc__]) ;;
2356   *powerpc64*)      WINE_CHECK_DEFINE([__powerpc64__]) ;;
2357   *powerpc*)        WINE_CHECK_DEFINE([__powerpc__]) ;;
2358   *aarch64*)        WINE_CHECK_DEFINE([__aarch64__]) ;;
2359   *arm*)            WINE_CHECK_DEFINE([__arm__]) ;;
2360 esac
2362 case $host_vendor in
2363   *sun*) WINE_CHECK_DEFINE([__sun__]) ;;
2364 esac
2366 dnl **** Generate output files ****
2368 AH_TOP([#ifndef __WINE_CONFIG_H
2369 #define __WINE_CONFIG_H])
2370 AH_BOTTOM([#endif /* __WINE_CONFIG_H */])
2372 AC_CONFIG_COMMANDS([include/stamp-h], [echo timestamp > include/stamp-h])
2373 AS_ECHO_N("creating Makefile rules...") >&AS_MESSAGE_FD
2375 makedep_flags=""
2376 test "x$enable_silent_rules" = xyes && makedep_flags="$makedep_flags -S"
2378 wine_srcdir=
2379 test "$srcdir" = . || wine_srcdir="$srcdir/"
2381 WINE_CONFIG_SYMLINK(wine,tools/winewrapper)
2382 WINE_CONFIG_SYMLINK(wine64,tools/winewrapper,["x$enable_win64" != xno -o -n "$with_wine64"])
2384 WINE_CONFIG_MAKEFILE(dlls/acledit)
2385 WINE_CONFIG_MAKEFILE(dlls/aclui)
2386 WINE_CONFIG_MAKEFILE(dlls/activeds.tlb)
2387 WINE_CONFIG_MAKEFILE(dlls/activeds)
2388 WINE_CONFIG_MAKEFILE(dlls/activeds/tests)
2389 WINE_CONFIG_MAKEFILE(dlls/actxprxy)
2390 WINE_CONFIG_MAKEFILE(dlls/adsldp)
2391 WINE_CONFIG_MAKEFILE(dlls/adsldp/tests)
2392 WINE_CONFIG_MAKEFILE(dlls/adsldpc)
2393 WINE_CONFIG_MAKEFILE(dlls/advapi32)
2394 WINE_CONFIG_MAKEFILE(dlls/advapi32/tests)
2395 WINE_CONFIG_MAKEFILE(dlls/advpack)
2396 WINE_CONFIG_MAKEFILE(dlls/advpack/tests)
2397 WINE_CONFIG_MAKEFILE(dlls/amsi)
2398 WINE_CONFIG_MAKEFILE(dlls/amstream)
2399 WINE_CONFIG_MAKEFILE(dlls/amstream/tests)
2400 WINE_CONFIG_MAKEFILE(dlls/apisetschema)
2401 WINE_CONFIG_MAKEFILE(dlls/apphelp)
2402 WINE_CONFIG_MAKEFILE(dlls/apphelp/tests)
2403 WINE_CONFIG_MAKEFILE(dlls/appwiz.cpl)
2404 WINE_CONFIG_MAKEFILE(dlls/atl)
2405 WINE_CONFIG_MAKEFILE(dlls/atl/tests)
2406 WINE_CONFIG_MAKEFILE(dlls/atl100)
2407 WINE_CONFIG_MAKEFILE(dlls/atl100/tests)
2408 WINE_CONFIG_MAKEFILE(dlls/atl110)
2409 WINE_CONFIG_MAKEFILE(dlls/atl110/tests)
2410 WINE_CONFIG_MAKEFILE(dlls/atl80)
2411 WINE_CONFIG_MAKEFILE(dlls/atl80/tests)
2412 WINE_CONFIG_MAKEFILE(dlls/atl90)
2413 WINE_CONFIG_MAKEFILE(dlls/atlthunk)
2414 WINE_CONFIG_MAKEFILE(dlls/atlthunk/tests)
2415 WINE_CONFIG_MAKEFILE(dlls/atmlib)
2416 WINE_CONFIG_MAKEFILE(dlls/authz)
2417 WINE_CONFIG_MAKEFILE(dlls/avicap32)
2418 WINE_CONFIG_MAKEFILE(dlls/avifil32)
2419 WINE_CONFIG_MAKEFILE(dlls/avifil32/tests)
2420 WINE_CONFIG_MAKEFILE(dlls/avifile.dll16,enable_win16)
2421 WINE_CONFIG_MAKEFILE(dlls/avrt)
2422 WINE_CONFIG_MAKEFILE(dlls/bcrypt)
2423 WINE_CONFIG_MAKEFILE(dlls/bcrypt/tests)
2424 WINE_CONFIG_MAKEFILE(dlls/bluetoothapis)
2425 WINE_CONFIG_MAKEFILE(dlls/browseui)
2426 WINE_CONFIG_MAKEFILE(dlls/browseui/tests)
2427 WINE_CONFIG_MAKEFILE(dlls/bthprops.cpl)
2428 WINE_CONFIG_MAKEFILE(dlls/cabinet)
2429 WINE_CONFIG_MAKEFILE(dlls/cabinet/tests)
2430 WINE_CONFIG_MAKEFILE(dlls/capi2032)
2431 WINE_CONFIG_MAKEFILE(dlls/cards)
2432 WINE_CONFIG_MAKEFILE(dlls/cdosys)
2433 WINE_CONFIG_MAKEFILE(dlls/cfgmgr32)
2434 WINE_CONFIG_MAKEFILE(dlls/clusapi)
2435 WINE_CONFIG_MAKEFILE(dlls/cng.sys)
2436 WINE_CONFIG_MAKEFILE(dlls/combase)
2437 WINE_CONFIG_MAKEFILE(dlls/combase/tests)
2438 WINE_CONFIG_MAKEFILE(dlls/comcat)
2439 WINE_CONFIG_MAKEFILE(dlls/comcat/tests)
2440 WINE_CONFIG_MAKEFILE(dlls/comctl32)
2441 WINE_CONFIG_MAKEFILE(dlls/comctl32/tests)
2442 WINE_CONFIG_MAKEFILE(dlls/comdlg32)
2443 WINE_CONFIG_MAKEFILE(dlls/comdlg32/tests)
2444 WINE_CONFIG_MAKEFILE(dlls/comm.drv16,enable_win16)
2445 WINE_CONFIG_MAKEFILE(dlls/commdlg.dll16,enable_win16)
2446 WINE_CONFIG_MAKEFILE(dlls/compobj.dll16,enable_win16)
2447 WINE_CONFIG_MAKEFILE(dlls/compstui)
2448 WINE_CONFIG_MAKEFILE(dlls/compstui/tests)
2449 WINE_CONFIG_MAKEFILE(dlls/comsvcs)
2450 WINE_CONFIG_MAKEFILE(dlls/comsvcs/tests)
2451 WINE_CONFIG_MAKEFILE(dlls/concrt140)
2452 WINE_CONFIG_MAKEFILE(dlls/concrt140/tests)
2453 WINE_CONFIG_MAKEFILE(dlls/connect)
2454 WINE_CONFIG_MAKEFILE(dlls/credui)
2455 WINE_CONFIG_MAKEFILE(dlls/credui/tests)
2456 WINE_CONFIG_MAKEFILE(dlls/crtdll)
2457 WINE_CONFIG_MAKEFILE(dlls/crypt32)
2458 WINE_CONFIG_MAKEFILE(dlls/crypt32/tests)
2459 WINE_CONFIG_MAKEFILE(dlls/cryptdlg)
2460 WINE_CONFIG_MAKEFILE(dlls/cryptdll)
2461 WINE_CONFIG_MAKEFILE(dlls/cryptext)
2462 WINE_CONFIG_MAKEFILE(dlls/cryptnet)
2463 WINE_CONFIG_MAKEFILE(dlls/cryptnet/tests)
2464 WINE_CONFIG_MAKEFILE(dlls/cryptowinrt)
2465 WINE_CONFIG_MAKEFILE(dlls/cryptsp)
2466 WINE_CONFIG_MAKEFILE(dlls/cryptui)
2467 WINE_CONFIG_MAKEFILE(dlls/cryptui/tests)
2468 WINE_CONFIG_MAKEFILE(dlls/ctapi32)
2469 WINE_CONFIG_MAKEFILE(dlls/ctl3d.dll16,enable_win16)
2470 WINE_CONFIG_MAKEFILE(dlls/ctl3d32)
2471 WINE_CONFIG_MAKEFILE(dlls/ctl3dv2.dll16,enable_win16)
2472 WINE_CONFIG_MAKEFILE(dlls/d2d1)
2473 WINE_CONFIG_MAKEFILE(dlls/d2d1/tests)
2474 WINE_CONFIG_MAKEFILE(dlls/d3d10)
2475 WINE_CONFIG_MAKEFILE(dlls/d3d10/tests)
2476 WINE_CONFIG_MAKEFILE(dlls/d3d10_1)
2477 WINE_CONFIG_MAKEFILE(dlls/d3d10_1/tests)
2478 WINE_CONFIG_MAKEFILE(dlls/d3d10core)
2479 WINE_CONFIG_MAKEFILE(dlls/d3d10core/tests)
2480 WINE_CONFIG_MAKEFILE(dlls/d3d11)
2481 WINE_CONFIG_MAKEFILE(dlls/d3d11/tests)
2482 WINE_CONFIG_MAKEFILE(dlls/d3d12)
2483 WINE_CONFIG_MAKEFILE(dlls/d3d12/tests)
2484 WINE_CONFIG_MAKEFILE(dlls/d3d8)
2485 WINE_CONFIG_MAKEFILE(dlls/d3d8/tests)
2486 WINE_CONFIG_MAKEFILE(dlls/d3d8thk)
2487 WINE_CONFIG_MAKEFILE(dlls/d3d9)
2488 WINE_CONFIG_MAKEFILE(dlls/d3d9/tests)
2489 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_33)
2490 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_34)
2491 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_35)
2492 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_36)
2493 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_37)
2494 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_38)
2495 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_39)
2496 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_40)
2497 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_41)
2498 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_42)
2499 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_43)
2500 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_43/tests)
2501 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_46)
2502 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_46/tests)
2503 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47)
2504 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47/tests)
2505 WINE_CONFIG_MAKEFILE(dlls/d3dim)
2506 WINE_CONFIG_MAKEFILE(dlls/d3dim700)
2507 WINE_CONFIG_MAKEFILE(dlls/d3drm)
2508 WINE_CONFIG_MAKEFILE(dlls/d3drm/tests)
2509 WINE_CONFIG_MAKEFILE(dlls/d3dx10_33)
2510 WINE_CONFIG_MAKEFILE(dlls/d3dx10_34)
2511 WINE_CONFIG_MAKEFILE(dlls/d3dx10_34/tests)
2512 WINE_CONFIG_MAKEFILE(dlls/d3dx10_35)
2513 WINE_CONFIG_MAKEFILE(dlls/d3dx10_35/tests)
2514 WINE_CONFIG_MAKEFILE(dlls/d3dx10_36)
2515 WINE_CONFIG_MAKEFILE(dlls/d3dx10_36/tests)
2516 WINE_CONFIG_MAKEFILE(dlls/d3dx10_37)
2517 WINE_CONFIG_MAKEFILE(dlls/d3dx10_37/tests)
2518 WINE_CONFIG_MAKEFILE(dlls/d3dx10_38)
2519 WINE_CONFIG_MAKEFILE(dlls/d3dx10_38/tests)
2520 WINE_CONFIG_MAKEFILE(dlls/d3dx10_39)
2521 WINE_CONFIG_MAKEFILE(dlls/d3dx10_39/tests)
2522 WINE_CONFIG_MAKEFILE(dlls/d3dx10_40)
2523 WINE_CONFIG_MAKEFILE(dlls/d3dx10_40/tests)
2524 WINE_CONFIG_MAKEFILE(dlls/d3dx10_41)
2525 WINE_CONFIG_MAKEFILE(dlls/d3dx10_41/tests)
2526 WINE_CONFIG_MAKEFILE(dlls/d3dx10_42)
2527 WINE_CONFIG_MAKEFILE(dlls/d3dx10_42/tests)
2528 WINE_CONFIG_MAKEFILE(dlls/d3dx10_43)
2529 WINE_CONFIG_MAKEFILE(dlls/d3dx10_43/tests)
2530 WINE_CONFIG_MAKEFILE(dlls/d3dx11_42)
2531 WINE_CONFIG_MAKEFILE(dlls/d3dx11_42/tests)
2532 WINE_CONFIG_MAKEFILE(dlls/d3dx11_43)
2533 WINE_CONFIG_MAKEFILE(dlls/d3dx11_43/tests)
2534 WINE_CONFIG_MAKEFILE(dlls/d3dx9_24)
2535 WINE_CONFIG_MAKEFILE(dlls/d3dx9_25)
2536 WINE_CONFIG_MAKEFILE(dlls/d3dx9_26)
2537 WINE_CONFIG_MAKEFILE(dlls/d3dx9_27)
2538 WINE_CONFIG_MAKEFILE(dlls/d3dx9_28)
2539 WINE_CONFIG_MAKEFILE(dlls/d3dx9_29)
2540 WINE_CONFIG_MAKEFILE(dlls/d3dx9_30)
2541 WINE_CONFIG_MAKEFILE(dlls/d3dx9_31)
2542 WINE_CONFIG_MAKEFILE(dlls/d3dx9_32)
2543 WINE_CONFIG_MAKEFILE(dlls/d3dx9_33)
2544 WINE_CONFIG_MAKEFILE(dlls/d3dx9_34)
2545 WINE_CONFIG_MAKEFILE(dlls/d3dx9_35)
2546 WINE_CONFIG_MAKEFILE(dlls/d3dx9_36)
2547 WINE_CONFIG_MAKEFILE(dlls/d3dx9_36/tests)
2548 WINE_CONFIG_MAKEFILE(dlls/d3dx9_37)
2549 WINE_CONFIG_MAKEFILE(dlls/d3dx9_38)
2550 WINE_CONFIG_MAKEFILE(dlls/d3dx9_39)
2551 WINE_CONFIG_MAKEFILE(dlls/d3dx9_40)
2552 WINE_CONFIG_MAKEFILE(dlls/d3dx9_41)
2553 WINE_CONFIG_MAKEFILE(dlls/d3dx9_42)
2554 WINE_CONFIG_MAKEFILE(dlls/d3dx9_43)
2555 WINE_CONFIG_MAKEFILE(dlls/d3dxof)
2556 WINE_CONFIG_MAKEFILE(dlls/d3dxof/tests)
2557 WINE_CONFIG_MAKEFILE(dlls/davclnt)
2558 WINE_CONFIG_MAKEFILE(dlls/dbgeng)
2559 WINE_CONFIG_MAKEFILE(dlls/dbgeng/tests)
2560 WINE_CONFIG_MAKEFILE(dlls/dbghelp)
2561 WINE_CONFIG_MAKEFILE(dlls/dbghelp/tests)
2562 WINE_CONFIG_MAKEFILE(dlls/dciman32)
2563 WINE_CONFIG_MAKEFILE(dlls/dcomp)
2564 WINE_CONFIG_MAKEFILE(dlls/ddeml.dll16,enable_win16)
2565 WINE_CONFIG_MAKEFILE(dlls/ddraw)
2566 WINE_CONFIG_MAKEFILE(dlls/ddraw/tests)
2567 WINE_CONFIG_MAKEFILE(dlls/ddrawex)
2568 WINE_CONFIG_MAKEFILE(dlls/ddrawex/tests)
2569 WINE_CONFIG_MAKEFILE(dlls/devenum)
2570 WINE_CONFIG_MAKEFILE(dlls/devenum/tests)
2571 WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc)
2572 WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc/tests)
2573 WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc6)
2574 WINE_CONFIG_MAKEFILE(dlls/dhtmled.ocx)
2575 WINE_CONFIG_MAKEFILE(dlls/diasymreader)
2576 WINE_CONFIG_MAKEFILE(dlls/difxapi)
2577 WINE_CONFIG_MAKEFILE(dlls/dinput)
2578 WINE_CONFIG_MAKEFILE(dlls/dinput/tests)
2579 WINE_CONFIG_MAKEFILE(dlls/dinput8)
2580 WINE_CONFIG_MAKEFILE(dlls/directmanipulation)
2581 WINE_CONFIG_MAKEFILE(dlls/directmanipulation/tests)
2582 WINE_CONFIG_MAKEFILE(dlls/dispdib.dll16,enable_win16)
2583 WINE_CONFIG_MAKEFILE(dlls/dispex)
2584 WINE_CONFIG_MAKEFILE(dlls/dispex/tests)
2585 WINE_CONFIG_MAKEFILE(dlls/display.drv16,enable_win16)
2586 WINE_CONFIG_MAKEFILE(dlls/dmband)
2587 WINE_CONFIG_MAKEFILE(dlls/dmband/tests)
2588 WINE_CONFIG_MAKEFILE(dlls/dmcompos)
2589 WINE_CONFIG_MAKEFILE(dlls/dmcompos/tests)
2590 WINE_CONFIG_MAKEFILE(dlls/dmime)
2591 WINE_CONFIG_MAKEFILE(dlls/dmime/tests)
2592 WINE_CONFIG_MAKEFILE(dlls/dmloader)
2593 WINE_CONFIG_MAKEFILE(dlls/dmloader/tests)
2594 WINE_CONFIG_MAKEFILE(dlls/dmscript)
2595 WINE_CONFIG_MAKEFILE(dlls/dmscript/tests)
2596 WINE_CONFIG_MAKEFILE(dlls/dmstyle)
2597 WINE_CONFIG_MAKEFILE(dlls/dmstyle/tests)
2598 WINE_CONFIG_MAKEFILE(dlls/dmsynth)
2599 WINE_CONFIG_MAKEFILE(dlls/dmsynth/tests)
2600 WINE_CONFIG_MAKEFILE(dlls/dmusic)
2601 WINE_CONFIG_MAKEFILE(dlls/dmusic/tests)
2602 WINE_CONFIG_MAKEFILE(dlls/dmusic32)
2603 WINE_CONFIG_MAKEFILE(dlls/dnsapi)
2604 WINE_CONFIG_MAKEFILE(dlls/dnsapi/tests)
2605 WINE_CONFIG_MAKEFILE(dlls/dplay)
2606 WINE_CONFIG_MAKEFILE(dlls/dplayx)
2607 WINE_CONFIG_MAKEFILE(dlls/dplayx/tests)
2608 WINE_CONFIG_MAKEFILE(dlls/dpnaddr)
2609 WINE_CONFIG_MAKEFILE(dlls/dpnet)
2610 WINE_CONFIG_MAKEFILE(dlls/dpnet/tests)
2611 WINE_CONFIG_MAKEFILE(dlls/dpnhpast)
2612 WINE_CONFIG_MAKEFILE(dlls/dpnhupnp)
2613 WINE_CONFIG_MAKEFILE(dlls/dpnlobby)
2614 WINE_CONFIG_MAKEFILE(dlls/dpvoice)
2615 WINE_CONFIG_MAKEFILE(dlls/dpvoice/tests)
2616 WINE_CONFIG_MAKEFILE(dlls/dpwsockx)
2617 WINE_CONFIG_MAKEFILE(dlls/drmclien)
2618 WINE_CONFIG_MAKEFILE(dlls/dsdmo)
2619 WINE_CONFIG_MAKEFILE(dlls/dsdmo/tests)
2620 WINE_CONFIG_MAKEFILE(dlls/dsound)
2621 WINE_CONFIG_MAKEFILE(dlls/dsound/tests)
2622 WINE_CONFIG_MAKEFILE(dlls/dsquery)
2623 WINE_CONFIG_MAKEFILE(dlls/dssenh)
2624 WINE_CONFIG_MAKEFILE(dlls/dssenh/tests)
2625 WINE_CONFIG_MAKEFILE(dlls/dsuiext)
2626 WINE_CONFIG_MAKEFILE(dlls/dswave)
2627 WINE_CONFIG_MAKEFILE(dlls/dswave/tests)
2628 WINE_CONFIG_MAKEFILE(dlls/dwmapi)
2629 WINE_CONFIG_MAKEFILE(dlls/dwmapi/tests)
2630 WINE_CONFIG_MAKEFILE(dlls/dwrite)
2631 WINE_CONFIG_MAKEFILE(dlls/dwrite/tests)
2632 WINE_CONFIG_MAKEFILE(dlls/dx8vb)
2633 WINE_CONFIG_MAKEFILE(dlls/dxdiagn)
2634 WINE_CONFIG_MAKEFILE(dlls/dxdiagn/tests)
2635 WINE_CONFIG_MAKEFILE(dlls/dxgi)
2636 WINE_CONFIG_MAKEFILE(dlls/dxgi/tests)
2637 WINE_CONFIG_MAKEFILE(dlls/dxtrans)
2638 WINE_CONFIG_MAKEFILE(dlls/dxva2)
2639 WINE_CONFIG_MAKEFILE(dlls/dxva2/tests)
2640 WINE_CONFIG_MAKEFILE(dlls/esent)
2641 WINE_CONFIG_MAKEFILE(dlls/evr)
2642 WINE_CONFIG_MAKEFILE(dlls/evr/tests)
2643 WINE_CONFIG_MAKEFILE(dlls/explorerframe)
2644 WINE_CONFIG_MAKEFILE(dlls/explorerframe/tests)
2645 WINE_CONFIG_MAKEFILE(dlls/faultrep)
2646 WINE_CONFIG_MAKEFILE(dlls/faultrep/tests)
2647 WINE_CONFIG_MAKEFILE(dlls/feclient)
2648 WINE_CONFIG_MAKEFILE(dlls/fltlib)
2649 WINE_CONFIG_MAKEFILE(dlls/fltmgr.sys)
2650 WINE_CONFIG_MAKEFILE(dlls/fntcache)
2651 WINE_CONFIG_MAKEFILE(dlls/fontsub)
2652 WINE_CONFIG_MAKEFILE(dlls/fusion)
2653 WINE_CONFIG_MAKEFILE(dlls/fusion/tests)
2654 WINE_CONFIG_MAKEFILE(dlls/fwpuclnt)
2655 WINE_CONFIG_MAKEFILE(dlls/gameux)
2656 WINE_CONFIG_MAKEFILE(dlls/gameux/tests)
2657 WINE_CONFIG_MAKEFILE(dlls/gamingtcui)
2658 WINE_CONFIG_MAKEFILE(dlls/gdi.exe16,enable_win16)
2659 WINE_CONFIG_MAKEFILE(dlls/gdi32)
2660 WINE_CONFIG_MAKEFILE(dlls/gdi32/tests)
2661 WINE_CONFIG_MAKEFILE(dlls/gdiplus)
2662 WINE_CONFIG_MAKEFILE(dlls/gdiplus/tests)
2663 WINE_CONFIG_MAKEFILE(dlls/glu32)
2664 WINE_CONFIG_MAKEFILE(dlls/gphoto2.ds)
2665 WINE_CONFIG_MAKEFILE(dlls/gpkcsp)
2666 WINE_CONFIG_MAKEFILE(dlls/hal)
2667 WINE_CONFIG_MAKEFILE(dlls/hhctrl.ocx)
2668 WINE_CONFIG_MAKEFILE(dlls/hid)
2669 WINE_CONFIG_MAKEFILE(dlls/hid/tests)
2670 WINE_CONFIG_MAKEFILE(dlls/hidclass.sys)
2671 WINE_CONFIG_MAKEFILE(dlls/hidparse.sys)
2672 WINE_CONFIG_MAKEFILE(dlls/hlink)
2673 WINE_CONFIG_MAKEFILE(dlls/hlink/tests)
2674 WINE_CONFIG_MAKEFILE(dlls/hnetcfg)
2675 WINE_CONFIG_MAKEFILE(dlls/hnetcfg/tests)
2676 WINE_CONFIG_MAKEFILE(dlls/http.sys)
2677 WINE_CONFIG_MAKEFILE(dlls/httpapi)
2678 WINE_CONFIG_MAKEFILE(dlls/httpapi/tests)
2679 WINE_CONFIG_MAKEFILE(dlls/ia2comproxy)
2680 WINE_CONFIG_MAKEFILE(dlls/iccvid)
2681 WINE_CONFIG_MAKEFILE(dlls/icmp)
2682 WINE_CONFIG_MAKEFILE(dlls/ieframe)
2683 WINE_CONFIG_MAKEFILE(dlls/ieframe/tests)
2684 WINE_CONFIG_MAKEFILE(dlls/ieproxy)
2685 WINE_CONFIG_MAKEFILE(dlls/ifsmgr.vxd,enable_win16)
2686 WINE_CONFIG_MAKEFILE(dlls/imaadp32.acm)
2687 WINE_CONFIG_MAKEFILE(dlls/imagehlp)
2688 WINE_CONFIG_MAKEFILE(dlls/imagehlp/tests)
2689 WINE_CONFIG_MAKEFILE(dlls/imm.dll16,enable_win16)
2690 WINE_CONFIG_MAKEFILE(dlls/imm32)
2691 WINE_CONFIG_MAKEFILE(dlls/imm32/tests)
2692 WINE_CONFIG_MAKEFILE(dlls/inetcomm)
2693 WINE_CONFIG_MAKEFILE(dlls/inetcomm/tests)
2694 WINE_CONFIG_MAKEFILE(dlls/inetcpl.cpl)
2695 WINE_CONFIG_MAKEFILE(dlls/inetmib1)
2696 WINE_CONFIG_MAKEFILE(dlls/inetmib1/tests)
2697 WINE_CONFIG_MAKEFILE(dlls/infosoft)
2698 WINE_CONFIG_MAKEFILE(dlls/infosoft/tests)
2699 WINE_CONFIG_MAKEFILE(dlls/initpki)
2700 WINE_CONFIG_MAKEFILE(dlls/inkobj)
2701 WINE_CONFIG_MAKEFILE(dlls/inseng)
2702 WINE_CONFIG_MAKEFILE(dlls/iphlpapi)
2703 WINE_CONFIG_MAKEFILE(dlls/iphlpapi/tests)
2704 WINE_CONFIG_MAKEFILE(dlls/iprop)
2705 WINE_CONFIG_MAKEFILE(dlls/irprops.cpl)
2706 WINE_CONFIG_MAKEFILE(dlls/itircl)
2707 WINE_CONFIG_MAKEFILE(dlls/itss)
2708 WINE_CONFIG_MAKEFILE(dlls/itss/tests)
2709 WINE_CONFIG_MAKEFILE(dlls/joy.cpl)
2710 WINE_CONFIG_MAKEFILE(dlls/jscript)
2711 WINE_CONFIG_MAKEFILE(dlls/jscript/tests)
2712 WINE_CONFIG_MAKEFILE(dlls/jsproxy)
2713 WINE_CONFIG_MAKEFILE(dlls/jsproxy/tests)
2714 WINE_CONFIG_MAKEFILE(dlls/kerberos)
2715 WINE_CONFIG_MAKEFILE(dlls/kernel32)
2716 WINE_CONFIG_MAKEFILE(dlls/kernel32/tests)
2717 WINE_CONFIG_MAKEFILE(dlls/kernelbase)
2718 WINE_CONFIG_MAKEFILE(dlls/kernelbase/tests)
2719 WINE_CONFIG_MAKEFILE(dlls/keyboard.drv16,enable_win16)
2720 WINE_CONFIG_MAKEFILE(dlls/krnl386.exe16,enable_win16)
2721 WINE_CONFIG_MAKEFILE(dlls/ksecdd.sys)
2722 WINE_CONFIG_MAKEFILE(dlls/ksproxy.ax)
2723 WINE_CONFIG_MAKEFILE(dlls/ksuser)
2724 WINE_CONFIG_MAKEFILE(dlls/ktmw32)
2725 WINE_CONFIG_MAKEFILE(dlls/l3codeca.acm)
2726 WINE_CONFIG_MAKEFILE(dlls/light.msstyles)
2727 WINE_CONFIG_MAKEFILE(dlls/loadperf)
2728 WINE_CONFIG_MAKEFILE(dlls/localspl)
2729 WINE_CONFIG_MAKEFILE(dlls/localspl/tests)
2730 WINE_CONFIG_MAKEFILE(dlls/localui)
2731 WINE_CONFIG_MAKEFILE(dlls/localui/tests)
2732 WINE_CONFIG_MAKEFILE(dlls/lz32)
2733 WINE_CONFIG_MAKEFILE(dlls/lz32/tests)
2734 WINE_CONFIG_MAKEFILE(dlls/lzexpand.dll16,enable_win16)
2735 WINE_CONFIG_MAKEFILE(dlls/mapi32)
2736 WINE_CONFIG_MAKEFILE(dlls/mapi32/tests)
2737 WINE_CONFIG_MAKEFILE(dlls/mapistub)
2738 WINE_CONFIG_MAKEFILE(dlls/mciavi32)
2739 WINE_CONFIG_MAKEFILE(dlls/mcicda)
2740 WINE_CONFIG_MAKEFILE(dlls/mciqtz32)
2741 WINE_CONFIG_MAKEFILE(dlls/mciseq)
2742 WINE_CONFIG_MAKEFILE(dlls/mciwave)
2743 WINE_CONFIG_MAKEFILE(dlls/mf)
2744 WINE_CONFIG_MAKEFILE(dlls/mf/tests)
2745 WINE_CONFIG_MAKEFILE(dlls/mf3216)
2746 WINE_CONFIG_MAKEFILE(dlls/mferror)
2747 WINE_CONFIG_MAKEFILE(dlls/mfmediaengine)
2748 WINE_CONFIG_MAKEFILE(dlls/mfmediaengine/tests)
2749 WINE_CONFIG_MAKEFILE(dlls/mfplat)
2750 WINE_CONFIG_MAKEFILE(dlls/mfplat/tests)
2751 WINE_CONFIG_MAKEFILE(dlls/mfplay)
2752 WINE_CONFIG_MAKEFILE(dlls/mfplay/tests)
2753 WINE_CONFIG_MAKEFILE(dlls/mfreadwrite)
2754 WINE_CONFIG_MAKEFILE(dlls/mfreadwrite/tests)
2755 WINE_CONFIG_MAKEFILE(dlls/mfsrcsnk)
2756 WINE_CONFIG_MAKEFILE(dlls/mfsrcsnk/tests)
2757 WINE_CONFIG_MAKEFILE(dlls/mgmtapi)
2758 WINE_CONFIG_MAKEFILE(dlls/midimap)
2759 WINE_CONFIG_MAKEFILE(dlls/mlang)
2760 WINE_CONFIG_MAKEFILE(dlls/mlang/tests)
2761 WINE_CONFIG_MAKEFILE(dlls/mmcndmgr)
2762 WINE_CONFIG_MAKEFILE(dlls/mmcndmgr/tests)
2763 WINE_CONFIG_MAKEFILE(dlls/mmdevapi)
2764 WINE_CONFIG_MAKEFILE(dlls/mmdevapi/tests)
2765 WINE_CONFIG_MAKEFILE(dlls/mmdevldr.vxd,enable_win16)
2766 WINE_CONFIG_MAKEFILE(dlls/mmsystem.dll16,enable_win16)
2767 WINE_CONFIG_MAKEFILE(dlls/monodebg.vxd,enable_win16)
2768 WINE_CONFIG_MAKEFILE(dlls/mountmgr.sys)
2769 WINE_CONFIG_MAKEFILE(dlls/mouse.drv16,enable_win16)
2770 WINE_CONFIG_MAKEFILE(dlls/mp3dmod)
2771 WINE_CONFIG_MAKEFILE(dlls/mp3dmod/tests)
2772 WINE_CONFIG_MAKEFILE(dlls/mpr)
2773 WINE_CONFIG_MAKEFILE(dlls/mpr/tests)
2774 WINE_CONFIG_MAKEFILE(dlls/mprapi)
2775 WINE_CONFIG_MAKEFILE(dlls/msacm.dll16,enable_win16)
2776 WINE_CONFIG_MAKEFILE(dlls/msacm32.drv)
2777 WINE_CONFIG_MAKEFILE(dlls/msacm32)
2778 WINE_CONFIG_MAKEFILE(dlls/msacm32/tests)
2779 WINE_CONFIG_MAKEFILE(dlls/msado15)
2780 WINE_CONFIG_MAKEFILE(dlls/msado15/tests)
2781 WINE_CONFIG_MAKEFILE(dlls/msadp32.acm)
2782 WINE_CONFIG_MAKEFILE(dlls/msasn1)
2783 WINE_CONFIG_MAKEFILE(dlls/msasn1/tests)
2784 WINE_CONFIG_MAKEFILE(dlls/mscat32)
2785 WINE_CONFIG_MAKEFILE(dlls/mscms)
2786 WINE_CONFIG_MAKEFILE(dlls/mscms/tests)
2787 WINE_CONFIG_MAKEFILE(dlls/mscoree)
2788 WINE_CONFIG_MAKEFILE(dlls/mscoree/tests)
2789 WINE_CONFIG_MAKEFILE(dlls/mscorwks)
2790 WINE_CONFIG_MAKEFILE(dlls/msctf)
2791 WINE_CONFIG_MAKEFILE(dlls/msctf/tests)
2792 WINE_CONFIG_MAKEFILE(dlls/msctfmonitor)
2793 WINE_CONFIG_MAKEFILE(dlls/msctfp)
2794 WINE_CONFIG_MAKEFILE(dlls/msdaps)
2795 WINE_CONFIG_MAKEFILE(dlls/msdasql)
2796 WINE_CONFIG_MAKEFILE(dlls/msdasql/tests)
2797 WINE_CONFIG_MAKEFILE(dlls/msdelta)
2798 WINE_CONFIG_MAKEFILE(dlls/msdmo)
2799 WINE_CONFIG_MAKEFILE(dlls/msdmo/tests)
2800 WINE_CONFIG_MAKEFILE(dlls/msdrm)
2801 WINE_CONFIG_MAKEFILE(dlls/msftedit)
2802 WINE_CONFIG_MAKEFILE(dlls/msftedit/tests)
2803 WINE_CONFIG_MAKEFILE(dlls/msg711.acm)
2804 WINE_CONFIG_MAKEFILE(dlls/msgsm32.acm)
2805 WINE_CONFIG_MAKEFILE(dlls/mshtml.tlb)
2806 WINE_CONFIG_MAKEFILE(dlls/mshtml)
2807 WINE_CONFIG_MAKEFILE(dlls/mshtml/tests)
2808 WINE_CONFIG_MAKEFILE(dlls/msi)
2809 WINE_CONFIG_MAKEFILE(dlls/msi/tests)
2810 WINE_CONFIG_MAKEFILE(dlls/msident)
2811 WINE_CONFIG_MAKEFILE(dlls/msimg32)
2812 WINE_CONFIG_MAKEFILE(dlls/msimsg)
2813 WINE_CONFIG_MAKEFILE(dlls/msimtf)
2814 WINE_CONFIG_MAKEFILE(dlls/msisip)
2815 WINE_CONFIG_MAKEFILE(dlls/msisys.ocx)
2816 WINE_CONFIG_MAKEFILE(dlls/msls31)
2817 WINE_CONFIG_MAKEFILE(dlls/msnet32)
2818 WINE_CONFIG_MAKEFILE(dlls/mspatcha)
2819 WINE_CONFIG_MAKEFILE(dlls/mspatcha/tests)
2820 WINE_CONFIG_MAKEFILE(dlls/msports)
2821 WINE_CONFIG_MAKEFILE(dlls/msrle32)
2822 WINE_CONFIG_MAKEFILE(dlls/msrle32/tests)
2823 WINE_CONFIG_MAKEFILE(dlls/msscript.ocx)
2824 WINE_CONFIG_MAKEFILE(dlls/msscript.ocx/tests)
2825 WINE_CONFIG_MAKEFILE(dlls/mssign32)
2826 WINE_CONFIG_MAKEFILE(dlls/mssip32)
2827 WINE_CONFIG_MAKEFILE(dlls/mstask)
2828 WINE_CONFIG_MAKEFILE(dlls/mstask/tests)
2829 WINE_CONFIG_MAKEFILE(dlls/msv1_0)
2830 WINE_CONFIG_MAKEFILE(dlls/msvcirt)
2831 WINE_CONFIG_MAKEFILE(dlls/msvcirt/tests)
2832 WINE_CONFIG_MAKEFILE(dlls/msvcm80)
2833 WINE_CONFIG_MAKEFILE(dlls/msvcm90)
2834 WINE_CONFIG_MAKEFILE(dlls/msvcp100)
2835 WINE_CONFIG_MAKEFILE(dlls/msvcp100/tests)
2836 WINE_CONFIG_MAKEFILE(dlls/msvcp110)
2837 WINE_CONFIG_MAKEFILE(dlls/msvcp110/tests)
2838 WINE_CONFIG_MAKEFILE(dlls/msvcp120)
2839 WINE_CONFIG_MAKEFILE(dlls/msvcp120/tests)
2840 WINE_CONFIG_MAKEFILE(dlls/msvcp120_app)
2841 WINE_CONFIG_MAKEFILE(dlls/msvcp140)
2842 WINE_CONFIG_MAKEFILE(dlls/msvcp140/tests)
2843 WINE_CONFIG_MAKEFILE(dlls/msvcp140_1)
2844 WINE_CONFIG_MAKEFILE(dlls/msvcp140_1/tests)
2845 WINE_CONFIG_MAKEFILE(dlls/msvcp140_2)
2846 WINE_CONFIG_MAKEFILE(dlls/msvcp140_atomic_wait)
2847 WINE_CONFIG_MAKEFILE(dlls/msvcp140_atomic_wait/tests)
2848 WINE_CONFIG_MAKEFILE(dlls/msvcp60)
2849 WINE_CONFIG_MAKEFILE(dlls/msvcp60/tests)
2850 WINE_CONFIG_MAKEFILE(dlls/msvcp70)
2851 WINE_CONFIG_MAKEFILE(dlls/msvcp71)
2852 WINE_CONFIG_MAKEFILE(dlls/msvcp80)
2853 WINE_CONFIG_MAKEFILE(dlls/msvcp90)
2854 WINE_CONFIG_MAKEFILE(dlls/msvcp90/tests)
2855 WINE_CONFIG_MAKEFILE(dlls/msvcp_win)
2856 WINE_CONFIG_MAKEFILE(dlls/msvcr100)
2857 WINE_CONFIG_MAKEFILE(dlls/msvcr100/tests)
2858 WINE_CONFIG_MAKEFILE(dlls/msvcr110)
2859 WINE_CONFIG_MAKEFILE(dlls/msvcr110/tests)
2860 WINE_CONFIG_MAKEFILE(dlls/msvcr120)
2861 WINE_CONFIG_MAKEFILE(dlls/msvcr120/tests)
2862 WINE_CONFIG_MAKEFILE(dlls/msvcr120_app)
2863 WINE_CONFIG_MAKEFILE(dlls/msvcr70)
2864 WINE_CONFIG_MAKEFILE(dlls/msvcr70/tests)
2865 WINE_CONFIG_MAKEFILE(dlls/msvcr71)
2866 WINE_CONFIG_MAKEFILE(dlls/msvcr71/tests)
2867 WINE_CONFIG_MAKEFILE(dlls/msvcr80)
2868 WINE_CONFIG_MAKEFILE(dlls/msvcr80/tests)
2869 WINE_CONFIG_MAKEFILE(dlls/msvcr90)
2870 WINE_CONFIG_MAKEFILE(dlls/msvcr90/tests)
2871 WINE_CONFIG_MAKEFILE(dlls/msvcrt)
2872 WINE_CONFIG_MAKEFILE(dlls/msvcrt/tests)
2873 WINE_CONFIG_MAKEFILE(dlls/msvcrt20)
2874 WINE_CONFIG_MAKEFILE(dlls/msvcrt40)
2875 WINE_CONFIG_MAKEFILE(dlls/msvcrtd)
2876 WINE_CONFIG_MAKEFILE(dlls/msvcrtd/tests)
2877 WINE_CONFIG_MAKEFILE(dlls/msvfw32)
2878 WINE_CONFIG_MAKEFILE(dlls/msvfw32/tests)
2879 WINE_CONFIG_MAKEFILE(dlls/msvidc32)
2880 WINE_CONFIG_MAKEFILE(dlls/msvideo.dll16,enable_win16)
2881 WINE_CONFIG_MAKEFILE(dlls/mswsock)
2882 WINE_CONFIG_MAKEFILE(dlls/msxml)
2883 WINE_CONFIG_MAKEFILE(dlls/msxml2)
2884 WINE_CONFIG_MAKEFILE(dlls/msxml3)
2885 WINE_CONFIG_MAKEFILE(dlls/msxml3/tests)
2886 WINE_CONFIG_MAKEFILE(dlls/msxml4)
2887 WINE_CONFIG_MAKEFILE(dlls/msxml6)
2888 WINE_CONFIG_MAKEFILE(dlls/mtxdm)
2889 WINE_CONFIG_MAKEFILE(dlls/ncrypt)
2890 WINE_CONFIG_MAKEFILE(dlls/ncrypt/tests)
2891 WINE_CONFIG_MAKEFILE(dlls/nddeapi)
2892 WINE_CONFIG_MAKEFILE(dlls/ndis.sys)
2893 WINE_CONFIG_MAKEFILE(dlls/ndis.sys/tests)
2894 WINE_CONFIG_MAKEFILE(dlls/netapi32)
2895 WINE_CONFIG_MAKEFILE(dlls/netapi32/tests)
2896 WINE_CONFIG_MAKEFILE(dlls/netcfgx)
2897 WINE_CONFIG_MAKEFILE(dlls/netcfgx/tests)
2898 WINE_CONFIG_MAKEFILE(dlls/netio.sys)
2899 WINE_CONFIG_MAKEFILE(dlls/netprofm)
2900 WINE_CONFIG_MAKEFILE(dlls/netprofm/tests)
2901 WINE_CONFIG_MAKEFILE(dlls/netutils)
2902 WINE_CONFIG_MAKEFILE(dlls/newdev)
2903 WINE_CONFIG_MAKEFILE(dlls/ninput)
2904 WINE_CONFIG_MAKEFILE(dlls/ninput/tests)
2905 WINE_CONFIG_MAKEFILE(dlls/normaliz)
2906 WINE_CONFIG_MAKEFILE(dlls/npmshtml)
2907 WINE_CONFIG_MAKEFILE(dlls/npptools)
2908 WINE_CONFIG_MAKEFILE(dlls/nsi)
2909 WINE_CONFIG_MAKEFILE(dlls/nsi/tests)
2910 WINE_CONFIG_MAKEFILE(dlls/nsiproxy.sys)
2911 WINE_CONFIG_MAKEFILE(dlls/ntdll)
2912 WINE_CONFIG_MAKEFILE(dlls/ntdll/tests)
2913 WINE_CONFIG_MAKEFILE(dlls/ntdsapi)
2914 WINE_CONFIG_MAKEFILE(dlls/ntdsapi/tests)
2915 WINE_CONFIG_MAKEFILE(dlls/ntoskrnl.exe)
2916 WINE_CONFIG_MAKEFILE(dlls/ntoskrnl.exe/tests)
2917 WINE_CONFIG_MAKEFILE(dlls/ntprint)
2918 WINE_CONFIG_MAKEFILE(dlls/ntprint/tests)
2919 WINE_CONFIG_MAKEFILE(dlls/objsel)
2920 WINE_CONFIG_MAKEFILE(dlls/odbc32)
2921 WINE_CONFIG_MAKEFILE(dlls/odbcbcp)
2922 WINE_CONFIG_MAKEFILE(dlls/odbccp32)
2923 WINE_CONFIG_MAKEFILE(dlls/odbccp32/tests)
2924 WINE_CONFIG_MAKEFILE(dlls/odbccu32)
2925 WINE_CONFIG_MAKEFILE(dlls/ole2.dll16,enable_win16)
2926 WINE_CONFIG_MAKEFILE(dlls/ole2conv.dll16,enable_win16)
2927 WINE_CONFIG_MAKEFILE(dlls/ole2disp.dll16,enable_win16)
2928 WINE_CONFIG_MAKEFILE(dlls/ole2nls.dll16,enable_win16)
2929 WINE_CONFIG_MAKEFILE(dlls/ole2prox.dll16,enable_win16)
2930 WINE_CONFIG_MAKEFILE(dlls/ole2thk.dll16,enable_win16)
2931 WINE_CONFIG_MAKEFILE(dlls/ole32)
2932 WINE_CONFIG_MAKEFILE(dlls/ole32/tests)
2933 WINE_CONFIG_MAKEFILE(dlls/oleacc)
2934 WINE_CONFIG_MAKEFILE(dlls/oleacc/tests)
2935 WINE_CONFIG_MAKEFILE(dlls/oleaut32)
2936 WINE_CONFIG_MAKEFILE(dlls/oleaut32/tests)
2937 WINE_CONFIG_MAKEFILE(dlls/olecli.dll16,enable_win16)
2938 WINE_CONFIG_MAKEFILE(dlls/olecli32)
2939 WINE_CONFIG_MAKEFILE(dlls/oledb32)
2940 WINE_CONFIG_MAKEFILE(dlls/oledb32/tests)
2941 WINE_CONFIG_MAKEFILE(dlls/oledlg)
2942 WINE_CONFIG_MAKEFILE(dlls/oledlg/tests)
2943 WINE_CONFIG_MAKEFILE(dlls/olepro32)
2944 WINE_CONFIG_MAKEFILE(dlls/olesvr.dll16,enable_win16)
2945 WINE_CONFIG_MAKEFILE(dlls/olesvr32)
2946 WINE_CONFIG_MAKEFILE(dlls/olethk32)
2947 WINE_CONFIG_MAKEFILE(dlls/opcservices)
2948 WINE_CONFIG_MAKEFILE(dlls/opcservices/tests)
2949 WINE_CONFIG_MAKEFILE(dlls/openal32)
2950 WINE_CONFIG_MAKEFILE(dlls/opencl)
2951 WINE_CONFIG_MAKEFILE(dlls/opengl32)
2952 WINE_CONFIG_MAKEFILE(dlls/opengl32/tests)
2953 WINE_CONFIG_MAKEFILE(dlls/packager)
2954 WINE_CONFIG_MAKEFILE(dlls/packager/tests)
2955 WINE_CONFIG_MAKEFILE(dlls/pdh)
2956 WINE_CONFIG_MAKEFILE(dlls/pdh/tests)
2957 WINE_CONFIG_MAKEFILE(dlls/photometadatahandler)
2958 WINE_CONFIG_MAKEFILE(dlls/pidgen)
2959 WINE_CONFIG_MAKEFILE(dlls/powrprof)
2960 WINE_CONFIG_MAKEFILE(dlls/printui)
2961 WINE_CONFIG_MAKEFILE(dlls/prntvpt)
2962 WINE_CONFIG_MAKEFILE(dlls/prntvpt/tests)
2963 WINE_CONFIG_MAKEFILE(dlls/propsys)
2964 WINE_CONFIG_MAKEFILE(dlls/propsys/tests)
2965 WINE_CONFIG_MAKEFILE(dlls/psapi)
2966 WINE_CONFIG_MAKEFILE(dlls/psapi/tests)
2967 WINE_CONFIG_MAKEFILE(dlls/pstorec)
2968 WINE_CONFIG_MAKEFILE(dlls/pstorec/tests)
2969 WINE_CONFIG_MAKEFILE(dlls/pwrshplugin)
2970 WINE_CONFIG_MAKEFILE(dlls/qasf)
2971 WINE_CONFIG_MAKEFILE(dlls/qasf/tests)
2972 WINE_CONFIG_MAKEFILE(dlls/qcap)
2973 WINE_CONFIG_MAKEFILE(dlls/qcap/tests)
2974 WINE_CONFIG_MAKEFILE(dlls/qdvd)
2975 WINE_CONFIG_MAKEFILE(dlls/qdvd/tests)
2976 WINE_CONFIG_MAKEFILE(dlls/qedit)
2977 WINE_CONFIG_MAKEFILE(dlls/qedit/tests)
2978 WINE_CONFIG_MAKEFILE(dlls/qmgr)
2979 WINE_CONFIG_MAKEFILE(dlls/qmgr/tests)
2980 WINE_CONFIG_MAKEFILE(dlls/qmgrprxy)
2981 WINE_CONFIG_MAKEFILE(dlls/quartz)
2982 WINE_CONFIG_MAKEFILE(dlls/quartz/tests)
2983 WINE_CONFIG_MAKEFILE(dlls/query)
2984 WINE_CONFIG_MAKEFILE(dlls/qwave)
2985 WINE_CONFIG_MAKEFILE(dlls/qwave/tests)
2986 WINE_CONFIG_MAKEFILE(dlls/rasapi16.dll16,enable_win16)
2987 WINE_CONFIG_MAKEFILE(dlls/rasapi32)
2988 WINE_CONFIG_MAKEFILE(dlls/rasapi32/tests)
2989 WINE_CONFIG_MAKEFILE(dlls/rasdlg)
2990 WINE_CONFIG_MAKEFILE(dlls/regapi)
2991 WINE_CONFIG_MAKEFILE(dlls/resutils)
2992 WINE_CONFIG_MAKEFILE(dlls/riched20)
2993 WINE_CONFIG_MAKEFILE(dlls/riched20/tests)
2994 WINE_CONFIG_MAKEFILE(dlls/riched32)
2995 WINE_CONFIG_MAKEFILE(dlls/riched32/tests)
2996 WINE_CONFIG_MAKEFILE(dlls/rpcrt4)
2997 WINE_CONFIG_MAKEFILE(dlls/rpcrt4/tests)
2998 WINE_CONFIG_MAKEFILE(dlls/rsabase)
2999 WINE_CONFIG_MAKEFILE(dlls/rsaenh)
3000 WINE_CONFIG_MAKEFILE(dlls/rsaenh/tests)
3001 WINE_CONFIG_MAKEFILE(dlls/rstrtmgr)
3002 WINE_CONFIG_MAKEFILE(dlls/rtutils)
3003 WINE_CONFIG_MAKEFILE(dlls/rtworkq)
3004 WINE_CONFIG_MAKEFILE(dlls/rtworkq/tests)
3005 WINE_CONFIG_MAKEFILE(dlls/samlib)
3006 WINE_CONFIG_MAKEFILE(dlls/sane.ds)
3007 WINE_CONFIG_MAKEFILE(dlls/sapi)
3008 WINE_CONFIG_MAKEFILE(dlls/sapi/tests)
3009 WINE_CONFIG_MAKEFILE(dlls/sas)
3010 WINE_CONFIG_MAKEFILE(dlls/scarddlg)
3011 WINE_CONFIG_MAKEFILE(dlls/sccbase)
3012 WINE_CONFIG_MAKEFILE(dlls/schannel)
3013 WINE_CONFIG_MAKEFILE(dlls/schannel/tests)
3014 WINE_CONFIG_MAKEFILE(dlls/schedsvc)
3015 WINE_CONFIG_MAKEFILE(dlls/schedsvc/tests)
3016 WINE_CONFIG_MAKEFILE(dlls/scrobj)
3017 WINE_CONFIG_MAKEFILE(dlls/scrobj/tests)
3018 WINE_CONFIG_MAKEFILE(dlls/scrrun)
3019 WINE_CONFIG_MAKEFILE(dlls/scrrun/tests)
3020 WINE_CONFIG_MAKEFILE(dlls/scsiport.sys)
3021 WINE_CONFIG_MAKEFILE(dlls/sechost)
3022 WINE_CONFIG_MAKEFILE(dlls/secur32)
3023 WINE_CONFIG_MAKEFILE(dlls/secur32/tests)
3024 WINE_CONFIG_MAKEFILE(dlls/security)
3025 WINE_CONFIG_MAKEFILE(dlls/sensapi)
3026 WINE_CONFIG_MAKEFILE(dlls/serialui)
3027 WINE_CONFIG_MAKEFILE(dlls/serialui/tests)
3028 WINE_CONFIG_MAKEFILE(dlls/setupapi)
3029 WINE_CONFIG_MAKEFILE(dlls/setupapi/tests)
3030 WINE_CONFIG_MAKEFILE(dlls/setupx.dll16,enable_win16)
3031 WINE_CONFIG_MAKEFILE(dlls/sfc)
3032 WINE_CONFIG_MAKEFILE(dlls/sfc_os)
3033 WINE_CONFIG_MAKEFILE(dlls/shcore)
3034 WINE_CONFIG_MAKEFILE(dlls/shcore/tests)
3035 WINE_CONFIG_MAKEFILE(dlls/shdoclc)
3036 WINE_CONFIG_MAKEFILE(dlls/shdocvw)
3037 WINE_CONFIG_MAKEFILE(dlls/shdocvw/tests)
3038 WINE_CONFIG_MAKEFILE(dlls/shell.dll16,enable_win16)
3039 WINE_CONFIG_MAKEFILE(dlls/shell32)
3040 WINE_CONFIG_MAKEFILE(dlls/shell32/tests)
3041 WINE_CONFIG_MAKEFILE(dlls/shfolder)
3042 WINE_CONFIG_MAKEFILE(dlls/shlwapi)
3043 WINE_CONFIG_MAKEFILE(dlls/shlwapi/tests)
3044 WINE_CONFIG_MAKEFILE(dlls/slbcsp)
3045 WINE_CONFIG_MAKEFILE(dlls/slc)
3046 WINE_CONFIG_MAKEFILE(dlls/slc/tests)
3047 WINE_CONFIG_MAKEFILE(dlls/snmpapi)
3048 WINE_CONFIG_MAKEFILE(dlls/snmpapi/tests)
3049 WINE_CONFIG_MAKEFILE(dlls/softpub)
3050 WINE_CONFIG_MAKEFILE(dlls/sound.drv16,enable_win16)
3051 WINE_CONFIG_MAKEFILE(dlls/spoolss)
3052 WINE_CONFIG_MAKEFILE(dlls/spoolss/tests)
3053 WINE_CONFIG_MAKEFILE(dlls/sppc)
3054 WINE_CONFIG_MAKEFILE(dlls/srclient)
3055 WINE_CONFIG_MAKEFILE(dlls/srvcli)
3056 WINE_CONFIG_MAKEFILE(dlls/sspicli)
3057 WINE_CONFIG_MAKEFILE(dlls/stdole2.tlb)
3058 WINE_CONFIG_MAKEFILE(dlls/stdole32.tlb)
3059 WINE_CONFIG_MAKEFILE(dlls/sti)
3060 WINE_CONFIG_MAKEFILE(dlls/sti/tests)
3061 WINE_CONFIG_MAKEFILE(dlls/storage.dll16,enable_win16)
3062 WINE_CONFIG_MAKEFILE(dlls/stress.dll16,enable_win16)
3063 WINE_CONFIG_MAKEFILE(dlls/strmdll)
3064 WINE_CONFIG_MAKEFILE(dlls/svrapi)
3065 WINE_CONFIG_MAKEFILE(dlls/sxs)
3066 WINE_CONFIG_MAKEFILE(dlls/sxs/tests)
3067 WINE_CONFIG_MAKEFILE(dlls/system.drv16,enable_win16)
3068 WINE_CONFIG_MAKEFILE(dlls/t2embed)
3069 WINE_CONFIG_MAKEFILE(dlls/t2embed/tests)
3070 WINE_CONFIG_MAKEFILE(dlls/tapi32)
3071 WINE_CONFIG_MAKEFILE(dlls/tapi32/tests)
3072 WINE_CONFIG_MAKEFILE(dlls/taskschd)
3073 WINE_CONFIG_MAKEFILE(dlls/taskschd/tests)
3074 WINE_CONFIG_MAKEFILE(dlls/tbs)
3075 WINE_CONFIG_MAKEFILE(dlls/tdh)
3076 WINE_CONFIG_MAKEFILE(dlls/tdi.sys)
3077 WINE_CONFIG_MAKEFILE(dlls/threadpoolwinrt)
3078 WINE_CONFIG_MAKEFILE(dlls/threadpoolwinrt/tests)
3079 WINE_CONFIG_MAKEFILE(dlls/toolhelp.dll16,enable_win16)
3080 WINE_CONFIG_MAKEFILE(dlls/traffic)
3081 WINE_CONFIG_MAKEFILE(dlls/twain.dll16,enable_win16)
3082 WINE_CONFIG_MAKEFILE(dlls/twain_32)
3083 WINE_CONFIG_MAKEFILE(dlls/twain_32/tests)
3084 WINE_CONFIG_MAKEFILE(dlls/typelib.dll16,enable_win16)
3085 WINE_CONFIG_MAKEFILE(dlls/tzres)
3086 WINE_CONFIG_MAKEFILE(dlls/ucrtbase)
3087 WINE_CONFIG_MAKEFILE(dlls/ucrtbase/tests)
3088 WINE_CONFIG_MAKEFILE(dlls/uianimation)
3089 WINE_CONFIG_MAKEFILE(dlls/uianimation/tests)
3090 WINE_CONFIG_MAKEFILE(dlls/uiautomationcore)
3091 WINE_CONFIG_MAKEFILE(dlls/uiautomationcore/tests)
3092 WINE_CONFIG_MAKEFILE(dlls/uiribbon)
3093 WINE_CONFIG_MAKEFILE(dlls/unicows)
3094 WINE_CONFIG_MAKEFILE(dlls/updspapi)
3095 WINE_CONFIG_MAKEFILE(dlls/url)
3096 WINE_CONFIG_MAKEFILE(dlls/urlmon)
3097 WINE_CONFIG_MAKEFILE(dlls/urlmon/tests)
3098 WINE_CONFIG_MAKEFILE(dlls/usbd.sys)
3099 WINE_CONFIG_MAKEFILE(dlls/user.exe16,enable_win16)
3100 WINE_CONFIG_MAKEFILE(dlls/user32)
3101 WINE_CONFIG_MAKEFILE(dlls/user32/tests)
3102 WINE_CONFIG_MAKEFILE(dlls/userenv)
3103 WINE_CONFIG_MAKEFILE(dlls/userenv/tests)
3104 WINE_CONFIG_MAKEFILE(dlls/usp10)
3105 WINE_CONFIG_MAKEFILE(dlls/usp10/tests)
3106 WINE_CONFIG_MAKEFILE(dlls/utildll)
3107 WINE_CONFIG_MAKEFILE(dlls/uxtheme)
3108 WINE_CONFIG_MAKEFILE(dlls/uxtheme/tests)
3109 WINE_CONFIG_MAKEFILE(dlls/vbscript)
3110 WINE_CONFIG_MAKEFILE(dlls/vbscript/tests)
3111 WINE_CONFIG_MAKEFILE(dlls/vcomp)
3112 WINE_CONFIG_MAKEFILE(dlls/vcomp/tests)
3113 WINE_CONFIG_MAKEFILE(dlls/vcomp100)
3114 WINE_CONFIG_MAKEFILE(dlls/vcomp110)
3115 WINE_CONFIG_MAKEFILE(dlls/vcomp110/tests)
3116 WINE_CONFIG_MAKEFILE(dlls/vcomp120)
3117 WINE_CONFIG_MAKEFILE(dlls/vcomp140)
3118 WINE_CONFIG_MAKEFILE(dlls/vcomp90)
3119 WINE_CONFIG_MAKEFILE(dlls/vcruntime140)
3120 WINE_CONFIG_MAKEFILE(dlls/vcruntime140_1)
3121 WINE_CONFIG_MAKEFILE(dlls/vdhcp.vxd,enable_win16)
3122 WINE_CONFIG_MAKEFILE(dlls/vdmdbg)
3123 WINE_CONFIG_MAKEFILE(dlls/ver.dll16,enable_win16)
3124 WINE_CONFIG_MAKEFILE(dlls/version)
3125 WINE_CONFIG_MAKEFILE(dlls/version/tests)
3126 WINE_CONFIG_MAKEFILE(dlls/vga)
3127 WINE_CONFIG_MAKEFILE(dlls/virtdisk)
3128 WINE_CONFIG_MAKEFILE(dlls/virtdisk/tests)
3129 WINE_CONFIG_MAKEFILE(dlls/vmm.vxd,enable_win16)
3130 WINE_CONFIG_MAKEFILE(dlls/vnbt.vxd,enable_win16)
3131 WINE_CONFIG_MAKEFILE(dlls/vnetbios.vxd,enable_win16)
3132 WINE_CONFIG_MAKEFILE(dlls/vssapi)
3133 WINE_CONFIG_MAKEFILE(dlls/vtdapi.vxd,enable_win16)
3134 WINE_CONFIG_MAKEFILE(dlls/vulkan-1)
3135 WINE_CONFIG_MAKEFILE(dlls/vulkan-1/tests)
3136 WINE_CONFIG_MAKEFILE(dlls/vwin32.vxd,enable_win16)
3137 WINE_CONFIG_MAKEFILE(dlls/w32skrnl,enable_win16)
3138 WINE_CONFIG_MAKEFILE(dlls/w32sys.dll16,enable_win16)
3139 WINE_CONFIG_MAKEFILE(dlls/wbemdisp)
3140 WINE_CONFIG_MAKEFILE(dlls/wbemdisp/tests)
3141 WINE_CONFIG_MAKEFILE(dlls/wbemprox)
3142 WINE_CONFIG_MAKEFILE(dlls/wbemprox/tests)
3143 WINE_CONFIG_MAKEFILE(dlls/wdscore)
3144 WINE_CONFIG_MAKEFILE(dlls/webservices)
3145 WINE_CONFIG_MAKEFILE(dlls/webservices/tests)
3146 WINE_CONFIG_MAKEFILE(dlls/websocket)
3147 WINE_CONFIG_MAKEFILE(dlls/wer)
3148 WINE_CONFIG_MAKEFILE(dlls/wer/tests)
3149 WINE_CONFIG_MAKEFILE(dlls/wevtapi)
3150 WINE_CONFIG_MAKEFILE(dlls/wevtapi/tests)
3151 WINE_CONFIG_MAKEFILE(dlls/wevtsvc)
3152 WINE_CONFIG_MAKEFILE(dlls/wiaservc)
3153 WINE_CONFIG_MAKEFILE(dlls/wiaservc/tests)
3154 WINE_CONFIG_MAKEFILE(dlls/wimgapi)
3155 WINE_CONFIG_MAKEFILE(dlls/win32s16.dll16,enable_win16)
3156 WINE_CONFIG_MAKEFILE(dlls/win32u)
3157 WINE_CONFIG_MAKEFILE(dlls/win32u/tests)
3158 WINE_CONFIG_MAKEFILE(dlls/win87em.dll16,enable_win16)
3159 WINE_CONFIG_MAKEFILE(dlls/winaspi.dll16,enable_win16)
3160 WINE_CONFIG_MAKEFILE(dlls/windebug.dll16,enable_win16)
3161 WINE_CONFIG_MAKEFILE(dlls/windows.devices.enumeration)
3162 WINE_CONFIG_MAKEFILE(dlls/windows.devices.enumeration/tests)
3163 WINE_CONFIG_MAKEFILE(dlls/windows.gaming.input)
3164 WINE_CONFIG_MAKEFILE(dlls/windows.gaming.input/tests)
3165 WINE_CONFIG_MAKEFILE(dlls/windows.globalization)
3166 WINE_CONFIG_MAKEFILE(dlls/windows.globalization/tests)
3167 WINE_CONFIG_MAKEFILE(dlls/windows.media.devices)
3168 WINE_CONFIG_MAKEFILE(dlls/windows.media.devices/tests)
3169 WINE_CONFIG_MAKEFILE(dlls/windows.media.speech)
3170 WINE_CONFIG_MAKEFILE(dlls/windows.media.speech/tests)
3171 WINE_CONFIG_MAKEFILE(dlls/windows.networking)
3172 WINE_CONFIG_MAKEFILE(dlls/windowscodecs)
3173 WINE_CONFIG_MAKEFILE(dlls/windowscodecs/tests)
3174 WINE_CONFIG_MAKEFILE(dlls/windowscodecsext)
3175 WINE_CONFIG_MAKEFILE(dlls/windowscodecsext/tests)
3176 WINE_CONFIG_MAKEFILE(dlls/winealsa.drv)
3177 WINE_CONFIG_MAKEFILE(dlls/wineandroid.drv)
3178 WINE_CONFIG_MAKEFILE(dlls/winebus.sys)
3179 WINE_CONFIG_MAKEFILE(dlls/winecoreaudio.drv)
3180 WINE_CONFIG_MAKEFILE(dlls/winecrt0)
3181 WINE_CONFIG_MAKEFILE(dlls/wined3d)
3182 WINE_CONFIG_MAKEFILE(dlls/winegstreamer)
3183 WINE_CONFIG_MAKEFILE(dlls/winehid.sys)
3184 WINE_CONFIG_MAKEFILE(dlls/winemac.drv)
3185 WINE_CONFIG_MAKEFILE(dlls/winemapi)
3186 WINE_CONFIG_MAKEFILE(dlls/wineoss.drv)
3187 WINE_CONFIG_MAKEFILE(dlls/wineps.drv)
3188 WINE_CONFIG_MAKEFILE(dlls/wineps16.drv16,enable_win16)
3189 WINE_CONFIG_MAKEFILE(dlls/winepulse.drv)
3190 WINE_CONFIG_MAKEFILE(dlls/wineusb.sys)
3191 WINE_CONFIG_MAKEFILE(dlls/winevulkan)
3192 WINE_CONFIG_MAKEFILE(dlls/winex11.drv)
3193 WINE_CONFIG_MAKEFILE(dlls/winexinput.sys)
3194 WINE_CONFIG_MAKEFILE(dlls/wing.dll16,enable_win16)
3195 WINE_CONFIG_MAKEFILE(dlls/wing32)
3196 WINE_CONFIG_MAKEFILE(dlls/winhttp)
3197 WINE_CONFIG_MAKEFILE(dlls/winhttp/tests)
3198 WINE_CONFIG_MAKEFILE(dlls/wininet)
3199 WINE_CONFIG_MAKEFILE(dlls/wininet/tests)
3200 WINE_CONFIG_MAKEFILE(dlls/winmm)
3201 WINE_CONFIG_MAKEFILE(dlls/winmm/tests)
3202 WINE_CONFIG_MAKEFILE(dlls/winnls.dll16,enable_win16)
3203 WINE_CONFIG_MAKEFILE(dlls/winnls32)
3204 WINE_CONFIG_MAKEFILE(dlls/winscard)
3205 WINE_CONFIG_MAKEFILE(dlls/winsock.dll16,enable_win16)
3206 WINE_CONFIG_MAKEFILE(dlls/winspool.drv)
3207 WINE_CONFIG_MAKEFILE(dlls/winspool.drv/tests)
3208 WINE_CONFIG_MAKEFILE(dlls/winsta)
3209 WINE_CONFIG_MAKEFILE(dlls/wintab.dll16,enable_win16)
3210 WINE_CONFIG_MAKEFILE(dlls/wintab32)
3211 WINE_CONFIG_MAKEFILE(dlls/wintab32/tests)
3212 WINE_CONFIG_MAKEFILE(dlls/wintrust)
3213 WINE_CONFIG_MAKEFILE(dlls/wintrust/tests)
3214 WINE_CONFIG_MAKEFILE(dlls/wintypes)
3215 WINE_CONFIG_MAKEFILE(dlls/wintypes/tests)
3216 WINE_CONFIG_MAKEFILE(dlls/winusb)
3217 WINE_CONFIG_MAKEFILE(dlls/wlanapi)
3218 WINE_CONFIG_MAKEFILE(dlls/wlanapi/tests)
3219 WINE_CONFIG_MAKEFILE(dlls/wlanui)
3220 WINE_CONFIG_MAKEFILE(dlls/wldap32)
3221 WINE_CONFIG_MAKEFILE(dlls/wldap32/tests)
3222 WINE_CONFIG_MAKEFILE(dlls/wmasf)
3223 WINE_CONFIG_MAKEFILE(dlls/wmi)
3224 WINE_CONFIG_MAKEFILE(dlls/wmiutils)
3225 WINE_CONFIG_MAKEFILE(dlls/wmiutils/tests)
3226 WINE_CONFIG_MAKEFILE(dlls/wmp)
3227 WINE_CONFIG_MAKEFILE(dlls/wmp/tests)
3228 WINE_CONFIG_MAKEFILE(dlls/wmphoto)
3229 WINE_CONFIG_MAKEFILE(dlls/wmvcore)
3230 WINE_CONFIG_MAKEFILE(dlls/wmvcore/tests)
3231 WINE_CONFIG_MAKEFILE(dlls/wnaspi32)
3232 WINE_CONFIG_MAKEFILE(dlls/wow32,enable_win16)
3233 WINE_CONFIG_MAKEFILE(dlls/wow64)
3234 WINE_CONFIG_MAKEFILE(dlls/wow64cpu)
3235 WINE_CONFIG_MAKEFILE(dlls/wow64win)
3236 WINE_CONFIG_MAKEFILE(dlls/wpc)
3237 WINE_CONFIG_MAKEFILE(dlls/wpc/tests)
3238 WINE_CONFIG_MAKEFILE(dlls/wpcap)
3239 WINE_CONFIG_MAKEFILE(dlls/ws2_32)
3240 WINE_CONFIG_MAKEFILE(dlls/ws2_32/tests)
3241 WINE_CONFIG_MAKEFILE(dlls/wsdapi)
3242 WINE_CONFIG_MAKEFILE(dlls/wsdapi/tests)
3243 WINE_CONFIG_MAKEFILE(dlls/wshom.ocx)
3244 WINE_CONFIG_MAKEFILE(dlls/wshom.ocx/tests)
3245 WINE_CONFIG_MAKEFILE(dlls/wsnmp32)
3246 WINE_CONFIG_MAKEFILE(dlls/wsnmp32/tests)
3247 WINE_CONFIG_MAKEFILE(dlls/wsock32)
3248 WINE_CONFIG_MAKEFILE(dlls/wtsapi32)
3249 WINE_CONFIG_MAKEFILE(dlls/wtsapi32/tests)
3250 WINE_CONFIG_MAKEFILE(dlls/wuapi)
3251 WINE_CONFIG_MAKEFILE(dlls/wuaueng)
3252 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_0)
3253 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_1)
3254 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_2)
3255 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_3)
3256 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_4)
3257 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_5)
3258 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_6)
3259 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_7)
3260 WINE_CONFIG_MAKEFILE(dlls/xactengine2_0)
3261 WINE_CONFIG_MAKEFILE(dlls/xactengine2_4)
3262 WINE_CONFIG_MAKEFILE(dlls/xactengine2_7)
3263 WINE_CONFIG_MAKEFILE(dlls/xactengine2_9)
3264 WINE_CONFIG_MAKEFILE(dlls/xactengine3_0)
3265 WINE_CONFIG_MAKEFILE(dlls/xactengine3_1)
3266 WINE_CONFIG_MAKEFILE(dlls/xactengine3_2)
3267 WINE_CONFIG_MAKEFILE(dlls/xactengine3_3)
3268 WINE_CONFIG_MAKEFILE(dlls/xactengine3_4)
3269 WINE_CONFIG_MAKEFILE(dlls/xactengine3_5)
3270 WINE_CONFIG_MAKEFILE(dlls/xactengine3_6)
3271 WINE_CONFIG_MAKEFILE(dlls/xactengine3_7)
3272 WINE_CONFIG_MAKEFILE(dlls/xactengine3_7/tests)
3273 WINE_CONFIG_MAKEFILE(dlls/xapofx1_1)
3274 WINE_CONFIG_MAKEFILE(dlls/xapofx1_2)
3275 WINE_CONFIG_MAKEFILE(dlls/xapofx1_3)
3276 WINE_CONFIG_MAKEFILE(dlls/xapofx1_4)
3277 WINE_CONFIG_MAKEFILE(dlls/xapofx1_5)
3278 WINE_CONFIG_MAKEFILE(dlls/xaudio2_0)
3279 WINE_CONFIG_MAKEFILE(dlls/xaudio2_1)
3280 WINE_CONFIG_MAKEFILE(dlls/xaudio2_2)
3281 WINE_CONFIG_MAKEFILE(dlls/xaudio2_3)
3282 WINE_CONFIG_MAKEFILE(dlls/xaudio2_4)
3283 WINE_CONFIG_MAKEFILE(dlls/xaudio2_5)
3284 WINE_CONFIG_MAKEFILE(dlls/xaudio2_6)
3285 WINE_CONFIG_MAKEFILE(dlls/xaudio2_7)
3286 WINE_CONFIG_MAKEFILE(dlls/xaudio2_7/tests)
3287 WINE_CONFIG_MAKEFILE(dlls/xaudio2_8)
3288 WINE_CONFIG_MAKEFILE(dlls/xaudio2_9)
3289 WINE_CONFIG_MAKEFILE(dlls/xinput1_1)
3290 WINE_CONFIG_MAKEFILE(dlls/xinput1_2)
3291 WINE_CONFIG_MAKEFILE(dlls/xinput1_3)
3292 WINE_CONFIG_MAKEFILE(dlls/xinput1_3/tests)
3293 WINE_CONFIG_MAKEFILE(dlls/xinput1_4)
3294 WINE_CONFIG_MAKEFILE(dlls/xinput9_1_0)
3295 WINE_CONFIG_MAKEFILE(dlls/xmllite)
3296 WINE_CONFIG_MAKEFILE(dlls/xmllite/tests)
3297 WINE_CONFIG_MAKEFILE(dlls/xolehlp)
3298 WINE_CONFIG_MAKEFILE(dlls/xpsprint)
3299 WINE_CONFIG_MAKEFILE(dlls/xpssvcs)
3300 WINE_CONFIG_MAKEFILE(fonts)
3301 WINE_CONFIG_MAKEFILE(include)
3302 WINE_CONFIG_MAKEFILE(libs/adsiid)
3303 WINE_CONFIG_MAKEFILE(libs/dmoguids)
3304 WINE_CONFIG_MAKEFILE(libs/dxerr8)
3305 WINE_CONFIG_MAKEFILE(libs/dxerr9)
3306 WINE_CONFIG_MAKEFILE(libs/dxguid)
3307 WINE_CONFIG_MAKEFILE(libs/faudio)
3308 WINE_CONFIG_MAKEFILE(libs/gsm)
3309 WINE_CONFIG_MAKEFILE(libs/jpeg)
3310 WINE_CONFIG_MAKEFILE(libs/jxr)
3311 WINE_CONFIG_MAKEFILE(libs/lcms2)
3312 WINE_CONFIG_MAKEFILE(libs/mfuuid)
3313 WINE_CONFIG_MAKEFILE(libs/mpg123)
3314 WINE_CONFIG_MAKEFILE(libs/png)
3315 WINE_CONFIG_MAKEFILE(libs/strmbase)
3316 WINE_CONFIG_MAKEFILE(libs/strmiids)
3317 WINE_CONFIG_MAKEFILE(libs/tiff)
3318 WINE_CONFIG_MAKEFILE(libs/uuid)
3319 WINE_CONFIG_MAKEFILE(libs/vkd3d)
3320 WINE_CONFIG_MAKEFILE(libs/wbemuuid)
3321 WINE_CONFIG_MAKEFILE(libs/wine)
3322 WINE_CONFIG_MAKEFILE(libs/wmcodecdspuuid)
3323 WINE_CONFIG_MAKEFILE(libs/xml2)
3324 WINE_CONFIG_MAKEFILE(libs/xslt)
3325 WINE_CONFIG_MAKEFILE(libs/zlib)
3326 WINE_CONFIG_MAKEFILE(loader)
3327 WINE_CONFIG_MAKEFILE(nls)
3328 WINE_CONFIG_MAKEFILE(po)
3329 WINE_CONFIG_MAKEFILE(programs/arp)
3330 WINE_CONFIG_MAKEFILE(programs/aspnet_regiis)
3331 WINE_CONFIG_MAKEFILE(programs/attrib)
3332 WINE_CONFIG_MAKEFILE(programs/cabarc)
3333 WINE_CONFIG_MAKEFILE(programs/cacls)
3334 WINE_CONFIG_MAKEFILE(programs/chcp.com)
3335 WINE_CONFIG_MAKEFILE(programs/clock)
3336 WINE_CONFIG_MAKEFILE(programs/cmd)
3337 WINE_CONFIG_MAKEFILE(programs/cmd/tests)
3338 WINE_CONFIG_MAKEFILE(programs/conhost)
3339 WINE_CONFIG_MAKEFILE(programs/conhost/tests)
3340 WINE_CONFIG_MAKEFILE(programs/control)
3341 WINE_CONFIG_MAKEFILE(programs/cscript)
3342 WINE_CONFIG_MAKEFILE(programs/dism)
3343 WINE_CONFIG_MAKEFILE(programs/dllhost)
3344 WINE_CONFIG_MAKEFILE(programs/dplaysvr)
3345 WINE_CONFIG_MAKEFILE(programs/dpnsvr)
3346 WINE_CONFIG_MAKEFILE(programs/dpvsetup)
3347 WINE_CONFIG_MAKEFILE(programs/dxdiag)
3348 WINE_CONFIG_MAKEFILE(programs/eject)
3349 WINE_CONFIG_MAKEFILE(programs/expand)
3350 WINE_CONFIG_MAKEFILE(programs/explorer)
3351 WINE_CONFIG_MAKEFILE(programs/extrac32)
3352 WINE_CONFIG_MAKEFILE(programs/fc)
3353 WINE_CONFIG_MAKEFILE(programs/find)
3354 WINE_CONFIG_MAKEFILE(programs/find/tests)
3355 WINE_CONFIG_MAKEFILE(programs/findstr)
3356 WINE_CONFIG_MAKEFILE(programs/fsutil)
3357 WINE_CONFIG_MAKEFILE(programs/fsutil/tests)
3358 WINE_CONFIG_MAKEFILE(programs/hh)
3359 WINE_CONFIG_MAKEFILE(programs/hostname)
3360 WINE_CONFIG_MAKEFILE(programs/icacls)
3361 WINE_CONFIG_MAKEFILE(programs/icinfo)
3362 WINE_CONFIG_MAKEFILE(programs/iexplore)
3363 WINE_CONFIG_MAKEFILE(programs/ipconfig)
3364 WINE_CONFIG_MAKEFILE(programs/lodctr)
3365 WINE_CONFIG_MAKEFILE(programs/mofcomp)
3366 WINE_CONFIG_MAKEFILE(programs/mshta)
3367 WINE_CONFIG_MAKEFILE(programs/msidb)
3368 WINE_CONFIG_MAKEFILE(programs/msiexec)
3369 WINE_CONFIG_MAKEFILE(programs/msinfo32)
3370 WINE_CONFIG_MAKEFILE(programs/net)
3371 WINE_CONFIG_MAKEFILE(programs/netsh)
3372 WINE_CONFIG_MAKEFILE(programs/netstat)
3373 WINE_CONFIG_MAKEFILE(programs/ngen)
3374 WINE_CONFIG_MAKEFILE(programs/notepad)
3375 WINE_CONFIG_MAKEFILE(programs/oleview)
3376 WINE_CONFIG_MAKEFILE(programs/ping)
3377 WINE_CONFIG_MAKEFILE(programs/plugplay)
3378 WINE_CONFIG_MAKEFILE(programs/powershell)
3379 WINE_CONFIG_MAKEFILE(programs/presentationfontcache)
3380 WINE_CONFIG_MAKEFILE(programs/progman)
3381 WINE_CONFIG_MAKEFILE(programs/reg)
3382 WINE_CONFIG_MAKEFILE(programs/reg/tests)
3383 WINE_CONFIG_MAKEFILE(programs/regasm)
3384 WINE_CONFIG_MAKEFILE(programs/regedit)
3385 WINE_CONFIG_MAKEFILE(programs/regedit/tests)
3386 WINE_CONFIG_MAKEFILE(programs/regini)
3387 WINE_CONFIG_MAKEFILE(programs/regsvcs)
3388 WINE_CONFIG_MAKEFILE(programs/regsvr32)
3389 WINE_CONFIG_MAKEFILE(programs/robocopy)
3390 WINE_CONFIG_MAKEFILE(programs/rpcss)
3391 WINE_CONFIG_MAKEFILE(programs/rundll.exe16,enable_win16)
3392 WINE_CONFIG_MAKEFILE(programs/rundll32)
3393 WINE_CONFIG_MAKEFILE(programs/sc)
3394 WINE_CONFIG_MAKEFILE(programs/sc/tests)
3395 WINE_CONFIG_MAKEFILE(programs/schtasks)
3396 WINE_CONFIG_MAKEFILE(programs/schtasks/tests)
3397 WINE_CONFIG_MAKEFILE(programs/sdbinst)
3398 WINE_CONFIG_MAKEFILE(programs/secedit)
3399 WINE_CONFIG_MAKEFILE(programs/servicemodelreg)
3400 WINE_CONFIG_MAKEFILE(programs/services)
3401 WINE_CONFIG_MAKEFILE(programs/services/tests)
3402 WINE_CONFIG_MAKEFILE(programs/shutdown)
3403 WINE_CONFIG_MAKEFILE(programs/spoolsv)
3404 WINE_CONFIG_MAKEFILE(programs/start)
3405 WINE_CONFIG_MAKEFILE(programs/subst)
3406 WINE_CONFIG_MAKEFILE(programs/svchost)
3407 WINE_CONFIG_MAKEFILE(programs/systeminfo)
3408 WINE_CONFIG_MAKEFILE(programs/taskkill)
3409 WINE_CONFIG_MAKEFILE(programs/tasklist)
3410 WINE_CONFIG_MAKEFILE(programs/taskmgr)
3411 WINE_CONFIG_MAKEFILE(programs/termsv)
3412 WINE_CONFIG_MAKEFILE(programs/uninstaller)
3413 WINE_CONFIG_MAKEFILE(programs/unlodctr)
3414 WINE_CONFIG_MAKEFILE(programs/view)
3415 WINE_CONFIG_MAKEFILE(programs/wevtutil)
3416 WINE_CONFIG_MAKEFILE(programs/where)
3417 WINE_CONFIG_MAKEFILE(programs/whoami)
3418 WINE_CONFIG_MAKEFILE(programs/wineboot)
3419 WINE_CONFIG_MAKEFILE(programs/winebrowser)
3420 WINE_CONFIG_MAKEFILE(programs/winecfg)
3421 WINE_CONFIG_MAKEFILE(programs/wineconsole)
3422 WINE_CONFIG_MAKEFILE(programs/winedbg)
3423 WINE_CONFIG_MAKEFILE(programs/winedevice)
3424 WINE_CONFIG_MAKEFILE(programs/winefile)
3425 WINE_CONFIG_MAKEFILE(programs/winemenubuilder)
3426 WINE_CONFIG_MAKEFILE(programs/winemine)
3427 WINE_CONFIG_MAKEFILE(programs/winemsibuilder)
3428 WINE_CONFIG_MAKEFILE(programs/winepath)
3429 WINE_CONFIG_MAKEFILE(programs/winetest)
3430 WINE_CONFIG_MAKEFILE(programs/winevdm,enable_win16)
3431 WINE_CONFIG_MAKEFILE(programs/winhelp.exe16,enable_win16)
3432 WINE_CONFIG_MAKEFILE(programs/winhlp32)
3433 WINE_CONFIG_MAKEFILE(programs/winmgmt)
3434 WINE_CONFIG_MAKEFILE(programs/winoldap.mod16,enable_win16)
3435 WINE_CONFIG_MAKEFILE(programs/winver)
3436 WINE_CONFIG_MAKEFILE(programs/wmic)
3437 WINE_CONFIG_MAKEFILE(programs/wmplayer)
3438 WINE_CONFIG_MAKEFILE(programs/wordpad)
3439 WINE_CONFIG_MAKEFILE(programs/write)
3440 WINE_CONFIG_MAKEFILE(programs/wscript)
3441 WINE_CONFIG_MAKEFILE(programs/wscript/tests)
3442 WINE_CONFIG_MAKEFILE(programs/wuauserv)
3443 WINE_CONFIG_MAKEFILE(programs/wusa)
3444 WINE_CONFIG_MAKEFILE(programs/xcopy)
3445 WINE_CONFIG_MAKEFILE(programs/xcopy/tests)
3446 WINE_CONFIG_MAKEFILE(server)
3447 WINE_CONFIG_MAKEFILE(tools,,[test "x$enable_tools" = xno])
3448 WINE_CONFIG_MAKEFILE(tools/sfnt2fon,,[test "x$enable_tools" = xno])
3449 WINE_CONFIG_MAKEFILE(tools/widl,,[test "x$enable_tools" = xno])
3450 WINE_CONFIG_MAKEFILE(tools/winebuild,,[test "x$enable_tools" = xno])
3451 WINE_CONFIG_MAKEFILE(tools/winedump,,[test "x$enable_tools" = xno])
3452 WINE_CONFIG_MAKEFILE(tools/winegcc,,[test "x$enable_tools" = xno])
3453 WINE_CONFIG_MAKEFILE(tools/winemaker,,[test "x$enable_tools" = xno])
3454 WINE_CONFIG_MAKEFILE(tools/wmc,,[test "x$enable_tools" = xno])
3455 WINE_CONFIG_MAKEFILE(tools/wrc,,[test "x$enable_tools" = xno])
3456 dnl End of auto-generated output commands
3458 dnl Main ignore file
3460 WINE_IGNORE_FILE("TAGS")
3461 WINE_IGNORE_FILE("tags")
3462 WINE_IGNORE_FILE("autom4te.cache")
3463 WINE_IGNORE_FILE("config.log")
3464 WINE_IGNORE_FILE("config.status")
3465 WINE_IGNORE_FILE("include/config.h")
3466 WINE_IGNORE_FILE("include/stamp-h")
3467 test "$wine_binary" = wine || WINE_IGNORE_FILE("loader/wine")
3469 if test "x$enable_tools" != xno
3470 then
3471     WINE_IGNORE_FILE("tools/makedep$ac_exeext")
3472     AC_CONFIG_COMMANDS([tools/makedep],[wine_fn_output_makedep || AS_EXIT],
3473 [wine_fn_output_makedep ()
3475     AS_MKDIR_P(tools)
3476     $CC -I${wine_srcdir}tools -Iinclude -I${wine_srcdir}include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext ${wine_srcdir}tools/makedep.c $LDFLAGS
3480 AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
3481 [wine_fn_output_makefile ()
3483     cat <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$[]1 && "$wine_makedep"$makedep_flags && return
3484 # This Makefile understands the following targets:
3486 # all (default):   build wine
3487 # clean:           remove all intermediate files
3488 # distclean:       also remove all files created by configure
3489 # test:            run tests
3490 # testclean:       clean test results to force running all tests again
3491 # install-lib:     install libraries needed to run applications
3492 # install-dev:     install development environment
3493 # install:         install everything
3494 # uninstall:       uninstall everything
3495 # ctags:           create a tags file for vim and others.
3496 # etags:           create a TAGS file for Emacs.
3498 m4_set_foreach([_AC_SUBST_VARS],[var],[var = $var
3499 ])$SET_MAKE
3500 $wine_rules
3501 _WINE_EOF
3502     AS_ERROR([could not create Makefile])
3505 dnl Main makefile
3507 AC_SUBST(SHELL,[/bin/sh])
3509 WINE_APPEND_RULE(
3510 [all: wine
3511         @echo \"Wine build complete.\"
3512 .INIT: Makefile
3513 .MAKEFILEDEPS:
3514 all: Makefile
3515 Makefile: config.status \$(MAKEDEP)
3516         @./config.status Makefile
3517 depend: \$(MAKEDEP)
3518         \$(MAKEDEP)$makedep_flags])
3520 dnl Rules for re-running configure
3522 WINE_APPEND_RULE(
3523 [config.status: ${wine_srcdir}configure
3524         @./config.status --recheck
3525 include/config.h: include/stamp-h
3526 include/stamp-h: ${wine_srcdir}include/config.h.in config.status
3527         @./config.status include/config.h include/stamp-h])
3529 if test "x$enable_maintainer_mode" = xyes
3530 then
3531     WINE_APPEND_RULE(
3532 [configure: configure.ac aclocal.m4
3533         autoconf --warnings=all
3534 include/config.h.in: include/stamp-h.in
3535 include/stamp-h.in: configure.ac aclocal.m4
3536         autoheader --warnings=all
3537         @echo timestamp > \$[@]])
3540 if test "x$enable_tools" != xno
3541 then
3542     WINE_APPEND_RULE(
3543 [tools/makedep$ac_exeext: ${wine_srcdir}tools/makedep.c include/config.h config.status
3544         @./config.status tools/makedep
3545 Makefile: tools/makedep$ac_exeext])
3546 else
3547     WINE_APPEND_RULE(
3548 [\$(MAKEDEP):
3549         @echo \"You need to run make in $toolsdir first\" && false])
3552 dnl Rules for wineloader
3554 if test -n "$with_wine64"
3555 then
3556     case "$with_wine64" in
3557       /*) reldir="" ;;
3558       *)  reldir="../" ;;
3559     esac
3560     dnl Get rid of old symlinks
3561     rm -f fonts server 2>/dev/null
3562     WINE_APPEND_RULE(
3563 [all: loader/wine64 loader/wine64-preloader $with_wine64/loader/wine $with_wine64/loader/wine-preloader
3564 loader/wine64 loader/wine64-preloader:
3565         rm -f \$[@] && \$(LN_S) $reldir$with_wine64/\$[@] \$[@]
3566 $with_wine64/loader/wine:
3567         rm -f \$[@] && \$(LN_S) $ac_pwd/loader/wine \$[@]
3568 $with_wine64/loader/wine-preloader:
3569         rm -f \$[@] && \$(LN_S) $ac_pwd/loader/wine-preloader \$[@]
3570 clean::
3571         rm -f loader/wine64 loader/wine64-preloader $with_wine64/loader/wine $with_wine64/loader/wine-preloader])
3572 else
3573     TOP_INSTALL_DEV="$TOP_INSTALL_DEV include"
3574     TOP_INSTALL_LIB="$TOP_INSTALL_LIB \
3575 fonts \
3576 loader/wine.inf \
3577 nls \
3578 programs/msidb/msidb \
3579 programs/msiexec/msiexec \
3580 programs/notepad/notepad \
3581 programs/regedit/regedit \
3582 programs/regsvr32/regsvr32 \
3583 programs/wineboot/wineboot \
3584 programs/winecfg/winecfg \
3585 programs/wineconsole/wineconsole \
3586 programs/winedbg/winedbg \
3587 programs/winefile/winefile \
3588 programs/winemine/winemine \
3589 programs/winepath/winepath \
3590 server/wineserver"
3592     case $host_os in
3593       cygwin*|mingw32*|darwin*|macosx*|linux-android*) ;;
3594       *) TOP_INSTALL_LIB="$TOP_INSTALL_LIB loader/wine.desktop" ;;
3595     esac
3598 dnl Rules for cleaning
3600 WINE_APPEND_RULE(
3601 [distclean:: clean
3602         rm -rf autom4te.cache
3603 maintainer-clean::
3604         rm -f configure include/config.h.in])
3606 dnl Rules for generated source files
3608 WINE_APPEND_RULE(
3609 [dlls/ntdll/unix/version.c: dummy
3610         @version=\`(GIT_DIR=${wine_srcdir}.git git describe HEAD 2>/dev/null || echo \"wine-\$(PACKAGE_VERSION)\") | sed -n -e '\$\$s/\(.*\)/const char wine_build[[]] = \"\\1\";/p'\` && (echo \$\$version | cmp -s - \$[@]) || echo \$\$version >\$[@] || (rm -f \$[@] && exit 1)
3611 programs/winetest/build.rc: dummy
3612         @build=\"STRINGTABLE { 1 \\\"\`GIT_DIR=${wine_srcdir}.git git rev-parse HEAD 2>/dev/null\`\\\" }\" && (echo \$\$build | cmp -s - \$[@]) || echo \$\$build >\$[@] || (rm -f \$[@] && exit 1)
3613 programs/winetest/build.nfo:
3614         @-\$(CC) -v 2>\$[@]
3615 dlls/wineandroid.drv/wine-debug.apk: dlls/wineandroid.drv/build.gradle ${wine_srcdir}dlls/wineandroid.drv/AndroidManifest.xml ${wine_srcdir}dlls/wineandroid.drv/WineActivity.java ${wine_srcdir}dlls/wineandroid.drv/wine.svg
3616         cd dlls/wineandroid.drv && gradle -q -Psrcdir=$srcdir assembleDebug
3617         mv dlls/wineandroid.drv/build/outputs/apk/wine-debug.apk \$[@]])
3619 dnl Misc rules
3621 AC_SUBST(TAGSFLAGS,["--langmap='c:+.idl.l.rh,make:(Make*.in)'"])
3622 WINE_APPEND_RULE(
3623 [TAGS etags:
3624         rm -f TAGS
3625         (test -d .git && git ls-files || find -L $srcdir -name '*.[[ch]]' -print) | xargs etags -a \$(TAGSFLAGS)
3626 tags ctags:
3627         rm -f tags
3628         (test -d .git && git ls-files || find -L $srcdir -name '*.[[ch]]' -print) | xargs ctags -a \$(TAGSFLAGS)
3629 dummy:
3630 .PHONY: depend dummy install-manpages])
3632 AS_ECHO(" done") >&AS_MESSAGE_FD
3633 AC_OUTPUT
3635 if test "$no_create" = "yes"
3636 then
3637   exit 0
3640 WINE_PRINT_MESSAGES
3642 AS_ECHO("
3643 $as_me: Finished.  Do '${ac_make}' to compile Wine.
3644 ") >&AS_MESSAGE_FD
3646 dnl Local Variables:
3647 dnl comment-start: "dnl "
3648 dnl comment-end: ""
3649 dnl comment-start-skip: "\\bdnl\\b\\s *"
3650 dnl compile-command: "autoreconf --warnings=all"
3651 dnl End: