configure 168 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  167. if (eval "$as_required") 2>/dev/null
  168. then :
  169. as_have_required=yes
  170. else $as_nop
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  174. then :
  175. else $as_nop
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. case $as_dir in #(((
  182. '') as_dir=./ ;;
  183. */) ;;
  184. *) as_dir=$as_dir/ ;;
  185. esac
  186. as_found=:
  187. case $as_dir in #(
  188. /*)
  189. for as_base in sh bash ksh sh5; do
  190. # Try only shells that exist, to save several forks.
  191. as_shell=$as_dir$as_base
  192. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  193. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  194. then :
  195. CONFIG_SHELL=$as_shell as_have_required=yes
  196. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  197. then :
  198. break 2
  199. fi
  200. fi
  201. done;;
  202. esac
  203. as_found=false
  204. done
  205. IFS=$as_save_IFS
  206. if $as_found
  207. then :
  208. else $as_nop
  209. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  210. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  211. then :
  212. CONFIG_SHELL=$SHELL as_have_required=yes
  213. fi
  214. fi
  215. if test "x$CONFIG_SHELL" != x
  216. then :
  217. export CONFIG_SHELL
  218. # We cannot yet assume a decent shell, so we have to provide a
  219. # neutralization value for shells without unset; and this also
  220. # works around shells that cannot unset nonexistent variables.
  221. # Preserve -v and -x to the replacement shell.
  222. BASH_ENV=/dev/null
  223. ENV=/dev/null
  224. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  225. case $- in # ((((
  226. *v*x* | *x*v* ) as_opts=-vx ;;
  227. *v* ) as_opts=-v ;;
  228. *x* ) as_opts=-x ;;
  229. * ) as_opts= ;;
  230. esac
  231. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  232. # Admittedly, this is quite paranoid, since all the known shells bail
  233. # out after a failed `exec'.
  234. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  235. exit 255
  236. fi
  237. if test x$as_have_required = xno
  238. then :
  239. printf "%s\n" "$0: This script requires a shell more modern than all"
  240. printf "%s\n" "$0: the shells that I found on your system."
  241. if test ${ZSH_VERSION+y} ; then
  242. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  243. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  244. else
  245. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  246. $0: including any error possibly output before this
  247. $0: message. Then install a modern shell, or manually run
  248. $0: the script under such a shell if you do have one."
  249. fi
  250. exit 1
  251. fi
  252. fi
  253. fi
  254. SHELL=${CONFIG_SHELL-/bin/sh}
  255. export SHELL
  256. # Unset more variables known to interfere with behavior of common tools.
  257. CLICOLOR_FORCE= GREP_OPTIONS=
  258. unset CLICOLOR_FORCE GREP_OPTIONS
  259. ## --------------------- ##
  260. ## M4sh Shell Functions. ##
  261. ## --------------------- ##
  262. # as_fn_unset VAR
  263. # ---------------
  264. # Portably unset VAR.
  265. as_fn_unset ()
  266. {
  267. { eval $1=; unset $1;}
  268. }
  269. as_unset=as_fn_unset
  270. # as_fn_set_status STATUS
  271. # -----------------------
  272. # Set $? to STATUS, without forking.
  273. as_fn_set_status ()
  274. {
  275. return $1
  276. } # as_fn_set_status
  277. # as_fn_exit STATUS
  278. # -----------------
  279. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  280. as_fn_exit ()
  281. {
  282. set +e
  283. as_fn_set_status $1
  284. exit $1
  285. } # as_fn_exit
  286. # as_fn_nop
  287. # ---------
  288. # Do nothing but, unlike ":", preserve the value of $?.
  289. as_fn_nop ()
  290. {
  291. return $?
  292. }
  293. as_nop=as_fn_nop
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. printf "%s\n" X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  352. then :
  353. eval 'as_fn_append ()
  354. {
  355. eval $1+=\$2
  356. }'
  357. else $as_nop
  358. as_fn_append ()
  359. {
  360. eval $1=\$$1\$2
  361. }
  362. fi # as_fn_append
  363. # as_fn_arith ARG...
  364. # ------------------
  365. # Perform arithmetic evaluation on the ARGs, and store the result in the
  366. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  367. # must be portable across $(()) and expr.
  368. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  369. then :
  370. eval 'as_fn_arith ()
  371. {
  372. as_val=$(( $* ))
  373. }'
  374. else $as_nop
  375. as_fn_arith ()
  376. {
  377. as_val=`expr "$@" || test $? -eq 1`
  378. }
  379. fi # as_fn_arith
  380. # as_fn_nop
  381. # ---------
  382. # Do nothing but, unlike ":", preserve the value of $?.
  383. as_fn_nop ()
  384. {
  385. return $?
  386. }
  387. as_nop=as_fn_nop
  388. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  389. # ----------------------------------------
  390. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  391. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  392. # script with STATUS, using 1 if that was 0.
  393. as_fn_error ()
  394. {
  395. as_status=$1; test $as_status -eq 0 && as_status=1
  396. if test "$4"; then
  397. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  398. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  399. fi
  400. printf "%s\n" "$as_me: error: $2" >&2
  401. as_fn_exit $as_status
  402. } # as_fn_error
  403. if expr a : '\(a\)' >/dev/null 2>&1 &&
  404. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  405. as_expr=expr
  406. else
  407. as_expr=false
  408. fi
  409. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  410. as_basename=basename
  411. else
  412. as_basename=false
  413. fi
  414. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  415. as_dirname=dirname
  416. else
  417. as_dirname=false
  418. fi
  419. as_me=`$as_basename -- "$0" ||
  420. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  421. X"$0" : 'X\(//\)$' \| \
  422. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  423. printf "%s\n" X/"$0" |
  424. sed '/^.*\/\([^/][^/]*\)\/*$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\/\)$/{
  429. s//\1/
  430. q
  431. }
  432. /^X\/\(\/\).*/{
  433. s//\1/
  434. q
  435. }
  436. s/.*/./; q'`
  437. # Avoid depending upon Character Ranges.
  438. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  439. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  440. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  441. as_cr_digits='0123456789'
  442. as_cr_alnum=$as_cr_Letters$as_cr_digits
  443. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  444. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  445. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  446. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  447. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  448. sed -n '
  449. p
  450. /[$]LINENO/=
  451. ' <$as_myself |
  452. sed '
  453. s/[$]LINENO.*/&-/
  454. t lineno
  455. b
  456. :lineno
  457. N
  458. :loop
  459. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  460. t loop
  461. s/-\n.*//
  462. ' >$as_me.lineno &&
  463. chmod +x "$as_me.lineno" ||
  464. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  465. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  466. # already done that, so ensure we don't try to do so again and fall
  467. # in an infinite loop. This has already happened in practice.
  468. _as_can_reexec=no; export _as_can_reexec
  469. # Don't try to exec as it changes $[0], causing all sort of problems
  470. # (the dirname of $[0] is not the place where we might find the
  471. # original and so on. Autoconf is especially sensitive to this).
  472. . "./$as_me.lineno"
  473. # Exit status is that of the last command.
  474. exit
  475. }
  476. # Determine whether it's possible to make 'echo' print without a newline.
  477. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  478. # for compatibility with existing Makefiles.
  479. ECHO_C= ECHO_N= ECHO_T=
  480. case `echo -n x` in #(((((
  481. -n*)
  482. case `echo 'xy\c'` in
  483. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  484. xy) ECHO_C='\c';;
  485. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  486. ECHO_T=' ';;
  487. esac;;
  488. *)
  489. ECHO_N='-n';;
  490. esac
  491. # For backward compatibility with old third-party macros, we provide
  492. # the shell variables $as_echo and $as_echo_n. New code should use
  493. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  494. as_echo='printf %s\n'
  495. as_echo_n='printf %s'
  496. rm -f conf$$ conf$$.exe conf$$.file
  497. if test -d conf$$.dir; then
  498. rm -f conf$$.dir/conf$$.file
  499. else
  500. rm -f conf$$.dir
  501. mkdir conf$$.dir 2>/dev/null
  502. fi
  503. if (echo >conf$$.file) 2>/dev/null; then
  504. if ln -s conf$$.file conf$$ 2>/dev/null; then
  505. as_ln_s='ln -s'
  506. # ... but there are two gotchas:
  507. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  508. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  509. # In both cases, we have to default to `cp -pR'.
  510. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  511. as_ln_s='cp -pR'
  512. elif ln conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s=ln
  514. else
  515. as_ln_s='cp -pR'
  516. fi
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  521. rmdir conf$$.dir 2>/dev/null
  522. if mkdir -p . 2>/dev/null; then
  523. as_mkdir_p='mkdir -p "$as_dir"'
  524. else
  525. test -d ./-p && rmdir ./-p
  526. as_mkdir_p=false
  527. fi
  528. as_test_x='test -x'
  529. as_executable_p=as_fn_executable_p
  530. # Sed expression to map a string onto a valid CPP name.
  531. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  532. # Sed expression to map a string onto a valid variable name.
  533. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  534. test -n "$DJDIR" || exec 7<&0 </dev/null
  535. exec 6>&1
  536. # Name of the host.
  537. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  538. # so uname gets run too.
  539. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  540. #
  541. # Initializations.
  542. #
  543. ac_default_prefix=/usr/local
  544. ac_clean_files=
  545. ac_config_libobj_dir=.
  546. LIBOBJS=
  547. cross_compiling=no
  548. subdirs=
  549. MFLAGS=
  550. MAKEFLAGS=
  551. # Identity of this package.
  552. PACKAGE_NAME=''
  553. PACKAGE_TARNAME=''
  554. PACKAGE_VERSION=''
  555. PACKAGE_STRING=''
  556. PACKAGE_BUGREPORT=''
  557. PACKAGE_URL=''
  558. ac_unique_file="loopwave.c"
  559. ac_subst_vars='LTLIBOBJS
  560. LIBOBJS
  561. LIBUNWIND_LIBS
  562. LIBUNWIND_CFLAGS
  563. SDL_TTF_LIB
  564. XLIB
  565. GLES2LIB
  566. GLESLIB
  567. GLLIB
  568. OPENGL_TARGETS
  569. OPENGLES2_TARGETS
  570. CPP
  571. XMKMF
  572. SDL3_CONFIG
  573. SDL_LIBS
  574. SDL_CFLAGS
  575. PKG_CONFIG_LIBDIR
  576. PKG_CONFIG_PATH
  577. PKG_CONFIG
  578. ISUNIX
  579. ISWINDOWS
  580. ISMACOSX
  581. MATHLIB
  582. EXE
  583. OSMESA_CONFIG
  584. OBJEXT
  585. EXEEXT
  586. ac_ct_CC
  587. CPPFLAGS
  588. LDFLAGS
  589. CFLAGS
  590. CC
  591. host_os
  592. host_vendor
  593. host_cpu
  594. host
  595. build_os
  596. build_vendor
  597. build_cpu
  598. build
  599. target_alias
  600. host_alias
  601. build_alias
  602. LIBS
  603. ECHO_T
  604. ECHO_N
  605. ECHO_C
  606. DEFS
  607. mandir
  608. localedir
  609. libdir
  610. psdir
  611. pdfdir
  612. dvidir
  613. htmldir
  614. infodir
  615. docdir
  616. oldincludedir
  617. includedir
  618. runstatedir
  619. localstatedir
  620. sharedstatedir
  621. sysconfdir
  622. datadir
  623. datarootdir
  624. libexecdir
  625. sbindir
  626. bindir
  627. program_transform_name
  628. prefix
  629. exec_prefix
  630. PACKAGE_URL
  631. PACKAGE_BUGREPORT
  632. PACKAGE_STRING
  633. PACKAGE_VERSION
  634. PACKAGE_TARNAME
  635. PACKAGE_NAME
  636. PATH_SEPARATOR
  637. SHELL'
  638. ac_subst_files=''
  639. ac_user_opts='
  640. enable_option_checking
  641. with_sdl_prefix
  642. with_sdl_exec_prefix
  643. enable_sdltest
  644. with_x
  645. enable_werror
  646. '
  647. ac_precious_vars='build_alias
  648. host_alias
  649. target_alias
  650. CC
  651. CFLAGS
  652. LDFLAGS
  653. LIBS
  654. CPPFLAGS
  655. PKG_CONFIG
  656. PKG_CONFIG_PATH
  657. PKG_CONFIG_LIBDIR
  658. SDL_CFLAGS
  659. SDL_LIBS
  660. XMKMF
  661. CPP
  662. LIBUNWIND_CFLAGS
  663. LIBUNWIND_LIBS'
  664. # Initialize some variables set by options.
  665. ac_init_help=
  666. ac_init_version=false
  667. ac_unrecognized_opts=
  668. ac_unrecognized_sep=
  669. # The variables have the same names as the options, with
  670. # dashes changed to underlines.
  671. cache_file=/dev/null
  672. exec_prefix=NONE
  673. no_create=
  674. no_recursion=
  675. prefix=NONE
  676. program_prefix=NONE
  677. program_suffix=NONE
  678. program_transform_name=s,x,x,
  679. silent=
  680. site=
  681. srcdir=
  682. verbose=
  683. x_includes=NONE
  684. x_libraries=NONE
  685. # Installation directory options.
  686. # These are left unexpanded so users can "make install exec_prefix=/foo"
  687. # and all the variables that are supposed to be based on exec_prefix
  688. # by default will actually change.
  689. # Use braces instead of parens because sh, perl, etc. also accept them.
  690. # (The list follows the same order as the GNU Coding Standards.)
  691. bindir='${exec_prefix}/bin'
  692. sbindir='${exec_prefix}/sbin'
  693. libexecdir='${exec_prefix}/libexec'
  694. datarootdir='${prefix}/share'
  695. datadir='${datarootdir}'
  696. sysconfdir='${prefix}/etc'
  697. sharedstatedir='${prefix}/com'
  698. localstatedir='${prefix}/var'
  699. runstatedir='${localstatedir}/run'
  700. includedir='${prefix}/include'
  701. oldincludedir='/usr/include'
  702. docdir='${datarootdir}/doc/${PACKAGE}'
  703. infodir='${datarootdir}/info'
  704. htmldir='${docdir}'
  705. dvidir='${docdir}'
  706. pdfdir='${docdir}'
  707. psdir='${docdir}'
  708. libdir='${exec_prefix}/lib'
  709. localedir='${datarootdir}/locale'
  710. mandir='${datarootdir}/man'
  711. ac_prev=
  712. ac_dashdash=
  713. for ac_option
  714. do
  715. # If the previous option needs an argument, assign it.
  716. if test -n "$ac_prev"; then
  717. eval $ac_prev=\$ac_option
  718. ac_prev=
  719. continue
  720. fi
  721. case $ac_option in
  722. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  723. *=) ac_optarg= ;;
  724. *) ac_optarg=yes ;;
  725. esac
  726. case $ac_dashdash$ac_option in
  727. --)
  728. ac_dashdash=yes ;;
  729. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  730. ac_prev=bindir ;;
  731. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  732. bindir=$ac_optarg ;;
  733. -build | --build | --buil | --bui | --bu)
  734. ac_prev=build_alias ;;
  735. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  736. build_alias=$ac_optarg ;;
  737. -cache-file | --cache-file | --cache-fil | --cache-fi \
  738. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  739. ac_prev=cache_file ;;
  740. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  741. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  742. cache_file=$ac_optarg ;;
  743. --config-cache | -C)
  744. cache_file=config.cache ;;
  745. -datadir | --datadir | --datadi | --datad)
  746. ac_prev=datadir ;;
  747. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  748. datadir=$ac_optarg ;;
  749. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  750. | --dataroo | --dataro | --datar)
  751. ac_prev=datarootdir ;;
  752. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  753. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  754. datarootdir=$ac_optarg ;;
  755. -disable-* | --disable-*)
  756. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  757. # Reject names that are not valid shell variable names.
  758. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  759. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  760. ac_useropt_orig=$ac_useropt
  761. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  762. case $ac_user_opts in
  763. *"
  764. "enable_$ac_useropt"
  765. "*) ;;
  766. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  767. ac_unrecognized_sep=', ';;
  768. esac
  769. eval enable_$ac_useropt=no ;;
  770. -docdir | --docdir | --docdi | --doc | --do)
  771. ac_prev=docdir ;;
  772. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  773. docdir=$ac_optarg ;;
  774. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  775. ac_prev=dvidir ;;
  776. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  777. dvidir=$ac_optarg ;;
  778. -enable-* | --enable-*)
  779. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  780. # Reject names that are not valid shell variable names.
  781. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  782. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  783. ac_useropt_orig=$ac_useropt
  784. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  785. case $ac_user_opts in
  786. *"
  787. "enable_$ac_useropt"
  788. "*) ;;
  789. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  790. ac_unrecognized_sep=', ';;
  791. esac
  792. eval enable_$ac_useropt=\$ac_optarg ;;
  793. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  794. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  795. | --exec | --exe | --ex)
  796. ac_prev=exec_prefix ;;
  797. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  798. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  799. | --exec=* | --exe=* | --ex=*)
  800. exec_prefix=$ac_optarg ;;
  801. -gas | --gas | --ga | --g)
  802. # Obsolete; use --with-gas.
  803. with_gas=yes ;;
  804. -help | --help | --hel | --he | -h)
  805. ac_init_help=long ;;
  806. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  807. ac_init_help=recursive ;;
  808. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  809. ac_init_help=short ;;
  810. -host | --host | --hos | --ho)
  811. ac_prev=host_alias ;;
  812. -host=* | --host=* | --hos=* | --ho=*)
  813. host_alias=$ac_optarg ;;
  814. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  815. ac_prev=htmldir ;;
  816. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  817. | --ht=*)
  818. htmldir=$ac_optarg ;;
  819. -includedir | --includedir | --includedi | --included | --include \
  820. | --includ | --inclu | --incl | --inc)
  821. ac_prev=includedir ;;
  822. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  823. | --includ=* | --inclu=* | --incl=* | --inc=*)
  824. includedir=$ac_optarg ;;
  825. -infodir | --infodir | --infodi | --infod | --info | --inf)
  826. ac_prev=infodir ;;
  827. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  828. infodir=$ac_optarg ;;
  829. -libdir | --libdir | --libdi | --libd)
  830. ac_prev=libdir ;;
  831. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  832. libdir=$ac_optarg ;;
  833. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  834. | --libexe | --libex | --libe)
  835. ac_prev=libexecdir ;;
  836. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  837. | --libexe=* | --libex=* | --libe=*)
  838. libexecdir=$ac_optarg ;;
  839. -localedir | --localedir | --localedi | --localed | --locale)
  840. ac_prev=localedir ;;
  841. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  842. localedir=$ac_optarg ;;
  843. -localstatedir | --localstatedir | --localstatedi | --localstated \
  844. | --localstate | --localstat | --localsta | --localst | --locals)
  845. ac_prev=localstatedir ;;
  846. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  847. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  848. localstatedir=$ac_optarg ;;
  849. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  850. ac_prev=mandir ;;
  851. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  852. mandir=$ac_optarg ;;
  853. -nfp | --nfp | --nf)
  854. # Obsolete; use --without-fp.
  855. with_fp=no ;;
  856. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  857. | --no-cr | --no-c | -n)
  858. no_create=yes ;;
  859. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  860. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  861. no_recursion=yes ;;
  862. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  863. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  864. | --oldin | --oldi | --old | --ol | --o)
  865. ac_prev=oldincludedir ;;
  866. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  867. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  868. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  869. oldincludedir=$ac_optarg ;;
  870. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  871. ac_prev=prefix ;;
  872. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  873. prefix=$ac_optarg ;;
  874. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  875. | --program-pre | --program-pr | --program-p)
  876. ac_prev=program_prefix ;;
  877. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  878. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  879. program_prefix=$ac_optarg ;;
  880. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  881. | --program-suf | --program-su | --program-s)
  882. ac_prev=program_suffix ;;
  883. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  884. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  885. program_suffix=$ac_optarg ;;
  886. -program-transform-name | --program-transform-name \
  887. | --program-transform-nam | --program-transform-na \
  888. | --program-transform-n | --program-transform- \
  889. | --program-transform | --program-transfor \
  890. | --program-transfo | --program-transf \
  891. | --program-trans | --program-tran \
  892. | --progr-tra | --program-tr | --program-t)
  893. ac_prev=program_transform_name ;;
  894. -program-transform-name=* | --program-transform-name=* \
  895. | --program-transform-nam=* | --program-transform-na=* \
  896. | --program-transform-n=* | --program-transform-=* \
  897. | --program-transform=* | --program-transfor=* \
  898. | --program-transfo=* | --program-transf=* \
  899. | --program-trans=* | --program-tran=* \
  900. | --progr-tra=* | --program-tr=* | --program-t=*)
  901. program_transform_name=$ac_optarg ;;
  902. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  903. ac_prev=pdfdir ;;
  904. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  905. pdfdir=$ac_optarg ;;
  906. -psdir | --psdir | --psdi | --psd | --ps)
  907. ac_prev=psdir ;;
  908. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  909. psdir=$ac_optarg ;;
  910. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  911. | -silent | --silent | --silen | --sile | --sil)
  912. silent=yes ;;
  913. -runstatedir | --runstatedir | --runstatedi | --runstated \
  914. | --runstate | --runstat | --runsta | --runst | --runs \
  915. | --run | --ru | --r)
  916. ac_prev=runstatedir ;;
  917. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  918. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  919. | --run=* | --ru=* | --r=*)
  920. runstatedir=$ac_optarg ;;
  921. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  922. ac_prev=sbindir ;;
  923. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  924. | --sbi=* | --sb=*)
  925. sbindir=$ac_optarg ;;
  926. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  927. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  928. | --sharedst | --shareds | --shared | --share | --shar \
  929. | --sha | --sh)
  930. ac_prev=sharedstatedir ;;
  931. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  932. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  933. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  934. | --sha=* | --sh=*)
  935. sharedstatedir=$ac_optarg ;;
  936. -site | --site | --sit)
  937. ac_prev=site ;;
  938. -site=* | --site=* | --sit=*)
  939. site=$ac_optarg ;;
  940. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  941. ac_prev=srcdir ;;
  942. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  943. srcdir=$ac_optarg ;;
  944. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  945. | --syscon | --sysco | --sysc | --sys | --sy)
  946. ac_prev=sysconfdir ;;
  947. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  948. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  949. sysconfdir=$ac_optarg ;;
  950. -target | --target | --targe | --targ | --tar | --ta | --t)
  951. ac_prev=target_alias ;;
  952. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  953. target_alias=$ac_optarg ;;
  954. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  955. verbose=yes ;;
  956. -version | --version | --versio | --versi | --vers | -V)
  957. ac_init_version=: ;;
  958. -with-* | --with-*)
  959. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  960. # Reject names that are not valid shell variable names.
  961. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  962. as_fn_error $? "invalid package name: \`$ac_useropt'"
  963. ac_useropt_orig=$ac_useropt
  964. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  965. case $ac_user_opts in
  966. *"
  967. "with_$ac_useropt"
  968. "*) ;;
  969. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  970. ac_unrecognized_sep=', ';;
  971. esac
  972. eval with_$ac_useropt=\$ac_optarg ;;
  973. -without-* | --without-*)
  974. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  975. # Reject names that are not valid shell variable names.
  976. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  977. as_fn_error $? "invalid package name: \`$ac_useropt'"
  978. ac_useropt_orig=$ac_useropt
  979. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  980. case $ac_user_opts in
  981. *"
  982. "with_$ac_useropt"
  983. "*) ;;
  984. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  985. ac_unrecognized_sep=', ';;
  986. esac
  987. eval with_$ac_useropt=no ;;
  988. --x)
  989. # Obsolete; use --with-x.
  990. with_x=yes ;;
  991. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  992. | --x-incl | --x-inc | --x-in | --x-i)
  993. ac_prev=x_includes ;;
  994. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  995. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  996. x_includes=$ac_optarg ;;
  997. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  998. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  999. ac_prev=x_libraries ;;
  1000. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1001. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1002. x_libraries=$ac_optarg ;;
  1003. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1004. Try \`$0 --help' for more information"
  1005. ;;
  1006. *=*)
  1007. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1008. # Reject names that are not valid shell variable names.
  1009. case $ac_envvar in #(
  1010. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1011. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1012. esac
  1013. eval $ac_envvar=\$ac_optarg
  1014. export $ac_envvar ;;
  1015. *)
  1016. # FIXME: should be removed in autoconf 3.0.
  1017. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1018. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1019. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1020. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1021. ;;
  1022. esac
  1023. done
  1024. if test -n "$ac_prev"; then
  1025. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1026. as_fn_error $? "missing argument to $ac_option"
  1027. fi
  1028. if test -n "$ac_unrecognized_opts"; then
  1029. case $enable_option_checking in
  1030. no) ;;
  1031. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1032. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1033. esac
  1034. fi
  1035. # Check all directory arguments for consistency.
  1036. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1037. datadir sysconfdir sharedstatedir localstatedir includedir \
  1038. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1039. libdir localedir mandir runstatedir
  1040. do
  1041. eval ac_val=\$$ac_var
  1042. # Remove trailing slashes.
  1043. case $ac_val in
  1044. */ )
  1045. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1046. eval $ac_var=\$ac_val;;
  1047. esac
  1048. # Be sure to have absolute directory names.
  1049. case $ac_val in
  1050. [\\/$]* | ?:[\\/]* ) continue;;
  1051. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1052. esac
  1053. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1054. done
  1055. # There might be people who depend on the old broken behavior: `$host'
  1056. # used to hold the argument of --host etc.
  1057. # FIXME: To remove some day.
  1058. build=$build_alias
  1059. host=$host_alias
  1060. target=$target_alias
  1061. # FIXME: To remove some day.
  1062. if test "x$host_alias" != x; then
  1063. if test "x$build_alias" = x; then
  1064. cross_compiling=maybe
  1065. elif test "x$build_alias" != "x$host_alias"; then
  1066. cross_compiling=yes
  1067. fi
  1068. fi
  1069. ac_tool_prefix=
  1070. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1071. test "$silent" = yes && exec 6>/dev/null
  1072. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1073. ac_ls_di=`ls -di .` &&
  1074. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1075. as_fn_error $? "working directory cannot be determined"
  1076. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1077. as_fn_error $? "pwd does not report name of working directory"
  1078. # Find the source files, if location was not specified.
  1079. if test -z "$srcdir"; then
  1080. ac_srcdir_defaulted=yes
  1081. # Try the directory containing this script, then the parent directory.
  1082. ac_confdir=`$as_dirname -- "$as_myself" ||
  1083. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1084. X"$as_myself" : 'X\(//\)[^/]' \| \
  1085. X"$as_myself" : 'X\(//\)$' \| \
  1086. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1087. printf "%s\n" X"$as_myself" |
  1088. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1089. s//\1/
  1090. q
  1091. }
  1092. /^X\(\/\/\)[^/].*/{
  1093. s//\1/
  1094. q
  1095. }
  1096. /^X\(\/\/\)$/{
  1097. s//\1/
  1098. q
  1099. }
  1100. /^X\(\/\).*/{
  1101. s//\1/
  1102. q
  1103. }
  1104. s/.*/./; q'`
  1105. srcdir=$ac_confdir
  1106. if test ! -r "$srcdir/$ac_unique_file"; then
  1107. srcdir=..
  1108. fi
  1109. else
  1110. ac_srcdir_defaulted=no
  1111. fi
  1112. if test ! -r "$srcdir/$ac_unique_file"; then
  1113. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1114. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1115. fi
  1116. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1117. ac_abs_confdir=`(
  1118. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1119. pwd)`
  1120. # When building in place, set srcdir=.
  1121. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1122. srcdir=.
  1123. fi
  1124. # Remove unnecessary trailing slashes from srcdir.
  1125. # Double slashes in file names in object file debugging info
  1126. # mess up M-x gdb in Emacs.
  1127. case $srcdir in
  1128. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1129. esac
  1130. for ac_var in $ac_precious_vars; do
  1131. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1132. eval ac_env_${ac_var}_value=\$${ac_var}
  1133. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1134. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1135. done
  1136. #
  1137. # Report the --help message.
  1138. #
  1139. if test "$ac_init_help" = "long"; then
  1140. # Omit some internal or obsolete options to make the list less imposing.
  1141. # This message is too long to be a string in the A/UX 3.1 sh.
  1142. cat <<_ACEOF
  1143. \`configure' configures this package to adapt to many kinds of systems.
  1144. Usage: $0 [OPTION]... [VAR=VALUE]...
  1145. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1146. VAR=VALUE. See below for descriptions of some of the useful variables.
  1147. Defaults for the options are specified in brackets.
  1148. Configuration:
  1149. -h, --help display this help and exit
  1150. --help=short display options specific to this package
  1151. --help=recursive display the short help of all the included packages
  1152. -V, --version display version information and exit
  1153. -q, --quiet, --silent do not print \`checking ...' messages
  1154. --cache-file=FILE cache test results in FILE [disabled]
  1155. -C, --config-cache alias for \`--cache-file=config.cache'
  1156. -n, --no-create do not create output files
  1157. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1158. Installation directories:
  1159. --prefix=PREFIX install architecture-independent files in PREFIX
  1160. [$ac_default_prefix]
  1161. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1162. [PREFIX]
  1163. By default, \`make install' will install all the files in
  1164. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1165. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1166. for instance \`--prefix=\$HOME'.
  1167. For better control, use the options below.
  1168. Fine tuning of the installation directories:
  1169. --bindir=DIR user executables [EPREFIX/bin]
  1170. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1171. --libexecdir=DIR program executables [EPREFIX/libexec]
  1172. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1173. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1174. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1175. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1176. --libdir=DIR object code libraries [EPREFIX/lib]
  1177. --includedir=DIR C header files [PREFIX/include]
  1178. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1179. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1180. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1181. --infodir=DIR info documentation [DATAROOTDIR/info]
  1182. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1183. --mandir=DIR man documentation [DATAROOTDIR/man]
  1184. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1185. --htmldir=DIR html documentation [DOCDIR]
  1186. --dvidir=DIR dvi documentation [DOCDIR]
  1187. --pdfdir=DIR pdf documentation [DOCDIR]
  1188. --psdir=DIR ps documentation [DOCDIR]
  1189. _ACEOF
  1190. cat <<\_ACEOF
  1191. X features:
  1192. --x-includes=DIR X include files are in DIR
  1193. --x-libraries=DIR X library files are in DIR
  1194. System types:
  1195. --build=BUILD configure for building on BUILD [guessed]
  1196. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1197. _ACEOF
  1198. fi
  1199. if test -n "$ac_init_help"; then
  1200. cat <<\_ACEOF
  1201. Optional Features:
  1202. --disable-option-checking ignore unrecognized --enable/--with options
  1203. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1204. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1205. --disable-sdltest Do not try to compile and run a test SDL program
  1206. --enable-werror treat warnings as errors [default=no]
  1207. Optional Packages:
  1208. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1209. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1210. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1211. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1212. --with-x use the X Window System
  1213. Some influential environment variables:
  1214. CC C compiler command
  1215. CFLAGS C compiler flags
  1216. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1217. nonstandard directory <lib dir>
  1218. LIBS libraries to pass to the linker, e.g. -l<library>
  1219. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1220. you have headers in a nonstandard directory <include dir>
  1221. PKG_CONFIG path to pkg-config utility
  1222. PKG_CONFIG_PATH
  1223. directories to add to pkg-config's search path
  1224. PKG_CONFIG_LIBDIR
  1225. path overriding pkg-config's built-in search path
  1226. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1227. SDL_LIBS linker flags for SDL, overriding pkg-config
  1228. XMKMF Path to xmkmf, Makefile generator for X Window System
  1229. CPP C preprocessor
  1230. LIBUNWIND_CFLAGS
  1231. C compiler flags for LIBUNWIND, overriding pkg-config
  1232. LIBUNWIND_LIBS
  1233. linker flags for LIBUNWIND, overriding pkg-config
  1234. Use these variables to override the choices made by `configure' or to help
  1235. it to find libraries and programs with nonstandard names/locations.
  1236. Report bugs to the package provider.
  1237. _ACEOF
  1238. ac_status=$?
  1239. fi
  1240. if test "$ac_init_help" = "recursive"; then
  1241. # If there are subdirs, report their specific --help.
  1242. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1243. test -d "$ac_dir" ||
  1244. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1245. continue
  1246. ac_builddir=.
  1247. case "$ac_dir" in
  1248. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1249. *)
  1250. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1251. # A ".." for each directory in $ac_dir_suffix.
  1252. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1253. case $ac_top_builddir_sub in
  1254. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1255. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1256. esac ;;
  1257. esac
  1258. ac_abs_top_builddir=$ac_pwd
  1259. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1260. # for backward compatibility:
  1261. ac_top_builddir=$ac_top_build_prefix
  1262. case $srcdir in
  1263. .) # We are building in place.
  1264. ac_srcdir=.
  1265. ac_top_srcdir=$ac_top_builddir_sub
  1266. ac_abs_top_srcdir=$ac_pwd ;;
  1267. [\\/]* | ?:[\\/]* ) # Absolute name.
  1268. ac_srcdir=$srcdir$ac_dir_suffix;
  1269. ac_top_srcdir=$srcdir
  1270. ac_abs_top_srcdir=$srcdir ;;
  1271. *) # Relative name.
  1272. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1273. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1274. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1275. esac
  1276. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1277. cd "$ac_dir" || { ac_status=$?; continue; }
  1278. # Check for configure.gnu first; this name is used for a wrapper for
  1279. # Metaconfig's "Configure" on case-insensitive file systems.
  1280. if test -f "$ac_srcdir/configure.gnu"; then
  1281. echo &&
  1282. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1283. elif test -f "$ac_srcdir/configure"; then
  1284. echo &&
  1285. $SHELL "$ac_srcdir/configure" --help=recursive
  1286. else
  1287. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1288. fi || ac_status=$?
  1289. cd "$ac_pwd" || { ac_status=$?; break; }
  1290. done
  1291. fi
  1292. test -n "$ac_init_help" && exit $ac_status
  1293. if $ac_init_version; then
  1294. cat <<\_ACEOF
  1295. configure
  1296. generated by GNU Autoconf 2.71
  1297. Copyright (C) 2021 Free Software Foundation, Inc.
  1298. This configure script is free software; the Free Software Foundation
  1299. gives unlimited permission to copy, distribute and modify it.
  1300. _ACEOF
  1301. exit
  1302. fi
  1303. ## ------------------------ ##
  1304. ## Autoconf initialization. ##
  1305. ## ------------------------ ##
  1306. # ac_fn_c_try_compile LINENO
  1307. # --------------------------
  1308. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1309. ac_fn_c_try_compile ()
  1310. {
  1311. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1312. rm -f conftest.$ac_objext conftest.beam
  1313. if { { ac_try="$ac_compile"
  1314. case "(($ac_try" in
  1315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1316. *) ac_try_echo=$ac_try;;
  1317. esac
  1318. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1319. printf "%s\n" "$ac_try_echo"; } >&5
  1320. (eval "$ac_compile") 2>conftest.err
  1321. ac_status=$?
  1322. if test -s conftest.err; then
  1323. grep -v '^ *+' conftest.err >conftest.er1
  1324. cat conftest.er1 >&5
  1325. mv -f conftest.er1 conftest.err
  1326. fi
  1327. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1328. test $ac_status = 0; } && {
  1329. test -z "$ac_c_werror_flag" ||
  1330. test ! -s conftest.err
  1331. } && test -s conftest.$ac_objext
  1332. then :
  1333. ac_retval=0
  1334. else $as_nop
  1335. printf "%s\n" "$as_me: failed program was:" >&5
  1336. sed 's/^/| /' conftest.$ac_ext >&5
  1337. ac_retval=1
  1338. fi
  1339. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1340. as_fn_set_status $ac_retval
  1341. } # ac_fn_c_try_compile
  1342. # ac_fn_c_try_link LINENO
  1343. # -----------------------
  1344. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1345. ac_fn_c_try_link ()
  1346. {
  1347. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1348. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1349. if { { ac_try="$ac_link"
  1350. case "(($ac_try" in
  1351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1352. *) ac_try_echo=$ac_try;;
  1353. esac
  1354. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1355. printf "%s\n" "$ac_try_echo"; } >&5
  1356. (eval "$ac_link") 2>conftest.err
  1357. ac_status=$?
  1358. if test -s conftest.err; then
  1359. grep -v '^ *+' conftest.err >conftest.er1
  1360. cat conftest.er1 >&5
  1361. mv -f conftest.er1 conftest.err
  1362. fi
  1363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1364. test $ac_status = 0; } && {
  1365. test -z "$ac_c_werror_flag" ||
  1366. test ! -s conftest.err
  1367. } && test -s conftest$ac_exeext && {
  1368. test "$cross_compiling" = yes ||
  1369. test -x conftest$ac_exeext
  1370. }
  1371. then :
  1372. ac_retval=0
  1373. else $as_nop
  1374. printf "%s\n" "$as_me: failed program was:" >&5
  1375. sed 's/^/| /' conftest.$ac_ext >&5
  1376. ac_retval=1
  1377. fi
  1378. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1379. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1380. # interfere with the next link command; also delete a directory that is
  1381. # left behind by Apple's compiler. We do this before executing the actions.
  1382. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1383. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1384. as_fn_set_status $ac_retval
  1385. } # ac_fn_c_try_link
  1386. # ac_fn_c_try_run LINENO
  1387. # ----------------------
  1388. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1389. # executables *can* be run.
  1390. ac_fn_c_try_run ()
  1391. {
  1392. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1393. if { { ac_try="$ac_link"
  1394. case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. printf "%s\n" "$ac_try_echo"; } >&5
  1400. (eval "$ac_link") 2>&5
  1401. ac_status=$?
  1402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1403. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1404. { { case "(($ac_try" in
  1405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1406. *) ac_try_echo=$ac_try;;
  1407. esac
  1408. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1409. printf "%s\n" "$ac_try_echo"; } >&5
  1410. (eval "$ac_try") 2>&5
  1411. ac_status=$?
  1412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1413. test $ac_status = 0; }; }
  1414. then :
  1415. ac_retval=0
  1416. else $as_nop
  1417. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1418. printf "%s\n" "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=$ac_status
  1421. fi
  1422. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1423. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1424. as_fn_set_status $ac_retval
  1425. } # ac_fn_c_try_run
  1426. # ac_fn_c_try_cpp LINENO
  1427. # ----------------------
  1428. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1429. ac_fn_c_try_cpp ()
  1430. {
  1431. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1432. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. printf "%s\n" "$ac_try_echo"; } >&5
  1439. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } > conftest.i && {
  1448. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. }
  1451. then :
  1452. ac_retval=0
  1453. else $as_nop
  1454. printf "%s\n" "$as_me: failed program was:" >&5
  1455. sed 's/^/| /' conftest.$ac_ext >&5
  1456. ac_retval=1
  1457. fi
  1458. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1459. as_fn_set_status $ac_retval
  1460. } # ac_fn_c_try_cpp
  1461. ac_configure_args_raw=
  1462. for ac_arg
  1463. do
  1464. case $ac_arg in
  1465. *\'*)
  1466. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1467. esac
  1468. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1469. done
  1470. case $ac_configure_args_raw in
  1471. *$as_nl*)
  1472. ac_safe_unquote= ;;
  1473. *)
  1474. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1475. ac_unsafe_a="$ac_unsafe_z#~"
  1476. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1477. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1478. esac
  1479. cat >config.log <<_ACEOF
  1480. This file contains any messages produced by compilers while
  1481. running configure, to aid debugging if configure makes a mistake.
  1482. It was created by $as_me, which was
  1483. generated by GNU Autoconf 2.71. Invocation command line was
  1484. $ $0$ac_configure_args_raw
  1485. _ACEOF
  1486. exec 5>>config.log
  1487. {
  1488. cat <<_ASUNAME
  1489. ## --------- ##
  1490. ## Platform. ##
  1491. ## --------- ##
  1492. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1493. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1494. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1495. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1496. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1497. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1498. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1499. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1500. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1501. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1502. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1503. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1504. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1505. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1506. _ASUNAME
  1507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1508. for as_dir in $PATH
  1509. do
  1510. IFS=$as_save_IFS
  1511. case $as_dir in #(((
  1512. '') as_dir=./ ;;
  1513. */) ;;
  1514. *) as_dir=$as_dir/ ;;
  1515. esac
  1516. printf "%s\n" "PATH: $as_dir"
  1517. done
  1518. IFS=$as_save_IFS
  1519. } >&5
  1520. cat >&5 <<_ACEOF
  1521. ## ----------- ##
  1522. ## Core tests. ##
  1523. ## ----------- ##
  1524. _ACEOF
  1525. # Keep a trace of the command line.
  1526. # Strip out --no-create and --no-recursion so they do not pile up.
  1527. # Strip out --silent because we don't want to record it for future runs.
  1528. # Also quote any args containing shell meta-characters.
  1529. # Make two passes to allow for proper duplicate-argument suppression.
  1530. ac_configure_args=
  1531. ac_configure_args0=
  1532. ac_configure_args1=
  1533. ac_must_keep_next=false
  1534. for ac_pass in 1 2
  1535. do
  1536. for ac_arg
  1537. do
  1538. case $ac_arg in
  1539. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1540. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1541. | -silent | --silent | --silen | --sile | --sil)
  1542. continue ;;
  1543. *\'*)
  1544. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1545. esac
  1546. case $ac_pass in
  1547. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1548. 2)
  1549. as_fn_append ac_configure_args1 " '$ac_arg'"
  1550. if test $ac_must_keep_next = true; then
  1551. ac_must_keep_next=false # Got value, back to normal.
  1552. else
  1553. case $ac_arg in
  1554. *=* | --config-cache | -C | -disable-* | --disable-* \
  1555. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1556. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1557. | -with-* | --with-* | -without-* | --without-* | --x)
  1558. case "$ac_configure_args0 " in
  1559. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1560. esac
  1561. ;;
  1562. -* ) ac_must_keep_next=true ;;
  1563. esac
  1564. fi
  1565. as_fn_append ac_configure_args " '$ac_arg'"
  1566. ;;
  1567. esac
  1568. done
  1569. done
  1570. { ac_configure_args0=; unset ac_configure_args0;}
  1571. { ac_configure_args1=; unset ac_configure_args1;}
  1572. # When interrupted or exit'd, cleanup temporary files, and complete
  1573. # config.log. We remove comments because anyway the quotes in there
  1574. # would cause problems or look ugly.
  1575. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1576. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1577. trap 'exit_status=$?
  1578. # Sanitize IFS.
  1579. IFS=" "" $as_nl"
  1580. # Save into config.log some information that might help in debugging.
  1581. {
  1582. echo
  1583. printf "%s\n" "## ---------------- ##
  1584. ## Cache variables. ##
  1585. ## ---------------- ##"
  1586. echo
  1587. # The following way of writing the cache mishandles newlines in values,
  1588. (
  1589. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1590. eval ac_val=\$$ac_var
  1591. case $ac_val in #(
  1592. *${as_nl}*)
  1593. case $ac_var in #(
  1594. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1595. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1596. esac
  1597. case $ac_var in #(
  1598. _ | IFS | as_nl) ;; #(
  1599. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1600. *) { eval $ac_var=; unset $ac_var;} ;;
  1601. esac ;;
  1602. esac
  1603. done
  1604. (set) 2>&1 |
  1605. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1606. *${as_nl}ac_space=\ *)
  1607. sed -n \
  1608. "s/'\''/'\''\\\\'\'''\''/g;
  1609. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1610. ;; #(
  1611. *)
  1612. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1613. ;;
  1614. esac |
  1615. sort
  1616. )
  1617. echo
  1618. printf "%s\n" "## ----------------- ##
  1619. ## Output variables. ##
  1620. ## ----------------- ##"
  1621. echo
  1622. for ac_var in $ac_subst_vars
  1623. do
  1624. eval ac_val=\$$ac_var
  1625. case $ac_val in
  1626. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1627. esac
  1628. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1629. done | sort
  1630. echo
  1631. if test -n "$ac_subst_files"; then
  1632. printf "%s\n" "## ------------------- ##
  1633. ## File substitutions. ##
  1634. ## ------------------- ##"
  1635. echo
  1636. for ac_var in $ac_subst_files
  1637. do
  1638. eval ac_val=\$$ac_var
  1639. case $ac_val in
  1640. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1641. esac
  1642. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1643. done | sort
  1644. echo
  1645. fi
  1646. if test -s confdefs.h; then
  1647. printf "%s\n" "## ----------- ##
  1648. ## confdefs.h. ##
  1649. ## ----------- ##"
  1650. echo
  1651. cat confdefs.h
  1652. echo
  1653. fi
  1654. test "$ac_signal" != 0 &&
  1655. printf "%s\n" "$as_me: caught signal $ac_signal"
  1656. printf "%s\n" "$as_me: exit $exit_status"
  1657. } >&5
  1658. rm -f core *.core core.conftest.* &&
  1659. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1660. exit $exit_status
  1661. ' 0
  1662. for ac_signal in 1 2 13 15; do
  1663. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1664. done
  1665. ac_signal=0
  1666. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1667. rm -f -r conftest* confdefs.h
  1668. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1669. # Predefined preprocessor variables.
  1670. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1671. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1672. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1673. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1674. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1675. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1676. # Let the site file select an alternate cache file if it wants to.
  1677. # Prefer an explicitly selected file to automatically selected ones.
  1678. if test -n "$CONFIG_SITE"; then
  1679. ac_site_files="$CONFIG_SITE"
  1680. elif test "x$prefix" != xNONE; then
  1681. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1682. else
  1683. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1684. fi
  1685. for ac_site_file in $ac_site_files
  1686. do
  1687. case $ac_site_file in #(
  1688. */*) :
  1689. ;; #(
  1690. *) :
  1691. ac_site_file=./$ac_site_file ;;
  1692. esac
  1693. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1695. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1696. sed 's/^/| /' "$ac_site_file" >&5
  1697. . "$ac_site_file" \
  1698. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1699. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  1700. as_fn_error $? "failed to load site script $ac_site_file
  1701. See \`config.log' for more details" "$LINENO" 5; }
  1702. fi
  1703. done
  1704. if test -r "$cache_file"; then
  1705. # Some versions of bash will fail to source /dev/null (special files
  1706. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1707. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1709. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  1710. case $cache_file in
  1711. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1712. *) . "./$cache_file";;
  1713. esac
  1714. fi
  1715. else
  1716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1717. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  1718. >$cache_file
  1719. fi
  1720. # Test code for whether the C compiler supports C89 (global declarations)
  1721. ac_c_conftest_c89_globals='
  1722. /* Does the compiler advertise C89 conformance?
  1723. Do not test the value of __STDC__, because some compilers set it to 0
  1724. while being otherwise adequately conformant. */
  1725. #if !defined __STDC__
  1726. # error "Compiler does not advertise C89 conformance"
  1727. #endif
  1728. #include <stddef.h>
  1729. #include <stdarg.h>
  1730. struct stat;
  1731. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  1732. struct buf { int x; };
  1733. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  1734. static char *e (p, i)
  1735. char **p;
  1736. int i;
  1737. {
  1738. return p[i];
  1739. }
  1740. static char *f (char * (*g) (char **, int), char **p, ...)
  1741. {
  1742. char *s;
  1743. va_list v;
  1744. va_start (v,p);
  1745. s = g (p, va_arg (v,int));
  1746. va_end (v);
  1747. return s;
  1748. }
  1749. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1750. function prototypes and stuff, but not \xHH hex character constants.
  1751. These do not provoke an error unfortunately, instead are silently treated
  1752. as an "x". The following induces an error, until -std is added to get
  1753. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  1754. array size at least. It is necessary to write \x00 == 0 to get something
  1755. that is true only with -std. */
  1756. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  1757. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1758. inside strings and character constants. */
  1759. #define FOO(x) '\''x'\''
  1760. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  1761. int test (int i, double x);
  1762. struct s1 {int (*f) (int a);};
  1763. struct s2 {int (*f) (double a);};
  1764. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  1765. int, int);'
  1766. # Test code for whether the C compiler supports C89 (body of main).
  1767. ac_c_conftest_c89_main='
  1768. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  1769. '
  1770. # Test code for whether the C compiler supports C99 (global declarations)
  1771. ac_c_conftest_c99_globals='
  1772. // Does the compiler advertise C99 conformance?
  1773. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  1774. # error "Compiler does not advertise C99 conformance"
  1775. #endif
  1776. #include <stdbool.h>
  1777. extern int puts (const char *);
  1778. extern int printf (const char *, ...);
  1779. extern int dprintf (int, const char *, ...);
  1780. extern void *malloc (size_t);
  1781. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1782. // dprintf is used instead of fprintf to avoid needing to declare
  1783. // FILE and stderr.
  1784. #define debug(...) dprintf (2, __VA_ARGS__)
  1785. #define showlist(...) puts (#__VA_ARGS__)
  1786. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  1787. static void
  1788. test_varargs_macros (void)
  1789. {
  1790. int x = 1234;
  1791. int y = 5678;
  1792. debug ("Flag");
  1793. debug ("X = %d\n", x);
  1794. showlist (The first, second, and third items.);
  1795. report (x>y, "x is %d but y is %d", x, y);
  1796. }
  1797. // Check long long types.
  1798. #define BIG64 18446744073709551615ull
  1799. #define BIG32 4294967295ul
  1800. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  1801. #if !BIG_OK
  1802. #error "your preprocessor is broken"
  1803. #endif
  1804. #if BIG_OK
  1805. #else
  1806. #error "your preprocessor is broken"
  1807. #endif
  1808. static long long int bignum = -9223372036854775807LL;
  1809. static unsigned long long int ubignum = BIG64;
  1810. struct incomplete_array
  1811. {
  1812. int datasize;
  1813. double data[];
  1814. };
  1815. struct named_init {
  1816. int number;
  1817. const wchar_t *name;
  1818. double average;
  1819. };
  1820. typedef const char *ccp;
  1821. static inline int
  1822. test_restrict (ccp restrict text)
  1823. {
  1824. // See if C++-style comments work.
  1825. // Iterate through items via the restricted pointer.
  1826. // Also check for declarations in for loops.
  1827. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  1828. continue;
  1829. return 0;
  1830. }
  1831. // Check varargs and va_copy.
  1832. static bool
  1833. test_varargs (const char *format, ...)
  1834. {
  1835. va_list args;
  1836. va_start (args, format);
  1837. va_list args_copy;
  1838. va_copy (args_copy, args);
  1839. const char *str = "";
  1840. int number = 0;
  1841. float fnumber = 0;
  1842. while (*format)
  1843. {
  1844. switch (*format++)
  1845. {
  1846. case '\''s'\'': // string
  1847. str = va_arg (args_copy, const char *);
  1848. break;
  1849. case '\''d'\'': // int
  1850. number = va_arg (args_copy, int);
  1851. break;
  1852. case '\''f'\'': // float
  1853. fnumber = va_arg (args_copy, double);
  1854. break;
  1855. default:
  1856. break;
  1857. }
  1858. }
  1859. va_end (args_copy);
  1860. va_end (args);
  1861. return *str && number && fnumber;
  1862. }
  1863. '
  1864. # Test code for whether the C compiler supports C99 (body of main).
  1865. ac_c_conftest_c99_main='
  1866. // Check bool.
  1867. _Bool success = false;
  1868. success |= (argc != 0);
  1869. // Check restrict.
  1870. if (test_restrict ("String literal") == 0)
  1871. success = true;
  1872. char *restrict newvar = "Another string";
  1873. // Check varargs.
  1874. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  1875. test_varargs_macros ();
  1876. // Check flexible array members.
  1877. struct incomplete_array *ia =
  1878. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  1879. ia->datasize = 10;
  1880. for (int i = 0; i < ia->datasize; ++i)
  1881. ia->data[i] = i * 1.234;
  1882. // Check named initializers.
  1883. struct named_init ni = {
  1884. .number = 34,
  1885. .name = L"Test wide string",
  1886. .average = 543.34343,
  1887. };
  1888. ni.number = 58;
  1889. int dynamic_array[ni.number];
  1890. dynamic_array[0] = argv[0][0];
  1891. dynamic_array[ni.number - 1] = 543;
  1892. // work around unused variable warnings
  1893. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  1894. || dynamic_array[ni.number - 1] != 543);
  1895. '
  1896. # Test code for whether the C compiler supports C11 (global declarations)
  1897. ac_c_conftest_c11_globals='
  1898. // Does the compiler advertise C11 conformance?
  1899. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  1900. # error "Compiler does not advertise C11 conformance"
  1901. #endif
  1902. // Check _Alignas.
  1903. char _Alignas (double) aligned_as_double;
  1904. char _Alignas (0) no_special_alignment;
  1905. extern char aligned_as_int;
  1906. char _Alignas (0) _Alignas (int) aligned_as_int;
  1907. // Check _Alignof.
  1908. enum
  1909. {
  1910. int_alignment = _Alignof (int),
  1911. int_array_alignment = _Alignof (int[100]),
  1912. char_alignment = _Alignof (char)
  1913. };
  1914. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  1915. // Check _Noreturn.
  1916. int _Noreturn does_not_return (void) { for (;;) continue; }
  1917. // Check _Static_assert.
  1918. struct test_static_assert
  1919. {
  1920. int x;
  1921. _Static_assert (sizeof (int) <= sizeof (long int),
  1922. "_Static_assert does not work in struct");
  1923. long int y;
  1924. };
  1925. // Check UTF-8 literals.
  1926. #define u8 syntax error!
  1927. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  1928. // Check duplicate typedefs.
  1929. typedef long *long_ptr;
  1930. typedef long int *long_ptr;
  1931. typedef long_ptr long_ptr;
  1932. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  1933. struct anonymous
  1934. {
  1935. union {
  1936. struct { int i; int j; };
  1937. struct { int k; long int l; } w;
  1938. };
  1939. int m;
  1940. } v1;
  1941. '
  1942. # Test code for whether the C compiler supports C11 (body of main).
  1943. ac_c_conftest_c11_main='
  1944. _Static_assert ((offsetof (struct anonymous, i)
  1945. == offsetof (struct anonymous, w.k)),
  1946. "Anonymous union alignment botch");
  1947. v1.i = 2;
  1948. v1.w.k = 5;
  1949. ok |= v1.i != 5;
  1950. '
  1951. # Test code for whether the C compiler supports C11 (complete).
  1952. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  1953. ${ac_c_conftest_c99_globals}
  1954. ${ac_c_conftest_c11_globals}
  1955. int
  1956. main (int argc, char **argv)
  1957. {
  1958. int ok = 0;
  1959. ${ac_c_conftest_c89_main}
  1960. ${ac_c_conftest_c99_main}
  1961. ${ac_c_conftest_c11_main}
  1962. return ok;
  1963. }
  1964. "
  1965. # Test code for whether the C compiler supports C99 (complete).
  1966. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  1967. ${ac_c_conftest_c99_globals}
  1968. int
  1969. main (int argc, char **argv)
  1970. {
  1971. int ok = 0;
  1972. ${ac_c_conftest_c89_main}
  1973. ${ac_c_conftest_c99_main}
  1974. return ok;
  1975. }
  1976. "
  1977. # Test code for whether the C compiler supports C89 (complete).
  1978. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  1979. int
  1980. main (int argc, char **argv)
  1981. {
  1982. int ok = 0;
  1983. ${ac_c_conftest_c89_main}
  1984. return ok;
  1985. }
  1986. "
  1987. # Auxiliary files required by this configure script.
  1988. ac_aux_files="config.guess config.sub"
  1989. # Locations in which to look for auxiliary files.
  1990. ac_aux_dir_candidates="${srcdir}/../build-scripts"
  1991. # Search for a directory containing all of the required auxiliary files,
  1992. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  1993. # If we don't find one directory that contains all the files we need,
  1994. # we report the set of missing files from the *first* directory in
  1995. # $ac_aux_dir_candidates and give up.
  1996. ac_missing_aux_files=""
  1997. ac_first_candidate=:
  1998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  1999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2000. as_found=false
  2001. for as_dir in $ac_aux_dir_candidates
  2002. do
  2003. IFS=$as_save_IFS
  2004. case $as_dir in #(((
  2005. '') as_dir=./ ;;
  2006. */) ;;
  2007. *) as_dir=$as_dir/ ;;
  2008. esac
  2009. as_found=:
  2010. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2011. ac_aux_dir_found=yes
  2012. ac_install_sh=
  2013. for ac_aux in $ac_aux_files
  2014. do
  2015. # As a special case, if "install-sh" is required, that requirement
  2016. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2017. # and $ac_install_sh is set appropriately for whichever one is found.
  2018. if test x"$ac_aux" = x"install-sh"
  2019. then
  2020. if test -f "${as_dir}install-sh"; then
  2021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2022. ac_install_sh="${as_dir}install-sh -c"
  2023. elif test -f "${as_dir}install.sh"; then
  2024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2025. ac_install_sh="${as_dir}install.sh -c"
  2026. elif test -f "${as_dir}shtool"; then
  2027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2028. ac_install_sh="${as_dir}shtool install -c"
  2029. else
  2030. ac_aux_dir_found=no
  2031. if $ac_first_candidate; then
  2032. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2033. else
  2034. break
  2035. fi
  2036. fi
  2037. else
  2038. if test -f "${as_dir}${ac_aux}"; then
  2039. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2040. else
  2041. ac_aux_dir_found=no
  2042. if $ac_first_candidate; then
  2043. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2044. else
  2045. break
  2046. fi
  2047. fi
  2048. fi
  2049. done
  2050. if test "$ac_aux_dir_found" = yes; then
  2051. ac_aux_dir="$as_dir"
  2052. break
  2053. fi
  2054. ac_first_candidate=false
  2055. as_found=false
  2056. done
  2057. IFS=$as_save_IFS
  2058. if $as_found
  2059. then :
  2060. else $as_nop
  2061. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2062. fi
  2063. # These three variables are undocumented and unsupported,
  2064. # and are intended to be withdrawn in a future Autoconf release.
  2065. # They can cause serious problems if a builder's source tree is in a directory
  2066. # whose full name contains unusual characters.
  2067. if test -f "${ac_aux_dir}config.guess"; then
  2068. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2069. fi
  2070. if test -f "${ac_aux_dir}config.sub"; then
  2071. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2072. fi
  2073. if test -f "$ac_aux_dir/configure"; then
  2074. ac_configure="$SHELL ${ac_aux_dir}configure"
  2075. fi
  2076. # Check that the precious variables saved in the cache have kept the same
  2077. # value.
  2078. ac_cache_corrupted=false
  2079. for ac_var in $ac_precious_vars; do
  2080. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2081. eval ac_new_set=\$ac_env_${ac_var}_set
  2082. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2083. eval ac_new_val=\$ac_env_${ac_var}_value
  2084. case $ac_old_set,$ac_new_set in
  2085. set,)
  2086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2087. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2088. ac_cache_corrupted=: ;;
  2089. ,set)
  2090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2091. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2092. ac_cache_corrupted=: ;;
  2093. ,);;
  2094. *)
  2095. if test "x$ac_old_val" != "x$ac_new_val"; then
  2096. # differences in whitespace do not lead to failure.
  2097. ac_old_val_w=`echo x $ac_old_val`
  2098. ac_new_val_w=`echo x $ac_new_val`
  2099. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2101. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2102. ac_cache_corrupted=:
  2103. else
  2104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2105. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2106. eval $ac_var=\$ac_old_val
  2107. fi
  2108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2109. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2111. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2112. fi;;
  2113. esac
  2114. # Pass precious variables to config.status.
  2115. if test "$ac_new_set" = set; then
  2116. case $ac_new_val in
  2117. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2118. *) ac_arg=$ac_var=$ac_new_val ;;
  2119. esac
  2120. case " $ac_configure_args " in
  2121. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2122. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2123. esac
  2124. fi
  2125. done
  2126. if $ac_cache_corrupted; then
  2127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2128. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2130. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2131. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2132. and start over" "$LINENO" 5
  2133. fi
  2134. ## -------------------- ##
  2135. ## Main body of script. ##
  2136. ## -------------------- ##
  2137. ac_ext=c
  2138. ac_cpp='$CPP $CPPFLAGS'
  2139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2142. # Make sure we can run config.sub.
  2143. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2144. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2146. printf %s "checking build system type... " >&6; }
  2147. if test ${ac_cv_build+y}
  2148. then :
  2149. printf %s "(cached) " >&6
  2150. else $as_nop
  2151. ac_build_alias=$build_alias
  2152. test "x$ac_build_alias" = x &&
  2153. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2154. test "x$ac_build_alias" = x &&
  2155. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2156. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2157. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2158. fi
  2159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2160. printf "%s\n" "$ac_cv_build" >&6; }
  2161. case $ac_cv_build in
  2162. *-*-*) ;;
  2163. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2164. esac
  2165. build=$ac_cv_build
  2166. ac_save_IFS=$IFS; IFS='-'
  2167. set x $ac_cv_build
  2168. shift
  2169. build_cpu=$1
  2170. build_vendor=$2
  2171. shift; shift
  2172. # Remember, the first character of IFS is used to create $*,
  2173. # except with old shells:
  2174. build_os=$*
  2175. IFS=$ac_save_IFS
  2176. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2178. printf %s "checking host system type... " >&6; }
  2179. if test ${ac_cv_host+y}
  2180. then :
  2181. printf %s "(cached) " >&6
  2182. else $as_nop
  2183. if test "x$host_alias" = x; then
  2184. ac_cv_host=$ac_cv_build
  2185. else
  2186. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2187. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2188. fi
  2189. fi
  2190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2191. printf "%s\n" "$ac_cv_host" >&6; }
  2192. case $ac_cv_host in
  2193. *-*-*) ;;
  2194. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2195. esac
  2196. host=$ac_cv_host
  2197. ac_save_IFS=$IFS; IFS='-'
  2198. set x $ac_cv_host
  2199. shift
  2200. host_cpu=$1
  2201. host_vendor=$2
  2202. shift; shift
  2203. # Remember, the first character of IFS is used to create $*,
  2204. # except with old shells:
  2205. host_os=$*
  2206. IFS=$ac_save_IFS
  2207. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2208. ac_ext=c
  2209. ac_cpp='$CPP $CPPFLAGS'
  2210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2213. if test -n "$ac_tool_prefix"; then
  2214. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2215. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2217. printf %s "checking for $ac_word... " >&6; }
  2218. if test ${ac_cv_prog_CC+y}
  2219. then :
  2220. printf %s "(cached) " >&6
  2221. else $as_nop
  2222. if test -n "$CC"; then
  2223. ac_cv_prog_CC="$CC" # Let the user override the test.
  2224. else
  2225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2226. for as_dir in $PATH
  2227. do
  2228. IFS=$as_save_IFS
  2229. case $as_dir in #(((
  2230. '') as_dir=./ ;;
  2231. */) ;;
  2232. *) as_dir=$as_dir/ ;;
  2233. esac
  2234. for ac_exec_ext in '' $ac_executable_extensions; do
  2235. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2236. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2237. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2238. break 2
  2239. fi
  2240. done
  2241. done
  2242. IFS=$as_save_IFS
  2243. fi
  2244. fi
  2245. CC=$ac_cv_prog_CC
  2246. if test -n "$CC"; then
  2247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2248. printf "%s\n" "$CC" >&6; }
  2249. else
  2250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2251. printf "%s\n" "no" >&6; }
  2252. fi
  2253. fi
  2254. if test -z "$ac_cv_prog_CC"; then
  2255. ac_ct_CC=$CC
  2256. # Extract the first word of "gcc", so it can be a program name with args.
  2257. set dummy gcc; ac_word=$2
  2258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2259. printf %s "checking for $ac_word... " >&6; }
  2260. if test ${ac_cv_prog_ac_ct_CC+y}
  2261. then :
  2262. printf %s "(cached) " >&6
  2263. else $as_nop
  2264. if test -n "$ac_ct_CC"; then
  2265. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2266. else
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. case $as_dir in #(((
  2272. '') as_dir=./ ;;
  2273. */) ;;
  2274. *) as_dir=$as_dir/ ;;
  2275. esac
  2276. for ac_exec_ext in '' $ac_executable_extensions; do
  2277. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2278. ac_cv_prog_ac_ct_CC="gcc"
  2279. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2280. break 2
  2281. fi
  2282. done
  2283. done
  2284. IFS=$as_save_IFS
  2285. fi
  2286. fi
  2287. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2288. if test -n "$ac_ct_CC"; then
  2289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2290. printf "%s\n" "$ac_ct_CC" >&6; }
  2291. else
  2292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2293. printf "%s\n" "no" >&6; }
  2294. fi
  2295. if test "x$ac_ct_CC" = x; then
  2296. CC=""
  2297. else
  2298. case $cross_compiling:$ac_tool_warned in
  2299. yes:)
  2300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2301. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2302. ac_tool_warned=yes ;;
  2303. esac
  2304. CC=$ac_ct_CC
  2305. fi
  2306. else
  2307. CC="$ac_cv_prog_CC"
  2308. fi
  2309. if test -z "$CC"; then
  2310. if test -n "$ac_tool_prefix"; then
  2311. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2312. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2314. printf %s "checking for $ac_word... " >&6; }
  2315. if test ${ac_cv_prog_CC+y}
  2316. then :
  2317. printf %s "(cached) " >&6
  2318. else $as_nop
  2319. if test -n "$CC"; then
  2320. ac_cv_prog_CC="$CC" # Let the user override the test.
  2321. else
  2322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2323. for as_dir in $PATH
  2324. do
  2325. IFS=$as_save_IFS
  2326. case $as_dir in #(((
  2327. '') as_dir=./ ;;
  2328. */) ;;
  2329. *) as_dir=$as_dir/ ;;
  2330. esac
  2331. for ac_exec_ext in '' $ac_executable_extensions; do
  2332. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2333. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2335. break 2
  2336. fi
  2337. done
  2338. done
  2339. IFS=$as_save_IFS
  2340. fi
  2341. fi
  2342. CC=$ac_cv_prog_CC
  2343. if test -n "$CC"; then
  2344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2345. printf "%s\n" "$CC" >&6; }
  2346. else
  2347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2348. printf "%s\n" "no" >&6; }
  2349. fi
  2350. fi
  2351. fi
  2352. if test -z "$CC"; then
  2353. # Extract the first word of "cc", so it can be a program name with args.
  2354. set dummy cc; ac_word=$2
  2355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2356. printf %s "checking for $ac_word... " >&6; }
  2357. if test ${ac_cv_prog_CC+y}
  2358. then :
  2359. printf %s "(cached) " >&6
  2360. else $as_nop
  2361. if test -n "$CC"; then
  2362. ac_cv_prog_CC="$CC" # Let the user override the test.
  2363. else
  2364. ac_prog_rejected=no
  2365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2366. for as_dir in $PATH
  2367. do
  2368. IFS=$as_save_IFS
  2369. case $as_dir in #(((
  2370. '') as_dir=./ ;;
  2371. */) ;;
  2372. *) as_dir=$as_dir/ ;;
  2373. esac
  2374. for ac_exec_ext in '' $ac_executable_extensions; do
  2375. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2376. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2377. ac_prog_rejected=yes
  2378. continue
  2379. fi
  2380. ac_cv_prog_CC="cc"
  2381. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2382. break 2
  2383. fi
  2384. done
  2385. done
  2386. IFS=$as_save_IFS
  2387. if test $ac_prog_rejected = yes; then
  2388. # We found a bogon in the path, so make sure we never use it.
  2389. set dummy $ac_cv_prog_CC
  2390. shift
  2391. if test $# != 0; then
  2392. # We chose a different compiler from the bogus one.
  2393. # However, it has the same basename, so the bogon will be chosen
  2394. # first if we set CC to just the basename; use the full file name.
  2395. shift
  2396. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  2397. fi
  2398. fi
  2399. fi
  2400. fi
  2401. CC=$ac_cv_prog_CC
  2402. if test -n "$CC"; then
  2403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2404. printf "%s\n" "$CC" >&6; }
  2405. else
  2406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2407. printf "%s\n" "no" >&6; }
  2408. fi
  2409. fi
  2410. if test -z "$CC"; then
  2411. if test -n "$ac_tool_prefix"; then
  2412. for ac_prog in cl.exe
  2413. do
  2414. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2415. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2417. printf %s "checking for $ac_word... " >&6; }
  2418. if test ${ac_cv_prog_CC+y}
  2419. then :
  2420. printf %s "(cached) " >&6
  2421. else $as_nop
  2422. if test -n "$CC"; then
  2423. ac_cv_prog_CC="$CC" # Let the user override the test.
  2424. else
  2425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2426. for as_dir in $PATH
  2427. do
  2428. IFS=$as_save_IFS
  2429. case $as_dir in #(((
  2430. '') as_dir=./ ;;
  2431. */) ;;
  2432. *) as_dir=$as_dir/ ;;
  2433. esac
  2434. for ac_exec_ext in '' $ac_executable_extensions; do
  2435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2436. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2438. break 2
  2439. fi
  2440. done
  2441. done
  2442. IFS=$as_save_IFS
  2443. fi
  2444. fi
  2445. CC=$ac_cv_prog_CC
  2446. if test -n "$CC"; then
  2447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2448. printf "%s\n" "$CC" >&6; }
  2449. else
  2450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2451. printf "%s\n" "no" >&6; }
  2452. fi
  2453. test -n "$CC" && break
  2454. done
  2455. fi
  2456. if test -z "$CC"; then
  2457. ac_ct_CC=$CC
  2458. for ac_prog in cl.exe
  2459. do
  2460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2461. set dummy $ac_prog; ac_word=$2
  2462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2463. printf %s "checking for $ac_word... " >&6; }
  2464. if test ${ac_cv_prog_ac_ct_CC+y}
  2465. then :
  2466. printf %s "(cached) " >&6
  2467. else $as_nop
  2468. if test -n "$ac_ct_CC"; then
  2469. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474. IFS=$as_save_IFS
  2475. case $as_dir in #(((
  2476. '') as_dir=./ ;;
  2477. */) ;;
  2478. *) as_dir=$as_dir/ ;;
  2479. esac
  2480. for ac_exec_ext in '' $ac_executable_extensions; do
  2481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2482. ac_cv_prog_ac_ct_CC="$ac_prog"
  2483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2484. break 2
  2485. fi
  2486. done
  2487. done
  2488. IFS=$as_save_IFS
  2489. fi
  2490. fi
  2491. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2492. if test -n "$ac_ct_CC"; then
  2493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2494. printf "%s\n" "$ac_ct_CC" >&6; }
  2495. else
  2496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2497. printf "%s\n" "no" >&6; }
  2498. fi
  2499. test -n "$ac_ct_CC" && break
  2500. done
  2501. if test "x$ac_ct_CC" = x; then
  2502. CC=""
  2503. else
  2504. case $cross_compiling:$ac_tool_warned in
  2505. yes:)
  2506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2507. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2508. ac_tool_warned=yes ;;
  2509. esac
  2510. CC=$ac_ct_CC
  2511. fi
  2512. fi
  2513. fi
  2514. if test -z "$CC"; then
  2515. if test -n "$ac_tool_prefix"; then
  2516. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  2517. set dummy ${ac_tool_prefix}clang; ac_word=$2
  2518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2519. printf %s "checking for $ac_word... " >&6; }
  2520. if test ${ac_cv_prog_CC+y}
  2521. then :
  2522. printf %s "(cached) " >&6
  2523. else $as_nop
  2524. if test -n "$CC"; then
  2525. ac_cv_prog_CC="$CC" # Let the user override the test.
  2526. else
  2527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2528. for as_dir in $PATH
  2529. do
  2530. IFS=$as_save_IFS
  2531. case $as_dir in #(((
  2532. '') as_dir=./ ;;
  2533. */) ;;
  2534. *) as_dir=$as_dir/ ;;
  2535. esac
  2536. for ac_exec_ext in '' $ac_executable_extensions; do
  2537. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2538. ac_cv_prog_CC="${ac_tool_prefix}clang"
  2539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2540. break 2
  2541. fi
  2542. done
  2543. done
  2544. IFS=$as_save_IFS
  2545. fi
  2546. fi
  2547. CC=$ac_cv_prog_CC
  2548. if test -n "$CC"; then
  2549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2550. printf "%s\n" "$CC" >&6; }
  2551. else
  2552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2553. printf "%s\n" "no" >&6; }
  2554. fi
  2555. fi
  2556. if test -z "$ac_cv_prog_CC"; then
  2557. ac_ct_CC=$CC
  2558. # Extract the first word of "clang", so it can be a program name with args.
  2559. set dummy clang; ac_word=$2
  2560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2561. printf %s "checking for $ac_word... " >&6; }
  2562. if test ${ac_cv_prog_ac_ct_CC+y}
  2563. then :
  2564. printf %s "(cached) " >&6
  2565. else $as_nop
  2566. if test -n "$ac_ct_CC"; then
  2567. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2568. else
  2569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2570. for as_dir in $PATH
  2571. do
  2572. IFS=$as_save_IFS
  2573. case $as_dir in #(((
  2574. '') as_dir=./ ;;
  2575. */) ;;
  2576. *) as_dir=$as_dir/ ;;
  2577. esac
  2578. for ac_exec_ext in '' $ac_executable_extensions; do
  2579. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2580. ac_cv_prog_ac_ct_CC="clang"
  2581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2582. break 2
  2583. fi
  2584. done
  2585. done
  2586. IFS=$as_save_IFS
  2587. fi
  2588. fi
  2589. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2590. if test -n "$ac_ct_CC"; then
  2591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2592. printf "%s\n" "$ac_ct_CC" >&6; }
  2593. else
  2594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2595. printf "%s\n" "no" >&6; }
  2596. fi
  2597. if test "x$ac_ct_CC" = x; then
  2598. CC=""
  2599. else
  2600. case $cross_compiling:$ac_tool_warned in
  2601. yes:)
  2602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2603. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2604. ac_tool_warned=yes ;;
  2605. esac
  2606. CC=$ac_ct_CC
  2607. fi
  2608. else
  2609. CC="$ac_cv_prog_CC"
  2610. fi
  2611. fi
  2612. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2613. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2614. as_fn_error $? "no acceptable C compiler found in \$PATH
  2615. See \`config.log' for more details" "$LINENO" 5; }
  2616. # Provide some information about the compiler.
  2617. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2618. set X $ac_compile
  2619. ac_compiler=$2
  2620. for ac_option in --version -v -V -qversion -version; do
  2621. { { ac_try="$ac_compiler $ac_option >&5"
  2622. case "(($ac_try" in
  2623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2624. *) ac_try_echo=$ac_try;;
  2625. esac
  2626. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2627. printf "%s\n" "$ac_try_echo"; } >&5
  2628. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2629. ac_status=$?
  2630. if test -s conftest.err; then
  2631. sed '10a\
  2632. ... rest of stderr output deleted ...
  2633. 10q' conftest.err >conftest.er1
  2634. cat conftest.er1 >&5
  2635. fi
  2636. rm -f conftest.er1 conftest.err
  2637. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2638. test $ac_status = 0; }
  2639. done
  2640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2641. /* end confdefs.h. */
  2642. int
  2643. main (void)
  2644. {
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. ac_clean_files_save=$ac_clean_files
  2650. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2651. # Try to create an executable without -o first, disregard a.out.
  2652. # It will help us diagnose broken compilers, and finding out an intuition
  2653. # of exeext.
  2654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2655. printf %s "checking whether the C compiler works... " >&6; }
  2656. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2657. # The possible output files:
  2658. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2659. ac_rmfiles=
  2660. for ac_file in $ac_files
  2661. do
  2662. case $ac_file in
  2663. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2664. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2665. esac
  2666. done
  2667. rm -f $ac_rmfiles
  2668. if { { ac_try="$ac_link_default"
  2669. case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2674. printf "%s\n" "$ac_try_echo"; } >&5
  2675. (eval "$ac_link_default") 2>&5
  2676. ac_status=$?
  2677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2678. test $ac_status = 0; }
  2679. then :
  2680. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2681. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2682. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2683. # so that the user can short-circuit this test for compilers unknown to
  2684. # Autoconf.
  2685. for ac_file in $ac_files ''
  2686. do
  2687. test -f "$ac_file" || continue
  2688. case $ac_file in
  2689. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2690. ;;
  2691. [ab].out )
  2692. # We found the default executable, but exeext='' is most
  2693. # certainly right.
  2694. break;;
  2695. *.* )
  2696. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  2697. then :; else
  2698. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2699. fi
  2700. # We set ac_cv_exeext here because the later test for it is not
  2701. # safe: cross compilers may not add the suffix if given an `-o'
  2702. # argument, so we may need to know it at that point already.
  2703. # Even if this section looks crufty: it has the advantage of
  2704. # actually working.
  2705. break;;
  2706. * )
  2707. break;;
  2708. esac
  2709. done
  2710. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2711. else $as_nop
  2712. ac_file=''
  2713. fi
  2714. if test -z "$ac_file"
  2715. then :
  2716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2717. printf "%s\n" "no" >&6; }
  2718. printf "%s\n" "$as_me: failed program was:" >&5
  2719. sed 's/^/| /' conftest.$ac_ext >&5
  2720. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2721. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2722. as_fn_error 77 "C compiler cannot create executables
  2723. See \`config.log' for more details" "$LINENO" 5; }
  2724. else $as_nop
  2725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2726. printf "%s\n" "yes" >&6; }
  2727. fi
  2728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2729. printf %s "checking for C compiler default output file name... " >&6; }
  2730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2731. printf "%s\n" "$ac_file" >&6; }
  2732. ac_exeext=$ac_cv_exeext
  2733. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2734. ac_clean_files=$ac_clean_files_save
  2735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2736. printf %s "checking for suffix of executables... " >&6; }
  2737. if { { ac_try="$ac_link"
  2738. case "(($ac_try" in
  2739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2740. *) ac_try_echo=$ac_try;;
  2741. esac
  2742. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2743. printf "%s\n" "$ac_try_echo"; } >&5
  2744. (eval "$ac_link") 2>&5
  2745. ac_status=$?
  2746. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2747. test $ac_status = 0; }
  2748. then :
  2749. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2750. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2751. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2752. # `rm'.
  2753. for ac_file in conftest.exe conftest conftest.*; do
  2754. test -f "$ac_file" || continue
  2755. case $ac_file in
  2756. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2757. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2758. break;;
  2759. * ) break;;
  2760. esac
  2761. done
  2762. else $as_nop
  2763. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2764. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2765. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2766. See \`config.log' for more details" "$LINENO" 5; }
  2767. fi
  2768. rm -f conftest conftest$ac_cv_exeext
  2769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2770. printf "%s\n" "$ac_cv_exeext" >&6; }
  2771. rm -f conftest.$ac_ext
  2772. EXEEXT=$ac_cv_exeext
  2773. ac_exeext=$EXEEXT
  2774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2775. /* end confdefs.h. */
  2776. #include <stdio.h>
  2777. int
  2778. main (void)
  2779. {
  2780. FILE *f = fopen ("conftest.out", "w");
  2781. return ferror (f) || fclose (f) != 0;
  2782. ;
  2783. return 0;
  2784. }
  2785. _ACEOF
  2786. ac_clean_files="$ac_clean_files conftest.out"
  2787. # Check that the compiler produces executables we can run. If not, either
  2788. # the compiler is broken, or we cross compile.
  2789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2790. printf %s "checking whether we are cross compiling... " >&6; }
  2791. if test "$cross_compiling" != yes; then
  2792. { { ac_try="$ac_link"
  2793. case "(($ac_try" in
  2794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2795. *) ac_try_echo=$ac_try;;
  2796. esac
  2797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2798. printf "%s\n" "$ac_try_echo"; } >&5
  2799. (eval "$ac_link") 2>&5
  2800. ac_status=$?
  2801. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2802. test $ac_status = 0; }
  2803. if { ac_try='./conftest$ac_cv_exeext'
  2804. { { case "(($ac_try" in
  2805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2806. *) ac_try_echo=$ac_try;;
  2807. esac
  2808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2809. printf "%s\n" "$ac_try_echo"; } >&5
  2810. (eval "$ac_try") 2>&5
  2811. ac_status=$?
  2812. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2813. test $ac_status = 0; }; }; then
  2814. cross_compiling=no
  2815. else
  2816. if test "$cross_compiling" = maybe; then
  2817. cross_compiling=yes
  2818. else
  2819. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2820. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2821. as_fn_error 77 "cannot run C compiled programs.
  2822. If you meant to cross compile, use \`--host'.
  2823. See \`config.log' for more details" "$LINENO" 5; }
  2824. fi
  2825. fi
  2826. fi
  2827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2828. printf "%s\n" "$cross_compiling" >&6; }
  2829. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2830. ac_clean_files=$ac_clean_files_save
  2831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2832. printf %s "checking for suffix of object files... " >&6; }
  2833. if test ${ac_cv_objext+y}
  2834. then :
  2835. printf %s "(cached) " >&6
  2836. else $as_nop
  2837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2838. /* end confdefs.h. */
  2839. int
  2840. main (void)
  2841. {
  2842. ;
  2843. return 0;
  2844. }
  2845. _ACEOF
  2846. rm -f conftest.o conftest.obj
  2847. if { { ac_try="$ac_compile"
  2848. case "(($ac_try" in
  2849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2850. *) ac_try_echo=$ac_try;;
  2851. esac
  2852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2853. printf "%s\n" "$ac_try_echo"; } >&5
  2854. (eval "$ac_compile") 2>&5
  2855. ac_status=$?
  2856. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2857. test $ac_status = 0; }
  2858. then :
  2859. for ac_file in conftest.o conftest.obj conftest.*; do
  2860. test -f "$ac_file" || continue;
  2861. case $ac_file in
  2862. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2863. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2864. break;;
  2865. esac
  2866. done
  2867. else $as_nop
  2868. printf "%s\n" "$as_me: failed program was:" >&5
  2869. sed 's/^/| /' conftest.$ac_ext >&5
  2870. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2871. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2872. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2873. See \`config.log' for more details" "$LINENO" 5; }
  2874. fi
  2875. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2876. fi
  2877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2878. printf "%s\n" "$ac_cv_objext" >&6; }
  2879. OBJEXT=$ac_cv_objext
  2880. ac_objext=$OBJEXT
  2881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  2882. printf %s "checking whether the compiler supports GNU C... " >&6; }
  2883. if test ${ac_cv_c_compiler_gnu+y}
  2884. then :
  2885. printf %s "(cached) " >&6
  2886. else $as_nop
  2887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2888. /* end confdefs.h. */
  2889. int
  2890. main (void)
  2891. {
  2892. #ifndef __GNUC__
  2893. choke me
  2894. #endif
  2895. ;
  2896. return 0;
  2897. }
  2898. _ACEOF
  2899. if ac_fn_c_try_compile "$LINENO"
  2900. then :
  2901. ac_compiler_gnu=yes
  2902. else $as_nop
  2903. ac_compiler_gnu=no
  2904. fi
  2905. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2906. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2907. fi
  2908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2909. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  2910. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2911. if test $ac_compiler_gnu = yes; then
  2912. GCC=yes
  2913. else
  2914. GCC=
  2915. fi
  2916. ac_test_CFLAGS=${CFLAGS+y}
  2917. ac_save_CFLAGS=$CFLAGS
  2918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2919. printf %s "checking whether $CC accepts -g... " >&6; }
  2920. if test ${ac_cv_prog_cc_g+y}
  2921. then :
  2922. printf %s "(cached) " >&6
  2923. else $as_nop
  2924. ac_save_c_werror_flag=$ac_c_werror_flag
  2925. ac_c_werror_flag=yes
  2926. ac_cv_prog_cc_g=no
  2927. CFLAGS="-g"
  2928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2929. /* end confdefs.h. */
  2930. int
  2931. main (void)
  2932. {
  2933. ;
  2934. return 0;
  2935. }
  2936. _ACEOF
  2937. if ac_fn_c_try_compile "$LINENO"
  2938. then :
  2939. ac_cv_prog_cc_g=yes
  2940. else $as_nop
  2941. CFLAGS=""
  2942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2943. /* end confdefs.h. */
  2944. int
  2945. main (void)
  2946. {
  2947. ;
  2948. return 0;
  2949. }
  2950. _ACEOF
  2951. if ac_fn_c_try_compile "$LINENO"
  2952. then :
  2953. else $as_nop
  2954. ac_c_werror_flag=$ac_save_c_werror_flag
  2955. CFLAGS="-g"
  2956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2957. /* end confdefs.h. */
  2958. int
  2959. main (void)
  2960. {
  2961. ;
  2962. return 0;
  2963. }
  2964. _ACEOF
  2965. if ac_fn_c_try_compile "$LINENO"
  2966. then :
  2967. ac_cv_prog_cc_g=yes
  2968. fi
  2969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2970. fi
  2971. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2972. fi
  2973. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2974. ac_c_werror_flag=$ac_save_c_werror_flag
  2975. fi
  2976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2977. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  2978. if test $ac_test_CFLAGS; then
  2979. CFLAGS=$ac_save_CFLAGS
  2980. elif test $ac_cv_prog_cc_g = yes; then
  2981. if test "$GCC" = yes; then
  2982. CFLAGS="-g -O2"
  2983. else
  2984. CFLAGS="-g"
  2985. fi
  2986. else
  2987. if test "$GCC" = yes; then
  2988. CFLAGS="-O2"
  2989. else
  2990. CFLAGS=
  2991. fi
  2992. fi
  2993. ac_prog_cc_stdc=no
  2994. if test x$ac_prog_cc_stdc = xno
  2995. then :
  2996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  2997. printf %s "checking for $CC option to enable C11 features... " >&6; }
  2998. if test ${ac_cv_prog_cc_c11+y}
  2999. then :
  3000. printf %s "(cached) " >&6
  3001. else $as_nop
  3002. ac_cv_prog_cc_c11=no
  3003. ac_save_CC=$CC
  3004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3005. /* end confdefs.h. */
  3006. $ac_c_conftest_c11_program
  3007. _ACEOF
  3008. for ac_arg in '' -std=gnu11
  3009. do
  3010. CC="$ac_save_CC $ac_arg"
  3011. if ac_fn_c_try_compile "$LINENO"
  3012. then :
  3013. ac_cv_prog_cc_c11=$ac_arg
  3014. fi
  3015. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3016. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3017. done
  3018. rm -f conftest.$ac_ext
  3019. CC=$ac_save_CC
  3020. fi
  3021. if test "x$ac_cv_prog_cc_c11" = xno
  3022. then :
  3023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3024. printf "%s\n" "unsupported" >&6; }
  3025. else $as_nop
  3026. if test "x$ac_cv_prog_cc_c11" = x
  3027. then :
  3028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3029. printf "%s\n" "none needed" >&6; }
  3030. else $as_nop
  3031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3032. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3033. CC="$CC $ac_cv_prog_cc_c11"
  3034. fi
  3035. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3036. ac_prog_cc_stdc=c11
  3037. fi
  3038. fi
  3039. if test x$ac_prog_cc_stdc = xno
  3040. then :
  3041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3042. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3043. if test ${ac_cv_prog_cc_c99+y}
  3044. then :
  3045. printf %s "(cached) " >&6
  3046. else $as_nop
  3047. ac_cv_prog_cc_c99=no
  3048. ac_save_CC=$CC
  3049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3050. /* end confdefs.h. */
  3051. $ac_c_conftest_c99_program
  3052. _ACEOF
  3053. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3054. do
  3055. CC="$ac_save_CC $ac_arg"
  3056. if ac_fn_c_try_compile "$LINENO"
  3057. then :
  3058. ac_cv_prog_cc_c99=$ac_arg
  3059. fi
  3060. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3061. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3062. done
  3063. rm -f conftest.$ac_ext
  3064. CC=$ac_save_CC
  3065. fi
  3066. if test "x$ac_cv_prog_cc_c99" = xno
  3067. then :
  3068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3069. printf "%s\n" "unsupported" >&6; }
  3070. else $as_nop
  3071. if test "x$ac_cv_prog_cc_c99" = x
  3072. then :
  3073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3074. printf "%s\n" "none needed" >&6; }
  3075. else $as_nop
  3076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3077. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3078. CC="$CC $ac_cv_prog_cc_c99"
  3079. fi
  3080. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3081. ac_prog_cc_stdc=c99
  3082. fi
  3083. fi
  3084. if test x$ac_prog_cc_stdc = xno
  3085. then :
  3086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3087. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3088. if test ${ac_cv_prog_cc_c89+y}
  3089. then :
  3090. printf %s "(cached) " >&6
  3091. else $as_nop
  3092. ac_cv_prog_cc_c89=no
  3093. ac_save_CC=$CC
  3094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3095. /* end confdefs.h. */
  3096. $ac_c_conftest_c89_program
  3097. _ACEOF
  3098. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3099. do
  3100. CC="$ac_save_CC $ac_arg"
  3101. if ac_fn_c_try_compile "$LINENO"
  3102. then :
  3103. ac_cv_prog_cc_c89=$ac_arg
  3104. fi
  3105. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3106. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3107. done
  3108. rm -f conftest.$ac_ext
  3109. CC=$ac_save_CC
  3110. fi
  3111. if test "x$ac_cv_prog_cc_c89" = xno
  3112. then :
  3113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3114. printf "%s\n" "unsupported" >&6; }
  3115. else $as_nop
  3116. if test "x$ac_cv_prog_cc_c89" = x
  3117. then :
  3118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3119. printf "%s\n" "none needed" >&6; }
  3120. else $as_nop
  3121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3122. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3123. CC="$CC $ac_cv_prog_cc_c89"
  3124. fi
  3125. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3126. ac_prog_cc_stdc=c89
  3127. fi
  3128. fi
  3129. ac_ext=c
  3130. ac_cpp='$CPP $CPPFLAGS'
  3131. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3132. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3133. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3135. printf %s "checking for an ANSI C-conforming const... " >&6; }
  3136. if test ${ac_cv_c_const+y}
  3137. then :
  3138. printf %s "(cached) " >&6
  3139. else $as_nop
  3140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3141. /* end confdefs.h. */
  3142. int
  3143. main (void)
  3144. {
  3145. #ifndef __cplusplus
  3146. /* Ultrix mips cc rejects this sort of thing. */
  3147. typedef int charset[2];
  3148. const charset cs = { 0, 0 };
  3149. /* SunOS 4.1.1 cc rejects this. */
  3150. char const *const *pcpcc;
  3151. char **ppc;
  3152. /* NEC SVR4.0.2 mips cc rejects this. */
  3153. struct point {int x, y;};
  3154. static struct point const zero = {0,0};
  3155. /* IBM XL C 1.02.0.0 rejects this.
  3156. It does not let you subtract one const X* pointer from another in
  3157. an arm of an if-expression whose if-part is not a constant
  3158. expression */
  3159. const char *g = "string";
  3160. pcpcc = &g + (g ? g-g : 0);
  3161. /* HPUX 7.0 cc rejects these. */
  3162. ++pcpcc;
  3163. ppc = (char**) pcpcc;
  3164. pcpcc = (char const *const *) ppc;
  3165. { /* SCO 3.2v4 cc rejects this sort of thing. */
  3166. char tx;
  3167. char *t = &tx;
  3168. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3169. *t++ = 0;
  3170. if (s) return 0;
  3171. }
  3172. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3173. int x[] = {25, 17};
  3174. const int *foo = &x[0];
  3175. ++foo;
  3176. }
  3177. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3178. typedef const int *iptr;
  3179. iptr p = 0;
  3180. ++p;
  3181. }
  3182. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  3183. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3184. struct s { int j; const int *ap[3]; } bx;
  3185. struct s *b = &bx; b->j = 5;
  3186. }
  3187. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3188. const int foo = 10;
  3189. if (!foo) return 0;
  3190. }
  3191. return !cs[0] && !zero.x;
  3192. #endif
  3193. ;
  3194. return 0;
  3195. }
  3196. _ACEOF
  3197. if ac_fn_c_try_compile "$LINENO"
  3198. then :
  3199. ac_cv_c_const=yes
  3200. else $as_nop
  3201. ac_cv_c_const=no
  3202. fi
  3203. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3204. fi
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3206. printf "%s\n" "$ac_cv_c_const" >&6; }
  3207. if test $ac_cv_c_const = no; then
  3208. printf "%s\n" "#define const /**/" >>confdefs.h
  3209. fi
  3210. ISUNIX="false"
  3211. ISWINDOWS="false"
  3212. ISMACOSX="false"
  3213. case "$host" in
  3214. *-*-cygwin* | *-*-mingw*)
  3215. ISWINDOWS="true"
  3216. EXE=".exe"
  3217. MATHLIB=""
  3218. SYS_GL_LIBS="-lopengl32"
  3219. ;;
  3220. *-*-haiku*)
  3221. EXE=""
  3222. MATHLIB=""
  3223. SYS_GL_LIBS="-lGL"
  3224. ;;
  3225. *-*-darwin*)
  3226. ISMACOSX="true"
  3227. EXE=""
  3228. MATHLIB=""
  3229. SYS_GL_LIBS="-Wl,-framework,OpenGL"
  3230. ;;
  3231. *-*-aix*)
  3232. ISUNIX="true"
  3233. EXE=""
  3234. if test x$ac_cv_c_compiler_gnu = xyes; then
  3235. CFLAGS="-mthreads"
  3236. fi
  3237. SYS_GL_LIBS=""
  3238. ;;
  3239. *-*-mint*)
  3240. EXE=""
  3241. MATHLIB=""
  3242. # Extract the first word of "osmesa-config", so it can be a program name with args.
  3243. set dummy osmesa-config; ac_word=$2
  3244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3245. printf %s "checking for $ac_word... " >&6; }
  3246. if test ${ac_cv_path_OSMESA_CONFIG+y}
  3247. then :
  3248. printf %s "(cached) " >&6
  3249. else $as_nop
  3250. case $OSMESA_CONFIG in
  3251. [\\/]* | ?:[\\/]*)
  3252. ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
  3253. ;;
  3254. *)
  3255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3256. for as_dir in $PATH
  3257. do
  3258. IFS=$as_save_IFS
  3259. case $as_dir in #(((
  3260. '') as_dir=./ ;;
  3261. */) ;;
  3262. *) as_dir=$as_dir/ ;;
  3263. esac
  3264. for ac_exec_ext in '' $ac_executable_extensions; do
  3265. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3266. ac_cv_path_OSMESA_CONFIG="$as_dir$ac_word$ac_exec_ext"
  3267. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3268. break 2
  3269. fi
  3270. done
  3271. done
  3272. IFS=$as_save_IFS
  3273. test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
  3274. ;;
  3275. esac
  3276. fi
  3277. OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
  3278. if test -n "$OSMESA_CONFIG"; then
  3279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5
  3280. printf "%s\n" "$OSMESA_CONFIG" >&6; }
  3281. else
  3282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3283. printf "%s\n" "no" >&6; }
  3284. fi
  3285. if test "x$OSMESA_CONFIG" = "xyes"; then
  3286. OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
  3287. OSMESA_LIBS=`$OSMESA_CONFIG --libs`
  3288. CFLAGS="$CFLAGS $OSMESA_CFLAGS"
  3289. SYS_GL_LIBS="$OSMESA_LIBS"
  3290. else
  3291. SYS_GL_LIBS="-lOSMesa"
  3292. fi
  3293. ;;
  3294. *-*-emscripten*)
  3295. EXE=".bc"
  3296. MATHLIB=""
  3297. SYS_GL_LIBS=""
  3298. ;;
  3299. *-*-riscos*)
  3300. EXE=",e1f"
  3301. MATHLIB=""
  3302. SYS_GL_LIBS=""
  3303. ;;
  3304. *)
  3305. ISUNIX="true"
  3306. EXE=""
  3307. MATHLIB="-lm"
  3308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lOpenGL" >&5
  3309. printf %s "checking for glBegin in -lOpenGL... " >&6; }
  3310. if test ${ac_cv_lib_OpenGL_glBegin+y}
  3311. then :
  3312. printf %s "(cached) " >&6
  3313. else $as_nop
  3314. ac_check_lib_save_LIBS=$LIBS
  3315. LIBS="-lOpenGL $LIBS"
  3316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3317. /* end confdefs.h. */
  3318. /* Override any GCC internal prototype to avoid an error.
  3319. Use char because int might match the return type of a GCC
  3320. builtin and then its argument prototype would still apply. */
  3321. char glBegin ();
  3322. int
  3323. main (void)
  3324. {
  3325. return glBegin ();
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. if ac_fn_c_try_link "$LINENO"
  3331. then :
  3332. ac_cv_lib_OpenGL_glBegin=yes
  3333. else $as_nop
  3334. ac_cv_lib_OpenGL_glBegin=no
  3335. fi
  3336. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  3337. conftest$ac_exeext conftest.$ac_ext
  3338. LIBS=$ac_check_lib_save_LIBS
  3339. fi
  3340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenGL_glBegin" >&5
  3341. printf "%s\n" "$ac_cv_lib_OpenGL_glBegin" >&6; }
  3342. if test "x$ac_cv_lib_OpenGL_glBegin" = xyes
  3343. then :
  3344. SYS_GL_LIBS="-lOpenGL"
  3345. else $as_nop
  3346. SYS_GL_LIBS="-lGL"
  3347. fi
  3348. ;;
  3349. esac
  3350. SDL_VERSION=3.0.0
  3351. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3352. if test -n "$ac_tool_prefix"; then
  3353. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3354. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3356. printf %s "checking for $ac_word... " >&6; }
  3357. if test ${ac_cv_path_PKG_CONFIG+y}
  3358. then :
  3359. printf %s "(cached) " >&6
  3360. else $as_nop
  3361. case $PKG_CONFIG in
  3362. [\\/]* | ?:[\\/]*)
  3363. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3364. ;;
  3365. *)
  3366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3367. for as_dir in $PATH
  3368. do
  3369. IFS=$as_save_IFS
  3370. case $as_dir in #(((
  3371. '') as_dir=./ ;;
  3372. */) ;;
  3373. *) as_dir=$as_dir/ ;;
  3374. esac
  3375. for ac_exec_ext in '' $ac_executable_extensions; do
  3376. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3377. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  3378. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3379. break 2
  3380. fi
  3381. done
  3382. done
  3383. IFS=$as_save_IFS
  3384. ;;
  3385. esac
  3386. fi
  3387. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3388. if test -n "$PKG_CONFIG"; then
  3389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3390. printf "%s\n" "$PKG_CONFIG" >&6; }
  3391. else
  3392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3393. printf "%s\n" "no" >&6; }
  3394. fi
  3395. fi
  3396. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3397. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3398. # Extract the first word of "pkg-config", so it can be a program name with args.
  3399. set dummy pkg-config; ac_word=$2
  3400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3401. printf %s "checking for $ac_word... " >&6; }
  3402. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  3403. then :
  3404. printf %s "(cached) " >&6
  3405. else $as_nop
  3406. case $ac_pt_PKG_CONFIG in
  3407. [\\/]* | ?:[\\/]*)
  3408. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3409. ;;
  3410. *)
  3411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3412. for as_dir in $PATH
  3413. do
  3414. IFS=$as_save_IFS
  3415. case $as_dir in #(((
  3416. '') as_dir=./ ;;
  3417. */) ;;
  3418. *) as_dir=$as_dir/ ;;
  3419. esac
  3420. for ac_exec_ext in '' $ac_executable_extensions; do
  3421. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3422. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  3423. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3424. break 2
  3425. fi
  3426. done
  3427. done
  3428. IFS=$as_save_IFS
  3429. ;;
  3430. esac
  3431. fi
  3432. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3433. if test -n "$ac_pt_PKG_CONFIG"; then
  3434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3435. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  3436. else
  3437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3438. printf "%s\n" "no" >&6; }
  3439. fi
  3440. if test "x$ac_pt_PKG_CONFIG" = x; then
  3441. PKG_CONFIG=""
  3442. else
  3443. case $cross_compiling:$ac_tool_warned in
  3444. yes:)
  3445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3446. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3447. ac_tool_warned=yes ;;
  3448. esac
  3449. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3450. fi
  3451. else
  3452. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3453. fi
  3454. fi
  3455. if test -n "$PKG_CONFIG"; then
  3456. _pkg_min_version=0.9.0
  3457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3458. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3459. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3461. printf "%s\n" "yes" >&6; }
  3462. else
  3463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3464. printf "%s\n" "no" >&6; }
  3465. PKG_CONFIG=""
  3466. fi
  3467. fi
  3468. # Check whether --with-sdl-prefix was given.
  3469. if test ${with_sdl_prefix+y}
  3470. then :
  3471. withval=$with_sdl_prefix; sdl_prefix="$withval"
  3472. else $as_nop
  3473. sdl_prefix=""
  3474. fi
  3475. # Check whether --with-sdl-exec-prefix was given.
  3476. if test ${with_sdl_exec_prefix+y}
  3477. then :
  3478. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  3479. else $as_nop
  3480. sdl_exec_prefix=""
  3481. fi
  3482. # Check whether --enable-sdltest was given.
  3483. if test ${enable_sdltest+y}
  3484. then :
  3485. enableval=$enable_sdltest;
  3486. else $as_nop
  3487. enable_sdltest=yes
  3488. fi
  3489. min_sdl_version=$SDL_VERSION
  3490. if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
  3491. pkg_failed=no
  3492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sdl3 >= $min_sdl_version" >&5
  3493. printf %s "checking for sdl3 >= $min_sdl_version... " >&6; }
  3494. if test -n "$SDL_CFLAGS"; then
  3495. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  3496. elif test -n "$PKG_CONFIG"; then
  3497. if test -n "$PKG_CONFIG" && \
  3498. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl3 >= \$min_sdl_version\""; } >&5
  3499. ($PKG_CONFIG --exists --print-errors "sdl3 >= $min_sdl_version") 2>&5
  3500. ac_status=$?
  3501. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3502. test $ac_status = 0; }; then
  3503. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl3 >= $min_sdl_version" 2>/dev/null`
  3504. else
  3505. pkg_failed=yes
  3506. fi
  3507. else
  3508. pkg_failed=untried
  3509. fi
  3510. if test -n "$SDL_LIBS"; then
  3511. pkg_cv_SDL_LIBS="$SDL_LIBS"
  3512. elif test -n "$PKG_CONFIG"; then
  3513. if test -n "$PKG_CONFIG" && \
  3514. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl3 >= \$min_sdl_version\""; } >&5
  3515. ($PKG_CONFIG --exists --print-errors "sdl3 >= $min_sdl_version") 2>&5
  3516. ac_status=$?
  3517. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3518. test $ac_status = 0; }; then
  3519. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl3 >= $min_sdl_version" 2>/dev/null`
  3520. else
  3521. pkg_failed=yes
  3522. fi
  3523. else
  3524. pkg_failed=untried
  3525. fi
  3526. if test $pkg_failed = yes; then
  3527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3528. printf "%s\n" "no" >&6; }
  3529. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  3530. _pkg_short_errors_supported=yes
  3531. else
  3532. _pkg_short_errors_supported=no
  3533. fi
  3534. if test $_pkg_short_errors_supported = yes; then
  3535. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl3 >= $min_sdl_version" 2>&1`
  3536. else
  3537. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl3 >= $min_sdl_version" 2>&1`
  3538. fi
  3539. # Put the nasty error message in config.log where it belongs
  3540. echo "$SDL_PKG_ERRORS" >&5
  3541. sdl_pc=no
  3542. elif test $pkg_failed = untried; then
  3543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3544. printf "%s\n" "no" >&6; }
  3545. sdl_pc=no
  3546. else
  3547. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  3548. SDL_LIBS=$pkg_cv_SDL_LIBS
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3550. printf "%s\n" "yes" >&6; }
  3551. sdl_pc=yes
  3552. fi
  3553. else
  3554. sdl_pc=no
  3555. if test x$sdl_exec_prefix != x ; then
  3556. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  3557. if test x${SDL3_CONFIG+set} != xset ; then
  3558. SDL3_CONFIG=$sdl_exec_prefix/bin/sdl3-config
  3559. fi
  3560. fi
  3561. if test x$sdl_prefix != x ; then
  3562. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  3563. if test x${SDL3_CONFIG+set} != xset ; then
  3564. SDL3_CONFIG=$sdl_prefix/bin/sdl3-config
  3565. fi
  3566. fi
  3567. fi
  3568. if test "x$sdl_pc" = xyes ; then
  3569. no_sdl=""
  3570. SDL3_CONFIG="pkg-config sdl3"
  3571. else
  3572. as_save_PATH="$PATH"
  3573. if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
  3574. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  3575. fi
  3576. # Extract the first word of "sdl3-config", so it can be a program name with args.
  3577. set dummy sdl3-config; ac_word=$2
  3578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3579. printf %s "checking for $ac_word... " >&6; }
  3580. if test ${ac_cv_path_SDL3_CONFIG+y}
  3581. then :
  3582. printf %s "(cached) " >&6
  3583. else $as_nop
  3584. case $SDL3_CONFIG in
  3585. [\\/]* | ?:[\\/]*)
  3586. ac_cv_path_SDL3_CONFIG="$SDL3_CONFIG" # Let the user override the test with a path.
  3587. ;;
  3588. *)
  3589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3590. for as_dir in $PATH
  3591. do
  3592. IFS=$as_save_IFS
  3593. case $as_dir in #(((
  3594. '') as_dir=./ ;;
  3595. */) ;;
  3596. *) as_dir=$as_dir/ ;;
  3597. esac
  3598. for ac_exec_ext in '' $ac_executable_extensions; do
  3599. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3600. ac_cv_path_SDL3_CONFIG="$as_dir$ac_word$ac_exec_ext"
  3601. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3602. break 2
  3603. fi
  3604. done
  3605. done
  3606. IFS=$as_save_IFS
  3607. test -z "$ac_cv_path_SDL3_CONFIG" && ac_cv_path_SDL3_CONFIG="no"
  3608. ;;
  3609. esac
  3610. fi
  3611. SDL3_CONFIG=$ac_cv_path_SDL3_CONFIG
  3612. if test -n "$SDL3_CONFIG"; then
  3613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL3_CONFIG" >&5
  3614. printf "%s\n" "$SDL3_CONFIG" >&6; }
  3615. else
  3616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3617. printf "%s\n" "no" >&6; }
  3618. fi
  3619. PATH="$as_save_PATH"
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  3621. printf %s "checking for SDL - version >= $min_sdl_version... " >&6; }
  3622. no_sdl=""
  3623. if test "$SDL3_CONFIG" = "no" ; then
  3624. no_sdl=yes
  3625. else
  3626. SDL_CFLAGS=`$SDL3_CONFIG $sdl_config_args --cflags`
  3627. SDL_LIBS=`$SDL3_CONFIG $sdl_config_args --libs`
  3628. sdl_major_version=`$SDL3_CONFIG $sdl_config_args --version | \
  3629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3630. sdl_minor_version=`$SDL3_CONFIG $sdl_config_args --version | \
  3631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3632. sdl_micro_version=`$SDL3_CONFIG $sdl_config_args --version | \
  3633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3634. if test "x$enable_sdltest" = "xyes" ; then
  3635. ac_save_CFLAGS="$CFLAGS"
  3636. ac_save_CXXFLAGS="$CXXFLAGS"
  3637. ac_save_LIBS="$LIBS"
  3638. CFLAGS="$CFLAGS $SDL_CFLAGS"
  3639. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  3640. LIBS="$LIBS $SDL_LIBS"
  3641. rm -f conf.sdltest
  3642. if test "$cross_compiling" = yes
  3643. then :
  3644. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3645. else $as_nop
  3646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3647. /* end confdefs.h. */
  3648. #include <stdio.h>
  3649. #include <stdlib.h>
  3650. #include "SDL.h"
  3651. int main (int argc, char *argv[])
  3652. {
  3653. int major, minor, micro;
  3654. FILE *fp = fopen("conf.sdltest", "w");
  3655. if (fp) fclose(fp);
  3656. if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  3657. printf("%s, bad version string\n", "$min_sdl_version");
  3658. exit(1);
  3659. }
  3660. if (($sdl_major_version > major) ||
  3661. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  3662. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  3663. {
  3664. return 0;
  3665. }
  3666. else
  3667. {
  3668. printf("\n*** 'sdl3-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  3669. printf("*** of SDL required is %d.%d.%d. If sdl3-config is correct, then it is\n", major, minor, micro);
  3670. printf("*** best to upgrade to the required version.\n");
  3671. printf("*** If sdl3-config was wrong, set the environment variable SDL3_CONFIG\n");
  3672. printf("*** to point to the correct copy of sdl3-config, and remove the file\n");
  3673. printf("*** config.cache before re-running configure\n");
  3674. return 1;
  3675. }
  3676. }
  3677. _ACEOF
  3678. if ac_fn_c_try_run "$LINENO"
  3679. then :
  3680. else $as_nop
  3681. no_sdl=yes
  3682. fi
  3683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3684. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3685. fi
  3686. CFLAGS="$ac_save_CFLAGS"
  3687. CXXFLAGS="$ac_save_CXXFLAGS"
  3688. LIBS="$ac_save_LIBS"
  3689. fi
  3690. fi
  3691. if test "x$no_sdl" = x ; then
  3692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3693. printf "%s\n" "yes" >&6; }
  3694. else
  3695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3696. printf "%s\n" "no" >&6; }
  3697. fi
  3698. fi
  3699. if test "x$no_sdl" = x ; then
  3700. :
  3701. else
  3702. if test "$SDL3_CONFIG" = "no" ; then
  3703. echo "*** The sdl3-config script installed by SDL could not be found"
  3704. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  3705. echo "*** your path, or set the SDL3_CONFIG environment variable to the"
  3706. echo "*** full path to sdl3-config."
  3707. else
  3708. if test -f conf.sdltest ; then
  3709. :
  3710. else
  3711. echo "*** Could not run SDL test program, checking why..."
  3712. CFLAGS="$CFLAGS $SDL_CFLAGS"
  3713. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  3714. LIBS="$LIBS $SDL_LIBS"
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. #include <stdio.h>
  3718. #include "SDL.h"
  3719. int main(int argc, char *argv[])
  3720. { return 0; }
  3721. #undef main
  3722. #define main K_and_R_C_main
  3723. int
  3724. main (void)
  3725. {
  3726. return 0;
  3727. ;
  3728. return 0;
  3729. }
  3730. _ACEOF
  3731. if ac_fn_c_try_link "$LINENO"
  3732. then :
  3733. echo "*** The test program compiled, but did not run. This usually means"
  3734. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  3735. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  3736. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3737. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3738. echo "*** is required on your system"
  3739. echo "***"
  3740. echo "*** If you have an old version installed, it is best to remove it, although"
  3741. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3742. else $as_nop
  3743. echo "*** The test program failed to compile or link. See the file config.log for the"
  3744. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  3745. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  3746. echo "*** may want to edit the sdl3-config script: $SDL3_CONFIG"
  3747. fi
  3748. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  3749. conftest$ac_exeext conftest.$ac_ext
  3750. CFLAGS="$ac_save_CFLAGS"
  3751. CXXFLAGS="$ac_save_CXXFLAGS"
  3752. LIBS="$ac_save_LIBS"
  3753. fi
  3754. fi
  3755. SDL_CFLAGS=""
  3756. SDL_LIBS=""
  3757. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  3758. fi
  3759. rm -f conf.sdltest
  3760. CFLAGS="$CFLAGS $SDL_CFLAGS"
  3761. LIBS="$LIBS -lSDL3_test $SDL_LIBS"
  3762. ac_ext=c
  3763. ac_cpp='$CPP $CPPFLAGS'
  3764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3768. printf %s "checking how to run the C preprocessor... " >&6; }
  3769. # On Suns, sometimes $CPP names a directory.
  3770. if test -n "$CPP" && test -d "$CPP"; then
  3771. CPP=
  3772. fi
  3773. if test -z "$CPP"; then
  3774. if test ${ac_cv_prog_CPP+y}
  3775. then :
  3776. printf %s "(cached) " >&6
  3777. else $as_nop
  3778. # Double quotes because $CC needs to be expanded
  3779. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  3780. do
  3781. ac_preproc_ok=false
  3782. for ac_c_preproc_warn_flag in '' yes
  3783. do
  3784. # Use a header file that comes with gcc, so configuring glibc
  3785. # with a fresh cross-compiler works.
  3786. # On the NeXT, cc -E runs the code through the compiler's parser,
  3787. # not just through cpp. "Syntax error" is here to catch this case.
  3788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3789. /* end confdefs.h. */
  3790. #include <limits.h>
  3791. Syntax error
  3792. _ACEOF
  3793. if ac_fn_c_try_cpp "$LINENO"
  3794. then :
  3795. else $as_nop
  3796. # Broken: fails on valid input.
  3797. continue
  3798. fi
  3799. rm -f conftest.err conftest.i conftest.$ac_ext
  3800. # OK, works on sane cases. Now check whether nonexistent headers
  3801. # can be detected and how.
  3802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3803. /* end confdefs.h. */
  3804. #include <ac_nonexistent.h>
  3805. _ACEOF
  3806. if ac_fn_c_try_cpp "$LINENO"
  3807. then :
  3808. # Broken: success on invalid input.
  3809. continue
  3810. else $as_nop
  3811. # Passes both tests.
  3812. ac_preproc_ok=:
  3813. break
  3814. fi
  3815. rm -f conftest.err conftest.i conftest.$ac_ext
  3816. done
  3817. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3818. rm -f conftest.i conftest.err conftest.$ac_ext
  3819. if $ac_preproc_ok
  3820. then :
  3821. break
  3822. fi
  3823. done
  3824. ac_cv_prog_CPP=$CPP
  3825. fi
  3826. CPP=$ac_cv_prog_CPP
  3827. else
  3828. ac_cv_prog_CPP=$CPP
  3829. fi
  3830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3831. printf "%s\n" "$CPP" >&6; }
  3832. ac_preproc_ok=false
  3833. for ac_c_preproc_warn_flag in '' yes
  3834. do
  3835. # Use a header file that comes with gcc, so configuring glibc
  3836. # with a fresh cross-compiler works.
  3837. # On the NeXT, cc -E runs the code through the compiler's parser,
  3838. # not just through cpp. "Syntax error" is here to catch this case.
  3839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3840. /* end confdefs.h. */
  3841. #include <limits.h>
  3842. Syntax error
  3843. _ACEOF
  3844. if ac_fn_c_try_cpp "$LINENO"
  3845. then :
  3846. else $as_nop
  3847. # Broken: fails on valid input.
  3848. continue
  3849. fi
  3850. rm -f conftest.err conftest.i conftest.$ac_ext
  3851. # OK, works on sane cases. Now check whether nonexistent headers
  3852. # can be detected and how.
  3853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3854. /* end confdefs.h. */
  3855. #include <ac_nonexistent.h>
  3856. _ACEOF
  3857. if ac_fn_c_try_cpp "$LINENO"
  3858. then :
  3859. # Broken: success on invalid input.
  3860. continue
  3861. else $as_nop
  3862. # Passes both tests.
  3863. ac_preproc_ok=:
  3864. break
  3865. fi
  3866. rm -f conftest.err conftest.i conftest.$ac_ext
  3867. done
  3868. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3869. rm -f conftest.i conftest.err conftest.$ac_ext
  3870. if $ac_preproc_ok
  3871. then :
  3872. else $as_nop
  3873. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3874. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3875. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3876. See \`config.log' for more details" "$LINENO" 5; }
  3877. fi
  3878. ac_ext=c
  3879. ac_cpp='$CPP $CPPFLAGS'
  3880. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3881. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3882. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  3884. printf %s "checking for X... " >&6; }
  3885. # Check whether --with-x was given.
  3886. if test ${with_x+y}
  3887. then :
  3888. withval=$with_x;
  3889. fi
  3890. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3891. if test "x$with_x" = xno; then
  3892. # The user explicitly disabled X.
  3893. have_x=disabled
  3894. else
  3895. case $x_includes,$x_libraries in #(
  3896. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  3897. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  3898. then :
  3899. printf %s "(cached) " >&6
  3900. else $as_nop
  3901. # One or both of the vars are not set, and there is no cached value.
  3902. ac_x_includes=no
  3903. ac_x_libraries=no
  3904. # Do we need to do anything special at all?
  3905. ac_save_LIBS=$LIBS
  3906. LIBS="-lX11 $LIBS"
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. #include <X11/Xlib.h>
  3910. int
  3911. main (void)
  3912. {
  3913. XrmInitialize ()
  3914. ;
  3915. return 0;
  3916. }
  3917. _ACEOF
  3918. if ac_fn_c_try_link "$LINENO"
  3919. then :
  3920. # We can compile and link X programs with no special options.
  3921. ac_x_includes=
  3922. ac_x_libraries=
  3923. fi
  3924. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  3925. conftest$ac_exeext conftest.$ac_ext
  3926. LIBS="$ac_save_LIBS"
  3927. # If that didn't work, only try xmkmf and file system searches
  3928. # for native compilation.
  3929. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  3930. then :
  3931. rm -f -r conftest.dir
  3932. if mkdir conftest.dir; then
  3933. cd conftest.dir
  3934. cat >Imakefile <<'_ACEOF'
  3935. incroot:
  3936. @echo incroot='${INCROOT}'
  3937. usrlibdir:
  3938. @echo usrlibdir='${USRLIBDIR}'
  3939. libdir:
  3940. @echo libdir='${LIBDIR}'
  3941. _ACEOF
  3942. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  3943. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3944. for ac_var in incroot usrlibdir libdir; do
  3945. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  3946. done
  3947. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3948. for ac_extension in a so sl dylib la dll; do
  3949. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  3950. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  3951. ac_im_usrlibdir=$ac_im_libdir; break
  3952. fi
  3953. done
  3954. # Screen out bogus values from the imake configuration. They are
  3955. # bogus both because they are the default anyway, and because
  3956. # using them would break gcc on systems where it needs fixed includes.
  3957. case $ac_im_incroot in
  3958. /usr/include) ac_x_includes= ;;
  3959. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  3960. esac
  3961. case $ac_im_usrlibdir in
  3962. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  3963. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  3964. esac
  3965. fi
  3966. cd ..
  3967. rm -f -r conftest.dir
  3968. fi
  3969. # Standard set of common directories for X headers.
  3970. # Check X11 before X11Rn because it is often a symlink to the current release.
  3971. ac_x_header_dirs='
  3972. /usr/X11/include
  3973. /usr/X11R7/include
  3974. /usr/X11R6/include
  3975. /usr/X11R5/include
  3976. /usr/X11R4/include
  3977. /usr/include/X11
  3978. /usr/include/X11R7
  3979. /usr/include/X11R6
  3980. /usr/include/X11R5
  3981. /usr/include/X11R4
  3982. /usr/local/X11/include
  3983. /usr/local/X11R7/include
  3984. /usr/local/X11R6/include
  3985. /usr/local/X11R5/include
  3986. /usr/local/X11R4/include
  3987. /usr/local/include/X11
  3988. /usr/local/include/X11R7
  3989. /usr/local/include/X11R6
  3990. /usr/local/include/X11R5
  3991. /usr/local/include/X11R4
  3992. /opt/X11/include
  3993. /usr/X386/include
  3994. /usr/x386/include
  3995. /usr/XFree86/include/X11
  3996. /usr/include
  3997. /usr/local/include
  3998. /usr/unsupported/include
  3999. /usr/athena/include
  4000. /usr/local/x11r5/include
  4001. /usr/lpp/Xamples/include
  4002. /usr/openwin/include
  4003. /usr/openwin/share/include'
  4004. if test "$ac_x_includes" = no; then
  4005. # Guess where to find include files, by looking for Xlib.h.
  4006. # First, try using that file with no special directory specified.
  4007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4008. /* end confdefs.h. */
  4009. #include <X11/Xlib.h>
  4010. _ACEOF
  4011. if ac_fn_c_try_cpp "$LINENO"
  4012. then :
  4013. # We can compile using X headers with no special include directory.
  4014. ac_x_includes=
  4015. else $as_nop
  4016. for ac_dir in $ac_x_header_dirs; do
  4017. if test -r "$ac_dir/X11/Xlib.h"; then
  4018. ac_x_includes=$ac_dir
  4019. break
  4020. fi
  4021. done
  4022. fi
  4023. rm -f conftest.err conftest.i conftest.$ac_ext
  4024. fi # $ac_x_includes = no
  4025. if test "$ac_x_libraries" = no; then
  4026. # Check for the libraries.
  4027. # See if we find them without any special options.
  4028. # Don't add to $LIBS permanently.
  4029. ac_save_LIBS=$LIBS
  4030. LIBS="-lX11 $LIBS"
  4031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4032. /* end confdefs.h. */
  4033. #include <X11/Xlib.h>
  4034. int
  4035. main (void)
  4036. {
  4037. XrmInitialize ()
  4038. ;
  4039. return 0;
  4040. }
  4041. _ACEOF
  4042. if ac_fn_c_try_link "$LINENO"
  4043. then :
  4044. LIBS=$ac_save_LIBS
  4045. # We can link X programs with no special library path.
  4046. ac_x_libraries=
  4047. else $as_nop
  4048. LIBS=$ac_save_LIBS
  4049. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  4050. do
  4051. # Don't even attempt the hair of trying to link an X program!
  4052. for ac_extension in a so sl dylib la dll; do
  4053. if test -r "$ac_dir/libX11.$ac_extension"; then
  4054. ac_x_libraries=$ac_dir
  4055. break 2
  4056. fi
  4057. done
  4058. done
  4059. fi
  4060. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4061. conftest$ac_exeext conftest.$ac_ext
  4062. fi # $ac_x_libraries = no
  4063. fi
  4064. # Record the results.
  4065. case $ac_x_includes,$ac_x_libraries in #(
  4066. no,* | *,no | *\'*) :
  4067. # Didn't find X, or a directory has "'" in its name.
  4068. ac_cv_have_x="have_x=no" ;; #(
  4069. *) :
  4070. # Record where we found X for the cache.
  4071. ac_cv_have_x="have_x=yes\
  4072. ac_x_includes='$ac_x_includes'\
  4073. ac_x_libraries='$ac_x_libraries'" ;;
  4074. esac
  4075. fi
  4076. ;; #(
  4077. *) have_x=yes;;
  4078. esac
  4079. eval "$ac_cv_have_x"
  4080. fi # $with_x != no
  4081. if test "$have_x" != yes; then
  4082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  4083. printf "%s\n" "$have_x" >&6; }
  4084. no_x=yes
  4085. else
  4086. # If each of the values was on the command line, it overrides each guess.
  4087. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  4088. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  4089. # Update the cache value to reflect the command line values.
  4090. ac_cv_have_x="have_x=yes\
  4091. ac_x_includes='$x_includes'\
  4092. ac_x_libraries='$x_libraries'"
  4093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  4094. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  4095. fi
  4096. if test x$have_x = xyes; then
  4097. if test x$ac_x_includes = xno || test "x$ac_x_includes" = xNone || test "x$ac_x_includes" = x; then
  4098. :
  4099. else
  4100. CFLAGS="$CFLAGS -I$ac_x_includes"
  4101. fi
  4102. if test x$ac_x_libraries = xno || test "x$ac_x_libraries" = xNone; then
  4103. :
  4104. else
  4105. if test "x$ac_x_libraries" = x; then
  4106. XPATH=""
  4107. XLIB="-lX11"
  4108. else
  4109. XPATH="-L$ac_x_libraries"
  4110. XLIB="-L$ac_x_libraries -lX11"
  4111. fi
  4112. fi
  4113. fi
  4114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
  4115. printf %s "checking for OpenGL support... " >&6; }
  4116. have_opengl=no
  4117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4118. /* end confdefs.h. */
  4119. #include "SDL_opengl.h"
  4120. #ifndef SDL_VIDEO_OPENGL
  4121. #error SDL_VIDEO_OPENGL
  4122. #endif
  4123. int
  4124. main (void)
  4125. {
  4126. ;
  4127. return 0;
  4128. }
  4129. _ACEOF
  4130. if ac_fn_c_try_compile "$LINENO"
  4131. then :
  4132. have_opengl=yes
  4133. fi
  4134. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
  4136. printf "%s\n" "$have_opengl" >&6; }
  4137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES2 support" >&5
  4138. printf %s "checking for OpenGL ES2 support... " >&6; }
  4139. have_opengles2=no
  4140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4141. /* end confdefs.h. */
  4142. #include "SDL_opengles2.h"
  4143. #ifndef SDL_VIDEO_OPENGL_ES2
  4144. #error SDL_VIDEO_OPENGL_ES2
  4145. #endif
  4146. int
  4147. main (void)
  4148. {
  4149. ;
  4150. return 0;
  4151. }
  4152. _ACEOF
  4153. if ac_fn_c_try_compile "$LINENO"
  4154. then :
  4155. have_opengles2=yes
  4156. fi
  4157. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_opengles2" >&5
  4159. printf "%s\n" "$have_opengles2" >&6; }
  4160. GLLIB=""
  4161. GLESLIB=""
  4162. GLES2LIB=""
  4163. OPENGLES2_TARGETS="UNUSED"
  4164. OPENGL_TARGETS="UNUSED"
  4165. if test x$have_opengles2 = xyes; then
  4166. CFLAGS="$CFLAGS -DHAVE_OPENGLES2"
  4167. #GLES2LIB="$XPATH -lGLESv2"
  4168. OPENGLES2_TARGETS="TARGETS"
  4169. fi
  4170. if test x$have_opengl = xyes; then
  4171. CFLAGS="$CFLAGS -DHAVE_OPENGL"
  4172. GLLIB="$XPATH $SYS_GL_LIBS"
  4173. OPENGL_TARGETS="TARGETS"
  4174. fi
  4175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wformat" >&5
  4176. printf %s "checking for GCC -Wformat... " >&6; }
  4177. have_wformat=no
  4178. save_CFLAGS="$CFLAGS"
  4179. CFLAGS="$save_CFLAGS -Wformat"
  4180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4181. /* end confdefs.h. */
  4182. int x = 0;
  4183. int
  4184. main (void)
  4185. {
  4186. ;
  4187. return 0;
  4188. }
  4189. _ACEOF
  4190. if ac_fn_c_try_compile "$LINENO"
  4191. then :
  4192. have_wformat=yes
  4193. fi
  4194. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wformat" >&5
  4196. printf "%s\n" "$have_wformat" >&6; }
  4197. CFLAGS="$save_CFLAGS"
  4198. if test x$have_wformat = xyes; then
  4199. CFLAGS="$CFLAGS -DHAVE_WFORMAT"
  4200. fi
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wformat-overflow" >&5
  4202. printf %s "checking for GCC -Wformat-overflow... " >&6; }
  4203. have_wformat_overflow=no
  4204. save_CFLAGS="$CFLAGS"
  4205. CFLAGS="$save_CFLAGS -Wformat-overflow"
  4206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4207. /* end confdefs.h. */
  4208. int x = 0;
  4209. int
  4210. main (void)
  4211. {
  4212. ;
  4213. return 0;
  4214. }
  4215. _ACEOF
  4216. if ac_fn_c_try_compile "$LINENO"
  4217. then :
  4218. have_wformat_overflow=yes
  4219. fi
  4220. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wformat_overflow" >&5
  4222. printf "%s\n" "$have_wformat_overflow" >&6; }
  4223. CFLAGS="$save_CFLAGS"
  4224. if test x$have_wformat_overflow = xyes; then
  4225. CFLAGS="$CFLAGS -DHAVE_WFORMAT_OVERFLOW"
  4226. fi
  4227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wformat-extra-args" >&5
  4228. printf %s "checking for GCC -Wformat-extra-args... " >&6; }
  4229. have_wformat_extra_args=no
  4230. save_CFLAGS="$CFLAGS"
  4231. CFLAGS="$save_CFLAGS -Wformat-extra-args"
  4232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4233. /* end confdefs.h. */
  4234. int x = 0;
  4235. int
  4236. main (void)
  4237. {
  4238. ;
  4239. return 0;
  4240. }
  4241. _ACEOF
  4242. if ac_fn_c_try_compile "$LINENO"
  4243. then :
  4244. have_wformat_extra_args=yes
  4245. fi
  4246. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wformat_extra_args" >&5
  4248. printf "%s\n" "$have_wformat_extra_args" >&6; }
  4249. CFLAGS="$save_CFLAGS"
  4250. if test x$have_wformat_extra_args = xyes; then
  4251. CFLAGS="$CFLAGS -DHAVE_WFORMAT_EXTRA_ARGS"
  4252. fi
  4253. # Check whether --enable-werror was given.
  4254. if test ${enable_werror+y}
  4255. then :
  4256. enableval=$enable_werror; enable_werror=$enableval
  4257. else $as_nop
  4258. enable_werror=no
  4259. fi
  4260. if test x$enable_werror = xyes; then
  4261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  4262. printf %s "checking for GCC -Werror option... " >&6; }
  4263. have_gcc_werror=no
  4264. save_CFLAGS="$CFLAGS"
  4265. CFLAGS="$save_CFLAGS -Werror"
  4266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4267. /* end confdefs.h. */
  4268. int x = 0;
  4269. int
  4270. main (void)
  4271. {
  4272. ;
  4273. return 0;
  4274. }
  4275. _ACEOF
  4276. if ac_fn_c_try_compile "$LINENO"
  4277. then :
  4278. have_gcc_werror=yes
  4279. fi
  4280. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  4282. printf "%s\n" "$have_gcc_werror" >&6; }
  4283. CFLAGS="$save_CFLAGS"
  4284. if test x$have_gcc_werror = xyes; then
  4285. CFLAGS="$CFLAGS -Werror"
  4286. fi
  4287. fi
  4288. case "$host" in
  4289. *-ios-*|*-*-darwin* )
  4290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  4291. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  4292. have_gcc_wno_error_deprecated_declarations=no
  4293. save_CFLAGS="$CFLAGS"
  4294. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  4295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4296. /* end confdefs.h. */
  4297. int x = 0;
  4298. int
  4299. main (void)
  4300. {
  4301. ;
  4302. return 0;
  4303. }
  4304. _ACEOF
  4305. if ac_fn_c_try_compile "$LINENO"
  4306. then :
  4307. have_gcc_wno_error_deprecated_declarations=yes
  4308. fi
  4309. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  4311. printf "%s\n" "$have_gcc_werror" >&6; }
  4312. CFLAGS="$save_CFLAGS"
  4313. if test x$have_gcc_wno_error_deprecated_declarations = xyes; then
  4314. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  4315. fi
  4316. ;;
  4317. esac
  4318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL3_ttf" >&5
  4319. printf %s "checking for TTF_Init in -lSDL3_ttf... " >&6; }
  4320. if test ${ac_cv_lib_SDL3_ttf_TTF_Init+y}
  4321. then :
  4322. printf %s "(cached) " >&6
  4323. else $as_nop
  4324. ac_check_lib_save_LIBS=$LIBS
  4325. LIBS="-lSDL3_ttf $LIBS"
  4326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4327. /* end confdefs.h. */
  4328. /* Override any GCC internal prototype to avoid an error.
  4329. Use char because int might match the return type of a GCC
  4330. builtin and then its argument prototype would still apply. */
  4331. char TTF_Init ();
  4332. int
  4333. main (void)
  4334. {
  4335. return TTF_Init ();
  4336. ;
  4337. return 0;
  4338. }
  4339. _ACEOF
  4340. if ac_fn_c_try_link "$LINENO"
  4341. then :
  4342. ac_cv_lib_SDL3_ttf_TTF_Init=yes
  4343. else $as_nop
  4344. ac_cv_lib_SDL3_ttf_TTF_Init=no
  4345. fi
  4346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4347. conftest$ac_exeext conftest.$ac_ext
  4348. LIBS=$ac_check_lib_save_LIBS
  4349. fi
  4350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL3_ttf_TTF_Init" >&5
  4351. printf "%s\n" "$ac_cv_lib_SDL3_ttf_TTF_Init" >&6; }
  4352. if test "x$ac_cv_lib_SDL3_ttf_TTF_Init" = xyes
  4353. then :
  4354. have_SDL_ttf=yes
  4355. fi
  4356. if test x$have_SDL_ttf = xyes; then
  4357. CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
  4358. SDL_TTF_LIB="-lSDL3_ttf"
  4359. fi
  4360. pkg_failed=no
  4361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5
  4362. printf %s "checking for libunwind... " >&6; }
  4363. if test -n "$LIBUNWIND_CFLAGS"; then
  4364. pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
  4365. elif test -n "$PKG_CONFIG"; then
  4366. if test -n "$PKG_CONFIG" && \
  4367. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
  4368. ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
  4369. ac_status=$?
  4370. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4371. test $ac_status = 0; }; then
  4372. pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
  4373. else
  4374. pkg_failed=yes
  4375. fi
  4376. else
  4377. pkg_failed=untried
  4378. fi
  4379. if test -n "$LIBUNWIND_LIBS"; then
  4380. pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
  4381. elif test -n "$PKG_CONFIG"; then
  4382. if test -n "$PKG_CONFIG" && \
  4383. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
  4384. ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
  4385. ac_status=$?
  4386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4387. test $ac_status = 0; }; then
  4388. pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
  4389. else
  4390. pkg_failed=yes
  4391. fi
  4392. else
  4393. pkg_failed=untried
  4394. fi
  4395. if test $pkg_failed = yes; then
  4396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4397. printf "%s\n" "no" >&6; }
  4398. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  4399. _pkg_short_errors_supported=yes
  4400. else
  4401. _pkg_short_errors_supported=no
  4402. fi
  4403. if test $_pkg_short_errors_supported = yes; then
  4404. LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libunwind" 2>&1`
  4405. else
  4406. LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "libunwind" 2>&1`
  4407. fi
  4408. # Put the nasty error message in config.log where it belongs
  4409. echo "$LIBUNWIND_PKG_ERRORS" >&5
  4410. have_libunwind=no
  4411. elif test $pkg_failed = untried; then
  4412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4413. printf "%s\n" "no" >&6; }
  4414. have_libunwind=no
  4415. else
  4416. LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
  4417. LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
  4418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4419. printf "%s\n" "yes" >&6; }
  4420. have_libunwind=yes
  4421. fi
  4422. if test x$have_libunwind = xyes ; then
  4423. LIBS="$LIBS $LIBUNWIND_LIBS"
  4424. fi
  4425. ac_config_files="$ac_config_files Makefile"
  4426. cat >confcache <<\_ACEOF
  4427. # This file is a shell script that caches the results of configure
  4428. # tests run on this system so they can be shared between configure
  4429. # scripts and configure runs, see configure's option --config-cache.
  4430. # It is not useful on other systems. If it contains results you don't
  4431. # want to keep, you may remove or edit it.
  4432. #
  4433. # config.status only pays attention to the cache file if you give it
  4434. # the --recheck option to rerun configure.
  4435. #
  4436. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4437. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4438. # following values.
  4439. _ACEOF
  4440. # The following way of writing the cache mishandles newlines in values,
  4441. # but we know of no workaround that is simple, portable, and efficient.
  4442. # So, we kill variables containing newlines.
  4443. # Ultrix sh set writes to stderr and can't be redirected directly,
  4444. # and sets the high bit in the cache file unless we assign to the vars.
  4445. (
  4446. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4447. eval ac_val=\$$ac_var
  4448. case $ac_val in #(
  4449. *${as_nl}*)
  4450. case $ac_var in #(
  4451. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4452. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4453. esac
  4454. case $ac_var in #(
  4455. _ | IFS | as_nl) ;; #(
  4456. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4457. *) { eval $ac_var=; unset $ac_var;} ;;
  4458. esac ;;
  4459. esac
  4460. done
  4461. (set) 2>&1 |
  4462. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4463. *${as_nl}ac_space=\ *)
  4464. # `set' does not quote correctly, so add quotes: double-quote
  4465. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4466. sed -n \
  4467. "s/'/'\\\\''/g;
  4468. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4469. ;; #(
  4470. *)
  4471. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4472. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4473. ;;
  4474. esac |
  4475. sort
  4476. ) |
  4477. sed '
  4478. /^ac_cv_env_/b end
  4479. t clear
  4480. :clear
  4481. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  4482. t end
  4483. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4484. :end' >>confcache
  4485. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4486. if test -w "$cache_file"; then
  4487. if test "x$cache_file" != "x/dev/null"; then
  4488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4489. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  4490. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4491. cat confcache >"$cache_file"
  4492. else
  4493. case $cache_file in #(
  4494. */* | ?:*)
  4495. mv -f confcache "$cache_file"$$ &&
  4496. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4497. *)
  4498. mv -f confcache "$cache_file" ;;
  4499. esac
  4500. fi
  4501. fi
  4502. else
  4503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4504. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  4505. fi
  4506. fi
  4507. rm -f confcache
  4508. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4509. # Let make expand exec_prefix.
  4510. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4511. # Transform confdefs.h into DEFS.
  4512. # Protect against shell expansion while executing Makefile rules.
  4513. # Protect against Makefile macro expansion.
  4514. #
  4515. # If the first sed substitution is executed (which looks for macros that
  4516. # take arguments), then branch to the quote section. Otherwise,
  4517. # look for a macro that doesn't take arguments.
  4518. ac_script='
  4519. :mline
  4520. /\\$/{
  4521. N
  4522. s,\\\n,,
  4523. b mline
  4524. }
  4525. t clear
  4526. :clear
  4527. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  4528. t quote
  4529. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  4530. t quote
  4531. b any
  4532. :quote
  4533. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  4534. s/\[/\\&/g
  4535. s/\]/\\&/g
  4536. s/\$/$$/g
  4537. H
  4538. :any
  4539. ${
  4540. g
  4541. s/^\n//
  4542. s/\n/ /g
  4543. p
  4544. }
  4545. '
  4546. DEFS=`sed -n "$ac_script" confdefs.h`
  4547. ac_libobjs=
  4548. ac_ltlibobjs=
  4549. U=
  4550. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4551. # 1. Remove the extension, and $U if already installed.
  4552. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4553. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  4554. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4555. # will be set to the directory where LIBOBJS objects are built.
  4556. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4557. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4558. done
  4559. LIBOBJS=$ac_libobjs
  4560. LTLIBOBJS=$ac_ltlibobjs
  4561. : "${CONFIG_STATUS=./config.status}"
  4562. ac_write_fail=0
  4563. ac_clean_files_save=$ac_clean_files
  4564. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4566. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  4567. as_write_fail=0
  4568. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4569. #! $SHELL
  4570. # Generated by $as_me.
  4571. # Run this file to recreate the current configuration.
  4572. # Compiler output produced by configure, useful for debugging
  4573. # configure, is in config.log if it exists.
  4574. debug=false
  4575. ac_cs_recheck=false
  4576. ac_cs_silent=false
  4577. SHELL=\${CONFIG_SHELL-$SHELL}
  4578. export SHELL
  4579. _ASEOF
  4580. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4581. ## -------------------- ##
  4582. ## M4sh Initialization. ##
  4583. ## -------------------- ##
  4584. # Be more Bourne compatible
  4585. DUALCASE=1; export DUALCASE # for MKS sh
  4586. as_nop=:
  4587. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  4588. then :
  4589. emulate sh
  4590. NULLCMD=:
  4591. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4592. # is contrary to our usage. Disable this feature.
  4593. alias -g '${1+"$@"}'='"$@"'
  4594. setopt NO_GLOB_SUBST
  4595. else $as_nop
  4596. case `(set -o) 2>/dev/null` in #(
  4597. *posix*) :
  4598. set -o posix ;; #(
  4599. *) :
  4600. ;;
  4601. esac
  4602. fi
  4603. # Reset variables that may have inherited troublesome values from
  4604. # the environment.
  4605. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  4606. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  4607. # side effect of setting IFS to empty, thus disabling word splitting.)
  4608. # Quoting is to prevent editors from complaining about space-tab.
  4609. as_nl='
  4610. '
  4611. export as_nl
  4612. IFS=" "" $as_nl"
  4613. PS1='$ '
  4614. PS2='> '
  4615. PS4='+ '
  4616. # Ensure predictable behavior from utilities with locale-dependent output.
  4617. LC_ALL=C
  4618. export LC_ALL
  4619. LANGUAGE=C
  4620. export LANGUAGE
  4621. # We cannot yet rely on "unset" to work, but we need these variables
  4622. # to be unset--not just set to an empty or harmless value--now, to
  4623. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  4624. # also avoids known problems related to "unset" and subshell syntax
  4625. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  4626. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  4627. do eval test \${$as_var+y} \
  4628. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4629. done
  4630. # Ensure that fds 0, 1, and 2 are open.
  4631. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  4632. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  4633. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  4634. # The user is always right.
  4635. if ${PATH_SEPARATOR+false} :; then
  4636. PATH_SEPARATOR=:
  4637. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4638. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4639. PATH_SEPARATOR=';'
  4640. }
  4641. fi
  4642. # Find who we are. Look in the path if we contain no directory separator.
  4643. as_myself=
  4644. case $0 in #((
  4645. *[\\/]* ) as_myself=$0 ;;
  4646. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4647. for as_dir in $PATH
  4648. do
  4649. IFS=$as_save_IFS
  4650. case $as_dir in #(((
  4651. '') as_dir=./ ;;
  4652. */) ;;
  4653. *) as_dir=$as_dir/ ;;
  4654. esac
  4655. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  4656. done
  4657. IFS=$as_save_IFS
  4658. ;;
  4659. esac
  4660. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4661. # in which case we are not to be found in the path.
  4662. if test "x$as_myself" = x; then
  4663. as_myself=$0
  4664. fi
  4665. if test ! -f "$as_myself"; then
  4666. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4667. exit 1
  4668. fi
  4669. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4670. # ----------------------------------------
  4671. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4672. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4673. # script with STATUS, using 1 if that was 0.
  4674. as_fn_error ()
  4675. {
  4676. as_status=$1; test $as_status -eq 0 && as_status=1
  4677. if test "$4"; then
  4678. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4679. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4680. fi
  4681. printf "%s\n" "$as_me: error: $2" >&2
  4682. as_fn_exit $as_status
  4683. } # as_fn_error
  4684. # as_fn_set_status STATUS
  4685. # -----------------------
  4686. # Set $? to STATUS, without forking.
  4687. as_fn_set_status ()
  4688. {
  4689. return $1
  4690. } # as_fn_set_status
  4691. # as_fn_exit STATUS
  4692. # -----------------
  4693. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4694. as_fn_exit ()
  4695. {
  4696. set +e
  4697. as_fn_set_status $1
  4698. exit $1
  4699. } # as_fn_exit
  4700. # as_fn_unset VAR
  4701. # ---------------
  4702. # Portably unset VAR.
  4703. as_fn_unset ()
  4704. {
  4705. { eval $1=; unset $1;}
  4706. }
  4707. as_unset=as_fn_unset
  4708. # as_fn_append VAR VALUE
  4709. # ----------------------
  4710. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4711. # advantage of any shell optimizations that allow amortized linear growth over
  4712. # repeated appends, instead of the typical quadratic growth present in naive
  4713. # implementations.
  4714. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  4715. then :
  4716. eval 'as_fn_append ()
  4717. {
  4718. eval $1+=\$2
  4719. }'
  4720. else $as_nop
  4721. as_fn_append ()
  4722. {
  4723. eval $1=\$$1\$2
  4724. }
  4725. fi # as_fn_append
  4726. # as_fn_arith ARG...
  4727. # ------------------
  4728. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4729. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4730. # must be portable across $(()) and expr.
  4731. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  4732. then :
  4733. eval 'as_fn_arith ()
  4734. {
  4735. as_val=$(( $* ))
  4736. }'
  4737. else $as_nop
  4738. as_fn_arith ()
  4739. {
  4740. as_val=`expr "$@" || test $? -eq 1`
  4741. }
  4742. fi # as_fn_arith
  4743. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4744. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4745. as_expr=expr
  4746. else
  4747. as_expr=false
  4748. fi
  4749. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4750. as_basename=basename
  4751. else
  4752. as_basename=false
  4753. fi
  4754. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4755. as_dirname=dirname
  4756. else
  4757. as_dirname=false
  4758. fi
  4759. as_me=`$as_basename -- "$0" ||
  4760. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4761. X"$0" : 'X\(//\)$' \| \
  4762. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4763. printf "%s\n" X/"$0" |
  4764. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4765. s//\1/
  4766. q
  4767. }
  4768. /^X\/\(\/\/\)$/{
  4769. s//\1/
  4770. q
  4771. }
  4772. /^X\/\(\/\).*/{
  4773. s//\1/
  4774. q
  4775. }
  4776. s/.*/./; q'`
  4777. # Avoid depending upon Character Ranges.
  4778. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4779. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4780. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4781. as_cr_digits='0123456789'
  4782. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4783. # Determine whether it's possible to make 'echo' print without a newline.
  4784. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  4785. # for compatibility with existing Makefiles.
  4786. ECHO_C= ECHO_N= ECHO_T=
  4787. case `echo -n x` in #(((((
  4788. -n*)
  4789. case `echo 'xy\c'` in
  4790. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4791. xy) ECHO_C='\c';;
  4792. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4793. ECHO_T=' ';;
  4794. esac;;
  4795. *)
  4796. ECHO_N='-n';;
  4797. esac
  4798. # For backward compatibility with old third-party macros, we provide
  4799. # the shell variables $as_echo and $as_echo_n. New code should use
  4800. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  4801. as_echo='printf %s\n'
  4802. as_echo_n='printf %s'
  4803. rm -f conf$$ conf$$.exe conf$$.file
  4804. if test -d conf$$.dir; then
  4805. rm -f conf$$.dir/conf$$.file
  4806. else
  4807. rm -f conf$$.dir
  4808. mkdir conf$$.dir 2>/dev/null
  4809. fi
  4810. if (echo >conf$$.file) 2>/dev/null; then
  4811. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4812. as_ln_s='ln -s'
  4813. # ... but there are two gotchas:
  4814. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4815. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4816. # In both cases, we have to default to `cp -pR'.
  4817. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4818. as_ln_s='cp -pR'
  4819. elif ln conf$$.file conf$$ 2>/dev/null; then
  4820. as_ln_s=ln
  4821. else
  4822. as_ln_s='cp -pR'
  4823. fi
  4824. else
  4825. as_ln_s='cp -pR'
  4826. fi
  4827. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4828. rmdir conf$$.dir 2>/dev/null
  4829. # as_fn_mkdir_p
  4830. # -------------
  4831. # Create "$as_dir" as a directory, including parents if necessary.
  4832. as_fn_mkdir_p ()
  4833. {
  4834. case $as_dir in #(
  4835. -*) as_dir=./$as_dir;;
  4836. esac
  4837. test -d "$as_dir" || eval $as_mkdir_p || {
  4838. as_dirs=
  4839. while :; do
  4840. case $as_dir in #(
  4841. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4842. *) as_qdir=$as_dir;;
  4843. esac
  4844. as_dirs="'$as_qdir' $as_dirs"
  4845. as_dir=`$as_dirname -- "$as_dir" ||
  4846. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4847. X"$as_dir" : 'X\(//\)[^/]' \| \
  4848. X"$as_dir" : 'X\(//\)$' \| \
  4849. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4850. printf "%s\n" X"$as_dir" |
  4851. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4852. s//\1/
  4853. q
  4854. }
  4855. /^X\(\/\/\)[^/].*/{
  4856. s//\1/
  4857. q
  4858. }
  4859. /^X\(\/\/\)$/{
  4860. s//\1/
  4861. q
  4862. }
  4863. /^X\(\/\).*/{
  4864. s//\1/
  4865. q
  4866. }
  4867. s/.*/./; q'`
  4868. test -d "$as_dir" && break
  4869. done
  4870. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4871. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4872. } # as_fn_mkdir_p
  4873. if mkdir -p . 2>/dev/null; then
  4874. as_mkdir_p='mkdir -p "$as_dir"'
  4875. else
  4876. test -d ./-p && rmdir ./-p
  4877. as_mkdir_p=false
  4878. fi
  4879. # as_fn_executable_p FILE
  4880. # -----------------------
  4881. # Test if FILE is an executable regular file.
  4882. as_fn_executable_p ()
  4883. {
  4884. test -f "$1" && test -x "$1"
  4885. } # as_fn_executable_p
  4886. as_test_x='test -x'
  4887. as_executable_p=as_fn_executable_p
  4888. # Sed expression to map a string onto a valid CPP name.
  4889. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4890. # Sed expression to map a string onto a valid variable name.
  4891. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4892. exec 6>&1
  4893. ## ----------------------------------- ##
  4894. ## Main body of $CONFIG_STATUS script. ##
  4895. ## ----------------------------------- ##
  4896. _ASEOF
  4897. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4898. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4899. # Save the log message, to keep $0 and so on meaningful, and to
  4900. # report actual input values of CONFIG_FILES etc. instead of their
  4901. # values after options handling.
  4902. ac_log="
  4903. This file was extended by $as_me, which was
  4904. generated by GNU Autoconf 2.71. Invocation command line was
  4905. CONFIG_FILES = $CONFIG_FILES
  4906. CONFIG_HEADERS = $CONFIG_HEADERS
  4907. CONFIG_LINKS = $CONFIG_LINKS
  4908. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4909. $ $0 $@
  4910. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4911. "
  4912. _ACEOF
  4913. case $ac_config_files in *"
  4914. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4915. esac
  4916. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4917. # Files that config.status was made for.
  4918. config_files="$ac_config_files"
  4919. _ACEOF
  4920. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4921. ac_cs_usage="\
  4922. \`$as_me' instantiates files and other configuration actions
  4923. from templates according to the current configuration. Unless the files
  4924. and actions are specified as TAGs, all are instantiated by default.
  4925. Usage: $0 [OPTION]... [TAG]...
  4926. -h, --help print this help, then exit
  4927. -V, --version print version number and configuration settings, then exit
  4928. --config print configuration, then exit
  4929. -q, --quiet, --silent
  4930. do not print progress messages
  4931. -d, --debug don't remove temporary files
  4932. --recheck update $as_me by reconfiguring in the same conditions
  4933. --file=FILE[:TEMPLATE]
  4934. instantiate the configuration file FILE
  4935. Configuration files:
  4936. $config_files
  4937. Report bugs to the package provider."
  4938. _ACEOF
  4939. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  4940. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  4941. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4942. ac_cs_config='$ac_cs_config_escaped'
  4943. ac_cs_version="\\
  4944. config.status
  4945. configured by $0, generated by GNU Autoconf 2.71,
  4946. with options \\"\$ac_cs_config\\"
  4947. Copyright (C) 2021 Free Software Foundation, Inc.
  4948. This config.status script is free software; the Free Software Foundation
  4949. gives unlimited permission to copy, distribute and modify it."
  4950. ac_pwd='$ac_pwd'
  4951. srcdir='$srcdir'
  4952. test -n "\$AWK" || AWK=awk
  4953. _ACEOF
  4954. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4955. # The default lists apply if the user does not specify any file.
  4956. ac_need_defaults=:
  4957. while test $# != 0
  4958. do
  4959. case $1 in
  4960. --*=?*)
  4961. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4962. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4963. ac_shift=:
  4964. ;;
  4965. --*=)
  4966. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4967. ac_optarg=
  4968. ac_shift=:
  4969. ;;
  4970. *)
  4971. ac_option=$1
  4972. ac_optarg=$2
  4973. ac_shift=shift
  4974. ;;
  4975. esac
  4976. case $ac_option in
  4977. # Handling of the options.
  4978. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4979. ac_cs_recheck=: ;;
  4980. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4981. printf "%s\n" "$ac_cs_version"; exit ;;
  4982. --config | --confi | --conf | --con | --co | --c )
  4983. printf "%s\n" "$ac_cs_config"; exit ;;
  4984. --debug | --debu | --deb | --de | --d | -d )
  4985. debug=: ;;
  4986. --file | --fil | --fi | --f )
  4987. $ac_shift
  4988. case $ac_optarg in
  4989. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4990. '') as_fn_error $? "missing file argument" ;;
  4991. esac
  4992. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4993. ac_need_defaults=false;;
  4994. --he | --h | --help | --hel | -h )
  4995. printf "%s\n" "$ac_cs_usage"; exit ;;
  4996. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4997. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4998. ac_cs_silent=: ;;
  4999. # This is an error.
  5000. -*) as_fn_error $? "unrecognized option: \`$1'
  5001. Try \`$0 --help' for more information." ;;
  5002. *) as_fn_append ac_config_targets " $1"
  5003. ac_need_defaults=false ;;
  5004. esac
  5005. shift
  5006. done
  5007. ac_configure_extra_args=
  5008. if $ac_cs_silent; then
  5009. exec 6>/dev/null
  5010. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5011. fi
  5012. _ACEOF
  5013. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5014. if \$ac_cs_recheck; then
  5015. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5016. shift
  5017. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  5018. CONFIG_SHELL='$SHELL'
  5019. export CONFIG_SHELL
  5020. exec "\$@"
  5021. fi
  5022. _ACEOF
  5023. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5024. exec 5>>config.log
  5025. {
  5026. echo
  5027. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5028. ## Running $as_me. ##
  5029. _ASBOX
  5030. printf "%s\n" "$ac_log"
  5031. } >&5
  5032. _ACEOF
  5033. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5034. _ACEOF
  5035. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5036. # Handling of arguments.
  5037. for ac_config_target in $ac_config_targets
  5038. do
  5039. case $ac_config_target in
  5040. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5041. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5042. esac
  5043. done
  5044. # If the user did not use the arguments to specify the items to instantiate,
  5045. # then the envvar interface is used. Set only those that are not.
  5046. # We use the long form for the default assignment because of an extremely
  5047. # bizarre bug on SunOS 4.1.3.
  5048. if $ac_need_defaults; then
  5049. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  5050. fi
  5051. # Have a temporary directory for convenience. Make it in the build tree
  5052. # simply because there is no reason against having it here, and in addition,
  5053. # creating and moving files from /tmp can sometimes cause problems.
  5054. # Hook for its removal unless debugging.
  5055. # Note that there is a small window in which the directory will not be cleaned:
  5056. # after its creation but before its name has been assigned to `$tmp'.
  5057. $debug ||
  5058. {
  5059. tmp= ac_tmp=
  5060. trap 'exit_status=$?
  5061. : "${ac_tmp:=$tmp}"
  5062. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5063. ' 0
  5064. trap 'as_fn_exit 1' 1 2 13 15
  5065. }
  5066. # Create a (secure) tmp directory for tmp files.
  5067. {
  5068. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5069. test -d "$tmp"
  5070. } ||
  5071. {
  5072. tmp=./conf$$-$RANDOM
  5073. (umask 077 && mkdir "$tmp")
  5074. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5075. ac_tmp=$tmp
  5076. # Set up the scripts for CONFIG_FILES section.
  5077. # No need to generate them if there are no CONFIG_FILES.
  5078. # This happens for instance with `./config.status config.h'.
  5079. if test -n "$CONFIG_FILES"; then
  5080. ac_cr=`echo X | tr X '\015'`
  5081. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5082. # But we know of no other shell where ac_cr would be empty at this
  5083. # point, so we can use a bashism as a fallback.
  5084. if test "x$ac_cr" = x; then
  5085. eval ac_cr=\$\'\\r\'
  5086. fi
  5087. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5088. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5089. ac_cs_awk_cr='\\r'
  5090. else
  5091. ac_cs_awk_cr=$ac_cr
  5092. fi
  5093. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5094. _ACEOF
  5095. {
  5096. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5097. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5098. echo "_ACEOF"
  5099. } >conf$$subs.sh ||
  5100. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5101. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5102. ac_delim='%!_!# '
  5103. for ac_last_try in false false false false false :; do
  5104. . ./conf$$subs.sh ||
  5105. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5106. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5107. if test $ac_delim_n = $ac_delim_num; then
  5108. break
  5109. elif $ac_last_try; then
  5110. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5111. else
  5112. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5113. fi
  5114. done
  5115. rm -f conf$$subs.sh
  5116. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5117. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5118. _ACEOF
  5119. sed -n '
  5120. h
  5121. s/^/S["/; s/!.*/"]=/
  5122. p
  5123. g
  5124. s/^[^!]*!//
  5125. :repl
  5126. t repl
  5127. s/'"$ac_delim"'$//
  5128. t delim
  5129. :nl
  5130. h
  5131. s/\(.\{148\}\)..*/\1/
  5132. t more1
  5133. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5134. p
  5135. n
  5136. b repl
  5137. :more1
  5138. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5139. p
  5140. g
  5141. s/.\{148\}//
  5142. t nl
  5143. :delim
  5144. h
  5145. s/\(.\{148\}\)..*/\1/
  5146. t more2
  5147. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5148. p
  5149. b
  5150. :more2
  5151. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5152. p
  5153. g
  5154. s/.\{148\}//
  5155. t delim
  5156. ' <conf$$subs.awk | sed '
  5157. /^[^""]/{
  5158. N
  5159. s/\n//
  5160. }
  5161. ' >>$CONFIG_STATUS || ac_write_fail=1
  5162. rm -f conf$$subs.awk
  5163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5164. _ACAWK
  5165. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5166. for (key in S) S_is_set[key] = 1
  5167. FS = ""
  5168. }
  5169. {
  5170. line = $ 0
  5171. nfields = split(line, field, "@")
  5172. substed = 0
  5173. len = length(field[1])
  5174. for (i = 2; i < nfields; i++) {
  5175. key = field[i]
  5176. keylen = length(key)
  5177. if (S_is_set[key]) {
  5178. value = S[key]
  5179. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5180. len += length(value) + length(field[++i])
  5181. substed = 1
  5182. } else
  5183. len += 1 + keylen
  5184. }
  5185. print line
  5186. }
  5187. _ACAWK
  5188. _ACEOF
  5189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5190. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5191. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5192. else
  5193. cat
  5194. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5195. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5196. _ACEOF
  5197. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5198. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5199. # trailing colons and then remove the whole line if VPATH becomes empty
  5200. # (actually we leave an empty line to preserve line numbers).
  5201. if test "x$srcdir" = x.; then
  5202. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5203. h
  5204. s///
  5205. s/^/:/
  5206. s/[ ]*$/:/
  5207. s/:\$(srcdir):/:/g
  5208. s/:\${srcdir}:/:/g
  5209. s/:@srcdir@:/:/g
  5210. s/^:*//
  5211. s/:*$//
  5212. x
  5213. s/\(=[ ]*\).*/\1/
  5214. G
  5215. s/\n//
  5216. s/^[^=]*=[ ]*$//
  5217. }'
  5218. fi
  5219. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5220. fi # test -n "$CONFIG_FILES"
  5221. eval set X " :F $CONFIG_FILES "
  5222. shift
  5223. for ac_tag
  5224. do
  5225. case $ac_tag in
  5226. :[FHLC]) ac_mode=$ac_tag; continue;;
  5227. esac
  5228. case $ac_mode$ac_tag in
  5229. :[FHL]*:*);;
  5230. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5231. :[FH]-) ac_tag=-:-;;
  5232. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5233. esac
  5234. ac_save_IFS=$IFS
  5235. IFS=:
  5236. set x $ac_tag
  5237. IFS=$ac_save_IFS
  5238. shift
  5239. ac_file=$1
  5240. shift
  5241. case $ac_mode in
  5242. :L) ac_source=$1;;
  5243. :[FH])
  5244. ac_file_inputs=
  5245. for ac_f
  5246. do
  5247. case $ac_f in
  5248. -) ac_f="$ac_tmp/stdin";;
  5249. *) # Look for the file first in the build tree, then in the source tree
  5250. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5251. # because $ac_f cannot contain `:'.
  5252. test -f "$ac_f" ||
  5253. case $ac_f in
  5254. [\\/$]*) false;;
  5255. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5256. esac ||
  5257. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5258. esac
  5259. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5260. as_fn_append ac_file_inputs " '$ac_f'"
  5261. done
  5262. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5263. # use $as_me), people would be surprised to read:
  5264. # /* config.h. Generated by config.status. */
  5265. configure_input='Generated from '`
  5266. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5267. `' by configure.'
  5268. if test x"$ac_file" != x-; then
  5269. configure_input="$ac_file. $configure_input"
  5270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5271. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  5272. fi
  5273. # Neutralize special characters interpreted by sed in replacement strings.
  5274. case $configure_input in #(
  5275. *\&* | *\|* | *\\* )
  5276. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  5277. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5278. *) ac_sed_conf_input=$configure_input;;
  5279. esac
  5280. case $ac_tag in
  5281. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5282. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5283. esac
  5284. ;;
  5285. esac
  5286. ac_dir=`$as_dirname -- "$ac_file" ||
  5287. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5288. X"$ac_file" : 'X\(//\)[^/]' \| \
  5289. X"$ac_file" : 'X\(//\)$' \| \
  5290. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5291. printf "%s\n" X"$ac_file" |
  5292. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5293. s//\1/
  5294. q
  5295. }
  5296. /^X\(\/\/\)[^/].*/{
  5297. s//\1/
  5298. q
  5299. }
  5300. /^X\(\/\/\)$/{
  5301. s//\1/
  5302. q
  5303. }
  5304. /^X\(\/\).*/{
  5305. s//\1/
  5306. q
  5307. }
  5308. s/.*/./; q'`
  5309. as_dir="$ac_dir"; as_fn_mkdir_p
  5310. ac_builddir=.
  5311. case "$ac_dir" in
  5312. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5313. *)
  5314. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  5315. # A ".." for each directory in $ac_dir_suffix.
  5316. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5317. case $ac_top_builddir_sub in
  5318. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5319. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5320. esac ;;
  5321. esac
  5322. ac_abs_top_builddir=$ac_pwd
  5323. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5324. # for backward compatibility:
  5325. ac_top_builddir=$ac_top_build_prefix
  5326. case $srcdir in
  5327. .) # We are building in place.
  5328. ac_srcdir=.
  5329. ac_top_srcdir=$ac_top_builddir_sub
  5330. ac_abs_top_srcdir=$ac_pwd ;;
  5331. [\\/]* | ?:[\\/]* ) # Absolute name.
  5332. ac_srcdir=$srcdir$ac_dir_suffix;
  5333. ac_top_srcdir=$srcdir
  5334. ac_abs_top_srcdir=$srcdir ;;
  5335. *) # Relative name.
  5336. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5337. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5338. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5339. esac
  5340. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5341. case $ac_mode in
  5342. :F)
  5343. #
  5344. # CONFIG_FILE
  5345. #
  5346. _ACEOF
  5347. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5348. # If the template does not know about datarootdir, expand it.
  5349. # FIXME: This hack should be removed a few years after 2.60.
  5350. ac_datarootdir_hack=; ac_datarootdir_seen=
  5351. ac_sed_dataroot='
  5352. /datarootdir/ {
  5353. p
  5354. q
  5355. }
  5356. /@datadir@/p
  5357. /@docdir@/p
  5358. /@infodir@/p
  5359. /@localedir@/p
  5360. /@mandir@/p'
  5361. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5362. *datarootdir*) ac_datarootdir_seen=yes;;
  5363. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5365. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5366. _ACEOF
  5367. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5368. ac_datarootdir_hack='
  5369. s&@datadir@&$datadir&g
  5370. s&@docdir@&$docdir&g
  5371. s&@infodir@&$infodir&g
  5372. s&@localedir@&$localedir&g
  5373. s&@mandir@&$mandir&g
  5374. s&\\\${datarootdir}&$datarootdir&g' ;;
  5375. esac
  5376. _ACEOF
  5377. # Neutralize VPATH when `$srcdir' = `.'.
  5378. # Shell code in configure.ac might set extrasub.
  5379. # FIXME: do we really want to maintain this feature?
  5380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5381. ac_sed_extra="$ac_vpsub
  5382. $extrasub
  5383. _ACEOF
  5384. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5385. :t
  5386. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5387. s|@configure_input@|$ac_sed_conf_input|;t t
  5388. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5389. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5390. s&@srcdir@&$ac_srcdir&;t t
  5391. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5392. s&@top_srcdir@&$ac_top_srcdir&;t t
  5393. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5394. s&@builddir@&$ac_builddir&;t t
  5395. s&@abs_builddir@&$ac_abs_builddir&;t t
  5396. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5397. $ac_datarootdir_hack
  5398. "
  5399. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5400. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5401. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5402. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5403. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5404. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5406. which seems to be undefined. Please make sure it is defined" >&5
  5407. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5408. which seems to be undefined. Please make sure it is defined" >&2;}
  5409. rm -f "$ac_tmp/stdin"
  5410. case $ac_file in
  5411. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5412. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5413. esac \
  5414. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5415. ;;
  5416. esac
  5417. done # for ac_tag
  5418. as_fn_exit 0
  5419. _ACEOF
  5420. ac_clean_files=$ac_clean_files_save
  5421. test $ac_write_fail = 0 ||
  5422. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5423. # configure is writing to config.log, and then calls config.status.
  5424. # config.status does its own redirection, appending to config.log.
  5425. # Unfortunately, on DOS this fails, as config.log is still kept open
  5426. # by configure, so config.status won't be able to write to it; its
  5427. # output is simply discarded. So we exec the FD to /dev/null,
  5428. # effectively closing config.log, so it can be properly (re)opened and
  5429. # appended to by config.status. When coming back to configure, we
  5430. # need to make the FD available again.
  5431. if test "$no_create" != yes; then
  5432. ac_cs_success=:
  5433. ac_config_status_args=
  5434. test "$silent" = yes &&
  5435. ac_config_status_args="$ac_config_status_args --quiet"
  5436. exec 5>/dev/null
  5437. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5438. exec 5>>config.log
  5439. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5440. # would make configure fail if this is the last instruction.
  5441. $ac_cs_success || as_fn_exit 1
  5442. fi
  5443. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5445. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5446. fi