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