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