configure 169 KB

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