configure.ac 137 KB

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