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