configure 312 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.71.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. #
  14. # Copyright (c) Bryan Drewery
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. as_nop=:
  21. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  22. then :
  23. emulate sh
  24. NULLCMD=:
  25. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26. # is contrary to our usage. Disable this feature.
  27. alias -g '${1+"$@"}'='"$@"'
  28. setopt NO_GLOB_SUBST
  29. else $as_nop
  30. case `(set -o) 2>/dev/null` in #(
  31. *posix*) :
  32. set -o posix ;; #(
  33. *) :
  34. ;;
  35. esac
  36. fi
  37. # Reset variables that may have inherited troublesome values from
  38. # the environment.
  39. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  40. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  41. # side effect of setting IFS to empty, thus disabling word splitting.)
  42. # Quoting is to prevent editors from complaining about space-tab.
  43. as_nl='
  44. '
  45. export as_nl
  46. IFS=" "" $as_nl"
  47. PS1='$ '
  48. PS2='> '
  49. PS4='+ '
  50. # Ensure predictable behavior from utilities with locale-dependent output.
  51. LC_ALL=C
  52. export LC_ALL
  53. LANGUAGE=C
  54. export LANGUAGE
  55. # We cannot yet rely on "unset" to work, but we need these variables
  56. # to be unset--not just set to an empty or harmless value--now, to
  57. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  58. # also avoids known problems related to "unset" and subshell syntax
  59. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  60. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  61. do eval test \${$as_var+y} \
  62. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  63. done
  64. # Ensure that fds 0, 1, and 2 are open.
  65. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  66. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  67. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  68. # The user is always right.
  69. if ${PATH_SEPARATOR+false} :; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # Find who we are. Look in the path if we contain no directory separator.
  77. as_myself=
  78. case $0 in #((
  79. *[\\/]* ) as_myself=$0 ;;
  80. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  81. for as_dir in $PATH
  82. do
  83. IFS=$as_save_IFS
  84. case $as_dir in #(((
  85. '') as_dir=./ ;;
  86. */) ;;
  87. *) as_dir=$as_dir/ ;;
  88. esac
  89. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  90. done
  91. IFS=$as_save_IFS
  92. ;;
  93. esac
  94. # We did not find ourselves, most probably we were run as `sh COMMAND'
  95. # in which case we are not to be found in the path.
  96. if test "x$as_myself" = x; then
  97. as_myself=$0
  98. fi
  99. if test ! -f "$as_myself"; then
  100. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  101. exit 1
  102. fi
  103. # Use a proper internal environment variable to ensure we don't fall
  104. # into an infinite loop, continuously re-executing ourselves.
  105. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  106. _as_can_reexec=no; export _as_can_reexec;
  107. # We cannot yet assume a decent shell, so we have to provide a
  108. # neutralization value for shells without unset; and this also
  109. # works around shells that cannot unset nonexistent variables.
  110. # Preserve -v and -x to the replacement shell.
  111. BASH_ENV=/dev/null
  112. ENV=/dev/null
  113. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  114. case $- in # ((((
  115. *v*x* | *x*v* ) as_opts=-vx ;;
  116. *v* ) as_opts=-v ;;
  117. *x* ) as_opts=-x ;;
  118. * ) as_opts= ;;
  119. esac
  120. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  121. # Admittedly, this is quite paranoid, since all the known shells bail
  122. # out after a failed `exec'.
  123. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  124. exit 255
  125. fi
  126. # We don't want this to propagate to other subprocesses.
  127. { _as_can_reexec=; unset _as_can_reexec;}
  128. if test "x$CONFIG_SHELL" = x; then
  129. as_bourne_compatible="as_nop=:
  130. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  131. then :
  132. emulate sh
  133. NULLCMD=:
  134. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  135. # is contrary to our usage. Disable this feature.
  136. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  137. setopt NO_GLOB_SUBST
  138. else \$as_nop
  139. case \`(set -o) 2>/dev/null\` in #(
  140. *posix*) :
  141. set -o posix ;; #(
  142. *) :
  143. ;;
  144. esac
  145. fi
  146. "
  147. as_required="as_fn_return () { (exit \$1); }
  148. as_fn_success () { as_fn_return 0; }
  149. as_fn_failure () { as_fn_return 1; }
  150. as_fn_ret_success () { return 0; }
  151. as_fn_ret_failure () { return 1; }
  152. exitcode=0
  153. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  154. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  155. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  156. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  157. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  158. then :
  159. else \$as_nop
  160. exitcode=1; echo positional parameters were not saved.
  161. fi
  162. test x\$exitcode = x0 || exit 1
  163. blah=\$(echo \$(echo blah))
  164. test x\"\$blah\" = xblah || exit 1
  165. test -x / || exit 1"
  166. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  167. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  168. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  169. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null
  172. then :
  173. as_have_required=yes
  174. else $as_nop
  175. as_have_required=no
  176. fi
  177. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  178. then :
  179. else $as_nop
  180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  181. as_found=false
  182. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  183. do
  184. IFS=$as_save_IFS
  185. case $as_dir in #(((
  186. '') as_dir=./ ;;
  187. */) ;;
  188. *) as_dir=$as_dir/ ;;
  189. esac
  190. as_found=:
  191. case $as_dir in #(
  192. /*)
  193. for as_base in sh bash ksh sh5; do
  194. # Try only shells that exist, to save several forks.
  195. as_shell=$as_dir$as_base
  196. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  197. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  198. then :
  199. CONFIG_SHELL=$as_shell as_have_required=yes
  200. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  201. then :
  202. break 2
  203. fi
  204. fi
  205. done;;
  206. esac
  207. as_found=false
  208. done
  209. IFS=$as_save_IFS
  210. if $as_found
  211. then :
  212. else $as_nop
  213. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  214. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  215. then :
  216. CONFIG_SHELL=$SHELL as_have_required=yes
  217. fi
  218. fi
  219. if test "x$CONFIG_SHELL" != x
  220. then :
  221. export CONFIG_SHELL
  222. # We cannot yet assume a decent shell, so we have to provide a
  223. # neutralization value for shells without unset; and this also
  224. # works around shells that cannot unset nonexistent variables.
  225. # Preserve -v and -x to the replacement shell.
  226. BASH_ENV=/dev/null
  227. ENV=/dev/null
  228. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  229. case $- in # ((((
  230. *v*x* | *x*v* ) as_opts=-vx ;;
  231. *v* ) as_opts=-v ;;
  232. *x* ) as_opts=-x ;;
  233. * ) as_opts= ;;
  234. esac
  235. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  236. # Admittedly, this is quite paranoid, since all the known shells bail
  237. # out after a failed `exec'.
  238. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  239. exit 255
  240. fi
  241. if test x$as_have_required = xno
  242. then :
  243. printf "%s\n" "$0: This script requires a shell more modern than all"
  244. printf "%s\n" "$0: the shells that I found on your system."
  245. if test ${ZSH_VERSION+y} ; then
  246. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_nop
  291. # ---------
  292. # Do nothing but, unlike ":", preserve the value of $?.
  293. as_fn_nop ()
  294. {
  295. return $?
  296. }
  297. as_nop=as_fn_nop
  298. # as_fn_mkdir_p
  299. # -------------
  300. # Create "$as_dir" as a directory, including parents if necessary.
  301. as_fn_mkdir_p ()
  302. {
  303. case $as_dir in #(
  304. -*) as_dir=./$as_dir;;
  305. esac
  306. test -d "$as_dir" || eval $as_mkdir_p || {
  307. as_dirs=
  308. while :; do
  309. case $as_dir in #(
  310. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  311. *) as_qdir=$as_dir;;
  312. esac
  313. as_dirs="'$as_qdir' $as_dirs"
  314. as_dir=`$as_dirname -- "$as_dir" ||
  315. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  316. X"$as_dir" : 'X\(//\)[^/]' \| \
  317. X"$as_dir" : 'X\(//\)$' \| \
  318. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  319. printf "%s\n" X"$as_dir" |
  320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)[^/].*/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)$/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\).*/{
  333. s//\1/
  334. q
  335. }
  336. s/.*/./; q'`
  337. test -d "$as_dir" && break
  338. done
  339. test -z "$as_dirs" || eval "mkdir $as_dirs"
  340. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  341. } # as_fn_mkdir_p
  342. # as_fn_executable_p FILE
  343. # -----------------------
  344. # Test if FILE is an executable regular file.
  345. as_fn_executable_p ()
  346. {
  347. test -f "$1" && test -x "$1"
  348. } # as_fn_executable_p
  349. # as_fn_append VAR VALUE
  350. # ----------------------
  351. # Append the text in VALUE to the end of the definition contained in VAR. Take
  352. # advantage of any shell optimizations that allow amortized linear growth over
  353. # repeated appends, instead of the typical quadratic growth present in naive
  354. # implementations.
  355. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  356. then :
  357. eval 'as_fn_append ()
  358. {
  359. eval $1+=\$2
  360. }'
  361. else $as_nop
  362. as_fn_append ()
  363. {
  364. eval $1=\$$1\$2
  365. }
  366. fi # as_fn_append
  367. # as_fn_arith ARG...
  368. # ------------------
  369. # Perform arithmetic evaluation on the ARGs, and store the result in the
  370. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  371. # must be portable across $(()) and expr.
  372. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  373. then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else $as_nop
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_nop
  385. # ---------
  386. # Do nothing but, unlike ":", preserve the value of $?.
  387. as_fn_nop ()
  388. {
  389. return $?
  390. }
  391. as_nop=as_fn_nop
  392. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  393. # ----------------------------------------
  394. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  395. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  396. # script with STATUS, using 1 if that was 0.
  397. as_fn_error ()
  398. {
  399. as_status=$1; test $as_status -eq 0 && as_status=1
  400. if test "$4"; then
  401. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  403. fi
  404. printf "%s\n" "$as_me: error: $2" >&2
  405. as_fn_exit $as_status
  406. } # as_fn_error
  407. if expr a : '\(a\)' >/dev/null 2>&1 &&
  408. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  409. as_expr=expr
  410. else
  411. as_expr=false
  412. fi
  413. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  414. as_basename=basename
  415. else
  416. as_basename=false
  417. fi
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. as_me=`$as_basename -- "$0" ||
  424. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  425. X"$0" : 'X\(//\)$' \| \
  426. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  427. printf "%s\n" X/"$0" |
  428. sed '/^.*\/\([^/][^/]*\)\/*$/{
  429. s//\1/
  430. q
  431. }
  432. /^X\/\(\/\/\)$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\).*/{
  437. s//\1/
  438. q
  439. }
  440. s/.*/./; q'`
  441. # Avoid depending upon Character Ranges.
  442. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  443. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  444. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  445. as_cr_digits='0123456789'
  446. as_cr_alnum=$as_cr_Letters$as_cr_digits
  447. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  448. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  449. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  450. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  451. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  452. sed -n '
  453. p
  454. /[$]LINENO/=
  455. ' <$as_myself |
  456. sed '
  457. s/[$]LINENO.*/&-/
  458. t lineno
  459. b
  460. :lineno
  461. N
  462. :loop
  463. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  464. t loop
  465. s/-\n.*//
  466. ' >$as_me.lineno &&
  467. chmod +x "$as_me.lineno" ||
  468. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  469. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  470. # already done that, so ensure we don't try to do so again and fall
  471. # in an infinite loop. This has already happened in practice.
  472. _as_can_reexec=no; export _as_can_reexec
  473. # Don't try to exec as it changes $[0], causing all sort of problems
  474. # (the dirname of $[0] is not the place where we might find the
  475. # original and so on. Autoconf is especially sensitive to this).
  476. . "./$as_me.lineno"
  477. # Exit status is that of the last command.
  478. exit
  479. }
  480. # Determine whether it's possible to make 'echo' print without a newline.
  481. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  482. # for compatibility with existing Makefiles.
  483. ECHO_C= ECHO_N= ECHO_T=
  484. case `echo -n x` in #(((((
  485. -n*)
  486. case `echo 'xy\c'` in
  487. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  488. xy) ECHO_C='\c';;
  489. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  490. ECHO_T=' ';;
  491. esac;;
  492. *)
  493. ECHO_N='-n';;
  494. esac
  495. # For backward compatibility with old third-party macros, we provide
  496. # the shell variables $as_echo and $as_echo_n. New code should use
  497. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  498. as_echo='printf %s\n'
  499. as_echo_n='printf %s'
  500. rm -f conf$$ conf$$.exe conf$$.file
  501. if test -d conf$$.dir; then
  502. rm -f conf$$.dir/conf$$.file
  503. else
  504. rm -f conf$$.dir
  505. mkdir conf$$.dir 2>/dev/null
  506. fi
  507. if (echo >conf$$.file) 2>/dev/null; then
  508. if ln -s conf$$.file conf$$ 2>/dev/null; then
  509. as_ln_s='ln -s'
  510. # ... but there are two gotchas:
  511. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  512. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  513. # In both cases, we have to default to `cp -pR'.
  514. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  515. as_ln_s='cp -pR'
  516. elif ln conf$$.file conf$$ 2>/dev/null; then
  517. as_ln_s=ln
  518. else
  519. as_ln_s='cp -pR'
  520. fi
  521. else
  522. as_ln_s='cp -pR'
  523. fi
  524. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  525. rmdir conf$$.dir 2>/dev/null
  526. if mkdir -p . 2>/dev/null; then
  527. as_mkdir_p='mkdir -p "$as_dir"'
  528. else
  529. test -d ./-p && rmdir ./-p
  530. as_mkdir_p=false
  531. fi
  532. as_test_x='test -x'
  533. as_executable_p=as_fn_executable_p
  534. # Sed expression to map a string onto a valid CPP name.
  535. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  536. # Sed expression to map a string onto a valid variable name.
  537. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  538. test -n "$DJDIR" || exec 7<&0 </dev/null
  539. exec 6>&1
  540. # Name of the host.
  541. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  542. # so uname gets run too.
  543. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  544. #
  545. # Initializations.
  546. #
  547. ac_default_prefix=/usr/local
  548. ac_clean_files=
  549. ac_config_libobj_dir=.
  550. LIBOBJS=
  551. cross_compiling=no
  552. subdirs=
  553. MFLAGS=
  554. MAKEFLAGS=
  555. # Identity of this package.
  556. PACKAGE_NAME=''
  557. PACKAGE_TARNAME=''
  558. PACKAGE_VERSION=''
  559. PACKAGE_STRING=''
  560. PACKAGE_BUGREPORT=''
  561. PACKAGE_URL=''
  562. ac_unique_file="wraith"
  563. ac_unique_file="src/eggdrop.h"
  564. # Factoring default headers for most tests.
  565. ac_includes_default="\
  566. #include <stddef.h>
  567. #ifdef HAVE_STDIO_H
  568. # include <stdio.h>
  569. #endif
  570. #ifdef HAVE_STDLIB_H
  571. # include <stdlib.h>
  572. #endif
  573. #ifdef HAVE_STRING_H
  574. # include <string.h>
  575. #endif
  576. #ifdef HAVE_INTTYPES_H
  577. # include <inttypes.h>
  578. #endif
  579. #ifdef HAVE_STDINT_H
  580. # include <stdint.h>
  581. #endif
  582. #ifdef HAVE_STRINGS_H
  583. # include <strings.h>
  584. #endif
  585. #ifdef HAVE_SYS_TYPES_H
  586. # include <sys/types.h>
  587. #endif
  588. #ifdef HAVE_SYS_STAT_H
  589. # include <sys/stat.h>
  590. #endif
  591. #ifdef HAVE_UNISTD_H
  592. # include <unistd.h>
  593. #endif"
  594. ac_header_cxx_list=
  595. ac_func_cxx_list=
  596. enable_option_checking=no
  597. ac_subst_vars='LTLIBOBJS
  598. subdirs
  599. NUMVER
  600. VERSION
  601. LIBOBJS
  602. host_os
  603. host_vendor
  604. host_cpu
  605. host
  606. build_os
  607. build_vendor
  608. build_cpu
  609. build
  610. EGREP
  611. GREP
  612. TCL_LIBS
  613. TCL_REQS
  614. DEFAULT_MAKE
  615. TCLINCFN
  616. TCL_INCLUDES
  617. TCLLIBFN
  618. TCLLIB
  619. SSL_LIBS
  620. SSL_INCLUDES
  621. SSL_LIBDIR
  622. LIBELF_LIB
  623. LIBELF_BUNDLED
  624. DEBLDFLAGS
  625. DEBCXXFLAGS
  626. STATIC
  627. BUILDARCH
  628. BUILDOS
  629. UNAME
  630. DIFF
  631. STRIP
  632. OBJCOPY
  633. BASENAME
  634. AWK
  635. HEAD_1
  636. SED
  637. SET_MAKE
  638. GCC4DEB
  639. GCC3DEB
  640. GCC3_CXXFLAGS
  641. GCC3_CFLAGS
  642. CCDEPMODE
  643. HAVE_CXX14
  644. HAVE_CXX11
  645. CXXCPP
  646. CC
  647. OBJEXT
  648. EXEEXT
  649. ac_ct_CXX
  650. CPPFLAGS
  651. LDFLAGS
  652. CXXFLAGS
  653. CXX
  654. egg_ac_parameters
  655. target_alias
  656. host_alias
  657. build_alias
  658. LIBS
  659. ECHO_T
  660. ECHO_N
  661. ECHO_C
  662. DEFS
  663. mandir
  664. localedir
  665. libdir
  666. psdir
  667. pdfdir
  668. dvidir
  669. htmldir
  670. infodir
  671. docdir
  672. oldincludedir
  673. includedir
  674. runstatedir
  675. localstatedir
  676. sharedstatedir
  677. sysconfdir
  678. datadir
  679. datarootdir
  680. libexecdir
  681. sbindir
  682. bindir
  683. program_transform_name
  684. prefix
  685. exec_prefix
  686. PACKAGE_URL
  687. PACKAGE_BUGREPORT
  688. PACKAGE_STRING
  689. PACKAGE_VERSION
  690. PACKAGE_TARNAME
  691. PACKAGE_NAME
  692. PATH_SEPARATOR
  693. SHELL'
  694. ac_subst_files=''
  695. ac_user_opts='
  696. enable_option_checking
  697. enable_ipv6
  698. with_openssl
  699. with_tcllib
  700. with_tclinc
  701. enable_script_tcl
  702. '
  703. ac_precious_vars='build_alias
  704. host_alias
  705. target_alias
  706. CXX
  707. CXXFLAGS
  708. LDFLAGS
  709. LIBS
  710. CPPFLAGS
  711. CCC
  712. CXXCPP'
  713. ac_subdirs_all='lib/bdlib
  714. lib/libelf'
  715. # Initialize some variables set by options.
  716. ac_init_help=
  717. ac_init_version=false
  718. ac_unrecognized_opts=
  719. ac_unrecognized_sep=
  720. # The variables have the same names as the options, with
  721. # dashes changed to underlines.
  722. cache_file=/dev/null
  723. exec_prefix=NONE
  724. no_create=
  725. no_recursion=
  726. prefix=NONE
  727. program_prefix=NONE
  728. program_suffix=NONE
  729. program_transform_name=s,x,x,
  730. silent=
  731. site=
  732. srcdir=
  733. verbose=
  734. x_includes=NONE
  735. x_libraries=NONE
  736. # Installation directory options.
  737. # These are left unexpanded so users can "make install exec_prefix=/foo"
  738. # and all the variables that are supposed to be based on exec_prefix
  739. # by default will actually change.
  740. # Use braces instead of parens because sh, perl, etc. also accept them.
  741. # (The list follows the same order as the GNU Coding Standards.)
  742. bindir='${exec_prefix}/bin'
  743. sbindir='${exec_prefix}/sbin'
  744. libexecdir='${exec_prefix}/libexec'
  745. datarootdir='${prefix}/share'
  746. datadir='${datarootdir}'
  747. sysconfdir='${prefix}/etc'
  748. sharedstatedir='${prefix}/com'
  749. localstatedir='${prefix}/var'
  750. runstatedir='${localstatedir}/run'
  751. includedir='${prefix}/include'
  752. oldincludedir='/usr/include'
  753. docdir='${datarootdir}/doc/${PACKAGE}'
  754. infodir='${datarootdir}/info'
  755. htmldir='${docdir}'
  756. dvidir='${docdir}'
  757. pdfdir='${docdir}'
  758. psdir='${docdir}'
  759. libdir='${exec_prefix}/lib'
  760. localedir='${datarootdir}/locale'
  761. mandir='${datarootdir}/man'
  762. ac_prev=
  763. ac_dashdash=
  764. for ac_option
  765. do
  766. # If the previous option needs an argument, assign it.
  767. if test -n "$ac_prev"; then
  768. eval $ac_prev=\$ac_option
  769. ac_prev=
  770. continue
  771. fi
  772. case $ac_option in
  773. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  774. *=) ac_optarg= ;;
  775. *) ac_optarg=yes ;;
  776. esac
  777. case $ac_dashdash$ac_option in
  778. --)
  779. ac_dashdash=yes ;;
  780. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  781. ac_prev=bindir ;;
  782. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  783. bindir=$ac_optarg ;;
  784. -build | --build | --buil | --bui | --bu)
  785. ac_prev=build_alias ;;
  786. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  787. build_alias=$ac_optarg ;;
  788. -cache-file | --cache-file | --cache-fil | --cache-fi \
  789. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  790. ac_prev=cache_file ;;
  791. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  792. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  793. cache_file=$ac_optarg ;;
  794. --config-cache | -C)
  795. cache_file=config.cache ;;
  796. -datadir | --datadir | --datadi | --datad)
  797. ac_prev=datadir ;;
  798. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  799. datadir=$ac_optarg ;;
  800. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  801. | --dataroo | --dataro | --datar)
  802. ac_prev=datarootdir ;;
  803. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  804. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  805. datarootdir=$ac_optarg ;;
  806. -disable-* | --disable-*)
  807. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  808. # Reject names that are not valid shell variable names.
  809. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  810. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  811. ac_useropt_orig=$ac_useropt
  812. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  813. case $ac_user_opts in
  814. *"
  815. "enable_$ac_useropt"
  816. "*) ;;
  817. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  818. ac_unrecognized_sep=', ';;
  819. esac
  820. eval enable_$ac_useropt=no ;;
  821. -docdir | --docdir | --docdi | --doc | --do)
  822. ac_prev=docdir ;;
  823. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  824. docdir=$ac_optarg ;;
  825. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  826. ac_prev=dvidir ;;
  827. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  828. dvidir=$ac_optarg ;;
  829. -enable-* | --enable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=\$ac_optarg ;;
  844. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  845. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  846. | --exec | --exe | --ex)
  847. ac_prev=exec_prefix ;;
  848. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  849. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  850. | --exec=* | --exe=* | --ex=*)
  851. exec_prefix=$ac_optarg ;;
  852. -gas | --gas | --ga | --g)
  853. # Obsolete; use --with-gas.
  854. with_gas=yes ;;
  855. -help | --help | --hel | --he | -h)
  856. ac_init_help=long ;;
  857. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  858. ac_init_help=recursive ;;
  859. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  860. ac_init_help=short ;;
  861. -host | --host | --hos | --ho)
  862. ac_prev=host_alias ;;
  863. -host=* | --host=* | --hos=* | --ho=*)
  864. host_alias=$ac_optarg ;;
  865. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  866. ac_prev=htmldir ;;
  867. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  868. | --ht=*)
  869. htmldir=$ac_optarg ;;
  870. -includedir | --includedir | --includedi | --included | --include \
  871. | --includ | --inclu | --incl | --inc)
  872. ac_prev=includedir ;;
  873. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  874. | --includ=* | --inclu=* | --incl=* | --inc=*)
  875. includedir=$ac_optarg ;;
  876. -infodir | --infodir | --infodi | --infod | --info | --inf)
  877. ac_prev=infodir ;;
  878. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  879. infodir=$ac_optarg ;;
  880. -libdir | --libdir | --libdi | --libd)
  881. ac_prev=libdir ;;
  882. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  883. libdir=$ac_optarg ;;
  884. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  885. | --libexe | --libex | --libe)
  886. ac_prev=libexecdir ;;
  887. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  888. | --libexe=* | --libex=* | --libe=*)
  889. libexecdir=$ac_optarg ;;
  890. -localedir | --localedir | --localedi | --localed | --locale)
  891. ac_prev=localedir ;;
  892. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  893. localedir=$ac_optarg ;;
  894. -localstatedir | --localstatedir | --localstatedi | --localstated \
  895. | --localstate | --localstat | --localsta | --localst | --locals)
  896. ac_prev=localstatedir ;;
  897. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  898. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  899. localstatedir=$ac_optarg ;;
  900. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  901. ac_prev=mandir ;;
  902. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  903. mandir=$ac_optarg ;;
  904. -nfp | --nfp | --nf)
  905. # Obsolete; use --without-fp.
  906. with_fp=no ;;
  907. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  908. | --no-cr | --no-c | -n)
  909. no_create=yes ;;
  910. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  911. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  912. no_recursion=yes ;;
  913. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  914. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  915. | --oldin | --oldi | --old | --ol | --o)
  916. ac_prev=oldincludedir ;;
  917. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  918. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  919. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  920. oldincludedir=$ac_optarg ;;
  921. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  922. ac_prev=prefix ;;
  923. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  924. prefix=$ac_optarg ;;
  925. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  926. | --program-pre | --program-pr | --program-p)
  927. ac_prev=program_prefix ;;
  928. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  929. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  930. program_prefix=$ac_optarg ;;
  931. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  932. | --program-suf | --program-su | --program-s)
  933. ac_prev=program_suffix ;;
  934. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  935. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  936. program_suffix=$ac_optarg ;;
  937. -program-transform-name | --program-transform-name \
  938. | --program-transform-nam | --program-transform-na \
  939. | --program-transform-n | --program-transform- \
  940. | --program-transform | --program-transfor \
  941. | --program-transfo | --program-transf \
  942. | --program-trans | --program-tran \
  943. | --progr-tra | --program-tr | --program-t)
  944. ac_prev=program_transform_name ;;
  945. -program-transform-name=* | --program-transform-name=* \
  946. | --program-transform-nam=* | --program-transform-na=* \
  947. | --program-transform-n=* | --program-transform-=* \
  948. | --program-transform=* | --program-transfor=* \
  949. | --program-transfo=* | --program-transf=* \
  950. | --program-trans=* | --program-tran=* \
  951. | --progr-tra=* | --program-tr=* | --program-t=*)
  952. program_transform_name=$ac_optarg ;;
  953. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  954. ac_prev=pdfdir ;;
  955. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  956. pdfdir=$ac_optarg ;;
  957. -psdir | --psdir | --psdi | --psd | --ps)
  958. ac_prev=psdir ;;
  959. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  960. psdir=$ac_optarg ;;
  961. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  962. | -silent | --silent | --silen | --sile | --sil)
  963. silent=yes ;;
  964. -runstatedir | --runstatedir | --runstatedi | --runstated \
  965. | --runstate | --runstat | --runsta | --runst | --runs \
  966. | --run | --ru | --r)
  967. ac_prev=runstatedir ;;
  968. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  969. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  970. | --run=* | --ru=* | --r=*)
  971. runstatedir=$ac_optarg ;;
  972. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  973. ac_prev=sbindir ;;
  974. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  975. | --sbi=* | --sb=*)
  976. sbindir=$ac_optarg ;;
  977. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  978. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  979. | --sharedst | --shareds | --shared | --share | --shar \
  980. | --sha | --sh)
  981. ac_prev=sharedstatedir ;;
  982. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  983. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  984. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  985. | --sha=* | --sh=*)
  986. sharedstatedir=$ac_optarg ;;
  987. -site | --site | --sit)
  988. ac_prev=site ;;
  989. -site=* | --site=* | --sit=*)
  990. site=$ac_optarg ;;
  991. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  992. ac_prev=srcdir ;;
  993. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  994. srcdir=$ac_optarg ;;
  995. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  996. | --syscon | --sysco | --sysc | --sys | --sy)
  997. ac_prev=sysconfdir ;;
  998. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  999. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1000. sysconfdir=$ac_optarg ;;
  1001. -target | --target | --targe | --targ | --tar | --ta | --t)
  1002. ac_prev=target_alias ;;
  1003. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1004. target_alias=$ac_optarg ;;
  1005. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1006. verbose=yes ;;
  1007. -version | --version | --versio | --versi | --vers | -V)
  1008. ac_init_version=: ;;
  1009. -with-* | --with-*)
  1010. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1011. # Reject names that are not valid shell variable names.
  1012. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1013. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1014. ac_useropt_orig=$ac_useropt
  1015. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1016. case $ac_user_opts in
  1017. *"
  1018. "with_$ac_useropt"
  1019. "*) ;;
  1020. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1021. ac_unrecognized_sep=', ';;
  1022. esac
  1023. eval with_$ac_useropt=\$ac_optarg ;;
  1024. -without-* | --without-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=no ;;
  1039. --x)
  1040. # Obsolete; use --with-x.
  1041. with_x=yes ;;
  1042. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1043. | --x-incl | --x-inc | --x-in | --x-i)
  1044. ac_prev=x_includes ;;
  1045. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1046. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1047. x_includes=$ac_optarg ;;
  1048. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1049. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1050. ac_prev=x_libraries ;;
  1051. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1052. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1053. x_libraries=$ac_optarg ;;
  1054. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1055. Try \`$0 --help' for more information"
  1056. ;;
  1057. *=*)
  1058. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1059. # Reject names that are not valid shell variable names.
  1060. case $ac_envvar in #(
  1061. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1062. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1063. esac
  1064. eval $ac_envvar=\$ac_optarg
  1065. export $ac_envvar ;;
  1066. *)
  1067. # FIXME: should be removed in autoconf 3.0.
  1068. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1069. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1070. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1071. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1072. ;;
  1073. esac
  1074. done
  1075. if test -n "$ac_prev"; then
  1076. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1077. as_fn_error $? "missing argument to $ac_option"
  1078. fi
  1079. if test -n "$ac_unrecognized_opts"; then
  1080. case $enable_option_checking in
  1081. no) ;;
  1082. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1083. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1084. esac
  1085. fi
  1086. # Check all directory arguments for consistency.
  1087. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1088. datadir sysconfdir sharedstatedir localstatedir includedir \
  1089. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1090. libdir localedir mandir runstatedir
  1091. do
  1092. eval ac_val=\$$ac_var
  1093. # Remove trailing slashes.
  1094. case $ac_val in
  1095. */ )
  1096. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1097. eval $ac_var=\$ac_val;;
  1098. esac
  1099. # Be sure to have absolute directory names.
  1100. case $ac_val in
  1101. [\\/$]* | ?:[\\/]* ) continue;;
  1102. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1103. esac
  1104. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1105. done
  1106. # There might be people who depend on the old broken behavior: `$host'
  1107. # used to hold the argument of --host etc.
  1108. # FIXME: To remove some day.
  1109. build=$build_alias
  1110. host=$host_alias
  1111. target=$target_alias
  1112. # FIXME: To remove some day.
  1113. if test "x$host_alias" != x; then
  1114. if test "x$build_alias" = x; then
  1115. cross_compiling=maybe
  1116. elif test "x$build_alias" != "x$host_alias"; then
  1117. cross_compiling=yes
  1118. fi
  1119. fi
  1120. ac_tool_prefix=
  1121. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1122. test "$silent" = yes && exec 6>/dev/null
  1123. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1124. ac_ls_di=`ls -di .` &&
  1125. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1126. as_fn_error $? "working directory cannot be determined"
  1127. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1128. as_fn_error $? "pwd does not report name of working directory"
  1129. # Find the source files, if location was not specified.
  1130. if test -z "$srcdir"; then
  1131. ac_srcdir_defaulted=yes
  1132. # Try the directory containing this script, then the parent directory.
  1133. ac_confdir=`$as_dirname -- "$as_myself" ||
  1134. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1135. X"$as_myself" : 'X\(//\)[^/]' \| \
  1136. X"$as_myself" : 'X\(//\)$' \| \
  1137. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1138. printf "%s\n" X"$as_myself" |
  1139. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1140. s//\1/
  1141. q
  1142. }
  1143. /^X\(\/\/\)[^/].*/{
  1144. s//\1/
  1145. q
  1146. }
  1147. /^X\(\/\/\)$/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\).*/{
  1152. s//\1/
  1153. q
  1154. }
  1155. s/.*/./; q'`
  1156. srcdir=$ac_confdir
  1157. if test ! -r "$srcdir/$ac_unique_file"; then
  1158. srcdir=..
  1159. fi
  1160. else
  1161. ac_srcdir_defaulted=no
  1162. fi
  1163. if test ! -r "$srcdir/$ac_unique_file"; then
  1164. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1165. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1166. fi
  1167. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1168. ac_abs_confdir=`(
  1169. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1170. pwd)`
  1171. # When building in place, set srcdir=.
  1172. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1173. srcdir=.
  1174. fi
  1175. # Remove unnecessary trailing slashes from srcdir.
  1176. # Double slashes in file names in object file debugging info
  1177. # mess up M-x gdb in Emacs.
  1178. case $srcdir in
  1179. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1180. esac
  1181. for ac_var in $ac_precious_vars; do
  1182. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1183. eval ac_env_${ac_var}_value=\$${ac_var}
  1184. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1185. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1186. done
  1187. #
  1188. # Report the --help message.
  1189. #
  1190. if test "$ac_init_help" = "long"; then
  1191. # Omit some internal or obsolete options to make the list less imposing.
  1192. # This message is too long to be a string in the A/UX 3.1 sh.
  1193. cat <<_ACEOF
  1194. \`configure' configures this package to adapt to many kinds of systems.
  1195. Usage: $0 [OPTION]... [VAR=VALUE]...
  1196. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1197. VAR=VALUE. See below for descriptions of some of the useful variables.
  1198. Defaults for the options are specified in brackets.
  1199. Configuration:
  1200. -h, --help display this help and exit
  1201. --help=short display options specific to this package
  1202. --help=recursive display the short help of all the included packages
  1203. -V, --version display version information and exit
  1204. -q, --quiet, --silent do not print \`checking ...' messages
  1205. --cache-file=FILE cache test results in FILE [disabled]
  1206. -C, --config-cache alias for \`--cache-file=config.cache'
  1207. -n, --no-create do not create output files
  1208. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1209. Installation directories:
  1210. --prefix=PREFIX install architecture-independent files in PREFIX
  1211. [$ac_default_prefix]
  1212. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1213. [PREFIX]
  1214. By default, \`make install' will install all the files in
  1215. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1216. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1217. for instance \`--prefix=\$HOME'.
  1218. For better control, use the options below.
  1219. Fine tuning of the installation directories:
  1220. --bindir=DIR user executables [EPREFIX/bin]
  1221. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1222. --libexecdir=DIR program executables [EPREFIX/libexec]
  1223. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1224. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1225. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1226. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1227. --libdir=DIR object code libraries [EPREFIX/lib]
  1228. --includedir=DIR C header files [PREFIX/include]
  1229. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1230. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1231. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1232. --infodir=DIR info documentation [DATAROOTDIR/info]
  1233. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1234. --mandir=DIR man documentation [DATAROOTDIR/man]
  1235. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1236. --htmldir=DIR html documentation [DOCDIR]
  1237. --dvidir=DIR dvi documentation [DOCDIR]
  1238. --pdfdir=DIR pdf documentation [DOCDIR]
  1239. --psdir=DIR ps documentation [DOCDIR]
  1240. _ACEOF
  1241. cat <<\_ACEOF
  1242. System types:
  1243. --build=BUILD configure for building on BUILD [guessed]
  1244. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. cat <<\_ACEOF
  1249. Optional Features:
  1250. --disable-option-checking ignore unrecognized --enable/--with options
  1251. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1252. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1253. --disable-ipv6 disable IPv6 support
  1254. --disable-script-tcl disable TCL Script support
  1255. Optional Packages:
  1256. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1257. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1258. --with-openssl=PATH Path to OpenSSL
  1259. --with-openssl=PATH Path to OpenSSL Lib
  1260. --with-tcllib=PATH full path to Tcl library
  1261. --with-tclinc=PATH full path to Tcl header
  1262. Some influential environment variables:
  1263. CXX C++ compiler command
  1264. CXXFLAGS C++ compiler flags
  1265. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1266. nonstandard directory <lib dir>
  1267. LIBS libraries to pass to the linker, e.g. -l<library>
  1268. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1269. you have headers in a nonstandard directory <include dir>
  1270. CXXCPP C++ preprocessor
  1271. Use these variables to override the choices made by `configure' or to help
  1272. it to find libraries and programs with nonstandard names/locations.
  1273. Report bugs to the package provider.
  1274. _ACEOF
  1275. ac_status=$?
  1276. fi
  1277. if test "$ac_init_help" = "recursive"; then
  1278. # If there are subdirs, report their specific --help.
  1279. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1280. test -d "$ac_dir" ||
  1281. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1282. continue
  1283. ac_builddir=.
  1284. case "$ac_dir" in
  1285. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1286. *)
  1287. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1288. # A ".." for each directory in $ac_dir_suffix.
  1289. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1290. case $ac_top_builddir_sub in
  1291. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1292. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1293. esac ;;
  1294. esac
  1295. ac_abs_top_builddir=$ac_pwd
  1296. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1297. # for backward compatibility:
  1298. ac_top_builddir=$ac_top_build_prefix
  1299. case $srcdir in
  1300. .) # We are building in place.
  1301. ac_srcdir=.
  1302. ac_top_srcdir=$ac_top_builddir_sub
  1303. ac_abs_top_srcdir=$ac_pwd ;;
  1304. [\\/]* | ?:[\\/]* ) # Absolute name.
  1305. ac_srcdir=$srcdir$ac_dir_suffix;
  1306. ac_top_srcdir=$srcdir
  1307. ac_abs_top_srcdir=$srcdir ;;
  1308. *) # Relative name.
  1309. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1310. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1311. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1312. esac
  1313. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1314. cd "$ac_dir" || { ac_status=$?; continue; }
  1315. # Check for configure.gnu first; this name is used for a wrapper for
  1316. # Metaconfig's "Configure" on case-insensitive file systems.
  1317. if test -f "$ac_srcdir/configure.gnu"; then
  1318. echo &&
  1319. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1320. elif test -f "$ac_srcdir/configure"; then
  1321. echo &&
  1322. $SHELL "$ac_srcdir/configure" --help=recursive
  1323. else
  1324. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1325. fi || ac_status=$?
  1326. cd "$ac_pwd" || { ac_status=$?; break; }
  1327. done
  1328. fi
  1329. test -n "$ac_init_help" && exit $ac_status
  1330. if $ac_init_version; then
  1331. cat <<\_ACEOF
  1332. configure
  1333. generated by GNU Autoconf 2.71
  1334. Copyright (C) 2021 Free Software Foundation, Inc.
  1335. This configure script is free software; the Free Software Foundation
  1336. gives unlimited permission to copy, distribute and modify it.
  1337. Copyright (c) Bryan Drewery
  1338. _ACEOF
  1339. exit
  1340. fi
  1341. ## ------------------------ ##
  1342. ## Autoconf initialization. ##
  1343. ## ------------------------ ##
  1344. # ac_fn_cxx_try_compile LINENO
  1345. # ----------------------------
  1346. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1347. ac_fn_cxx_try_compile ()
  1348. {
  1349. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1350. rm -f conftest.$ac_objext conftest.beam
  1351. if { { ac_try="$ac_compile"
  1352. case "(($ac_try" in
  1353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1354. *) ac_try_echo=$ac_try;;
  1355. esac
  1356. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1357. printf "%s\n" "$ac_try_echo"; } >&5
  1358. (eval "$ac_compile") 2>conftest.err
  1359. ac_status=$?
  1360. if test -s conftest.err; then
  1361. grep -v '^ *+' conftest.err >conftest.er1
  1362. cat conftest.er1 >&5
  1363. mv -f conftest.er1 conftest.err
  1364. fi
  1365. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1366. test $ac_status = 0; } && {
  1367. test -z "$ac_cxx_werror_flag" ||
  1368. test ! -s conftest.err
  1369. } && test -s conftest.$ac_objext
  1370. then :
  1371. ac_retval=0
  1372. else $as_nop
  1373. printf "%s\n" "$as_me: failed program was:" >&5
  1374. sed 's/^/| /' conftest.$ac_ext >&5
  1375. ac_retval=1
  1376. fi
  1377. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1378. as_fn_set_status $ac_retval
  1379. } # ac_fn_cxx_try_compile
  1380. # ac_fn_cxx_try_cpp LINENO
  1381. # ------------------------
  1382. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1383. ac_fn_cxx_try_cpp ()
  1384. {
  1385. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1386. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1387. case "(($ac_try" in
  1388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1389. *) ac_try_echo=$ac_try;;
  1390. esac
  1391. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1392. printf "%s\n" "$ac_try_echo"; } >&5
  1393. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1394. ac_status=$?
  1395. if test -s conftest.err; then
  1396. grep -v '^ *+' conftest.err >conftest.er1
  1397. cat conftest.er1 >&5
  1398. mv -f conftest.er1 conftest.err
  1399. fi
  1400. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1401. test $ac_status = 0; } > conftest.i && {
  1402. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1403. test ! -s conftest.err
  1404. }
  1405. then :
  1406. ac_retval=0
  1407. else $as_nop
  1408. printf "%s\n" "$as_me: failed program was:" >&5
  1409. sed 's/^/| /' conftest.$ac_ext >&5
  1410. ac_retval=1
  1411. fi
  1412. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1413. as_fn_set_status $ac_retval
  1414. } # ac_fn_cxx_try_cpp
  1415. # ac_fn_cxx_try_link LINENO
  1416. # -------------------------
  1417. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1418. ac_fn_cxx_try_link ()
  1419. {
  1420. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1421. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1422. if { { ac_try="$ac_link"
  1423. case "(($ac_try" in
  1424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1425. *) ac_try_echo=$ac_try;;
  1426. esac
  1427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1428. printf "%s\n" "$ac_try_echo"; } >&5
  1429. (eval "$ac_link") 2>conftest.err
  1430. ac_status=$?
  1431. if test -s conftest.err; then
  1432. grep -v '^ *+' conftest.err >conftest.er1
  1433. cat conftest.er1 >&5
  1434. mv -f conftest.er1 conftest.err
  1435. fi
  1436. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1437. test $ac_status = 0; } && {
  1438. test -z "$ac_cxx_werror_flag" ||
  1439. test ! -s conftest.err
  1440. } && test -s conftest$ac_exeext && {
  1441. test "$cross_compiling" = yes ||
  1442. test -x conftest$ac_exeext
  1443. }
  1444. then :
  1445. ac_retval=0
  1446. else $as_nop
  1447. printf "%s\n" "$as_me: failed program was:" >&5
  1448. sed 's/^/| /' conftest.$ac_ext >&5
  1449. ac_retval=1
  1450. fi
  1451. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1452. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1453. # interfere with the next link command; also delete a directory that is
  1454. # left behind by Apple's compiler. We do this before executing the actions.
  1455. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1456. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1457. as_fn_set_status $ac_retval
  1458. } # ac_fn_cxx_try_link
  1459. # ac_fn_cxx_try_run LINENO
  1460. # ------------------------
  1461. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1462. # executables *can* be run.
  1463. ac_fn_cxx_try_run ()
  1464. {
  1465. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1466. if { { ac_try="$ac_link"
  1467. case "(($ac_try" in
  1468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1469. *) ac_try_echo=$ac_try;;
  1470. esac
  1471. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1472. printf "%s\n" "$ac_try_echo"; } >&5
  1473. (eval "$ac_link") 2>&5
  1474. ac_status=$?
  1475. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1477. { { case "(($ac_try" in
  1478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1479. *) ac_try_echo=$ac_try;;
  1480. esac
  1481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1482. printf "%s\n" "$ac_try_echo"; } >&5
  1483. (eval "$ac_try") 2>&5
  1484. ac_status=$?
  1485. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; }; }
  1487. then :
  1488. ac_retval=0
  1489. else $as_nop
  1490. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1491. printf "%s\n" "$as_me: failed program was:" >&5
  1492. sed 's/^/| /' conftest.$ac_ext >&5
  1493. ac_retval=$ac_status
  1494. fi
  1495. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1496. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1497. as_fn_set_status $ac_retval
  1498. } # ac_fn_cxx_try_run
  1499. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1500. # ---------------------------------------------------------
  1501. # Tests whether HEADER exists and can be compiled using the include files in
  1502. # INCLUDES, setting the cache variable VAR accordingly.
  1503. ac_fn_cxx_check_header_compile ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1507. printf %s "checking for $2... " >&6; }
  1508. if eval test \${$3+y}
  1509. then :
  1510. printf %s "(cached) " >&6
  1511. else $as_nop
  1512. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1513. /* end build/confdefs.h. */
  1514. $4
  1515. #include <$2>
  1516. _ACEOF
  1517. if ac_fn_cxx_try_compile "$LINENO"
  1518. then :
  1519. eval "$3=yes"
  1520. else $as_nop
  1521. eval "$3=no"
  1522. fi
  1523. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1524. fi
  1525. eval ac_res=\$$3
  1526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1527. printf "%s\n" "$ac_res" >&6; }
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. } # ac_fn_cxx_check_header_compile
  1530. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1531. # ---------------------------------------------
  1532. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1533. # variable VAR accordingly.
  1534. ac_fn_cxx_check_type ()
  1535. {
  1536. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1538. printf %s "checking for $2... " >&6; }
  1539. if eval test \${$3+y}
  1540. then :
  1541. printf %s "(cached) " >&6
  1542. else $as_nop
  1543. eval "$3=no"
  1544. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end build/confdefs.h. */
  1546. $4
  1547. int
  1548. main (void)
  1549. {
  1550. if (sizeof ($2))
  1551. return 0;
  1552. ;
  1553. return 0;
  1554. }
  1555. _ACEOF
  1556. if ac_fn_cxx_try_compile "$LINENO"
  1557. then :
  1558. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1559. /* end build/confdefs.h. */
  1560. $4
  1561. int
  1562. main (void)
  1563. {
  1564. if (sizeof (($2)))
  1565. return 0;
  1566. ;
  1567. return 0;
  1568. }
  1569. _ACEOF
  1570. if ac_fn_cxx_try_compile "$LINENO"
  1571. then :
  1572. else $as_nop
  1573. eval "$3=yes"
  1574. fi
  1575. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1576. fi
  1577. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1578. fi
  1579. eval ac_res=\$$3
  1580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1581. printf "%s\n" "$ac_res" >&6; }
  1582. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1583. } # ac_fn_cxx_check_type
  1584. # ac_fn_c_find_intX_t LINENO BITS VAR
  1585. # -----------------------------------
  1586. # Finds a signed integer type with width BITS, setting cache variable VAR
  1587. # accordingly.
  1588. ac_fn_c_find_intX_t ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1592. printf %s "checking for int$2_t... " >&6; }
  1593. if eval test \${$3+y}
  1594. then :
  1595. printf %s "(cached) " >&6
  1596. else $as_nop
  1597. eval "$3=no"
  1598. # Order is important - never check a type that is potentially smaller
  1599. # than half of the expected target width.
  1600. for ac_type in int$2_t 'int' 'long int' \
  1601. 'long long int' 'short int' 'signed char'; do
  1602. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1603. /* end build/confdefs.h. */
  1604. $ac_includes_default
  1605. enum { N = $2 / 2 - 1 };
  1606. int
  1607. main (void)
  1608. {
  1609. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1610. test_array [0] = 0;
  1611. return test_array [0];
  1612. ;
  1613. return 0;
  1614. }
  1615. _ACEOF
  1616. if ac_fn_cxx_try_compile "$LINENO"
  1617. then :
  1618. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1619. /* end build/confdefs.h. */
  1620. $ac_includes_default
  1621. enum { N = $2 / 2 - 1 };
  1622. int
  1623. main (void)
  1624. {
  1625. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1626. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1627. test_array [0] = 0;
  1628. return test_array [0];
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. if ac_fn_cxx_try_compile "$LINENO"
  1634. then :
  1635. else $as_nop
  1636. case $ac_type in #(
  1637. int$2_t) :
  1638. eval "$3=yes" ;; #(
  1639. *) :
  1640. eval "$3=\$ac_type" ;;
  1641. esac
  1642. fi
  1643. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1644. fi
  1645. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1646. if eval test \"x\$"$3"\" = x"no"
  1647. then :
  1648. else $as_nop
  1649. break
  1650. fi
  1651. done
  1652. fi
  1653. eval ac_res=\$$3
  1654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1655. printf "%s\n" "$ac_res" >&6; }
  1656. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1657. } # ac_fn_c_find_intX_t
  1658. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1659. # ------------------------------------
  1660. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1661. # accordingly.
  1662. ac_fn_c_find_uintX_t ()
  1663. {
  1664. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1666. printf %s "checking for uint$2_t... " >&6; }
  1667. if eval test \${$3+y}
  1668. then :
  1669. printf %s "(cached) " >&6
  1670. else $as_nop
  1671. eval "$3=no"
  1672. # Order is important - never check a type that is potentially smaller
  1673. # than half of the expected target width.
  1674. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1675. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1676. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end build/confdefs.h. */
  1678. $ac_includes_default
  1679. int
  1680. main (void)
  1681. {
  1682. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1683. test_array [0] = 0;
  1684. return test_array [0];
  1685. ;
  1686. return 0;
  1687. }
  1688. _ACEOF
  1689. if ac_fn_cxx_try_compile "$LINENO"
  1690. then :
  1691. case $ac_type in #(
  1692. uint$2_t) :
  1693. eval "$3=yes" ;; #(
  1694. *) :
  1695. eval "$3=\$ac_type" ;;
  1696. esac
  1697. fi
  1698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1699. if eval test \"x\$"$3"\" = x"no"
  1700. then :
  1701. else $as_nop
  1702. break
  1703. fi
  1704. done
  1705. fi
  1706. eval ac_res=\$$3
  1707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1708. printf "%s\n" "$ac_res" >&6; }
  1709. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1710. } # ac_fn_c_find_uintX_t
  1711. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1712. # ------------------------------------------------------
  1713. # Tries to find if the field MEMBER exists in type AGGR, after including
  1714. # INCLUDES, setting cache variable VAR accordingly.
  1715. ac_fn_cxx_check_member ()
  1716. {
  1717. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1719. printf %s "checking for $2.$3... " >&6; }
  1720. if eval test \${$4+y}
  1721. then :
  1722. printf %s "(cached) " >&6
  1723. else $as_nop
  1724. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1725. /* end build/confdefs.h. */
  1726. $5
  1727. int
  1728. main (void)
  1729. {
  1730. static $2 ac_aggr;
  1731. if (ac_aggr.$3)
  1732. return 0;
  1733. ;
  1734. return 0;
  1735. }
  1736. _ACEOF
  1737. if ac_fn_cxx_try_compile "$LINENO"
  1738. then :
  1739. eval "$4=yes"
  1740. else $as_nop
  1741. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end build/confdefs.h. */
  1743. $5
  1744. int
  1745. main (void)
  1746. {
  1747. static $2 ac_aggr;
  1748. if (sizeof ac_aggr.$3)
  1749. return 0;
  1750. ;
  1751. return 0;
  1752. }
  1753. _ACEOF
  1754. if ac_fn_cxx_try_compile "$LINENO"
  1755. then :
  1756. eval "$4=yes"
  1757. else $as_nop
  1758. eval "$4=no"
  1759. fi
  1760. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1761. fi
  1762. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1763. fi
  1764. eval ac_res=\$$4
  1765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1766. printf "%s\n" "$ac_res" >&6; }
  1767. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1768. } # ac_fn_cxx_check_member
  1769. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  1770. # ------------------------------------------------------------------
  1771. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1772. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  1773. ac_fn_check_decl ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1778. printf %s "checking whether $as_decl_name is declared... " >&6; }
  1779. if eval test \${$3+y}
  1780. then :
  1781. printf %s "(cached) " >&6
  1782. else $as_nop
  1783. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1784. eval ac_save_FLAGS=\$$6
  1785. as_fn_append $6 " $5"
  1786. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1787. /* end build/confdefs.h. */
  1788. $4
  1789. int
  1790. main (void)
  1791. {
  1792. #ifndef $as_decl_name
  1793. #ifdef __cplusplus
  1794. (void) $as_decl_use;
  1795. #else
  1796. (void) $as_decl_name;
  1797. #endif
  1798. #endif
  1799. ;
  1800. return 0;
  1801. }
  1802. _ACEOF
  1803. if ac_fn_cxx_try_compile "$LINENO"
  1804. then :
  1805. eval "$3=yes"
  1806. else $as_nop
  1807. eval "$3=no"
  1808. fi
  1809. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1810. eval $6=\$ac_save_FLAGS
  1811. fi
  1812. eval ac_res=\$$3
  1813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1814. printf "%s\n" "$ac_res" >&6; }
  1815. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1816. } # ac_fn_check_decl
  1817. # ac_fn_cxx_check_func LINENO FUNC VAR
  1818. # ------------------------------------
  1819. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1820. ac_fn_cxx_check_func ()
  1821. {
  1822. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1824. printf %s "checking for $2... " >&6; }
  1825. if eval test \${$3+y}
  1826. then :
  1827. printf %s "(cached) " >&6
  1828. else $as_nop
  1829. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end build/confdefs.h. */
  1831. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1832. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1833. #define $2 innocuous_$2
  1834. /* System header to define __stub macros and hopefully few prototypes,
  1835. which can conflict with char $2 (); below. */
  1836. #include <limits.h>
  1837. #undef $2
  1838. /* Override any GCC internal prototype to avoid an error.
  1839. Use char because int might match the return type of a GCC
  1840. builtin and then its argument prototype would still apply. */
  1841. #ifdef __cplusplus
  1842. extern "C"
  1843. #endif
  1844. char $2 ();
  1845. /* The GNU C library defines this for functions which it implements
  1846. to always fail with ENOSYS. Some functions are actually named
  1847. something starting with __ and the normal name is an alias. */
  1848. #if defined __stub_$2 || defined __stub___$2
  1849. choke me
  1850. #endif
  1851. int
  1852. main (void)
  1853. {
  1854. return $2 ();
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_cxx_try_link "$LINENO"
  1860. then :
  1861. eval "$3=yes"
  1862. else $as_nop
  1863. eval "$3=no"
  1864. fi
  1865. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1866. conftest$ac_exeext conftest.$ac_ext
  1867. fi
  1868. eval ac_res=\$$3
  1869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1870. printf "%s\n" "$ac_res" >&6; }
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. } # ac_fn_cxx_check_func
  1873. ac_configure_args_raw=
  1874. for ac_arg
  1875. do
  1876. case $ac_arg in
  1877. *\'*)
  1878. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1879. esac
  1880. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1881. done
  1882. case $ac_configure_args_raw in
  1883. *$as_nl*)
  1884. ac_safe_unquote= ;;
  1885. *)
  1886. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1887. ac_unsafe_a="$ac_unsafe_z#~"
  1888. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1889. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1890. esac
  1891. cat >build/config.log <<_ACEOF
  1892. This file contains any messages produced by compilers while
  1893. running configure, to aid debugging if configure makes a mistake.
  1894. It was created by $as_me, which was
  1895. generated by GNU Autoconf 2.71. Invocation command line was
  1896. $ $0$ac_configure_args_raw
  1897. _ACEOF
  1898. exec 5>>build/config.log
  1899. {
  1900. cat <<_ASUNAME
  1901. ## --------- ##
  1902. ## Platform. ##
  1903. ## --------- ##
  1904. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1905. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1906. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1907. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1908. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1909. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1910. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1911. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1912. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1913. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1914. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1915. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1916. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1917. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1918. _ASUNAME
  1919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1920. for as_dir in $PATH
  1921. do
  1922. IFS=$as_save_IFS
  1923. case $as_dir in #(((
  1924. '') as_dir=./ ;;
  1925. */) ;;
  1926. *) as_dir=$as_dir/ ;;
  1927. esac
  1928. printf "%s\n" "PATH: $as_dir"
  1929. done
  1930. IFS=$as_save_IFS
  1931. } >&5
  1932. cat >&5 <<_ACEOF
  1933. ## ----------- ##
  1934. ## Core tests. ##
  1935. ## ----------- ##
  1936. _ACEOF
  1937. # Keep a trace of the command line.
  1938. # Strip out --no-create and --no-recursion so they do not pile up.
  1939. # Strip out --silent because we don't want to record it for future runs.
  1940. # Also quote any args containing shell meta-characters.
  1941. # Make two passes to allow for proper duplicate-argument suppression.
  1942. ac_configure_args=
  1943. ac_configure_args0=
  1944. ac_configure_args1=
  1945. ac_must_keep_next=false
  1946. for ac_pass in 1 2
  1947. do
  1948. for ac_arg
  1949. do
  1950. case $ac_arg in
  1951. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1952. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1953. | -silent | --silent | --silen | --sile | --sil)
  1954. continue ;;
  1955. *\'*)
  1956. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1957. esac
  1958. case $ac_pass in
  1959. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1960. 2)
  1961. as_fn_append ac_configure_args1 " '$ac_arg'"
  1962. if test $ac_must_keep_next = true; then
  1963. ac_must_keep_next=false # Got value, back to normal.
  1964. else
  1965. case $ac_arg in
  1966. *=* | --config-cache | -C | -disable-* | --disable-* \
  1967. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1968. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1969. | -with-* | --with-* | -without-* | --without-* | --x)
  1970. case "$ac_configure_args0 " in
  1971. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1972. esac
  1973. ;;
  1974. -* ) ac_must_keep_next=true ;;
  1975. esac
  1976. fi
  1977. as_fn_append ac_configure_args " '$ac_arg'"
  1978. ;;
  1979. esac
  1980. done
  1981. done
  1982. { ac_configure_args0=; unset ac_configure_args0;}
  1983. { ac_configure_args1=; unset ac_configure_args1;}
  1984. # When interrupted or exit'd, cleanup temporary files, and complete
  1985. # build/config.log. We remove comments because anyway the quotes in there
  1986. # would cause problems or look ugly.
  1987. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1988. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1989. trap 'exit_status=$?
  1990. # Sanitize IFS.
  1991. IFS=" "" $as_nl"
  1992. # Save into build/config.log some information that might help in debugging.
  1993. {
  1994. echo
  1995. printf "%s\n" "## ---------------- ##
  1996. ## Cache variables. ##
  1997. ## ---------------- ##"
  1998. echo
  1999. # The following way of writing the cache mishandles newlines in values,
  2000. (
  2001. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2002. eval ac_val=\$$ac_var
  2003. case $ac_val in #(
  2004. *${as_nl}*)
  2005. case $ac_var in #(
  2006. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2007. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2008. esac
  2009. case $ac_var in #(
  2010. _ | IFS | as_nl) ;; #(
  2011. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2012. *) { eval $ac_var=; unset $ac_var;} ;;
  2013. esac ;;
  2014. esac
  2015. done
  2016. (set) 2>&1 |
  2017. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2018. *${as_nl}ac_space=\ *)
  2019. sed -n \
  2020. "s/'\''/'\''\\\\'\'''\''/g;
  2021. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2022. ;; #(
  2023. *)
  2024. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2025. ;;
  2026. esac |
  2027. sort
  2028. )
  2029. echo
  2030. printf "%s\n" "## ----------------- ##
  2031. ## Output variables. ##
  2032. ## ----------------- ##"
  2033. echo
  2034. for ac_var in $ac_subst_vars
  2035. do
  2036. eval ac_val=\$$ac_var
  2037. case $ac_val in
  2038. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2039. esac
  2040. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2041. done | sort
  2042. echo
  2043. if test -n "$ac_subst_files"; then
  2044. printf "%s\n" "## ------------------- ##
  2045. ## File substitutions. ##
  2046. ## ------------------- ##"
  2047. echo
  2048. for ac_var in $ac_subst_files
  2049. do
  2050. eval ac_val=\$$ac_var
  2051. case $ac_val in
  2052. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2053. esac
  2054. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2055. done | sort
  2056. echo
  2057. fi
  2058. if test -s build/confdefs.h; then
  2059. printf "%s\n" "## ----------- ##
  2060. ## build/confdefs.h. ##
  2061. ## ----------- ##"
  2062. echo
  2063. cat build/confdefs.h
  2064. echo
  2065. fi
  2066. test "$ac_signal" != 0 &&
  2067. printf "%s\n" "$as_me: caught signal $ac_signal"
  2068. printf "%s\n" "$as_me: exit $exit_status"
  2069. } >&5
  2070. rm -f core *.core core.conftest.* &&
  2071. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2072. exit $exit_status
  2073. ' 0
  2074. for ac_signal in 1 2 13 15; do
  2075. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2076. done
  2077. ac_signal=0
  2078. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2079. rm -f -r conftest* build/confdefs.h
  2080. printf "%s\n" "/* build/confdefs.h */" > build/confdefs.h
  2081. # Predefined preprocessor variables.
  2082. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>build/confdefs.h
  2083. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>build/confdefs.h
  2084. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>build/confdefs.h
  2085. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>build/confdefs.h
  2086. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>build/confdefs.h
  2087. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>build/confdefs.h
  2088. # Let the site file select an alternate cache file if it wants to.
  2089. # Prefer an explicitly selected file to automatically selected ones.
  2090. if test -n "$CONFIG_SITE"; then
  2091. ac_site_files="$CONFIG_SITE"
  2092. elif test "x$prefix" != xNONE; then
  2093. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2094. else
  2095. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2096. fi
  2097. for ac_site_file in $ac_site_files
  2098. do
  2099. case $ac_site_file in #(
  2100. */*) :
  2101. ;; #(
  2102. *) :
  2103. ac_site_file=./$ac_site_file ;;
  2104. esac
  2105. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2107. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2108. sed 's/^/| /' "$ac_site_file" >&5
  2109. . "$ac_site_file" \
  2110. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2111. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2112. as_fn_error $? "failed to load site script $ac_site_file
  2113. See \`build/config.log' for more details" "$LINENO" 5; }
  2114. fi
  2115. done
  2116. if test -r "$cache_file"; then
  2117. # Some versions of bash will fail to source /dev/null (special files
  2118. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2119. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2121. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2122. case $cache_file in
  2123. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2124. *) . "./$cache_file";;
  2125. esac
  2126. fi
  2127. else
  2128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2129. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2130. >$cache_file
  2131. fi
  2132. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2133. ac_cxx_conftest_cxx98_globals='
  2134. // Does the compiler advertise C++98 conformance?
  2135. #if !defined __cplusplus || __cplusplus < 199711L
  2136. # error "Compiler does not advertise C++98 conformance"
  2137. #endif
  2138. // These inclusions are to reject old compilers that
  2139. // lack the unsuffixed header files.
  2140. #include <cstdlib>
  2141. #include <exception>
  2142. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2143. extern void assert (int);
  2144. namespace std {
  2145. extern int strcmp (const char *, const char *);
  2146. }
  2147. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2148. using std::exception;
  2149. using std::strcmp;
  2150. namespace {
  2151. void test_exception_syntax()
  2152. {
  2153. try {
  2154. throw "test";
  2155. } catch (const char *s) {
  2156. // Extra parentheses suppress a warning when building autoconf itself,
  2157. // due to lint rules shared with more typical C programs.
  2158. assert (!(strcmp) (s, "test"));
  2159. }
  2160. }
  2161. template <typename T> struct test_template
  2162. {
  2163. T const val;
  2164. explicit test_template(T t) : val(t) {}
  2165. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2166. };
  2167. } // anonymous namespace
  2168. '
  2169. # Test code for whether the C++ compiler supports C++98 (body of main)
  2170. ac_cxx_conftest_cxx98_main='
  2171. assert (argc);
  2172. assert (! argv[0]);
  2173. {
  2174. test_exception_syntax ();
  2175. test_template<double> tt (2.0);
  2176. assert (tt.add (4) == 6.0);
  2177. assert (true && !false);
  2178. }
  2179. '
  2180. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2181. ac_cxx_conftest_cxx11_globals='
  2182. // Does the compiler advertise C++ 2011 conformance?
  2183. #if !defined __cplusplus || __cplusplus < 201103L
  2184. # error "Compiler does not advertise C++11 conformance"
  2185. #endif
  2186. namespace cxx11test
  2187. {
  2188. constexpr int get_val() { return 20; }
  2189. struct testinit
  2190. {
  2191. int i;
  2192. double d;
  2193. };
  2194. class delegate
  2195. {
  2196. public:
  2197. delegate(int n) : n(n) {}
  2198. delegate(): delegate(2354) {}
  2199. virtual int getval() { return this->n; };
  2200. protected:
  2201. int n;
  2202. };
  2203. class overridden : public delegate
  2204. {
  2205. public:
  2206. overridden(int n): delegate(n) {}
  2207. virtual int getval() override final { return this->n * 2; }
  2208. };
  2209. class nocopy
  2210. {
  2211. public:
  2212. nocopy(int i): i(i) {}
  2213. nocopy() = default;
  2214. nocopy(const nocopy&) = delete;
  2215. nocopy & operator=(const nocopy&) = delete;
  2216. private:
  2217. int i;
  2218. };
  2219. // for testing lambda expressions
  2220. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2221. {
  2222. return f(v);
  2223. }
  2224. // for testing variadic templates and trailing return types
  2225. template <typename V> auto sum(V first) -> V
  2226. {
  2227. return first;
  2228. }
  2229. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2230. {
  2231. return first + sum(rest...);
  2232. }
  2233. }
  2234. '
  2235. # Test code for whether the C++ compiler supports C++11 (body of main)
  2236. ac_cxx_conftest_cxx11_main='
  2237. {
  2238. // Test auto and decltype
  2239. auto a1 = 6538;
  2240. auto a2 = 48573953.4;
  2241. auto a3 = "String literal";
  2242. int total = 0;
  2243. for (auto i = a3; *i; ++i) { total += *i; }
  2244. decltype(a2) a4 = 34895.034;
  2245. }
  2246. {
  2247. // Test constexpr
  2248. short sa[cxx11test::get_val()] = { 0 };
  2249. }
  2250. {
  2251. // Test initializer lists
  2252. cxx11test::testinit il = { 4323, 435234.23544 };
  2253. }
  2254. {
  2255. // Test range-based for
  2256. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2257. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2258. for (auto &x : array) { x += 23; }
  2259. }
  2260. {
  2261. // Test lambda expressions
  2262. using cxx11test::eval;
  2263. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2264. double d = 2.0;
  2265. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2266. assert (d == 5.0);
  2267. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2268. assert (d == 5.0);
  2269. }
  2270. {
  2271. // Test use of variadic templates
  2272. using cxx11test::sum;
  2273. auto a = sum(1);
  2274. auto b = sum(1, 2);
  2275. auto c = sum(1.0, 2.0, 3.0);
  2276. }
  2277. {
  2278. // Test constructor delegation
  2279. cxx11test::delegate d1;
  2280. cxx11test::delegate d2();
  2281. cxx11test::delegate d3(45);
  2282. }
  2283. {
  2284. // Test override and final
  2285. cxx11test::overridden o1(55464);
  2286. }
  2287. {
  2288. // Test nullptr
  2289. char *c = nullptr;
  2290. }
  2291. {
  2292. // Test template brackets
  2293. test_template<::test_template<int>> v(test_template<int>(12));
  2294. }
  2295. {
  2296. // Unicode literals
  2297. char const *utf8 = u8"UTF-8 string \u2500";
  2298. char16_t const *utf16 = u"UTF-8 string \u2500";
  2299. char32_t const *utf32 = U"UTF-32 string \u2500";
  2300. }
  2301. '
  2302. # Test code for whether the C compiler supports C++11 (complete).
  2303. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2304. ${ac_cxx_conftest_cxx11_globals}
  2305. int
  2306. main (int argc, char **argv)
  2307. {
  2308. int ok = 0;
  2309. ${ac_cxx_conftest_cxx98_main}
  2310. ${ac_cxx_conftest_cxx11_main}
  2311. return ok;
  2312. }
  2313. "
  2314. # Test code for whether the C compiler supports C++98 (complete).
  2315. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2316. int
  2317. main (int argc, char **argv)
  2318. {
  2319. int ok = 0;
  2320. ${ac_cxx_conftest_cxx98_main}
  2321. return ok;
  2322. }
  2323. "
  2324. as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
  2325. as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2326. as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
  2327. as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2328. as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
  2329. as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
  2330. as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2331. as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2332. as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
  2333. as_fn_append ac_header_cxx_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
  2334. as_fn_append ac_header_cxx_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2335. as_fn_append ac_func_cxx_list " getpagesize HAVE_GETPAGESIZE"
  2336. # Auxiliary files required by this configure script.
  2337. ac_aux_files="config.guess config.sub"
  2338. # Locations in which to look for auxiliary files.
  2339. ac_aux_dir_candidates="${srcdir}/build/autotools"
  2340. # Search for a directory containing all of the required auxiliary files,
  2341. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2342. # If we don't find one directory that contains all the files we need,
  2343. # we report the set of missing files from the *first* directory in
  2344. # $ac_aux_dir_candidates and give up.
  2345. ac_missing_aux_files=""
  2346. ac_first_candidate=:
  2347. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349. as_found=false
  2350. for as_dir in $ac_aux_dir_candidates
  2351. do
  2352. IFS=$as_save_IFS
  2353. case $as_dir in #(((
  2354. '') as_dir=./ ;;
  2355. */) ;;
  2356. *) as_dir=$as_dir/ ;;
  2357. esac
  2358. as_found=:
  2359. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2360. ac_aux_dir_found=yes
  2361. ac_install_sh=
  2362. for ac_aux in $ac_aux_files
  2363. do
  2364. # As a special case, if "install-sh" is required, that requirement
  2365. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2366. # and $ac_install_sh is set appropriately for whichever one is found.
  2367. if test x"$ac_aux" = x"install-sh"
  2368. then
  2369. if test -f "${as_dir}install-sh"; then
  2370. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2371. ac_install_sh="${as_dir}install-sh -c"
  2372. elif test -f "${as_dir}install.sh"; then
  2373. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2374. ac_install_sh="${as_dir}install.sh -c"
  2375. elif test -f "${as_dir}shtool"; then
  2376. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2377. ac_install_sh="${as_dir}shtool install -c"
  2378. else
  2379. ac_aux_dir_found=no
  2380. if $ac_first_candidate; then
  2381. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2382. else
  2383. break
  2384. fi
  2385. fi
  2386. else
  2387. if test -f "${as_dir}${ac_aux}"; then
  2388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2389. else
  2390. ac_aux_dir_found=no
  2391. if $ac_first_candidate; then
  2392. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2393. else
  2394. break
  2395. fi
  2396. fi
  2397. fi
  2398. done
  2399. if test "$ac_aux_dir_found" = yes; then
  2400. ac_aux_dir="$as_dir"
  2401. break
  2402. fi
  2403. ac_first_candidate=false
  2404. as_found=false
  2405. done
  2406. IFS=$as_save_IFS
  2407. if $as_found
  2408. then :
  2409. else $as_nop
  2410. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2411. fi
  2412. # These three variables are undocumented and unsupported,
  2413. # and are intended to be withdrawn in a future Autoconf release.
  2414. # They can cause serious problems if a builder's source tree is in a directory
  2415. # whose full name contains unusual characters.
  2416. if test -f "${ac_aux_dir}config.guess"; then
  2417. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2418. fi
  2419. if test -f "${ac_aux_dir}config.sub"; then
  2420. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2421. fi
  2422. if test -f "$ac_aux_dir/configure"; then
  2423. ac_configure="$SHELL ${ac_aux_dir}configure"
  2424. fi
  2425. # Check that the precious variables saved in the cache have kept the same
  2426. # value.
  2427. ac_cache_corrupted=false
  2428. for ac_var in $ac_precious_vars; do
  2429. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2430. eval ac_new_set=\$ac_env_${ac_var}_set
  2431. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2432. eval ac_new_val=\$ac_env_${ac_var}_value
  2433. case $ac_old_set,$ac_new_set in
  2434. set,)
  2435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2436. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2437. ac_cache_corrupted=: ;;
  2438. ,set)
  2439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2440. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2441. ac_cache_corrupted=: ;;
  2442. ,);;
  2443. *)
  2444. if test "x$ac_old_val" != "x$ac_new_val"; then
  2445. # differences in whitespace do not lead to failure.
  2446. ac_old_val_w=`echo x $ac_old_val`
  2447. ac_new_val_w=`echo x $ac_new_val`
  2448. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2450. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2451. ac_cache_corrupted=:
  2452. else
  2453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2454. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2455. eval $ac_var=\$ac_old_val
  2456. fi
  2457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2458. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2460. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2461. fi;;
  2462. esac
  2463. # Pass precious variables to build/config.status.
  2464. if test "$ac_new_set" = set; then
  2465. case $ac_new_val in
  2466. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2467. *) ac_arg=$ac_var=$ac_new_val ;;
  2468. esac
  2469. case " $ac_configure_args " in
  2470. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2471. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2472. esac
  2473. fi
  2474. done
  2475. if $ac_cache_corrupted; then
  2476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2477. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2479. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2480. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2481. and start over" "$LINENO" 5
  2482. fi
  2483. ## -------------------- ##
  2484. ## Main body of script. ##
  2485. ## -------------------- ##
  2486. ac_ext=c
  2487. ac_cpp='$CPP $CPPFLAGS'
  2488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2491. ac_config_headers="$ac_config_headers src/config.h"
  2492. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2493. egg_ac_parameters=
  2494. ac_prev=
  2495. for ac_arg in $ac_configure_args; do
  2496. if test -n "$ac_prev"; then
  2497. ac_prev=
  2498. continue
  2499. fi
  2500. case $ac_arg in
  2501. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2502. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2503. ac_prev=cache_file ;;
  2504. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2505. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2506. | --c=*)
  2507. ;;
  2508. --config-cache | -C)
  2509. ;;
  2510. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2511. ac_prev=srcdir ;;
  2512. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2513. ;;
  2514. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2515. esac
  2516. done
  2517. # Setup build environment
  2518. #AC_REQUIRE_CPP
  2519. ac_ext=cpp
  2520. ac_cpp='$CXXCPP $CPPFLAGS'
  2521. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2522. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2523. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2524. ac_ext=cpp
  2525. ac_cpp='$CXXCPP $CPPFLAGS'
  2526. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2527. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2528. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2529. if test -z "$CXX"; then
  2530. if test -n "$CCC"; then
  2531. CXX=$CCC
  2532. else
  2533. if test -n "$ac_tool_prefix"; then
  2534. for ac_prog in clang++90 clang++80 clang++70 clang++60 clang++50 clang++40 clang++39 clang++38 clang++37 clang++36 clang++35 clang++34 g++9 g++8 g++7 g++6 g++5 clang++ eg++ g++ c++ CC cxx cc++
  2535. do
  2536. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2537. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2539. printf %s "checking for $ac_word... " >&6; }
  2540. if test ${ac_cv_prog_CXX+y}
  2541. then :
  2542. printf %s "(cached) " >&6
  2543. else $as_nop
  2544. if test -n "$CXX"; then
  2545. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2546. else
  2547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2548. for as_dir in $PATH
  2549. do
  2550. IFS=$as_save_IFS
  2551. case $as_dir in #(((
  2552. '') as_dir=./ ;;
  2553. */) ;;
  2554. *) as_dir=$as_dir/ ;;
  2555. esac
  2556. for ac_exec_ext in '' $ac_executable_extensions; do
  2557. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2558. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2559. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2560. break 2
  2561. fi
  2562. done
  2563. done
  2564. IFS=$as_save_IFS
  2565. fi
  2566. fi
  2567. CXX=$ac_cv_prog_CXX
  2568. if test -n "$CXX"; then
  2569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2570. printf "%s\n" "$CXX" >&6; }
  2571. else
  2572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2573. printf "%s\n" "no" >&6; }
  2574. fi
  2575. test -n "$CXX" && break
  2576. done
  2577. fi
  2578. if test -z "$CXX"; then
  2579. ac_ct_CXX=$CXX
  2580. for ac_prog in clang++90 clang++80 clang++70 clang++60 clang++50 clang++40 clang++39 clang++38 clang++37 clang++36 clang++35 clang++34 g++9 g++8 g++7 g++6 g++5 clang++ eg++ g++ c++ CC cxx cc++
  2581. do
  2582. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2583. set dummy $ac_prog; ac_word=$2
  2584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2585. printf %s "checking for $ac_word... " >&6; }
  2586. if test ${ac_cv_prog_ac_ct_CXX+y}
  2587. then :
  2588. printf %s "(cached) " >&6
  2589. else $as_nop
  2590. if test -n "$ac_ct_CXX"; then
  2591. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2592. else
  2593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2594. for as_dir in $PATH
  2595. do
  2596. IFS=$as_save_IFS
  2597. case $as_dir in #(((
  2598. '') as_dir=./ ;;
  2599. */) ;;
  2600. *) as_dir=$as_dir/ ;;
  2601. esac
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2604. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2605. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2606. break 2
  2607. fi
  2608. done
  2609. done
  2610. IFS=$as_save_IFS
  2611. fi
  2612. fi
  2613. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2614. if test -n "$ac_ct_CXX"; then
  2615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2616. printf "%s\n" "$ac_ct_CXX" >&6; }
  2617. else
  2618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2619. printf "%s\n" "no" >&6; }
  2620. fi
  2621. test -n "$ac_ct_CXX" && break
  2622. done
  2623. if test "x$ac_ct_CXX" = x; then
  2624. CXX="g++"
  2625. else
  2626. case $cross_compiling:$ac_tool_warned in
  2627. yes:)
  2628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2629. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2630. ac_tool_warned=yes ;;
  2631. esac
  2632. CXX=$ac_ct_CXX
  2633. fi
  2634. fi
  2635. fi
  2636. fi
  2637. # Provide some information about the compiler.
  2638. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2639. set X $ac_compile
  2640. ac_compiler=$2
  2641. for ac_option in --version -v -V -qversion; do
  2642. { { ac_try="$ac_compiler $ac_option >&5"
  2643. case "(($ac_try" in
  2644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2645. *) ac_try_echo=$ac_try;;
  2646. esac
  2647. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2648. printf "%s\n" "$ac_try_echo"; } >&5
  2649. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2650. ac_status=$?
  2651. if test -s conftest.err; then
  2652. sed '10a\
  2653. ... rest of stderr output deleted ...
  2654. 10q' conftest.err >conftest.er1
  2655. cat conftest.er1 >&5
  2656. fi
  2657. rm -f conftest.er1 conftest.err
  2658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2659. test $ac_status = 0; }
  2660. done
  2661. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2662. /* end build/confdefs.h. */
  2663. int
  2664. main (void)
  2665. {
  2666. ;
  2667. return 0;
  2668. }
  2669. _ACEOF
  2670. ac_clean_files_save=$ac_clean_files
  2671. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2672. # Try to create an executable without -o first, disregard a.out.
  2673. # It will help us diagnose broken compilers, and finding out an intuition
  2674. # of exeext.
  2675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2676. printf %s "checking whether the C++ compiler works... " >&6; }
  2677. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2678. # The possible output files:
  2679. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2680. ac_rmfiles=
  2681. for ac_file in $ac_files
  2682. do
  2683. case $ac_file in
  2684. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2685. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2686. esac
  2687. done
  2688. rm -f $ac_rmfiles
  2689. if { { ac_try="$ac_link_default"
  2690. case "(($ac_try" in
  2691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2692. *) ac_try_echo=$ac_try;;
  2693. esac
  2694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2695. printf "%s\n" "$ac_try_echo"; } >&5
  2696. (eval "$ac_link_default") 2>&5
  2697. ac_status=$?
  2698. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2699. test $ac_status = 0; }
  2700. then :
  2701. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2702. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2703. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2704. # so that the user can short-circuit this test for compilers unknown to
  2705. # Autoconf.
  2706. for ac_file in $ac_files ''
  2707. do
  2708. test -f "$ac_file" || continue
  2709. case $ac_file in
  2710. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2711. ;;
  2712. [ab].out )
  2713. # We found the default executable, but exeext='' is most
  2714. # certainly right.
  2715. break;;
  2716. *.* )
  2717. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  2718. then :; else
  2719. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2720. fi
  2721. # We set ac_cv_exeext here because the later test for it is not
  2722. # safe: cross compilers may not add the suffix if given an `-o'
  2723. # argument, so we may need to know it at that point already.
  2724. # Even if this section looks crufty: it has the advantage of
  2725. # actually working.
  2726. break;;
  2727. * )
  2728. break;;
  2729. esac
  2730. done
  2731. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2732. else $as_nop
  2733. ac_file=''
  2734. fi
  2735. if test -z "$ac_file"
  2736. then :
  2737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2738. printf "%s\n" "no" >&6; }
  2739. printf "%s\n" "$as_me: failed program was:" >&5
  2740. sed 's/^/| /' conftest.$ac_ext >&5
  2741. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2742. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2743. as_fn_error 77 "C++ compiler cannot create executables
  2744. See \`build/config.log' for more details" "$LINENO" 5; }
  2745. else $as_nop
  2746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2747. printf "%s\n" "yes" >&6; }
  2748. fi
  2749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2750. printf %s "checking for C++ compiler default output file name... " >&6; }
  2751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2752. printf "%s\n" "$ac_file" >&6; }
  2753. ac_exeext=$ac_cv_exeext
  2754. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2755. ac_clean_files=$ac_clean_files_save
  2756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2757. printf %s "checking for suffix of executables... " >&6; }
  2758. if { { ac_try="$ac_link"
  2759. case "(($ac_try" in
  2760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2761. *) ac_try_echo=$ac_try;;
  2762. esac
  2763. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2764. printf "%s\n" "$ac_try_echo"; } >&5
  2765. (eval "$ac_link") 2>&5
  2766. ac_status=$?
  2767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2768. test $ac_status = 0; }
  2769. then :
  2770. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2771. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2772. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2773. # `rm'.
  2774. for ac_file in conftest.exe conftest conftest.*; do
  2775. test -f "$ac_file" || continue
  2776. case $ac_file in
  2777. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2778. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2779. break;;
  2780. * ) break;;
  2781. esac
  2782. done
  2783. else $as_nop
  2784. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2785. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2786. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2787. See \`build/config.log' for more details" "$LINENO" 5; }
  2788. fi
  2789. rm -f conftest conftest$ac_cv_exeext
  2790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2791. printf "%s\n" "$ac_cv_exeext" >&6; }
  2792. rm -f conftest.$ac_ext
  2793. EXEEXT=$ac_cv_exeext
  2794. ac_exeext=$EXEEXT
  2795. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2796. /* end build/confdefs.h. */
  2797. #include <stdio.h>
  2798. int
  2799. main (void)
  2800. {
  2801. FILE *f = fopen ("conftest.out", "w");
  2802. return ferror (f) || fclose (f) != 0;
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. ac_clean_files="$ac_clean_files conftest.out"
  2808. # Check that the compiler produces executables we can run. If not, either
  2809. # the compiler is broken, or we cross compile.
  2810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2811. printf %s "checking whether we are cross compiling... " >&6; }
  2812. if test "$cross_compiling" != yes; then
  2813. { { ac_try="$ac_link"
  2814. case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2819. printf "%s\n" "$ac_try_echo"; } >&5
  2820. (eval "$ac_link") 2>&5
  2821. ac_status=$?
  2822. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2823. test $ac_status = 0; }
  2824. if { ac_try='./conftest$ac_cv_exeext'
  2825. { { case "(($ac_try" in
  2826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2827. *) ac_try_echo=$ac_try;;
  2828. esac
  2829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2830. printf "%s\n" "$ac_try_echo"; } >&5
  2831. (eval "$ac_try") 2>&5
  2832. ac_status=$?
  2833. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2834. test $ac_status = 0; }; }; then
  2835. cross_compiling=no
  2836. else
  2837. if test "$cross_compiling" = maybe; then
  2838. cross_compiling=yes
  2839. else
  2840. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2841. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2842. as_fn_error 77 "cannot run C++ compiled programs.
  2843. If you meant to cross compile, use \`--host'.
  2844. See \`build/config.log' for more details" "$LINENO" 5; }
  2845. fi
  2846. fi
  2847. fi
  2848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2849. printf "%s\n" "$cross_compiling" >&6; }
  2850. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2851. ac_clean_files=$ac_clean_files_save
  2852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2853. printf %s "checking for suffix of object files... " >&6; }
  2854. if test ${ac_cv_objext+y}
  2855. then :
  2856. printf %s "(cached) " >&6
  2857. else $as_nop
  2858. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2859. /* end build/confdefs.h. */
  2860. int
  2861. main (void)
  2862. {
  2863. ;
  2864. return 0;
  2865. }
  2866. _ACEOF
  2867. rm -f conftest.o conftest.obj
  2868. if { { ac_try="$ac_compile"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2874. printf "%s\n" "$ac_try_echo"; } >&5
  2875. (eval "$ac_compile") 2>&5
  2876. ac_status=$?
  2877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2878. test $ac_status = 0; }
  2879. then :
  2880. for ac_file in conftest.o conftest.obj conftest.*; do
  2881. test -f "$ac_file" || continue;
  2882. case $ac_file in
  2883. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2884. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2885. break;;
  2886. esac
  2887. done
  2888. else $as_nop
  2889. printf "%s\n" "$as_me: failed program was:" >&5
  2890. sed 's/^/| /' conftest.$ac_ext >&5
  2891. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2892. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2893. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2894. See \`build/config.log' for more details" "$LINENO" 5; }
  2895. fi
  2896. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2897. fi
  2898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2899. printf "%s\n" "$ac_cv_objext" >&6; }
  2900. OBJEXT=$ac_cv_objext
  2901. ac_objext=$OBJEXT
  2902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  2903. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  2904. if test ${ac_cv_cxx_compiler_gnu+y}
  2905. then :
  2906. printf %s "(cached) " >&6
  2907. else $as_nop
  2908. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2909. /* end build/confdefs.h. */
  2910. int
  2911. main (void)
  2912. {
  2913. #ifndef __GNUC__
  2914. choke me
  2915. #endif
  2916. ;
  2917. return 0;
  2918. }
  2919. _ACEOF
  2920. if ac_fn_cxx_try_compile "$LINENO"
  2921. then :
  2922. ac_compiler_gnu=yes
  2923. else $as_nop
  2924. ac_compiler_gnu=no
  2925. fi
  2926. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2927. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2928. fi
  2929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2930. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  2931. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2932. if test $ac_compiler_gnu = yes; then
  2933. GXX=yes
  2934. else
  2935. GXX=
  2936. fi
  2937. ac_test_CXXFLAGS=${CXXFLAGS+y}
  2938. ac_save_CXXFLAGS=$CXXFLAGS
  2939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2940. printf %s "checking whether $CXX accepts -g... " >&6; }
  2941. if test ${ac_cv_prog_cxx_g+y}
  2942. then :
  2943. printf %s "(cached) " >&6
  2944. else $as_nop
  2945. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2946. ac_cxx_werror_flag=yes
  2947. ac_cv_prog_cxx_g=no
  2948. CXXFLAGS="-g"
  2949. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2950. /* end build/confdefs.h. */
  2951. int
  2952. main (void)
  2953. {
  2954. ;
  2955. return 0;
  2956. }
  2957. _ACEOF
  2958. if ac_fn_cxx_try_compile "$LINENO"
  2959. then :
  2960. ac_cv_prog_cxx_g=yes
  2961. else $as_nop
  2962. CXXFLAGS=""
  2963. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2964. /* end build/confdefs.h. */
  2965. int
  2966. main (void)
  2967. {
  2968. ;
  2969. return 0;
  2970. }
  2971. _ACEOF
  2972. if ac_fn_cxx_try_compile "$LINENO"
  2973. then :
  2974. else $as_nop
  2975. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2976. CXXFLAGS="-g"
  2977. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2978. /* end build/confdefs.h. */
  2979. int
  2980. main (void)
  2981. {
  2982. ;
  2983. return 0;
  2984. }
  2985. _ACEOF
  2986. if ac_fn_cxx_try_compile "$LINENO"
  2987. then :
  2988. ac_cv_prog_cxx_g=yes
  2989. fi
  2990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2991. fi
  2992. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2993. fi
  2994. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2995. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2996. fi
  2997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2998. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  2999. if test $ac_test_CXXFLAGS; then
  3000. CXXFLAGS=$ac_save_CXXFLAGS
  3001. elif test $ac_cv_prog_cxx_g = yes; then
  3002. if test "$GXX" = yes; then
  3003. CXXFLAGS="-g -O2"
  3004. else
  3005. CXXFLAGS="-g"
  3006. fi
  3007. else
  3008. if test "$GXX" = yes; then
  3009. CXXFLAGS="-O2"
  3010. else
  3011. CXXFLAGS=
  3012. fi
  3013. fi
  3014. ac_prog_cxx_stdcxx=no
  3015. if test x$ac_prog_cxx_stdcxx = xno
  3016. then :
  3017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  3018. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  3019. if test ${ac_cv_prog_cxx_11+y}
  3020. then :
  3021. printf %s "(cached) " >&6
  3022. else $as_nop
  3023. ac_cv_prog_cxx_11=no
  3024. ac_save_CXX=$CXX
  3025. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3026. /* end build/confdefs.h. */
  3027. $ac_cxx_conftest_cxx11_program
  3028. _ACEOF
  3029. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  3030. do
  3031. CXX="$ac_save_CXX $ac_arg"
  3032. if ac_fn_cxx_try_compile "$LINENO"
  3033. then :
  3034. ac_cv_prog_cxx_cxx11=$ac_arg
  3035. fi
  3036. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3037. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  3038. done
  3039. rm -f conftest.$ac_ext
  3040. CXX=$ac_save_CXX
  3041. fi
  3042. if test "x$ac_cv_prog_cxx_cxx11" = xno
  3043. then :
  3044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3045. printf "%s\n" "unsupported" >&6; }
  3046. else $as_nop
  3047. if test "x$ac_cv_prog_cxx_cxx11" = x
  3048. then :
  3049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3050. printf "%s\n" "none needed" >&6; }
  3051. else $as_nop
  3052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  3053. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  3054. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  3055. fi
  3056. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  3057. ac_prog_cxx_stdcxx=cxx11
  3058. fi
  3059. fi
  3060. if test x$ac_prog_cxx_stdcxx = xno
  3061. then :
  3062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  3063. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  3064. if test ${ac_cv_prog_cxx_98+y}
  3065. then :
  3066. printf %s "(cached) " >&6
  3067. else $as_nop
  3068. ac_cv_prog_cxx_98=no
  3069. ac_save_CXX=$CXX
  3070. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3071. /* end build/confdefs.h. */
  3072. $ac_cxx_conftest_cxx98_program
  3073. _ACEOF
  3074. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  3075. do
  3076. CXX="$ac_save_CXX $ac_arg"
  3077. if ac_fn_cxx_try_compile "$LINENO"
  3078. then :
  3079. ac_cv_prog_cxx_cxx98=$ac_arg
  3080. fi
  3081. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3082. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  3083. done
  3084. rm -f conftest.$ac_ext
  3085. CXX=$ac_save_CXX
  3086. fi
  3087. if test "x$ac_cv_prog_cxx_cxx98" = xno
  3088. then :
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3090. printf "%s\n" "unsupported" >&6; }
  3091. else $as_nop
  3092. if test "x$ac_cv_prog_cxx_cxx98" = x
  3093. then :
  3094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3095. printf "%s\n" "none needed" >&6; }
  3096. else $as_nop
  3097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  3098. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  3099. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  3100. fi
  3101. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  3102. ac_prog_cxx_stdcxx=cxx98
  3103. fi
  3104. fi
  3105. ac_ext=cpp
  3106. ac_cpp='$CXXCPP $CPPFLAGS'
  3107. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3108. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3109. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3110. CC="${CXX} -x c"
  3111. ac_ext=cpp
  3112. ac_cpp='$CXXCPP $CPPFLAGS'
  3113. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3114. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3115. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  3117. printf %s "checking how to run the C++ preprocessor... " >&6; }
  3118. if test -z "$CXXCPP"; then
  3119. if test ${ac_cv_prog_CXXCPP+y}
  3120. then :
  3121. printf %s "(cached) " >&6
  3122. else $as_nop
  3123. # Double quotes because $CXX needs to be expanded
  3124. for CXXCPP in "$CXX -E" cpp /lib/cpp
  3125. do
  3126. ac_preproc_ok=false
  3127. for ac_cxx_preproc_warn_flag in '' yes
  3128. do
  3129. # Use a header file that comes with gcc, so configuring glibc
  3130. # with a fresh cross-compiler works.
  3131. # On the NeXT, cc -E runs the code through the compiler's parser,
  3132. # not just through cpp. "Syntax error" is here to catch this case.
  3133. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3134. /* end build/confdefs.h. */
  3135. #include <limits.h>
  3136. Syntax error
  3137. _ACEOF
  3138. if ac_fn_cxx_try_cpp "$LINENO"
  3139. then :
  3140. else $as_nop
  3141. # Broken: fails on valid input.
  3142. continue
  3143. fi
  3144. rm -f conftest.err conftest.i conftest.$ac_ext
  3145. # OK, works on sane cases. Now check whether nonexistent headers
  3146. # can be detected and how.
  3147. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end build/confdefs.h. */
  3149. #include <ac_nonexistent.h>
  3150. _ACEOF
  3151. if ac_fn_cxx_try_cpp "$LINENO"
  3152. then :
  3153. # Broken: success on invalid input.
  3154. continue
  3155. else $as_nop
  3156. # Passes both tests.
  3157. ac_preproc_ok=:
  3158. break
  3159. fi
  3160. rm -f conftest.err conftest.i conftest.$ac_ext
  3161. done
  3162. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3163. rm -f conftest.i conftest.err conftest.$ac_ext
  3164. if $ac_preproc_ok
  3165. then :
  3166. break
  3167. fi
  3168. done
  3169. ac_cv_prog_CXXCPP=$CXXCPP
  3170. fi
  3171. CXXCPP=$ac_cv_prog_CXXCPP
  3172. else
  3173. ac_cv_prog_CXXCPP=$CXXCPP
  3174. fi
  3175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  3176. printf "%s\n" "$CXXCPP" >&6; }
  3177. ac_preproc_ok=false
  3178. for ac_cxx_preproc_warn_flag in '' yes
  3179. do
  3180. # Use a header file that comes with gcc, so configuring glibc
  3181. # with a fresh cross-compiler works.
  3182. # On the NeXT, cc -E runs the code through the compiler's parser,
  3183. # not just through cpp. "Syntax error" is here to catch this case.
  3184. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3185. /* end build/confdefs.h. */
  3186. #include <limits.h>
  3187. Syntax error
  3188. _ACEOF
  3189. if ac_fn_cxx_try_cpp "$LINENO"
  3190. then :
  3191. else $as_nop
  3192. # Broken: fails on valid input.
  3193. continue
  3194. fi
  3195. rm -f conftest.err conftest.i conftest.$ac_ext
  3196. # OK, works on sane cases. Now check whether nonexistent headers
  3197. # can be detected and how.
  3198. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3199. /* end build/confdefs.h. */
  3200. #include <ac_nonexistent.h>
  3201. _ACEOF
  3202. if ac_fn_cxx_try_cpp "$LINENO"
  3203. then :
  3204. # Broken: success on invalid input.
  3205. continue
  3206. else $as_nop
  3207. # Passes both tests.
  3208. ac_preproc_ok=:
  3209. break
  3210. fi
  3211. rm -f conftest.err conftest.i conftest.$ac_ext
  3212. done
  3213. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3214. rm -f conftest.i conftest.err conftest.$ac_ext
  3215. if $ac_preproc_ok
  3216. then :
  3217. else $as_nop
  3218. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3219. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3220. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  3221. See \`build/config.log' for more details" "$LINENO" 5; }
  3222. fi
  3223. ac_ext=cpp
  3224. ac_cpp='$CXXCPP $CPPFLAGS'
  3225. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3226. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3227. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3228. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  3229. ac_ext=cpp
  3230. ac_cpp='$CXXCPP $CPPFLAGS'
  3231. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3232. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3233. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3234. ac_success=no
  3235. if test x$ac_success = xno; then
  3236. for alternative in ${ax_cxx_compile_alternatives}; do
  3237. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  3238. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  3239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  3240. printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
  3241. if eval test \${$cachevar+y}
  3242. then :
  3243. printf %s "(cached) " >&6
  3244. else $as_nop
  3245. ac_save_CXX="$CXX"
  3246. CXX="$CXX $switch"
  3247. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3248. /* end build/confdefs.h. */
  3249. // If the compiler admits that it is not ready for C++11, why torture it?
  3250. // Hopefully, this will speed up the test.
  3251. #ifndef __cplusplus
  3252. #error "This is not a C++ compiler"
  3253. #elif __cplusplus < 201103L
  3254. #error "This is not a C++11 compiler"
  3255. #else
  3256. namespace cxx11
  3257. {
  3258. namespace test_static_assert
  3259. {
  3260. template <typename T>
  3261. struct check
  3262. {
  3263. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3264. };
  3265. }
  3266. namespace test_final_override
  3267. {
  3268. struct Base
  3269. {
  3270. virtual void f() {}
  3271. };
  3272. struct Derived : public Base
  3273. {
  3274. virtual void f() override {}
  3275. };
  3276. }
  3277. namespace test_double_right_angle_brackets
  3278. {
  3279. template < typename T >
  3280. struct check {};
  3281. typedef check<void> single_type;
  3282. typedef check<check<void>> double_type;
  3283. typedef check<check<check<void>>> triple_type;
  3284. typedef check<check<check<check<void>>>> quadruple_type;
  3285. }
  3286. namespace test_decltype
  3287. {
  3288. int
  3289. f()
  3290. {
  3291. int a = 1;
  3292. decltype(a) b = 2;
  3293. return a + b;
  3294. }
  3295. }
  3296. namespace test_type_deduction
  3297. {
  3298. template < typename T1, typename T2 >
  3299. struct is_same
  3300. {
  3301. static const bool value = false;
  3302. };
  3303. template < typename T >
  3304. struct is_same<T, T>
  3305. {
  3306. static const bool value = true;
  3307. };
  3308. template < typename T1, typename T2 >
  3309. auto
  3310. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  3311. {
  3312. return a1 + a2;
  3313. }
  3314. int
  3315. test(const int c, volatile int v)
  3316. {
  3317. static_assert(is_same<int, decltype(0)>::value == true, "");
  3318. static_assert(is_same<int, decltype(c)>::value == false, "");
  3319. static_assert(is_same<int, decltype(v)>::value == false, "");
  3320. auto ac = c;
  3321. auto av = v;
  3322. auto sumi = ac + av + 'x';
  3323. auto sumf = ac + av + 1.0;
  3324. static_assert(is_same<int, decltype(ac)>::value == true, "");
  3325. static_assert(is_same<int, decltype(av)>::value == true, "");
  3326. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  3327. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  3328. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  3329. return (sumf > 0.0) ? sumi : add(c, v);
  3330. }
  3331. }
  3332. namespace test_noexcept
  3333. {
  3334. int f() { return 0; }
  3335. int g() noexcept { return 0; }
  3336. static_assert(noexcept(f()) == false, "");
  3337. static_assert(noexcept(g()) == true, "");
  3338. }
  3339. namespace test_constexpr
  3340. {
  3341. template < typename CharT >
  3342. unsigned long constexpr
  3343. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  3344. {
  3345. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  3346. }
  3347. template < typename CharT >
  3348. unsigned long constexpr
  3349. strlen_c(const CharT *const s) noexcept
  3350. {
  3351. return strlen_c_r(s, 0UL);
  3352. }
  3353. static_assert(strlen_c("") == 0UL, "");
  3354. static_assert(strlen_c("1") == 1UL, "");
  3355. static_assert(strlen_c("example") == 7UL, "");
  3356. static_assert(strlen_c("another\0example") == 7UL, "");
  3357. }
  3358. namespace test_rvalue_references
  3359. {
  3360. template < int N >
  3361. struct answer
  3362. {
  3363. static constexpr int value = N;
  3364. };
  3365. answer<1> f(int&) { return answer<1>(); }
  3366. answer<2> f(const int&) { return answer<2>(); }
  3367. answer<3> f(int&&) { return answer<3>(); }
  3368. void
  3369. test()
  3370. {
  3371. int i = 0;
  3372. const int c = 0;
  3373. static_assert(decltype(f(i))::value == 1, "");
  3374. static_assert(decltype(f(c))::value == 2, "");
  3375. static_assert(decltype(f(0))::value == 3, "");
  3376. }
  3377. }
  3378. namespace test_uniform_initialization
  3379. {
  3380. struct test
  3381. {
  3382. static const int zero {};
  3383. static const int one {1};
  3384. };
  3385. static_assert(test::zero == 0, "");
  3386. static_assert(test::one == 1, "");
  3387. }
  3388. namespace test_lambdas
  3389. {
  3390. void
  3391. test1()
  3392. {
  3393. auto lambda1 = [](){};
  3394. auto lambda2 = lambda1;
  3395. lambda1();
  3396. lambda2();
  3397. }
  3398. int
  3399. test2()
  3400. {
  3401. auto a = [](int i, int j){ return i + j; }(1, 2);
  3402. auto b = []() -> int { return '0'; }();
  3403. auto c = [=](){ return a + b; }();
  3404. auto d = [&](){ return c; }();
  3405. auto e = [a, &b](int x) mutable {
  3406. const auto identity = [](int y){ return y; };
  3407. for (auto i = 0; i < a; ++i)
  3408. a += b--;
  3409. return x + identity(a + b);
  3410. }(0);
  3411. return a + b + c + d + e;
  3412. }
  3413. int
  3414. test3()
  3415. {
  3416. const auto nullary = [](){ return 0; };
  3417. const auto unary = [](int x){ return x; };
  3418. using nullary_t = decltype(nullary);
  3419. using unary_t = decltype(unary);
  3420. const auto higher1st = [](nullary_t f){ return f(); };
  3421. const auto higher2nd = [unary](nullary_t f1){
  3422. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  3423. };
  3424. return higher1st(nullary) + higher2nd(nullary)(unary);
  3425. }
  3426. }
  3427. namespace test_variadic_templates
  3428. {
  3429. template <int...>
  3430. struct sum;
  3431. template <int N0, int... N1toN>
  3432. struct sum<N0, N1toN...>
  3433. {
  3434. static constexpr auto value = N0 + sum<N1toN...>::value;
  3435. };
  3436. template <>
  3437. struct sum<>
  3438. {
  3439. static constexpr auto value = 0;
  3440. };
  3441. static_assert(sum<>::value == 0, "");
  3442. static_assert(sum<1>::value == 1, "");
  3443. static_assert(sum<23>::value == 23, "");
  3444. static_assert(sum<1, 2>::value == 3, "");
  3445. static_assert(sum<5, 5, 11>::value == 21, "");
  3446. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  3447. }
  3448. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3449. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  3450. // because of this.
  3451. namespace test_template_alias_sfinae
  3452. {
  3453. struct foo {};
  3454. template<typename T>
  3455. using member = typename T::member_type;
  3456. template<typename T>
  3457. void func(...) {}
  3458. template<typename T>
  3459. void func(member<T>*) {}
  3460. void test();
  3461. void test() { func<foo>(0); }
  3462. }
  3463. } // namespace cxx11
  3464. #endif // __cplusplus >= 201103L
  3465. _ACEOF
  3466. if ac_fn_cxx_try_compile "$LINENO"
  3467. then :
  3468. eval $cachevar=yes
  3469. else $as_nop
  3470. eval $cachevar=no
  3471. fi
  3472. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3473. CXX="$ac_save_CXX"
  3474. fi
  3475. eval ac_res=\$$cachevar
  3476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3477. printf "%s\n" "$ac_res" >&6; }
  3478. if eval test x\$$cachevar = xyes; then
  3479. CXX="$CXX $switch"
  3480. if test -n "$CXXCPP" ; then
  3481. CXXCPP="$CXXCPP $switch"
  3482. fi
  3483. ac_success=yes
  3484. break
  3485. fi
  3486. done
  3487. if test x$ac_success = xyes; then
  3488. break
  3489. fi
  3490. done
  3491. fi
  3492. ac_ext=cpp
  3493. ac_cpp='$CXXCPP $CPPFLAGS'
  3494. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3495. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3496. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3497. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3498. if test x$ac_success = xno; then
  3499. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3500. fi
  3501. fi
  3502. if test x$ac_success = xno; then
  3503. HAVE_CXX11=0
  3504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3505. printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
  3506. else
  3507. HAVE_CXX11=1
  3508. printf "%s\n" "#define HAVE_CXX11 1" >>build/confdefs.h
  3509. fi
  3510. ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=false
  3511. ac_ext=cpp
  3512. ac_cpp='$CXXCPP $CPPFLAGS'
  3513. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3514. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3515. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3516. ac_success=no
  3517. if test x$ac_success = xno; then
  3518. for alternative in ${ax_cxx_compile_alternatives}; do
  3519. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  3520. cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
  3521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
  3522. printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; }
  3523. if eval test \${$cachevar+y}
  3524. then :
  3525. printf %s "(cached) " >&6
  3526. else $as_nop
  3527. ac_save_CXX="$CXX"
  3528. CXX="$CXX $switch"
  3529. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3530. /* end build/confdefs.h. */
  3531. // If the compiler admits that it is not ready for C++11, why torture it?
  3532. // Hopefully, this will speed up the test.
  3533. #ifndef __cplusplus
  3534. #error "This is not a C++ compiler"
  3535. #elif __cplusplus < 201103L
  3536. #error "This is not a C++11 compiler"
  3537. #else
  3538. namespace cxx11
  3539. {
  3540. namespace test_static_assert
  3541. {
  3542. template <typename T>
  3543. struct check
  3544. {
  3545. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3546. };
  3547. }
  3548. namespace test_final_override
  3549. {
  3550. struct Base
  3551. {
  3552. virtual void f() {}
  3553. };
  3554. struct Derived : public Base
  3555. {
  3556. virtual void f() override {}
  3557. };
  3558. }
  3559. namespace test_double_right_angle_brackets
  3560. {
  3561. template < typename T >
  3562. struct check {};
  3563. typedef check<void> single_type;
  3564. typedef check<check<void>> double_type;
  3565. typedef check<check<check<void>>> triple_type;
  3566. typedef check<check<check<check<void>>>> quadruple_type;
  3567. }
  3568. namespace test_decltype
  3569. {
  3570. int
  3571. f()
  3572. {
  3573. int a = 1;
  3574. decltype(a) b = 2;
  3575. return a + b;
  3576. }
  3577. }
  3578. namespace test_type_deduction
  3579. {
  3580. template < typename T1, typename T2 >
  3581. struct is_same
  3582. {
  3583. static const bool value = false;
  3584. };
  3585. template < typename T >
  3586. struct is_same<T, T>
  3587. {
  3588. static const bool value = true;
  3589. };
  3590. template < typename T1, typename T2 >
  3591. auto
  3592. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  3593. {
  3594. return a1 + a2;
  3595. }
  3596. int
  3597. test(const int c, volatile int v)
  3598. {
  3599. static_assert(is_same<int, decltype(0)>::value == true, "");
  3600. static_assert(is_same<int, decltype(c)>::value == false, "");
  3601. static_assert(is_same<int, decltype(v)>::value == false, "");
  3602. auto ac = c;
  3603. auto av = v;
  3604. auto sumi = ac + av + 'x';
  3605. auto sumf = ac + av + 1.0;
  3606. static_assert(is_same<int, decltype(ac)>::value == true, "");
  3607. static_assert(is_same<int, decltype(av)>::value == true, "");
  3608. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  3609. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  3610. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  3611. return (sumf > 0.0) ? sumi : add(c, v);
  3612. }
  3613. }
  3614. namespace test_noexcept
  3615. {
  3616. int f() { return 0; }
  3617. int g() noexcept { return 0; }
  3618. static_assert(noexcept(f()) == false, "");
  3619. static_assert(noexcept(g()) == true, "");
  3620. }
  3621. namespace test_constexpr
  3622. {
  3623. template < typename CharT >
  3624. unsigned long constexpr
  3625. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  3626. {
  3627. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  3628. }
  3629. template < typename CharT >
  3630. unsigned long constexpr
  3631. strlen_c(const CharT *const s) noexcept
  3632. {
  3633. return strlen_c_r(s, 0UL);
  3634. }
  3635. static_assert(strlen_c("") == 0UL, "");
  3636. static_assert(strlen_c("1") == 1UL, "");
  3637. static_assert(strlen_c("example") == 7UL, "");
  3638. static_assert(strlen_c("another\0example") == 7UL, "");
  3639. }
  3640. namespace test_rvalue_references
  3641. {
  3642. template < int N >
  3643. struct answer
  3644. {
  3645. static constexpr int value = N;
  3646. };
  3647. answer<1> f(int&) { return answer<1>(); }
  3648. answer<2> f(const int&) { return answer<2>(); }
  3649. answer<3> f(int&&) { return answer<3>(); }
  3650. void
  3651. test()
  3652. {
  3653. int i = 0;
  3654. const int c = 0;
  3655. static_assert(decltype(f(i))::value == 1, "");
  3656. static_assert(decltype(f(c))::value == 2, "");
  3657. static_assert(decltype(f(0))::value == 3, "");
  3658. }
  3659. }
  3660. namespace test_uniform_initialization
  3661. {
  3662. struct test
  3663. {
  3664. static const int zero {};
  3665. static const int one {1};
  3666. };
  3667. static_assert(test::zero == 0, "");
  3668. static_assert(test::one == 1, "");
  3669. }
  3670. namespace test_lambdas
  3671. {
  3672. void
  3673. test1()
  3674. {
  3675. auto lambda1 = [](){};
  3676. auto lambda2 = lambda1;
  3677. lambda1();
  3678. lambda2();
  3679. }
  3680. int
  3681. test2()
  3682. {
  3683. auto a = [](int i, int j){ return i + j; }(1, 2);
  3684. auto b = []() -> int { return '0'; }();
  3685. auto c = [=](){ return a + b; }();
  3686. auto d = [&](){ return c; }();
  3687. auto e = [a, &b](int x) mutable {
  3688. const auto identity = [](int y){ return y; };
  3689. for (auto i = 0; i < a; ++i)
  3690. a += b--;
  3691. return x + identity(a + b);
  3692. }(0);
  3693. return a + b + c + d + e;
  3694. }
  3695. int
  3696. test3()
  3697. {
  3698. const auto nullary = [](){ return 0; };
  3699. const auto unary = [](int x){ return x; };
  3700. using nullary_t = decltype(nullary);
  3701. using unary_t = decltype(unary);
  3702. const auto higher1st = [](nullary_t f){ return f(); };
  3703. const auto higher2nd = [unary](nullary_t f1){
  3704. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  3705. };
  3706. return higher1st(nullary) + higher2nd(nullary)(unary);
  3707. }
  3708. }
  3709. namespace test_variadic_templates
  3710. {
  3711. template <int...>
  3712. struct sum;
  3713. template <int N0, int... N1toN>
  3714. struct sum<N0, N1toN...>
  3715. {
  3716. static constexpr auto value = N0 + sum<N1toN...>::value;
  3717. };
  3718. template <>
  3719. struct sum<>
  3720. {
  3721. static constexpr auto value = 0;
  3722. };
  3723. static_assert(sum<>::value == 0, "");
  3724. static_assert(sum<1>::value == 1, "");
  3725. static_assert(sum<23>::value == 23, "");
  3726. static_assert(sum<1, 2>::value == 3, "");
  3727. static_assert(sum<5, 5, 11>::value == 21, "");
  3728. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  3729. }
  3730. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3731. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  3732. // because of this.
  3733. namespace test_template_alias_sfinae
  3734. {
  3735. struct foo {};
  3736. template<typename T>
  3737. using member = typename T::member_type;
  3738. template<typename T>
  3739. void func(...) {}
  3740. template<typename T>
  3741. void func(member<T>*) {}
  3742. void test();
  3743. void test() { func<foo>(0); }
  3744. }
  3745. } // namespace cxx11
  3746. #endif // __cplusplus >= 201103L
  3747. // If the compiler admits that it is not ready for C++14, why torture it?
  3748. // Hopefully, this will speed up the test.
  3749. #ifndef __cplusplus
  3750. #error "This is not a C++ compiler"
  3751. #elif __cplusplus < 201402L
  3752. #error "This is not a C++14 compiler"
  3753. #else
  3754. namespace cxx14
  3755. {
  3756. namespace test_polymorphic_lambdas
  3757. {
  3758. int
  3759. test()
  3760. {
  3761. const auto lambda = [](auto&&... args){
  3762. const auto istiny = [](auto x){
  3763. return (sizeof(x) == 1UL) ? 1 : 0;
  3764. };
  3765. const int aretiny[] = { istiny(args)... };
  3766. return aretiny[0];
  3767. };
  3768. return lambda(1, 1L, 1.0f, '1');
  3769. }
  3770. }
  3771. namespace test_binary_literals
  3772. {
  3773. constexpr auto ivii = 0b0000000000101010;
  3774. static_assert(ivii == 42, "wrong value");
  3775. }
  3776. namespace test_generalized_constexpr
  3777. {
  3778. template < typename CharT >
  3779. constexpr unsigned long
  3780. strlen_c(const CharT *const s) noexcept
  3781. {
  3782. auto length = 0UL;
  3783. for (auto p = s; *p; ++p)
  3784. ++length;
  3785. return length;
  3786. }
  3787. static_assert(strlen_c("") == 0UL, "");
  3788. static_assert(strlen_c("x") == 1UL, "");
  3789. static_assert(strlen_c("test") == 4UL, "");
  3790. static_assert(strlen_c("another\0test") == 7UL, "");
  3791. }
  3792. namespace test_lambda_init_capture
  3793. {
  3794. int
  3795. test()
  3796. {
  3797. auto x = 0;
  3798. const auto lambda1 = [a = x](int b){ return a + b; };
  3799. const auto lambda2 = [a = lambda1(x)](){ return a; };
  3800. return lambda2();
  3801. }
  3802. }
  3803. namespace test_digit_separators
  3804. {
  3805. constexpr auto ten_million = 100'000'000;
  3806. static_assert(ten_million == 100000000, "");
  3807. }
  3808. namespace test_return_type_deduction
  3809. {
  3810. auto f(int& x) { return x; }
  3811. decltype(auto) g(int& x) { return x; }
  3812. template < typename T1, typename T2 >
  3813. struct is_same
  3814. {
  3815. static constexpr auto value = false;
  3816. };
  3817. template < typename T >
  3818. struct is_same<T, T>
  3819. {
  3820. static constexpr auto value = true;
  3821. };
  3822. int
  3823. test()
  3824. {
  3825. auto x = 0;
  3826. static_assert(is_same<int, decltype(f(x))>::value, "");
  3827. static_assert(is_same<int&, decltype(g(x))>::value, "");
  3828. return x;
  3829. }
  3830. }
  3831. } // namespace cxx14
  3832. #endif // __cplusplus >= 201402L
  3833. _ACEOF
  3834. if ac_fn_cxx_try_compile "$LINENO"
  3835. then :
  3836. eval $cachevar=yes
  3837. else $as_nop
  3838. eval $cachevar=no
  3839. fi
  3840. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3841. CXX="$ac_save_CXX"
  3842. fi
  3843. eval ac_res=\$$cachevar
  3844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3845. printf "%s\n" "$ac_res" >&6; }
  3846. if eval test x\$$cachevar = xyes; then
  3847. CXX="$CXX $switch"
  3848. if test -n "$CXXCPP" ; then
  3849. CXXCPP="$CXXCPP $switch"
  3850. fi
  3851. ac_success=yes
  3852. break
  3853. fi
  3854. done
  3855. if test x$ac_success = xyes; then
  3856. break
  3857. fi
  3858. done
  3859. fi
  3860. ac_ext=cpp
  3861. ac_cpp='$CXXCPP $CPPFLAGS'
  3862. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3863. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3864. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3865. if test x$ax_cxx_compile_cxx14_required = xtrue; then
  3866. if test x$ac_success = xno; then
  3867. as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
  3868. fi
  3869. fi
  3870. if test x$ac_success = xno; then
  3871. HAVE_CXX14=0
  3872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
  3873. printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;}
  3874. else
  3875. HAVE_CXX14=1
  3876. printf "%s\n" "#define HAVE_CXX14 1" >>build/confdefs.h
  3877. fi
  3878. if test "${cross_compiling-x}" = "x"
  3879. then
  3880. cat << 'EOF' >&2
  3881. configure: error:
  3882. This system does not appear to have a working C compiler.
  3883. A working C compiler is required to compile Wraith.
  3884. EOF
  3885. exit 1
  3886. fi
  3887. if test -n "$GXX"; then
  3888. CXXFLAGS="$CXXFLAGS"
  3889. fi
  3890. #CXX_RPATH_CHECK
  3891. #checkpoint
  3892. cat >confcache <<\_ACEOF
  3893. # This file is a shell script that caches the results of configure
  3894. # tests run on this system so they can be shared between configure
  3895. # scripts and configure runs, see configure's option --config-cache.
  3896. # It is not useful on other systems. If it contains results you don't
  3897. # want to keep, you may remove or edit it.
  3898. #
  3899. # build/config.status only pays attention to the cache file if you give it
  3900. # the --recheck option to rerun configure.
  3901. #
  3902. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3903. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3904. # following values.
  3905. _ACEOF
  3906. # The following way of writing the cache mishandles newlines in values,
  3907. # but we know of no workaround that is simple, portable, and efficient.
  3908. # So, we kill variables containing newlines.
  3909. # Ultrix sh set writes to stderr and can't be redirected directly,
  3910. # and sets the high bit in the cache file unless we assign to the vars.
  3911. (
  3912. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3913. eval ac_val=\$$ac_var
  3914. case $ac_val in #(
  3915. *${as_nl}*)
  3916. case $ac_var in #(
  3917. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3918. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3919. esac
  3920. case $ac_var in #(
  3921. _ | IFS | as_nl) ;; #(
  3922. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3923. *) { eval $ac_var=; unset $ac_var;} ;;
  3924. esac ;;
  3925. esac
  3926. done
  3927. (set) 2>&1 |
  3928. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3929. *${as_nl}ac_space=\ *)
  3930. # `set' does not quote correctly, so add quotes: double-quote
  3931. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3932. sed -n \
  3933. "s/'/'\\\\''/g;
  3934. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3935. ;; #(
  3936. *)
  3937. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3938. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3939. ;;
  3940. esac |
  3941. sort
  3942. ) |
  3943. sed '
  3944. /^ac_cv_env_/b end
  3945. t clear
  3946. :clear
  3947. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  3948. t end
  3949. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3950. :end' >>confcache
  3951. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3952. if test -w "$cache_file"; then
  3953. if test "x$cache_file" != "x/dev/null"; then
  3954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3955. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  3956. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3957. cat confcache >"$cache_file"
  3958. else
  3959. case $cache_file in #(
  3960. */* | ?:*)
  3961. mv -f confcache "$cache_file"$$ &&
  3962. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3963. *)
  3964. mv -f confcache "$cache_file" ;;
  3965. esac
  3966. fi
  3967. fi
  3968. else
  3969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3970. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  3971. fi
  3972. fi
  3973. rm -f confcache
  3974. # Speedup compile
  3975. if test -n "$GXX" && test -z "$no_wall"; then
  3976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3977. printf %s "checking whether the compiler understands -Wall... " >&6; }
  3978. if test ${egg_cv_var_ccwall+y}
  3979. then :
  3980. printf %s "(cached) " >&6
  3981. else $as_nop
  3982. ac_old_CXXFLAGS="$CXXFLAGS"
  3983. CXXFLAGS="$CXXFLAGS -Wall"
  3984. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3985. /* end build/confdefs.h. */
  3986. int main ()
  3987. {
  3988. return(0);
  3989. }
  3990. _ACEOF
  3991. if ac_fn_cxx_try_compile "$LINENO"
  3992. then :
  3993. egg_cv_var_ccwall="yes"
  3994. else $as_nop
  3995. egg_cv_var_ccwall="no"
  3996. fi
  3997. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3998. CXXFLAGS="$ac_old_CXXFLAGS"
  3999. fi
  4000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  4001. printf "%s\n" "$egg_cv_var_ccwall" >&6; }
  4002. if test "$egg_cv_var_ccwall" = "yes"; then
  4003. CXXFLAGS="$CXXFLAGS -Wall"
  4004. fi
  4005. fi
  4006. if test -n "$GXX" && test -z "$no_pipe"; then
  4007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  4008. printf %s "checking whether the compiler understands -pipe... " >&6; }
  4009. if test ${egg_cv_var_ccpipe+y}
  4010. then :
  4011. printf %s "(cached) " >&6
  4012. else $as_nop
  4013. ac_old_CXX="$CXX"
  4014. CXX="$CXX -pipe"
  4015. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end build/confdefs.h. */
  4017. int main ()
  4018. {
  4019. return(0);
  4020. }
  4021. _ACEOF
  4022. if ac_fn_cxx_try_compile "$LINENO"
  4023. then :
  4024. egg_cv_var_ccpipe="yes"
  4025. else $as_nop
  4026. egg_cv_var_ccpipe="no"
  4027. fi
  4028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4029. CXX="$ac_old_CXX"
  4030. fi
  4031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  4032. printf "%s\n" "$egg_cv_var_ccpipe" >&6; }
  4033. if test "$egg_cv_var_ccpipe" = "yes"; then
  4034. CXX="$CXX -pipe"
  4035. fi
  4036. fi
  4037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  4038. printf %s "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  4039. if test ${ax_cv_prog_cc_colordiagnostics+y}
  4040. then :
  4041. printf %s "(cached) " >&6
  4042. else $as_nop
  4043. ac_ext=cpp
  4044. ac_cpp='$CXXCPP $CPPFLAGS'
  4045. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4046. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4047. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4048. ac_saved_flags="$CXXFLAGS"
  4049. CXXFLAGS="-Werror -fcolor-diagnostics"
  4050. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4051. /* end build/confdefs.h. */
  4052. int
  4053. main (void)
  4054. {
  4055. ;
  4056. return 0;
  4057. }
  4058. _ACEOF
  4059. if ac_fn_cxx_try_compile "$LINENO"
  4060. then :
  4061. ax_cv_prog_cc_colordiagnostics="yes"
  4062. else $as_nop
  4063. ax_cv_prog_cc_colordiagnostics="no"
  4064. fi
  4065. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4066. CXXFLAGS="$ac_saved_flags"
  4067. ac_ext=cpp
  4068. ac_cpp='$CXXCPP $CPPFLAGS'
  4069. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4070. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4071. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4072. fi
  4073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  4074. printf "%s\n" "$ax_cv_prog_cc_colordiagnostics" >&6; }
  4075. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  4076. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  4077. elif [ -n "" ]; then
  4078. cat << 'EOF' >&2
  4079. configure: error:
  4080. Your OS or C++ compiler does not support -fcolor-diagnostics.
  4081. This compile flag is required.
  4082. EOF
  4083. exit 1
  4084. fi
  4085. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  4086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  4087. printf %s "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  4088. if test ${ax_cv_prog_cc_invalid_source_encoding+y}
  4089. then :
  4090. printf %s "(cached) " >&6
  4091. else $as_nop
  4092. ac_ext=cpp
  4093. ac_cpp='$CXXCPP $CPPFLAGS'
  4094. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4095. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4096. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4097. ac_saved_flags="$CXXFLAGS"
  4098. CXXFLAGS="-Werror -Winvalid-source-encoding"
  4099. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4100. /* end build/confdefs.h. */
  4101. int
  4102. main (void)
  4103. {
  4104. ;
  4105. return 0;
  4106. }
  4107. _ACEOF
  4108. if ac_fn_cxx_try_compile "$LINENO"
  4109. then :
  4110. ax_cv_prog_cc_invalid_source_encoding="yes"
  4111. else $as_nop
  4112. ax_cv_prog_cc_invalid_source_encoding="no"
  4113. fi
  4114. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4115. CXXFLAGS="$ac_saved_flags"
  4116. ac_ext=cpp
  4117. ac_cpp='$CXXCPP $CPPFLAGS'
  4118. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4119. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4120. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4121. fi
  4122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  4123. printf "%s\n" "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  4124. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  4125. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  4126. elif [ -n "" ]; then
  4127. cat << 'EOF' >&2
  4128. configure: error:
  4129. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  4130. This compile flag is required.
  4131. EOF
  4132. exit 1
  4133. fi
  4134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-narrowing" >&5
  4135. printf %s "checking whether the compiler understands -Wno-narrowing... " >&6; }
  4136. if test ${ax_cv_prog_cc_nonarrowing+y}
  4137. then :
  4138. printf %s "(cached) " >&6
  4139. else $as_nop
  4140. ac_ext=cpp
  4141. ac_cpp='$CXXCPP $CPPFLAGS'
  4142. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4143. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4144. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4145. ac_saved_flags="$CXXFLAGS"
  4146. CXXFLAGS="-Werror -Wnarrowing"
  4147. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4148. /* end build/confdefs.h. */
  4149. int
  4150. main (void)
  4151. {
  4152. ;
  4153. return 0;
  4154. }
  4155. _ACEOF
  4156. if ac_fn_cxx_try_compile "$LINENO"
  4157. then :
  4158. ax_cv_prog_cc_nonarrowing="yes"
  4159. else $as_nop
  4160. ax_cv_prog_cc_nonarrowing="no"
  4161. fi
  4162. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4163. CXXFLAGS="$ac_saved_flags"
  4164. ac_ext=cpp
  4165. ac_cpp='$CXXCPP $CPPFLAGS'
  4166. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4167. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4168. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4169. fi
  4170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_nonarrowing" >&5
  4171. printf "%s\n" "$ax_cv_prog_cc_nonarrowing" >&6; }
  4172. if [ "$ax_cv_prog_cc_nonarrowing" = "yes" ]; then
  4173. CXXFLAGS="$CXXFLAGS -Wno-narrowing"
  4174. elif [ -n "" ]; then
  4175. cat << 'EOF' >&2
  4176. configure: error:
  4177. Your OS or C++ compiler does not support -Wno-narrowing.
  4178. This compile flag is required.
  4179. EOF
  4180. exit 1
  4181. fi
  4182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-cast-function-type" >&5
  4183. printf %s "checking whether the compiler understands -Wno-cast-function-type... " >&6; }
  4184. if test ${ax_cv_prog_cc_no_cast_function_type+y}
  4185. then :
  4186. printf %s "(cached) " >&6
  4187. else $as_nop
  4188. ac_ext=cpp
  4189. ac_cpp='$CXXCPP $CPPFLAGS'
  4190. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4191. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4192. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4193. ac_saved_flags="$CXXFLAGS"
  4194. CXXFLAGS="-Werror -Wcast-function-type"
  4195. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4196. /* end build/confdefs.h. */
  4197. int
  4198. main (void)
  4199. {
  4200. ;
  4201. return 0;
  4202. }
  4203. _ACEOF
  4204. if ac_fn_cxx_try_compile "$LINENO"
  4205. then :
  4206. ax_cv_prog_cc_no_cast_function_type="yes"
  4207. else $as_nop
  4208. ax_cv_prog_cc_no_cast_function_type="no"
  4209. fi
  4210. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4211. CXXFLAGS="$ac_saved_flags"
  4212. ac_ext=cpp
  4213. ac_cpp='$CXXCPP $CPPFLAGS'
  4214. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4215. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4216. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4217. fi
  4218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_no_cast_function_type" >&5
  4219. printf "%s\n" "$ax_cv_prog_cc_no_cast_function_type" >&6; }
  4220. if [ "$ax_cv_prog_cc_no_cast_function_type" = "yes" ]; then
  4221. CXXFLAGS="$CXXFLAGS -Wno-cast-function-type"
  4222. elif [ -n "" ]; then
  4223. cat << 'EOF' >&2
  4224. configure: error:
  4225. Your OS or C++ compiler does not support -Wno-cast-function-type.
  4226. This compile flag is required.
  4227. EOF
  4228. exit 1
  4229. fi
  4230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wimplicit-fallthrough=0" >&5
  4231. printf %s "checking whether the compiler understands -Wimplicit-fallthrough=0... " >&6; }
  4232. if test ${ax_cv_prog_cc_wimplicit_fallthrough+y}
  4233. then :
  4234. printf %s "(cached) " >&6
  4235. else $as_nop
  4236. ac_ext=cpp
  4237. ac_cpp='$CXXCPP $CPPFLAGS'
  4238. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4239. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4240. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4241. ac_saved_flags="$CXXFLAGS"
  4242. CXXFLAGS="-Werror -Wimplicit-fallthrough=0"
  4243. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4244. /* end build/confdefs.h. */
  4245. int
  4246. main (void)
  4247. {
  4248. ;
  4249. return 0;
  4250. }
  4251. _ACEOF
  4252. if ac_fn_cxx_try_compile "$LINENO"
  4253. then :
  4254. ax_cv_prog_cc_wimplicit_fallthrough="yes"
  4255. else $as_nop
  4256. ax_cv_prog_cc_wimplicit_fallthrough="no"
  4257. fi
  4258. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4259. CXXFLAGS="$ac_saved_flags"
  4260. ac_ext=cpp
  4261. ac_cpp='$CXXCPP $CPPFLAGS'
  4262. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4263. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4264. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4265. fi
  4266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wimplicit_fallthrough" >&5
  4267. printf "%s\n" "$ax_cv_prog_cc_wimplicit_fallthrough" >&6; }
  4268. if [ "$ax_cv_prog_cc_wimplicit_fallthrough" = "yes" ]; then
  4269. CXXFLAGS="$CXXFLAGS -Wimplicit-fallthrough=0"
  4270. elif [ -n "" ]; then
  4271. cat << 'EOF' >&2
  4272. configure: error:
  4273. Your OS or C++ compiler does not support -Wimplicit-fallthrough=0.
  4274. This compile flag is required.
  4275. EOF
  4276. exit 1
  4277. fi
  4278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  4279. printf %s "checking whether the compiler understands -fstack-protector... " >&6; }
  4280. if test ${ax_cv_prog_cc_stackprotector+y}
  4281. then :
  4282. printf %s "(cached) " >&6
  4283. else $as_nop
  4284. ac_ext=cpp
  4285. ac_cpp='$CXXCPP $CPPFLAGS'
  4286. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4287. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4288. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4289. ac_saved_flags="$CXXFLAGS"
  4290. CXXFLAGS="-Werror -fstack-protector"
  4291. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4292. /* end build/confdefs.h. */
  4293. int
  4294. main (void)
  4295. {
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_cxx_try_compile "$LINENO"
  4301. then :
  4302. ax_cv_prog_cc_stackprotector="yes"
  4303. else $as_nop
  4304. ax_cv_prog_cc_stackprotector="no"
  4305. fi
  4306. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4307. CXXFLAGS="$ac_saved_flags"
  4308. ac_ext=cpp
  4309. ac_cpp='$CXXCPP $CPPFLAGS'
  4310. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4311. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4313. fi
  4314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  4315. printf "%s\n" "$ax_cv_prog_cc_stackprotector" >&6; }
  4316. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  4317. CXXFLAGS="$CXXFLAGS -fstack-protector"
  4318. elif [ -n "" ]; then
  4319. cat << 'EOF' >&2
  4320. configure: error:
  4321. Your OS or C++ compiler does not support -fstack-protector.
  4322. This compile flag is required.
  4323. EOF
  4324. exit 1
  4325. fi
  4326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  4327. printf %s "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  4328. if test ${ax_cv_prog_cc_stackprotectorstrong+y}
  4329. then :
  4330. printf %s "(cached) " >&6
  4331. else $as_nop
  4332. ac_ext=cpp
  4333. ac_cpp='$CXXCPP $CPPFLAGS'
  4334. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4335. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4336. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4337. ac_saved_flags="$CXXFLAGS"
  4338. CXXFLAGS="-Werror -fstack-protector-strong"
  4339. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4340. /* end build/confdefs.h. */
  4341. int
  4342. main (void)
  4343. {
  4344. ;
  4345. return 0;
  4346. }
  4347. _ACEOF
  4348. if ac_fn_cxx_try_compile "$LINENO"
  4349. then :
  4350. ax_cv_prog_cc_stackprotectorstrong="yes"
  4351. else $as_nop
  4352. ax_cv_prog_cc_stackprotectorstrong="no"
  4353. fi
  4354. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4355. CXXFLAGS="$ac_saved_flags"
  4356. ac_ext=cpp
  4357. ac_cpp='$CXXCPP $CPPFLAGS'
  4358. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4359. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4360. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4361. fi
  4362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  4363. printf "%s\n" "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  4364. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  4365. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  4366. elif [ -n "" ]; then
  4367. cat << 'EOF' >&2
  4368. configure: error:
  4369. Your OS or C++ compiler does not support -fstack-protector-strong.
  4370. This compile flag is required.
  4371. EOF
  4372. exit 1
  4373. fi
  4374. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  4375. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  4376. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  4377. LDFLAGS="${LDFLAGS} -fstack-protector"
  4378. fi
  4379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  4380. printf %s "checking whether the compiler understands -Og... " >&6; }
  4381. if test ${ax_cv_prog_cc_Og+y}
  4382. then :
  4383. printf %s "(cached) " >&6
  4384. else $as_nop
  4385. ac_ext=cpp
  4386. ac_cpp='$CXXCPP $CPPFLAGS'
  4387. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4388. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4389. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4390. ac_saved_flags="$CXXFLAGS"
  4391. CXXFLAGS="-Werror -Og"
  4392. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4393. /* end build/confdefs.h. */
  4394. int
  4395. main (void)
  4396. {
  4397. ;
  4398. return 0;
  4399. }
  4400. _ACEOF
  4401. if ac_fn_cxx_try_compile "$LINENO"
  4402. then :
  4403. ax_cv_prog_cc_Og="yes"
  4404. else $as_nop
  4405. ax_cv_prog_cc_Og="no"
  4406. fi
  4407. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4408. CXXFLAGS="$ac_saved_flags"
  4409. ac_ext=cpp
  4410. ac_cpp='$CXXCPP $CPPFLAGS'
  4411. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4412. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4413. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4414. fi
  4415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  4416. printf "%s\n" "$ax_cv_prog_cc_Og" >&6; }
  4417. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  4418. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  4419. elif [ -n "" ]; then
  4420. cat << 'EOF' >&2
  4421. configure: error:
  4422. Your OS or C++ compiler does not support -Og.
  4423. This compile flag is required.
  4424. EOF
  4425. exit 1
  4426. fi
  4427. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  4428. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  4429. fi
  4430. #CXX_FLAG_CHECK_LINK([DEBCXXFLAGS], [-fsanitize=address], [fsanitize_address])
  4431. #if [[ "${ax_cv_prog_cc_fsanitize_address}" = "yes" ]]; then
  4432. # DEBLDFLAGS="${DEBLDFLAGS} -fsanitize=address"
  4433. # DEBCXXFLAGS="${DEBCXXFLAGS} -D__SANITIZE_ADDRESS__"
  4434. #fi
  4435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  4436. printf %s "checking whether the compiler understands -fstack-protector-all... " >&6; }
  4437. if test ${ax_cv_prog_cc_stackprotectorall+y}
  4438. then :
  4439. printf %s "(cached) " >&6
  4440. else $as_nop
  4441. ac_ext=cpp
  4442. ac_cpp='$CXXCPP $CPPFLAGS'
  4443. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4444. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4445. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4446. ac_saved_flags="$CXXFLAGS"
  4447. CXXFLAGS="-Werror -fstack-protector-all"
  4448. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4449. /* end build/confdefs.h. */
  4450. int
  4451. main (void)
  4452. {
  4453. ;
  4454. return 0;
  4455. }
  4456. _ACEOF
  4457. if ac_fn_cxx_try_compile "$LINENO"
  4458. then :
  4459. ax_cv_prog_cc_stackprotectorall="yes"
  4460. else $as_nop
  4461. ax_cv_prog_cc_stackprotectorall="no"
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4464. CXXFLAGS="$ac_saved_flags"
  4465. ac_ext=cpp
  4466. ac_cpp='$CXXCPP $CPPFLAGS'
  4467. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4468. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4469. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4470. fi
  4471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  4472. printf "%s\n" "$ax_cv_prog_cc_stackprotectorall" >&6; }
  4473. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  4474. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  4475. elif [ -n "" ]; then
  4476. cat << 'EOF' >&2
  4477. configure: error:
  4478. Your OS or C++ compiler does not support -fstack-protector-all.
  4479. This compile flag is required.
  4480. EOF
  4481. exit 1
  4482. fi
  4483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const" >&5
  4484. printf %s "checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const... " >&6; }
  4485. if test ${ax_cv_prog_cc_wsuggest_attribute+y}
  4486. then :
  4487. printf %s "(cached) " >&6
  4488. else $as_nop
  4489. ac_ext=cpp
  4490. ac_cpp='$CXXCPP $CPPFLAGS'
  4491. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4492. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4493. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4494. ac_saved_flags="$CXXFLAGS"
  4495. CXXFLAGS="-Werror -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  4496. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4497. /* end build/confdefs.h. */
  4498. int
  4499. main (void)
  4500. {
  4501. ;
  4502. return 0;
  4503. }
  4504. _ACEOF
  4505. if ac_fn_cxx_try_compile "$LINENO"
  4506. then :
  4507. ax_cv_prog_cc_wsuggest_attribute="yes"
  4508. else $as_nop
  4509. ax_cv_prog_cc_wsuggest_attribute="no"
  4510. fi
  4511. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4512. CXXFLAGS="$ac_saved_flags"
  4513. ac_ext=cpp
  4514. ac_cpp='$CXXCPP $CPPFLAGS'
  4515. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4516. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4517. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4518. fi
  4519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wsuggest_attribute" >&5
  4520. printf "%s\n" "$ax_cv_prog_cc_wsuggest_attribute" >&6; }
  4521. if [ "$ax_cv_prog_cc_wsuggest_attribute" = "yes" ]; then
  4522. DEBCXXFLAGS="$DEBCXXFLAGS -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  4523. elif [ -n "" ]; then
  4524. cat << 'EOF' >&2
  4525. configure: error:
  4526. Your OS or C++ compiler does not support -Wsuggest-attribute=pure -Wsuggest-attribute=const.
  4527. This compile flag is required.
  4528. EOF
  4529. exit 1
  4530. fi
  4531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wconditional-uninitialized" >&5
  4532. printf %s "checking whether the compiler understands -Wconditional-uninitialized... " >&6; }
  4533. if test ${ax_cv_prog_cc_w_conditional_uninitialized+y}
  4534. then :
  4535. printf %s "(cached) " >&6
  4536. else $as_nop
  4537. ac_ext=cpp
  4538. ac_cpp='$CXXCPP $CPPFLAGS'
  4539. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4540. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4541. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4542. ac_saved_flags="$CXXFLAGS"
  4543. CXXFLAGS="-Werror -Wconditional-uninitialized"
  4544. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4545. /* end build/confdefs.h. */
  4546. int
  4547. main (void)
  4548. {
  4549. ;
  4550. return 0;
  4551. }
  4552. _ACEOF
  4553. if ac_fn_cxx_try_compile "$LINENO"
  4554. then :
  4555. ax_cv_prog_cc_w_conditional_uninitialized="yes"
  4556. else $as_nop
  4557. ax_cv_prog_cc_w_conditional_uninitialized="no"
  4558. fi
  4559. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4560. CXXFLAGS="$ac_saved_flags"
  4561. ac_ext=cpp
  4562. ac_cpp='$CXXCPP $CPPFLAGS'
  4563. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4564. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4565. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4566. fi
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_w_conditional_uninitialized" >&5
  4568. printf "%s\n" "$ax_cv_prog_cc_w_conditional_uninitialized" >&6; }
  4569. if [ "$ax_cv_prog_cc_w_conditional_uninitialized" = "yes" ]; then
  4570. DEBCXXFLAGS="$DEBCXXFLAGS -Wconditional-uninitialized"
  4571. elif [ -n "" ]; then
  4572. cat << 'EOF' >&2
  4573. configure: error:
  4574. Your OS or C++ compiler does not support -Wconditional-uninitialized.
  4575. This compile flag is required.
  4576. EOF
  4577. exit 1
  4578. fi
  4579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
  4580. printf %s "checking whether the compiler understands -static-libstdc++... " >&6; }
  4581. if test ${ax_cv_prog_cc_static_libstdcxx+y}
  4582. then :
  4583. printf %s "(cached) " >&6
  4584. else $as_nop
  4585. ac_ext=cpp
  4586. ac_cpp='$CXXCPP $CPPFLAGS'
  4587. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4588. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4589. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4590. ac_saved_flags="$CXXFLAGS"
  4591. CXXFLAGS="-Werror -static-libstdc++"
  4592. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4593. /* end build/confdefs.h. */
  4594. int
  4595. main (void)
  4596. {
  4597. ;
  4598. return 0;
  4599. }
  4600. _ACEOF
  4601. if ac_fn_cxx_try_compile "$LINENO"
  4602. then :
  4603. ax_cv_prog_cc_static_libstdcxx="yes"
  4604. else $as_nop
  4605. ax_cv_prog_cc_static_libstdcxx="no"
  4606. fi
  4607. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4608. CXXFLAGS="$ac_saved_flags"
  4609. ac_ext=cpp
  4610. ac_cpp='$CXXCPP $CPPFLAGS'
  4611. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4612. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4613. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4614. fi
  4615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libstdcxx" >&5
  4616. printf "%s\n" "$ax_cv_prog_cc_static_libstdcxx" >&6; }
  4617. if [ "$ax_cv_prog_cc_static_libstdcxx" = "yes" ]; then
  4618. LDFLAGS="$LDFLAGS -static-libstdc++"
  4619. elif [ -n "" ]; then
  4620. cat << 'EOF' >&2
  4621. configure: error:
  4622. Your OS or C++ compiler does not support -static-libstdc++.
  4623. This compile flag is required.
  4624. EOF
  4625. exit 1
  4626. fi
  4627. #CXX_FLAG_CHECK([LDFLAGS], [-static-libgcc], [static_libgcc])
  4628. if [ "${ax_cv_prog_cc_static_libstdcxx}" = "yes" ]; then
  4629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static libstdc++" >&5
  4630. printf %s "checking for static libstdc++... " >&6; }
  4631. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4632. /* end build/confdefs.h. */
  4633. int
  4634. main (void)
  4635. {
  4636. ;
  4637. return 0;
  4638. }
  4639. _ACEOF
  4640. if ac_fn_cxx_try_link "$LINENO"
  4641. then :
  4642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  4643. printf "%s\n" "OK" >&6; }
  4644. else $as_nop
  4645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  4646. printf "%s\n" "not found." >&6; }
  4647. as_fn_error 1 "Static libstdc++ is rquired to build." "$LINENO" 5
  4648. fi
  4649. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4650. conftest$ac_exeext conftest.$ac_ext
  4651. fi
  4652. CCDEPMODE=gcc
  4653. num=`$CXX -dumpversion | sed "s/^\([^.]*\).*/\1/" `
  4654. if [ "$num" -ge "3" ]; then
  4655. CCDEPMODE=gcc3
  4656. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -Wno-format-y2k"
  4657. GCC3_CXXFLAGS="-Woverloaded-virtual"
  4658. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute -Wwrite-strings -Wformat -Wformat-security"
  4659. fi
  4660. #checkpoint
  4661. cat >confcache <<\_ACEOF
  4662. # This file is a shell script that caches the results of configure
  4663. # tests run on this system so they can be shared between configure
  4664. # scripts and configure runs, see configure's option --config-cache.
  4665. # It is not useful on other systems. If it contains results you don't
  4666. # want to keep, you may remove or edit it.
  4667. #
  4668. # build/config.status only pays attention to the cache file if you give it
  4669. # the --recheck option to rerun configure.
  4670. #
  4671. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4672. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4673. # following values.
  4674. _ACEOF
  4675. # The following way of writing the cache mishandles newlines in values,
  4676. # but we know of no workaround that is simple, portable, and efficient.
  4677. # So, we kill variables containing newlines.
  4678. # Ultrix sh set writes to stderr and can't be redirected directly,
  4679. # and sets the high bit in the cache file unless we assign to the vars.
  4680. (
  4681. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4682. eval ac_val=\$$ac_var
  4683. case $ac_val in #(
  4684. *${as_nl}*)
  4685. case $ac_var in #(
  4686. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4687. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4688. esac
  4689. case $ac_var in #(
  4690. _ | IFS | as_nl) ;; #(
  4691. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4692. *) { eval $ac_var=; unset $ac_var;} ;;
  4693. esac ;;
  4694. esac
  4695. done
  4696. (set) 2>&1 |
  4697. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4698. *${as_nl}ac_space=\ *)
  4699. # `set' does not quote correctly, so add quotes: double-quote
  4700. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4701. sed -n \
  4702. "s/'/'\\\\''/g;
  4703. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4704. ;; #(
  4705. *)
  4706. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4707. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4708. ;;
  4709. esac |
  4710. sort
  4711. ) |
  4712. sed '
  4713. /^ac_cv_env_/b end
  4714. t clear
  4715. :clear
  4716. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  4717. t end
  4718. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4719. :end' >>confcache
  4720. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4721. if test -w "$cache_file"; then
  4722. if test "x$cache_file" != "x/dev/null"; then
  4723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4724. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  4725. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4726. cat confcache >"$cache_file"
  4727. else
  4728. case $cache_file in #(
  4729. */* | ?:*)
  4730. mv -f confcache "$cache_file"$$ &&
  4731. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4732. *)
  4733. mv -f confcache "$cache_file" ;;
  4734. esac
  4735. fi
  4736. fi
  4737. else
  4738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4739. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  4740. fi
  4741. fi
  4742. rm -f confcache
  4743. # Checks for programs
  4744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4745. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4746. set x ${MAKE-make}
  4747. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4748. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4749. then :
  4750. printf %s "(cached) " >&6
  4751. else $as_nop
  4752. cat >conftest.make <<\_ACEOF
  4753. SHELL = /bin/sh
  4754. all:
  4755. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4756. _ACEOF
  4757. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4758. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4759. *@@@%%%=?*=@@@%%%*)
  4760. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4761. *)
  4762. eval ac_cv_prog_make_${ac_make}_set=no;;
  4763. esac
  4764. rm -f conftest.make
  4765. fi
  4766. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4768. printf "%s\n" "yes" >&6; }
  4769. SET_MAKE=
  4770. else
  4771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4772. printf "%s\n" "no" >&6; }
  4773. SET_MAKE="MAKE=${MAKE-make}"
  4774. fi
  4775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4776. printf %s "checking for a sed that does not truncate output... " >&6; }
  4777. if test ${ac_cv_path_SED+y}
  4778. then :
  4779. printf %s "(cached) " >&6
  4780. else $as_nop
  4781. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4782. for ac_i in 1 2 3 4 5 6 7; do
  4783. ac_script="$ac_script$as_nl$ac_script"
  4784. done
  4785. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4786. { ac_script=; unset ac_script;}
  4787. if test -z "$SED"; then
  4788. ac_path_SED_found=false
  4789. # Loop through the user's path and test for each of PROGNAME-LIST
  4790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4791. for as_dir in $PATH
  4792. do
  4793. IFS=$as_save_IFS
  4794. case $as_dir in #(((
  4795. '') as_dir=./ ;;
  4796. */) ;;
  4797. *) as_dir=$as_dir/ ;;
  4798. esac
  4799. for ac_prog in sed gsed
  4800. do
  4801. for ac_exec_ext in '' $ac_executable_extensions; do
  4802. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4803. as_fn_executable_p "$ac_path_SED" || continue
  4804. # Check for GNU ac_path_SED and select it if it is found.
  4805. # Check for GNU $ac_path_SED
  4806. case `"$ac_path_SED" --version 2>&1` in
  4807. *GNU*)
  4808. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4809. *)
  4810. ac_count=0
  4811. printf %s 0123456789 >"conftest.in"
  4812. while :
  4813. do
  4814. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4815. mv "conftest.tmp" "conftest.in"
  4816. cp "conftest.in" "conftest.nl"
  4817. printf "%s\n" '' >> "conftest.nl"
  4818. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4819. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4820. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4821. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4822. # Best one so far, save it but keep looking for a better one
  4823. ac_cv_path_SED="$ac_path_SED"
  4824. ac_path_SED_max=$ac_count
  4825. fi
  4826. # 10*(2^10) chars as input seems more than enough
  4827. test $ac_count -gt 10 && break
  4828. done
  4829. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4830. esac
  4831. $ac_path_SED_found && break 3
  4832. done
  4833. done
  4834. done
  4835. IFS=$as_save_IFS
  4836. if test -z "$ac_cv_path_SED"; then
  4837. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4838. fi
  4839. else
  4840. ac_cv_path_SED=$SED
  4841. fi
  4842. fi
  4843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4844. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4845. SED="$ac_cv_path_SED"
  4846. rm -f conftest.sed
  4847. cat << 'EOF' > conftest.head
  4848. a
  4849. b
  4850. c
  4851. EOF
  4852. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  4853. do
  4854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  4855. printf %s "checking whether $ac_prog works... " >&6; }
  4856. if test ${ac_cv_prog_HEAD_1+y}
  4857. then :
  4858. printf %s "(cached) " >&6
  4859. else $as_nop
  4860. if test -n "$HEAD_1"
  4861. then
  4862. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  4863. else
  4864. if test "`cat conftest.head | $ac_prog`" = "a";
  4865. then
  4866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4867. printf "%s\n" "yes" >&6; }
  4868. ac_cv_prog_HEAD_1=$ac_prog
  4869. else
  4870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4871. printf "%s\n" "no" >&6; }
  4872. fi
  4873. fi
  4874. fi
  4875. test -n "$ac_cv_prog_HEAD_1" && break
  4876. done
  4877. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  4878. then
  4879. cat << 'EOF' >&2
  4880. configure: error:
  4881. This system seems to lack a working 'head -1' or 'head -n 1' command.
  4882. A working 'head -1' (or equivalent) command is required to compile Wraith.
  4883. EOF
  4884. exit 1
  4885. fi
  4886. rm -f conftest.head
  4887. HEAD_1=$ac_cv_prog_HEAD_1
  4888. # awk is needed for Tcl library and header checks, and eggdrop version subst
  4889. for ac_prog in gawk mawk nawk awk
  4890. do
  4891. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4892. set dummy $ac_prog; ac_word=$2
  4893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4894. printf %s "checking for $ac_word... " >&6; }
  4895. if test ${ac_cv_prog_AWK+y}
  4896. then :
  4897. printf %s "(cached) " >&6
  4898. else $as_nop
  4899. if test -n "$AWK"; then
  4900. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4901. else
  4902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4903. for as_dir in $PATH
  4904. do
  4905. IFS=$as_save_IFS
  4906. case $as_dir in #(((
  4907. '') as_dir=./ ;;
  4908. */) ;;
  4909. *) as_dir=$as_dir/ ;;
  4910. esac
  4911. for ac_exec_ext in '' $ac_executable_extensions; do
  4912. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4913. ac_cv_prog_AWK="$ac_prog"
  4914. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4915. break 2
  4916. fi
  4917. done
  4918. done
  4919. IFS=$as_save_IFS
  4920. fi
  4921. fi
  4922. AWK=$ac_cv_prog_AWK
  4923. if test -n "$AWK"; then
  4924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4925. printf "%s\n" "$AWK" >&6; }
  4926. else
  4927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4928. printf "%s\n" "no" >&6; }
  4929. fi
  4930. test -n "$AWK" && break
  4931. done
  4932. if test "${AWK-x}" = "x"
  4933. then
  4934. cat << 'EOF' >&2
  4935. configure: error:
  4936. This system seems to lack a working 'awk' command.
  4937. A working 'awk' command is required to compile Wraith.
  4938. EOF
  4939. exit 1
  4940. fi
  4941. # basename is needed for Tcl library and header checks
  4942. # Extract the first word of "basename", so it can be a program name with args.
  4943. set dummy basename; ac_word=$2
  4944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4945. printf %s "checking for $ac_word... " >&6; }
  4946. if test ${ac_cv_prog_BASENAME+y}
  4947. then :
  4948. printf %s "(cached) " >&6
  4949. else $as_nop
  4950. if test -n "$BASENAME"; then
  4951. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  4952. else
  4953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4954. for as_dir in $PATH
  4955. do
  4956. IFS=$as_save_IFS
  4957. case $as_dir in #(((
  4958. '') as_dir=./ ;;
  4959. */) ;;
  4960. *) as_dir=$as_dir/ ;;
  4961. esac
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4964. ac_cv_prog_BASENAME="basename"
  4965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. BASENAME=$ac_cv_prog_BASENAME
  4974. if test -n "$BASENAME"; then
  4975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  4976. printf "%s\n" "$BASENAME" >&6; }
  4977. else
  4978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. printf "%s\n" "no" >&6; }
  4980. fi
  4981. if test "${BASENAME-x}" = "x"
  4982. then
  4983. cat << 'EOF' >&2
  4984. configure: error:
  4985. This system seems to lack a working 'basename' command.
  4986. A working 'basename' command is required to compile Wraith.
  4987. EOF
  4988. exit 1
  4989. fi
  4990. # Extract the first word of "objcopy", so it can be a program name with args.
  4991. set dummy objcopy; ac_word=$2
  4992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4993. printf %s "checking for $ac_word... " >&6; }
  4994. if test ${ac_cv_prog_OBJCOPY+y}
  4995. then :
  4996. printf %s "(cached) " >&6
  4997. else $as_nop
  4998. if test -n "$OBJCOPY"; then
  4999. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  5000. else
  5001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5002. for as_dir in $PATH
  5003. do
  5004. IFS=$as_save_IFS
  5005. case $as_dir in #(((
  5006. '') as_dir=./ ;;
  5007. */) ;;
  5008. *) as_dir=$as_dir/ ;;
  5009. esac
  5010. for ac_exec_ext in '' $ac_executable_extensions; do
  5011. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5012. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  5013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5014. break 2
  5015. fi
  5016. done
  5017. done
  5018. IFS=$as_save_IFS
  5019. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  5020. fi
  5021. fi
  5022. OBJCOPY=$ac_cv_prog_OBJCOPY
  5023. if test -n "$OBJCOPY"; then
  5024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  5025. printf "%s\n" "$OBJCOPY" >&6; }
  5026. else
  5027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5028. printf "%s\n" "no" >&6; }
  5029. fi
  5030. # Extract the first word of "strip", so it can be a program name with args.
  5031. set dummy strip; ac_word=$2
  5032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5033. printf %s "checking for $ac_word... " >&6; }
  5034. if test ${ac_cv_prog_STRIP+y}
  5035. then :
  5036. printf %s "(cached) " >&6
  5037. else $as_nop
  5038. if test -n "$STRIP"; then
  5039. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5040. else
  5041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5042. for as_dir in $PATH
  5043. do
  5044. IFS=$as_save_IFS
  5045. case $as_dir in #(((
  5046. '') as_dir=./ ;;
  5047. */) ;;
  5048. *) as_dir=$as_dir/ ;;
  5049. esac
  5050. for ac_exec_ext in '' $ac_executable_extensions; do
  5051. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5052. ac_cv_prog_STRIP="strip"
  5053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5054. break 2
  5055. fi
  5056. done
  5057. done
  5058. IFS=$as_save_IFS
  5059. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  5060. fi
  5061. fi
  5062. STRIP=$ac_cv_prog_STRIP
  5063. if test -n "$STRIP"; then
  5064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5065. printf "%s\n" "$STRIP" >&6; }
  5066. else
  5067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5068. printf "%s\n" "no" >&6; }
  5069. fi
  5070. # Extract the first word of "gdiff", so it can be a program name with args.
  5071. set dummy gdiff; ac_word=$2
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5073. printf %s "checking for $ac_word... " >&6; }
  5074. if test ${ac_cv_prog_DIFF+y}
  5075. then :
  5076. printf %s "(cached) " >&6
  5077. else $as_nop
  5078. if test -n "$DIFF"; then
  5079. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  5080. else
  5081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5082. for as_dir in $PATH
  5083. do
  5084. IFS=$as_save_IFS
  5085. case $as_dir in #(((
  5086. '') as_dir=./ ;;
  5087. */) ;;
  5088. *) as_dir=$as_dir/ ;;
  5089. esac
  5090. for ac_exec_ext in '' $ac_executable_extensions; do
  5091. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5092. ac_cv_prog_DIFF="gdiff"
  5093. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5094. break 2
  5095. fi
  5096. done
  5097. done
  5098. IFS=$as_save_IFS
  5099. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  5100. fi
  5101. fi
  5102. DIFF=$ac_cv_prog_DIFF
  5103. if test -n "$DIFF"; then
  5104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  5105. printf "%s\n" "$DIFF" >&6; }
  5106. else
  5107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5108. printf "%s\n" "no" >&6; }
  5109. fi
  5110. # Extract the first word of "uname", so it can be a program name with args.
  5111. set dummy uname; ac_word=$2
  5112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5113. printf %s "checking for $ac_word... " >&6; }
  5114. if test ${ac_cv_prog_UNAME+y}
  5115. then :
  5116. printf %s "(cached) " >&6
  5117. else $as_nop
  5118. if test -n "$UNAME"; then
  5119. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  5120. else
  5121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5122. for as_dir in $PATH
  5123. do
  5124. IFS=$as_save_IFS
  5125. case $as_dir in #(((
  5126. '') as_dir=./ ;;
  5127. */) ;;
  5128. *) as_dir=$as_dir/ ;;
  5129. esac
  5130. for ac_exec_ext in '' $ac_executable_extensions; do
  5131. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5132. ac_cv_prog_UNAME="uname"
  5133. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5134. break 2
  5135. fi
  5136. done
  5137. done
  5138. IFS=$as_save_IFS
  5139. fi
  5140. fi
  5141. UNAME=$ac_cv_prog_UNAME
  5142. if test -n "$UNAME"; then
  5143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  5144. printf "%s\n" "$UNAME" >&6; }
  5145. else
  5146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5147. printf "%s\n" "no" >&6; }
  5148. fi
  5149. # Test the os and set the module linking settings
  5150. USE_STATIC=yes
  5151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  5152. printf %s "checking system type... " >&6; }
  5153. if test ${egg_cv_var_system_type+y}
  5154. then :
  5155. printf %s "(cached) " >&6
  5156. else $as_nop
  5157. egg_cv_var_system_type=`$UNAME -s`
  5158. fi
  5159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  5160. printf "%s\n" "$egg_cv_var_system_type" >&6; }
  5161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  5162. printf %s "checking system release... " >&6; }
  5163. if test ${egg_cv_var_system_release+y}
  5164. then :
  5165. printf %s "(cached) " >&6
  5166. else $as_nop
  5167. egg_cv_var_system_release=`$UNAME -r`
  5168. fi
  5169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  5170. printf "%s\n" "$egg_cv_var_system_release" >&6; }
  5171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  5172. printf %s "checking system machine... " >&6; }
  5173. if test ${egg_cv_var_system_machine+y}
  5174. then :
  5175. printf %s "(cached) " >&6
  5176. else $as_nop
  5177. egg_cv_var_system_machine=`$UNAME -m`
  5178. fi
  5179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  5180. printf "%s\n" "$egg_cv_var_system_machine" >&6; }
  5181. BUILDOS="$egg_cv_var_system_type"
  5182. BUILDARCH="$egg_cv_var_system_machine"
  5183. case "$egg_cv_var_system_type" in
  5184. BSD/OS)
  5185. ;;
  5186. IRIX)
  5187. ;;
  5188. HP-UX)
  5189. printf "%s\n" "#define MD32_XARRAY 1" >>build/confdefs.h
  5190. ;;
  5191. Ultrix)
  5192. SHELL=/bin/sh5
  5193. ;;
  5194. SINIX*)
  5195. ;;
  5196. BeOS)
  5197. ;;
  5198. Linux)
  5199. ;;
  5200. Lynx)
  5201. ;;
  5202. QNX)
  5203. ;;
  5204. OSF1)
  5205. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  5206. V*)
  5207. if test "$AWK" = "gawk"
  5208. then
  5209. AWK=awk
  5210. fi
  5211. ;;
  5212. 1.0|1.1|1.2)
  5213. printf "%s\n" "#define OSF1_HACKS 1" >>build/confdefs.h
  5214. ;;
  5215. 1.*)
  5216. printf "%s\n" "#define OSF1_HACKS 1" >>build/confdefs.h
  5217. ;;
  5218. *)
  5219. ;;
  5220. esac
  5221. printf "%s\n" "#define STOP_UAC 1" >>build/confdefs.h
  5222. printf "%s\n" "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  5223. ;;
  5224. SunOS)
  5225. SUNOS="yes"
  5226. USE_STATIC="no"
  5227. ;;
  5228. Darwin)
  5229. USE_STATIC="no"
  5230. ;;
  5231. *BSD)
  5232. # FreeBSD/OpenBSD/NetBSD
  5233. ;;
  5234. *)
  5235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  5236. printf %s "checking if system is Mach based... " >&6; }
  5237. if test -r /mach
  5238. then
  5239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5240. printf "%s\n" "yes" >&6; }
  5241. printf "%s\n" "#define BORGCUBES 1" >>build/confdefs.h
  5242. else
  5243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5244. printf "%s\n" "no" >&6; }
  5245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  5246. printf %s "checking if system is QNX... " >&6; }
  5247. if test -r /cmds
  5248. then
  5249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5250. printf "%s\n" "yes" >&6; }
  5251. else
  5252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5253. printf "%s\n" "no" >&6; }
  5254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  5255. printf "%s\n" "Something unknown!" >&6; }
  5256. fi
  5257. fi
  5258. ;;
  5259. esac
  5260. # Check for IPv6 support
  5261. #EGG_IPV6_SUPPORTED
  5262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  5263. printf %s "checking whether IPv6 is enabled... " >&6; }
  5264. # Check whether --enable-ipv6 was given.
  5265. if test ${enable_ipv6+y}
  5266. then :
  5267. enableval=$enable_ipv6;
  5268. enable_ipv6=$enableval
  5269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5270. printf "%s\n" "$enableval" >&6; }
  5271. else $as_nop
  5272. # default if not given is ENABLED
  5273. if test "x$enableval" = "x"; then
  5274. enableval="yes"
  5275. fi
  5276. enable_ipv6=$enableval
  5277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5278. printf "%s\n" "$enableval" >&6; }
  5279. printf "%s\n" "#define USE_IPV6 1" >>build/confdefs.h
  5280. fi
  5281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  5282. printf %s "checking for socklen_t... " >&6; }
  5283. if test ${egg_cv_socklen_t+y}
  5284. then :
  5285. printf %s "(cached) " >&6
  5286. else $as_nop
  5287. if test "$cross_compiling" = yes
  5288. then :
  5289. egg_cv_socklen_t=no
  5290. else $as_nop
  5291. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5292. /* end build/confdefs.h. */
  5293. #include <unistd.h>
  5294. #include <sys/types.h>
  5295. #include <sys/socket.h>
  5296. #include <netinet/in.h>
  5297. #include <arpa/inet.h>
  5298. int main()
  5299. {
  5300. socklen_t test = sizeof(int);
  5301. return 0;
  5302. }
  5303. _ACEOF
  5304. if ac_fn_cxx_try_run "$LINENO"
  5305. then :
  5306. egg_cv_socklen_t=yes
  5307. else $as_nop
  5308. egg_cv_socklen_t=no
  5309. fi
  5310. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5311. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5312. fi
  5313. fi
  5314. if test "$egg_cv_socklen_t" = "yes"; then
  5315. printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  5316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5317. printf "%s\n" "yes" >&6; }
  5318. else
  5319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5320. printf "%s\n" "no" >&6; }
  5321. fi
  5322. # Check for inconsistent random() functions
  5323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  5324. printf %s "checking for random limit... " >&6; }
  5325. case "$egg_cv_var_system_type" in
  5326. SunOS) RMAX=0x7FFFFFFF
  5327. ;;
  5328. *) RMAX=RAND_MAX
  5329. ;;
  5330. esac
  5331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  5332. printf "%s\n" "$RMAX" >&6; }
  5333. printf "%s\n" "#define RANDOM_MAX $RMAX" >>build/confdefs.h
  5334. # Create static binaries
  5335. if test "$USE_STATIC" = "yes"
  5336. then
  5337. if test -n "$GXX"
  5338. then
  5339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  5340. printf %s "checking whether the compiler understands -static... " >&6; }
  5341. if test ${egg_cv_var_ccstatic+y}
  5342. then :
  5343. printf %s "(cached) " >&6
  5344. else $as_nop
  5345. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5346. /* end build/confdefs.h. */
  5347. int
  5348. main (void)
  5349. {
  5350. ;
  5351. return 0;
  5352. }
  5353. _ACEOF
  5354. if ac_fn_cxx_try_compile "$LINENO"
  5355. then :
  5356. egg_cv_var_ccstatic="yes"
  5357. else $as_nop
  5358. egg_cv_var_ccstatic="no"
  5359. fi
  5360. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5361. fi
  5362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  5363. printf "%s\n" "$egg_cv_var_ccstatic" >&6; }
  5364. if ! test "$egg_cv_var_ccstatic" = "yes"
  5365. then
  5366. cat << 'EOF' >&2
  5367. configure: error:
  5368. Your OS or C++ compiler does not support -static.
  5369. This compile flag is required for the botpack on this OS.
  5370. EOF
  5371. exit 1
  5372. fi
  5373. fi
  5374. STATIC="-static"
  5375. else
  5376. STATIC=""
  5377. fi
  5378. #checkpoint
  5379. cat >confcache <<\_ACEOF
  5380. # This file is a shell script that caches the results of configure
  5381. # tests run on this system so they can be shared between configure
  5382. # scripts and configure runs, see configure's option --config-cache.
  5383. # It is not useful on other systems. If it contains results you don't
  5384. # want to keep, you may remove or edit it.
  5385. #
  5386. # build/config.status only pays attention to the cache file if you give it
  5387. # the --recheck option to rerun configure.
  5388. #
  5389. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5390. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5391. # following values.
  5392. _ACEOF
  5393. # The following way of writing the cache mishandles newlines in values,
  5394. # but we know of no workaround that is simple, portable, and efficient.
  5395. # So, we kill variables containing newlines.
  5396. # Ultrix sh set writes to stderr and can't be redirected directly,
  5397. # and sets the high bit in the cache file unless we assign to the vars.
  5398. (
  5399. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5400. eval ac_val=\$$ac_var
  5401. case $ac_val in #(
  5402. *${as_nl}*)
  5403. case $ac_var in #(
  5404. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5405. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5406. esac
  5407. case $ac_var in #(
  5408. _ | IFS | as_nl) ;; #(
  5409. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5410. *) { eval $ac_var=; unset $ac_var;} ;;
  5411. esac ;;
  5412. esac
  5413. done
  5414. (set) 2>&1 |
  5415. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5416. *${as_nl}ac_space=\ *)
  5417. # `set' does not quote correctly, so add quotes: double-quote
  5418. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5419. sed -n \
  5420. "s/'/'\\\\''/g;
  5421. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5422. ;; #(
  5423. *)
  5424. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5425. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5426. ;;
  5427. esac |
  5428. sort
  5429. ) |
  5430. sed '
  5431. /^ac_cv_env_/b end
  5432. t clear
  5433. :clear
  5434. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  5435. t end
  5436. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5437. :end' >>confcache
  5438. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5439. if test -w "$cache_file"; then
  5440. if test "x$cache_file" != "x/dev/null"; then
  5441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5442. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  5443. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5444. cat confcache >"$cache_file"
  5445. else
  5446. case $cache_file in #(
  5447. */* | ?:*)
  5448. mv -f confcache "$cache_file"$$ &&
  5449. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5450. *)
  5451. mv -f confcache "$cache_file" ;;
  5452. esac
  5453. fi
  5454. fi
  5455. else
  5456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5457. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  5458. fi
  5459. fi
  5460. rm -f confcache
  5461. # Checks for system libraries
  5462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  5463. printf %s "checking for socket in -lsocket... " >&6; }
  5464. if test ${ac_cv_lib_socket_socket+y}
  5465. then :
  5466. printf %s "(cached) " >&6
  5467. else $as_nop
  5468. ac_check_lib_save_LIBS=$LIBS
  5469. LIBS="-lsocket $LIBS"
  5470. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5471. /* end build/confdefs.h. */
  5472. namespace conftest {
  5473. extern "C" int socket ();
  5474. }
  5475. int
  5476. main (void)
  5477. {
  5478. return conftest::socket ();
  5479. ;
  5480. return 0;
  5481. }
  5482. _ACEOF
  5483. if ac_fn_cxx_try_link "$LINENO"
  5484. then :
  5485. ac_cv_lib_socket_socket=yes
  5486. else $as_nop
  5487. ac_cv_lib_socket_socket=no
  5488. fi
  5489. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5490. conftest$ac_exeext conftest.$ac_ext
  5491. LIBS=$ac_check_lib_save_LIBS
  5492. fi
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  5494. printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
  5495. if test "x$ac_cv_lib_socket_socket" = xyes
  5496. then :
  5497. printf "%s\n" "#define HAVE_LIBSOCKET 1" >>build/confdefs.h
  5498. LIBS="-lsocket $LIBS"
  5499. fi
  5500. # AC_CHECK_LIB(nsl, connect)
  5501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  5502. printf %s "checking for dlopen in -ldl... " >&6; }
  5503. if test ${ac_cv_lib_dl_dlopen+y}
  5504. then :
  5505. printf %s "(cached) " >&6
  5506. else $as_nop
  5507. ac_check_lib_save_LIBS=$LIBS
  5508. LIBS="-ldl $LIBS"
  5509. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5510. /* end build/confdefs.h. */
  5511. namespace conftest {
  5512. extern "C" int dlopen ();
  5513. }
  5514. int
  5515. main (void)
  5516. {
  5517. return conftest::dlopen ();
  5518. ;
  5519. return 0;
  5520. }
  5521. _ACEOF
  5522. if ac_fn_cxx_try_link "$LINENO"
  5523. then :
  5524. ac_cv_lib_dl_dlopen=yes
  5525. else $as_nop
  5526. ac_cv_lib_dl_dlopen=no
  5527. fi
  5528. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5529. conftest$ac_exeext conftest.$ac_ext
  5530. LIBS=$ac_check_lib_save_LIBS
  5531. fi
  5532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  5533. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  5534. if test "x$ac_cv_lib_dl_dlopen" = xyes
  5535. then :
  5536. printf "%s\n" "#define HAVE_LIBDL 1" >>build/confdefs.h
  5537. LIBS="-ldl $LIBS"
  5538. fi
  5539. if test "$SUNOS" = "yes"; then
  5540. # For suns without yp
  5541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  5542. printf %s "checking for main in -ldl... " >&6; }
  5543. if test ${ac_cv_lib_dl_main+y}
  5544. then :
  5545. printf %s "(cached) " >&6
  5546. else $as_nop
  5547. ac_check_lib_save_LIBS=$LIBS
  5548. LIBS="-ldl $LIBS"
  5549. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5550. /* end build/confdefs.h. */
  5551. namespace conftest {
  5552. extern "C" int main ();
  5553. }
  5554. int
  5555. main (void)
  5556. {
  5557. return conftest::main ();
  5558. ;
  5559. return 0;
  5560. }
  5561. _ACEOF
  5562. if ac_fn_cxx_try_link "$LINENO"
  5563. then :
  5564. ac_cv_lib_dl_main=yes
  5565. else $as_nop
  5566. ac_cv_lib_dl_main=no
  5567. fi
  5568. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5569. conftest$ac_exeext conftest.$ac_ext
  5570. LIBS=$ac_check_lib_save_LIBS
  5571. fi
  5572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  5573. printf "%s\n" "$ac_cv_lib_dl_main" >&6; }
  5574. if test "x$ac_cv_lib_dl_main" = xyes
  5575. then :
  5576. printf "%s\n" "#define HAVE_LIBDL 1" >>build/confdefs.h
  5577. LIBS="-ldl $LIBS"
  5578. fi
  5579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  5580. printf %s "checking for main in -lsocket... " >&6; }
  5581. if test ${ac_cv_lib_socket_main+y}
  5582. then :
  5583. printf %s "(cached) " >&6
  5584. else $as_nop
  5585. ac_check_lib_save_LIBS=$LIBS
  5586. LIBS="-lsocket $LIBS"
  5587. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5588. /* end build/confdefs.h. */
  5589. namespace conftest {
  5590. extern "C" int main ();
  5591. }
  5592. int
  5593. main (void)
  5594. {
  5595. return conftest::main ();
  5596. ;
  5597. return 0;
  5598. }
  5599. _ACEOF
  5600. if ac_fn_cxx_try_link "$LINENO"
  5601. then :
  5602. ac_cv_lib_socket_main=yes
  5603. else $as_nop
  5604. ac_cv_lib_socket_main=no
  5605. fi
  5606. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5607. conftest$ac_exeext conftest.$ac_ext
  5608. LIBS=$ac_check_lib_save_LIBS
  5609. fi
  5610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  5611. printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
  5612. if test "x$ac_cv_lib_socket_main" = xyes
  5613. then :
  5614. printf "%s\n" "#define HAVE_LIBSOCKET 1" >>build/confdefs.h
  5615. LIBS="-lsocket $LIBS"
  5616. fi
  5617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  5618. printf %s "checking for main in -lnsl... " >&6; }
  5619. if test ${ac_cv_lib_nsl_main+y}
  5620. then :
  5621. printf %s "(cached) " >&6
  5622. else $as_nop
  5623. ac_check_lib_save_LIBS=$LIBS
  5624. LIBS="-lnsl $LIBS"
  5625. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5626. /* end build/confdefs.h. */
  5627. namespace conftest {
  5628. extern "C" int main ();
  5629. }
  5630. int
  5631. main (void)
  5632. {
  5633. return conftest::main ();
  5634. ;
  5635. return 0;
  5636. }
  5637. _ACEOF
  5638. if ac_fn_cxx_try_link "$LINENO"
  5639. then :
  5640. ac_cv_lib_nsl_main=yes
  5641. else $as_nop
  5642. ac_cv_lib_nsl_main=no
  5643. fi
  5644. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5645. conftest$ac_exeext conftest.$ac_ext
  5646. LIBS=$ac_check_lib_save_LIBS
  5647. fi
  5648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  5649. printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
  5650. if test "x$ac_cv_lib_nsl_main" = xyes
  5651. then :
  5652. printf "%s\n" "#define HAVE_LIBNSL 1" >>build/confdefs.h
  5653. LIBS="-lnsl $LIBS"
  5654. fi
  5655. fi
  5656. ac_header= ac_cache=
  5657. for ac_item in $ac_header_cxx_list
  5658. do
  5659. if test $ac_cache; then
  5660. ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  5661. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  5662. printf "%s\n" "#define $ac_item 1" >> build/confdefs.h
  5663. fi
  5664. ac_header= ac_cache=
  5665. elif test $ac_header; then
  5666. ac_cache=$ac_item
  5667. else
  5668. ac_header=$ac_item
  5669. fi
  5670. done
  5671. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  5672. then :
  5673. printf "%s\n" "#define STDC_HEADERS 1" >>build/confdefs.h
  5674. fi
  5675. LIBELF_DIR="lib/libelf/lib"
  5676. LIBELF_LIB="\$(top_builddir)/${LIBELF_DIR}/libelf.a"
  5677. LIBELF_BUNDLED="${LIBELF_LIB}"
  5678. LIBELF_INCLUDE="-I\$(top_srcdir)/${LIBELF_DIR}"
  5679. for ac_header in gelf.h libelf.h
  5680. do :
  5681. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
  5682. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5683. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  5684. then :
  5685. cat >>build/confdefs.h <<_ACEOF
  5686. #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
  5687. _ACEOF
  5688. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  5689. #include \"gelf.h\"
  5690. #include \"libelf.h\"
  5691. "
  5692. if test "x$ac_cv_type_Elf_Note" = xyes
  5693. then :
  5694. printf "%s\n" "#define HAVE_ELF_NOTE 1" >>build/confdefs.h
  5695. printf "%s\n" "#define HAVE_GELF_H 1" >>build/confdefs.h
  5696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  5697. printf %s "checking for gelf_getehdr in -lelf... " >&6; }
  5698. if test ${ac_cv_lib_elf_gelf_getehdr+y}
  5699. then :
  5700. printf %s "(cached) " >&6
  5701. else $as_nop
  5702. ac_check_lib_save_LIBS=$LIBS
  5703. LIBS="-lelf $LIBS"
  5704. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5705. /* end build/confdefs.h. */
  5706. namespace conftest {
  5707. extern "C" int gelf_getehdr ();
  5708. }
  5709. int
  5710. main (void)
  5711. {
  5712. return conftest::gelf_getehdr ();
  5713. ;
  5714. return 0;
  5715. }
  5716. _ACEOF
  5717. if ac_fn_cxx_try_link "$LINENO"
  5718. then :
  5719. ac_cv_lib_elf_gelf_getehdr=yes
  5720. else $as_nop
  5721. ac_cv_lib_elf_gelf_getehdr=no
  5722. fi
  5723. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5724. conftest$ac_exeext conftest.$ac_ext
  5725. LIBS=$ac_check_lib_save_LIBS
  5726. fi
  5727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  5728. printf "%s\n" "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  5729. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes
  5730. then :
  5731. printf "%s\n" "#define HAVE_LIBELF 1" >>build/confdefs.h
  5732. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  5733. LIBELF_BUNDLED=
  5734. LIBELF_INCLUDE=
  5735. fi
  5736. fi
  5737. fi
  5738. done
  5739. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  5740. # Checks for header files
  5741. ac_header_dirent=no
  5742. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5743. as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5745. printf %s "checking for $ac_hdr that defines DIR... " >&6; }
  5746. if eval test \${$as_ac_Header+y}
  5747. then :
  5748. printf %s "(cached) " >&6
  5749. else $as_nop
  5750. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5751. /* end build/confdefs.h. */
  5752. #include <sys/types.h>
  5753. #include <$ac_hdr>
  5754. int
  5755. main (void)
  5756. {
  5757. if ((DIR *) 0)
  5758. return 0;
  5759. ;
  5760. return 0;
  5761. }
  5762. _ACEOF
  5763. if ac_fn_cxx_try_compile "$LINENO"
  5764. then :
  5765. eval "$as_ac_Header=yes"
  5766. else $as_nop
  5767. eval "$as_ac_Header=no"
  5768. fi
  5769. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5770. fi
  5771. eval ac_res=\$$as_ac_Header
  5772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5773. printf "%s\n" "$ac_res" >&6; }
  5774. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  5775. then :
  5776. cat >>build/confdefs.h <<_ACEOF
  5777. #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5778. _ACEOF
  5779. ac_header_dirent=$ac_hdr; break
  5780. fi
  5781. done
  5782. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5783. if test $ac_header_dirent = dirent.h; then
  5784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5785. printf %s "checking for library containing opendir... " >&6; }
  5786. if test ${ac_cv_search_opendir+y}
  5787. then :
  5788. printf %s "(cached) " >&6
  5789. else $as_nop
  5790. ac_func_search_save_LIBS=$LIBS
  5791. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5792. /* end build/confdefs.h. */
  5793. namespace conftest {
  5794. extern "C" int opendir ();
  5795. }
  5796. int
  5797. main (void)
  5798. {
  5799. return conftest::opendir ();
  5800. ;
  5801. return 0;
  5802. }
  5803. _ACEOF
  5804. for ac_lib in '' dir
  5805. do
  5806. if test -z "$ac_lib"; then
  5807. ac_res="none required"
  5808. else
  5809. ac_res=-l$ac_lib
  5810. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5811. fi
  5812. if ac_fn_cxx_try_link "$LINENO"
  5813. then :
  5814. ac_cv_search_opendir=$ac_res
  5815. fi
  5816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5817. conftest$ac_exeext
  5818. if test ${ac_cv_search_opendir+y}
  5819. then :
  5820. break
  5821. fi
  5822. done
  5823. if test ${ac_cv_search_opendir+y}
  5824. then :
  5825. else $as_nop
  5826. ac_cv_search_opendir=no
  5827. fi
  5828. rm conftest.$ac_ext
  5829. LIBS=$ac_func_search_save_LIBS
  5830. fi
  5831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5832. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  5833. ac_res=$ac_cv_search_opendir
  5834. if test "$ac_res" != no
  5835. then :
  5836. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5837. fi
  5838. else
  5839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5840. printf %s "checking for library containing opendir... " >&6; }
  5841. if test ${ac_cv_search_opendir+y}
  5842. then :
  5843. printf %s "(cached) " >&6
  5844. else $as_nop
  5845. ac_func_search_save_LIBS=$LIBS
  5846. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5847. /* end build/confdefs.h. */
  5848. namespace conftest {
  5849. extern "C" int opendir ();
  5850. }
  5851. int
  5852. main (void)
  5853. {
  5854. return conftest::opendir ();
  5855. ;
  5856. return 0;
  5857. }
  5858. _ACEOF
  5859. for ac_lib in '' x
  5860. do
  5861. if test -z "$ac_lib"; then
  5862. ac_res="none required"
  5863. else
  5864. ac_res=-l$ac_lib
  5865. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5866. fi
  5867. if ac_fn_cxx_try_link "$LINENO"
  5868. then :
  5869. ac_cv_search_opendir=$ac_res
  5870. fi
  5871. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  5872. conftest$ac_exeext
  5873. if test ${ac_cv_search_opendir+y}
  5874. then :
  5875. break
  5876. fi
  5877. done
  5878. if test ${ac_cv_search_opendir+y}
  5879. then :
  5880. else $as_nop
  5881. ac_cv_search_opendir=no
  5882. fi
  5883. rm conftest.$ac_ext
  5884. LIBS=$ac_func_search_save_LIBS
  5885. fi
  5886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5887. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  5888. ac_res=$ac_cv_search_opendir
  5889. if test "$ac_res" != no
  5890. then :
  5891. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5892. fi
  5893. fi
  5894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5895. printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5896. if test ${ac_cv_header_sys_wait_h+y}
  5897. then :
  5898. printf %s "(cached) " >&6
  5899. else $as_nop
  5900. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5901. /* end build/confdefs.h. */
  5902. #include <sys/types.h>
  5903. #include <sys/wait.h>
  5904. #ifndef WEXITSTATUS
  5905. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5906. #endif
  5907. #ifndef WIFEXITED
  5908. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5909. #endif
  5910. int
  5911. main (void)
  5912. {
  5913. int s;
  5914. wait (&s);
  5915. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5916. ;
  5917. return 0;
  5918. }
  5919. _ACEOF
  5920. if ac_fn_cxx_try_compile "$LINENO"
  5921. then :
  5922. ac_cv_header_sys_wait_h=yes
  5923. else $as_nop
  5924. ac_cv_header_sys_wait_h=no
  5925. fi
  5926. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5927. fi
  5928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5929. printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
  5930. if test $ac_cv_header_sys_wait_h = yes; then
  5931. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  5932. fi
  5933. # Obsolete code to be removed.
  5934. if test $ac_cv_header_sys_time_h = yes; then
  5935. printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  5936. fi
  5937. # End of obsolete code.
  5938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5939. printf %s "checking whether stat file-mode macros are broken... " >&6; }
  5940. if test ${ac_cv_header_stat_broken+y}
  5941. then :
  5942. printf %s "(cached) " >&6
  5943. else $as_nop
  5944. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5945. /* end build/confdefs.h. */
  5946. #include <sys/types.h>
  5947. #include <sys/stat.h>
  5948. #if defined S_ISBLK && defined S_IFDIR
  5949. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5950. #endif
  5951. #if defined S_ISBLK && defined S_IFCHR
  5952. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5953. #endif
  5954. #if defined S_ISLNK && defined S_IFREG
  5955. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5956. #endif
  5957. #if defined S_ISSOCK && defined S_IFREG
  5958. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5959. #endif
  5960. _ACEOF
  5961. if ac_fn_cxx_try_compile "$LINENO"
  5962. then :
  5963. ac_cv_header_stat_broken=no
  5964. else $as_nop
  5965. ac_cv_header_stat_broken=yes
  5966. fi
  5967. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5968. fi
  5969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5970. printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
  5971. if test $ac_cv_header_stat_broken = yes; then
  5972. printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  5973. fi
  5974. #checkpoint
  5975. cat >confcache <<\_ACEOF
  5976. # This file is a shell script that caches the results of configure
  5977. # tests run on this system so they can be shared between configure
  5978. # scripts and configure runs, see configure's option --config-cache.
  5979. # It is not useful on other systems. If it contains results you don't
  5980. # want to keep, you may remove or edit it.
  5981. #
  5982. # build/config.status only pays attention to the cache file if you give it
  5983. # the --recheck option to rerun configure.
  5984. #
  5985. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5986. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5987. # following values.
  5988. _ACEOF
  5989. # The following way of writing the cache mishandles newlines in values,
  5990. # but we know of no workaround that is simple, portable, and efficient.
  5991. # So, we kill variables containing newlines.
  5992. # Ultrix sh set writes to stderr and can't be redirected directly,
  5993. # and sets the high bit in the cache file unless we assign to the vars.
  5994. (
  5995. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5996. eval ac_val=\$$ac_var
  5997. case $ac_val in #(
  5998. *${as_nl}*)
  5999. case $ac_var in #(
  6000. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6001. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6002. esac
  6003. case $ac_var in #(
  6004. _ | IFS | as_nl) ;; #(
  6005. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6006. *) { eval $ac_var=; unset $ac_var;} ;;
  6007. esac ;;
  6008. esac
  6009. done
  6010. (set) 2>&1 |
  6011. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6012. *${as_nl}ac_space=\ *)
  6013. # `set' does not quote correctly, so add quotes: double-quote
  6014. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6015. sed -n \
  6016. "s/'/'\\\\''/g;
  6017. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6018. ;; #(
  6019. *)
  6020. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6021. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6022. ;;
  6023. esac |
  6024. sort
  6025. ) |
  6026. sed '
  6027. /^ac_cv_env_/b end
  6028. t clear
  6029. :clear
  6030. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  6031. t end
  6032. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6033. :end' >>confcache
  6034. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6035. if test -w "$cache_file"; then
  6036. if test "x$cache_file" != "x/dev/null"; then
  6037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6038. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  6039. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6040. cat confcache >"$cache_file"
  6041. else
  6042. case $cache_file in #(
  6043. */* | ?:*)
  6044. mv -f confcache "$cache_file"$$ &&
  6045. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6046. *)
  6047. mv -f confcache "$cache_file" ;;
  6048. esac
  6049. fi
  6050. fi
  6051. else
  6052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6053. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  6054. fi
  6055. fi
  6056. rm -f confcache
  6057. ac_fn_cxx_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  6058. if test "x$ac_cv_header_stdarg_h" = xyes
  6059. then :
  6060. printf "%s\n" "#define HAVE_STDARG_H 1" >>build/confdefs.h
  6061. fi
  6062. ac_fn_cxx_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  6063. if test "x$ac_cv_header_arpa_inet_h" = xyes
  6064. then :
  6065. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>build/confdefs.h
  6066. fi
  6067. ac_fn_cxx_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  6068. if test "x$ac_cv_header_fcntl_h" = xyes
  6069. then :
  6070. printf "%s\n" "#define HAVE_FCNTL_H 1" >>build/confdefs.h
  6071. fi
  6072. ac_fn_cxx_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  6073. if test "x$ac_cv_header_limits_h" = xyes
  6074. then :
  6075. printf "%s\n" "#define HAVE_LIMITS_H 1" >>build/confdefs.h
  6076. fi
  6077. ac_fn_cxx_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  6078. if test "x$ac_cv_header_locale_h" = xyes
  6079. then :
  6080. printf "%s\n" "#define HAVE_LOCALE_H 1" >>build/confdefs.h
  6081. fi
  6082. ac_fn_cxx_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  6083. if test "x$ac_cv_header_netdb_h" = xyes
  6084. then :
  6085. printf "%s\n" "#define HAVE_NETDB_H 1" >>build/confdefs.h
  6086. fi
  6087. ac_fn_cxx_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  6088. if test "x$ac_cv_header_netinet_in_h" = xyes
  6089. then :
  6090. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>build/confdefs.h
  6091. fi
  6092. ac_fn_cxx_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
  6093. if test "x$ac_cv_header_sys_file_h" = xyes
  6094. then :
  6095. printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>build/confdefs.h
  6096. fi
  6097. ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  6098. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  6099. then :
  6100. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>build/confdefs.h
  6101. fi
  6102. ac_fn_cxx_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  6103. if test "x$ac_cv_header_sys_param_h" = xyes
  6104. then :
  6105. printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>build/confdefs.h
  6106. fi
  6107. ac_fn_cxx_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  6108. if test "x$ac_cv_header_sys_socket_h" = xyes
  6109. then :
  6110. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>build/confdefs.h
  6111. fi
  6112. ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  6113. if test "x$ac_cv_header_wchar_h" = xyes
  6114. then :
  6115. printf "%s\n" "#define HAVE_WCHAR_H 1" >>build/confdefs.h
  6116. fi
  6117. ac_fn_cxx_check_header_compile "$LINENO" "sys/ptrace.h" "ac_cv_header_sys_ptrace_h" "$ac_includes_default"
  6118. if test "x$ac_cv_header_sys_ptrace_h" = xyes
  6119. then :
  6120. printf "%s\n" "#define HAVE_SYS_PTRACE_H 1" >>build/confdefs.h
  6121. fi
  6122. ac_fn_cxx_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
  6123. if test "x$ac_cv_header_paths_h" = xyes
  6124. then :
  6125. printf "%s\n" "#define HAVE_PATHS_H 1" >>build/confdefs.h
  6126. fi
  6127. ac_fn_cxx_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
  6128. if test "x$ac_cv_header_sys_prctl_h" = xyes
  6129. then :
  6130. printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>build/confdefs.h
  6131. fi
  6132. ac_fn_cxx_check_header_compile "$LINENO" "sys/procctl.h" "ac_cv_header_sys_procctl_h" "$ac_includes_default"
  6133. if test "x$ac_cv_header_sys_procctl_h" = xyes
  6134. then :
  6135. printf "%s\n" "#define HAVE_SYS_PROCCTL_H 1" >>build/confdefs.h
  6136. fi
  6137. #checkpoint
  6138. cat >confcache <<\_ACEOF
  6139. # This file is a shell script that caches the results of configure
  6140. # tests run on this system so they can be shared between configure
  6141. # scripts and configure runs, see configure's option --config-cache.
  6142. # It is not useful on other systems. If it contains results you don't
  6143. # want to keep, you may remove or edit it.
  6144. #
  6145. # build/config.status only pays attention to the cache file if you give it
  6146. # the --recheck option to rerun configure.
  6147. #
  6148. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6149. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6150. # following values.
  6151. _ACEOF
  6152. # The following way of writing the cache mishandles newlines in values,
  6153. # but we know of no workaround that is simple, portable, and efficient.
  6154. # So, we kill variables containing newlines.
  6155. # Ultrix sh set writes to stderr and can't be redirected directly,
  6156. # and sets the high bit in the cache file unless we assign to the vars.
  6157. (
  6158. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6159. eval ac_val=\$$ac_var
  6160. case $ac_val in #(
  6161. *${as_nl}*)
  6162. case $ac_var in #(
  6163. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6164. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6165. esac
  6166. case $ac_var in #(
  6167. _ | IFS | as_nl) ;; #(
  6168. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6169. *) { eval $ac_var=; unset $ac_var;} ;;
  6170. esac ;;
  6171. esac
  6172. done
  6173. (set) 2>&1 |
  6174. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6175. *${as_nl}ac_space=\ *)
  6176. # `set' does not quote correctly, so add quotes: double-quote
  6177. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6178. sed -n \
  6179. "s/'/'\\\\''/g;
  6180. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6181. ;; #(
  6182. *)
  6183. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6184. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6185. ;;
  6186. esac |
  6187. sort
  6188. ) |
  6189. sed '
  6190. /^ac_cv_env_/b end
  6191. t clear
  6192. :clear
  6193. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  6194. t end
  6195. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6196. :end' >>confcache
  6197. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6198. if test -w "$cache_file"; then
  6199. if test "x$cache_file" != "x/dev/null"; then
  6200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6201. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  6202. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6203. cat confcache >"$cache_file"
  6204. else
  6205. case $cache_file in #(
  6206. */* | ?:*)
  6207. mv -f confcache "$cache_file"$$ &&
  6208. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6209. *)
  6210. mv -f confcache "$cache_file" ;;
  6211. esac
  6212. fi
  6213. fi
  6214. else
  6215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6216. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  6217. fi
  6218. fi
  6219. rm -f confcache
  6220. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  6221. #AC_CHECK_HEADERS(zlib.h)
  6222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  6223. printf %s "checking for path to OpenSSL... " >&6; }
  6224. # Check whether --with-openssl was given.
  6225. if test ${with_openssl+y}
  6226. then :
  6227. withval=$with_openssl; with_openssl_path=$withval
  6228. else $as_nop
  6229. with_openssl_path=auto
  6230. fi
  6231. cf_openssl_basedir=""
  6232. cf_openssl_libdir=""
  6233. if test "$with_openssl_path" != "auto"; then
  6234. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  6235. cf_openssl_libdir="${cf_openssl_basedir}/lib"
  6236. else
  6237. if test -f "/usr/include/openssl/opensslv.h" && test -f "/usr/lib64/libssl.so"; then
  6238. cf_openssl_libdir="/usr/lib64"
  6239. cf_openssl_basedir="/usr"
  6240. else
  6241. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  6242. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  6243. cf_openssl_basedir="${dirs}"
  6244. cf_openssl_libdir="${cf_openssl_basedir}/lib"
  6245. break
  6246. fi
  6247. done
  6248. unset dirs
  6249. fi
  6250. fi
  6251. if test ! -z "$cf_openssl_basedir"; then
  6252. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_libdir}/libssl.so"; then
  6253. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  6254. SSL_LIBS="-L${cf_openssl_libdir}"
  6255. else
  6256. cf_openssl_basedir=""
  6257. cf_openssl_libdir=""
  6258. fi
  6259. else
  6260. if test -f "/usr/include/openssl/opensslv.h" ; then
  6261. cf_openssl_basedir="/usr"
  6262. cf_openssl_libdir="/usr/lib"
  6263. fi
  6264. fi
  6265. SSL_INCLUDES="${SSL_INCLUDES} -DOPENSSL_API_COMPAT=0x10000000L"
  6266. if test ! -z "$cf_openssl_basedir"; then
  6267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  6268. printf "%s\n" "$cf_openssl_basedir" >&6; }
  6269. else
  6270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6271. printf "%s\n" "not found" >&6; }
  6272. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  6273. fi
  6274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL Lib" >&5
  6275. printf %s "checking for path to OpenSSL Lib... " >&6; }
  6276. # Check whether --with-openssl was given.
  6277. if test ${with_openssl+y}
  6278. then :
  6279. withval=$with_openssl; with_openssl_path=$withval
  6280. else $as_nop
  6281. with_openssl_path=auto
  6282. fi
  6283. if test ! -z "${cf_openssl_libdir}"; then
  6284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${cf_openssl_libdir}" >&5
  6285. printf "%s\n" "${cf_openssl_libdir}" >&6; }
  6286. else
  6287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6288. printf "%s\n" "not found" >&6; }
  6289. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  6290. fi
  6291. SSL_LIBDIR="${cf_openssl_libdir}"
  6292. unset cf_openssl_basedir
  6293. unset cf_openssl_libdir
  6294. save_CXX="$CXX"
  6295. CXX="$CXX $SSL_INCLUDES"
  6296. save_LIBS="$LIBS"
  6297. LIBS="$LIBS $SSL_LIBS"
  6298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  6299. printf %s "checking for OpenSSL version... " >&6; }
  6300. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6301. /* end build/confdefs.h. */
  6302. #include <openssl/opensslv.h>
  6303. int
  6304. main (void)
  6305. {
  6306. #if !defined(OPENSSL_VERSION_NUMBER)
  6307. #error "Missing openssl version"
  6308. #endif
  6309. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  6310. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  6311. #endif
  6312. ;
  6313. return 0;
  6314. }
  6315. _ACEOF
  6316. if ac_fn_cxx_try_compile "$LINENO"
  6317. then :
  6318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  6319. printf "%s\n" "OK" >&6; }
  6320. else $as_nop
  6321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  6322. printf "%s\n" "too old." >&6; }
  6323. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  6324. fi
  6325. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6326. CXX="$CXX $SSL_LIBS"
  6327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  6328. printf %s "checking for AES_encrypt in -lcrypto... " >&6; }
  6329. if test ${ac_cv_lib_crypto_AES_encrypt+y}
  6330. then :
  6331. printf %s "(cached) " >&6
  6332. else $as_nop
  6333. ac_check_lib_save_LIBS=$LIBS
  6334. LIBS="-lcrypto $LIBS"
  6335. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6336. /* end build/confdefs.h. */
  6337. namespace conftest {
  6338. extern "C" int AES_encrypt ();
  6339. }
  6340. int
  6341. main (void)
  6342. {
  6343. return conftest::AES_encrypt ();
  6344. ;
  6345. return 0;
  6346. }
  6347. _ACEOF
  6348. if ac_fn_cxx_try_link "$LINENO"
  6349. then :
  6350. ac_cv_lib_crypto_AES_encrypt=yes
  6351. else $as_nop
  6352. ac_cv_lib_crypto_AES_encrypt=no
  6353. fi
  6354. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6355. conftest$ac_exeext conftest.$ac_ext
  6356. LIBS=$ac_check_lib_save_LIBS
  6357. fi
  6358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  6359. printf "%s\n" "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  6360. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes
  6361. then :
  6362. if test "$USE_STATIC" = "yes"; then
  6363. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  6364. else
  6365. SSL_LIBS="$SSL_LIBS -lcrypto"
  6366. fi
  6367. else $as_nop
  6368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  6369. printf "%s\n" "not found." >&6; }
  6370. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  6371. fi
  6372. CXX="$save_CXX"
  6373. LIBS="$save_LIBS"
  6374. printf "%s\n" "#define EGG_SSL_EXT 1" >>build/confdefs.h
  6375. # TCL checks
  6376. # Tcl version to recommend if no Tcl is found, and the site where it can be
  6377. # found for download.
  6378. tclrecommendver="8.5.X"
  6379. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  6380. # Tcl library filename prefixes, suffixes, and search paths.
  6381. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  6382. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  6383. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  6384. tcl7.0 tcl70"
  6385. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  6386. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  6387. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  6388. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  6389. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  6390. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  6391. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  6392. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  6393. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  6394. # Tcl header filenames and search paths.
  6395. tclheadernames="tcl.h"
  6396. tclheaderpaths="$HOME/include $HOME/tcl/include \
  6397. /usr/local/include /usr/include \
  6398. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  6399. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  6400. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  6401. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  6402. /usr/local/pkgs/tcl/include /sys/include \
  6403. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  6404. # Misc Tcl checks.
  6405. # Check whether --with-tcllib was given.
  6406. if test ${with_tcllib+y}
  6407. then :
  6408. withval=$with_tcllib; tcllibname="$withval"
  6409. fi
  6410. # Check whether --with-tclinc was given.
  6411. if test ${with_tclinc+y}
  6412. then :
  6413. withval=$with_tclinc; tclincname="$withval"
  6414. fi
  6415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  6416. printf %s "checking whether TCL Script is enabled... " >&6; }
  6417. # Check whether --enable-script-tcl was given.
  6418. if test ${enable_script_tcl+y}
  6419. then :
  6420. enableval=$enable_script_tcl;
  6421. enable_script_tcl=$enableval
  6422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  6423. printf "%s\n" "$enableval" >&6; }
  6424. else $as_nop
  6425. # default if not given is ENABLED
  6426. if test "x$enableval" = "x"; then
  6427. enableval="yes"
  6428. fi
  6429. enable_script_tcl=$enableval
  6430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  6431. printf "%s\n" "$enableval" >&6; }
  6432. printf "%s\n" "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  6433. fi
  6434. WARN=0
  6435. # Make sure either both or neither $tcllibname and $tclincname are set
  6436. if test "x$tcllibname" != x; then
  6437. if test "x$tclincname" = x; then
  6438. WARN=1
  6439. tcllibname=""
  6440. TCLLIB=""
  6441. TCLINC=""
  6442. fi
  6443. else
  6444. if test "x$tclincname" != x; then
  6445. WARN=1
  6446. tclincname=""
  6447. TCLLIB=""
  6448. TCLINC=""
  6449. fi
  6450. fi
  6451. if test "$WARN" = 1; then
  6452. cat << 'EOF' >&2
  6453. configure: WARNING:
  6454. You must specify both --with-tcllib and --with-tclinc for either to work.
  6455. configure will now attempt to autodetect both the Tcl library and header.
  6456. EOF
  6457. fi
  6458. WARN=0
  6459. # Make sure either both or neither $TCLLIB and $TCLINC are set
  6460. if test "x$TCLLIB" != x; then
  6461. if test "x$TCLINC" = x; then
  6462. WARN=1
  6463. WVAR1=TCLLIB
  6464. WVAR2=TCLINC
  6465. TCLLIB=""
  6466. fi
  6467. else
  6468. if test "x$TCLINC" != x; then
  6469. WARN=1
  6470. WVAR1=TCLINC
  6471. WVAR2=TCLLIB
  6472. TCLINC=""
  6473. fi
  6474. fi
  6475. if test "$WARN" = 1; then
  6476. cat << EOF >&2
  6477. configure: WARNING:
  6478. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  6479. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6480. configure will now attempt to autodetect both the Tcl library and header.
  6481. EOF
  6482. fi
  6483. # Look for Tcl library: if $tcllibname is set, check there first
  6484. if test "x$tcllibname" != x; then
  6485. if test -f "$tcllibname" && test -r "$tcllibname"; then
  6486. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  6487. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  6488. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  6489. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  6490. else
  6491. cat << EOF >&2
  6492. configure: WARNING:
  6493. The file '$tcllibname' given to option --with-tcllib is not valid.
  6494. configure will now attempt to autodetect both the Tcl library and header.
  6495. EOF
  6496. tcllibname=""
  6497. tclincname=""
  6498. TCLLIB=""
  6499. TCLLIBFN=""
  6500. TCLINC=""
  6501. TCLINCFN=""
  6502. fi
  6503. fi
  6504. # Look for Tcl header: if $tclincname is set, check there first
  6505. if test "x$tclincname" != x; then
  6506. if test -f "$tclincname" && test -r "$tclincname"; then
  6507. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  6508. TCLINCFN=`$BASENAME $tclincname`
  6509. else
  6510. cat << EOF >&2
  6511. configure: WARNING:
  6512. The file '$tclincname' given to option --with-tclinc is not valid.
  6513. configure will now attempt to autodetect both the Tcl library and header.
  6514. EOF
  6515. tcllibname=""
  6516. tclincname=""
  6517. TCLLIB=""
  6518. TCLLIBFN=""
  6519. TCLINC=""
  6520. TCLINCFN=""
  6521. fi
  6522. fi
  6523. # Look for Tcl library: if $TCLLIB is set, check there first
  6524. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  6525. if test -d "$TCLLIB"; then
  6526. for tcllibfns in $tcllibnames; do
  6527. for tcllibext in $tcllibextensions; do
  6528. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  6529. TCLLIBFN="${tcllibfns}${tcllibext}"
  6530. TCLLIBEXT="$tcllibext"
  6531. TCLLIBFNS="$tcllibfns"
  6532. break 2
  6533. fi
  6534. done
  6535. done
  6536. fi
  6537. if test "x$TCLLIBFN" = x; then
  6538. cat << 'EOF' >&2
  6539. configure: WARNING:
  6540. Environment variable TCLLIB was set, but incorrectly.
  6541. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6542. configure will now attempt to autodetect both the Tcl library and header.
  6543. EOF
  6544. TCLLIB=""
  6545. TCLLIBFN=""
  6546. TCLINC=""
  6547. TCLINCFN=""
  6548. fi
  6549. fi
  6550. # Look for Tcl header: if $TCLINC is set, check there first
  6551. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  6552. if test -d "$TCLINC"; then
  6553. for tclheaderfn in $tclheadernames; do
  6554. if test -r "${TCLINC}/${tclheaderfn}"; then
  6555. TCLINCFN="$tclheaderfn"
  6556. break
  6557. fi
  6558. done
  6559. fi
  6560. if test "x$TCLINCFN" = x; then
  6561. cat << 'EOF' >&2
  6562. configure: WARNING:
  6563. Environment variable TCLINC was set, but incorrectly.
  6564. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6565. configure will now attempt to autodetect both the Tcl library and header.
  6566. EOF
  6567. TCLLIB=""
  6568. TCLLIBFN=""
  6569. TCLINC=""
  6570. TCLINCFN=""
  6571. fi
  6572. fi
  6573. if test "$enable_script_tcl" = "yes"; then
  6574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  6575. printf %s "checking for Tcl library... " >&6; }
  6576. # Attempt autodetect for $TCLLIBFN if it's not set
  6577. if test "x$TCLLIBFN" != x; then
  6578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  6579. printf "%s\n" "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  6580. else
  6581. for tcllibfns in $tcllibnames; do
  6582. for tcllibext in $tcllibextensions; do
  6583. for tcllibpath in $tcllibpaths; do
  6584. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  6585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  6586. printf "%s\n" "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  6587. TCLLIB="$tcllibpath"
  6588. TCLLIBFN="${tcllibfns}${tcllibext}"
  6589. TCLLIBEXT="$tcllibext"
  6590. TCLLIBFNS="$tcllibfns"
  6591. break 3
  6592. fi
  6593. done
  6594. done
  6595. done
  6596. fi
  6597. # Show if $TCLLIBFN wasn't found
  6598. if test "x$TCLLIBFN" = x; then
  6599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6600. printf "%s\n" "not found" >&6; }
  6601. fi
  6602. fi
  6603. if test "$enable_script_tcl" = "yes"; then
  6604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  6605. printf %s "checking for Tcl header... " >&6; }
  6606. # Attempt autodetect for $TCLINCFN if it's not set
  6607. if test "x$TCLINCFN" != x; then
  6608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  6609. printf "%s\n" "using ${TCLINC}/${TCLINCFN}" >&6; }
  6610. else
  6611. for tclheaderpath in $tclheaderpaths; do
  6612. for tclheaderfn in $tclheadernames; do
  6613. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  6614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  6615. printf "%s\n" "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  6616. TCLINC="$tclheaderpath"
  6617. TCLINCFN="$tclheaderfn"
  6618. break 2
  6619. fi
  6620. done
  6621. done
  6622. # FreeBSD hack ...
  6623. if test "x$TCLINCFN" = x; then
  6624. for tcllibfns in $tcllibnames; do
  6625. for tclheaderpath in $tclheaderpaths; do
  6626. for tclheaderfn in $tclheadernames; do
  6627. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  6628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  6629. printf "%s\n" "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  6630. TCLINC="${tclheaderpath}/${tcllibfns}"
  6631. TCLINCFN="$tclheaderfn"
  6632. break 3
  6633. fi
  6634. done
  6635. done
  6636. done
  6637. fi
  6638. fi
  6639. TCL_INCLUDES=""
  6640. if ! test "x$TCLINC" = x; then
  6641. TCL_INCLUDES="-I$TCLINC"
  6642. fi
  6643. if test "x$TCLINCFN" = x; then
  6644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6645. printf "%s\n" "not found" >&6; }
  6646. fi
  6647. fi
  6648. if test "$enable_script_tcl" = "yes"; then
  6649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  6650. printf %s "checking whether the Tcl system has changed... " >&6; }
  6651. egg_tcl_changed="yes"
  6652. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  6653. if test "$egg_tcl_id" != ":::"; then
  6654. egg_tcl_cached="yes"
  6655. if test ${egg_cv_var_tcl_id+y}
  6656. then :
  6657. printf %s "(cached) " >&6
  6658. else $as_nop
  6659. egg_cv_var_tcl_id="$egg_tcl_id"
  6660. egg_tcl_cached="no"
  6661. fi
  6662. if test "$egg_tcl_cached" = yes; then
  6663. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  6664. egg_tcl_changed="no"
  6665. else
  6666. egg_cv_var_tcl_id="$egg_tcl_id"
  6667. fi
  6668. fi
  6669. fi
  6670. if test "$egg_tcl_changed" = yes; then
  6671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6672. printf "%s\n" "yes" >&6; }
  6673. else
  6674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6675. printf "%s\n" "no" >&6; }
  6676. fi
  6677. fi
  6678. if test "$enable_script_tcl" = "yes"; then
  6679. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  6680. TCL_FOUND=0
  6681. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  6682. TCL_FOUND=1
  6683. # Check Tcl's version
  6684. if test "$egg_tcl_changed" = yes; then
  6685. unset egg_cv_var_tcl_version
  6686. fi
  6687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  6688. printf %s "checking for Tcl version... " >&6; }
  6689. if test ${egg_cv_var_tcl_version+y}
  6690. then :
  6691. printf %s "(cached) " >&6
  6692. else $as_nop
  6693. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/"/, "", $3); print $3}'`
  6694. fi
  6695. if test "x$egg_cv_var_tcl_version" != x; then
  6696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  6697. printf "%s\n" "$egg_cv_var_tcl_version" >&6; }
  6698. else
  6699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6700. printf "%s\n" "not found" >&6; }
  6701. TCL_FOUND=0
  6702. fi
  6703. # Check Tcl's patch level (if available)
  6704. if test "$egg_tcl_changed" = yes; then
  6705. unset egg_cv_var_tcl_patch_level
  6706. fi
  6707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  6708. printf %s "checking for Tcl patch level... " >&6; }
  6709. if test ${egg_cv_var_tcl_patch_level+y}
  6710. then :
  6711. printf %s "(cached) " >&6
  6712. else $as_nop
  6713. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/"/, "", $3); print $3}'`"
  6714. fi
  6715. if test "x$egg_cv_var_tcl_patch_level" != x; then
  6716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  6717. printf "%s\n" "$egg_cv_var_tcl_patch_level" >&6; }
  6718. else
  6719. egg_cv_var_tcl_patch_level="unknown"
  6720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  6721. printf "%s\n" "unknown" >&6; }
  6722. fi
  6723. fi
  6724. # Check if we found Tcl's version
  6725. if test "$TCL_FOUND" = 0; then
  6726. cat << 'EOF' >&2
  6727. configure: error:
  6728. Tcl cannot be found on this system.
  6729. Tcl is not required. Wraith will be compiled without TCL support. If you
  6730. already have Tcl installed on this system, please specify the path by
  6731. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  6732. --with-tclinc='/path/to/tcl.h' options.
  6733. EOF
  6734. enable_script_tcl="no"
  6735. else
  6736. printf "%s\n" "#define HAVE_LIBTCL 1" >>build/confdefs.h
  6737. fi
  6738. fi
  6739. if test "$enable_script_tcl" = "yes"; then
  6740. # Is this version of Tcl too old for us to use ?
  6741. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  6742. if test "$TCL_VER_PRE70" = yes; then
  6743. cat << EOF >&2
  6744. configure: error:
  6745. Your Tcl version is much too old for Wraith to use. You should
  6746. download and compile a more recent version. The most reliable
  6747. current version is $tclrecommendver and can be downloaded from
  6748. ${tclrecommendsite}.
  6749. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  6750. for more information.
  6751. EOF
  6752. exit 1
  6753. fi
  6754. fi
  6755. # Set variables for Tcl library tests
  6756. TCL_TEST_LIB="$TCLLIBFNS"
  6757. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  6758. if test "x$ac_cv_lib_pthread" != x; then
  6759. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  6760. fi
  6761. if test "$enable_script_tcl" = "yes"; then
  6762. if test "$egg_tcl_changed" = yes; then
  6763. unset egg_cv_var_tcl_free
  6764. fi
  6765. # Check for Tcl_Free()
  6766. as_ac_Lib=`printf "%s\n" "ac_cv_lib_$TCL_TEST_LIB""_Tcl_Free" | $as_tr_sh`
  6767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  6768. printf %s "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  6769. if eval test \${$as_ac_Lib+y}
  6770. then :
  6771. printf %s "(cached) " >&6
  6772. else $as_nop
  6773. ac_check_lib_save_LIBS=$LIBS
  6774. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6775. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6776. /* end build/confdefs.h. */
  6777. namespace conftest {
  6778. extern "C" int Tcl_Free ();
  6779. }
  6780. int
  6781. main (void)
  6782. {
  6783. return conftest::Tcl_Free ();
  6784. ;
  6785. return 0;
  6786. }
  6787. _ACEOF
  6788. if ac_fn_cxx_try_link "$LINENO"
  6789. then :
  6790. eval "$as_ac_Lib=yes"
  6791. else $as_nop
  6792. eval "$as_ac_Lib=no"
  6793. fi
  6794. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6795. conftest$ac_exeext conftest.$ac_ext
  6796. LIBS=$ac_check_lib_save_LIBS
  6797. fi
  6798. eval ac_res=\$$as_ac_Lib
  6799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6800. printf "%s\n" "$ac_res" >&6; }
  6801. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  6802. then :
  6803. egg_cv_var_tcl_free="yes"
  6804. else $as_nop
  6805. egg_cv_var_tcl_free="no"
  6806. fi
  6807. if test "$egg_cv_var_tcl_free" = yes; then
  6808. printf "%s\n" "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  6809. fi
  6810. fi
  6811. #EGG_TCL_CHECK_GETCURRENTTHREAD
  6812. #EGG_TCL_CHECK_GETTHREADDATA
  6813. if test "$enable_script_tcl" = "yes"; then
  6814. if test "$egg_tcl_changed" = yes; then
  6815. unset egg_cv_var_tcl_setnotifier
  6816. fi
  6817. # Check for Tcl_SetNotifier()
  6818. as_ac_Lib=`printf "%s\n" "ac_cv_lib_$TCL_TEST_LIB""_Tcl_SetNotifier" | $as_tr_sh`
  6819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  6820. printf %s "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  6821. if eval test \${$as_ac_Lib+y}
  6822. then :
  6823. printf %s "(cached) " >&6
  6824. else $as_nop
  6825. ac_check_lib_save_LIBS=$LIBS
  6826. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6827. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6828. /* end build/confdefs.h. */
  6829. namespace conftest {
  6830. extern "C" int Tcl_SetNotifier ();
  6831. }
  6832. int
  6833. main (void)
  6834. {
  6835. return conftest::Tcl_SetNotifier ();
  6836. ;
  6837. return 0;
  6838. }
  6839. _ACEOF
  6840. if ac_fn_cxx_try_link "$LINENO"
  6841. then :
  6842. eval "$as_ac_Lib=yes"
  6843. else $as_nop
  6844. eval "$as_ac_Lib=no"
  6845. fi
  6846. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6847. conftest$ac_exeext conftest.$ac_ext
  6848. LIBS=$ac_check_lib_save_LIBS
  6849. fi
  6850. eval ac_res=\$$as_ac_Lib
  6851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6852. printf "%s\n" "$ac_res" >&6; }
  6853. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  6854. then :
  6855. egg_cv_var_tcl_setnotifier="yes"
  6856. else $as_nop
  6857. egg_cv_var_tcl_setnotifier="no"
  6858. fi
  6859. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  6860. printf "%s\n" "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  6861. fi
  6862. fi
  6863. if test "$enable_script_tcl" = "yes"; then
  6864. if test "$EGG_CYGWIN" = yes; then
  6865. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6866. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6867. else
  6868. if test "$TCLLIBEXT" != ".a"; then
  6869. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6870. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6871. else
  6872. # Set default make as static for unshared Tcl library
  6873. if test "$DEFAULT_MAKE" != static; then
  6874. cat << 'EOF' >&2
  6875. configure: WARNING:
  6876. Your Tcl library is not a shared lib.
  6877. configure will now set default make type to static.
  6878. EOF
  6879. DEFAULT_MAKE="static"
  6880. fi
  6881. # Are we using a pre 7.4 Tcl version ?
  6882. TCL_VER_PRE74=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 4)) || (i[1] < 7)) print "yes"; else print "no"}'`
  6883. if test "$TCL_VER_PRE74" = no; then
  6884. # Was the --with-tcllib option given ?
  6885. if test "x$tcllibname" != x; then
  6886. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6887. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  6888. else
  6889. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6890. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6891. fi
  6892. else
  6893. cat << EOF >&2
  6894. configure: WARNING:
  6895. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  6896. There are known problems, but we will attempt to work around them.
  6897. EOF
  6898. TCL_REQS="libtcle.a"
  6899. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  6900. fi
  6901. fi
  6902. fi
  6903. fi
  6904. cat >confcache <<\_ACEOF
  6905. # This file is a shell script that caches the results of configure
  6906. # tests run on this system so they can be shared between configure
  6907. # scripts and configure runs, see configure's option --config-cache.
  6908. # It is not useful on other systems. If it contains results you don't
  6909. # want to keep, you may remove or edit it.
  6910. #
  6911. # build/config.status only pays attention to the cache file if you give it
  6912. # the --recheck option to rerun configure.
  6913. #
  6914. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6915. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6916. # following values.
  6917. _ACEOF
  6918. # The following way of writing the cache mishandles newlines in values,
  6919. # but we know of no workaround that is simple, portable, and efficient.
  6920. # So, we kill variables containing newlines.
  6921. # Ultrix sh set writes to stderr and can't be redirected directly,
  6922. # and sets the high bit in the cache file unless we assign to the vars.
  6923. (
  6924. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6925. eval ac_val=\$$ac_var
  6926. case $ac_val in #(
  6927. *${as_nl}*)
  6928. case $ac_var in #(
  6929. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6930. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6931. esac
  6932. case $ac_var in #(
  6933. _ | IFS | as_nl) ;; #(
  6934. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6935. *) { eval $ac_var=; unset $ac_var;} ;;
  6936. esac ;;
  6937. esac
  6938. done
  6939. (set) 2>&1 |
  6940. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6941. *${as_nl}ac_space=\ *)
  6942. # `set' does not quote correctly, so add quotes: double-quote
  6943. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6944. sed -n \
  6945. "s/'/'\\\\''/g;
  6946. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6947. ;; #(
  6948. *)
  6949. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6950. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6951. ;;
  6952. esac |
  6953. sort
  6954. ) |
  6955. sed '
  6956. /^ac_cv_env_/b end
  6957. t clear
  6958. :clear
  6959. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  6960. t end
  6961. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6962. :end' >>confcache
  6963. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6964. if test -w "$cache_file"; then
  6965. if test "x$cache_file" != "x/dev/null"; then
  6966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6967. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  6968. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6969. cat confcache >"$cache_file"
  6970. else
  6971. case $cache_file in #(
  6972. */* | ?:*)
  6973. mv -f confcache "$cache_file"$$ &&
  6974. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6975. *)
  6976. mv -f confcache "$cache_file" ;;
  6977. esac
  6978. fi
  6979. fi
  6980. else
  6981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6982. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  6983. fi
  6984. fi
  6985. rm -f confcache
  6986. # Checks for typedefs, structures, and compiler characteristics
  6987. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  6988. "
  6989. if test "x$ac_cv_type_pid_t" = xyes
  6990. then :
  6991. else $as_nop
  6992. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6993. /* end build/confdefs.h. */
  6994. #if defined _WIN64 && !defined __CYGWIN__
  6995. LLP64
  6996. #endif
  6997. int
  6998. main (void)
  6999. {
  7000. ;
  7001. return 0;
  7002. }
  7003. _ACEOF
  7004. if ac_fn_cxx_try_compile "$LINENO"
  7005. then :
  7006. ac_pid_type='int'
  7007. else $as_nop
  7008. ac_pid_type='__int64'
  7009. fi
  7010. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7011. printf "%s\n" "#define pid_t $ac_pid_type" >>build/confdefs.h
  7012. fi
  7013. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7014. if test "x$ac_cv_type_size_t" = xyes
  7015. then :
  7016. else $as_nop
  7017. printf "%s\n" "#define size_t unsigned int" >>build/confdefs.h
  7018. fi
  7019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  7020. printf %s "checking for grep that handles long lines and -e... " >&6; }
  7021. if test ${ac_cv_path_GREP+y}
  7022. then :
  7023. printf %s "(cached) " >&6
  7024. else $as_nop
  7025. if test -z "$GREP"; then
  7026. ac_path_GREP_found=false
  7027. # Loop through the user's path and test for each of PROGNAME-LIST
  7028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7029. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7030. do
  7031. IFS=$as_save_IFS
  7032. case $as_dir in #(((
  7033. '') as_dir=./ ;;
  7034. */) ;;
  7035. *) as_dir=$as_dir/ ;;
  7036. esac
  7037. for ac_prog in grep ggrep
  7038. do
  7039. for ac_exec_ext in '' $ac_executable_extensions; do
  7040. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  7041. as_fn_executable_p "$ac_path_GREP" || continue
  7042. # Check for GNU ac_path_GREP and select it if it is found.
  7043. # Check for GNU $ac_path_GREP
  7044. case `"$ac_path_GREP" --version 2>&1` in
  7045. *GNU*)
  7046. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  7047. *)
  7048. ac_count=0
  7049. printf %s 0123456789 >"conftest.in"
  7050. while :
  7051. do
  7052. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7053. mv "conftest.tmp" "conftest.in"
  7054. cp "conftest.in" "conftest.nl"
  7055. printf "%s\n" 'GREP' >> "conftest.nl"
  7056. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7057. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7058. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7059. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  7060. # Best one so far, save it but keep looking for a better one
  7061. ac_cv_path_GREP="$ac_path_GREP"
  7062. ac_path_GREP_max=$ac_count
  7063. fi
  7064. # 10*(2^10) chars as input seems more than enough
  7065. test $ac_count -gt 10 && break
  7066. done
  7067. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7068. esac
  7069. $ac_path_GREP_found && break 3
  7070. done
  7071. done
  7072. done
  7073. IFS=$as_save_IFS
  7074. if test -z "$ac_cv_path_GREP"; then
  7075. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7076. fi
  7077. else
  7078. ac_cv_path_GREP=$GREP
  7079. fi
  7080. fi
  7081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  7082. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  7083. GREP="$ac_cv_path_GREP"
  7084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  7085. printf %s "checking for egrep... " >&6; }
  7086. if test ${ac_cv_path_EGREP+y}
  7087. then :
  7088. printf %s "(cached) " >&6
  7089. else $as_nop
  7090. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  7091. then ac_cv_path_EGREP="$GREP -E"
  7092. else
  7093. if test -z "$EGREP"; then
  7094. ac_path_EGREP_found=false
  7095. # Loop through the user's path and test for each of PROGNAME-LIST
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7098. do
  7099. IFS=$as_save_IFS
  7100. case $as_dir in #(((
  7101. '') as_dir=./ ;;
  7102. */) ;;
  7103. *) as_dir=$as_dir/ ;;
  7104. esac
  7105. for ac_prog in egrep
  7106. do
  7107. for ac_exec_ext in '' $ac_executable_extensions; do
  7108. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  7109. as_fn_executable_p "$ac_path_EGREP" || continue
  7110. # Check for GNU ac_path_EGREP and select it if it is found.
  7111. # Check for GNU $ac_path_EGREP
  7112. case `"$ac_path_EGREP" --version 2>&1` in
  7113. *GNU*)
  7114. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  7115. *)
  7116. ac_count=0
  7117. printf %s 0123456789 >"conftest.in"
  7118. while :
  7119. do
  7120. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7121. mv "conftest.tmp" "conftest.in"
  7122. cp "conftest.in" "conftest.nl"
  7123. printf "%s\n" 'EGREP' >> "conftest.nl"
  7124. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7125. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7126. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7127. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  7128. # Best one so far, save it but keep looking for a better one
  7129. ac_cv_path_EGREP="$ac_path_EGREP"
  7130. ac_path_EGREP_max=$ac_count
  7131. fi
  7132. # 10*(2^10) chars as input seems more than enough
  7133. test $ac_count -gt 10 && break
  7134. done
  7135. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7136. esac
  7137. $ac_path_EGREP_found && break 3
  7138. done
  7139. done
  7140. done
  7141. IFS=$as_save_IFS
  7142. if test -z "$ac_cv_path_EGREP"; then
  7143. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7144. fi
  7145. else
  7146. ac_cv_path_EGREP=$EGREP
  7147. fi
  7148. fi
  7149. fi
  7150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  7151. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  7152. EGREP="$ac_cv_path_EGREP"
  7153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  7154. printf %s "checking for uid_t in sys/types.h... " >&6; }
  7155. if test ${ac_cv_type_uid_t+y}
  7156. then :
  7157. printf %s "(cached) " >&6
  7158. else $as_nop
  7159. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7160. /* end build/confdefs.h. */
  7161. #include <sys/types.h>
  7162. _ACEOF
  7163. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7164. $EGREP "uid_t" >/dev/null 2>&1
  7165. then :
  7166. ac_cv_type_uid_t=yes
  7167. else $as_nop
  7168. ac_cv_type_uid_t=no
  7169. fi
  7170. rm -rf conftest*
  7171. fi
  7172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  7173. printf "%s\n" "$ac_cv_type_uid_t" >&6; }
  7174. if test $ac_cv_type_uid_t = no; then
  7175. printf "%s\n" "#define uid_t int" >>build/confdefs.h
  7176. printf "%s\n" "#define gid_t int" >>build/confdefs.h
  7177. fi
  7178. #AC_C_CONST
  7179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7180. printf %s "checking for working volatile... " >&6; }
  7181. if test ${ac_cv_c_volatile+y}
  7182. then :
  7183. printf %s "(cached) " >&6
  7184. else $as_nop
  7185. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7186. /* end build/confdefs.h. */
  7187. int
  7188. main (void)
  7189. {
  7190. volatile int x;
  7191. int * volatile y = (int *) 0;
  7192. return !x && !y;
  7193. ;
  7194. return 0;
  7195. }
  7196. _ACEOF
  7197. if ac_fn_cxx_try_compile "$LINENO"
  7198. then :
  7199. ac_cv_c_volatile=yes
  7200. else $as_nop
  7201. ac_cv_c_volatile=no
  7202. fi
  7203. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7204. fi
  7205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7206. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  7207. if test $ac_cv_c_volatile = no; then
  7208. printf "%s\n" "#define volatile /**/" >>build/confdefs.h
  7209. fi
  7210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7211. printf %s "checking whether byte ordering is bigendian... " >&6; }
  7212. if test ${ac_cv_c_bigendian+y}
  7213. then :
  7214. printf %s "(cached) " >&6
  7215. else $as_nop
  7216. ac_cv_c_bigendian=unknown
  7217. # See if we're dealing with a universal compiler.
  7218. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7219. /* end build/confdefs.h. */
  7220. #ifndef __APPLE_CC__
  7221. not a universal capable compiler
  7222. #endif
  7223. typedef int dummy;
  7224. _ACEOF
  7225. if ac_fn_cxx_try_compile "$LINENO"
  7226. then :
  7227. # Check for potential -arch flags. It is not universal unless
  7228. # there are at least two -arch flags with different values.
  7229. ac_arch=
  7230. ac_prev=
  7231. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7232. if test -n "$ac_prev"; then
  7233. case $ac_word in
  7234. i?86 | x86_64 | ppc | ppc64)
  7235. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7236. ac_arch=$ac_word
  7237. else
  7238. ac_cv_c_bigendian=universal
  7239. break
  7240. fi
  7241. ;;
  7242. esac
  7243. ac_prev=
  7244. elif test "x$ac_word" = "x-arch"; then
  7245. ac_prev=arch
  7246. fi
  7247. done
  7248. fi
  7249. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7250. if test $ac_cv_c_bigendian = unknown; then
  7251. # See if sys/param.h defines the BYTE_ORDER macro.
  7252. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7253. /* end build/confdefs.h. */
  7254. #include <sys/types.h>
  7255. #include <sys/param.h>
  7256. int
  7257. main (void)
  7258. {
  7259. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7260. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7261. && LITTLE_ENDIAN)
  7262. bogus endian macros
  7263. #endif
  7264. ;
  7265. return 0;
  7266. }
  7267. _ACEOF
  7268. if ac_fn_cxx_try_compile "$LINENO"
  7269. then :
  7270. # It does; now see whether it defined to BIG_ENDIAN or not.
  7271. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7272. /* end build/confdefs.h. */
  7273. #include <sys/types.h>
  7274. #include <sys/param.h>
  7275. int
  7276. main (void)
  7277. {
  7278. #if BYTE_ORDER != BIG_ENDIAN
  7279. not big endian
  7280. #endif
  7281. ;
  7282. return 0;
  7283. }
  7284. _ACEOF
  7285. if ac_fn_cxx_try_compile "$LINENO"
  7286. then :
  7287. ac_cv_c_bigendian=yes
  7288. else $as_nop
  7289. ac_cv_c_bigendian=no
  7290. fi
  7291. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7292. fi
  7293. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7294. fi
  7295. if test $ac_cv_c_bigendian = unknown; then
  7296. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7297. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7298. /* end build/confdefs.h. */
  7299. #include <limits.h>
  7300. int
  7301. main (void)
  7302. {
  7303. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7304. bogus endian macros
  7305. #endif
  7306. ;
  7307. return 0;
  7308. }
  7309. _ACEOF
  7310. if ac_fn_cxx_try_compile "$LINENO"
  7311. then :
  7312. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7313. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7314. /* end build/confdefs.h. */
  7315. #include <limits.h>
  7316. int
  7317. main (void)
  7318. {
  7319. #ifndef _BIG_ENDIAN
  7320. not big endian
  7321. #endif
  7322. ;
  7323. return 0;
  7324. }
  7325. _ACEOF
  7326. if ac_fn_cxx_try_compile "$LINENO"
  7327. then :
  7328. ac_cv_c_bigendian=yes
  7329. else $as_nop
  7330. ac_cv_c_bigendian=no
  7331. fi
  7332. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7333. fi
  7334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7335. fi
  7336. if test $ac_cv_c_bigendian = unknown; then
  7337. # Compile a test program.
  7338. if test "$cross_compiling" = yes
  7339. then :
  7340. # Try to guess by grepping values from an object file.
  7341. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7342. /* end build/confdefs.h. */
  7343. unsigned short int ascii_mm[] =
  7344. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7345. unsigned short int ascii_ii[] =
  7346. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7347. int use_ascii (int i) {
  7348. return ascii_mm[i] + ascii_ii[i];
  7349. }
  7350. unsigned short int ebcdic_ii[] =
  7351. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7352. unsigned short int ebcdic_mm[] =
  7353. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7354. int use_ebcdic (int i) {
  7355. return ebcdic_mm[i] + ebcdic_ii[i];
  7356. }
  7357. extern int foo;
  7358. int
  7359. main (void)
  7360. {
  7361. return use_ascii (foo) == use_ebcdic (foo);
  7362. ;
  7363. return 0;
  7364. }
  7365. _ACEOF
  7366. if ac_fn_cxx_try_compile "$LINENO"
  7367. then :
  7368. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7369. ac_cv_c_bigendian=yes
  7370. fi
  7371. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7372. if test "$ac_cv_c_bigendian" = unknown; then
  7373. ac_cv_c_bigendian=no
  7374. else
  7375. # finding both strings is unlikely to happen, but who knows?
  7376. ac_cv_c_bigendian=unknown
  7377. fi
  7378. fi
  7379. fi
  7380. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7381. else $as_nop
  7382. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7383. /* end build/confdefs.h. */
  7384. $ac_includes_default
  7385. int
  7386. main (void)
  7387. {
  7388. /* Are we little or big endian? From Harbison&Steele. */
  7389. union
  7390. {
  7391. long int l;
  7392. char c[sizeof (long int)];
  7393. } u;
  7394. u.l = 1;
  7395. return u.c[sizeof (long int) - 1] == 1;
  7396. ;
  7397. return 0;
  7398. }
  7399. _ACEOF
  7400. if ac_fn_cxx_try_run "$LINENO"
  7401. then :
  7402. ac_cv_c_bigendian=no
  7403. else $as_nop
  7404. ac_cv_c_bigendian=yes
  7405. fi
  7406. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7407. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7408. fi
  7409. fi
  7410. fi
  7411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7412. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  7413. case $ac_cv_c_bigendian in #(
  7414. yes)
  7415. printf "%s\n" "#define B_ENDIAN 1" >>build/confdefs.h
  7416. ;; #(
  7417. no)
  7418. printf "%s\n" "#define L_ENDIAN 1" >>build/confdefs.h
  7419. ;; #(
  7420. universal)
  7421. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  7422. ;; #(
  7423. *)
  7424. as_fn_error $? "unknown endianness
  7425. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7426. esac
  7427. #AC_C_INLINE
  7428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  7429. printf %s "checking whether char is unsigned... " >&6; }
  7430. if test ${ac_cv_c_char_unsigned+y}
  7431. then :
  7432. printf %s "(cached) " >&6
  7433. else $as_nop
  7434. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7435. /* end build/confdefs.h. */
  7436. $ac_includes_default
  7437. int
  7438. main (void)
  7439. {
  7440. static int test_array [1 - 2 * !(((char) -1) < 0)];
  7441. test_array [0] = 0;
  7442. return test_array [0];
  7443. ;
  7444. return 0;
  7445. }
  7446. _ACEOF
  7447. if ac_fn_cxx_try_compile "$LINENO"
  7448. then :
  7449. ac_cv_c_char_unsigned=no
  7450. else $as_nop
  7451. ac_cv_c_char_unsigned=yes
  7452. fi
  7453. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7454. fi
  7455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  7456. printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
  7457. if test $ac_cv_c_char_unsigned = yes; then
  7458. printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  7459. fi
  7460. #AC_C_STRINGIZE
  7461. #AC_C_PROTOTYPES
  7462. #checkpoint
  7463. cat >confcache <<\_ACEOF
  7464. # This file is a shell script that caches the results of configure
  7465. # tests run on this system so they can be shared between configure
  7466. # scripts and configure runs, see configure's option --config-cache.
  7467. # It is not useful on other systems. If it contains results you don't
  7468. # want to keep, you may remove or edit it.
  7469. #
  7470. # build/config.status only pays attention to the cache file if you give it
  7471. # the --recheck option to rerun configure.
  7472. #
  7473. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7474. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7475. # following values.
  7476. _ACEOF
  7477. # The following way of writing the cache mishandles newlines in values,
  7478. # but we know of no workaround that is simple, portable, and efficient.
  7479. # So, we kill variables containing newlines.
  7480. # Ultrix sh set writes to stderr and can't be redirected directly,
  7481. # and sets the high bit in the cache file unless we assign to the vars.
  7482. (
  7483. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7484. eval ac_val=\$$ac_var
  7485. case $ac_val in #(
  7486. *${as_nl}*)
  7487. case $ac_var in #(
  7488. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7489. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7490. esac
  7491. case $ac_var in #(
  7492. _ | IFS | as_nl) ;; #(
  7493. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7494. *) { eval $ac_var=; unset $ac_var;} ;;
  7495. esac ;;
  7496. esac
  7497. done
  7498. (set) 2>&1 |
  7499. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7500. *${as_nl}ac_space=\ *)
  7501. # `set' does not quote correctly, so add quotes: double-quote
  7502. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7503. sed -n \
  7504. "s/'/'\\\\''/g;
  7505. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7506. ;; #(
  7507. *)
  7508. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7509. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7510. ;;
  7511. esac |
  7512. sort
  7513. ) |
  7514. sed '
  7515. /^ac_cv_env_/b end
  7516. t clear
  7517. :clear
  7518. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  7519. t end
  7520. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7521. :end' >>confcache
  7522. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7523. if test -w "$cache_file"; then
  7524. if test "x$cache_file" != "x/dev/null"; then
  7525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7526. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  7527. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7528. cat confcache >"$cache_file"
  7529. else
  7530. case $cache_file in #(
  7531. */* | ?:*)
  7532. mv -f confcache "$cache_file"$$ &&
  7533. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7534. *)
  7535. mv -f confcache "$cache_file" ;;
  7536. esac
  7537. fi
  7538. fi
  7539. else
  7540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7541. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  7542. fi
  7543. fi
  7544. rm -f confcache
  7545. # Checks for typedefs, structures, and compiler characteristics
  7546. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  7547. "
  7548. if test "x$ac_cv_type_pid_t" = xyes
  7549. then :
  7550. else $as_nop
  7551. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7552. /* end build/confdefs.h. */
  7553. #if defined _WIN64 && !defined __CYGWIN__
  7554. LLP64
  7555. #endif
  7556. int
  7557. main (void)
  7558. {
  7559. ;
  7560. return 0;
  7561. }
  7562. _ACEOF
  7563. if ac_fn_cxx_try_compile "$LINENO"
  7564. then :
  7565. ac_pid_type='int'
  7566. else $as_nop
  7567. ac_pid_type='__int64'
  7568. fi
  7569. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7570. printf "%s\n" "#define pid_t $ac_pid_type" >>build/confdefs.h
  7571. fi
  7572. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7573. if test "x$ac_cv_type_size_t" = xyes
  7574. then :
  7575. else $as_nop
  7576. printf "%s\n" "#define size_t unsigned int" >>build/confdefs.h
  7577. fi
  7578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  7579. printf %s "checking for uid_t in sys/types.h... " >&6; }
  7580. if test ${ac_cv_type_uid_t+y}
  7581. then :
  7582. printf %s "(cached) " >&6
  7583. else $as_nop
  7584. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7585. /* end build/confdefs.h. */
  7586. #include <sys/types.h>
  7587. _ACEOF
  7588. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7589. $EGREP "uid_t" >/dev/null 2>&1
  7590. then :
  7591. ac_cv_type_uid_t=yes
  7592. else $as_nop
  7593. ac_cv_type_uid_t=no
  7594. fi
  7595. rm -rf conftest*
  7596. fi
  7597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  7598. printf "%s\n" "$ac_cv_type_uid_t" >&6; }
  7599. if test $ac_cv_type_uid_t = no; then
  7600. printf "%s\n" "#define uid_t int" >>build/confdefs.h
  7601. printf "%s\n" "#define gid_t int" >>build/confdefs.h
  7602. fi
  7603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  7604. printf %s "checking for unsigned long long int... " >&6; }
  7605. if test ${ac_cv_type_unsigned_long_long_int+y}
  7606. then :
  7607. printf %s "(cached) " >&6
  7608. else $as_nop
  7609. ac_cv_type_unsigned_long_long_int=yes
  7610. case $ac_prog_cc_stdc in
  7611. no | c89) ;;
  7612. *)
  7613. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7614. /* end build/confdefs.h. */
  7615. /* For now, do not test the preprocessor; as of 2007 there are too many
  7616. implementations with broken preprocessors. Perhaps this can
  7617. be revisited in 2012. In the meantime, code should not expect
  7618. #if to work with literals wider than 32 bits. */
  7619. /* Test literals. */
  7620. long long int ll = 9223372036854775807ll;
  7621. long long int nll = -9223372036854775807LL;
  7622. unsigned long long int ull = 18446744073709551615ULL;
  7623. /* Test constant expressions. */
  7624. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  7625. ? 1 : -1)];
  7626. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  7627. ? 1 : -1)];
  7628. int i = 63;
  7629. int
  7630. main (void)
  7631. {
  7632. /* Test availability of runtime routines for shift and division. */
  7633. long long int llmax = 9223372036854775807ll;
  7634. unsigned long long int ullmax = 18446744073709551615ull;
  7635. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  7636. | (llmax / ll) | (llmax % ll)
  7637. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  7638. | (ullmax / ull) | (ullmax % ull));
  7639. ;
  7640. return 0;
  7641. }
  7642. _ACEOF
  7643. if ac_fn_cxx_try_link "$LINENO"
  7644. then :
  7645. else $as_nop
  7646. ac_cv_type_unsigned_long_long_int=no
  7647. fi
  7648. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7649. conftest$ac_exeext conftest.$ac_ext;;
  7650. esac
  7651. fi
  7652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  7653. printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
  7654. if test $ac_cv_type_unsigned_long_long_int = yes; then
  7655. printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  7656. fi
  7657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  7658. printf %s "checking for long long int... " >&6; }
  7659. if test ${ac_cv_type_long_long_int+y}
  7660. then :
  7661. printf %s "(cached) " >&6
  7662. else $as_nop
  7663. ac_cv_type_long_long_int=yes
  7664. case $ac_prog_cc_stdc in
  7665. no | c89) ;;
  7666. *)
  7667. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  7668. if test $ac_cv_type_long_long_int = yes; then
  7669. if test "$cross_compiling" = yes
  7670. then :
  7671. :
  7672. else $as_nop
  7673. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7674. /* end build/confdefs.h. */
  7675. #include <limits.h>
  7676. #ifndef LLONG_MAX
  7677. # define HALF \
  7678. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  7679. # define LLONG_MAX (HALF - 1 + HALF)
  7680. #endif
  7681. int
  7682. main (void)
  7683. {
  7684. long long int n = 1;
  7685. int i;
  7686. for (i = 0; ; i++)
  7687. {
  7688. long long int m = n << i;
  7689. if (m >> i != n)
  7690. return 1;
  7691. if (LLONG_MAX / 2 < m)
  7692. break;
  7693. }
  7694. return 0;
  7695. ;
  7696. return 0;
  7697. }
  7698. _ACEOF
  7699. if ac_fn_cxx_try_run "$LINENO"
  7700. then :
  7701. else $as_nop
  7702. ac_cv_type_long_long_int=no
  7703. fi
  7704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7705. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7706. fi
  7707. fi;;
  7708. esac
  7709. fi
  7710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  7711. printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
  7712. if test $ac_cv_type_long_long_int = yes; then
  7713. printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  7714. fi
  7715. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7716. case $ac_cv_c_int8_t in #(
  7717. no|yes) ;; #(
  7718. *)
  7719. printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>build/confdefs.h
  7720. ;;
  7721. esac
  7722. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7723. case $ac_cv_c_uint8_t in #(
  7724. no|yes) ;; #(
  7725. *)
  7726. printf "%s\n" "#define _UINT8_T 1" >>build/confdefs.h
  7727. printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>build/confdefs.h
  7728. ;;
  7729. esac
  7730. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7731. case $ac_cv_c_int16_t in #(
  7732. no|yes) ;; #(
  7733. *)
  7734. printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>build/confdefs.h
  7735. ;;
  7736. esac
  7737. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7738. case $ac_cv_c_uint16_t in #(
  7739. no|yes) ;; #(
  7740. *)
  7741. printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>build/confdefs.h
  7742. ;;
  7743. esac
  7744. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7745. case $ac_cv_c_int32_t in #(
  7746. no|yes) ;; #(
  7747. *)
  7748. printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>build/confdefs.h
  7749. ;;
  7750. esac
  7751. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7752. case $ac_cv_c_uint32_t in #(
  7753. no|yes) ;; #(
  7754. *)
  7755. printf "%s\n" "#define _UINT32_T 1" >>build/confdefs.h
  7756. printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>build/confdefs.h
  7757. ;;
  7758. esac
  7759. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7760. case $ac_cv_c_int64_t in #(
  7761. no|yes) ;; #(
  7762. *)
  7763. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>build/confdefs.h
  7764. ;;
  7765. esac
  7766. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7767. case $ac_cv_c_uint64_t in #(
  7768. no|yes) ;; #(
  7769. *)
  7770. printf "%s\n" "#define _UINT64_T 1" >>build/confdefs.h
  7771. printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>build/confdefs.h
  7772. ;;
  7773. esac
  7774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7775. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7776. if test ${ac_cv_struct_tm+y}
  7777. then :
  7778. printf %s "(cached) " >&6
  7779. else $as_nop
  7780. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7781. /* end build/confdefs.h. */
  7782. #include <sys/types.h>
  7783. #include <time.h>
  7784. int
  7785. main (void)
  7786. {
  7787. struct tm tm;
  7788. int *p = &tm.tm_sec;
  7789. return !p;
  7790. ;
  7791. return 0;
  7792. }
  7793. _ACEOF
  7794. if ac_fn_cxx_try_compile "$LINENO"
  7795. then :
  7796. ac_cv_struct_tm=time.h
  7797. else $as_nop
  7798. ac_cv_struct_tm=sys/time.h
  7799. fi
  7800. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7801. fi
  7802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7803. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  7804. if test $ac_cv_struct_tm = sys/time.h; then
  7805. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7806. fi
  7807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX options needed to detect all undeclared functions" >&5
  7808. printf %s "checking for $CXX options needed to detect all undeclared functions... " >&6; }
  7809. if test ${ac_cv_cxx_undeclared_builtin_options+y}
  7810. then :
  7811. printf %s "(cached) " >&6
  7812. else $as_nop
  7813. ac_save_CFLAGS=$CFLAGS
  7814. ac_cv_cxx_undeclared_builtin_options='cannot detect'
  7815. for ac_arg in '' -fno-builtin; do
  7816. CFLAGS="$ac_save_CFLAGS $ac_arg"
  7817. # This test program should *not* compile successfully.
  7818. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7819. /* end build/confdefs.h. */
  7820. int
  7821. main (void)
  7822. {
  7823. (void) strchr;
  7824. ;
  7825. return 0;
  7826. }
  7827. _ACEOF
  7828. if ac_fn_cxx_try_compile "$LINENO"
  7829. then :
  7830. else $as_nop
  7831. # This test program should compile successfully.
  7832. # No library function is consistently available on
  7833. # freestanding implementations, so test against a dummy
  7834. # declaration. Include always-available headers on the
  7835. # off chance that they somehow elicit warnings.
  7836. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7837. /* end build/confdefs.h. */
  7838. #include <float.h>
  7839. #include <limits.h>
  7840. #include <stdarg.h>
  7841. #include <stddef.h>
  7842. extern void ac_decl (int, char *);
  7843. int
  7844. main (void)
  7845. {
  7846. (void) ac_decl (0, (char *) 0);
  7847. (void) ac_decl;
  7848. ;
  7849. return 0;
  7850. }
  7851. _ACEOF
  7852. if ac_fn_cxx_try_compile "$LINENO"
  7853. then :
  7854. if test x"$ac_arg" = x
  7855. then :
  7856. ac_cv_cxx_undeclared_builtin_options='none needed'
  7857. else $as_nop
  7858. ac_cv_cxx_undeclared_builtin_options=$ac_arg
  7859. fi
  7860. break
  7861. fi
  7862. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7863. fi
  7864. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7865. done
  7866. CFLAGS=$ac_save_CFLAGS
  7867. fi
  7868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_undeclared_builtin_options" >&5
  7869. printf "%s\n" "$ac_cv_cxx_undeclared_builtin_options" >&6; }
  7870. case $ac_cv_cxx_undeclared_builtin_options in #(
  7871. 'cannot detect') :
  7872. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7873. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  7874. as_fn_error $? "cannot make $CXX report undeclared builtins
  7875. See \`build/config.log' for more details" "$LINENO" 5; } ;; #(
  7876. 'none needed') :
  7877. ac_cxx_undeclared_builtin_options='' ;; #(
  7878. *) :
  7879. ac_cxx_undeclared_builtin_options=$ac_cv_cxx_undeclared_builtin_options ;;
  7880. esac
  7881. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  7882. #include <$ac_cv_struct_tm>
  7883. "
  7884. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
  7885. then :
  7886. printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>build/confdefs.h
  7887. fi
  7888. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7889. printf "%s\n" "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  7890. else
  7891. ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  7892. " "$ac_cxx_undeclared_builtin_options" "CXXFLAGS"
  7893. if test "x$ac_cv_have_decl_tzname" = xyes
  7894. then :
  7895. ac_have_decl=1
  7896. else $as_nop
  7897. ac_have_decl=0
  7898. fi
  7899. printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>build/confdefs.h
  7900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  7901. printf %s "checking for tzname... " >&6; }
  7902. if test ${ac_cv_var_tzname+y}
  7903. then :
  7904. printf %s "(cached) " >&6
  7905. else $as_nop
  7906. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7907. /* end build/confdefs.h. */
  7908. #include <time.h>
  7909. #if !HAVE_DECL_TZNAME
  7910. extern char *tzname[];
  7911. #endif
  7912. int
  7913. main (void)
  7914. {
  7915. return tzname[0][0];
  7916. ;
  7917. return 0;
  7918. }
  7919. _ACEOF
  7920. if ac_fn_cxx_try_link "$LINENO"
  7921. then :
  7922. ac_cv_var_tzname=yes
  7923. else $as_nop
  7924. ac_cv_var_tzname=no
  7925. fi
  7926. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7927. conftest$ac_exeext conftest.$ac_ext
  7928. fi
  7929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  7930. printf "%s\n" "$ac_cv_var_tzname" >&6; }
  7931. if test $ac_cv_var_tzname = yes; then
  7932. printf "%s\n" "#define HAVE_TZNAME 1" >>build/confdefs.h
  7933. fi
  7934. fi
  7935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7936. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7937. if test ${ac_cv_struct_tm+y}
  7938. then :
  7939. printf %s "(cached) " >&6
  7940. else $as_nop
  7941. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7942. /* end build/confdefs.h. */
  7943. #include <sys/types.h>
  7944. #include <time.h>
  7945. int
  7946. main (void)
  7947. {
  7948. struct tm tm;
  7949. int *p = &tm.tm_sec;
  7950. return !p;
  7951. ;
  7952. return 0;
  7953. }
  7954. _ACEOF
  7955. if ac_fn_cxx_try_compile "$LINENO"
  7956. then :
  7957. ac_cv_struct_tm=time.h
  7958. else $as_nop
  7959. ac_cv_struct_tm=sys/time.h
  7960. fi
  7961. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  7962. fi
  7963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7964. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  7965. if test $ac_cv_struct_tm = sys/time.h; then
  7966. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7967. fi
  7968. # Checks for library functions
  7969. # Make sure we can run config.sub.
  7970. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  7971. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  7972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  7973. printf %s "checking build system type... " >&6; }
  7974. if test ${ac_cv_build+y}
  7975. then :
  7976. printf %s "(cached) " >&6
  7977. else $as_nop
  7978. ac_build_alias=$build_alias
  7979. test "x$ac_build_alias" = x &&
  7980. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  7981. test "x$ac_build_alias" = x &&
  7982. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  7983. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  7984. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  7985. fi
  7986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  7987. printf "%s\n" "$ac_cv_build" >&6; }
  7988. case $ac_cv_build in
  7989. *-*-*) ;;
  7990. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  7991. esac
  7992. build=$ac_cv_build
  7993. ac_save_IFS=$IFS; IFS='-'
  7994. set x $ac_cv_build
  7995. shift
  7996. build_cpu=$1
  7997. build_vendor=$2
  7998. shift; shift
  7999. # Remember, the first character of IFS is used to create $*,
  8000. # except with old shells:
  8001. build_os=$*
  8002. IFS=$ac_save_IFS
  8003. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  8004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  8005. printf %s "checking host system type... " >&6; }
  8006. if test ${ac_cv_host+y}
  8007. then :
  8008. printf %s "(cached) " >&6
  8009. else $as_nop
  8010. if test "x$host_alias" = x; then
  8011. ac_cv_host=$ac_cv_build
  8012. else
  8013. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  8014. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  8015. fi
  8016. fi
  8017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  8018. printf "%s\n" "$ac_cv_host" >&6; }
  8019. case $ac_cv_host in
  8020. *-*-*) ;;
  8021. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  8022. esac
  8023. host=$ac_cv_host
  8024. ac_save_IFS=$IFS; IFS='-'
  8025. set x $ac_cv_host
  8026. shift
  8027. host_cpu=$1
  8028. host_vendor=$2
  8029. shift; shift
  8030. # Remember, the first character of IFS is used to create $*,
  8031. # except with old shells:
  8032. host_os=$*
  8033. IFS=$ac_save_IFS
  8034. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  8035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  8036. printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
  8037. if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
  8038. then :
  8039. printf %s "(cached) " >&6
  8040. else $as_nop
  8041. rm -f conftest.sym conftest.file
  8042. echo >conftest.file
  8043. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8044. if test "$cross_compiling" = yes
  8045. then :
  8046. case "$host_os" in # ((
  8047. # Guess yes on glibc systems.
  8048. *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
  8049. # If we don't know, assume the worst.
  8050. *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
  8051. esac
  8052. else $as_nop
  8053. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  8054. /* end build/confdefs.h. */
  8055. $ac_includes_default
  8056. int
  8057. main (void)
  8058. {
  8059. struct stat sbuf;
  8060. /* Linux will dereference the symlink and fail, as required by POSIX.
  8061. That is better in the sense that it means we will not
  8062. have to compile and use the lstat wrapper. */
  8063. return lstat ("conftest.sym/", &sbuf) == 0;
  8064. ;
  8065. return 0;
  8066. }
  8067. _ACEOF
  8068. if ac_fn_cxx_try_run "$LINENO"
  8069. then :
  8070. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8071. else $as_nop
  8072. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8073. fi
  8074. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8075. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8076. fi
  8077. else
  8078. # If the `ln -s' command failed, then we probably don't even
  8079. # have an lstat function.
  8080. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8081. fi
  8082. rm -f conftest.sym conftest.file
  8083. fi
  8084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8085. printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  8086. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8087. printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>build/confdefs.h
  8088. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  8089. case " $LIBOBJS " in
  8090. *" lstat.$ac_objext "* ) ;;
  8091. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8092. ;;
  8093. esac
  8094. fi
  8095. ac_func=
  8096. for ac_item in $ac_func_cxx_list
  8097. do
  8098. if test $ac_func; then
  8099. ac_fn_cxx_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  8100. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  8101. echo "#define $ac_item 1" >> build/confdefs.h
  8102. fi
  8103. ac_func=
  8104. else
  8105. ac_func=$ac_item
  8106. fi
  8107. done
  8108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8109. printf %s "checking for working mmap... " >&6; }
  8110. if test ${ac_cv_func_mmap_fixed_mapped+y}
  8111. then :
  8112. printf %s "(cached) " >&6
  8113. else $as_nop
  8114. if test "$cross_compiling" = yes
  8115. then :
  8116. case "$host_os" in # ((
  8117. # Guess yes on platforms where we know the result.
  8118. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  8119. # If we don't know, assume the worst.
  8120. *) ac_cv_func_mmap_fixed_mapped=no ;;
  8121. esac
  8122. else $as_nop
  8123. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  8124. /* end build/confdefs.h. */
  8125. $ac_includes_default
  8126. /* malloc might have been renamed as rpl_malloc. */
  8127. #undef malloc
  8128. /* Thanks to Mike Haertel and Jim Avera for this test.
  8129. Here is a matrix of mmap possibilities:
  8130. mmap private not fixed
  8131. mmap private fixed at somewhere currently unmapped
  8132. mmap private fixed at somewhere already mapped
  8133. mmap shared not fixed
  8134. mmap shared fixed at somewhere currently unmapped
  8135. mmap shared fixed at somewhere already mapped
  8136. For private mappings, we should verify that changes cannot be read()
  8137. back from the file, nor mmap's back from the file at a different
  8138. address. (There have been systems where private was not correctly
  8139. implemented like the infamous i386 svr4.0, and systems where the
  8140. VM page cache was not coherent with the file system buffer cache
  8141. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8142. For shared mappings, we should conversely verify that changes get
  8143. propagated back to all the places they're supposed to be.
  8144. Grep wants private fixed already mapped.
  8145. The main things grep needs to know about mmap are:
  8146. * does it exist and is it safe to write into the mmap'd area
  8147. * how to use it (BSD variants) */
  8148. #include <fcntl.h>
  8149. #include <sys/mman.h>
  8150. /* This mess was copied from the GNU getpagesize.h. */
  8151. #ifndef HAVE_GETPAGESIZE
  8152. # ifdef _SC_PAGESIZE
  8153. # define getpagesize() sysconf(_SC_PAGESIZE)
  8154. # else /* no _SC_PAGESIZE */
  8155. # ifdef HAVE_SYS_PARAM_H
  8156. # include <sys/param.h>
  8157. # ifdef EXEC_PAGESIZE
  8158. # define getpagesize() EXEC_PAGESIZE
  8159. # else /* no EXEC_PAGESIZE */
  8160. # ifdef NBPG
  8161. # define getpagesize() NBPG * CLSIZE
  8162. # ifndef CLSIZE
  8163. # define CLSIZE 1
  8164. # endif /* no CLSIZE */
  8165. # else /* no NBPG */
  8166. # ifdef NBPC
  8167. # define getpagesize() NBPC
  8168. # else /* no NBPC */
  8169. # ifdef PAGESIZE
  8170. # define getpagesize() PAGESIZE
  8171. # endif /* PAGESIZE */
  8172. # endif /* no NBPC */
  8173. # endif /* no NBPG */
  8174. # endif /* no EXEC_PAGESIZE */
  8175. # else /* no HAVE_SYS_PARAM_H */
  8176. # define getpagesize() 8192 /* punt totally */
  8177. # endif /* no HAVE_SYS_PARAM_H */
  8178. # endif /* no _SC_PAGESIZE */
  8179. #endif /* no HAVE_GETPAGESIZE */
  8180. int
  8181. main (void)
  8182. {
  8183. char *data, *data2, *data3;
  8184. const char *cdata2;
  8185. int i, pagesize;
  8186. int fd, fd2;
  8187. pagesize = getpagesize ();
  8188. /* First, make a file with some known garbage in it. */
  8189. data = (char *) malloc (pagesize);
  8190. if (!data)
  8191. return 1;
  8192. for (i = 0; i < pagesize; ++i)
  8193. *(data + i) = rand ();
  8194. umask (0);
  8195. fd = creat ("conftest.mmap", 0600);
  8196. if (fd < 0)
  8197. return 2;
  8198. if (write (fd, data, pagesize) != pagesize)
  8199. return 3;
  8200. close (fd);
  8201. /* Next, check that the tail of a page is zero-filled. File must have
  8202. non-zero length, otherwise we risk SIGBUS for entire page. */
  8203. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8204. if (fd2 < 0)
  8205. return 4;
  8206. cdata2 = "";
  8207. if (write (fd2, cdata2, 1) != 1)
  8208. return 5;
  8209. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8210. if (data2 == MAP_FAILED)
  8211. return 6;
  8212. for (i = 0; i < pagesize; ++i)
  8213. if (*(data2 + i))
  8214. return 7;
  8215. close (fd2);
  8216. if (munmap (data2, pagesize))
  8217. return 8;
  8218. /* Next, try to mmap the file at a fixed address which already has
  8219. something else allocated at it. If we can, also make sure that
  8220. we see the same garbage. */
  8221. fd = open ("conftest.mmap", O_RDWR);
  8222. if (fd < 0)
  8223. return 9;
  8224. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8225. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8226. return 10;
  8227. for (i = 0; i < pagesize; ++i)
  8228. if (*(data + i) != *(data2 + i))
  8229. return 11;
  8230. /* Finally, make sure that changes to the mapped area do not
  8231. percolate back to the file as seen by read(). (This is a bug on
  8232. some variants of i386 svr4.0.) */
  8233. for (i = 0; i < pagesize; ++i)
  8234. *(data2 + i) = *(data2 + i) + 1;
  8235. data3 = (char *) malloc (pagesize);
  8236. if (!data3)
  8237. return 12;
  8238. if (read (fd, data3, pagesize) != pagesize)
  8239. return 13;
  8240. for (i = 0; i < pagesize; ++i)
  8241. if (*(data + i) != *(data3 + i))
  8242. return 14;
  8243. close (fd);
  8244. free (data);
  8245. free (data3);
  8246. return 0;
  8247. }
  8248. _ACEOF
  8249. if ac_fn_cxx_try_run "$LINENO"
  8250. then :
  8251. ac_cv_func_mmap_fixed_mapped=yes
  8252. else $as_nop
  8253. ac_cv_func_mmap_fixed_mapped=no
  8254. fi
  8255. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8256. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8257. fi
  8258. fi
  8259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8260. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8261. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8262. printf "%s\n" "#define HAVE_MMAP 1" >>build/confdefs.h
  8263. fi
  8264. rm -f conftest.mmap conftest.txt
  8265. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  8266. #include <sys/time.h>
  8267. #include <time.h>
  8268. "
  8269. if test "x$ac_cv_type_struct_timespec" = xyes
  8270. then :
  8271. printf "%s\n" "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  8272. fi
  8273. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  8274. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  8275. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
  8276. then :
  8277. printf "%s\n" "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  8278. else $as_nop
  8279. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  8280. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes
  8281. then :
  8282. printf "%s\n" "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  8283. fi
  8284. fi
  8285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  8286. printf %s "checking for two-parameter timespecsub... " >&6; }
  8287. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  8288. /* end build/confdefs.h. */
  8289. #include <sys/types.h>
  8290. #include <sys/time.h>
  8291. int
  8292. main (void)
  8293. {
  8294. struct timespec ts1, ts2;
  8295. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  8296. #ifndef timespecsub
  8297. #error missing timespecsub
  8298. #endif
  8299. timespecsub(&ts1, &ts2);
  8300. ;
  8301. return 0;
  8302. }
  8303. _ACEOF
  8304. if ac_fn_cxx_try_compile "$LINENO"
  8305. then :
  8306. printf "%s\n" "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  8307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8308. printf "%s\n" "yes" >&6; }
  8309. else $as_nop
  8310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8311. printf "%s\n" "no" >&6; }
  8312. fi
  8313. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8314. fi
  8315. #checkpoint
  8316. cat >confcache <<\_ACEOF
  8317. # This file is a shell script that caches the results of configure
  8318. # tests run on this system so they can be shared between configure
  8319. # scripts and configure runs, see configure's option --config-cache.
  8320. # It is not useful on other systems. If it contains results you don't
  8321. # want to keep, you may remove or edit it.
  8322. #
  8323. # build/config.status only pays attention to the cache file if you give it
  8324. # the --recheck option to rerun configure.
  8325. #
  8326. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8327. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8328. # following values.
  8329. _ACEOF
  8330. # The following way of writing the cache mishandles newlines in values,
  8331. # but we know of no workaround that is simple, portable, and efficient.
  8332. # So, we kill variables containing newlines.
  8333. # Ultrix sh set writes to stderr and can't be redirected directly,
  8334. # and sets the high bit in the cache file unless we assign to the vars.
  8335. (
  8336. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8337. eval ac_val=\$$ac_var
  8338. case $ac_val in #(
  8339. *${as_nl}*)
  8340. case $ac_var in #(
  8341. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8342. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8343. esac
  8344. case $ac_var in #(
  8345. _ | IFS | as_nl) ;; #(
  8346. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8347. *) { eval $ac_var=; unset $ac_var;} ;;
  8348. esac ;;
  8349. esac
  8350. done
  8351. (set) 2>&1 |
  8352. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8353. *${as_nl}ac_space=\ *)
  8354. # `set' does not quote correctly, so add quotes: double-quote
  8355. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8356. sed -n \
  8357. "s/'/'\\\\''/g;
  8358. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8359. ;; #(
  8360. *)
  8361. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8362. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8363. ;;
  8364. esac |
  8365. sort
  8366. ) |
  8367. sed '
  8368. /^ac_cv_env_/b end
  8369. t clear
  8370. :clear
  8371. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  8372. t end
  8373. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8374. :end' >>confcache
  8375. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8376. if test -w "$cache_file"; then
  8377. if test "x$cache_file" != "x/dev/null"; then
  8378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8379. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  8380. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8381. cat confcache >"$cache_file"
  8382. else
  8383. case $cache_file in #(
  8384. */* | ?:*)
  8385. mv -f confcache "$cache_file"$$ &&
  8386. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8387. *)
  8388. mv -f confcache "$cache_file" ;;
  8389. esac
  8390. fi
  8391. fi
  8392. else
  8393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8394. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  8395. fi
  8396. fi
  8397. rm -f confcache
  8398. ac_fn_cxx_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
  8399. if test "x$ac_cv_func_getrusage" = xyes
  8400. then :
  8401. printf "%s\n" "#define HAVE_GETRUSAGE 1" >>build/confdefs.h
  8402. fi
  8403. ac_fn_cxx_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
  8404. if test "x$ac_cv_func_getpassphrase" = xyes
  8405. then :
  8406. printf "%s\n" "#define HAVE_GETPASSPHRASE 1" >>build/confdefs.h
  8407. fi
  8408. ac_fn_cxx_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise"
  8409. if test "x$ac_cv_func_posix_madvise" = xyes
  8410. then :
  8411. printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>build/confdefs.h
  8412. fi
  8413. ac_fn_cxx_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
  8414. if test "x$ac_cv_func_madvise" = xyes
  8415. then :
  8416. printf "%s\n" "#define HAVE_MADVISE 1" >>build/confdefs.h
  8417. fi
  8418. ac_fn_cxx_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  8419. if test "x$ac_cv_func_memmem" = xyes
  8420. then :
  8421. printf "%s\n" "#define HAVE_MEMMEM 1" >>build/confdefs.h
  8422. fi
  8423. ac_fn_cxx_check_func "$LINENO" "random" "ac_cv_func_random"
  8424. if test "x$ac_cv_func_random" = xyes
  8425. then :
  8426. printf "%s\n" "#define HAVE_RANDOM 1" >>build/confdefs.h
  8427. fi
  8428. ac_fn_cxx_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  8429. if test "x$ac_cv_func_snprintf" = xyes
  8430. then :
  8431. printf "%s\n" "#define HAVE_SNPRINTF 1" >>build/confdefs.h
  8432. fi
  8433. ac_fn_cxx_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
  8434. if test "x$ac_cv_func_srandom" = xyes
  8435. then :
  8436. printf "%s\n" "#define HAVE_SRANDOM 1" >>build/confdefs.h
  8437. fi
  8438. ac_fn_cxx_check_func "$LINENO" "gettime" "ac_cv_func_gettime"
  8439. if test "x$ac_cv_func_gettime" = xyes
  8440. then :
  8441. printf "%s\n" "#define HAVE_GETTIME 1" >>build/confdefs.h
  8442. fi
  8443. #checkpoint
  8444. cat >confcache <<\_ACEOF
  8445. # This file is a shell script that caches the results of configure
  8446. # tests run on this system so they can be shared between configure
  8447. # scripts and configure runs, see configure's option --config-cache.
  8448. # It is not useful on other systems. If it contains results you don't
  8449. # want to keep, you may remove or edit it.
  8450. #
  8451. # build/config.status only pays attention to the cache file if you give it
  8452. # the --recheck option to rerun configure.
  8453. #
  8454. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8455. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8456. # following values.
  8457. _ACEOF
  8458. # The following way of writing the cache mishandles newlines in values,
  8459. # but we know of no workaround that is simple, portable, and efficient.
  8460. # So, we kill variables containing newlines.
  8461. # Ultrix sh set writes to stderr and can't be redirected directly,
  8462. # and sets the high bit in the cache file unless we assign to the vars.
  8463. (
  8464. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8465. eval ac_val=\$$ac_var
  8466. case $ac_val in #(
  8467. *${as_nl}*)
  8468. case $ac_var in #(
  8469. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8470. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8471. esac
  8472. case $ac_var in #(
  8473. _ | IFS | as_nl) ;; #(
  8474. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8475. *) { eval $ac_var=; unset $ac_var;} ;;
  8476. esac ;;
  8477. esac
  8478. done
  8479. (set) 2>&1 |
  8480. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8481. *${as_nl}ac_space=\ *)
  8482. # `set' does not quote correctly, so add quotes: double-quote
  8483. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8484. sed -n \
  8485. "s/'/'\\\\''/g;
  8486. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8487. ;; #(
  8488. *)
  8489. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8490. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8491. ;;
  8492. esac |
  8493. sort
  8494. ) |
  8495. sed '
  8496. /^ac_cv_env_/b end
  8497. t clear
  8498. :clear
  8499. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  8500. t end
  8501. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8502. :end' >>confcache
  8503. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8504. if test -w "$cache_file"; then
  8505. if test "x$cache_file" != "x/dev/null"; then
  8506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8507. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  8508. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8509. cat confcache >"$cache_file"
  8510. else
  8511. case $cache_file in #(
  8512. */* | ?:*)
  8513. mv -f confcache "$cache_file"$$ &&
  8514. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8515. *)
  8516. mv -f confcache "$cache_file" ;;
  8517. esac
  8518. fi
  8519. fi
  8520. else
  8521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8522. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  8523. fi
  8524. fi
  8525. rm -f confcache
  8526. ac_fn_cxx_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  8527. if test "x$ac_cv_func_vsnprintf" = xyes
  8528. then :
  8529. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>build/confdefs.h
  8530. fi
  8531. ac_fn_cxx_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
  8532. if test "x$ac_cv_func_prctl" = xyes
  8533. then :
  8534. printf "%s\n" "#define HAVE_PRCTL 1" >>build/confdefs.h
  8535. fi
  8536. ac_fn_cxx_check_func "$LINENO" "procctl" "ac_cv_func_procctl"
  8537. if test "x$ac_cv_func_procctl" = xyes
  8538. then :
  8539. printf "%s\n" "#define HAVE_PROCCTL 1" >>build/confdefs.h
  8540. fi
  8541. ac_fn_cxx_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
  8542. if test "x$ac_cv_func_closefrom" = xyes
  8543. then :
  8544. printf "%s\n" "#define HAVE_CLOSEFROM 1" >>build/confdefs.h
  8545. fi
  8546. #autoscan suggested this....
  8547. #These are recommended by autoscan, but no code supports it currently
  8548. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  8549. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  8550. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  8551. if test "x$ac_cv_func_vsprintf" = xyes
  8552. then :
  8553. printf "%s\n" "#define HAVE_VSPRINTF 1" >>build/confdefs.h
  8554. fi
  8555. if test "$ac_cv_func_vsprintf" = "no"
  8556. then
  8557. cat << 'EOF' >&2
  8558. configure: error:
  8559. Your system does not have the sprintf/vsprintf libraries.
  8560. These are required to compile almost anything. Sorry.
  8561. EOF
  8562. exit 1
  8563. fi
  8564. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  8565. if test "x$ac_cv_func_uname" = xyes
  8566. then :
  8567. printf "%s\n" "#define HAVE_UNAME 1" >>build/confdefs.h
  8568. fi
  8569. if test "$ac_cv_func_uname" = "no"
  8570. then
  8571. cat << 'EOF' >&2
  8572. configure: error:
  8573. Your system does not have the uname() function.
  8574. This is required for the botpack.
  8575. EOF
  8576. exit 1
  8577. fi
  8578. # Make sure we have stdc headers, since we can't compile without them
  8579. if test "$ac_cv_header_stdc" = "no"
  8580. then
  8581. cat << 'EOF' >&2
  8582. configure: error:
  8583. Your system must support ANSI C Header files.
  8584. These are required for the language support. Sorry.
  8585. EOF
  8586. exit 1
  8587. fi
  8588. #checkpoint
  8589. cat >confcache <<\_ACEOF
  8590. # This file is a shell script that caches the results of configure
  8591. # tests run on this system so they can be shared between configure
  8592. # scripts and configure runs, see configure's option --config-cache.
  8593. # It is not useful on other systems. If it contains results you don't
  8594. # want to keep, you may remove or edit it.
  8595. #
  8596. # build/config.status only pays attention to the cache file if you give it
  8597. # the --recheck option to rerun configure.
  8598. #
  8599. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8600. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8601. # following values.
  8602. _ACEOF
  8603. # The following way of writing the cache mishandles newlines in values,
  8604. # but we know of no workaround that is simple, portable, and efficient.
  8605. # So, we kill variables containing newlines.
  8606. # Ultrix sh set writes to stderr and can't be redirected directly,
  8607. # and sets the high bit in the cache file unless we assign to the vars.
  8608. (
  8609. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8610. eval ac_val=\$$ac_var
  8611. case $ac_val in #(
  8612. *${as_nl}*)
  8613. case $ac_var in #(
  8614. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8615. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8616. esac
  8617. case $ac_var in #(
  8618. _ | IFS | as_nl) ;; #(
  8619. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8620. *) { eval $ac_var=; unset $ac_var;} ;;
  8621. esac ;;
  8622. esac
  8623. done
  8624. (set) 2>&1 |
  8625. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8626. *${as_nl}ac_space=\ *)
  8627. # `set' does not quote correctly, so add quotes: double-quote
  8628. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8629. sed -n \
  8630. "s/'/'\\\\''/g;
  8631. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8632. ;; #(
  8633. *)
  8634. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8635. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8636. ;;
  8637. esac |
  8638. sort
  8639. ) |
  8640. sed '
  8641. /^ac_cv_env_/b end
  8642. t clear
  8643. :clear
  8644. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  8645. t end
  8646. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8647. :end' >>confcache
  8648. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8649. if test -w "$cache_file"; then
  8650. if test "x$cache_file" != "x/dev/null"; then
  8651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8652. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  8653. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8654. cat confcache >"$cache_file"
  8655. else
  8656. case $cache_file in #(
  8657. */* | ?:*)
  8658. mv -f confcache "$cache_file"$$ &&
  8659. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8660. *)
  8661. mv -f confcache "$cache_file" ;;
  8662. esac
  8663. fi
  8664. fi
  8665. else
  8666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8667. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  8668. fi
  8669. fi
  8670. rm -f confcache
  8671. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  8672. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  8673. printf "%s\n" "#define EGG_VERSION $version_num" >>build/confdefs.h
  8674. #FIND_WRAPS
  8675. files="src/Makefile.in"
  8676. for mf in $files; do
  8677. # Strip MF so we end up with the name of the file.
  8678. mf=${mf%%:*}
  8679. dirmf=${mf%/*}
  8680. rm -f "$dirmf/.deps/includes"
  8681. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  8682. for file in `sed -n -e '
  8683. /^OBJS = .*\\\\$/ {
  8684. s/^OBJS = //
  8685. :loop
  8686. s/\\\\$//
  8687. p
  8688. n
  8689. /\\\\$/ b loop
  8690. p
  8691. }
  8692. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  8693. do
  8694. dirpart="${dirmf}/${file}"
  8695. dirpart="${dirpart%/*}"
  8696. if [ "${dirpart}" != "${dirmf}" ]; then
  8697. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  8698. fi
  8699. file="${file##*/}"
  8700. suffix=${file##*.}
  8701. base=${file%%.*}
  8702. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  8703. if ! test -f "$dirpart/.deps/$base.Po"; then
  8704. echo '# dummy' > "$dirpart/.deps/$base.Po"
  8705. #Remove the .o file, because it needs to be recompiled for its dependancies.
  8706. if test -f "$dirpart/${base}.${suffix}"; then
  8707. rm -f "$dirpart/${base}.${suffix}"
  8708. fi
  8709. fi
  8710. echo "include .${dirpart#${dirmf}}/.deps/$base.Po" >> "${dirmf}/.deps/includes"
  8711. done
  8712. done
  8713. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  8714. GIT_REQUIRED=1
  8715. if [ "$GIT_REQUIRED" = "1" ]; then
  8716. if ! test -d .git; then
  8717. echo ""
  8718. echo ""
  8719. echo "You have downloaded a GIT version of wraith."
  8720. echo "Either 'git clone' from a git repository or download a source tarball"
  8721. echo "A distribution version can be found at https://github.com/wraith/wraith/wiki/Download"
  8722. echo ""
  8723. echo ""
  8724. exit 1
  8725. fi
  8726. fi
  8727. if test -d .git; then
  8728. git submodule init || exit 1
  8729. git submodule update || exit 1
  8730. git submodule foreach --recursive git clean -fdx || exit 1
  8731. # Restore as it may have been removed by an older 'make distclean'
  8732. if ! test -f src/response.h; then
  8733. git checkout src/response.h || exit 1
  8734. fi
  8735. fi
  8736. export CC CXX
  8737. if [ -f lib/bdlib/configure ]; then
  8738. subdirs="$subdirs lib/bdlib"
  8739. fi
  8740. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  8741. subdirs="$subdirs lib/libelf"
  8742. fi
  8743. cat >confcache <<\_ACEOF
  8744. # This file is a shell script that caches the results of configure
  8745. # tests run on this system so they can be shared between configure
  8746. # scripts and configure runs, see configure's option --config-cache.
  8747. # It is not useful on other systems. If it contains results you don't
  8748. # want to keep, you may remove or edit it.
  8749. #
  8750. # build/config.status only pays attention to the cache file if you give it
  8751. # the --recheck option to rerun configure.
  8752. #
  8753. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8754. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8755. # following values.
  8756. _ACEOF
  8757. # The following way of writing the cache mishandles newlines in values,
  8758. # but we know of no workaround that is simple, portable, and efficient.
  8759. # So, we kill variables containing newlines.
  8760. # Ultrix sh set writes to stderr and can't be redirected directly,
  8761. # and sets the high bit in the cache file unless we assign to the vars.
  8762. (
  8763. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8764. eval ac_val=\$$ac_var
  8765. case $ac_val in #(
  8766. *${as_nl}*)
  8767. case $ac_var in #(
  8768. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8769. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8770. esac
  8771. case $ac_var in #(
  8772. _ | IFS | as_nl) ;; #(
  8773. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8774. *) { eval $ac_var=; unset $ac_var;} ;;
  8775. esac ;;
  8776. esac
  8777. done
  8778. (set) 2>&1 |
  8779. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8780. *${as_nl}ac_space=\ *)
  8781. # `set' does not quote correctly, so add quotes: double-quote
  8782. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8783. sed -n \
  8784. "s/'/'\\\\''/g;
  8785. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8786. ;; #(
  8787. *)
  8788. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8789. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8790. ;;
  8791. esac |
  8792. sort
  8793. ) |
  8794. sed '
  8795. /^ac_cv_env_/b end
  8796. t clear
  8797. :clear
  8798. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  8799. t end
  8800. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8801. :end' >>confcache
  8802. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8803. if test -w "$cache_file"; then
  8804. if test "x$cache_file" != "x/dev/null"; then
  8805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8806. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  8807. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8808. cat confcache >"$cache_file"
  8809. else
  8810. case $cache_file in #(
  8811. */* | ?:*)
  8812. mv -f confcache "$cache_file"$$ &&
  8813. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8814. *)
  8815. mv -f confcache "$cache_file" ;;
  8816. esac
  8817. fi
  8818. fi
  8819. else
  8820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8821. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  8822. fi
  8823. fi
  8824. rm -f confcache
  8825. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8826. # Let make expand exec_prefix.
  8827. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8828. DEFS=-DHAVE_CONFIG_H
  8829. ac_libobjs=
  8830. ac_ltlibobjs=
  8831. U=
  8832. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8833. # 1. Remove the extension, and $U if already installed.
  8834. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8835. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  8836. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8837. # will be set to the directory where LIBOBJS objects are built.
  8838. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8839. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8840. done
  8841. LIBOBJS=$ac_libobjs
  8842. LTLIBOBJS=$ac_ltlibobjs
  8843. : "${CONFIG_STATUS=./build/config.status}"
  8844. ac_write_fail=0
  8845. ac_clean_files_save=$ac_clean_files
  8846. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8848. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  8849. as_write_fail=0
  8850. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8851. #! $SHELL
  8852. # Generated by $as_me.
  8853. # Run this file to recreate the current configuration.
  8854. # Compiler output produced by configure, useful for debugging
  8855. # configure, is in build/config.log if it exists.
  8856. debug=false
  8857. ac_cs_recheck=false
  8858. ac_cs_silent=false
  8859. SHELL=\${CONFIG_SHELL-$SHELL}
  8860. export SHELL
  8861. _ASEOF
  8862. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8863. ## -------------------- ##
  8864. ## M4sh Initialization. ##
  8865. ## -------------------- ##
  8866. # Be more Bourne compatible
  8867. DUALCASE=1; export DUALCASE # for MKS sh
  8868. as_nop=:
  8869. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  8870. then :
  8871. emulate sh
  8872. NULLCMD=:
  8873. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8874. # is contrary to our usage. Disable this feature.
  8875. alias -g '${1+"$@"}'='"$@"'
  8876. setopt NO_GLOB_SUBST
  8877. else $as_nop
  8878. case `(set -o) 2>/dev/null` in #(
  8879. *posix*) :
  8880. set -o posix ;; #(
  8881. *) :
  8882. ;;
  8883. esac
  8884. fi
  8885. # Reset variables that may have inherited troublesome values from
  8886. # the environment.
  8887. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  8888. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  8889. # side effect of setting IFS to empty, thus disabling word splitting.)
  8890. # Quoting is to prevent editors from complaining about space-tab.
  8891. as_nl='
  8892. '
  8893. export as_nl
  8894. IFS=" "" $as_nl"
  8895. PS1='$ '
  8896. PS2='> '
  8897. PS4='+ '
  8898. # Ensure predictable behavior from utilities with locale-dependent output.
  8899. LC_ALL=C
  8900. export LC_ALL
  8901. LANGUAGE=C
  8902. export LANGUAGE
  8903. # We cannot yet rely on "unset" to work, but we need these variables
  8904. # to be unset--not just set to an empty or harmless value--now, to
  8905. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  8906. # also avoids known problems related to "unset" and subshell syntax
  8907. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  8908. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  8909. do eval test \${$as_var+y} \
  8910. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8911. done
  8912. # Ensure that fds 0, 1, and 2 are open.
  8913. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  8914. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  8915. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  8916. # The user is always right.
  8917. if ${PATH_SEPARATOR+false} :; then
  8918. PATH_SEPARATOR=:
  8919. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8920. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8921. PATH_SEPARATOR=';'
  8922. }
  8923. fi
  8924. # Find who we are. Look in the path if we contain no directory separator.
  8925. as_myself=
  8926. case $0 in #((
  8927. *[\\/]* ) as_myself=$0 ;;
  8928. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8929. for as_dir in $PATH
  8930. do
  8931. IFS=$as_save_IFS
  8932. case $as_dir in #(((
  8933. '') as_dir=./ ;;
  8934. */) ;;
  8935. *) as_dir=$as_dir/ ;;
  8936. esac
  8937. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  8938. done
  8939. IFS=$as_save_IFS
  8940. ;;
  8941. esac
  8942. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8943. # in which case we are not to be found in the path.
  8944. if test "x$as_myself" = x; then
  8945. as_myself=$0
  8946. fi
  8947. if test ! -f "$as_myself"; then
  8948. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8949. exit 1
  8950. fi
  8951. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8952. # ----------------------------------------
  8953. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8954. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8955. # script with STATUS, using 1 if that was 0.
  8956. as_fn_error ()
  8957. {
  8958. as_status=$1; test $as_status -eq 0 && as_status=1
  8959. if test "$4"; then
  8960. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8961. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8962. fi
  8963. printf "%s\n" "$as_me: error: $2" >&2
  8964. as_fn_exit $as_status
  8965. } # as_fn_error
  8966. # as_fn_set_status STATUS
  8967. # -----------------------
  8968. # Set $? to STATUS, without forking.
  8969. as_fn_set_status ()
  8970. {
  8971. return $1
  8972. } # as_fn_set_status
  8973. # as_fn_exit STATUS
  8974. # -----------------
  8975. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8976. as_fn_exit ()
  8977. {
  8978. set +e
  8979. as_fn_set_status $1
  8980. exit $1
  8981. } # as_fn_exit
  8982. # as_fn_unset VAR
  8983. # ---------------
  8984. # Portably unset VAR.
  8985. as_fn_unset ()
  8986. {
  8987. { eval $1=; unset $1;}
  8988. }
  8989. as_unset=as_fn_unset
  8990. # as_fn_append VAR VALUE
  8991. # ----------------------
  8992. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8993. # advantage of any shell optimizations that allow amortized linear growth over
  8994. # repeated appends, instead of the typical quadratic growth present in naive
  8995. # implementations.
  8996. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  8997. then :
  8998. eval 'as_fn_append ()
  8999. {
  9000. eval $1+=\$2
  9001. }'
  9002. else $as_nop
  9003. as_fn_append ()
  9004. {
  9005. eval $1=\$$1\$2
  9006. }
  9007. fi # as_fn_append
  9008. # as_fn_arith ARG...
  9009. # ------------------
  9010. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9011. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9012. # must be portable across $(()) and expr.
  9013. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  9014. then :
  9015. eval 'as_fn_arith ()
  9016. {
  9017. as_val=$(( $* ))
  9018. }'
  9019. else $as_nop
  9020. as_fn_arith ()
  9021. {
  9022. as_val=`expr "$@" || test $? -eq 1`
  9023. }
  9024. fi # as_fn_arith
  9025. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9026. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9027. as_expr=expr
  9028. else
  9029. as_expr=false
  9030. fi
  9031. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9032. as_basename=basename
  9033. else
  9034. as_basename=false
  9035. fi
  9036. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9037. as_dirname=dirname
  9038. else
  9039. as_dirname=false
  9040. fi
  9041. as_me=`$as_basename -- "$0" ||
  9042. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9043. X"$0" : 'X\(//\)$' \| \
  9044. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9045. printf "%s\n" X/"$0" |
  9046. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9047. s//\1/
  9048. q
  9049. }
  9050. /^X\/\(\/\/\)$/{
  9051. s//\1/
  9052. q
  9053. }
  9054. /^X\/\(\/\).*/{
  9055. s//\1/
  9056. q
  9057. }
  9058. s/.*/./; q'`
  9059. # Avoid depending upon Character Ranges.
  9060. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9061. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9062. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9063. as_cr_digits='0123456789'
  9064. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9065. # Determine whether it's possible to make 'echo' print without a newline.
  9066. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  9067. # for compatibility with existing Makefiles.
  9068. ECHO_C= ECHO_N= ECHO_T=
  9069. case `echo -n x` in #(((((
  9070. -n*)
  9071. case `echo 'xy\c'` in
  9072. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9073. xy) ECHO_C='\c';;
  9074. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9075. ECHO_T=' ';;
  9076. esac;;
  9077. *)
  9078. ECHO_N='-n';;
  9079. esac
  9080. # For backward compatibility with old third-party macros, we provide
  9081. # the shell variables $as_echo and $as_echo_n. New code should use
  9082. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  9083. as_echo='printf %s\n'
  9084. as_echo_n='printf %s'
  9085. rm -f conf$$ conf$$.exe conf$$.file
  9086. if test -d conf$$.dir; then
  9087. rm -f conf$$.dir/conf$$.file
  9088. else
  9089. rm -f conf$$.dir
  9090. mkdir conf$$.dir 2>/dev/null
  9091. fi
  9092. if (echo >conf$$.file) 2>/dev/null; then
  9093. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9094. as_ln_s='ln -s'
  9095. # ... but there are two gotchas:
  9096. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9097. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9098. # In both cases, we have to default to `cp -pR'.
  9099. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9100. as_ln_s='cp -pR'
  9101. elif ln conf$$.file conf$$ 2>/dev/null; then
  9102. as_ln_s=ln
  9103. else
  9104. as_ln_s='cp -pR'
  9105. fi
  9106. else
  9107. as_ln_s='cp -pR'
  9108. fi
  9109. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9110. rmdir conf$$.dir 2>/dev/null
  9111. # as_fn_mkdir_p
  9112. # -------------
  9113. # Create "$as_dir" as a directory, including parents if necessary.
  9114. as_fn_mkdir_p ()
  9115. {
  9116. case $as_dir in #(
  9117. -*) as_dir=./$as_dir;;
  9118. esac
  9119. test -d "$as_dir" || eval $as_mkdir_p || {
  9120. as_dirs=
  9121. while :; do
  9122. case $as_dir in #(
  9123. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9124. *) as_qdir=$as_dir;;
  9125. esac
  9126. as_dirs="'$as_qdir' $as_dirs"
  9127. as_dir=`$as_dirname -- "$as_dir" ||
  9128. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9129. X"$as_dir" : 'X\(//\)[^/]' \| \
  9130. X"$as_dir" : 'X\(//\)$' \| \
  9131. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9132. printf "%s\n" X"$as_dir" |
  9133. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9134. s//\1/
  9135. q
  9136. }
  9137. /^X\(\/\/\)[^/].*/{
  9138. s//\1/
  9139. q
  9140. }
  9141. /^X\(\/\/\)$/{
  9142. s//\1/
  9143. q
  9144. }
  9145. /^X\(\/\).*/{
  9146. s//\1/
  9147. q
  9148. }
  9149. s/.*/./; q'`
  9150. test -d "$as_dir" && break
  9151. done
  9152. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9153. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9154. } # as_fn_mkdir_p
  9155. if mkdir -p . 2>/dev/null; then
  9156. as_mkdir_p='mkdir -p "$as_dir"'
  9157. else
  9158. test -d ./-p && rmdir ./-p
  9159. as_mkdir_p=false
  9160. fi
  9161. # as_fn_executable_p FILE
  9162. # -----------------------
  9163. # Test if FILE is an executable regular file.
  9164. as_fn_executable_p ()
  9165. {
  9166. test -f "$1" && test -x "$1"
  9167. } # as_fn_executable_p
  9168. as_test_x='test -x'
  9169. as_executable_p=as_fn_executable_p
  9170. # Sed expression to map a string onto a valid CPP name.
  9171. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9172. # Sed expression to map a string onto a valid variable name.
  9173. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9174. exec 6>&1
  9175. ## ----------------------------------- ##
  9176. ## Main body of $CONFIG_STATUS script. ##
  9177. ## ----------------------------------- ##
  9178. _ASEOF
  9179. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9180. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9181. # Save the log message, to keep $0 and so on meaningful, and to
  9182. # report actual input values of CONFIG_FILES etc. instead of their
  9183. # values after options handling.
  9184. ac_log="
  9185. This file was extended by $as_me, which was
  9186. generated by GNU Autoconf 2.71. Invocation command line was
  9187. CONFIG_FILES = $CONFIG_FILES
  9188. CONFIG_HEADERS = $CONFIG_HEADERS
  9189. CONFIG_LINKS = $CONFIG_LINKS
  9190. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9191. $ $0 $@
  9192. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9193. "
  9194. _ACEOF
  9195. case $ac_config_files in *"
  9196. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9197. esac
  9198. case $ac_config_headers in *"
  9199. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9200. esac
  9201. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9202. # Files that build/config.status was made for.
  9203. config_files="$ac_config_files"
  9204. config_headers="$ac_config_headers"
  9205. _ACEOF
  9206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9207. ac_cs_usage="\
  9208. \`$as_me' instantiates files and other configuration actions
  9209. from templates according to the current configuration. Unless the files
  9210. and actions are specified as TAGs, all are instantiated by default.
  9211. Usage: $0 [OPTION]... [TAG]...
  9212. -h, --help print this help, then exit
  9213. -V, --version print version number and configuration settings, then exit
  9214. --config print configuration, then exit
  9215. -q, --quiet, --silent
  9216. do not print progress messages
  9217. -d, --debug don't remove temporary files
  9218. --recheck update $as_me by reconfiguring in the same conditions
  9219. --file=FILE[:TEMPLATE]
  9220. instantiate the configuration file FILE
  9221. --header=FILE[:TEMPLATE]
  9222. instantiate the configuration header FILE
  9223. Configuration files:
  9224. $config_files
  9225. Configuration headers:
  9226. $config_headers
  9227. Report bugs to the package provider."
  9228. _ACEOF
  9229. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  9230. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  9231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9232. ac_cs_config='$ac_cs_config_escaped'
  9233. ac_cs_version="\\
  9234. build/config.status
  9235. configured by $0, generated by GNU Autoconf 2.71,
  9236. with options \\"\$ac_cs_config\\"
  9237. Copyright (C) 2021 Free Software Foundation, Inc.
  9238. This build/config.status script is free software; the Free Software Foundation
  9239. gives unlimited permission to copy, distribute and modify it."
  9240. ac_pwd='$ac_pwd'
  9241. srcdir='$srcdir'
  9242. AWK='$AWK'
  9243. test -n "\$AWK" || AWK=awk
  9244. _ACEOF
  9245. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9246. # The default lists apply if the user does not specify any file.
  9247. ac_need_defaults=:
  9248. while test $# != 0
  9249. do
  9250. case $1 in
  9251. --*=?*)
  9252. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9253. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9254. ac_shift=:
  9255. ;;
  9256. --*=)
  9257. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9258. ac_optarg=
  9259. ac_shift=:
  9260. ;;
  9261. *)
  9262. ac_option=$1
  9263. ac_optarg=$2
  9264. ac_shift=shift
  9265. ;;
  9266. esac
  9267. case $ac_option in
  9268. # Handling of the options.
  9269. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9270. ac_cs_recheck=: ;;
  9271. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9272. printf "%s\n" "$ac_cs_version"; exit ;;
  9273. --config | --confi | --conf | --con | --co | --c )
  9274. printf "%s\n" "$ac_cs_config"; exit ;;
  9275. --debug | --debu | --deb | --de | --d | -d )
  9276. debug=: ;;
  9277. --file | --fil | --fi | --f )
  9278. $ac_shift
  9279. case $ac_optarg in
  9280. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9281. '') as_fn_error $? "missing file argument" ;;
  9282. esac
  9283. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9284. ac_need_defaults=false;;
  9285. --header | --heade | --head | --hea )
  9286. $ac_shift
  9287. case $ac_optarg in
  9288. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9289. esac
  9290. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9291. ac_need_defaults=false;;
  9292. --he | --h)
  9293. # Conflict between --help and --header
  9294. as_fn_error $? "ambiguous option: \`$1'
  9295. Try \`$0 --help' for more information.";;
  9296. --help | --hel | -h )
  9297. printf "%s\n" "$ac_cs_usage"; exit ;;
  9298. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9299. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9300. ac_cs_silent=: ;;
  9301. # This is an error.
  9302. -*) as_fn_error $? "unrecognized option: \`$1'
  9303. Try \`$0 --help' for more information." ;;
  9304. *) as_fn_append ac_config_targets " $1"
  9305. ac_need_defaults=false ;;
  9306. esac
  9307. shift
  9308. done
  9309. ac_configure_extra_args=
  9310. if $ac_cs_silent; then
  9311. exec 6>/dev/null
  9312. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9313. fi
  9314. _ACEOF
  9315. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9316. if \$ac_cs_recheck; then
  9317. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9318. shift
  9319. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  9320. CONFIG_SHELL='$SHELL'
  9321. export CONFIG_SHELL
  9322. exec "\$@"
  9323. fi
  9324. _ACEOF
  9325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9326. exec 5>>build/config.log
  9327. {
  9328. echo
  9329. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9330. ## Running $as_me. ##
  9331. _ASBOX
  9332. printf "%s\n" "$ac_log"
  9333. } >&5
  9334. _ACEOF
  9335. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9336. _ACEOF
  9337. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9338. # Handling of arguments.
  9339. for ac_config_target in $ac_config_targets
  9340. do
  9341. case $ac_config_target in
  9342. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  9343. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9344. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  9345. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  9346. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  9347. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9348. esac
  9349. done
  9350. # If the user did not use the arguments to specify the items to instantiate,
  9351. # then the envvar interface is used. Set only those that are not.
  9352. # We use the long form for the default assignment because of an extremely
  9353. # bizarre bug on SunOS 4.1.3.
  9354. if $ac_need_defaults; then
  9355. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  9356. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  9357. fi
  9358. # Have a temporary directory for convenience. Make it in the build tree
  9359. # simply because there is no reason against having it here, and in addition,
  9360. # creating and moving files from /tmp can sometimes cause problems.
  9361. # Hook for its removal unless debugging.
  9362. # Note that there is a small window in which the directory will not be cleaned:
  9363. # after its creation but before its name has been assigned to `$tmp'.
  9364. $debug ||
  9365. {
  9366. tmp= ac_tmp=
  9367. trap 'exit_status=$?
  9368. : "${ac_tmp:=$tmp}"
  9369. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9370. ' 0
  9371. trap 'as_fn_exit 1' 1 2 13 15
  9372. }
  9373. # Create a (secure) tmp directory for tmp files.
  9374. {
  9375. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9376. test -d "$tmp"
  9377. } ||
  9378. {
  9379. tmp=./conf$$-$RANDOM
  9380. (umask 077 && mkdir "$tmp")
  9381. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9382. ac_tmp=$tmp
  9383. # Set up the scripts for CONFIG_FILES section.
  9384. # No need to generate them if there are no CONFIG_FILES.
  9385. # This happens for instance with `./build/config.status config.h'.
  9386. if test -n "$CONFIG_FILES"; then
  9387. ac_cr=`echo X | tr X '\015'`
  9388. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9389. # But we know of no other shell where ac_cr would be empty at this
  9390. # point, so we can use a bashism as a fallback.
  9391. if test "x$ac_cr" = x; then
  9392. eval ac_cr=\$\'\\r\'
  9393. fi
  9394. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9395. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9396. ac_cs_awk_cr='\\r'
  9397. else
  9398. ac_cs_awk_cr=$ac_cr
  9399. fi
  9400. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9401. _ACEOF
  9402. {
  9403. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9404. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9405. echo "_ACEOF"
  9406. } >conf$$subs.sh ||
  9407. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9408. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9409. ac_delim='%!_!# '
  9410. for ac_last_try in false false false false false :; do
  9411. . ./conf$$subs.sh ||
  9412. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9413. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9414. if test $ac_delim_n = $ac_delim_num; then
  9415. break
  9416. elif $ac_last_try; then
  9417. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9418. else
  9419. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9420. fi
  9421. done
  9422. rm -f conf$$subs.sh
  9423. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9424. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9425. _ACEOF
  9426. sed -n '
  9427. h
  9428. s/^/S["/; s/!.*/"]=/
  9429. p
  9430. g
  9431. s/^[^!]*!//
  9432. :repl
  9433. t repl
  9434. s/'"$ac_delim"'$//
  9435. t delim
  9436. :nl
  9437. h
  9438. s/\(.\{148\}\)..*/\1/
  9439. t more1
  9440. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9441. p
  9442. n
  9443. b repl
  9444. :more1
  9445. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9446. p
  9447. g
  9448. s/.\{148\}//
  9449. t nl
  9450. :delim
  9451. h
  9452. s/\(.\{148\}\)..*/\1/
  9453. t more2
  9454. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9455. p
  9456. b
  9457. :more2
  9458. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9459. p
  9460. g
  9461. s/.\{148\}//
  9462. t delim
  9463. ' <conf$$subs.awk | sed '
  9464. /^[^""]/{
  9465. N
  9466. s/\n//
  9467. }
  9468. ' >>$CONFIG_STATUS || ac_write_fail=1
  9469. rm -f conf$$subs.awk
  9470. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9471. _ACAWK
  9472. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9473. for (key in S) S_is_set[key] = 1
  9474. FS = ""
  9475. }
  9476. {
  9477. line = $ 0
  9478. nfields = split(line, field, "@")
  9479. substed = 0
  9480. len = length(field[1])
  9481. for (i = 2; i < nfields; i++) {
  9482. key = field[i]
  9483. keylen = length(key)
  9484. if (S_is_set[key]) {
  9485. value = S[key]
  9486. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9487. len += length(value) + length(field[++i])
  9488. substed = 1
  9489. } else
  9490. len += 1 + keylen
  9491. }
  9492. print line
  9493. }
  9494. _ACAWK
  9495. _ACEOF
  9496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9497. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9498. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9499. else
  9500. cat
  9501. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9502. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9503. _ACEOF
  9504. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9505. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9506. # trailing colons and then remove the whole line if VPATH becomes empty
  9507. # (actually we leave an empty line to preserve line numbers).
  9508. if test "x$srcdir" = x.; then
  9509. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9510. h
  9511. s///
  9512. s/^/:/
  9513. s/[ ]*$/:/
  9514. s/:\$(srcdir):/:/g
  9515. s/:\${srcdir}:/:/g
  9516. s/:@srcdir@:/:/g
  9517. s/^:*//
  9518. s/:*$//
  9519. x
  9520. s/\(=[ ]*\).*/\1/
  9521. G
  9522. s/\n//
  9523. s/^[^=]*=[ ]*$//
  9524. }'
  9525. fi
  9526. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9527. fi # test -n "$CONFIG_FILES"
  9528. # Set up the scripts for CONFIG_HEADERS section.
  9529. # No need to generate them if there are no CONFIG_HEADERS.
  9530. # This happens for instance with `./build/config.status Makefile'.
  9531. if test -n "$CONFIG_HEADERS"; then
  9532. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9533. BEGIN {
  9534. _ACEOF
  9535. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  9536. # here-document in build/config.status, that substitutes the proper values into
  9537. # config.h.in to produce config.h.
  9538. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  9539. # handling of long lines.
  9540. ac_delim='%!_!# '
  9541. for ac_last_try in false false :; do
  9542. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  9543. if test -z "$ac_tt"; then
  9544. break
  9545. elif $ac_last_try; then
  9546. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9547. else
  9548. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9549. fi
  9550. done
  9551. # For the awk script, D is an array of macro values keyed by name,
  9552. # likewise P contains macro parameters if any. Preserve backslash
  9553. # newline sequences.
  9554. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9555. sed -n '
  9556. s/.\{148\}/&'"$ac_delim"'/g
  9557. t rset
  9558. :rset
  9559. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9560. t def
  9561. d
  9562. :def
  9563. s/\\$//
  9564. t bsnl
  9565. s/["\\]/\\&/g
  9566. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9567. D["\1"]=" \3"/p
  9568. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9569. d
  9570. :bsnl
  9571. s/["\\]/\\&/g
  9572. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9573. D["\1"]=" \3\\\\\\n"\\/p
  9574. t cont
  9575. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9576. t cont
  9577. d
  9578. :cont
  9579. n
  9580. s/.\{148\}/&'"$ac_delim"'/g
  9581. t clear
  9582. :clear
  9583. s/\\$//
  9584. t bsnlc
  9585. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9586. d
  9587. :bsnlc
  9588. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9589. b cont
  9590. ' <build/confdefs.h | sed '
  9591. s/'"$ac_delim"'/"\\\
  9592. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9593. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9594. for (key in D) D_is_set[key] = 1
  9595. FS = ""
  9596. }
  9597. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9598. line = \$ 0
  9599. split(line, arg, " ")
  9600. if (arg[1] == "#") {
  9601. defundef = arg[2]
  9602. mac1 = arg[3]
  9603. } else {
  9604. defundef = substr(arg[1], 2)
  9605. mac1 = arg[2]
  9606. }
  9607. split(mac1, mac2, "(") #)
  9608. macro = mac2[1]
  9609. prefix = substr(line, 1, index(line, defundef) - 1)
  9610. if (D_is_set[macro]) {
  9611. # Preserve the white space surrounding the "#".
  9612. print prefix "define", macro P[macro] D[macro]
  9613. next
  9614. } else {
  9615. # Replace #undef with comments. This is necessary, for example,
  9616. # in the case of _POSIX_SOURCE, which is predefined and required
  9617. # on some systems where configure will not decide to define it.
  9618. if (defundef == "undef") {
  9619. print "/*", prefix defundef, macro, "*/"
  9620. next
  9621. }
  9622. }
  9623. }
  9624. { print }
  9625. _ACAWK
  9626. _ACEOF
  9627. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9628. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9629. fi # test -n "$CONFIG_HEADERS"
  9630. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  9631. shift
  9632. for ac_tag
  9633. do
  9634. case $ac_tag in
  9635. :[FHLC]) ac_mode=$ac_tag; continue;;
  9636. esac
  9637. case $ac_mode$ac_tag in
  9638. :[FHL]*:*);;
  9639. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9640. :[FH]-) ac_tag=-:-;;
  9641. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9642. esac
  9643. ac_save_IFS=$IFS
  9644. IFS=:
  9645. set x $ac_tag
  9646. IFS=$ac_save_IFS
  9647. shift
  9648. ac_file=$1
  9649. shift
  9650. case $ac_mode in
  9651. :L) ac_source=$1;;
  9652. :[FH])
  9653. ac_file_inputs=
  9654. for ac_f
  9655. do
  9656. case $ac_f in
  9657. -) ac_f="$ac_tmp/stdin";;
  9658. *) # Look for the file first in the build tree, then in the source tree
  9659. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9660. # because $ac_f cannot contain `:'.
  9661. test -f "$ac_f" ||
  9662. case $ac_f in
  9663. [\\/$]*) false;;
  9664. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9665. esac ||
  9666. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9667. esac
  9668. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9669. as_fn_append ac_file_inputs " '$ac_f'"
  9670. done
  9671. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9672. # use $as_me), people would be surprised to read:
  9673. # /* config.h. Generated by build/config.status. */
  9674. configure_input='Generated from '`
  9675. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9676. `' by configure.'
  9677. if test x"$ac_file" != x-; then
  9678. configure_input="$ac_file. $configure_input"
  9679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9680. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  9681. fi
  9682. # Neutralize special characters interpreted by sed in replacement strings.
  9683. case $configure_input in #(
  9684. *\&* | *\|* | *\\* )
  9685. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  9686. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9687. *) ac_sed_conf_input=$configure_input;;
  9688. esac
  9689. case $ac_tag in
  9690. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9691. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9692. esac
  9693. ;;
  9694. esac
  9695. ac_dir=`$as_dirname -- "$ac_file" ||
  9696. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9697. X"$ac_file" : 'X\(//\)[^/]' \| \
  9698. X"$ac_file" : 'X\(//\)$' \| \
  9699. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9700. printf "%s\n" X"$ac_file" |
  9701. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9702. s//\1/
  9703. q
  9704. }
  9705. /^X\(\/\/\)[^/].*/{
  9706. s//\1/
  9707. q
  9708. }
  9709. /^X\(\/\/\)$/{
  9710. s//\1/
  9711. q
  9712. }
  9713. /^X\(\/\).*/{
  9714. s//\1/
  9715. q
  9716. }
  9717. s/.*/./; q'`
  9718. as_dir="$ac_dir"; as_fn_mkdir_p
  9719. ac_builddir=.
  9720. case "$ac_dir" in
  9721. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9722. *)
  9723. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  9724. # A ".." for each directory in $ac_dir_suffix.
  9725. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9726. case $ac_top_builddir_sub in
  9727. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9728. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9729. esac ;;
  9730. esac
  9731. ac_abs_top_builddir=$ac_pwd
  9732. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9733. # for backward compatibility:
  9734. ac_top_builddir=$ac_top_build_prefix
  9735. case $srcdir in
  9736. .) # We are building in place.
  9737. ac_srcdir=.
  9738. ac_top_srcdir=$ac_top_builddir_sub
  9739. ac_abs_top_srcdir=$ac_pwd ;;
  9740. [\\/]* | ?:[\\/]* ) # Absolute name.
  9741. ac_srcdir=$srcdir$ac_dir_suffix;
  9742. ac_top_srcdir=$srcdir
  9743. ac_abs_top_srcdir=$srcdir ;;
  9744. *) # Relative name.
  9745. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9746. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9747. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9748. esac
  9749. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9750. case $ac_mode in
  9751. :F)
  9752. #
  9753. # CONFIG_FILE
  9754. #
  9755. _ACEOF
  9756. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9757. # If the template does not know about datarootdir, expand it.
  9758. # FIXME: This hack should be removed a few years after 2.60.
  9759. ac_datarootdir_hack=; ac_datarootdir_seen=
  9760. ac_sed_dataroot='
  9761. /datarootdir/ {
  9762. p
  9763. q
  9764. }
  9765. /@datadir@/p
  9766. /@docdir@/p
  9767. /@infodir@/p
  9768. /@localedir@/p
  9769. /@mandir@/p'
  9770. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9771. *datarootdir*) ac_datarootdir_seen=yes;;
  9772. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9774. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9775. _ACEOF
  9776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9777. ac_datarootdir_hack='
  9778. s&@datadir@&$datadir&g
  9779. s&@docdir@&$docdir&g
  9780. s&@infodir@&$infodir&g
  9781. s&@localedir@&$localedir&g
  9782. s&@mandir@&$mandir&g
  9783. s&\\\${datarootdir}&$datarootdir&g' ;;
  9784. esac
  9785. _ACEOF
  9786. # Neutralize VPATH when `$srcdir' = `.'.
  9787. # Shell code in configure.ac might set extrasub.
  9788. # FIXME: do we really want to maintain this feature?
  9789. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9790. ac_sed_extra="$ac_vpsub
  9791. $extrasub
  9792. _ACEOF
  9793. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9794. :t
  9795. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9796. s|@configure_input@|$ac_sed_conf_input|;t t
  9797. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9798. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9799. s&@srcdir@&$ac_srcdir&;t t
  9800. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9801. s&@top_srcdir@&$ac_top_srcdir&;t t
  9802. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9803. s&@builddir@&$ac_builddir&;t t
  9804. s&@abs_builddir@&$ac_abs_builddir&;t t
  9805. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9806. $ac_datarootdir_hack
  9807. "
  9808. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9809. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9810. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9811. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9812. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9813. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9815. which seems to be undefined. Please make sure it is defined" >&5
  9816. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9817. which seems to be undefined. Please make sure it is defined" >&2;}
  9818. rm -f "$ac_tmp/stdin"
  9819. case $ac_file in
  9820. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9821. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9822. esac \
  9823. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9824. ;;
  9825. :H)
  9826. #
  9827. # CONFIG_HEADER
  9828. #
  9829. if test x"$ac_file" != x-; then
  9830. {
  9831. printf "%s\n" "/* $configure_input */" >&1 \
  9832. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9833. } >"$ac_tmp/config.h" \
  9834. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9835. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9837. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  9838. else
  9839. rm -f "$ac_file"
  9840. mv "$ac_tmp/config.h" "$ac_file" \
  9841. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9842. fi
  9843. else
  9844. printf "%s\n" "/* $configure_input */" >&1 \
  9845. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9846. || as_fn_error $? "could not create -" "$LINENO" 5
  9847. fi
  9848. ;;
  9849. esac
  9850. done # for ac_tag
  9851. as_fn_exit 0
  9852. _ACEOF
  9853. ac_clean_files=$ac_clean_files_save
  9854. test $ac_write_fail = 0 ||
  9855. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9856. # configure is writing to build/config.log, and then calls build/config.status.
  9857. # build/config.status does its own redirection, appending to build/config.log.
  9858. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9859. # by configure, so build/config.status won't be able to write to it; its
  9860. # output is simply discarded. So we exec the FD to /dev/null,
  9861. # effectively closing build/config.log, so it can be properly (re)opened and
  9862. # appended to by build/config.status. When coming back to configure, we
  9863. # need to make the FD available again.
  9864. if test "$no_create" != yes; then
  9865. ac_cs_success=:
  9866. ac_config_status_args=
  9867. test "$silent" = yes &&
  9868. ac_config_status_args="$ac_config_status_args --quiet"
  9869. exec 5>/dev/null
  9870. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9871. exec 5>>build/config.log
  9872. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9873. # would make configure fail if this is the last instruction.
  9874. $ac_cs_success || as_fn_exit 1
  9875. fi
  9876. #
  9877. # CONFIG_SUBDIRS section.
  9878. #
  9879. if test "$no_recursion" != yes; then
  9880. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9881. # so they do not pile up.
  9882. ac_sub_configure_args=
  9883. ac_prev=
  9884. eval "set x $ac_configure_args"
  9885. shift
  9886. for ac_arg
  9887. do
  9888. if test -n "$ac_prev"; then
  9889. ac_prev=
  9890. continue
  9891. fi
  9892. case $ac_arg in
  9893. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9894. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9895. ac_prev=cache_file ;;
  9896. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9897. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9898. | --c=*)
  9899. ;;
  9900. --config-cache | -C)
  9901. ;;
  9902. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9903. ac_prev=srcdir ;;
  9904. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9905. ;;
  9906. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9907. ac_prev=prefix ;;
  9908. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9909. ;;
  9910. --disable-option-checking)
  9911. ;;
  9912. *)
  9913. case $ac_arg in
  9914. *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9915. esac
  9916. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9917. esac
  9918. done
  9919. # Always prepend --prefix to ensure using the same prefix
  9920. # in subdir configurations.
  9921. ac_arg="--prefix=$prefix"
  9922. case $ac_arg in
  9923. *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9924. esac
  9925. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9926. # Pass --silent
  9927. if test "$silent" = yes; then
  9928. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9929. fi
  9930. # Always prepend --disable-option-checking to silence warnings, since
  9931. # different subdirs can have different --enable and --with options.
  9932. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9933. ac_popdir=`pwd`
  9934. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9935. # Do not complain, so a configure script can configure whichever
  9936. # parts of a large source tree are present.
  9937. test -d "$srcdir/$ac_dir" || continue
  9938. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9940. printf "%s\n" "$ac_msg" >&6
  9941. as_dir="$ac_dir"; as_fn_mkdir_p
  9942. ac_builddir=.
  9943. case "$ac_dir" in
  9944. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9945. *)
  9946. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  9947. # A ".." for each directory in $ac_dir_suffix.
  9948. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9949. case $ac_top_builddir_sub in
  9950. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9951. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9952. esac ;;
  9953. esac
  9954. ac_abs_top_builddir=$ac_pwd
  9955. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9956. # for backward compatibility:
  9957. ac_top_builddir=$ac_top_build_prefix
  9958. case $srcdir in
  9959. .) # We are building in place.
  9960. ac_srcdir=.
  9961. ac_top_srcdir=$ac_top_builddir_sub
  9962. ac_abs_top_srcdir=$ac_pwd ;;
  9963. [\\/]* | ?:[\\/]* ) # Absolute name.
  9964. ac_srcdir=$srcdir$ac_dir_suffix;
  9965. ac_top_srcdir=$srcdir
  9966. ac_abs_top_srcdir=$srcdir ;;
  9967. *) # Relative name.
  9968. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9969. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9970. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9971. esac
  9972. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9973. cd "$ac_dir"
  9974. # Check for configure.gnu first; this name is used for a wrapper for
  9975. # Metaconfig's "Configure" on case-insensitive file systems.
  9976. if test -f "$ac_srcdir/configure.gnu"; then
  9977. ac_sub_configure=$ac_srcdir/configure.gnu
  9978. elif test -f "$ac_srcdir/configure"; then
  9979. ac_sub_configure=$ac_srcdir/configure
  9980. else
  9981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9982. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9983. ac_sub_configure=
  9984. fi
  9985. # The recursion is here.
  9986. if test -n "$ac_sub_configure"; then
  9987. # Make the cache file name correct relative to the subdirectory.
  9988. case $cache_file in
  9989. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9990. *) # Relative name.
  9991. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9992. esac
  9993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  9994. printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9995. # The eval makes quoting arguments work.
  9996. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9997. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9998. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9999. fi
  10000. cd "$ac_popdir"
  10001. done
  10002. fi
  10003. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10005. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10006. fi