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