configure.ac 145 KB

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