configure 294 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. enable_option_checking=no
  578. ac_subst_vars='LTLIBOBJS
  579. subdirs
  580. NUMVER
  581. VERSION
  582. LIBOBJS
  583. TCL_LIBS
  584. TCL_REQS
  585. DEFAULT_MAKE
  586. TCLINCFN
  587. TCL_INCLUDES
  588. TCLLIBFN
  589. TCLLIB
  590. SSL_LIBDIR
  591. SSL_LIBS
  592. SSL_INCLUDES
  593. LIBELF_LIB
  594. LIBELF_BUNDLED
  595. EGREP
  596. GREP
  597. DEBLDFLAGS
  598. DEBCXXFLAGS
  599. STATIC
  600. BUILDARCH
  601. BUILDOS
  602. UNAME
  603. DIFF
  604. STRIP
  605. OBJCOPY
  606. BASENAME
  607. AWK
  608. HEAD_1
  609. SED
  610. SET_MAKE
  611. GCC4DEB
  612. GCC3DEB
  613. GCC3_CXXFLAGS
  614. GCC3_CFLAGS
  615. CCDEPMODE
  616. HAVE_CXX14
  617. HAVE_CXX11
  618. CXXCPP
  619. CC
  620. OBJEXT
  621. EXEEXT
  622. ac_ct_CXX
  623. CPPFLAGS
  624. LDFLAGS
  625. CXXFLAGS
  626. CXX
  627. egg_ac_parameters
  628. target_alias
  629. host_alias
  630. build_alias
  631. LIBS
  632. ECHO_T
  633. ECHO_N
  634. ECHO_C
  635. DEFS
  636. mandir
  637. localedir
  638. libdir
  639. psdir
  640. pdfdir
  641. dvidir
  642. htmldir
  643. infodir
  644. docdir
  645. oldincludedir
  646. includedir
  647. localstatedir
  648. sharedstatedir
  649. sysconfdir
  650. datadir
  651. datarootdir
  652. libexecdir
  653. sbindir
  654. bindir
  655. program_transform_name
  656. prefix
  657. exec_prefix
  658. PACKAGE_URL
  659. PACKAGE_BUGREPORT
  660. PACKAGE_STRING
  661. PACKAGE_VERSION
  662. PACKAGE_TARNAME
  663. PACKAGE_NAME
  664. PATH_SEPARATOR
  665. SHELL'
  666. ac_subst_files=''
  667. ac_user_opts='
  668. enable_option_checking
  669. enable_ipv6
  670. with_openssl
  671. with_tcllib
  672. with_tclinc
  673. enable_script_tcl
  674. '
  675. ac_precious_vars='build_alias
  676. host_alias
  677. target_alias
  678. CXX
  679. CXXFLAGS
  680. LDFLAGS
  681. LIBS
  682. CPPFLAGS
  683. CCC
  684. CXXCPP'
  685. ac_subdirs_all='lib/bdlib
  686. lib/libelf'
  687. # Initialize some variables set by options.
  688. ac_init_help=
  689. ac_init_version=false
  690. ac_unrecognized_opts=
  691. ac_unrecognized_sep=
  692. # The variables have the same names as the options, with
  693. # dashes changed to underlines.
  694. cache_file=/dev/null
  695. exec_prefix=NONE
  696. no_create=
  697. no_recursion=
  698. prefix=NONE
  699. program_prefix=NONE
  700. program_suffix=NONE
  701. program_transform_name=s,x,x,
  702. silent=
  703. site=
  704. srcdir=
  705. verbose=
  706. x_includes=NONE
  707. x_libraries=NONE
  708. # Installation directory options.
  709. # These are left unexpanded so users can "make install exec_prefix=/foo"
  710. # and all the variables that are supposed to be based on exec_prefix
  711. # by default will actually change.
  712. # Use braces instead of parens because sh, perl, etc. also accept them.
  713. # (The list follows the same order as the GNU Coding Standards.)
  714. bindir='${exec_prefix}/bin'
  715. sbindir='${exec_prefix}/sbin'
  716. libexecdir='${exec_prefix}/libexec'
  717. datarootdir='${prefix}/share'
  718. datadir='${datarootdir}'
  719. sysconfdir='${prefix}/etc'
  720. sharedstatedir='${prefix}/com'
  721. localstatedir='${prefix}/var'
  722. includedir='${prefix}/include'
  723. oldincludedir='/usr/include'
  724. docdir='${datarootdir}/doc/${PACKAGE}'
  725. infodir='${datarootdir}/info'
  726. htmldir='${docdir}'
  727. dvidir='${docdir}'
  728. pdfdir='${docdir}'
  729. psdir='${docdir}'
  730. libdir='${exec_prefix}/lib'
  731. localedir='${datarootdir}/locale'
  732. mandir='${datarootdir}/man'
  733. ac_prev=
  734. ac_dashdash=
  735. for ac_option
  736. do
  737. # If the previous option needs an argument, assign it.
  738. if test -n "$ac_prev"; then
  739. eval $ac_prev=\$ac_option
  740. ac_prev=
  741. continue
  742. fi
  743. case $ac_option in
  744. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  745. *=) ac_optarg= ;;
  746. *) ac_optarg=yes ;;
  747. esac
  748. # Accept the important Cygnus configure options, so we can diagnose typos.
  749. case $ac_dashdash$ac_option in
  750. --)
  751. ac_dashdash=yes ;;
  752. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  753. ac_prev=bindir ;;
  754. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  755. bindir=$ac_optarg ;;
  756. -build | --build | --buil | --bui | --bu)
  757. ac_prev=build_alias ;;
  758. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  759. build_alias=$ac_optarg ;;
  760. -cache-file | --cache-file | --cache-fil | --cache-fi \
  761. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  762. ac_prev=cache_file ;;
  763. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  764. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  765. cache_file=$ac_optarg ;;
  766. --config-cache | -C)
  767. cache_file=config.cache ;;
  768. -datadir | --datadir | --datadi | --datad)
  769. ac_prev=datadir ;;
  770. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  771. datadir=$ac_optarg ;;
  772. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  773. | --dataroo | --dataro | --datar)
  774. ac_prev=datarootdir ;;
  775. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  776. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  777. datarootdir=$ac_optarg ;;
  778. -disable-* | --disable-*)
  779. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  780. # Reject names that are not valid shell variable names.
  781. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  782. as_fn_error $? "invalid feature name: $ac_useropt"
  783. ac_useropt_orig=$ac_useropt
  784. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  785. case $ac_user_opts in
  786. *"
  787. "enable_$ac_useropt"
  788. "*) ;;
  789. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  790. ac_unrecognized_sep=', ';;
  791. esac
  792. eval enable_$ac_useropt=no ;;
  793. -docdir | --docdir | --docdi | --doc | --do)
  794. ac_prev=docdir ;;
  795. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  796. docdir=$ac_optarg ;;
  797. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  798. ac_prev=dvidir ;;
  799. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  800. dvidir=$ac_optarg ;;
  801. -enable-* | --enable-*)
  802. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  803. # Reject names that are not valid shell variable names.
  804. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  805. as_fn_error $? "invalid feature name: $ac_useropt"
  806. ac_useropt_orig=$ac_useropt
  807. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  808. case $ac_user_opts in
  809. *"
  810. "enable_$ac_useropt"
  811. "*) ;;
  812. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  813. ac_unrecognized_sep=', ';;
  814. esac
  815. eval enable_$ac_useropt=\$ac_optarg ;;
  816. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  817. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  818. | --exec | --exe | --ex)
  819. ac_prev=exec_prefix ;;
  820. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  821. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  822. | --exec=* | --exe=* | --ex=*)
  823. exec_prefix=$ac_optarg ;;
  824. -gas | --gas | --ga | --g)
  825. # Obsolete; use --with-gas.
  826. with_gas=yes ;;
  827. -help | --help | --hel | --he | -h)
  828. ac_init_help=long ;;
  829. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  830. ac_init_help=recursive ;;
  831. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  832. ac_init_help=short ;;
  833. -host | --host | --hos | --ho)
  834. ac_prev=host_alias ;;
  835. -host=* | --host=* | --hos=* | --ho=*)
  836. host_alias=$ac_optarg ;;
  837. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  838. ac_prev=htmldir ;;
  839. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  840. | --ht=*)
  841. htmldir=$ac_optarg ;;
  842. -includedir | --includedir | --includedi | --included | --include \
  843. | --includ | --inclu | --incl | --inc)
  844. ac_prev=includedir ;;
  845. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  846. | --includ=* | --inclu=* | --incl=* | --inc=*)
  847. includedir=$ac_optarg ;;
  848. -infodir | --infodir | --infodi | --infod | --info | --inf)
  849. ac_prev=infodir ;;
  850. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  851. infodir=$ac_optarg ;;
  852. -libdir | --libdir | --libdi | --libd)
  853. ac_prev=libdir ;;
  854. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  855. libdir=$ac_optarg ;;
  856. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  857. | --libexe | --libex | --libe)
  858. ac_prev=libexecdir ;;
  859. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  860. | --libexe=* | --libex=* | --libe=*)
  861. libexecdir=$ac_optarg ;;
  862. -localedir | --localedir | --localedi | --localed | --locale)
  863. ac_prev=localedir ;;
  864. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  865. localedir=$ac_optarg ;;
  866. -localstatedir | --localstatedir | --localstatedi | --localstated \
  867. | --localstate | --localstat | --localsta | --localst | --locals)
  868. ac_prev=localstatedir ;;
  869. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  870. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  871. localstatedir=$ac_optarg ;;
  872. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  873. ac_prev=mandir ;;
  874. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  875. mandir=$ac_optarg ;;
  876. -nfp | --nfp | --nf)
  877. # Obsolete; use --without-fp.
  878. with_fp=no ;;
  879. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  880. | --no-cr | --no-c | -n)
  881. no_create=yes ;;
  882. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  883. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  884. no_recursion=yes ;;
  885. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  886. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  887. | --oldin | --oldi | --old | --ol | --o)
  888. ac_prev=oldincludedir ;;
  889. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  890. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  891. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  892. oldincludedir=$ac_optarg ;;
  893. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  894. ac_prev=prefix ;;
  895. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  896. prefix=$ac_optarg ;;
  897. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  898. | --program-pre | --program-pr | --program-p)
  899. ac_prev=program_prefix ;;
  900. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  901. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  902. program_prefix=$ac_optarg ;;
  903. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  904. | --program-suf | --program-su | --program-s)
  905. ac_prev=program_suffix ;;
  906. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  907. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  908. program_suffix=$ac_optarg ;;
  909. -program-transform-name | --program-transform-name \
  910. | --program-transform-nam | --program-transform-na \
  911. | --program-transform-n | --program-transform- \
  912. | --program-transform | --program-transfor \
  913. | --program-transfo | --program-transf \
  914. | --program-trans | --program-tran \
  915. | --progr-tra | --program-tr | --program-t)
  916. ac_prev=program_transform_name ;;
  917. -program-transform-name=* | --program-transform-name=* \
  918. | --program-transform-nam=* | --program-transform-na=* \
  919. | --program-transform-n=* | --program-transform-=* \
  920. | --program-transform=* | --program-transfor=* \
  921. | --program-transfo=* | --program-transf=* \
  922. | --program-trans=* | --program-tran=* \
  923. | --progr-tra=* | --program-tr=* | --program-t=*)
  924. program_transform_name=$ac_optarg ;;
  925. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  926. ac_prev=pdfdir ;;
  927. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  928. pdfdir=$ac_optarg ;;
  929. -psdir | --psdir | --psdi | --psd | --ps)
  930. ac_prev=psdir ;;
  931. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  932. psdir=$ac_optarg ;;
  933. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  934. | -silent | --silent | --silen | --sile | --sil)
  935. silent=yes ;;
  936. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  937. ac_prev=sbindir ;;
  938. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  939. | --sbi=* | --sb=*)
  940. sbindir=$ac_optarg ;;
  941. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  942. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  943. | --sharedst | --shareds | --shared | --share | --shar \
  944. | --sha | --sh)
  945. ac_prev=sharedstatedir ;;
  946. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  947. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  948. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  949. | --sha=* | --sh=*)
  950. sharedstatedir=$ac_optarg ;;
  951. -site | --site | --sit)
  952. ac_prev=site ;;
  953. -site=* | --site=* | --sit=*)
  954. site=$ac_optarg ;;
  955. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  956. ac_prev=srcdir ;;
  957. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  958. srcdir=$ac_optarg ;;
  959. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  960. | --syscon | --sysco | --sysc | --sys | --sy)
  961. ac_prev=sysconfdir ;;
  962. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  963. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  964. sysconfdir=$ac_optarg ;;
  965. -target | --target | --targe | --targ | --tar | --ta | --t)
  966. ac_prev=target_alias ;;
  967. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  968. target_alias=$ac_optarg ;;
  969. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  970. verbose=yes ;;
  971. -version | --version | --versio | --versi | --vers | -V)
  972. ac_init_version=: ;;
  973. -with-* | --with-*)
  974. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  975. # Reject names that are not valid shell variable names.
  976. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  977. as_fn_error $? "invalid package name: $ac_useropt"
  978. ac_useropt_orig=$ac_useropt
  979. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  980. case $ac_user_opts in
  981. *"
  982. "with_$ac_useropt"
  983. "*) ;;
  984. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  985. ac_unrecognized_sep=', ';;
  986. esac
  987. eval with_$ac_useropt=\$ac_optarg ;;
  988. -without-* | --without-*)
  989. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  990. # Reject names that are not valid shell variable names.
  991. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  992. as_fn_error $? "invalid package name: $ac_useropt"
  993. ac_useropt_orig=$ac_useropt
  994. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  995. case $ac_user_opts in
  996. *"
  997. "with_$ac_useropt"
  998. "*) ;;
  999. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1000. ac_unrecognized_sep=', ';;
  1001. esac
  1002. eval with_$ac_useropt=no ;;
  1003. --x)
  1004. # Obsolete; use --with-x.
  1005. with_x=yes ;;
  1006. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1007. | --x-incl | --x-inc | --x-in | --x-i)
  1008. ac_prev=x_includes ;;
  1009. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1010. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1011. x_includes=$ac_optarg ;;
  1012. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1013. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1014. ac_prev=x_libraries ;;
  1015. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1016. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1017. x_libraries=$ac_optarg ;;
  1018. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1019. Try \`$0 --help' for more information"
  1020. ;;
  1021. *=*)
  1022. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1023. # Reject names that are not valid shell variable names.
  1024. case $ac_envvar in #(
  1025. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1026. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1027. esac
  1028. eval $ac_envvar=\$ac_optarg
  1029. export $ac_envvar ;;
  1030. *)
  1031. # FIXME: should be removed in autoconf 3.0.
  1032. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1033. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1034. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1035. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1036. ;;
  1037. esac
  1038. done
  1039. if test -n "$ac_prev"; then
  1040. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1041. as_fn_error $? "missing argument to $ac_option"
  1042. fi
  1043. if test -n "$ac_unrecognized_opts"; then
  1044. case $enable_option_checking in
  1045. no) ;;
  1046. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1047. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1048. esac
  1049. fi
  1050. # Check all directory arguments for consistency.
  1051. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1052. datadir sysconfdir sharedstatedir localstatedir includedir \
  1053. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1054. libdir localedir mandir
  1055. do
  1056. eval ac_val=\$$ac_var
  1057. # Remove trailing slashes.
  1058. case $ac_val in
  1059. */ )
  1060. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1061. eval $ac_var=\$ac_val;;
  1062. esac
  1063. # Be sure to have absolute directory names.
  1064. case $ac_val in
  1065. [\\/$]* | ?:[\\/]* ) continue;;
  1066. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1067. esac
  1068. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1069. done
  1070. # There might be people who depend on the old broken behavior: `$host'
  1071. # used to hold the argument of --host etc.
  1072. # FIXME: To remove some day.
  1073. build=$build_alias
  1074. host=$host_alias
  1075. target=$target_alias
  1076. # FIXME: To remove some day.
  1077. if test "x$host_alias" != x; then
  1078. if test "x$build_alias" = x; then
  1079. cross_compiling=maybe
  1080. elif test "x$build_alias" != "x$host_alias"; then
  1081. cross_compiling=yes
  1082. fi
  1083. fi
  1084. ac_tool_prefix=
  1085. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1086. test "$silent" = yes && exec 6>/dev/null
  1087. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1088. ac_ls_di=`ls -di .` &&
  1089. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1090. as_fn_error $? "working directory cannot be determined"
  1091. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1092. as_fn_error $? "pwd does not report name of working directory"
  1093. # Find the source files, if location was not specified.
  1094. if test -z "$srcdir"; then
  1095. ac_srcdir_defaulted=yes
  1096. # Try the directory containing this script, then the parent directory.
  1097. ac_confdir=`$as_dirname -- "$as_myself" ||
  1098. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1099. X"$as_myself" : 'X\(//\)[^/]' \| \
  1100. X"$as_myself" : 'X\(//\)$' \| \
  1101. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1102. $as_echo X"$as_myself" |
  1103. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1104. s//\1/
  1105. q
  1106. }
  1107. /^X\(\/\/\)[^/].*/{
  1108. s//\1/
  1109. q
  1110. }
  1111. /^X\(\/\/\)$/{
  1112. s//\1/
  1113. q
  1114. }
  1115. /^X\(\/\).*/{
  1116. s//\1/
  1117. q
  1118. }
  1119. s/.*/./; q'`
  1120. srcdir=$ac_confdir
  1121. if test ! -r "$srcdir/$ac_unique_file"; then
  1122. srcdir=..
  1123. fi
  1124. else
  1125. ac_srcdir_defaulted=no
  1126. fi
  1127. if test ! -r "$srcdir/$ac_unique_file"; then
  1128. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1129. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1130. fi
  1131. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1132. ac_abs_confdir=`(
  1133. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1134. pwd)`
  1135. # When building in place, set srcdir=.
  1136. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1137. srcdir=.
  1138. fi
  1139. # Remove unnecessary trailing slashes from srcdir.
  1140. # Double slashes in file names in object file debugging info
  1141. # mess up M-x gdb in Emacs.
  1142. case $srcdir in
  1143. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1144. esac
  1145. for ac_var in $ac_precious_vars; do
  1146. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1147. eval ac_env_${ac_var}_value=\$${ac_var}
  1148. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1149. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1150. done
  1151. #
  1152. # Report the --help message.
  1153. #
  1154. if test "$ac_init_help" = "long"; then
  1155. # Omit some internal or obsolete options to make the list less imposing.
  1156. # This message is too long to be a string in the A/UX 3.1 sh.
  1157. cat <<_ACEOF
  1158. \`configure' configures this package to adapt to many kinds of systems.
  1159. Usage: $0 [OPTION]... [VAR=VALUE]...
  1160. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1161. VAR=VALUE. See below for descriptions of some of the useful variables.
  1162. Defaults for the options are specified in brackets.
  1163. Configuration:
  1164. -h, --help display this help and exit
  1165. --help=short display options specific to this package
  1166. --help=recursive display the short help of all the included packages
  1167. -V, --version display version information and exit
  1168. -q, --quiet, --silent do not print \`checking ...' messages
  1169. --cache-file=FILE cache test results in FILE [disabled]
  1170. -C, --config-cache alias for \`--cache-file=config.cache'
  1171. -n, --no-create do not create output files
  1172. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1173. Installation directories:
  1174. --prefix=PREFIX install architecture-independent files in PREFIX
  1175. [$ac_default_prefix]
  1176. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1177. [PREFIX]
  1178. By default, \`make install' will install all the files in
  1179. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1180. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1181. for instance \`--prefix=\$HOME'.
  1182. For better control, use the options below.
  1183. Fine tuning of the installation directories:
  1184. --bindir=DIR user executables [EPREFIX/bin]
  1185. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1186. --libexecdir=DIR program executables [EPREFIX/libexec]
  1187. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1188. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1189. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1190. --libdir=DIR object code libraries [EPREFIX/lib]
  1191. --includedir=DIR C header files [PREFIX/include]
  1192. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1193. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1194. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1195. --infodir=DIR info documentation [DATAROOTDIR/info]
  1196. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1197. --mandir=DIR man documentation [DATAROOTDIR/man]
  1198. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1199. --htmldir=DIR html documentation [DOCDIR]
  1200. --dvidir=DIR dvi documentation [DOCDIR]
  1201. --pdfdir=DIR pdf documentation [DOCDIR]
  1202. --psdir=DIR ps documentation [DOCDIR]
  1203. _ACEOF
  1204. cat <<\_ACEOF
  1205. _ACEOF
  1206. fi
  1207. if test -n "$ac_init_help"; then
  1208. cat <<\_ACEOF
  1209. Optional Features:
  1210. --disable-option-checking ignore unrecognized --enable/--with options
  1211. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1212. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1213. --disable-ipv6 disable IPv6 support
  1214. --disable-script-tcl disable TCL Script support
  1215. Optional Packages:
  1216. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1217. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1218. --with-openssl=PATH Path to OpenSSL
  1219. --with-tcllib=PATH full path to Tcl library
  1220. --with-tclinc=PATH full path to Tcl header
  1221. Some influential environment variables:
  1222. CXX C++ compiler command
  1223. CXXFLAGS C++ compiler flags
  1224. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1225. nonstandard directory <lib dir>
  1226. LIBS libraries to pass to the linker, e.g. -l<library>
  1227. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1228. you have headers in a nonstandard directory <include dir>
  1229. CXXCPP C++ preprocessor
  1230. Use these variables to override the choices made by `configure' or to help
  1231. it to find libraries and programs with nonstandard names/locations.
  1232. Report bugs to the package provider.
  1233. _ACEOF
  1234. ac_status=$?
  1235. fi
  1236. if test "$ac_init_help" = "recursive"; then
  1237. # If there are subdirs, report their specific --help.
  1238. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1239. test -d "$ac_dir" ||
  1240. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1241. continue
  1242. ac_builddir=.
  1243. case "$ac_dir" in
  1244. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1245. *)
  1246. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1247. # A ".." for each directory in $ac_dir_suffix.
  1248. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1249. case $ac_top_builddir_sub in
  1250. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1251. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1252. esac ;;
  1253. esac
  1254. ac_abs_top_builddir=$ac_pwd
  1255. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1256. # for backward compatibility:
  1257. ac_top_builddir=$ac_top_build_prefix
  1258. case $srcdir in
  1259. .) # We are building in place.
  1260. ac_srcdir=.
  1261. ac_top_srcdir=$ac_top_builddir_sub
  1262. ac_abs_top_srcdir=$ac_pwd ;;
  1263. [\\/]* | ?:[\\/]* ) # Absolute name.
  1264. ac_srcdir=$srcdir$ac_dir_suffix;
  1265. ac_top_srcdir=$srcdir
  1266. ac_abs_top_srcdir=$srcdir ;;
  1267. *) # Relative name.
  1268. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1269. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1270. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1271. esac
  1272. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1273. cd "$ac_dir" || { ac_status=$?; continue; }
  1274. # Check for guested configure.
  1275. if test -f "$ac_srcdir/configure.gnu"; then
  1276. echo &&
  1277. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1278. elif test -f "$ac_srcdir/configure"; then
  1279. echo &&
  1280. $SHELL "$ac_srcdir/configure" --help=recursive
  1281. else
  1282. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1283. fi || ac_status=$?
  1284. cd "$ac_pwd" || { ac_status=$?; break; }
  1285. done
  1286. fi
  1287. test -n "$ac_init_help" && exit $ac_status
  1288. if $ac_init_version; then
  1289. cat <<\_ACEOF
  1290. configure
  1291. generated by GNU Autoconf 2.69
  1292. Copyright (C) 2012 Free Software Foundation, Inc.
  1293. This configure script is free software; the Free Software Foundation
  1294. gives unlimited permission to copy, distribute and modify it.
  1295. Copyright (c) Bryan Drewery
  1296. _ACEOF
  1297. exit
  1298. fi
  1299. ## ------------------------ ##
  1300. ## Autoconf initialization. ##
  1301. ## ------------------------ ##
  1302. # ac_fn_cxx_try_compile LINENO
  1303. # ----------------------------
  1304. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1305. ac_fn_cxx_try_compile ()
  1306. {
  1307. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1308. rm -f conftest.$ac_objext
  1309. if { { ac_try="$ac_compile"
  1310. case "(($ac_try" in
  1311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1312. *) ac_try_echo=$ac_try;;
  1313. esac
  1314. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1315. $as_echo "$ac_try_echo"; } >&5
  1316. (eval "$ac_compile") 2>conftest.err
  1317. ac_status=$?
  1318. if test -s conftest.err; then
  1319. grep -v '^ *+' conftest.err >conftest.er1
  1320. cat conftest.er1 >&5
  1321. mv -f conftest.er1 conftest.err
  1322. fi
  1323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1324. test $ac_status = 0; } && {
  1325. test -z "$ac_cxx_werror_flag" ||
  1326. test ! -s conftest.err
  1327. } && test -s conftest.$ac_objext; then :
  1328. ac_retval=0
  1329. else
  1330. $as_echo "$as_me: failed program was:" >&5
  1331. sed 's/^/| /' conftest.$ac_ext >&5
  1332. ac_retval=1
  1333. fi
  1334. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1335. as_fn_set_status $ac_retval
  1336. } # ac_fn_cxx_try_compile
  1337. # ac_fn_cxx_try_cpp LINENO
  1338. # ------------------------
  1339. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1340. ac_fn_cxx_try_cpp ()
  1341. {
  1342. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1343. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1344. case "(($ac_try" in
  1345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1346. *) ac_try_echo=$ac_try;;
  1347. esac
  1348. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1349. $as_echo "$ac_try_echo"; } >&5
  1350. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1351. ac_status=$?
  1352. if test -s conftest.err; then
  1353. grep -v '^ *+' conftest.err >conftest.er1
  1354. cat conftest.er1 >&5
  1355. mv -f conftest.er1 conftest.err
  1356. fi
  1357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1358. test $ac_status = 0; } > conftest.i && {
  1359. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1360. test ! -s conftest.err
  1361. }; then :
  1362. ac_retval=0
  1363. else
  1364. $as_echo "$as_me: failed program was:" >&5
  1365. sed 's/^/| /' conftest.$ac_ext >&5
  1366. ac_retval=1
  1367. fi
  1368. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1369. as_fn_set_status $ac_retval
  1370. } # ac_fn_cxx_try_cpp
  1371. # ac_fn_cxx_try_link LINENO
  1372. # -------------------------
  1373. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1374. ac_fn_cxx_try_link ()
  1375. {
  1376. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1377. rm -f conftest.$ac_objext conftest$ac_exeext
  1378. if { { ac_try="$ac_link"
  1379. case "(($ac_try" in
  1380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1381. *) ac_try_echo=$ac_try;;
  1382. esac
  1383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1384. $as_echo "$ac_try_echo"; } >&5
  1385. (eval "$ac_link") 2>conftest.err
  1386. ac_status=$?
  1387. if test -s conftest.err; then
  1388. grep -v '^ *+' conftest.err >conftest.er1
  1389. cat conftest.er1 >&5
  1390. mv -f conftest.er1 conftest.err
  1391. fi
  1392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1393. test $ac_status = 0; } && {
  1394. test -z "$ac_cxx_werror_flag" ||
  1395. test ! -s conftest.err
  1396. } && test -s conftest$ac_exeext && {
  1397. test "$cross_compiling" = yes ||
  1398. test -x conftest$ac_exeext
  1399. }; then :
  1400. ac_retval=0
  1401. else
  1402. $as_echo "$as_me: failed program was:" >&5
  1403. sed 's/^/| /' conftest.$ac_ext >&5
  1404. ac_retval=1
  1405. fi
  1406. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1407. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1408. # interfere with the next link command; also delete a directory that is
  1409. # left behind by Apple's compiler. We do this before executing the actions.
  1410. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1411. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1412. as_fn_set_status $ac_retval
  1413. } # ac_fn_cxx_try_link
  1414. # ac_fn_cxx_try_run LINENO
  1415. # ------------------------
  1416. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1417. # that executables *can* be run.
  1418. ac_fn_cxx_try_run ()
  1419. {
  1420. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1421. if { { ac_try="$ac_link"
  1422. case "(($ac_try" in
  1423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1424. *) ac_try_echo=$ac_try;;
  1425. esac
  1426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1427. $as_echo "$ac_try_echo"; } >&5
  1428. (eval "$ac_link") 2>&5
  1429. ac_status=$?
  1430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1431. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1432. { { case "(($ac_try" in
  1433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1434. *) ac_try_echo=$ac_try;;
  1435. esac
  1436. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1437. $as_echo "$ac_try_echo"; } >&5
  1438. (eval "$ac_try") 2>&5
  1439. ac_status=$?
  1440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1441. test $ac_status = 0; }; }; then :
  1442. ac_retval=0
  1443. else
  1444. $as_echo "$as_me: program exited with status $ac_status" >&5
  1445. $as_echo "$as_me: failed program was:" >&5
  1446. sed 's/^/| /' conftest.$ac_ext >&5
  1447. ac_retval=$ac_status
  1448. fi
  1449. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1450. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1451. as_fn_set_status $ac_retval
  1452. } # ac_fn_cxx_try_run
  1453. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1454. # ---------------------------------------------------------
  1455. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1456. # the include files in INCLUDES and setting the cache variable VAR
  1457. # accordingly.
  1458. ac_fn_cxx_check_header_mongrel ()
  1459. {
  1460. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1461. if eval \${$3+:} false; then :
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1463. $as_echo_n "checking for $2... " >&6; }
  1464. if eval \${$3+:} false; then :
  1465. $as_echo_n "(cached) " >&6
  1466. fi
  1467. eval ac_res=\$$3
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1469. $as_echo "$ac_res" >&6; }
  1470. else
  1471. # Is the header compilable?
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1473. $as_echo_n "checking $2 usability... " >&6; }
  1474. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1475. /* end build/confdefs.h. */
  1476. $4
  1477. #include <$2>
  1478. _ACEOF
  1479. if ac_fn_cxx_try_compile "$LINENO"; then :
  1480. ac_header_compiler=yes
  1481. else
  1482. ac_header_compiler=no
  1483. fi
  1484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1486. $as_echo "$ac_header_compiler" >&6; }
  1487. # Is the header present?
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1489. $as_echo_n "checking $2 presence... " >&6; }
  1490. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1491. /* end build/confdefs.h. */
  1492. #include <$2>
  1493. _ACEOF
  1494. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1495. ac_header_preproc=yes
  1496. else
  1497. ac_header_preproc=no
  1498. fi
  1499. rm -f conftest.err conftest.i conftest.$ac_ext
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1501. $as_echo "$ac_header_preproc" >&6; }
  1502. # So? What about this header?
  1503. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1504. yes:no: )
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1506. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1508. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1509. ;;
  1510. no:yes:* )
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1512. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1514. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1516. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1518. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1520. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1521. ;;
  1522. esac
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1524. $as_echo_n "checking for $2... " >&6; }
  1525. if eval \${$3+:} false; then :
  1526. $as_echo_n "(cached) " >&6
  1527. else
  1528. eval "$3=\$ac_header_compiler"
  1529. fi
  1530. eval ac_res=\$$3
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1532. $as_echo "$ac_res" >&6; }
  1533. fi
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. } # ac_fn_cxx_check_header_mongrel
  1536. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1537. # ---------------------------------------------------------
  1538. # Tests whether HEADER exists and can be compiled using the include files in
  1539. # INCLUDES, setting the cache variable VAR accordingly.
  1540. ac_fn_cxx_check_header_compile ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1544. $as_echo_n "checking for $2... " >&6; }
  1545. if eval \${$3+:} false; then :
  1546. $as_echo_n "(cached) " >&6
  1547. else
  1548. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1549. /* end build/confdefs.h. */
  1550. $4
  1551. #include <$2>
  1552. _ACEOF
  1553. if ac_fn_cxx_try_compile "$LINENO"; then :
  1554. eval "$3=yes"
  1555. else
  1556. eval "$3=no"
  1557. fi
  1558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1559. fi
  1560. eval ac_res=\$$3
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1562. $as_echo "$ac_res" >&6; }
  1563. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1564. } # ac_fn_cxx_check_header_compile
  1565. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1566. # ---------------------------------------------
  1567. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1568. # variable VAR accordingly.
  1569. ac_fn_cxx_check_type ()
  1570. {
  1571. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1573. $as_echo_n "checking for $2... " >&6; }
  1574. if eval \${$3+:} false; then :
  1575. $as_echo_n "(cached) " >&6
  1576. else
  1577. eval "$3=no"
  1578. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1579. /* end build/confdefs.h. */
  1580. $4
  1581. int
  1582. main ()
  1583. {
  1584. if (sizeof ($2))
  1585. return 0;
  1586. ;
  1587. return 0;
  1588. }
  1589. _ACEOF
  1590. if ac_fn_cxx_try_compile "$LINENO"; then :
  1591. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1592. /* end build/confdefs.h. */
  1593. $4
  1594. int
  1595. main ()
  1596. {
  1597. if (sizeof (($2)))
  1598. return 0;
  1599. ;
  1600. return 0;
  1601. }
  1602. _ACEOF
  1603. if ac_fn_cxx_try_compile "$LINENO"; then :
  1604. else
  1605. eval "$3=yes"
  1606. fi
  1607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1608. fi
  1609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1610. fi
  1611. eval ac_res=\$$3
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1613. $as_echo "$ac_res" >&6; }
  1614. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1615. } # ac_fn_cxx_check_type
  1616. # ac_fn_c_find_intX_t LINENO BITS VAR
  1617. # -----------------------------------
  1618. # Finds a signed integer type with width BITS, setting cache variable VAR
  1619. # accordingly.
  1620. ac_fn_c_find_intX_t ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1624. $as_echo_n "checking for int$2_t... " >&6; }
  1625. if eval \${$3+:} false; then :
  1626. $as_echo_n "(cached) " >&6
  1627. else
  1628. eval "$3=no"
  1629. # Order is important - never check a type that is potentially smaller
  1630. # than half of the expected target width.
  1631. for ac_type in int$2_t 'int' 'long int' \
  1632. 'long long int' 'short int' 'signed char'; do
  1633. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1634. /* end build/confdefs.h. */
  1635. $ac_includes_default
  1636. enum { N = $2 / 2 - 1 };
  1637. int
  1638. main ()
  1639. {
  1640. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1641. test_array [0] = 0;
  1642. return test_array [0];
  1643. ;
  1644. return 0;
  1645. }
  1646. _ACEOF
  1647. if ac_fn_cxx_try_compile "$LINENO"; then :
  1648. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1649. /* end build/confdefs.h. */
  1650. $ac_includes_default
  1651. enum { N = $2 / 2 - 1 };
  1652. int
  1653. main ()
  1654. {
  1655. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1656. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1657. test_array [0] = 0;
  1658. return test_array [0];
  1659. ;
  1660. return 0;
  1661. }
  1662. _ACEOF
  1663. if ac_fn_cxx_try_compile "$LINENO"; then :
  1664. else
  1665. case $ac_type in #(
  1666. int$2_t) :
  1667. eval "$3=yes" ;; #(
  1668. *) :
  1669. eval "$3=\$ac_type" ;;
  1670. esac
  1671. fi
  1672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1673. fi
  1674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1675. if eval test \"x\$"$3"\" = x"no"; then :
  1676. else
  1677. break
  1678. fi
  1679. done
  1680. fi
  1681. eval ac_res=\$$3
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1683. $as_echo "$ac_res" >&6; }
  1684. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1685. } # ac_fn_c_find_intX_t
  1686. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1687. # ------------------------------------
  1688. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1689. # accordingly.
  1690. ac_fn_c_find_uintX_t ()
  1691. {
  1692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1694. $as_echo_n "checking for uint$2_t... " >&6; }
  1695. if eval \${$3+:} false; then :
  1696. $as_echo_n "(cached) " >&6
  1697. else
  1698. eval "$3=no"
  1699. # Order is important - never check a type that is potentially smaller
  1700. # than half of the expected target width.
  1701. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1702. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1703. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1704. /* end build/confdefs.h. */
  1705. $ac_includes_default
  1706. int
  1707. main ()
  1708. {
  1709. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1710. test_array [0] = 0;
  1711. return test_array [0];
  1712. ;
  1713. return 0;
  1714. }
  1715. _ACEOF
  1716. if ac_fn_cxx_try_compile "$LINENO"; then :
  1717. case $ac_type in #(
  1718. uint$2_t) :
  1719. eval "$3=yes" ;; #(
  1720. *) :
  1721. eval "$3=\$ac_type" ;;
  1722. esac
  1723. fi
  1724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1725. if eval test \"x\$"$3"\" = x"no"; then :
  1726. else
  1727. break
  1728. fi
  1729. done
  1730. fi
  1731. eval ac_res=\$$3
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1733. $as_echo "$ac_res" >&6; }
  1734. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1735. } # ac_fn_c_find_uintX_t
  1736. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1737. # ------------------------------------------------------
  1738. # Tries to find if the field MEMBER exists in type AGGR, after including
  1739. # INCLUDES, setting cache variable VAR accordingly.
  1740. ac_fn_cxx_check_member ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1744. $as_echo_n "checking for $2.$3... " >&6; }
  1745. if eval \${$4+:} false; then :
  1746. $as_echo_n "(cached) " >&6
  1747. else
  1748. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1749. /* end build/confdefs.h. */
  1750. $5
  1751. int
  1752. main ()
  1753. {
  1754. static $2 ac_aggr;
  1755. if (ac_aggr.$3)
  1756. return 0;
  1757. ;
  1758. return 0;
  1759. }
  1760. _ACEOF
  1761. if ac_fn_cxx_try_compile "$LINENO"; then :
  1762. eval "$4=yes"
  1763. else
  1764. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1765. /* end build/confdefs.h. */
  1766. $5
  1767. int
  1768. main ()
  1769. {
  1770. static $2 ac_aggr;
  1771. if (sizeof ac_aggr.$3)
  1772. return 0;
  1773. ;
  1774. return 0;
  1775. }
  1776. _ACEOF
  1777. if ac_fn_cxx_try_compile "$LINENO"; then :
  1778. eval "$4=yes"
  1779. else
  1780. eval "$4=no"
  1781. fi
  1782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1783. fi
  1784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1785. fi
  1786. eval ac_res=\$$4
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1788. $as_echo "$ac_res" >&6; }
  1789. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1790. } # ac_fn_cxx_check_member
  1791. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1792. # -----------------------------------------------
  1793. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1794. # accordingly.
  1795. ac_fn_cxx_check_decl ()
  1796. {
  1797. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1798. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1799. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1801. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1802. if eval \${$3+:} false; then :
  1803. $as_echo_n "(cached) " >&6
  1804. else
  1805. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1806. /* end build/confdefs.h. */
  1807. $4
  1808. int
  1809. main ()
  1810. {
  1811. #ifndef $as_decl_name
  1812. #ifdef __cplusplus
  1813. (void) $as_decl_use;
  1814. #else
  1815. (void) $as_decl_name;
  1816. #endif
  1817. #endif
  1818. ;
  1819. return 0;
  1820. }
  1821. _ACEOF
  1822. if ac_fn_cxx_try_compile "$LINENO"; then :
  1823. eval "$3=yes"
  1824. else
  1825. eval "$3=no"
  1826. fi
  1827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1828. fi
  1829. eval ac_res=\$$3
  1830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1831. $as_echo "$ac_res" >&6; }
  1832. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1833. } # ac_fn_cxx_check_decl
  1834. # ac_fn_cxx_check_func LINENO FUNC VAR
  1835. # ------------------------------------
  1836. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1837. ac_fn_cxx_check_func ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1841. $as_echo_n "checking for $2... " >&6; }
  1842. if eval \${$3+:} false; then :
  1843. $as_echo_n "(cached) " >&6
  1844. else
  1845. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1846. /* end build/confdefs.h. */
  1847. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1848. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1849. #define $2 innocuous_$2
  1850. /* System header to define __stub macros and hopefully few prototypes,
  1851. which can conflict with char $2 (); below.
  1852. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1853. <limits.h> exists even on freestanding compilers. */
  1854. #ifdef __STDC__
  1855. # include <limits.h>
  1856. #else
  1857. # include <assert.h>
  1858. #endif
  1859. #undef $2
  1860. /* Override any GCC internal prototype to avoid an error.
  1861. Use char because int might match the return type of a GCC
  1862. builtin and then its argument prototype would still apply. */
  1863. #ifdef __cplusplus
  1864. extern "C"
  1865. #endif
  1866. char $2 ();
  1867. /* The GNU C library defines this for functions which it implements
  1868. to always fail with ENOSYS. Some functions are actually named
  1869. something starting with __ and the normal name is an alias. */
  1870. #if defined __stub_$2 || defined __stub___$2
  1871. choke me
  1872. #endif
  1873. int
  1874. main ()
  1875. {
  1876. return $2 ();
  1877. ;
  1878. return 0;
  1879. }
  1880. _ACEOF
  1881. if ac_fn_cxx_try_link "$LINENO"; then :
  1882. eval "$3=yes"
  1883. else
  1884. eval "$3=no"
  1885. fi
  1886. rm -f core conftest.err conftest.$ac_objext \
  1887. conftest$ac_exeext conftest.$ac_ext
  1888. fi
  1889. eval ac_res=\$$3
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1891. $as_echo "$ac_res" >&6; }
  1892. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1893. } # ac_fn_cxx_check_func
  1894. cat >build/config.log <<_ACEOF
  1895. This file contains any messages produced by compilers while
  1896. running configure, to aid debugging if configure makes a mistake.
  1897. It was created by $as_me, which was
  1898. generated by GNU Autoconf 2.69. Invocation command line was
  1899. $ $0 $@
  1900. _ACEOF
  1901. exec 5>>build/config.log
  1902. {
  1903. cat <<_ASUNAME
  1904. ## --------- ##
  1905. ## Platform. ##
  1906. ## --------- ##
  1907. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1908. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1909. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1910. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1911. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1912. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1913. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1914. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1915. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1916. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1917. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1918. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1919. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1920. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1921. _ASUNAME
  1922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1923. for as_dir in $PATH
  1924. do
  1925. IFS=$as_save_IFS
  1926. test -z "$as_dir" && as_dir=.
  1927. $as_echo "PATH: $as_dir"
  1928. done
  1929. IFS=$as_save_IFS
  1930. } >&5
  1931. cat >&5 <<_ACEOF
  1932. ## ----------- ##
  1933. ## Core tests. ##
  1934. ## ----------- ##
  1935. _ACEOF
  1936. # Keep a trace of the command line.
  1937. # Strip out --no-create and --no-recursion so they do not pile up.
  1938. # Strip out --silent because we don't want to record it for future runs.
  1939. # Also quote any args containing shell meta-characters.
  1940. # Make two passes to allow for proper duplicate-argument suppression.
  1941. ac_configure_args=
  1942. ac_configure_args0=
  1943. ac_configure_args1=
  1944. ac_must_keep_next=false
  1945. for ac_pass in 1 2
  1946. do
  1947. for ac_arg
  1948. do
  1949. case $ac_arg in
  1950. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1951. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1952. | -silent | --silent | --silen | --sile | --sil)
  1953. continue ;;
  1954. *\'*)
  1955. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1956. esac
  1957. case $ac_pass in
  1958. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1959. 2)
  1960. as_fn_append ac_configure_args1 " '$ac_arg'"
  1961. if test $ac_must_keep_next = true; then
  1962. ac_must_keep_next=false # Got value, back to normal.
  1963. else
  1964. case $ac_arg in
  1965. *=* | --config-cache | -C | -disable-* | --disable-* \
  1966. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1967. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1968. | -with-* | --with-* | -without-* | --without-* | --x)
  1969. case "$ac_configure_args0 " in
  1970. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1971. esac
  1972. ;;
  1973. -* ) ac_must_keep_next=true ;;
  1974. esac
  1975. fi
  1976. as_fn_append ac_configure_args " '$ac_arg'"
  1977. ;;
  1978. esac
  1979. done
  1980. done
  1981. { ac_configure_args0=; unset ac_configure_args0;}
  1982. { ac_configure_args1=; unset ac_configure_args1;}
  1983. # When interrupted or exit'd, cleanup temporary files, and complete
  1984. # build/config.log. We remove comments because anyway the quotes in there
  1985. # would cause problems or look ugly.
  1986. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1987. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1988. trap 'exit_status=$?
  1989. # Save into build/config.log some information that might help in debugging.
  1990. {
  1991. echo
  1992. $as_echo "## ---------------- ##
  1993. ## Cache variables. ##
  1994. ## ---------------- ##"
  1995. echo
  1996. # The following way of writing the cache mishandles newlines in values,
  1997. (
  1998. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1999. eval ac_val=\$$ac_var
  2000. case $ac_val in #(
  2001. *${as_nl}*)
  2002. case $ac_var in #(
  2003. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2004. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2005. esac
  2006. case $ac_var in #(
  2007. _ | IFS | as_nl) ;; #(
  2008. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2009. *) { eval $ac_var=; unset $ac_var;} ;;
  2010. esac ;;
  2011. esac
  2012. done
  2013. (set) 2>&1 |
  2014. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2015. *${as_nl}ac_space=\ *)
  2016. sed -n \
  2017. "s/'\''/'\''\\\\'\'''\''/g;
  2018. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2019. ;; #(
  2020. *)
  2021. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2022. ;;
  2023. esac |
  2024. sort
  2025. )
  2026. echo
  2027. $as_echo "## ----------------- ##
  2028. ## Output variables. ##
  2029. ## ----------------- ##"
  2030. echo
  2031. for ac_var in $ac_subst_vars
  2032. do
  2033. eval ac_val=\$$ac_var
  2034. case $ac_val in
  2035. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2036. esac
  2037. $as_echo "$ac_var='\''$ac_val'\''"
  2038. done | sort
  2039. echo
  2040. if test -n "$ac_subst_files"; then
  2041. $as_echo "## ------------------- ##
  2042. ## File substitutions. ##
  2043. ## ------------------- ##"
  2044. echo
  2045. for ac_var in $ac_subst_files
  2046. do
  2047. eval ac_val=\$$ac_var
  2048. case $ac_val in
  2049. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2050. esac
  2051. $as_echo "$ac_var='\''$ac_val'\''"
  2052. done | sort
  2053. echo
  2054. fi
  2055. if test -s build/confdefs.h; then
  2056. $as_echo "## ----------- ##
  2057. ## build/confdefs.h. ##
  2058. ## ----------- ##"
  2059. echo
  2060. cat build/confdefs.h
  2061. echo
  2062. fi
  2063. test "$ac_signal" != 0 &&
  2064. $as_echo "$as_me: caught signal $ac_signal"
  2065. $as_echo "$as_me: exit $exit_status"
  2066. } >&5
  2067. rm -f core *.core core.conftest.* &&
  2068. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2069. exit $exit_status
  2070. ' 0
  2071. for ac_signal in 1 2 13 15; do
  2072. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2073. done
  2074. ac_signal=0
  2075. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2076. rm -f -r conftest* build/confdefs.h
  2077. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2078. # Predefined preprocessor variables.
  2079. cat >>build/confdefs.h <<_ACEOF
  2080. #define PACKAGE_NAME "$PACKAGE_NAME"
  2081. _ACEOF
  2082. cat >>build/confdefs.h <<_ACEOF
  2083. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2084. _ACEOF
  2085. cat >>build/confdefs.h <<_ACEOF
  2086. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2087. _ACEOF
  2088. cat >>build/confdefs.h <<_ACEOF
  2089. #define PACKAGE_STRING "$PACKAGE_STRING"
  2090. _ACEOF
  2091. cat >>build/confdefs.h <<_ACEOF
  2092. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2093. _ACEOF
  2094. cat >>build/confdefs.h <<_ACEOF
  2095. #define PACKAGE_URL "$PACKAGE_URL"
  2096. _ACEOF
  2097. # Let the site file select an alternate cache file if it wants to.
  2098. # Prefer an explicitly selected file to automatically selected ones.
  2099. ac_site_file1=NONE
  2100. ac_site_file2=NONE
  2101. if test -n "$CONFIG_SITE"; then
  2102. # We do not want a PATH search for config.site.
  2103. case $CONFIG_SITE in #((
  2104. -*) ac_site_file1=./$CONFIG_SITE;;
  2105. */*) ac_site_file1=$CONFIG_SITE;;
  2106. *) ac_site_file1=./$CONFIG_SITE;;
  2107. esac
  2108. elif test "x$prefix" != xNONE; then
  2109. ac_site_file1=$prefix/share/config.site
  2110. ac_site_file2=$prefix/etc/config.site
  2111. else
  2112. ac_site_file1=$ac_default_prefix/share/config.site
  2113. ac_site_file2=$ac_default_prefix/etc/config.site
  2114. fi
  2115. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2116. do
  2117. test "x$ac_site_file" = xNONE && continue
  2118. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2120. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2121. sed 's/^/| /' "$ac_site_file" >&5
  2122. . "$ac_site_file" \
  2123. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2124. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2125. as_fn_error $? "failed to load site script $ac_site_file
  2126. See \`build/config.log' for more details" "$LINENO" 5; }
  2127. fi
  2128. done
  2129. if test -r "$cache_file"; then
  2130. # Some versions of bash will fail to source /dev/null (special files
  2131. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2132. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2134. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2135. case $cache_file in
  2136. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2137. *) . "./$cache_file";;
  2138. esac
  2139. fi
  2140. else
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2142. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2143. >$cache_file
  2144. fi
  2145. as_fn_append ac_header_list " stdlib.h"
  2146. as_fn_append ac_header_list " unistd.h"
  2147. as_fn_append ac_header_list " sys/param.h"
  2148. # Check that the precious variables saved in the cache have kept the same
  2149. # value.
  2150. ac_cache_corrupted=false
  2151. for ac_var in $ac_precious_vars; do
  2152. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2153. eval ac_new_set=\$ac_env_${ac_var}_set
  2154. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2155. eval ac_new_val=\$ac_env_${ac_var}_value
  2156. case $ac_old_set,$ac_new_set in
  2157. set,)
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2159. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2160. ac_cache_corrupted=: ;;
  2161. ,set)
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2163. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2164. ac_cache_corrupted=: ;;
  2165. ,);;
  2166. *)
  2167. if test "x$ac_old_val" != "x$ac_new_val"; then
  2168. # differences in whitespace do not lead to failure.
  2169. ac_old_val_w=`echo x $ac_old_val`
  2170. ac_new_val_w=`echo x $ac_new_val`
  2171. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2173. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2174. ac_cache_corrupted=:
  2175. else
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2177. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2178. eval $ac_var=\$ac_old_val
  2179. fi
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2181. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2183. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2184. fi;;
  2185. esac
  2186. # Pass precious variables to build/config.status.
  2187. if test "$ac_new_set" = set; then
  2188. case $ac_new_val in
  2189. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2190. *) ac_arg=$ac_var=$ac_new_val ;;
  2191. esac
  2192. case " $ac_configure_args " in
  2193. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2194. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2195. esac
  2196. fi
  2197. done
  2198. if $ac_cache_corrupted; then
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2202. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2203. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2204. fi
  2205. ## -------------------- ##
  2206. ## Main body of script. ##
  2207. ## -------------------- ##
  2208. ac_ext=c
  2209. ac_cpp='$CPP $CPPFLAGS'
  2210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2213. ac_config_headers="$ac_config_headers src/config.h"
  2214. ac_aux_dir=
  2215. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2216. if test -f "$ac_dir/install-sh"; then
  2217. ac_aux_dir=$ac_dir
  2218. ac_install_sh="$ac_aux_dir/install-sh -c"
  2219. break
  2220. elif test -f "$ac_dir/install.sh"; then
  2221. ac_aux_dir=$ac_dir
  2222. ac_install_sh="$ac_aux_dir/install.sh -c"
  2223. break
  2224. elif test -f "$ac_dir/shtool"; then
  2225. ac_aux_dir=$ac_dir
  2226. ac_install_sh="$ac_aux_dir/shtool install -c"
  2227. break
  2228. fi
  2229. done
  2230. if test -z "$ac_aux_dir"; then
  2231. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2232. fi
  2233. # These three variables are undocumented and unsupported,
  2234. # and are intended to be withdrawn in a future Autoconf release.
  2235. # They can cause serious problems if a builder's source tree is in a directory
  2236. # whose full name contains unusual characters.
  2237. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2238. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2239. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2240. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2241. egg_ac_parameters=
  2242. ac_prev=
  2243. for ac_arg in $ac_configure_args; do
  2244. if test -n "$ac_prev"; then
  2245. ac_prev=
  2246. continue
  2247. fi
  2248. case $ac_arg in
  2249. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2250. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2251. ac_prev=cache_file ;;
  2252. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2253. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2254. | --c=*)
  2255. ;;
  2256. --config-cache | -C)
  2257. ;;
  2258. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2259. ac_prev=srcdir ;;
  2260. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2261. ;;
  2262. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2263. esac
  2264. done
  2265. # Setup build environment
  2266. #AC_REQUIRE_CPP
  2267. ac_ext=cpp
  2268. ac_cpp='$CXXCPP $CPPFLAGS'
  2269. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2270. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2271. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2272. ac_ext=cpp
  2273. ac_cpp='$CXXCPP $CPPFLAGS'
  2274. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2275. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2276. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2277. if test -z "$CXX"; then
  2278. if test -n "$CCC"; then
  2279. CXX=$CCC
  2280. else
  2281. if test -n "$ac_tool_prefix"; then
  2282. 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++
  2283. do
  2284. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2285. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2287. $as_echo_n "checking for $ac_word... " >&6; }
  2288. if ${ac_cv_prog_CXX+:} false; then :
  2289. $as_echo_n "(cached) " >&6
  2290. else
  2291. if test -n "$CXX"; then
  2292. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2293. else
  2294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2295. for as_dir in $PATH
  2296. do
  2297. IFS=$as_save_IFS
  2298. test -z "$as_dir" && as_dir=.
  2299. for ac_exec_ext in '' $ac_executable_extensions; do
  2300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2301. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2303. break 2
  2304. fi
  2305. done
  2306. done
  2307. IFS=$as_save_IFS
  2308. fi
  2309. fi
  2310. CXX=$ac_cv_prog_CXX
  2311. if test -n "$CXX"; then
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2313. $as_echo "$CXX" >&6; }
  2314. else
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2316. $as_echo "no" >&6; }
  2317. fi
  2318. test -n "$CXX" && break
  2319. done
  2320. fi
  2321. if test -z "$CXX"; then
  2322. ac_ct_CXX=$CXX
  2323. 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++
  2324. do
  2325. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2326. set dummy $ac_prog; ac_word=$2
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2328. $as_echo_n "checking for $ac_word... " >&6; }
  2329. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2330. $as_echo_n "(cached) " >&6
  2331. else
  2332. if test -n "$ac_ct_CXX"; then
  2333. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2334. else
  2335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2336. for as_dir in $PATH
  2337. do
  2338. IFS=$as_save_IFS
  2339. test -z "$as_dir" && as_dir=.
  2340. for ac_exec_ext in '' $ac_executable_extensions; do
  2341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2342. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2344. break 2
  2345. fi
  2346. done
  2347. done
  2348. IFS=$as_save_IFS
  2349. fi
  2350. fi
  2351. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2352. if test -n "$ac_ct_CXX"; then
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2354. $as_echo "$ac_ct_CXX" >&6; }
  2355. else
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2357. $as_echo "no" >&6; }
  2358. fi
  2359. test -n "$ac_ct_CXX" && break
  2360. done
  2361. if test "x$ac_ct_CXX" = x; then
  2362. CXX="g++"
  2363. else
  2364. case $cross_compiling:$ac_tool_warned in
  2365. yes:)
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2368. ac_tool_warned=yes ;;
  2369. esac
  2370. CXX=$ac_ct_CXX
  2371. fi
  2372. fi
  2373. fi
  2374. fi
  2375. # Provide some information about the compiler.
  2376. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2377. set X $ac_compile
  2378. ac_compiler=$2
  2379. for ac_option in --version -v -V -qversion; do
  2380. { { ac_try="$ac_compiler $ac_option >&5"
  2381. case "(($ac_try" in
  2382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2383. *) ac_try_echo=$ac_try;;
  2384. esac
  2385. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2386. $as_echo "$ac_try_echo"; } >&5
  2387. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2388. ac_status=$?
  2389. if test -s conftest.err; then
  2390. sed '10a\
  2391. ... rest of stderr output deleted ...
  2392. 10q' conftest.err >conftest.er1
  2393. cat conftest.er1 >&5
  2394. fi
  2395. rm -f conftest.er1 conftest.err
  2396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2397. test $ac_status = 0; }
  2398. done
  2399. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2400. /* end build/confdefs.h. */
  2401. int
  2402. main ()
  2403. {
  2404. ;
  2405. return 0;
  2406. }
  2407. _ACEOF
  2408. ac_clean_files_save=$ac_clean_files
  2409. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2410. # Try to create an executable without -o first, disregard a.out.
  2411. # It will help us diagnose broken compilers, and finding out an intuition
  2412. # of exeext.
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2414. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2415. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2416. # The possible output files:
  2417. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2418. ac_rmfiles=
  2419. for ac_file in $ac_files
  2420. do
  2421. case $ac_file in
  2422. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2423. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2424. esac
  2425. done
  2426. rm -f $ac_rmfiles
  2427. if { { ac_try="$ac_link_default"
  2428. case "(($ac_try" in
  2429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2430. *) ac_try_echo=$ac_try;;
  2431. esac
  2432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2433. $as_echo "$ac_try_echo"; } >&5
  2434. (eval "$ac_link_default") 2>&5
  2435. ac_status=$?
  2436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2437. test $ac_status = 0; }; then :
  2438. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2439. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2440. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2441. # so that the user can short-circuit this test for compilers unknown to
  2442. # Autoconf.
  2443. for ac_file in $ac_files ''
  2444. do
  2445. test -f "$ac_file" || continue
  2446. case $ac_file in
  2447. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2448. ;;
  2449. [ab].out )
  2450. # We found the default executable, but exeext='' is most
  2451. # certainly right.
  2452. break;;
  2453. *.* )
  2454. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2455. then :; else
  2456. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2457. fi
  2458. # We set ac_cv_exeext here because the later test for it is not
  2459. # safe: cross compilers may not add the suffix if given an `-o'
  2460. # argument, so we may need to know it at that point already.
  2461. # Even if this section looks crufty: it has the advantage of
  2462. # actually working.
  2463. break;;
  2464. * )
  2465. break;;
  2466. esac
  2467. done
  2468. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2469. else
  2470. ac_file=''
  2471. fi
  2472. if test -z "$ac_file"; then :
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2474. $as_echo "no" >&6; }
  2475. $as_echo "$as_me: failed program was:" >&5
  2476. sed 's/^/| /' conftest.$ac_ext >&5
  2477. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2478. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2479. as_fn_error 77 "C++ compiler cannot create executables
  2480. See \`build/config.log' for more details" "$LINENO" 5; }
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2483. $as_echo "yes" >&6; }
  2484. fi
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2486. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2488. $as_echo "$ac_file" >&6; }
  2489. ac_exeext=$ac_cv_exeext
  2490. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2491. ac_clean_files=$ac_clean_files_save
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2493. $as_echo_n "checking for suffix of executables... " >&6; }
  2494. if { { ac_try="$ac_link"
  2495. case "(($ac_try" in
  2496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2497. *) ac_try_echo=$ac_try;;
  2498. esac
  2499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2500. $as_echo "$ac_try_echo"; } >&5
  2501. (eval "$ac_link") 2>&5
  2502. ac_status=$?
  2503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2504. test $ac_status = 0; }; then :
  2505. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2506. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2507. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2508. # `rm'.
  2509. for ac_file in conftest.exe conftest conftest.*; do
  2510. test -f "$ac_file" || continue
  2511. case $ac_file in
  2512. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2513. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2514. break;;
  2515. * ) break;;
  2516. esac
  2517. done
  2518. else
  2519. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2520. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2521. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2522. See \`build/config.log' for more details" "$LINENO" 5; }
  2523. fi
  2524. rm -f conftest conftest$ac_cv_exeext
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2526. $as_echo "$ac_cv_exeext" >&6; }
  2527. rm -f conftest.$ac_ext
  2528. EXEEXT=$ac_cv_exeext
  2529. ac_exeext=$EXEEXT
  2530. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2531. /* end build/confdefs.h. */
  2532. #include <stdio.h>
  2533. int
  2534. main ()
  2535. {
  2536. FILE *f = fopen ("conftest.out", "w");
  2537. return ferror (f) || fclose (f) != 0;
  2538. ;
  2539. return 0;
  2540. }
  2541. _ACEOF
  2542. ac_clean_files="$ac_clean_files conftest.out"
  2543. # Check that the compiler produces executables we can run. If not, either
  2544. # the compiler is broken, or we cross compile.
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2546. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2547. if test "$cross_compiling" != yes; then
  2548. { { ac_try="$ac_link"
  2549. case "(($ac_try" in
  2550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2551. *) ac_try_echo=$ac_try;;
  2552. esac
  2553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2554. $as_echo "$ac_try_echo"; } >&5
  2555. (eval "$ac_link") 2>&5
  2556. ac_status=$?
  2557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2558. test $ac_status = 0; }
  2559. if { ac_try='./conftest$ac_cv_exeext'
  2560. { { case "(($ac_try" in
  2561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2562. *) ac_try_echo=$ac_try;;
  2563. esac
  2564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2565. $as_echo "$ac_try_echo"; } >&5
  2566. (eval "$ac_try") 2>&5
  2567. ac_status=$?
  2568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2569. test $ac_status = 0; }; }; then
  2570. cross_compiling=no
  2571. else
  2572. if test "$cross_compiling" = maybe; then
  2573. cross_compiling=yes
  2574. else
  2575. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2576. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2577. as_fn_error $? "cannot run C++ compiled programs.
  2578. If you meant to cross compile, use \`--host'.
  2579. See \`build/config.log' for more details" "$LINENO" 5; }
  2580. fi
  2581. fi
  2582. fi
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2584. $as_echo "$cross_compiling" >&6; }
  2585. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2586. ac_clean_files=$ac_clean_files_save
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2588. $as_echo_n "checking for suffix of object files... " >&6; }
  2589. if ${ac_cv_objext+:} false; then :
  2590. $as_echo_n "(cached) " >&6
  2591. else
  2592. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2593. /* end build/confdefs.h. */
  2594. int
  2595. main ()
  2596. {
  2597. ;
  2598. return 0;
  2599. }
  2600. _ACEOF
  2601. rm -f conftest.o conftest.obj
  2602. if { { ac_try="$ac_compile"
  2603. case "(($ac_try" in
  2604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2605. *) ac_try_echo=$ac_try;;
  2606. esac
  2607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2608. $as_echo "$ac_try_echo"; } >&5
  2609. (eval "$ac_compile") 2>&5
  2610. ac_status=$?
  2611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2612. test $ac_status = 0; }; then :
  2613. for ac_file in conftest.o conftest.obj conftest.*; do
  2614. test -f "$ac_file" || continue;
  2615. case $ac_file in
  2616. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2617. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2618. break;;
  2619. esac
  2620. done
  2621. else
  2622. $as_echo "$as_me: failed program was:" >&5
  2623. sed 's/^/| /' conftest.$ac_ext >&5
  2624. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2625. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2626. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2627. See \`build/config.log' for more details" "$LINENO" 5; }
  2628. fi
  2629. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2630. fi
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2632. $as_echo "$ac_cv_objext" >&6; }
  2633. OBJEXT=$ac_cv_objext
  2634. ac_objext=$OBJEXT
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2636. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2637. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2638. $as_echo_n "(cached) " >&6
  2639. else
  2640. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2641. /* end build/confdefs.h. */
  2642. int
  2643. main ()
  2644. {
  2645. #ifndef __GNUC__
  2646. choke me
  2647. #endif
  2648. ;
  2649. return 0;
  2650. }
  2651. _ACEOF
  2652. if ac_fn_cxx_try_compile "$LINENO"; then :
  2653. ac_compiler_gnu=yes
  2654. else
  2655. ac_compiler_gnu=no
  2656. fi
  2657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2658. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2659. fi
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2661. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2662. if test $ac_compiler_gnu = yes; then
  2663. GXX=yes
  2664. else
  2665. GXX=
  2666. fi
  2667. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2668. ac_save_CXXFLAGS=$CXXFLAGS
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2670. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2671. if ${ac_cv_prog_cxx_g+:} false; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2675. ac_cxx_werror_flag=yes
  2676. ac_cv_prog_cxx_g=no
  2677. CXXFLAGS="-g"
  2678. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2679. /* end build/confdefs.h. */
  2680. int
  2681. main ()
  2682. {
  2683. ;
  2684. return 0;
  2685. }
  2686. _ACEOF
  2687. if ac_fn_cxx_try_compile "$LINENO"; then :
  2688. ac_cv_prog_cxx_g=yes
  2689. else
  2690. CXXFLAGS=""
  2691. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2692. /* end build/confdefs.h. */
  2693. int
  2694. main ()
  2695. {
  2696. ;
  2697. return 0;
  2698. }
  2699. _ACEOF
  2700. if ac_fn_cxx_try_compile "$LINENO"; then :
  2701. else
  2702. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2703. CXXFLAGS="-g"
  2704. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2705. /* end build/confdefs.h. */
  2706. int
  2707. main ()
  2708. {
  2709. ;
  2710. return 0;
  2711. }
  2712. _ACEOF
  2713. if ac_fn_cxx_try_compile "$LINENO"; then :
  2714. ac_cv_prog_cxx_g=yes
  2715. fi
  2716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2717. fi
  2718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2719. fi
  2720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2721. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2722. fi
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2724. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2725. if test "$ac_test_CXXFLAGS" = set; then
  2726. CXXFLAGS=$ac_save_CXXFLAGS
  2727. elif test $ac_cv_prog_cxx_g = yes; then
  2728. if test "$GXX" = yes; then
  2729. CXXFLAGS="-g -O2"
  2730. else
  2731. CXXFLAGS="-g"
  2732. fi
  2733. else
  2734. if test "$GXX" = yes; then
  2735. CXXFLAGS="-O2"
  2736. else
  2737. CXXFLAGS=
  2738. fi
  2739. fi
  2740. ac_ext=cpp
  2741. ac_cpp='$CXXCPP $CPPFLAGS'
  2742. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2743. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2744. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2745. CC="${CXX} -x c"
  2746. ac_ext=cpp
  2747. ac_cpp='$CXXCPP $CPPFLAGS'
  2748. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2749. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2750. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2752. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2753. if test -z "$CXXCPP"; then
  2754. if ${ac_cv_prog_CXXCPP+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. # Double quotes because CXXCPP needs to be expanded
  2758. for CXXCPP in "$CXX -E" "/lib/cpp"
  2759. do
  2760. ac_preproc_ok=false
  2761. for ac_cxx_preproc_warn_flag in '' yes
  2762. do
  2763. # Use a header file that comes with gcc, so configuring glibc
  2764. # with a fresh cross-compiler works.
  2765. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2766. # <limits.h> exists even on freestanding compilers.
  2767. # On the NeXT, cc -E runs the code through the compiler's parser,
  2768. # not just through cpp. "Syntax error" is here to catch this case.
  2769. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2770. /* end build/confdefs.h. */
  2771. #ifdef __STDC__
  2772. # include <limits.h>
  2773. #else
  2774. # include <assert.h>
  2775. #endif
  2776. Syntax error
  2777. _ACEOF
  2778. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2779. else
  2780. # Broken: fails on valid input.
  2781. continue
  2782. fi
  2783. rm -f conftest.err conftest.i conftest.$ac_ext
  2784. # OK, works on sane cases. Now check whether nonexistent headers
  2785. # can be detected and how.
  2786. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2787. /* end build/confdefs.h. */
  2788. #include <ac_nonexistent.h>
  2789. _ACEOF
  2790. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2791. # Broken: success on invalid input.
  2792. continue
  2793. else
  2794. # Passes both tests.
  2795. ac_preproc_ok=:
  2796. break
  2797. fi
  2798. rm -f conftest.err conftest.i conftest.$ac_ext
  2799. done
  2800. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2801. rm -f conftest.i conftest.err conftest.$ac_ext
  2802. if $ac_preproc_ok; then :
  2803. break
  2804. fi
  2805. done
  2806. ac_cv_prog_CXXCPP=$CXXCPP
  2807. fi
  2808. CXXCPP=$ac_cv_prog_CXXCPP
  2809. else
  2810. ac_cv_prog_CXXCPP=$CXXCPP
  2811. fi
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2813. $as_echo "$CXXCPP" >&6; }
  2814. ac_preproc_ok=false
  2815. for ac_cxx_preproc_warn_flag in '' yes
  2816. do
  2817. # Use a header file that comes with gcc, so configuring glibc
  2818. # with a fresh cross-compiler works.
  2819. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2820. # <limits.h> exists even on freestanding compilers.
  2821. # On the NeXT, cc -E runs the code through the compiler's parser,
  2822. # not just through cpp. "Syntax error" is here to catch this case.
  2823. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2824. /* end build/confdefs.h. */
  2825. #ifdef __STDC__
  2826. # include <limits.h>
  2827. #else
  2828. # include <assert.h>
  2829. #endif
  2830. Syntax error
  2831. _ACEOF
  2832. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2833. else
  2834. # Broken: fails on valid input.
  2835. continue
  2836. fi
  2837. rm -f conftest.err conftest.i conftest.$ac_ext
  2838. # OK, works on sane cases. Now check whether nonexistent headers
  2839. # can be detected and how.
  2840. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2841. /* end build/confdefs.h. */
  2842. #include <ac_nonexistent.h>
  2843. _ACEOF
  2844. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2845. # Broken: success on invalid input.
  2846. continue
  2847. else
  2848. # Passes both tests.
  2849. ac_preproc_ok=:
  2850. break
  2851. fi
  2852. rm -f conftest.err conftest.i conftest.$ac_ext
  2853. done
  2854. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2855. rm -f conftest.i conftest.err conftest.$ac_ext
  2856. if $ac_preproc_ok; then :
  2857. else
  2858. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2859. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2860. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2861. See \`build/config.log' for more details" "$LINENO" 5; }
  2862. fi
  2863. ac_ext=cpp
  2864. ac_cpp='$CXXCPP $CPPFLAGS'
  2865. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2866. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2867. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2868. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  2869. ac_ext=cpp
  2870. ac_cpp='$CXXCPP $CPPFLAGS'
  2871. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2872. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2873. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2874. ac_success=no
  2875. if test x$ac_success = xno; then
  2876. for alternative in ${ax_cxx_compile_alternatives}; do
  2877. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  2878. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2880. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2881. if eval \${$cachevar+:} false; then :
  2882. $as_echo_n "(cached) " >&6
  2883. else
  2884. ac_save_CXX="$CXX"
  2885. CXX="$CXX $switch"
  2886. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2887. /* end build/confdefs.h. */
  2888. // If the compiler admits that it is not ready for C++11, why torture it?
  2889. // Hopefully, this will speed up the test.
  2890. #ifndef __cplusplus
  2891. #error "This is not a C++ compiler"
  2892. #elif __cplusplus < 201103L
  2893. #error "This is not a C++11 compiler"
  2894. #else
  2895. namespace cxx11
  2896. {
  2897. namespace test_static_assert
  2898. {
  2899. template <typename T>
  2900. struct check
  2901. {
  2902. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2903. };
  2904. }
  2905. namespace test_final_override
  2906. {
  2907. struct Base
  2908. {
  2909. virtual void f() {}
  2910. };
  2911. struct Derived : public Base
  2912. {
  2913. virtual void f() override {}
  2914. };
  2915. }
  2916. namespace test_double_right_angle_brackets
  2917. {
  2918. template < typename T >
  2919. struct check {};
  2920. typedef check<void> single_type;
  2921. typedef check<check<void>> double_type;
  2922. typedef check<check<check<void>>> triple_type;
  2923. typedef check<check<check<check<void>>>> quadruple_type;
  2924. }
  2925. namespace test_decltype
  2926. {
  2927. int
  2928. f()
  2929. {
  2930. int a = 1;
  2931. decltype(a) b = 2;
  2932. return a + b;
  2933. }
  2934. }
  2935. namespace test_type_deduction
  2936. {
  2937. template < typename T1, typename T2 >
  2938. struct is_same
  2939. {
  2940. static const bool value = false;
  2941. };
  2942. template < typename T >
  2943. struct is_same<T, T>
  2944. {
  2945. static const bool value = true;
  2946. };
  2947. template < typename T1, typename T2 >
  2948. auto
  2949. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  2950. {
  2951. return a1 + a2;
  2952. }
  2953. int
  2954. test(const int c, volatile int v)
  2955. {
  2956. static_assert(is_same<int, decltype(0)>::value == true, "");
  2957. static_assert(is_same<int, decltype(c)>::value == false, "");
  2958. static_assert(is_same<int, decltype(v)>::value == false, "");
  2959. auto ac = c;
  2960. auto av = v;
  2961. auto sumi = ac + av + 'x';
  2962. auto sumf = ac + av + 1.0;
  2963. static_assert(is_same<int, decltype(ac)>::value == true, "");
  2964. static_assert(is_same<int, decltype(av)>::value == true, "");
  2965. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  2966. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  2967. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  2968. return (sumf > 0.0) ? sumi : add(c, v);
  2969. }
  2970. }
  2971. namespace test_noexcept
  2972. {
  2973. int f() { return 0; }
  2974. int g() noexcept { return 0; }
  2975. static_assert(noexcept(f()) == false, "");
  2976. static_assert(noexcept(g()) == true, "");
  2977. }
  2978. namespace test_constexpr
  2979. {
  2980. template < typename CharT >
  2981. unsigned long constexpr
  2982. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  2983. {
  2984. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  2985. }
  2986. template < typename CharT >
  2987. unsigned long constexpr
  2988. strlen_c(const CharT *const s) noexcept
  2989. {
  2990. return strlen_c_r(s, 0UL);
  2991. }
  2992. static_assert(strlen_c("") == 0UL, "");
  2993. static_assert(strlen_c("1") == 1UL, "");
  2994. static_assert(strlen_c("example") == 7UL, "");
  2995. static_assert(strlen_c("another\0example") == 7UL, "");
  2996. }
  2997. namespace test_rvalue_references
  2998. {
  2999. template < int N >
  3000. struct answer
  3001. {
  3002. static constexpr int value = N;
  3003. };
  3004. answer<1> f(int&) { return answer<1>(); }
  3005. answer<2> f(const int&) { return answer<2>(); }
  3006. answer<3> f(int&&) { return answer<3>(); }
  3007. void
  3008. test()
  3009. {
  3010. int i = 0;
  3011. const int c = 0;
  3012. static_assert(decltype(f(i))::value == 1, "");
  3013. static_assert(decltype(f(c))::value == 2, "");
  3014. static_assert(decltype(f(0))::value == 3, "");
  3015. }
  3016. }
  3017. namespace test_uniform_initialization
  3018. {
  3019. struct test
  3020. {
  3021. static const int zero {};
  3022. static const int one {1};
  3023. };
  3024. static_assert(test::zero == 0, "");
  3025. static_assert(test::one == 1, "");
  3026. }
  3027. namespace test_lambdas
  3028. {
  3029. void
  3030. test1()
  3031. {
  3032. auto lambda1 = [](){};
  3033. auto lambda2 = lambda1;
  3034. lambda1();
  3035. lambda2();
  3036. }
  3037. int
  3038. test2()
  3039. {
  3040. auto a = [](int i, int j){ return i + j; }(1, 2);
  3041. auto b = []() -> int { return '0'; }();
  3042. auto c = [=](){ return a + b; }();
  3043. auto d = [&](){ return c; }();
  3044. auto e = [a, &b](int x) mutable {
  3045. const auto identity = [](int y){ return y; };
  3046. for (auto i = 0; i < a; ++i)
  3047. a += b--;
  3048. return x + identity(a + b);
  3049. }(0);
  3050. return a + b + c + d + e;
  3051. }
  3052. int
  3053. test3()
  3054. {
  3055. const auto nullary = [](){ return 0; };
  3056. const auto unary = [](int x){ return x; };
  3057. using nullary_t = decltype(nullary);
  3058. using unary_t = decltype(unary);
  3059. const auto higher1st = [](nullary_t f){ return f(); };
  3060. const auto higher2nd = [unary](nullary_t f1){
  3061. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  3062. };
  3063. return higher1st(nullary) + higher2nd(nullary)(unary);
  3064. }
  3065. }
  3066. namespace test_variadic_templates
  3067. {
  3068. template <int...>
  3069. struct sum;
  3070. template <int N0, int... N1toN>
  3071. struct sum<N0, N1toN...>
  3072. {
  3073. static constexpr auto value = N0 + sum<N1toN...>::value;
  3074. };
  3075. template <>
  3076. struct sum<>
  3077. {
  3078. static constexpr auto value = 0;
  3079. };
  3080. static_assert(sum<>::value == 0, "");
  3081. static_assert(sum<1>::value == 1, "");
  3082. static_assert(sum<23>::value == 23, "");
  3083. static_assert(sum<1, 2>::value == 3, "");
  3084. static_assert(sum<5, 5, 11>::value == 21, "");
  3085. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  3086. }
  3087. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3088. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  3089. // because of this.
  3090. namespace test_template_alias_sfinae
  3091. {
  3092. struct foo {};
  3093. template<typename T>
  3094. using member = typename T::member_type;
  3095. template<typename T>
  3096. void func(...) {}
  3097. template<typename T>
  3098. void func(member<T>*) {}
  3099. void test();
  3100. void test() { func<foo>(0); }
  3101. }
  3102. } // namespace cxx11
  3103. #endif // __cplusplus >= 201103L
  3104. _ACEOF
  3105. if ac_fn_cxx_try_compile "$LINENO"; then :
  3106. eval $cachevar=yes
  3107. else
  3108. eval $cachevar=no
  3109. fi
  3110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3111. CXX="$ac_save_CXX"
  3112. fi
  3113. eval ac_res=\$$cachevar
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3115. $as_echo "$ac_res" >&6; }
  3116. if eval test x\$$cachevar = xyes; then
  3117. CXX="$CXX $switch"
  3118. if test -n "$CXXCPP" ; then
  3119. CXXCPP="$CXXCPP $switch"
  3120. fi
  3121. ac_success=yes
  3122. break
  3123. fi
  3124. done
  3125. if test x$ac_success = xyes; then
  3126. break
  3127. fi
  3128. done
  3129. fi
  3130. ac_ext=cpp
  3131. ac_cpp='$CXXCPP $CPPFLAGS'
  3132. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3133. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3134. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3135. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3136. if test x$ac_success = xno; then
  3137. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3138. fi
  3139. fi
  3140. if test x$ac_success = xno; then
  3141. HAVE_CXX11=0
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3143. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  3144. else
  3145. HAVE_CXX11=1
  3146. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  3147. fi
  3148. ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=false
  3149. ac_ext=cpp
  3150. ac_cpp='$CXXCPP $CPPFLAGS'
  3151. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3152. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3153. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3154. ac_success=no
  3155. if test x$ac_success = xno; then
  3156. for alternative in ${ax_cxx_compile_alternatives}; do
  3157. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  3158. cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
  3160. $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
  3161. if eval \${$cachevar+:} false; then :
  3162. $as_echo_n "(cached) " >&6
  3163. else
  3164. ac_save_CXX="$CXX"
  3165. CXX="$CXX $switch"
  3166. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end build/confdefs.h. */
  3168. // If the compiler admits that it is not ready for C++11, why torture it?
  3169. // Hopefully, this will speed up the test.
  3170. #ifndef __cplusplus
  3171. #error "This is not a C++ compiler"
  3172. #elif __cplusplus < 201103L
  3173. #error "This is not a C++11 compiler"
  3174. #else
  3175. namespace cxx11
  3176. {
  3177. namespace test_static_assert
  3178. {
  3179. template <typename T>
  3180. struct check
  3181. {
  3182. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3183. };
  3184. }
  3185. namespace test_final_override
  3186. {
  3187. struct Base
  3188. {
  3189. virtual void f() {}
  3190. };
  3191. struct Derived : public Base
  3192. {
  3193. virtual void f() override {}
  3194. };
  3195. }
  3196. namespace test_double_right_angle_brackets
  3197. {
  3198. template < typename T >
  3199. struct check {};
  3200. typedef check<void> single_type;
  3201. typedef check<check<void>> double_type;
  3202. typedef check<check<check<void>>> triple_type;
  3203. typedef check<check<check<check<void>>>> quadruple_type;
  3204. }
  3205. namespace test_decltype
  3206. {
  3207. int
  3208. f()
  3209. {
  3210. int a = 1;
  3211. decltype(a) b = 2;
  3212. return a + b;
  3213. }
  3214. }
  3215. namespace test_type_deduction
  3216. {
  3217. template < typename T1, typename T2 >
  3218. struct is_same
  3219. {
  3220. static const bool value = false;
  3221. };
  3222. template < typename T >
  3223. struct is_same<T, T>
  3224. {
  3225. static const bool value = true;
  3226. };
  3227. template < typename T1, typename T2 >
  3228. auto
  3229. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  3230. {
  3231. return a1 + a2;
  3232. }
  3233. int
  3234. test(const int c, volatile int v)
  3235. {
  3236. static_assert(is_same<int, decltype(0)>::value == true, "");
  3237. static_assert(is_same<int, decltype(c)>::value == false, "");
  3238. static_assert(is_same<int, decltype(v)>::value == false, "");
  3239. auto ac = c;
  3240. auto av = v;
  3241. auto sumi = ac + av + 'x';
  3242. auto sumf = ac + av + 1.0;
  3243. static_assert(is_same<int, decltype(ac)>::value == true, "");
  3244. static_assert(is_same<int, decltype(av)>::value == true, "");
  3245. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  3246. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  3247. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  3248. return (sumf > 0.0) ? sumi : add(c, v);
  3249. }
  3250. }
  3251. namespace test_noexcept
  3252. {
  3253. int f() { return 0; }
  3254. int g() noexcept { return 0; }
  3255. static_assert(noexcept(f()) == false, "");
  3256. static_assert(noexcept(g()) == true, "");
  3257. }
  3258. namespace test_constexpr
  3259. {
  3260. template < typename CharT >
  3261. unsigned long constexpr
  3262. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  3263. {
  3264. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  3265. }
  3266. template < typename CharT >
  3267. unsigned long constexpr
  3268. strlen_c(const CharT *const s) noexcept
  3269. {
  3270. return strlen_c_r(s, 0UL);
  3271. }
  3272. static_assert(strlen_c("") == 0UL, "");
  3273. static_assert(strlen_c("1") == 1UL, "");
  3274. static_assert(strlen_c("example") == 7UL, "");
  3275. static_assert(strlen_c("another\0example") == 7UL, "");
  3276. }
  3277. namespace test_rvalue_references
  3278. {
  3279. template < int N >
  3280. struct answer
  3281. {
  3282. static constexpr int value = N;
  3283. };
  3284. answer<1> f(int&) { return answer<1>(); }
  3285. answer<2> f(const int&) { return answer<2>(); }
  3286. answer<3> f(int&&) { return answer<3>(); }
  3287. void
  3288. test()
  3289. {
  3290. int i = 0;
  3291. const int c = 0;
  3292. static_assert(decltype(f(i))::value == 1, "");
  3293. static_assert(decltype(f(c))::value == 2, "");
  3294. static_assert(decltype(f(0))::value == 3, "");
  3295. }
  3296. }
  3297. namespace test_uniform_initialization
  3298. {
  3299. struct test
  3300. {
  3301. static const int zero {};
  3302. static const int one {1};
  3303. };
  3304. static_assert(test::zero == 0, "");
  3305. static_assert(test::one == 1, "");
  3306. }
  3307. namespace test_lambdas
  3308. {
  3309. void
  3310. test1()
  3311. {
  3312. auto lambda1 = [](){};
  3313. auto lambda2 = lambda1;
  3314. lambda1();
  3315. lambda2();
  3316. }
  3317. int
  3318. test2()
  3319. {
  3320. auto a = [](int i, int j){ return i + j; }(1, 2);
  3321. auto b = []() -> int { return '0'; }();
  3322. auto c = [=](){ return a + b; }();
  3323. auto d = [&](){ return c; }();
  3324. auto e = [a, &b](int x) mutable {
  3325. const auto identity = [](int y){ return y; };
  3326. for (auto i = 0; i < a; ++i)
  3327. a += b--;
  3328. return x + identity(a + b);
  3329. }(0);
  3330. return a + b + c + d + e;
  3331. }
  3332. int
  3333. test3()
  3334. {
  3335. const auto nullary = [](){ return 0; };
  3336. const auto unary = [](int x){ return x; };
  3337. using nullary_t = decltype(nullary);
  3338. using unary_t = decltype(unary);
  3339. const auto higher1st = [](nullary_t f){ return f(); };
  3340. const auto higher2nd = [unary](nullary_t f1){
  3341. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  3342. };
  3343. return higher1st(nullary) + higher2nd(nullary)(unary);
  3344. }
  3345. }
  3346. namespace test_variadic_templates
  3347. {
  3348. template <int...>
  3349. struct sum;
  3350. template <int N0, int... N1toN>
  3351. struct sum<N0, N1toN...>
  3352. {
  3353. static constexpr auto value = N0 + sum<N1toN...>::value;
  3354. };
  3355. template <>
  3356. struct sum<>
  3357. {
  3358. static constexpr auto value = 0;
  3359. };
  3360. static_assert(sum<>::value == 0, "");
  3361. static_assert(sum<1>::value == 1, "");
  3362. static_assert(sum<23>::value == 23, "");
  3363. static_assert(sum<1, 2>::value == 3, "");
  3364. static_assert(sum<5, 5, 11>::value == 21, "");
  3365. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  3366. }
  3367. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3368. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  3369. // because of this.
  3370. namespace test_template_alias_sfinae
  3371. {
  3372. struct foo {};
  3373. template<typename T>
  3374. using member = typename T::member_type;
  3375. template<typename T>
  3376. void func(...) {}
  3377. template<typename T>
  3378. void func(member<T>*) {}
  3379. void test();
  3380. void test() { func<foo>(0); }
  3381. }
  3382. } // namespace cxx11
  3383. #endif // __cplusplus >= 201103L
  3384. // If the compiler admits that it is not ready for C++14, why torture it?
  3385. // Hopefully, this will speed up the test.
  3386. #ifndef __cplusplus
  3387. #error "This is not a C++ compiler"
  3388. #elif __cplusplus < 201402L
  3389. #error "This is not a C++14 compiler"
  3390. #else
  3391. namespace cxx14
  3392. {
  3393. namespace test_polymorphic_lambdas
  3394. {
  3395. int
  3396. test()
  3397. {
  3398. const auto lambda = [](auto&&... args){
  3399. const auto istiny = [](auto x){
  3400. return (sizeof(x) == 1UL) ? 1 : 0;
  3401. };
  3402. const int aretiny[] = { istiny(args)... };
  3403. return aretiny[0];
  3404. };
  3405. return lambda(1, 1L, 1.0f, '1');
  3406. }
  3407. }
  3408. namespace test_binary_literals
  3409. {
  3410. constexpr auto ivii = 0b0000000000101010;
  3411. static_assert(ivii == 42, "wrong value");
  3412. }
  3413. namespace test_generalized_constexpr
  3414. {
  3415. template < typename CharT >
  3416. constexpr unsigned long
  3417. strlen_c(const CharT *const s) noexcept
  3418. {
  3419. auto length = 0UL;
  3420. for (auto p = s; *p; ++p)
  3421. ++length;
  3422. return length;
  3423. }
  3424. static_assert(strlen_c("") == 0UL, "");
  3425. static_assert(strlen_c("x") == 1UL, "");
  3426. static_assert(strlen_c("test") == 4UL, "");
  3427. static_assert(strlen_c("another\0test") == 7UL, "");
  3428. }
  3429. namespace test_lambda_init_capture
  3430. {
  3431. int
  3432. test()
  3433. {
  3434. auto x = 0;
  3435. const auto lambda1 = [a = x](int b){ return a + b; };
  3436. const auto lambda2 = [a = lambda1(x)](){ return a; };
  3437. return lambda2();
  3438. }
  3439. }
  3440. namespace test_digit_separators
  3441. {
  3442. constexpr auto ten_million = 100'000'000;
  3443. static_assert(ten_million == 100000000, "");
  3444. }
  3445. namespace test_return_type_deduction
  3446. {
  3447. auto f(int& x) { return x; }
  3448. decltype(auto) g(int& x) { return x; }
  3449. template < typename T1, typename T2 >
  3450. struct is_same
  3451. {
  3452. static constexpr auto value = false;
  3453. };
  3454. template < typename T >
  3455. struct is_same<T, T>
  3456. {
  3457. static constexpr auto value = true;
  3458. };
  3459. int
  3460. test()
  3461. {
  3462. auto x = 0;
  3463. static_assert(is_same<int, decltype(f(x))>::value, "");
  3464. static_assert(is_same<int&, decltype(g(x))>::value, "");
  3465. return x;
  3466. }
  3467. }
  3468. } // namespace cxx14
  3469. #endif // __cplusplus >= 201402L
  3470. _ACEOF
  3471. if ac_fn_cxx_try_compile "$LINENO"; then :
  3472. eval $cachevar=yes
  3473. else
  3474. eval $cachevar=no
  3475. fi
  3476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3477. CXX="$ac_save_CXX"
  3478. fi
  3479. eval ac_res=\$$cachevar
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3481. $as_echo "$ac_res" >&6; }
  3482. if eval test x\$$cachevar = xyes; then
  3483. CXX="$CXX $switch"
  3484. if test -n "$CXXCPP" ; then
  3485. CXXCPP="$CXXCPP $switch"
  3486. fi
  3487. ac_success=yes
  3488. break
  3489. fi
  3490. done
  3491. if test x$ac_success = xyes; then
  3492. break
  3493. fi
  3494. done
  3495. fi
  3496. ac_ext=cpp
  3497. ac_cpp='$CXXCPP $CPPFLAGS'
  3498. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3499. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3500. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3501. if test x$ax_cxx_compile_cxx14_required = xtrue; then
  3502. if test x$ac_success = xno; then
  3503. as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
  3504. fi
  3505. fi
  3506. if test x$ac_success = xno; then
  3507. HAVE_CXX14=0
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
  3509. $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
  3510. else
  3511. HAVE_CXX14=1
  3512. $as_echo "#define HAVE_CXX14 1" >>build/confdefs.h
  3513. fi
  3514. if test "${cross_compiling-x}" = "x"
  3515. then
  3516. cat << 'EOF' >&2
  3517. configure: error:
  3518. This system does not appear to have a working C compiler.
  3519. A working C compiler is required to compile Wraith.
  3520. EOF
  3521. exit 1
  3522. fi
  3523. if test -n "$GXX"; then
  3524. CXXFLAGS="$CXXFLAGS"
  3525. fi
  3526. #CXX_RPATH_CHECK
  3527. #checkpoint
  3528. cat >confcache <<\_ACEOF
  3529. # This file is a shell script that caches the results of configure
  3530. # tests run on this system so they can be shared between configure
  3531. # scripts and configure runs, see configure's option --config-cache.
  3532. # It is not useful on other systems. If it contains results you don't
  3533. # want to keep, you may remove or edit it.
  3534. #
  3535. # build/config.status only pays attention to the cache file if you give it
  3536. # the --recheck option to rerun configure.
  3537. #
  3538. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3539. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3540. # following values.
  3541. _ACEOF
  3542. # The following way of writing the cache mishandles newlines in values,
  3543. # but we know of no workaround that is simple, portable, and efficient.
  3544. # So, we kill variables containing newlines.
  3545. # Ultrix sh set writes to stderr and can't be redirected directly,
  3546. # and sets the high bit in the cache file unless we assign to the vars.
  3547. (
  3548. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3549. eval ac_val=\$$ac_var
  3550. case $ac_val in #(
  3551. *${as_nl}*)
  3552. case $ac_var in #(
  3553. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3554. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3555. esac
  3556. case $ac_var in #(
  3557. _ | IFS | as_nl) ;; #(
  3558. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3559. *) { eval $ac_var=; unset $ac_var;} ;;
  3560. esac ;;
  3561. esac
  3562. done
  3563. (set) 2>&1 |
  3564. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3565. *${as_nl}ac_space=\ *)
  3566. # `set' does not quote correctly, so add quotes: double-quote
  3567. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3568. sed -n \
  3569. "s/'/'\\\\''/g;
  3570. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3571. ;; #(
  3572. *)
  3573. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3574. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3575. ;;
  3576. esac |
  3577. sort
  3578. ) |
  3579. sed '
  3580. /^ac_cv_env_/b end
  3581. t clear
  3582. :clear
  3583. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3584. t end
  3585. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3586. :end' >>confcache
  3587. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3588. if test -w "$cache_file"; then
  3589. if test "x$cache_file" != "x/dev/null"; then
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3591. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3592. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3593. cat confcache >"$cache_file"
  3594. else
  3595. case $cache_file in #(
  3596. */* | ?:*)
  3597. mv -f confcache "$cache_file"$$ &&
  3598. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3599. *)
  3600. mv -f confcache "$cache_file" ;;
  3601. esac
  3602. fi
  3603. fi
  3604. else
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3606. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3607. fi
  3608. fi
  3609. rm -f confcache
  3610. # Speedup compile
  3611. if test -n "$GXX" && test -z "$no_wall"; then
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3613. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3614. if ${egg_cv_var_ccwall+:} false; then :
  3615. $as_echo_n "(cached) " >&6
  3616. else
  3617. ac_old_CXXFLAGS="$CXXFLAGS"
  3618. CXXFLAGS="$CXXFLAGS -Wall"
  3619. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3620. /* end build/confdefs.h. */
  3621. int main ()
  3622. {
  3623. return(0);
  3624. }
  3625. _ACEOF
  3626. if ac_fn_cxx_try_compile "$LINENO"; then :
  3627. egg_cv_var_ccwall="yes"
  3628. else
  3629. egg_cv_var_ccwall="no"
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. CXXFLAGS="$ac_old_CXXFLAGS"
  3633. fi
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3635. $as_echo "$egg_cv_var_ccwall" >&6; }
  3636. if test "$egg_cv_var_ccwall" = "yes"; then
  3637. CXXFLAGS="$CXXFLAGS -Wall"
  3638. fi
  3639. fi
  3640. if test -n "$GXX" && test -z "$no_pipe"; then
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3642. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3643. if ${egg_cv_var_ccpipe+:} false; then :
  3644. $as_echo_n "(cached) " >&6
  3645. else
  3646. ac_old_CXX="$CXX"
  3647. CXX="$CXX -pipe"
  3648. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3649. /* end build/confdefs.h. */
  3650. int main ()
  3651. {
  3652. return(0);
  3653. }
  3654. _ACEOF
  3655. if ac_fn_cxx_try_compile "$LINENO"; then :
  3656. egg_cv_var_ccpipe="yes"
  3657. else
  3658. egg_cv_var_ccpipe="no"
  3659. fi
  3660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3661. CXX="$ac_old_CXX"
  3662. fi
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3664. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3665. if test "$egg_cv_var_ccpipe" = "yes"; then
  3666. CXX="$CXX -pipe"
  3667. fi
  3668. fi
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3670. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3671. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. ac_ext=cpp
  3675. ac_cpp='$CXXCPP $CPPFLAGS'
  3676. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3677. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3678. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3679. ac_saved_flags="$CXXFLAGS"
  3680. CXXFLAGS="-Werror -fcolor-diagnostics"
  3681. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3682. /* end build/confdefs.h. */
  3683. int
  3684. main ()
  3685. {
  3686. ;
  3687. return 0;
  3688. }
  3689. _ACEOF
  3690. if ac_fn_cxx_try_compile "$LINENO"; then :
  3691. ax_cv_prog_cc_colordiagnostics="yes"
  3692. else
  3693. ax_cv_prog_cc_colordiagnostics="no"
  3694. fi
  3695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3696. CXXFLAGS="$ac_saved_flags"
  3697. ac_ext=cpp
  3698. ac_cpp='$CXXCPP $CPPFLAGS'
  3699. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3700. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3701. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3704. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3705. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3706. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3707. elif [ -n "" ]; then
  3708. cat << 'EOF' >&2
  3709. configure: error:
  3710. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3711. This compile flag is required.
  3712. EOF
  3713. exit 1
  3714. fi
  3715. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3717. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3718. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3719. $as_echo_n "(cached) " >&6
  3720. else
  3721. ac_ext=cpp
  3722. ac_cpp='$CXXCPP $CPPFLAGS'
  3723. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3724. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3725. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3726. ac_saved_flags="$CXXFLAGS"
  3727. CXXFLAGS="-Werror -Winvalid-source-encoding"
  3728. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end build/confdefs.h. */
  3730. int
  3731. main ()
  3732. {
  3733. ;
  3734. return 0;
  3735. }
  3736. _ACEOF
  3737. if ac_fn_cxx_try_compile "$LINENO"; then :
  3738. ax_cv_prog_cc_invalid_source_encoding="yes"
  3739. else
  3740. ax_cv_prog_cc_invalid_source_encoding="no"
  3741. fi
  3742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3743. CXXFLAGS="$ac_saved_flags"
  3744. ac_ext=cpp
  3745. ac_cpp='$CXXCPP $CPPFLAGS'
  3746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3749. fi
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3751. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3752. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3753. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3754. elif [ -n "" ]; then
  3755. cat << 'EOF' >&2
  3756. configure: error:
  3757. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3758. This compile flag is required.
  3759. EOF
  3760. exit 1
  3761. fi
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-narrowing" >&5
  3763. $as_echo_n "checking whether the compiler understands -Wno-narrowing... " >&6; }
  3764. if ${ax_cv_prog_cc_nonarrowing+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. ac_ext=cpp
  3768. ac_cpp='$CXXCPP $CPPFLAGS'
  3769. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3770. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3771. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3772. ac_saved_flags="$CXXFLAGS"
  3773. CXXFLAGS="-Werror -Wnarrowing"
  3774. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end build/confdefs.h. */
  3776. int
  3777. main ()
  3778. {
  3779. ;
  3780. return 0;
  3781. }
  3782. _ACEOF
  3783. if ac_fn_cxx_try_compile "$LINENO"; then :
  3784. ax_cv_prog_cc_nonarrowing="yes"
  3785. else
  3786. ax_cv_prog_cc_nonarrowing="no"
  3787. fi
  3788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3789. CXXFLAGS="$ac_saved_flags"
  3790. ac_ext=cpp
  3791. ac_cpp='$CXXCPP $CPPFLAGS'
  3792. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3793. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3794. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3795. fi
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_nonarrowing" >&5
  3797. $as_echo "$ax_cv_prog_cc_nonarrowing" >&6; }
  3798. if [ "$ax_cv_prog_cc_nonarrowing" = "yes" ]; then
  3799. CXXFLAGS="$CXXFLAGS -Wno-narrowing"
  3800. elif [ -n "" ]; then
  3801. cat << 'EOF' >&2
  3802. configure: error:
  3803. Your OS or C++ compiler does not support -Wno-narrowing.
  3804. This compile flag is required.
  3805. EOF
  3806. exit 1
  3807. fi
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-cast-function-type" >&5
  3809. $as_echo_n "checking whether the compiler understands -Wno-cast-function-type... " >&6; }
  3810. if ${ax_cv_prog_cc_no_cast_function_type+:} false; then :
  3811. $as_echo_n "(cached) " >&6
  3812. else
  3813. ac_ext=cpp
  3814. ac_cpp='$CXXCPP $CPPFLAGS'
  3815. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3816. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3817. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3818. ac_saved_flags="$CXXFLAGS"
  3819. CXXFLAGS="-Werror -Wcast-function-type"
  3820. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3821. /* end build/confdefs.h. */
  3822. int
  3823. main ()
  3824. {
  3825. ;
  3826. return 0;
  3827. }
  3828. _ACEOF
  3829. if ac_fn_cxx_try_compile "$LINENO"; then :
  3830. ax_cv_prog_cc_no_cast_function_type="yes"
  3831. else
  3832. ax_cv_prog_cc_no_cast_function_type="no"
  3833. fi
  3834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3835. CXXFLAGS="$ac_saved_flags"
  3836. ac_ext=cpp
  3837. ac_cpp='$CXXCPP $CPPFLAGS'
  3838. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3839. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3840. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3841. fi
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_no_cast_function_type" >&5
  3843. $as_echo "$ax_cv_prog_cc_no_cast_function_type" >&6; }
  3844. if [ "$ax_cv_prog_cc_no_cast_function_type" = "yes" ]; then
  3845. CXXFLAGS="$CXXFLAGS -Wno-cast-function-type"
  3846. elif [ -n "" ]; then
  3847. cat << 'EOF' >&2
  3848. configure: error:
  3849. Your OS or C++ compiler does not support -Wno-cast-function-type.
  3850. This compile flag is required.
  3851. EOF
  3852. exit 1
  3853. fi
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wimplicit-fallthrough=0" >&5
  3855. $as_echo_n "checking whether the compiler understands -Wimplicit-fallthrough=0... " >&6; }
  3856. if ${ax_cv_prog_cc_wimplicit_fallthrough+:} false; then :
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. ac_ext=cpp
  3860. ac_cpp='$CXXCPP $CPPFLAGS'
  3861. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3862. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3863. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3864. ac_saved_flags="$CXXFLAGS"
  3865. CXXFLAGS="-Werror -Wimplicit-fallthrough=0"
  3866. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3867. /* end build/confdefs.h. */
  3868. int
  3869. main ()
  3870. {
  3871. ;
  3872. return 0;
  3873. }
  3874. _ACEOF
  3875. if ac_fn_cxx_try_compile "$LINENO"; then :
  3876. ax_cv_prog_cc_wimplicit_fallthrough="yes"
  3877. else
  3878. ax_cv_prog_cc_wimplicit_fallthrough="no"
  3879. fi
  3880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3881. CXXFLAGS="$ac_saved_flags"
  3882. ac_ext=cpp
  3883. ac_cpp='$CXXCPP $CPPFLAGS'
  3884. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3885. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3886. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3887. fi
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wimplicit_fallthrough" >&5
  3889. $as_echo "$ax_cv_prog_cc_wimplicit_fallthrough" >&6; }
  3890. if [ "$ax_cv_prog_cc_wimplicit_fallthrough" = "yes" ]; then
  3891. CXXFLAGS="$CXXFLAGS -Wimplicit-fallthrough=0"
  3892. elif [ -n "" ]; then
  3893. cat << 'EOF' >&2
  3894. configure: error:
  3895. Your OS or C++ compiler does not support -Wimplicit-fallthrough=0.
  3896. This compile flag is required.
  3897. EOF
  3898. exit 1
  3899. fi
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3901. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3902. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3903. $as_echo_n "(cached) " >&6
  3904. else
  3905. ac_ext=cpp
  3906. ac_cpp='$CXXCPP $CPPFLAGS'
  3907. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3908. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3909. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3910. ac_saved_flags="$CXXFLAGS"
  3911. CXXFLAGS="-Werror -fstack-protector"
  3912. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3913. /* end build/confdefs.h. */
  3914. int
  3915. main ()
  3916. {
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. if ac_fn_cxx_try_compile "$LINENO"; then :
  3922. ax_cv_prog_cc_stackprotector="yes"
  3923. else
  3924. ax_cv_prog_cc_stackprotector="no"
  3925. fi
  3926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3927. CXXFLAGS="$ac_saved_flags"
  3928. ac_ext=cpp
  3929. ac_cpp='$CXXCPP $CPPFLAGS'
  3930. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3931. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3932. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3933. fi
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3935. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3936. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3937. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3938. elif [ -n "" ]; then
  3939. cat << 'EOF' >&2
  3940. configure: error:
  3941. Your OS or C++ compiler does not support -fstack-protector.
  3942. This compile flag is required.
  3943. EOF
  3944. exit 1
  3945. fi
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3947. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3948. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3949. $as_echo_n "(cached) " >&6
  3950. else
  3951. ac_ext=cpp
  3952. ac_cpp='$CXXCPP $CPPFLAGS'
  3953. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3954. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3955. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3956. ac_saved_flags="$CXXFLAGS"
  3957. CXXFLAGS="-Werror -fstack-protector-strong"
  3958. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3959. /* end build/confdefs.h. */
  3960. int
  3961. main ()
  3962. {
  3963. ;
  3964. return 0;
  3965. }
  3966. _ACEOF
  3967. if ac_fn_cxx_try_compile "$LINENO"; then :
  3968. ax_cv_prog_cc_stackprotectorstrong="yes"
  3969. else
  3970. ax_cv_prog_cc_stackprotectorstrong="no"
  3971. fi
  3972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3973. CXXFLAGS="$ac_saved_flags"
  3974. ac_ext=cpp
  3975. ac_cpp='$CXXCPP $CPPFLAGS'
  3976. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3977. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3978. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3979. fi
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3981. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3982. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3983. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3984. elif [ -n "" ]; then
  3985. cat << 'EOF' >&2
  3986. configure: error:
  3987. Your OS or C++ compiler does not support -fstack-protector-strong.
  3988. This compile flag is required.
  3989. EOF
  3990. exit 1
  3991. fi
  3992. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3993. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3994. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3995. LDFLAGS="${LDFLAGS} -fstack-protector"
  3996. fi
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3998. $as_echo_n "checking whether the compiler understands -Og... " >&6; }
  3999. if ${ax_cv_prog_cc_Og+:} false; then :
  4000. $as_echo_n "(cached) " >&6
  4001. else
  4002. ac_ext=cpp
  4003. ac_cpp='$CXXCPP $CPPFLAGS'
  4004. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4005. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4006. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4007. ac_saved_flags="$CXXFLAGS"
  4008. CXXFLAGS="-Werror -Og"
  4009. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4010. /* end build/confdefs.h. */
  4011. int
  4012. main ()
  4013. {
  4014. ;
  4015. return 0;
  4016. }
  4017. _ACEOF
  4018. if ac_fn_cxx_try_compile "$LINENO"; then :
  4019. ax_cv_prog_cc_Og="yes"
  4020. else
  4021. ax_cv_prog_cc_Og="no"
  4022. fi
  4023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4024. CXXFLAGS="$ac_saved_flags"
  4025. ac_ext=cpp
  4026. ac_cpp='$CXXCPP $CPPFLAGS'
  4027. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4028. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4029. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4030. fi
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  4032. $as_echo "$ax_cv_prog_cc_Og" >&6; }
  4033. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  4034. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  4035. elif [ -n "" ]; then
  4036. cat << 'EOF' >&2
  4037. configure: error:
  4038. Your OS or C++ compiler does not support -Og.
  4039. This compile flag is required.
  4040. EOF
  4041. exit 1
  4042. fi
  4043. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  4044. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  4045. fi
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  4047. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  4048. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  4049. $as_echo_n "(cached) " >&6
  4050. else
  4051. ac_ext=cpp
  4052. ac_cpp='$CXXCPP $CPPFLAGS'
  4053. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4054. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4055. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4056. ac_saved_flags="$CXXFLAGS"
  4057. CXXFLAGS="-Werror -fstack-protector-all"
  4058. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4059. /* end build/confdefs.h. */
  4060. int
  4061. main ()
  4062. {
  4063. ;
  4064. return 0;
  4065. }
  4066. _ACEOF
  4067. if ac_fn_cxx_try_compile "$LINENO"; then :
  4068. ax_cv_prog_cc_stackprotectorall="yes"
  4069. else
  4070. ax_cv_prog_cc_stackprotectorall="no"
  4071. fi
  4072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4073. CXXFLAGS="$ac_saved_flags"
  4074. ac_ext=cpp
  4075. ac_cpp='$CXXCPP $CPPFLAGS'
  4076. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4077. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4078. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4079. fi
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  4081. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  4082. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  4083. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  4084. elif [ -n "" ]; then
  4085. cat << 'EOF' >&2
  4086. configure: error:
  4087. Your OS or C++ compiler does not support -fstack-protector-all.
  4088. This compile flag is required.
  4089. EOF
  4090. exit 1
  4091. fi
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const" >&5
  4093. $as_echo_n "checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const... " >&6; }
  4094. if ${ax_cv_prog_cc_wsuggest_attribute+:} false; then :
  4095. $as_echo_n "(cached) " >&6
  4096. else
  4097. ac_ext=cpp
  4098. ac_cpp='$CXXCPP $CPPFLAGS'
  4099. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4100. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4101. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4102. ac_saved_flags="$CXXFLAGS"
  4103. CXXFLAGS="-Werror -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  4104. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4105. /* end build/confdefs.h. */
  4106. int
  4107. main ()
  4108. {
  4109. ;
  4110. return 0;
  4111. }
  4112. _ACEOF
  4113. if ac_fn_cxx_try_compile "$LINENO"; then :
  4114. ax_cv_prog_cc_wsuggest_attribute="yes"
  4115. else
  4116. ax_cv_prog_cc_wsuggest_attribute="no"
  4117. fi
  4118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4119. CXXFLAGS="$ac_saved_flags"
  4120. ac_ext=cpp
  4121. ac_cpp='$CXXCPP $CPPFLAGS'
  4122. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4123. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4124. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4125. fi
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wsuggest_attribute" >&5
  4127. $as_echo "$ax_cv_prog_cc_wsuggest_attribute" >&6; }
  4128. if [ "$ax_cv_prog_cc_wsuggest_attribute" = "yes" ]; then
  4129. DEBCXXFLAGS="$DEBCXXFLAGS -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  4130. elif [ -n "" ]; then
  4131. cat << 'EOF' >&2
  4132. configure: error:
  4133. Your OS or C++ compiler does not support -Wsuggest-attribute=pure -Wsuggest-attribute=const.
  4134. This compile flag is required.
  4135. EOF
  4136. exit 1
  4137. fi
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wconditional-uninitialized" >&5
  4139. $as_echo_n "checking whether the compiler understands -Wconditional-uninitialized... " >&6; }
  4140. if ${ax_cv_prog_cc_w_conditional_uninitialized+:} false; then :
  4141. $as_echo_n "(cached) " >&6
  4142. else
  4143. ac_ext=cpp
  4144. ac_cpp='$CXXCPP $CPPFLAGS'
  4145. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4146. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4147. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4148. ac_saved_flags="$CXXFLAGS"
  4149. CXXFLAGS="-Werror -Wconditional-uninitialized"
  4150. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4151. /* end build/confdefs.h. */
  4152. int
  4153. main ()
  4154. {
  4155. ;
  4156. return 0;
  4157. }
  4158. _ACEOF
  4159. if ac_fn_cxx_try_compile "$LINENO"; then :
  4160. ax_cv_prog_cc_w_conditional_uninitialized="yes"
  4161. else
  4162. ax_cv_prog_cc_w_conditional_uninitialized="no"
  4163. fi
  4164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4165. CXXFLAGS="$ac_saved_flags"
  4166. ac_ext=cpp
  4167. ac_cpp='$CXXCPP $CPPFLAGS'
  4168. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4169. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4170. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4171. fi
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_w_conditional_uninitialized" >&5
  4173. $as_echo "$ax_cv_prog_cc_w_conditional_uninitialized" >&6; }
  4174. if [ "$ax_cv_prog_cc_w_conditional_uninitialized" = "yes" ]; then
  4175. DEBCXXFLAGS="$DEBCXXFLAGS -Wconditional-uninitialized"
  4176. elif [ -n "" ]; then
  4177. cat << 'EOF' >&2
  4178. configure: error:
  4179. Your OS or C++ compiler does not support -Wconditional-uninitialized.
  4180. This compile flag is required.
  4181. EOF
  4182. exit 1
  4183. fi
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
  4185. $as_echo_n "checking whether the compiler understands -static-libstdc++... " >&6; }
  4186. if ${ax_cv_prog_cc_static_libstdcxx+:} false; then :
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. ac_ext=cpp
  4190. ac_cpp='$CXXCPP $CPPFLAGS'
  4191. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4192. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4193. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4194. ac_saved_flags="$CXXFLAGS"
  4195. CXXFLAGS="-Werror -static-libstdc++"
  4196. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4197. /* end build/confdefs.h. */
  4198. int
  4199. main ()
  4200. {
  4201. ;
  4202. return 0;
  4203. }
  4204. _ACEOF
  4205. if ac_fn_cxx_try_compile "$LINENO"; then :
  4206. ax_cv_prog_cc_static_libstdcxx="yes"
  4207. else
  4208. ax_cv_prog_cc_static_libstdcxx="no"
  4209. fi
  4210. rm -f core conftest.err conftest.$ac_objext 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. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libstdcxx" >&5
  4219. $as_echo "$ax_cv_prog_cc_static_libstdcxx" >&6; }
  4220. if [ "$ax_cv_prog_cc_static_libstdcxx" = "yes" ]; then
  4221. LDFLAGS="$LDFLAGS -static-libstdc++"
  4222. elif [ -n "" ]; then
  4223. cat << 'EOF' >&2
  4224. configure: error:
  4225. Your OS or C++ compiler does not support -static-libstdc++.
  4226. This compile flag is required.
  4227. EOF
  4228. exit 1
  4229. fi
  4230. #CXX_FLAG_CHECK([LDFLAGS], [-static-libgcc], [static_libgcc])
  4231. if [ "${ax_cv_prog_cc_static_libstdcxx}" = "yes" ]; then
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libstdc++" >&5
  4233. $as_echo_n "checking for static libstdc++... " >&6; }
  4234. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4235. /* end build/confdefs.h. */
  4236. int
  4237. main ()
  4238. {
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. if ac_fn_cxx_try_link "$LINENO"; then :
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  4245. $as_echo "OK" >&6; }
  4246. else
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  4248. $as_echo "not found." >&6; }
  4249. as_fn_error 1 "Static libstdc++ is rquired to build." "$LINENO" 5
  4250. fi
  4251. rm -f core conftest.err conftest.$ac_objext \
  4252. conftest$ac_exeext conftest.$ac_ext
  4253. fi
  4254. CCDEPMODE=gcc
  4255. num=`$CXX -dumpversion | sed "s/^\([^.]*\).*/\1/" `
  4256. if [ "$num" -ge "3" ]; then
  4257. CCDEPMODE=gcc3
  4258. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -Wno-format-y2k"
  4259. GCC3_CXXFLAGS="-Woverloaded-virtual"
  4260. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute -Wwrite-strings -Wformat -Wformat-security"
  4261. fi
  4262. #checkpoint
  4263. cat >confcache <<\_ACEOF
  4264. # This file is a shell script that caches the results of configure
  4265. # tests run on this system so they can be shared between configure
  4266. # scripts and configure runs, see configure's option --config-cache.
  4267. # It is not useful on other systems. If it contains results you don't
  4268. # want to keep, you may remove or edit it.
  4269. #
  4270. # build/config.status only pays attention to the cache file if you give it
  4271. # the --recheck option to rerun configure.
  4272. #
  4273. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4274. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4275. # following values.
  4276. _ACEOF
  4277. # The following way of writing the cache mishandles newlines in values,
  4278. # but we know of no workaround that is simple, portable, and efficient.
  4279. # So, we kill variables containing newlines.
  4280. # Ultrix sh set writes to stderr and can't be redirected directly,
  4281. # and sets the high bit in the cache file unless we assign to the vars.
  4282. (
  4283. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4284. eval ac_val=\$$ac_var
  4285. case $ac_val in #(
  4286. *${as_nl}*)
  4287. case $ac_var in #(
  4288. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4289. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4290. esac
  4291. case $ac_var in #(
  4292. _ | IFS | as_nl) ;; #(
  4293. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4294. *) { eval $ac_var=; unset $ac_var;} ;;
  4295. esac ;;
  4296. esac
  4297. done
  4298. (set) 2>&1 |
  4299. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4300. *${as_nl}ac_space=\ *)
  4301. # `set' does not quote correctly, so add quotes: double-quote
  4302. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4303. sed -n \
  4304. "s/'/'\\\\''/g;
  4305. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4306. ;; #(
  4307. *)
  4308. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4309. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4310. ;;
  4311. esac |
  4312. sort
  4313. ) |
  4314. sed '
  4315. /^ac_cv_env_/b end
  4316. t clear
  4317. :clear
  4318. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4319. t end
  4320. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4321. :end' >>confcache
  4322. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4323. if test -w "$cache_file"; then
  4324. if test "x$cache_file" != "x/dev/null"; then
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4326. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4327. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4328. cat confcache >"$cache_file"
  4329. else
  4330. case $cache_file in #(
  4331. */* | ?:*)
  4332. mv -f confcache "$cache_file"$$ &&
  4333. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4334. *)
  4335. mv -f confcache "$cache_file" ;;
  4336. esac
  4337. fi
  4338. fi
  4339. else
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4341. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4342. fi
  4343. fi
  4344. rm -f confcache
  4345. # Checks for programs
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4347. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4348. set x ${MAKE-make}
  4349. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4350. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4351. $as_echo_n "(cached) " >&6
  4352. else
  4353. cat >conftest.make <<\_ACEOF
  4354. SHELL = /bin/sh
  4355. all:
  4356. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4357. _ACEOF
  4358. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4359. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4360. *@@@%%%=?*=@@@%%%*)
  4361. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4362. *)
  4363. eval ac_cv_prog_make_${ac_make}_set=no;;
  4364. esac
  4365. rm -f conftest.make
  4366. fi
  4367. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4369. $as_echo "yes" >&6; }
  4370. SET_MAKE=
  4371. else
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4373. $as_echo "no" >&6; }
  4374. SET_MAKE="MAKE=${MAKE-make}"
  4375. fi
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4377. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4378. if ${ac_cv_path_SED+:} false; then :
  4379. $as_echo_n "(cached) " >&6
  4380. else
  4381. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4382. for ac_i in 1 2 3 4 5 6 7; do
  4383. ac_script="$ac_script$as_nl$ac_script"
  4384. done
  4385. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4386. { ac_script=; unset ac_script;}
  4387. if test -z "$SED"; then
  4388. ac_path_SED_found=false
  4389. # Loop through the user's path and test for each of PROGNAME-LIST
  4390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4391. for as_dir in $PATH
  4392. do
  4393. IFS=$as_save_IFS
  4394. test -z "$as_dir" && as_dir=.
  4395. for ac_prog in sed gsed; do
  4396. for ac_exec_ext in '' $ac_executable_extensions; do
  4397. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4398. as_fn_executable_p "$ac_path_SED" || continue
  4399. # Check for GNU ac_path_SED and select it if it is found.
  4400. # Check for GNU $ac_path_SED
  4401. case `"$ac_path_SED" --version 2>&1` in
  4402. *GNU*)
  4403. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4404. *)
  4405. ac_count=0
  4406. $as_echo_n 0123456789 >"conftest.in"
  4407. while :
  4408. do
  4409. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4410. mv "conftest.tmp" "conftest.in"
  4411. cp "conftest.in" "conftest.nl"
  4412. $as_echo '' >> "conftest.nl"
  4413. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4414. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4415. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4416. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4417. # Best one so far, save it but keep looking for a better one
  4418. ac_cv_path_SED="$ac_path_SED"
  4419. ac_path_SED_max=$ac_count
  4420. fi
  4421. # 10*(2^10) chars as input seems more than enough
  4422. test $ac_count -gt 10 && break
  4423. done
  4424. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4425. esac
  4426. $ac_path_SED_found && break 3
  4427. done
  4428. done
  4429. done
  4430. IFS=$as_save_IFS
  4431. if test -z "$ac_cv_path_SED"; then
  4432. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4433. fi
  4434. else
  4435. ac_cv_path_SED=$SED
  4436. fi
  4437. fi
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4439. $as_echo "$ac_cv_path_SED" >&6; }
  4440. SED="$ac_cv_path_SED"
  4441. rm -f conftest.sed
  4442. cat << 'EOF' > conftest.head
  4443. a
  4444. b
  4445. c
  4446. EOF
  4447. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  4448. do
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  4450. $as_echo_n "checking whether $ac_prog works... " >&6; }
  4451. if ${ac_cv_prog_HEAD_1+:} false; then :
  4452. $as_echo_n "(cached) " >&6
  4453. else
  4454. if test -n "$HEAD_1"
  4455. then
  4456. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  4457. else
  4458. if test "`cat conftest.head | $ac_prog`" = "a";
  4459. then
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4461. $as_echo "yes" >&6; }
  4462. ac_cv_prog_HEAD_1=$ac_prog
  4463. else
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4465. $as_echo "no" >&6; }
  4466. fi
  4467. fi
  4468. fi
  4469. test -n "$ac_cv_prog_HEAD_1" && break
  4470. done
  4471. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  4472. then
  4473. cat << 'EOF' >&2
  4474. configure: error:
  4475. This system seems to lack a working 'head -1' or 'head -n 1' command.
  4476. A working 'head -1' (or equivalent) command is required to compile Wraith.
  4477. EOF
  4478. exit 1
  4479. fi
  4480. rm -f conftest.head
  4481. HEAD_1=$ac_cv_prog_HEAD_1
  4482. # awk is needed for Tcl library and header checks, and eggdrop version subst
  4483. for ac_prog in gawk mawk nawk awk
  4484. do
  4485. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4486. set dummy $ac_prog; ac_word=$2
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4488. $as_echo_n "checking for $ac_word... " >&6; }
  4489. if ${ac_cv_prog_AWK+:} false; then :
  4490. $as_echo_n "(cached) " >&6
  4491. else
  4492. if test -n "$AWK"; then
  4493. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4494. else
  4495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4496. for as_dir in $PATH
  4497. do
  4498. IFS=$as_save_IFS
  4499. test -z "$as_dir" && as_dir=.
  4500. for ac_exec_ext in '' $ac_executable_extensions; do
  4501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4502. ac_cv_prog_AWK="$ac_prog"
  4503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4504. break 2
  4505. fi
  4506. done
  4507. done
  4508. IFS=$as_save_IFS
  4509. fi
  4510. fi
  4511. AWK=$ac_cv_prog_AWK
  4512. if test -n "$AWK"; then
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4514. $as_echo "$AWK" >&6; }
  4515. else
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4517. $as_echo "no" >&6; }
  4518. fi
  4519. test -n "$AWK" && break
  4520. done
  4521. if test "${AWK-x}" = "x"
  4522. then
  4523. cat << 'EOF' >&2
  4524. configure: error:
  4525. This system seems to lack a working 'awk' command.
  4526. A working 'awk' command is required to compile Wraith.
  4527. EOF
  4528. exit 1
  4529. fi
  4530. # basename is needed for Tcl library and header checks
  4531. # Extract the first word of "basename", so it can be a program name with args.
  4532. set dummy basename; ac_word=$2
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4534. $as_echo_n "checking for $ac_word... " >&6; }
  4535. if ${ac_cv_prog_BASENAME+:} false; then :
  4536. $as_echo_n "(cached) " >&6
  4537. else
  4538. if test -n "$BASENAME"; then
  4539. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  4540. else
  4541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4542. for as_dir in $PATH
  4543. do
  4544. IFS=$as_save_IFS
  4545. test -z "$as_dir" && as_dir=.
  4546. for ac_exec_ext in '' $ac_executable_extensions; do
  4547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4548. ac_cv_prog_BASENAME="basename"
  4549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4550. break 2
  4551. fi
  4552. done
  4553. done
  4554. IFS=$as_save_IFS
  4555. fi
  4556. fi
  4557. BASENAME=$ac_cv_prog_BASENAME
  4558. if test -n "$BASENAME"; then
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  4560. $as_echo "$BASENAME" >&6; }
  4561. else
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4563. $as_echo "no" >&6; }
  4564. fi
  4565. if test "${BASENAME-x}" = "x"
  4566. then
  4567. cat << 'EOF' >&2
  4568. configure: error:
  4569. This system seems to lack a working 'basename' command.
  4570. A working 'basename' command is required to compile Wraith.
  4571. EOF
  4572. exit 1
  4573. fi
  4574. # Extract the first word of "objcopy", so it can be a program name with args.
  4575. set dummy objcopy; ac_word=$2
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4577. $as_echo_n "checking for $ac_word... " >&6; }
  4578. if ${ac_cv_prog_OBJCOPY+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. if test -n "$OBJCOPY"; then
  4582. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  4583. else
  4584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4585. for as_dir in $PATH
  4586. do
  4587. IFS=$as_save_IFS
  4588. test -z "$as_dir" && as_dir=.
  4589. for ac_exec_ext in '' $ac_executable_extensions; do
  4590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4591. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  4592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4593. break 2
  4594. fi
  4595. done
  4596. done
  4597. IFS=$as_save_IFS
  4598. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  4599. fi
  4600. fi
  4601. OBJCOPY=$ac_cv_prog_OBJCOPY
  4602. if test -n "$OBJCOPY"; then
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  4604. $as_echo "$OBJCOPY" >&6; }
  4605. else
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4607. $as_echo "no" >&6; }
  4608. fi
  4609. # Extract the first word of "strip", so it can be a program name with args.
  4610. set dummy strip; ac_word=$2
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4612. $as_echo_n "checking for $ac_word... " >&6; }
  4613. if ${ac_cv_prog_STRIP+:} false; then :
  4614. $as_echo_n "(cached) " >&6
  4615. else
  4616. if test -n "$STRIP"; then
  4617. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4618. else
  4619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4620. for as_dir in $PATH
  4621. do
  4622. IFS=$as_save_IFS
  4623. test -z "$as_dir" && as_dir=.
  4624. for ac_exec_ext in '' $ac_executable_extensions; do
  4625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4626. ac_cv_prog_STRIP="strip"
  4627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4628. break 2
  4629. fi
  4630. done
  4631. done
  4632. IFS=$as_save_IFS
  4633. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  4634. fi
  4635. fi
  4636. STRIP=$ac_cv_prog_STRIP
  4637. if test -n "$STRIP"; then
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4639. $as_echo "$STRIP" >&6; }
  4640. else
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4642. $as_echo "no" >&6; }
  4643. fi
  4644. # Extract the first word of "gdiff", so it can be a program name with args.
  4645. set dummy gdiff; ac_word=$2
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4647. $as_echo_n "checking for $ac_word... " >&6; }
  4648. if ${ac_cv_prog_DIFF+:} false; then :
  4649. $as_echo_n "(cached) " >&6
  4650. else
  4651. if test -n "$DIFF"; then
  4652. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  4653. else
  4654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4655. for as_dir in $PATH
  4656. do
  4657. IFS=$as_save_IFS
  4658. test -z "$as_dir" && as_dir=.
  4659. for ac_exec_ext in '' $ac_executable_extensions; do
  4660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4661. ac_cv_prog_DIFF="gdiff"
  4662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4663. break 2
  4664. fi
  4665. done
  4666. done
  4667. IFS=$as_save_IFS
  4668. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  4669. fi
  4670. fi
  4671. DIFF=$ac_cv_prog_DIFF
  4672. if test -n "$DIFF"; then
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  4674. $as_echo "$DIFF" >&6; }
  4675. else
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4677. $as_echo "no" >&6; }
  4678. fi
  4679. # Extract the first word of "uname", so it can be a program name with args.
  4680. set dummy uname; ac_word=$2
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if ${ac_cv_prog_UNAME+:} false; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$UNAME"; then
  4687. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4696. ac_cv_prog_UNAME="uname"
  4697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. UNAME=$ac_cv_prog_UNAME
  4706. if test -n "$UNAME"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4708. $as_echo "$UNAME" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. # Test the os and set the module linking settings
  4714. USE_STATIC=yes
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  4716. $as_echo_n "checking system type... " >&6; }
  4717. if ${egg_cv_var_system_type+:} false; then :
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. egg_cv_var_system_type=`$UNAME -s`
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  4723. $as_echo "$egg_cv_var_system_type" >&6; }
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  4725. $as_echo_n "checking system release... " >&6; }
  4726. if ${egg_cv_var_system_release+:} false; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. egg_cv_var_system_release=`$UNAME -r`
  4730. fi
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  4732. $as_echo "$egg_cv_var_system_release" >&6; }
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  4734. $as_echo_n "checking system machine... " >&6; }
  4735. if ${egg_cv_var_system_machine+:} false; then :
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. egg_cv_var_system_machine=`$UNAME -m`
  4739. fi
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  4741. $as_echo "$egg_cv_var_system_machine" >&6; }
  4742. BUILDOS="$egg_cv_var_system_type"
  4743. BUILDARCH="$egg_cv_var_system_machine"
  4744. case "$egg_cv_var_system_type" in
  4745. BSD/OS)
  4746. ;;
  4747. IRIX)
  4748. ;;
  4749. HP-UX)
  4750. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  4751. ;;
  4752. Ultrix)
  4753. SHELL=/bin/sh5
  4754. ;;
  4755. SINIX*)
  4756. ;;
  4757. BeOS)
  4758. ;;
  4759. Linux)
  4760. ;;
  4761. Lynx)
  4762. ;;
  4763. QNX)
  4764. ;;
  4765. OSF1)
  4766. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4767. V*)
  4768. if test "$AWK" = "gawk"
  4769. then
  4770. AWK=awk
  4771. fi
  4772. ;;
  4773. 1.0|1.1|1.2)
  4774. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4775. ;;
  4776. 1.*)
  4777. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4778. ;;
  4779. *)
  4780. ;;
  4781. esac
  4782. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  4783. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  4784. ;;
  4785. SunOS)
  4786. SUNOS="yes"
  4787. USE_STATIC="no"
  4788. ;;
  4789. Darwin)
  4790. USE_STATIC="no"
  4791. ;;
  4792. *BSD)
  4793. # FreeBSD/OpenBSD/NetBSD
  4794. ;;
  4795. *)
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4797. $as_echo_n "checking if system is Mach based... " >&6; }
  4798. if test -r /mach
  4799. then
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4801. $as_echo "yes" >&6; }
  4802. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  4803. else
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4805. $as_echo "no" >&6; }
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4807. $as_echo_n "checking if system is QNX... " >&6; }
  4808. if test -r /cmds
  4809. then
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4811. $as_echo "yes" >&6; }
  4812. else
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4814. $as_echo "no" >&6; }
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4816. $as_echo "Something unknown!" >&6; }
  4817. fi
  4818. fi
  4819. ;;
  4820. esac
  4821. # Check for IPv6 support
  4822. #EGG_IPV6_SUPPORTED
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4824. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4825. # Check whether --enable-ipv6 was given.
  4826. if test "${enable_ipv6+set}" = set; then :
  4827. enableval=$enable_ipv6;
  4828. enable_ipv6=$enableval
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4830. $as_echo "$enableval" >&6; }
  4831. else
  4832. # default if not given is ENABLED
  4833. if test "x$enableval" = "x"; then
  4834. enableval="yes"
  4835. fi
  4836. enable_ipv6=$enableval
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4838. $as_echo "$enableval" >&6; }
  4839. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4840. fi
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4842. $as_echo_n "checking for socklen_t... " >&6; }
  4843. if ${egg_cv_socklen_t+:} false; then :
  4844. $as_echo_n "(cached) " >&6
  4845. else
  4846. if test "$cross_compiling" = yes; then :
  4847. egg_cv_socklen_t=no
  4848. else
  4849. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4850. /* end build/confdefs.h. */
  4851. #include <unistd.h>
  4852. #include <sys/types.h>
  4853. #include <sys/socket.h>
  4854. #include <netinet/in.h>
  4855. #include <arpa/inet.h>
  4856. int main()
  4857. {
  4858. socklen_t test = sizeof(int);
  4859. return 0;
  4860. }
  4861. _ACEOF
  4862. if ac_fn_cxx_try_run "$LINENO"; then :
  4863. egg_cv_socklen_t=yes
  4864. else
  4865. egg_cv_socklen_t=no
  4866. fi
  4867. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4868. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4869. fi
  4870. fi
  4871. if test "$egg_cv_socklen_t" = "yes"; then
  4872. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4874. $as_echo "yes" >&6; }
  4875. else
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4877. $as_echo "no" >&6; }
  4878. fi
  4879. # Check for inconsistent random() functions
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4881. $as_echo_n "checking for random limit... " >&6; }
  4882. case "$egg_cv_var_system_type" in
  4883. SunOS) RMAX=0x7FFFFFFF
  4884. ;;
  4885. *) RMAX=RAND_MAX
  4886. ;;
  4887. esac
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4889. $as_echo "$RMAX" >&6; }
  4890. cat >>build/confdefs.h <<_ACEOF
  4891. #define RANDOM_MAX $RMAX
  4892. _ACEOF
  4893. # Create static binaries
  4894. if test "$USE_STATIC" = "yes"
  4895. then
  4896. if test -n "$GXX"
  4897. then
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4899. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4900. if ${egg_cv_var_ccstatic+:} false; then :
  4901. $as_echo_n "(cached) " >&6
  4902. else
  4903. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4904. /* end build/confdefs.h. */
  4905. int
  4906. main ()
  4907. {
  4908. ;
  4909. return 0;
  4910. }
  4911. _ACEOF
  4912. if ac_fn_cxx_try_compile "$LINENO"; then :
  4913. egg_cv_var_ccstatic="yes"
  4914. else
  4915. egg_cv_var_ccstatic="no"
  4916. fi
  4917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4918. fi
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4920. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4921. if ! test "$egg_cv_var_ccstatic" = "yes"
  4922. then
  4923. cat << 'EOF' >&2
  4924. configure: error:
  4925. Your OS or C++ compiler does not support -static.
  4926. This compile flag is required for the botpack on this OS.
  4927. EOF
  4928. exit 1
  4929. fi
  4930. fi
  4931. STATIC="-static"
  4932. else
  4933. STATIC=""
  4934. fi
  4935. #checkpoint
  4936. cat >confcache <<\_ACEOF
  4937. # This file is a shell script that caches the results of configure
  4938. # tests run on this system so they can be shared between configure
  4939. # scripts and configure runs, see configure's option --config-cache.
  4940. # It is not useful on other systems. If it contains results you don't
  4941. # want to keep, you may remove or edit it.
  4942. #
  4943. # build/config.status only pays attention to the cache file if you give it
  4944. # the --recheck option to rerun configure.
  4945. #
  4946. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4947. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4948. # following values.
  4949. _ACEOF
  4950. # The following way of writing the cache mishandles newlines in values,
  4951. # but we know of no workaround that is simple, portable, and efficient.
  4952. # So, we kill variables containing newlines.
  4953. # Ultrix sh set writes to stderr and can't be redirected directly,
  4954. # and sets the high bit in the cache file unless we assign to the vars.
  4955. (
  4956. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4957. eval ac_val=\$$ac_var
  4958. case $ac_val in #(
  4959. *${as_nl}*)
  4960. case $ac_var in #(
  4961. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4962. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4963. esac
  4964. case $ac_var in #(
  4965. _ | IFS | as_nl) ;; #(
  4966. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4967. *) { eval $ac_var=; unset $ac_var;} ;;
  4968. esac ;;
  4969. esac
  4970. done
  4971. (set) 2>&1 |
  4972. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4973. *${as_nl}ac_space=\ *)
  4974. # `set' does not quote correctly, so add quotes: double-quote
  4975. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4976. sed -n \
  4977. "s/'/'\\\\''/g;
  4978. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4979. ;; #(
  4980. *)
  4981. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4982. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4983. ;;
  4984. esac |
  4985. sort
  4986. ) |
  4987. sed '
  4988. /^ac_cv_env_/b end
  4989. t clear
  4990. :clear
  4991. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4992. t end
  4993. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4994. :end' >>confcache
  4995. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4996. if test -w "$cache_file"; then
  4997. if test "x$cache_file" != "x/dev/null"; then
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4999. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5000. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5001. cat confcache >"$cache_file"
  5002. else
  5003. case $cache_file in #(
  5004. */* | ?:*)
  5005. mv -f confcache "$cache_file"$$ &&
  5006. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5007. *)
  5008. mv -f confcache "$cache_file" ;;
  5009. esac
  5010. fi
  5011. fi
  5012. else
  5013. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5014. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5015. fi
  5016. fi
  5017. rm -f confcache
  5018. # Checks for system libraries
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  5020. $as_echo_n "checking for socket in -lsocket... " >&6; }
  5021. if ${ac_cv_lib_socket_socket+:} false; then :
  5022. $as_echo_n "(cached) " >&6
  5023. else
  5024. ac_check_lib_save_LIBS=$LIBS
  5025. LIBS="-lsocket $LIBS"
  5026. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5027. /* end build/confdefs.h. */
  5028. /* Override any GCC internal prototype to avoid an error.
  5029. Use char because int might match the return type of a GCC
  5030. builtin and then its argument prototype would still apply. */
  5031. #ifdef __cplusplus
  5032. extern "C"
  5033. #endif
  5034. char socket ();
  5035. int
  5036. main ()
  5037. {
  5038. return socket ();
  5039. ;
  5040. return 0;
  5041. }
  5042. _ACEOF
  5043. if ac_fn_cxx_try_link "$LINENO"; then :
  5044. ac_cv_lib_socket_socket=yes
  5045. else
  5046. ac_cv_lib_socket_socket=no
  5047. fi
  5048. rm -f core conftest.err conftest.$ac_objext \
  5049. conftest$ac_exeext conftest.$ac_ext
  5050. LIBS=$ac_check_lib_save_LIBS
  5051. fi
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  5053. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  5054. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  5055. cat >>build/confdefs.h <<_ACEOF
  5056. #define HAVE_LIBSOCKET 1
  5057. _ACEOF
  5058. LIBS="-lsocket $LIBS"
  5059. fi
  5060. # AC_CHECK_LIB(nsl, connect)
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  5062. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  5063. if ${ac_cv_lib_dl_dlopen+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. ac_check_lib_save_LIBS=$LIBS
  5067. LIBS="-ldl $LIBS"
  5068. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5069. /* end build/confdefs.h. */
  5070. /* Override any GCC internal prototype to avoid an error.
  5071. Use char because int might match the return type of a GCC
  5072. builtin and then its argument prototype would still apply. */
  5073. #ifdef __cplusplus
  5074. extern "C"
  5075. #endif
  5076. char dlopen ();
  5077. int
  5078. main ()
  5079. {
  5080. return dlopen ();
  5081. ;
  5082. return 0;
  5083. }
  5084. _ACEOF
  5085. if ac_fn_cxx_try_link "$LINENO"; then :
  5086. ac_cv_lib_dl_dlopen=yes
  5087. else
  5088. ac_cv_lib_dl_dlopen=no
  5089. fi
  5090. rm -f core conftest.err conftest.$ac_objext \
  5091. conftest$ac_exeext conftest.$ac_ext
  5092. LIBS=$ac_check_lib_save_LIBS
  5093. fi
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  5095. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  5096. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  5097. cat >>build/confdefs.h <<_ACEOF
  5098. #define HAVE_LIBDL 1
  5099. _ACEOF
  5100. LIBS="-ldl $LIBS"
  5101. fi
  5102. if test "$SUNOS" = "yes"; then
  5103. # For suns without yp
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  5105. $as_echo_n "checking for main in -ldl... " >&6; }
  5106. if ${ac_cv_lib_dl_main+:} false; then :
  5107. $as_echo_n "(cached) " >&6
  5108. else
  5109. ac_check_lib_save_LIBS=$LIBS
  5110. LIBS="-ldl $LIBS"
  5111. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5112. /* end build/confdefs.h. */
  5113. int
  5114. main ()
  5115. {
  5116. return main ();
  5117. ;
  5118. return 0;
  5119. }
  5120. _ACEOF
  5121. if ac_fn_cxx_try_link "$LINENO"; then :
  5122. ac_cv_lib_dl_main=yes
  5123. else
  5124. ac_cv_lib_dl_main=no
  5125. fi
  5126. rm -f core conftest.err conftest.$ac_objext \
  5127. conftest$ac_exeext conftest.$ac_ext
  5128. LIBS=$ac_check_lib_save_LIBS
  5129. fi
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  5131. $as_echo "$ac_cv_lib_dl_main" >&6; }
  5132. if test "x$ac_cv_lib_dl_main" = xyes; then :
  5133. cat >>build/confdefs.h <<_ACEOF
  5134. #define HAVE_LIBDL 1
  5135. _ACEOF
  5136. LIBS="-ldl $LIBS"
  5137. fi
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  5139. $as_echo_n "checking for main in -lsocket... " >&6; }
  5140. if ${ac_cv_lib_socket_main+:} false; then :
  5141. $as_echo_n "(cached) " >&6
  5142. else
  5143. ac_check_lib_save_LIBS=$LIBS
  5144. LIBS="-lsocket $LIBS"
  5145. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5146. /* end build/confdefs.h. */
  5147. int
  5148. main ()
  5149. {
  5150. return main ();
  5151. ;
  5152. return 0;
  5153. }
  5154. _ACEOF
  5155. if ac_fn_cxx_try_link "$LINENO"; then :
  5156. ac_cv_lib_socket_main=yes
  5157. else
  5158. ac_cv_lib_socket_main=no
  5159. fi
  5160. rm -f core conftest.err conftest.$ac_objext \
  5161. conftest$ac_exeext conftest.$ac_ext
  5162. LIBS=$ac_check_lib_save_LIBS
  5163. fi
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  5165. $as_echo "$ac_cv_lib_socket_main" >&6; }
  5166. if test "x$ac_cv_lib_socket_main" = xyes; then :
  5167. cat >>build/confdefs.h <<_ACEOF
  5168. #define HAVE_LIBSOCKET 1
  5169. _ACEOF
  5170. LIBS="-lsocket $LIBS"
  5171. fi
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  5173. $as_echo_n "checking for main in -lnsl... " >&6; }
  5174. if ${ac_cv_lib_nsl_main+:} false; then :
  5175. $as_echo_n "(cached) " >&6
  5176. else
  5177. ac_check_lib_save_LIBS=$LIBS
  5178. LIBS="-lnsl $LIBS"
  5179. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5180. /* end build/confdefs.h. */
  5181. int
  5182. main ()
  5183. {
  5184. return main ();
  5185. ;
  5186. return 0;
  5187. }
  5188. _ACEOF
  5189. if ac_fn_cxx_try_link "$LINENO"; then :
  5190. ac_cv_lib_nsl_main=yes
  5191. else
  5192. ac_cv_lib_nsl_main=no
  5193. fi
  5194. rm -f core conftest.err conftest.$ac_objext \
  5195. conftest$ac_exeext conftest.$ac_ext
  5196. LIBS=$ac_check_lib_save_LIBS
  5197. fi
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  5199. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  5200. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  5201. cat >>build/confdefs.h <<_ACEOF
  5202. #define HAVE_LIBNSL 1
  5203. _ACEOF
  5204. LIBS="-lnsl $LIBS"
  5205. fi
  5206. fi
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5208. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5209. if ${ac_cv_path_GREP+:} false; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -z "$GREP"; then
  5213. ac_path_GREP_found=false
  5214. # Loop through the user's path and test for each of PROGNAME-LIST
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_prog in grep ggrep; do
  5221. for ac_exec_ext in '' $ac_executable_extensions; do
  5222. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5223. as_fn_executable_p "$ac_path_GREP" || continue
  5224. # Check for GNU ac_path_GREP and select it if it is found.
  5225. # Check for GNU $ac_path_GREP
  5226. case `"$ac_path_GREP" --version 2>&1` in
  5227. *GNU*)
  5228. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5229. *)
  5230. ac_count=0
  5231. $as_echo_n 0123456789 >"conftest.in"
  5232. while :
  5233. do
  5234. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5235. mv "conftest.tmp" "conftest.in"
  5236. cp "conftest.in" "conftest.nl"
  5237. $as_echo 'GREP' >> "conftest.nl"
  5238. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5239. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5240. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5241. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5242. # Best one so far, save it but keep looking for a better one
  5243. ac_cv_path_GREP="$ac_path_GREP"
  5244. ac_path_GREP_max=$ac_count
  5245. fi
  5246. # 10*(2^10) chars as input seems more than enough
  5247. test $ac_count -gt 10 && break
  5248. done
  5249. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5250. esac
  5251. $ac_path_GREP_found && break 3
  5252. done
  5253. done
  5254. done
  5255. IFS=$as_save_IFS
  5256. if test -z "$ac_cv_path_GREP"; then
  5257. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5258. fi
  5259. else
  5260. ac_cv_path_GREP=$GREP
  5261. fi
  5262. fi
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5264. $as_echo "$ac_cv_path_GREP" >&6; }
  5265. GREP="$ac_cv_path_GREP"
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5267. $as_echo_n "checking for egrep... " >&6; }
  5268. if ${ac_cv_path_EGREP+:} false; then :
  5269. $as_echo_n "(cached) " >&6
  5270. else
  5271. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5272. then ac_cv_path_EGREP="$GREP -E"
  5273. else
  5274. if test -z "$EGREP"; then
  5275. ac_path_EGREP_found=false
  5276. # Loop through the user's path and test for each of PROGNAME-LIST
  5277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5278. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5279. do
  5280. IFS=$as_save_IFS
  5281. test -z "$as_dir" && as_dir=.
  5282. for ac_prog in egrep; do
  5283. for ac_exec_ext in '' $ac_executable_extensions; do
  5284. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5285. as_fn_executable_p "$ac_path_EGREP" || continue
  5286. # Check for GNU ac_path_EGREP and select it if it is found.
  5287. # Check for GNU $ac_path_EGREP
  5288. case `"$ac_path_EGREP" --version 2>&1` in
  5289. *GNU*)
  5290. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5291. *)
  5292. ac_count=0
  5293. $as_echo_n 0123456789 >"conftest.in"
  5294. while :
  5295. do
  5296. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5297. mv "conftest.tmp" "conftest.in"
  5298. cp "conftest.in" "conftest.nl"
  5299. $as_echo 'EGREP' >> "conftest.nl"
  5300. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5301. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5302. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5303. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5304. # Best one so far, save it but keep looking for a better one
  5305. ac_cv_path_EGREP="$ac_path_EGREP"
  5306. ac_path_EGREP_max=$ac_count
  5307. fi
  5308. # 10*(2^10) chars as input seems more than enough
  5309. test $ac_count -gt 10 && break
  5310. done
  5311. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5312. esac
  5313. $ac_path_EGREP_found && break 3
  5314. done
  5315. done
  5316. done
  5317. IFS=$as_save_IFS
  5318. if test -z "$ac_cv_path_EGREP"; then
  5319. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5320. fi
  5321. else
  5322. ac_cv_path_EGREP=$EGREP
  5323. fi
  5324. fi
  5325. fi
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5327. $as_echo "$ac_cv_path_EGREP" >&6; }
  5328. EGREP="$ac_cv_path_EGREP"
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5330. $as_echo_n "checking for ANSI C header files... " >&6; }
  5331. if ${ac_cv_header_stdc+:} false; then :
  5332. $as_echo_n "(cached) " >&6
  5333. else
  5334. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5335. /* end build/confdefs.h. */
  5336. #include <stdlib.h>
  5337. #include <stdarg.h>
  5338. #include <string.h>
  5339. #include <float.h>
  5340. int
  5341. main ()
  5342. {
  5343. ;
  5344. return 0;
  5345. }
  5346. _ACEOF
  5347. if ac_fn_cxx_try_compile "$LINENO"; then :
  5348. ac_cv_header_stdc=yes
  5349. else
  5350. ac_cv_header_stdc=no
  5351. fi
  5352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5353. if test $ac_cv_header_stdc = yes; then
  5354. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5355. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5356. /* end build/confdefs.h. */
  5357. #include <string.h>
  5358. _ACEOF
  5359. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5360. $EGREP "memchr" >/dev/null 2>&1; then :
  5361. else
  5362. ac_cv_header_stdc=no
  5363. fi
  5364. rm -f conftest*
  5365. fi
  5366. if test $ac_cv_header_stdc = yes; then
  5367. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5368. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5369. /* end build/confdefs.h. */
  5370. #include <stdlib.h>
  5371. _ACEOF
  5372. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5373. $EGREP "free" >/dev/null 2>&1; then :
  5374. else
  5375. ac_cv_header_stdc=no
  5376. fi
  5377. rm -f conftest*
  5378. fi
  5379. if test $ac_cv_header_stdc = yes; then
  5380. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5381. if test "$cross_compiling" = yes; then :
  5382. :
  5383. else
  5384. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5385. /* end build/confdefs.h. */
  5386. #include <ctype.h>
  5387. #include <stdlib.h>
  5388. #if ((' ' & 0x0FF) == 0x020)
  5389. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5390. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5391. #else
  5392. # define ISLOWER(c) \
  5393. (('a' <= (c) && (c) <= 'i') \
  5394. || ('j' <= (c) && (c) <= 'r') \
  5395. || ('s' <= (c) && (c) <= 'z'))
  5396. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5397. #endif
  5398. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5399. int
  5400. main ()
  5401. {
  5402. int i;
  5403. for (i = 0; i < 256; i++)
  5404. if (XOR (islower (i), ISLOWER (i))
  5405. || toupper (i) != TOUPPER (i))
  5406. return 2;
  5407. return 0;
  5408. }
  5409. _ACEOF
  5410. if ac_fn_cxx_try_run "$LINENO"; then :
  5411. else
  5412. ac_cv_header_stdc=no
  5413. fi
  5414. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5415. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5416. fi
  5417. fi
  5418. fi
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5420. $as_echo "$ac_cv_header_stdc" >&6; }
  5421. if test $ac_cv_header_stdc = yes; then
  5422. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  5423. fi
  5424. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5425. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5426. inttypes.h stdint.h unistd.h
  5427. do :
  5428. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5429. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5430. "
  5431. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5432. cat >>build/confdefs.h <<_ACEOF
  5433. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5434. _ACEOF
  5435. fi
  5436. done
  5437. LIBELF_DIR="lib/libelf/lib"
  5438. LIBELF_LIB="\$(top_builddir)/${LIBELF_DIR}/libelf.a"
  5439. LIBELF_BUNDLED="${LIBELF_LIB}"
  5440. LIBELF_INCLUDE="-I\$(top_srcdir)/${LIBELF_DIR}"
  5441. for ac_header in gelf.h libelf.h
  5442. do :
  5443. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5444. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5445. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5446. cat >>build/confdefs.h <<_ACEOF
  5447. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5448. _ACEOF
  5449. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  5450. #include \"gelf.h\"
  5451. #include \"libelf.h\"
  5452. "
  5453. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  5454. cat >>build/confdefs.h <<_ACEOF
  5455. #define HAVE_ELF_NOTE 1
  5456. _ACEOF
  5457. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  5459. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  5460. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  5461. $as_echo_n "(cached) " >&6
  5462. else
  5463. ac_check_lib_save_LIBS=$LIBS
  5464. LIBS="-lelf $LIBS"
  5465. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5466. /* end build/confdefs.h. */
  5467. /* Override any GCC internal prototype to avoid an error.
  5468. Use char because int might match the return type of a GCC
  5469. builtin and then its argument prototype would still apply. */
  5470. #ifdef __cplusplus
  5471. extern "C"
  5472. #endif
  5473. char gelf_getehdr ();
  5474. int
  5475. main ()
  5476. {
  5477. return gelf_getehdr ();
  5478. ;
  5479. return 0;
  5480. }
  5481. _ACEOF
  5482. if ac_fn_cxx_try_link "$LINENO"; then :
  5483. ac_cv_lib_elf_gelf_getehdr=yes
  5484. else
  5485. ac_cv_lib_elf_gelf_getehdr=no
  5486. fi
  5487. rm -f core conftest.err conftest.$ac_objext \
  5488. conftest$ac_exeext conftest.$ac_ext
  5489. LIBS=$ac_check_lib_save_LIBS
  5490. fi
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  5492. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  5493. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  5494. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  5495. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  5496. LIBELF_BUNDLED=
  5497. LIBELF_INCLUDE=
  5498. fi
  5499. fi
  5500. fi
  5501. done
  5502. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  5503. # Checks for header files
  5504. ac_header_dirent=no
  5505. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5506. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5508. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  5509. if eval \${$as_ac_Header+:} false; then :
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5513. /* end build/confdefs.h. */
  5514. #include <sys/types.h>
  5515. #include <$ac_hdr>
  5516. int
  5517. main ()
  5518. {
  5519. if ((DIR *) 0)
  5520. return 0;
  5521. ;
  5522. return 0;
  5523. }
  5524. _ACEOF
  5525. if ac_fn_cxx_try_compile "$LINENO"; then :
  5526. eval "$as_ac_Header=yes"
  5527. else
  5528. eval "$as_ac_Header=no"
  5529. fi
  5530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5531. fi
  5532. eval ac_res=\$$as_ac_Header
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5534. $as_echo "$ac_res" >&6; }
  5535. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5536. cat >>build/confdefs.h <<_ACEOF
  5537. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5538. _ACEOF
  5539. ac_header_dirent=$ac_hdr; break
  5540. fi
  5541. done
  5542. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5543. if test $ac_header_dirent = dirent.h; then
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5545. $as_echo_n "checking for library containing opendir... " >&6; }
  5546. if ${ac_cv_search_opendir+:} false; then :
  5547. $as_echo_n "(cached) " >&6
  5548. else
  5549. ac_func_search_save_LIBS=$LIBS
  5550. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5551. /* end build/confdefs.h. */
  5552. /* Override any GCC internal prototype to avoid an error.
  5553. Use char because int might match the return type of a GCC
  5554. builtin and then its argument prototype would still apply. */
  5555. #ifdef __cplusplus
  5556. extern "C"
  5557. #endif
  5558. char opendir ();
  5559. int
  5560. main ()
  5561. {
  5562. return opendir ();
  5563. ;
  5564. return 0;
  5565. }
  5566. _ACEOF
  5567. for ac_lib in '' dir; do
  5568. if test -z "$ac_lib"; then
  5569. ac_res="none required"
  5570. else
  5571. ac_res=-l$ac_lib
  5572. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5573. fi
  5574. if ac_fn_cxx_try_link "$LINENO"; then :
  5575. ac_cv_search_opendir=$ac_res
  5576. fi
  5577. rm -f core conftest.err conftest.$ac_objext \
  5578. conftest$ac_exeext
  5579. if ${ac_cv_search_opendir+:} false; then :
  5580. break
  5581. fi
  5582. done
  5583. if ${ac_cv_search_opendir+:} false; then :
  5584. else
  5585. ac_cv_search_opendir=no
  5586. fi
  5587. rm conftest.$ac_ext
  5588. LIBS=$ac_func_search_save_LIBS
  5589. fi
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5591. $as_echo "$ac_cv_search_opendir" >&6; }
  5592. ac_res=$ac_cv_search_opendir
  5593. if test "$ac_res" != no; then :
  5594. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5595. fi
  5596. else
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5598. $as_echo_n "checking for library containing opendir... " >&6; }
  5599. if ${ac_cv_search_opendir+:} false; then :
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. ac_func_search_save_LIBS=$LIBS
  5603. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5604. /* end build/confdefs.h. */
  5605. /* Override any GCC internal prototype to avoid an error.
  5606. Use char because int might match the return type of a GCC
  5607. builtin and then its argument prototype would still apply. */
  5608. #ifdef __cplusplus
  5609. extern "C"
  5610. #endif
  5611. char opendir ();
  5612. int
  5613. main ()
  5614. {
  5615. return opendir ();
  5616. ;
  5617. return 0;
  5618. }
  5619. _ACEOF
  5620. for ac_lib in '' x; do
  5621. if test -z "$ac_lib"; then
  5622. ac_res="none required"
  5623. else
  5624. ac_res=-l$ac_lib
  5625. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5626. fi
  5627. if ac_fn_cxx_try_link "$LINENO"; then :
  5628. ac_cv_search_opendir=$ac_res
  5629. fi
  5630. rm -f core conftest.err conftest.$ac_objext \
  5631. conftest$ac_exeext
  5632. if ${ac_cv_search_opendir+:} false; then :
  5633. break
  5634. fi
  5635. done
  5636. if ${ac_cv_search_opendir+:} false; then :
  5637. else
  5638. ac_cv_search_opendir=no
  5639. fi
  5640. rm conftest.$ac_ext
  5641. LIBS=$ac_func_search_save_LIBS
  5642. fi
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5644. $as_echo "$ac_cv_search_opendir" >&6; }
  5645. ac_res=$ac_cv_search_opendir
  5646. if test "$ac_res" != no; then :
  5647. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5648. fi
  5649. fi
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5651. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5652. if ${ac_cv_header_sys_wait_h+:} false; then :
  5653. $as_echo_n "(cached) " >&6
  5654. else
  5655. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5656. /* end build/confdefs.h. */
  5657. #include <sys/types.h>
  5658. #include <sys/wait.h>
  5659. #ifndef WEXITSTATUS
  5660. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5661. #endif
  5662. #ifndef WIFEXITED
  5663. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5664. #endif
  5665. int
  5666. main ()
  5667. {
  5668. int s;
  5669. wait (&s);
  5670. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5671. ;
  5672. return 0;
  5673. }
  5674. _ACEOF
  5675. if ac_fn_cxx_try_compile "$LINENO"; then :
  5676. ac_cv_header_sys_wait_h=yes
  5677. else
  5678. ac_cv_header_sys_wait_h=no
  5679. fi
  5680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5681. fi
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5683. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  5684. if test $ac_cv_header_sys_wait_h = yes; then
  5685. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  5686. fi
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5688. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5689. if ${ac_cv_header_time+:} false; then :
  5690. $as_echo_n "(cached) " >&6
  5691. else
  5692. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5693. /* end build/confdefs.h. */
  5694. #include <sys/types.h>
  5695. #include <sys/time.h>
  5696. #include <time.h>
  5697. int
  5698. main ()
  5699. {
  5700. if ((struct tm *) 0)
  5701. return 0;
  5702. ;
  5703. return 0;
  5704. }
  5705. _ACEOF
  5706. if ac_fn_cxx_try_compile "$LINENO"; then :
  5707. ac_cv_header_time=yes
  5708. else
  5709. ac_cv_header_time=no
  5710. fi
  5711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5712. fi
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5714. $as_echo "$ac_cv_header_time" >&6; }
  5715. if test $ac_cv_header_time = yes; then
  5716. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  5717. fi
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5719. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  5720. if ${ac_cv_header_stat_broken+:} false; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5724. /* end build/confdefs.h. */
  5725. #include <sys/types.h>
  5726. #include <sys/stat.h>
  5727. #if defined S_ISBLK && defined S_IFDIR
  5728. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5729. #endif
  5730. #if defined S_ISBLK && defined S_IFCHR
  5731. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5732. #endif
  5733. #if defined S_ISLNK && defined S_IFREG
  5734. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5735. #endif
  5736. #if defined S_ISSOCK && defined S_IFREG
  5737. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5738. #endif
  5739. _ACEOF
  5740. if ac_fn_cxx_try_compile "$LINENO"; then :
  5741. ac_cv_header_stat_broken=no
  5742. else
  5743. ac_cv_header_stat_broken=yes
  5744. fi
  5745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5746. fi
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5748. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5749. if test $ac_cv_header_stat_broken = yes; then
  5750. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  5751. fi
  5752. #checkpoint
  5753. cat >confcache <<\_ACEOF
  5754. # This file is a shell script that caches the results of configure
  5755. # tests run on this system so they can be shared between configure
  5756. # scripts and configure runs, see configure's option --config-cache.
  5757. # It is not useful on other systems. If it contains results you don't
  5758. # want to keep, you may remove or edit it.
  5759. #
  5760. # build/config.status only pays attention to the cache file if you give it
  5761. # the --recheck option to rerun configure.
  5762. #
  5763. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5764. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5765. # following values.
  5766. _ACEOF
  5767. # The following way of writing the cache mishandles newlines in values,
  5768. # but we know of no workaround that is simple, portable, and efficient.
  5769. # So, we kill variables containing newlines.
  5770. # Ultrix sh set writes to stderr and can't be redirected directly,
  5771. # and sets the high bit in the cache file unless we assign to the vars.
  5772. (
  5773. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5774. eval ac_val=\$$ac_var
  5775. case $ac_val in #(
  5776. *${as_nl}*)
  5777. case $ac_var in #(
  5778. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5779. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5780. esac
  5781. case $ac_var in #(
  5782. _ | IFS | as_nl) ;; #(
  5783. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5784. *) { eval $ac_var=; unset $ac_var;} ;;
  5785. esac ;;
  5786. esac
  5787. done
  5788. (set) 2>&1 |
  5789. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5790. *${as_nl}ac_space=\ *)
  5791. # `set' does not quote correctly, so add quotes: double-quote
  5792. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5793. sed -n \
  5794. "s/'/'\\\\''/g;
  5795. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5796. ;; #(
  5797. *)
  5798. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5799. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5800. ;;
  5801. esac |
  5802. sort
  5803. ) |
  5804. sed '
  5805. /^ac_cv_env_/b end
  5806. t clear
  5807. :clear
  5808. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5809. t end
  5810. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5811. :end' >>confcache
  5812. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5813. if test -w "$cache_file"; then
  5814. if test "x$cache_file" != "x/dev/null"; then
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5816. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5817. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5818. cat confcache >"$cache_file"
  5819. else
  5820. case $cache_file in #(
  5821. */* | ?:*)
  5822. mv -f confcache "$cache_file"$$ &&
  5823. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5824. *)
  5825. mv -f confcache "$cache_file" ;;
  5826. esac
  5827. fi
  5828. fi
  5829. else
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5831. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5832. fi
  5833. fi
  5834. rm -f confcache
  5835. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5836. do :
  5837. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5838. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5839. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5840. cat >>build/confdefs.h <<_ACEOF
  5841. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5842. _ACEOF
  5843. fi
  5844. done
  5845. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5846. do :
  5847. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5848. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5849. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5850. cat >>build/confdefs.h <<_ACEOF
  5851. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5852. _ACEOF
  5853. fi
  5854. done
  5855. for ac_header in sys/ptrace.h paths.h sys/prctl.h sys/procctl.h
  5856. do :
  5857. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5858. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5859. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5860. cat >>build/confdefs.h <<_ACEOF
  5861. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5862. _ACEOF
  5863. fi
  5864. done
  5865. #checkpoint
  5866. cat >confcache <<\_ACEOF
  5867. # This file is a shell script that caches the results of configure
  5868. # tests run on this system so they can be shared between configure
  5869. # scripts and configure runs, see configure's option --config-cache.
  5870. # It is not useful on other systems. If it contains results you don't
  5871. # want to keep, you may remove or edit it.
  5872. #
  5873. # build/config.status only pays attention to the cache file if you give it
  5874. # the --recheck option to rerun configure.
  5875. #
  5876. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5877. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5878. # following values.
  5879. _ACEOF
  5880. # The following way of writing the cache mishandles newlines in values,
  5881. # but we know of no workaround that is simple, portable, and efficient.
  5882. # So, we kill variables containing newlines.
  5883. # Ultrix sh set writes to stderr and can't be redirected directly,
  5884. # and sets the high bit in the cache file unless we assign to the vars.
  5885. (
  5886. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5887. eval ac_val=\$$ac_var
  5888. case $ac_val in #(
  5889. *${as_nl}*)
  5890. case $ac_var in #(
  5891. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5892. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5893. esac
  5894. case $ac_var in #(
  5895. _ | IFS | as_nl) ;; #(
  5896. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5897. *) { eval $ac_var=; unset $ac_var;} ;;
  5898. esac ;;
  5899. esac
  5900. done
  5901. (set) 2>&1 |
  5902. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5903. *${as_nl}ac_space=\ *)
  5904. # `set' does not quote correctly, so add quotes: double-quote
  5905. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5906. sed -n \
  5907. "s/'/'\\\\''/g;
  5908. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5909. ;; #(
  5910. *)
  5911. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5912. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5913. ;;
  5914. esac |
  5915. sort
  5916. ) |
  5917. sed '
  5918. /^ac_cv_env_/b end
  5919. t clear
  5920. :clear
  5921. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5922. t end
  5923. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5924. :end' >>confcache
  5925. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5926. if test -w "$cache_file"; then
  5927. if test "x$cache_file" != "x/dev/null"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5929. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5930. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5931. cat confcache >"$cache_file"
  5932. else
  5933. case $cache_file in #(
  5934. */* | ?:*)
  5935. mv -f confcache "$cache_file"$$ &&
  5936. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5937. *)
  5938. mv -f confcache "$cache_file" ;;
  5939. esac
  5940. fi
  5941. fi
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5944. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5945. fi
  5946. fi
  5947. rm -f confcache
  5948. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5949. #AC_CHECK_HEADERS(zlib.h)
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  5951. $as_echo_n "checking for path to OpenSSL... " >&6; }
  5952. # Check whether --with-openssl was given.
  5953. if test "${with_openssl+set}" = set; then :
  5954. withval=$with_openssl; with_openssl_path=$withval
  5955. else
  5956. with_openssl_path=auto
  5957. fi
  5958. cf_openssl_basedir=""
  5959. if test "$with_openssl_path" != "auto"; then
  5960. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  5961. else
  5962. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  5963. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  5964. cf_openssl_basedir="${dirs}"
  5965. break
  5966. fi
  5967. done
  5968. unset dirs
  5969. fi
  5970. if test ! -z "$cf_openssl_basedir"; then
  5971. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  5972. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  5973. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  5974. else
  5975. cf_openssl_basedir=""
  5976. fi
  5977. else
  5978. if test -f "/usr/include/openssl/opensslv.h" ; then
  5979. cf_openssl_basedir="/usr"
  5980. fi
  5981. fi
  5982. SSL_INCLUDES="${SSL_INCLUDES} -DOPENSSL_API_COMPAT=0x10000000L"
  5983. if test ! -z "$cf_openssl_basedir"; then
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  5985. $as_echo "$cf_openssl_basedir" >&6; }
  5986. else
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5988. $as_echo "not found" >&6; }
  5989. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5990. fi
  5991. SSL_LIBDIR="${cf_openssl_basedir}/lib"
  5992. unset cf_openssl_basedir
  5993. save_CXX="$CXX"
  5994. CXX="$CXX $SSL_INCLUDES"
  5995. save_LIBS="$LIBS"
  5996. LIBS="$LIBS $SSL_LIBS"
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5998. $as_echo_n "checking for OpenSSL version... " >&6; }
  5999. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6000. /* end build/confdefs.h. */
  6001. #include <openssl/opensslv.h>
  6002. int
  6003. main ()
  6004. {
  6005. #if !defined(OPENSSL_VERSION_NUMBER)
  6006. #error "Missing openssl version"
  6007. #endif
  6008. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  6009. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  6010. #endif
  6011. ;
  6012. return 0;
  6013. }
  6014. _ACEOF
  6015. if ac_fn_cxx_try_compile "$LINENO"; then :
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  6017. $as_echo "OK" >&6; }
  6018. else
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  6020. $as_echo "too old." >&6; }
  6021. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  6022. fi
  6023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6024. CXX="$CXX $SSL_LIBS"
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  6026. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  6027. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. ac_check_lib_save_LIBS=$LIBS
  6031. LIBS="-lcrypto $LIBS"
  6032. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6033. /* end build/confdefs.h. */
  6034. /* Override any GCC internal prototype to avoid an error.
  6035. Use char because int might match the return type of a GCC
  6036. builtin and then its argument prototype would still apply. */
  6037. #ifdef __cplusplus
  6038. extern "C"
  6039. #endif
  6040. char AES_encrypt ();
  6041. int
  6042. main ()
  6043. {
  6044. return AES_encrypt ();
  6045. ;
  6046. return 0;
  6047. }
  6048. _ACEOF
  6049. if ac_fn_cxx_try_link "$LINENO"; then :
  6050. ac_cv_lib_crypto_AES_encrypt=yes
  6051. else
  6052. ac_cv_lib_crypto_AES_encrypt=no
  6053. fi
  6054. rm -f core conftest.err conftest.$ac_objext \
  6055. conftest$ac_exeext conftest.$ac_ext
  6056. LIBS=$ac_check_lib_save_LIBS
  6057. fi
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  6059. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  6060. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  6061. if test "$USE_STATIC" = "yes"; then
  6062. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  6063. else
  6064. SSL_LIBS="$SSL_LIBS -lcrypto"
  6065. fi
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  6068. $as_echo "not found." >&6; }
  6069. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  6070. fi
  6071. CXX="$save_CXX"
  6072. LIBS="$save_LIBS"
  6073. cat >>build/confdefs.h <<_ACEOF
  6074. #define EGG_SSL_EXT 1
  6075. _ACEOF
  6076. # TCL checks
  6077. # Tcl version to recommend if no Tcl is found, and the site where it can be
  6078. # found for download.
  6079. tclrecommendver="8.5.X"
  6080. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  6081. # Tcl library filename prefixes, suffixes, and search paths.
  6082. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  6083. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  6084. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  6085. tcl7.0 tcl70"
  6086. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  6087. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  6088. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  6089. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  6090. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  6091. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  6092. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  6093. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  6094. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  6095. # Tcl header filenames and search paths.
  6096. tclheadernames="tcl.h"
  6097. tclheaderpaths="$HOME/include $HOME/tcl/include \
  6098. /usr/local/include /usr/include \
  6099. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  6100. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  6101. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  6102. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  6103. /usr/local/pkgs/tcl/include /sys/include \
  6104. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  6105. # Misc Tcl checks.
  6106. # Check whether --with-tcllib was given.
  6107. if test "${with_tcllib+set}" = set; then :
  6108. withval=$with_tcllib; tcllibname="$withval"
  6109. fi
  6110. # Check whether --with-tclinc was given.
  6111. if test "${with_tclinc+set}" = set; then :
  6112. withval=$with_tclinc; tclincname="$withval"
  6113. fi
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  6115. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  6116. # Check whether --enable-script-tcl was given.
  6117. if test "${enable_script_tcl+set}" = set; then :
  6118. enableval=$enable_script_tcl;
  6119. enable_script_tcl=$enableval
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  6121. $as_echo "$enableval" >&6; }
  6122. else
  6123. # default if not given is ENABLED
  6124. if test "x$enableval" = "x"; then
  6125. enableval="yes"
  6126. fi
  6127. enable_script_tcl=$enableval
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  6129. $as_echo "$enableval" >&6; }
  6130. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  6131. fi
  6132. WARN=0
  6133. # Make sure either both or neither $tcllibname and $tclincname are set
  6134. if test "x$tcllibname" != x; then
  6135. if test "x$tclincname" = x; then
  6136. WARN=1
  6137. tcllibname=""
  6138. TCLLIB=""
  6139. TCLINC=""
  6140. fi
  6141. else
  6142. if test "x$tclincname" != x; then
  6143. WARN=1
  6144. tclincname=""
  6145. TCLLIB=""
  6146. TCLINC=""
  6147. fi
  6148. fi
  6149. if test "$WARN" = 1; then
  6150. cat << 'EOF' >&2
  6151. configure: WARNING:
  6152. You must specify both --with-tcllib and --with-tclinc for either to work.
  6153. configure will now attempt to autodetect both the Tcl library and header.
  6154. EOF
  6155. fi
  6156. WARN=0
  6157. # Make sure either both or neither $TCLLIB and $TCLINC are set
  6158. if test "x$TCLLIB" != x; then
  6159. if test "x$TCLINC" = x; then
  6160. WARN=1
  6161. WVAR1=TCLLIB
  6162. WVAR2=TCLINC
  6163. TCLLIB=""
  6164. fi
  6165. else
  6166. if test "x$TCLINC" != x; then
  6167. WARN=1
  6168. WVAR1=TCLINC
  6169. WVAR2=TCLLIB
  6170. TCLINC=""
  6171. fi
  6172. fi
  6173. if test "$WARN" = 1; then
  6174. cat << EOF >&2
  6175. configure: WARNING:
  6176. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  6177. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6178. configure will now attempt to autodetect both the Tcl library and header.
  6179. EOF
  6180. fi
  6181. # Look for Tcl library: if $tcllibname is set, check there first
  6182. if test "x$tcllibname" != x; then
  6183. if test -f "$tcllibname" && test -r "$tcllibname"; then
  6184. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  6185. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  6186. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  6187. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  6188. else
  6189. cat << EOF >&2
  6190. configure: WARNING:
  6191. The file '$tcllibname' given to option --with-tcllib is not valid.
  6192. configure will now attempt to autodetect both the Tcl library and header.
  6193. EOF
  6194. tcllibname=""
  6195. tclincname=""
  6196. TCLLIB=""
  6197. TCLLIBFN=""
  6198. TCLINC=""
  6199. TCLINCFN=""
  6200. fi
  6201. fi
  6202. # Look for Tcl header: if $tclincname is set, check there first
  6203. if test "x$tclincname" != x; then
  6204. if test -f "$tclincname" && test -r "$tclincname"; then
  6205. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  6206. TCLINCFN=`$BASENAME $tclincname`
  6207. else
  6208. cat << EOF >&2
  6209. configure: WARNING:
  6210. The file '$tclincname' given to option --with-tclinc is not valid.
  6211. configure will now attempt to autodetect both the Tcl library and header.
  6212. EOF
  6213. tcllibname=""
  6214. tclincname=""
  6215. TCLLIB=""
  6216. TCLLIBFN=""
  6217. TCLINC=""
  6218. TCLINCFN=""
  6219. fi
  6220. fi
  6221. # Look for Tcl library: if $TCLLIB is set, check there first
  6222. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  6223. if test -d "$TCLLIB"; then
  6224. for tcllibfns in $tcllibnames; do
  6225. for tcllibext in $tcllibextensions; do
  6226. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  6227. TCLLIBFN="${tcllibfns}${tcllibext}"
  6228. TCLLIBEXT="$tcllibext"
  6229. TCLLIBFNS="$tcllibfns"
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. fi
  6235. if test "x$TCLLIBFN" = x; then
  6236. cat << 'EOF' >&2
  6237. configure: WARNING:
  6238. Environment variable TCLLIB was set, but incorrectly.
  6239. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6240. configure will now attempt to autodetect both the Tcl library and header.
  6241. EOF
  6242. TCLLIB=""
  6243. TCLLIBFN=""
  6244. TCLINC=""
  6245. TCLINCFN=""
  6246. fi
  6247. fi
  6248. # Look for Tcl header: if $TCLINC is set, check there first
  6249. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  6250. if test -d "$TCLINC"; then
  6251. for tclheaderfn in $tclheadernames; do
  6252. if test -r "${TCLINC}/${tclheaderfn}"; then
  6253. TCLINCFN="$tclheaderfn"
  6254. break
  6255. fi
  6256. done
  6257. fi
  6258. if test "x$TCLINCFN" = x; then
  6259. cat << 'EOF' >&2
  6260. configure: WARNING:
  6261. Environment variable TCLINC was set, but incorrectly.
  6262. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6263. configure will now attempt to autodetect both the Tcl library and header.
  6264. EOF
  6265. TCLLIB=""
  6266. TCLLIBFN=""
  6267. TCLINC=""
  6268. TCLINCFN=""
  6269. fi
  6270. fi
  6271. if test "$enable_script_tcl" = "yes"; then
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  6273. $as_echo_n "checking for Tcl library... " >&6; }
  6274. # Attempt autodetect for $TCLLIBFN if it's not set
  6275. if test "x$TCLLIBFN" != x; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  6277. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  6278. else
  6279. for tcllibfns in $tcllibnames; do
  6280. for tcllibext in $tcllibextensions; do
  6281. for tcllibpath in $tcllibpaths; do
  6282. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  6284. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  6285. TCLLIB="$tcllibpath"
  6286. TCLLIBFN="${tcllibfns}${tcllibext}"
  6287. TCLLIBEXT="$tcllibext"
  6288. TCLLIBFNS="$tcllibfns"
  6289. break 3
  6290. fi
  6291. done
  6292. done
  6293. done
  6294. fi
  6295. # Show if $TCLLIBFN wasn't found
  6296. if test "x$TCLLIBFN" = x; then
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6298. $as_echo "not found" >&6; }
  6299. fi
  6300. fi
  6301. if test "$enable_script_tcl" = "yes"; then
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  6303. $as_echo_n "checking for Tcl header... " >&6; }
  6304. # Attempt autodetect for $TCLINCFN if it's not set
  6305. if test "x$TCLINCFN" != x; then
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  6307. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  6308. else
  6309. for tclheaderpath in $tclheaderpaths; do
  6310. for tclheaderfn in $tclheadernames; do
  6311. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  6313. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  6314. TCLINC="$tclheaderpath"
  6315. TCLINCFN="$tclheaderfn"
  6316. break 2
  6317. fi
  6318. done
  6319. done
  6320. # FreeBSD hack ...
  6321. if test "x$TCLINCFN" = x; then
  6322. for tcllibfns in $tcllibnames; do
  6323. for tclheaderpath in $tclheaderpaths; do
  6324. for tclheaderfn in $tclheadernames; do
  6325. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  6327. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  6328. TCLINC="${tclheaderpath}/${tcllibfns}"
  6329. TCLINCFN="$tclheaderfn"
  6330. break 3
  6331. fi
  6332. done
  6333. done
  6334. done
  6335. fi
  6336. fi
  6337. TCL_INCLUDES=""
  6338. if ! test "x$TCLINC" = x; then
  6339. TCL_INCLUDES="-I$TCLINC"
  6340. fi
  6341. if test "x$TCLINCFN" = x; then
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6343. $as_echo "not found" >&6; }
  6344. fi
  6345. fi
  6346. if test "$enable_script_tcl" = "yes"; then
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  6348. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  6349. egg_tcl_changed="yes"
  6350. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  6351. if test "$egg_tcl_id" != ":::"; then
  6352. egg_tcl_cached="yes"
  6353. if ${egg_cv_var_tcl_id+:} false; then :
  6354. $as_echo_n "(cached) " >&6
  6355. else
  6356. egg_cv_var_tcl_id="$egg_tcl_id"
  6357. egg_tcl_cached="no"
  6358. fi
  6359. if test "$egg_tcl_cached" = yes; then
  6360. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  6361. egg_tcl_changed="no"
  6362. else
  6363. egg_cv_var_tcl_id="$egg_tcl_id"
  6364. fi
  6365. fi
  6366. fi
  6367. if test "$egg_tcl_changed" = yes; then
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6369. $as_echo "yes" >&6; }
  6370. else
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6372. $as_echo "no" >&6; }
  6373. fi
  6374. fi
  6375. if test "$enable_script_tcl" = "yes"; then
  6376. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  6377. TCL_FOUND=0
  6378. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  6379. TCL_FOUND=1
  6380. # Check Tcl's version
  6381. if test "$egg_tcl_changed" = yes; then
  6382. unset egg_cv_var_tcl_version
  6383. fi
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  6385. $as_echo_n "checking for Tcl version... " >&6; }
  6386. if ${egg_cv_var_tcl_version+:} false; then :
  6387. $as_echo_n "(cached) " >&6
  6388. else
  6389. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/"/, "", $3); print $3}'`
  6390. fi
  6391. if test "x$egg_cv_var_tcl_version" != x; then
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  6393. $as_echo "$egg_cv_var_tcl_version" >&6; }
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6396. $as_echo "not found" >&6; }
  6397. TCL_FOUND=0
  6398. fi
  6399. # Check Tcl's patch level (if available)
  6400. if test "$egg_tcl_changed" = yes; then
  6401. unset egg_cv_var_tcl_patch_level
  6402. fi
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  6404. $as_echo_n "checking for Tcl patch level... " >&6; }
  6405. if ${egg_cv_var_tcl_patch_level+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/"/, "", $3); print $3}'`"
  6409. fi
  6410. if test "x$egg_cv_var_tcl_patch_level" != x; then
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  6412. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  6413. else
  6414. egg_cv_var_tcl_patch_level="unknown"
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  6416. $as_echo "unknown" >&6; }
  6417. fi
  6418. fi
  6419. # Check if we found Tcl's version
  6420. if test "$TCL_FOUND" = 0; then
  6421. cat << 'EOF' >&2
  6422. configure: error:
  6423. Tcl cannot be found on this system.
  6424. Tcl is not required. Wraith will be compiled without TCL support. If you
  6425. already have Tcl installed on this system, please specify the path by
  6426. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  6427. --with-tclinc='/path/to/tcl.h' options.
  6428. EOF
  6429. enable_script_tcl="no"
  6430. else
  6431. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  6432. fi
  6433. fi
  6434. if test "$enable_script_tcl" = "yes"; then
  6435. # Is this version of Tcl too old for us to use ?
  6436. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  6437. if test "$TCL_VER_PRE70" = yes; then
  6438. cat << EOF >&2
  6439. configure: error:
  6440. Your Tcl version is much too old for Wraith to use. You should
  6441. download and compile a more recent version. The most reliable
  6442. current version is $tclrecommendver and can be downloaded from
  6443. ${tclrecommendsite}.
  6444. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  6445. for more information.
  6446. EOF
  6447. exit 1
  6448. fi
  6449. fi
  6450. # Set variables for Tcl library tests
  6451. TCL_TEST_LIB="$TCLLIBFNS"
  6452. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  6453. if test "x$ac_cv_lib_pthread" != x; then
  6454. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  6455. fi
  6456. if test "$enable_script_tcl" = "yes"; then
  6457. if test "$egg_tcl_changed" = yes; then
  6458. unset egg_cv_var_tcl_free
  6459. fi
  6460. # Check for Tcl_Free()
  6461. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  6463. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  6464. if eval \${$as_ac_Lib+:} false; then :
  6465. $as_echo_n "(cached) " >&6
  6466. else
  6467. ac_check_lib_save_LIBS=$LIBS
  6468. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6469. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6470. /* end build/confdefs.h. */
  6471. /* Override any GCC internal prototype to avoid an error.
  6472. Use char because int might match the return type of a GCC
  6473. builtin and then its argument prototype would still apply. */
  6474. #ifdef __cplusplus
  6475. extern "C"
  6476. #endif
  6477. char Tcl_Free ();
  6478. int
  6479. main ()
  6480. {
  6481. return Tcl_Free ();
  6482. ;
  6483. return 0;
  6484. }
  6485. _ACEOF
  6486. if ac_fn_cxx_try_link "$LINENO"; then :
  6487. eval "$as_ac_Lib=yes"
  6488. else
  6489. eval "$as_ac_Lib=no"
  6490. fi
  6491. rm -f core conftest.err conftest.$ac_objext \
  6492. conftest$ac_exeext conftest.$ac_ext
  6493. LIBS=$ac_check_lib_save_LIBS
  6494. fi
  6495. eval ac_res=\$$as_ac_Lib
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6497. $as_echo "$ac_res" >&6; }
  6498. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  6499. egg_cv_var_tcl_free="yes"
  6500. else
  6501. egg_cv_var_tcl_free="no"
  6502. fi
  6503. if test "$egg_cv_var_tcl_free" = yes; then
  6504. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  6505. fi
  6506. fi
  6507. #EGG_TCL_CHECK_GETCURRENTTHREAD
  6508. #EGG_TCL_CHECK_GETTHREADDATA
  6509. if test "$enable_script_tcl" = "yes"; then
  6510. if test "$egg_tcl_changed" = yes; then
  6511. unset egg_cv_var_tcl_setnotifier
  6512. fi
  6513. # Check for Tcl_SetNotifier()
  6514. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  6516. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  6517. if eval \${$as_ac_Lib+:} false; then :
  6518. $as_echo_n "(cached) " >&6
  6519. else
  6520. ac_check_lib_save_LIBS=$LIBS
  6521. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6522. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6523. /* end build/confdefs.h. */
  6524. /* Override any GCC internal prototype to avoid an error.
  6525. Use char because int might match the return type of a GCC
  6526. builtin and then its argument prototype would still apply. */
  6527. #ifdef __cplusplus
  6528. extern "C"
  6529. #endif
  6530. char Tcl_SetNotifier ();
  6531. int
  6532. main ()
  6533. {
  6534. return Tcl_SetNotifier ();
  6535. ;
  6536. return 0;
  6537. }
  6538. _ACEOF
  6539. if ac_fn_cxx_try_link "$LINENO"; then :
  6540. eval "$as_ac_Lib=yes"
  6541. else
  6542. eval "$as_ac_Lib=no"
  6543. fi
  6544. rm -f core conftest.err conftest.$ac_objext \
  6545. conftest$ac_exeext conftest.$ac_ext
  6546. LIBS=$ac_check_lib_save_LIBS
  6547. fi
  6548. eval ac_res=\$$as_ac_Lib
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6550. $as_echo "$ac_res" >&6; }
  6551. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  6552. egg_cv_var_tcl_setnotifier="yes"
  6553. else
  6554. egg_cv_var_tcl_setnotifier="no"
  6555. fi
  6556. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  6557. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  6558. fi
  6559. fi
  6560. if test "$enable_script_tcl" = "yes"; then
  6561. if test "$EGG_CYGWIN" = yes; then
  6562. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6563. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6564. else
  6565. if test "$TCLLIBEXT" != ".a"; then
  6566. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6567. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6568. else
  6569. # Set default make as static for unshared Tcl library
  6570. if test "$DEFAULT_MAKE" != static; then
  6571. cat << 'EOF' >&2
  6572. configure: WARNING:
  6573. Your Tcl library is not a shared lib.
  6574. configure will now set default make type to static.
  6575. EOF
  6576. DEFAULT_MAKE="static"
  6577. fi
  6578. # Are we using a pre 7.4 Tcl version ?
  6579. 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"}'`
  6580. if test "$TCL_VER_PRE74" = no; then
  6581. # Was the --with-tcllib option given ?
  6582. if test "x$tcllibname" != x; then
  6583. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6584. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  6585. else
  6586. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6587. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6588. fi
  6589. else
  6590. cat << EOF >&2
  6591. configure: WARNING:
  6592. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  6593. There are known problems, but we will attempt to work around them.
  6594. EOF
  6595. TCL_REQS="libtcle.a"
  6596. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  6597. fi
  6598. fi
  6599. fi
  6600. fi
  6601. cat >confcache <<\_ACEOF
  6602. # This file is a shell script that caches the results of configure
  6603. # tests run on this system so they can be shared between configure
  6604. # scripts and configure runs, see configure's option --config-cache.
  6605. # It is not useful on other systems. If it contains results you don't
  6606. # want to keep, you may remove or edit it.
  6607. #
  6608. # build/config.status only pays attention to the cache file if you give it
  6609. # the --recheck option to rerun configure.
  6610. #
  6611. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6612. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6613. # following values.
  6614. _ACEOF
  6615. # The following way of writing the cache mishandles newlines in values,
  6616. # but we know of no workaround that is simple, portable, and efficient.
  6617. # So, we kill variables containing newlines.
  6618. # Ultrix sh set writes to stderr and can't be redirected directly,
  6619. # and sets the high bit in the cache file unless we assign to the vars.
  6620. (
  6621. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6622. eval ac_val=\$$ac_var
  6623. case $ac_val in #(
  6624. *${as_nl}*)
  6625. case $ac_var in #(
  6626. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6627. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6628. esac
  6629. case $ac_var in #(
  6630. _ | IFS | as_nl) ;; #(
  6631. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6632. *) { eval $ac_var=; unset $ac_var;} ;;
  6633. esac ;;
  6634. esac
  6635. done
  6636. (set) 2>&1 |
  6637. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6638. *${as_nl}ac_space=\ *)
  6639. # `set' does not quote correctly, so add quotes: double-quote
  6640. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6641. sed -n \
  6642. "s/'/'\\\\''/g;
  6643. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6644. ;; #(
  6645. *)
  6646. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6647. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6648. ;;
  6649. esac |
  6650. sort
  6651. ) |
  6652. sed '
  6653. /^ac_cv_env_/b end
  6654. t clear
  6655. :clear
  6656. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6657. t end
  6658. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6659. :end' >>confcache
  6660. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6661. if test -w "$cache_file"; then
  6662. if test "x$cache_file" != "x/dev/null"; then
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6664. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6665. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6666. cat confcache >"$cache_file"
  6667. else
  6668. case $cache_file in #(
  6669. */* | ?:*)
  6670. mv -f confcache "$cache_file"$$ &&
  6671. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6672. *)
  6673. mv -f confcache "$cache_file" ;;
  6674. esac
  6675. fi
  6676. fi
  6677. else
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6679. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6680. fi
  6681. fi
  6682. rm -f confcache
  6683. # Checks for typedefs, structures, and compiler characteristics
  6684. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6685. if test "x$ac_cv_type_pid_t" = xyes; then :
  6686. else
  6687. cat >>build/confdefs.h <<_ACEOF
  6688. #define pid_t int
  6689. _ACEOF
  6690. fi
  6691. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6692. if test "x$ac_cv_type_size_t" = xyes; then :
  6693. else
  6694. cat >>build/confdefs.h <<_ACEOF
  6695. #define size_t unsigned int
  6696. _ACEOF
  6697. fi
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6699. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6700. if ${ac_cv_type_uid_t+:} false; then :
  6701. $as_echo_n "(cached) " >&6
  6702. else
  6703. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6704. /* end build/confdefs.h. */
  6705. #include <sys/types.h>
  6706. _ACEOF
  6707. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6708. $EGREP "uid_t" >/dev/null 2>&1; then :
  6709. ac_cv_type_uid_t=yes
  6710. else
  6711. ac_cv_type_uid_t=no
  6712. fi
  6713. rm -f conftest*
  6714. fi
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6716. $as_echo "$ac_cv_type_uid_t" >&6; }
  6717. if test $ac_cv_type_uid_t = no; then
  6718. $as_echo "#define uid_t int" >>build/confdefs.h
  6719. $as_echo "#define gid_t int" >>build/confdefs.h
  6720. fi
  6721. #AC_C_CONST
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  6723. $as_echo_n "checking for working volatile... " >&6; }
  6724. if ${ac_cv_c_volatile+:} false; then :
  6725. $as_echo_n "(cached) " >&6
  6726. else
  6727. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6728. /* end build/confdefs.h. */
  6729. int
  6730. main ()
  6731. {
  6732. volatile int x;
  6733. int * volatile y = (int *) 0;
  6734. return !x && !y;
  6735. ;
  6736. return 0;
  6737. }
  6738. _ACEOF
  6739. if ac_fn_cxx_try_compile "$LINENO"; then :
  6740. ac_cv_c_volatile=yes
  6741. else
  6742. ac_cv_c_volatile=no
  6743. fi
  6744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  6747. $as_echo "$ac_cv_c_volatile" >&6; }
  6748. if test $ac_cv_c_volatile = no; then
  6749. $as_echo "#define volatile /**/" >>build/confdefs.h
  6750. fi
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6752. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  6753. if ${ac_cv_c_bigendian+:} false; then :
  6754. $as_echo_n "(cached) " >&6
  6755. else
  6756. ac_cv_c_bigendian=unknown
  6757. # See if we're dealing with a universal compiler.
  6758. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6759. /* end build/confdefs.h. */
  6760. #ifndef __APPLE_CC__
  6761. not a universal capable compiler
  6762. #endif
  6763. typedef int dummy;
  6764. _ACEOF
  6765. if ac_fn_cxx_try_compile "$LINENO"; then :
  6766. # Check for potential -arch flags. It is not universal unless
  6767. # there are at least two -arch flags with different values.
  6768. ac_arch=
  6769. ac_prev=
  6770. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6771. if test -n "$ac_prev"; then
  6772. case $ac_word in
  6773. i?86 | x86_64 | ppc | ppc64)
  6774. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6775. ac_arch=$ac_word
  6776. else
  6777. ac_cv_c_bigendian=universal
  6778. break
  6779. fi
  6780. ;;
  6781. esac
  6782. ac_prev=
  6783. elif test "x$ac_word" = "x-arch"; then
  6784. ac_prev=arch
  6785. fi
  6786. done
  6787. fi
  6788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6789. if test $ac_cv_c_bigendian = unknown; then
  6790. # See if sys/param.h defines the BYTE_ORDER macro.
  6791. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6792. /* end build/confdefs.h. */
  6793. #include <sys/types.h>
  6794. #include <sys/param.h>
  6795. int
  6796. main ()
  6797. {
  6798. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6799. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6800. && LITTLE_ENDIAN)
  6801. bogus endian macros
  6802. #endif
  6803. ;
  6804. return 0;
  6805. }
  6806. _ACEOF
  6807. if ac_fn_cxx_try_compile "$LINENO"; then :
  6808. # It does; now see whether it defined to BIG_ENDIAN or not.
  6809. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6810. /* end build/confdefs.h. */
  6811. #include <sys/types.h>
  6812. #include <sys/param.h>
  6813. int
  6814. main ()
  6815. {
  6816. #if BYTE_ORDER != BIG_ENDIAN
  6817. not big endian
  6818. #endif
  6819. ;
  6820. return 0;
  6821. }
  6822. _ACEOF
  6823. if ac_fn_cxx_try_compile "$LINENO"; then :
  6824. ac_cv_c_bigendian=yes
  6825. else
  6826. ac_cv_c_bigendian=no
  6827. fi
  6828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6829. fi
  6830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6831. fi
  6832. if test $ac_cv_c_bigendian = unknown; then
  6833. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6834. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6835. /* end build/confdefs.h. */
  6836. #include <limits.h>
  6837. int
  6838. main ()
  6839. {
  6840. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6841. bogus endian macros
  6842. #endif
  6843. ;
  6844. return 0;
  6845. }
  6846. _ACEOF
  6847. if ac_fn_cxx_try_compile "$LINENO"; then :
  6848. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6849. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6850. /* end build/confdefs.h. */
  6851. #include <limits.h>
  6852. int
  6853. main ()
  6854. {
  6855. #ifndef _BIG_ENDIAN
  6856. not big endian
  6857. #endif
  6858. ;
  6859. return 0;
  6860. }
  6861. _ACEOF
  6862. if ac_fn_cxx_try_compile "$LINENO"; then :
  6863. ac_cv_c_bigendian=yes
  6864. else
  6865. ac_cv_c_bigendian=no
  6866. fi
  6867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6868. fi
  6869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6870. fi
  6871. if test $ac_cv_c_bigendian = unknown; then
  6872. # Compile a test program.
  6873. if test "$cross_compiling" = yes; then :
  6874. # Try to guess by grepping values from an object file.
  6875. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6876. /* end build/confdefs.h. */
  6877. short int ascii_mm[] =
  6878. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6879. short int ascii_ii[] =
  6880. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6881. int use_ascii (int i) {
  6882. return ascii_mm[i] + ascii_ii[i];
  6883. }
  6884. short int ebcdic_ii[] =
  6885. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6886. short int ebcdic_mm[] =
  6887. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6888. int use_ebcdic (int i) {
  6889. return ebcdic_mm[i] + ebcdic_ii[i];
  6890. }
  6891. extern int foo;
  6892. int
  6893. main ()
  6894. {
  6895. return use_ascii (foo) == use_ebcdic (foo);
  6896. ;
  6897. return 0;
  6898. }
  6899. _ACEOF
  6900. if ac_fn_cxx_try_compile "$LINENO"; then :
  6901. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6902. ac_cv_c_bigendian=yes
  6903. fi
  6904. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6905. if test "$ac_cv_c_bigendian" = unknown; then
  6906. ac_cv_c_bigendian=no
  6907. else
  6908. # finding both strings is unlikely to happen, but who knows?
  6909. ac_cv_c_bigendian=unknown
  6910. fi
  6911. fi
  6912. fi
  6913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6914. else
  6915. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6916. /* end build/confdefs.h. */
  6917. $ac_includes_default
  6918. int
  6919. main ()
  6920. {
  6921. /* Are we little or big endian? From Harbison&Steele. */
  6922. union
  6923. {
  6924. long int l;
  6925. char c[sizeof (long int)];
  6926. } u;
  6927. u.l = 1;
  6928. return u.c[sizeof (long int) - 1] == 1;
  6929. ;
  6930. return 0;
  6931. }
  6932. _ACEOF
  6933. if ac_fn_cxx_try_run "$LINENO"; then :
  6934. ac_cv_c_bigendian=no
  6935. else
  6936. ac_cv_c_bigendian=yes
  6937. fi
  6938. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6939. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6940. fi
  6941. fi
  6942. fi
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6944. $as_echo "$ac_cv_c_bigendian" >&6; }
  6945. case $ac_cv_c_bigendian in #(
  6946. yes)
  6947. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6948. ;; #(
  6949. no)
  6950. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6951. ;; #(
  6952. universal)
  6953. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  6954. ;; #(
  6955. *)
  6956. as_fn_error $? "unknown endianness
  6957. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6958. esac
  6959. #AC_C_INLINE
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  6961. $as_echo_n "checking whether char is unsigned... " >&6; }
  6962. if ${ac_cv_c_char_unsigned+:} false; then :
  6963. $as_echo_n "(cached) " >&6
  6964. else
  6965. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6966. /* end build/confdefs.h. */
  6967. $ac_includes_default
  6968. int
  6969. main ()
  6970. {
  6971. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6972. test_array [0] = 0;
  6973. return test_array [0];
  6974. ;
  6975. return 0;
  6976. }
  6977. _ACEOF
  6978. if ac_fn_cxx_try_compile "$LINENO"; then :
  6979. ac_cv_c_char_unsigned=no
  6980. else
  6981. ac_cv_c_char_unsigned=yes
  6982. fi
  6983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6984. fi
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  6986. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6987. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6988. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6989. fi
  6990. #AC_C_STRINGIZE
  6991. #AC_C_PROTOTYPES
  6992. #checkpoint
  6993. cat >confcache <<\_ACEOF
  6994. # This file is a shell script that caches the results of configure
  6995. # tests run on this system so they can be shared between configure
  6996. # scripts and configure runs, see configure's option --config-cache.
  6997. # It is not useful on other systems. If it contains results you don't
  6998. # want to keep, you may remove or edit it.
  6999. #
  7000. # build/config.status only pays attention to the cache file if you give it
  7001. # the --recheck option to rerun configure.
  7002. #
  7003. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7004. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7005. # following values.
  7006. _ACEOF
  7007. # The following way of writing the cache mishandles newlines in values,
  7008. # but we know of no workaround that is simple, portable, and efficient.
  7009. # So, we kill variables containing newlines.
  7010. # Ultrix sh set writes to stderr and can't be redirected directly,
  7011. # and sets the high bit in the cache file unless we assign to the vars.
  7012. (
  7013. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7014. eval ac_val=\$$ac_var
  7015. case $ac_val in #(
  7016. *${as_nl}*)
  7017. case $ac_var in #(
  7018. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7019. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7020. esac
  7021. case $ac_var in #(
  7022. _ | IFS | as_nl) ;; #(
  7023. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7024. *) { eval $ac_var=; unset $ac_var;} ;;
  7025. esac ;;
  7026. esac
  7027. done
  7028. (set) 2>&1 |
  7029. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7030. *${as_nl}ac_space=\ *)
  7031. # `set' does not quote correctly, so add quotes: double-quote
  7032. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7033. sed -n \
  7034. "s/'/'\\\\''/g;
  7035. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7036. ;; #(
  7037. *)
  7038. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7039. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7040. ;;
  7041. esac |
  7042. sort
  7043. ) |
  7044. sed '
  7045. /^ac_cv_env_/b end
  7046. t clear
  7047. :clear
  7048. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7049. t end
  7050. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7051. :end' >>confcache
  7052. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7053. if test -w "$cache_file"; then
  7054. if test "x$cache_file" != "x/dev/null"; then
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7056. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7057. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7058. cat confcache >"$cache_file"
  7059. else
  7060. case $cache_file in #(
  7061. */* | ?:*)
  7062. mv -f confcache "$cache_file"$$ &&
  7063. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7064. *)
  7065. mv -f confcache "$cache_file" ;;
  7066. esac
  7067. fi
  7068. fi
  7069. else
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7071. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7072. fi
  7073. fi
  7074. rm -f confcache
  7075. # Checks for typedefs, structures, and compiler characteristics
  7076. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7077. if test "x$ac_cv_type_pid_t" = xyes; then :
  7078. else
  7079. cat >>build/confdefs.h <<_ACEOF
  7080. #define pid_t int
  7081. _ACEOF
  7082. fi
  7083. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7084. if test "x$ac_cv_type_size_t" = xyes; then :
  7085. else
  7086. cat >>build/confdefs.h <<_ACEOF
  7087. #define size_t unsigned int
  7088. _ACEOF
  7089. fi
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  7091. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  7092. if ${ac_cv_type_uid_t+:} false; then :
  7093. $as_echo_n "(cached) " >&6
  7094. else
  7095. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7096. /* end build/confdefs.h. */
  7097. #include <sys/types.h>
  7098. _ACEOF
  7099. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7100. $EGREP "uid_t" >/dev/null 2>&1; then :
  7101. ac_cv_type_uid_t=yes
  7102. else
  7103. ac_cv_type_uid_t=no
  7104. fi
  7105. rm -f conftest*
  7106. fi
  7107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  7108. $as_echo "$ac_cv_type_uid_t" >&6; }
  7109. if test $ac_cv_type_uid_t = no; then
  7110. $as_echo "#define uid_t int" >>build/confdefs.h
  7111. $as_echo "#define gid_t int" >>build/confdefs.h
  7112. fi
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  7114. $as_echo_n "checking for unsigned long long int... " >&6; }
  7115. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  7116. $as_echo_n "(cached) " >&6
  7117. else
  7118. ac_cv_type_unsigned_long_long_int=yes
  7119. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  7120. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7121. /* end build/confdefs.h. */
  7122. /* For now, do not test the preprocessor; as of 2007 there are too many
  7123. implementations with broken preprocessors. Perhaps this can
  7124. be revisited in 2012. In the meantime, code should not expect
  7125. #if to work with literals wider than 32 bits. */
  7126. /* Test literals. */
  7127. long long int ll = 9223372036854775807ll;
  7128. long long int nll = -9223372036854775807LL;
  7129. unsigned long long int ull = 18446744073709551615ULL;
  7130. /* Test constant expressions. */
  7131. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  7132. ? 1 : -1)];
  7133. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  7134. ? 1 : -1)];
  7135. int i = 63;
  7136. int
  7137. main ()
  7138. {
  7139. /* Test availability of runtime routines for shift and division. */
  7140. long long int llmax = 9223372036854775807ll;
  7141. unsigned long long int ullmax = 18446744073709551615ull;
  7142. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  7143. | (llmax / ll) | (llmax % ll)
  7144. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  7145. | (ullmax / ull) | (ullmax % ull));
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_cxx_try_link "$LINENO"; then :
  7151. else
  7152. ac_cv_type_unsigned_long_long_int=no
  7153. fi
  7154. rm -f core conftest.err conftest.$ac_objext \
  7155. conftest$ac_exeext conftest.$ac_ext
  7156. fi
  7157. fi
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  7159. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  7160. if test $ac_cv_type_unsigned_long_long_int = yes; then
  7161. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  7164. $as_echo_n "checking for long long int... " >&6; }
  7165. if ${ac_cv_type_long_long_int+:} false; then :
  7166. $as_echo_n "(cached) " >&6
  7167. else
  7168. ac_cv_type_long_long_int=yes
  7169. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  7170. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  7171. if test $ac_cv_type_long_long_int = yes; then
  7172. if test "$cross_compiling" = yes; then :
  7173. :
  7174. else
  7175. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7176. /* end build/confdefs.h. */
  7177. #include <limits.h>
  7178. #ifndef LLONG_MAX
  7179. # define HALF \
  7180. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  7181. # define LLONG_MAX (HALF - 1 + HALF)
  7182. #endif
  7183. int
  7184. main ()
  7185. {
  7186. long long int n = 1;
  7187. int i;
  7188. for (i = 0; ; i++)
  7189. {
  7190. long long int m = n << i;
  7191. if (m >> i != n)
  7192. return 1;
  7193. if (LLONG_MAX / 2 < m)
  7194. break;
  7195. }
  7196. return 0;
  7197. ;
  7198. return 0;
  7199. }
  7200. _ACEOF
  7201. if ac_fn_cxx_try_run "$LINENO"; then :
  7202. else
  7203. ac_cv_type_long_long_int=no
  7204. fi
  7205. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7206. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7207. fi
  7208. fi
  7209. fi
  7210. fi
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  7212. $as_echo "$ac_cv_type_long_long_int" >&6; }
  7213. if test $ac_cv_type_long_long_int = yes; then
  7214. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  7215. fi
  7216. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7217. case $ac_cv_c_int8_t in #(
  7218. no|yes) ;; #(
  7219. *)
  7220. cat >>build/confdefs.h <<_ACEOF
  7221. #define int8_t $ac_cv_c_int8_t
  7222. _ACEOF
  7223. ;;
  7224. esac
  7225. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7226. case $ac_cv_c_uint8_t in #(
  7227. no|yes) ;; #(
  7228. *)
  7229. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  7230. cat >>build/confdefs.h <<_ACEOF
  7231. #define uint8_t $ac_cv_c_uint8_t
  7232. _ACEOF
  7233. ;;
  7234. esac
  7235. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7236. case $ac_cv_c_int16_t in #(
  7237. no|yes) ;; #(
  7238. *)
  7239. cat >>build/confdefs.h <<_ACEOF
  7240. #define int16_t $ac_cv_c_int16_t
  7241. _ACEOF
  7242. ;;
  7243. esac
  7244. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7245. case $ac_cv_c_uint16_t in #(
  7246. no|yes) ;; #(
  7247. *)
  7248. cat >>build/confdefs.h <<_ACEOF
  7249. #define uint16_t $ac_cv_c_uint16_t
  7250. _ACEOF
  7251. ;;
  7252. esac
  7253. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7254. case $ac_cv_c_int32_t in #(
  7255. no|yes) ;; #(
  7256. *)
  7257. cat >>build/confdefs.h <<_ACEOF
  7258. #define int32_t $ac_cv_c_int32_t
  7259. _ACEOF
  7260. ;;
  7261. esac
  7262. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7263. case $ac_cv_c_uint32_t in #(
  7264. no|yes) ;; #(
  7265. *)
  7266. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  7267. cat >>build/confdefs.h <<_ACEOF
  7268. #define uint32_t $ac_cv_c_uint32_t
  7269. _ACEOF
  7270. ;;
  7271. esac
  7272. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7273. case $ac_cv_c_int64_t in #(
  7274. no|yes) ;; #(
  7275. *)
  7276. cat >>build/confdefs.h <<_ACEOF
  7277. #define int64_t $ac_cv_c_int64_t
  7278. _ACEOF
  7279. ;;
  7280. esac
  7281. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7282. case $ac_cv_c_uint64_t in #(
  7283. no|yes) ;; #(
  7284. *)
  7285. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  7286. cat >>build/confdefs.h <<_ACEOF
  7287. #define uint64_t $ac_cv_c_uint64_t
  7288. _ACEOF
  7289. ;;
  7290. esac
  7291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7292. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7293. if ${ac_cv_struct_tm+:} false; then :
  7294. $as_echo_n "(cached) " >&6
  7295. else
  7296. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7297. /* end build/confdefs.h. */
  7298. #include <sys/types.h>
  7299. #include <time.h>
  7300. int
  7301. main ()
  7302. {
  7303. struct tm tm;
  7304. int *p = &tm.tm_sec;
  7305. return !p;
  7306. ;
  7307. return 0;
  7308. }
  7309. _ACEOF
  7310. if ac_fn_cxx_try_compile "$LINENO"; then :
  7311. ac_cv_struct_tm=time.h
  7312. else
  7313. ac_cv_struct_tm=sys/time.h
  7314. fi
  7315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7318. $as_echo "$ac_cv_struct_tm" >&6; }
  7319. if test $ac_cv_struct_tm = sys/time.h; then
  7320. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7321. fi
  7322. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  7323. #include <$ac_cv_struct_tm>
  7324. "
  7325. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  7326. cat >>build/confdefs.h <<_ACEOF
  7327. #define HAVE_STRUCT_TM_TM_ZONE 1
  7328. _ACEOF
  7329. fi
  7330. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7331. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  7332. else
  7333. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  7334. "
  7335. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  7336. ac_have_decl=1
  7337. else
  7338. ac_have_decl=0
  7339. fi
  7340. cat >>build/confdefs.h <<_ACEOF
  7341. #define HAVE_DECL_TZNAME $ac_have_decl
  7342. _ACEOF
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  7344. $as_echo_n "checking for tzname... " >&6; }
  7345. if ${ac_cv_var_tzname+:} false; then :
  7346. $as_echo_n "(cached) " >&6
  7347. else
  7348. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7349. /* end build/confdefs.h. */
  7350. #include <time.h>
  7351. #if !HAVE_DECL_TZNAME
  7352. extern char *tzname[];
  7353. #endif
  7354. int
  7355. main ()
  7356. {
  7357. return tzname[0][0];
  7358. ;
  7359. return 0;
  7360. }
  7361. _ACEOF
  7362. if ac_fn_cxx_try_link "$LINENO"; then :
  7363. ac_cv_var_tzname=yes
  7364. else
  7365. ac_cv_var_tzname=no
  7366. fi
  7367. rm -f core conftest.err conftest.$ac_objext \
  7368. conftest$ac_exeext conftest.$ac_ext
  7369. fi
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  7371. $as_echo "$ac_cv_var_tzname" >&6; }
  7372. if test $ac_cv_var_tzname = yes; then
  7373. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  7374. fi
  7375. fi
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7377. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7378. if ${ac_cv_struct_tm+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7382. /* end build/confdefs.h. */
  7383. #include <sys/types.h>
  7384. #include <time.h>
  7385. int
  7386. main ()
  7387. {
  7388. struct tm tm;
  7389. int *p = &tm.tm_sec;
  7390. return !p;
  7391. ;
  7392. return 0;
  7393. }
  7394. _ACEOF
  7395. if ac_fn_cxx_try_compile "$LINENO"; then :
  7396. ac_cv_struct_tm=time.h
  7397. else
  7398. ac_cv_struct_tm=sys/time.h
  7399. fi
  7400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7403. $as_echo "$ac_cv_struct_tm" >&6; }
  7404. if test $ac_cv_struct_tm = sys/time.h; then
  7405. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7406. fi
  7407. # Checks for library functions
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  7409. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  7410. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  7411. $as_echo_n "(cached) " >&6
  7412. else
  7413. rm -f conftest.sym conftest.file
  7414. echo >conftest.file
  7415. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7416. if test "$cross_compiling" = yes; then :
  7417. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7418. else
  7419. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7420. /* end build/confdefs.h. */
  7421. $ac_includes_default
  7422. int
  7423. main ()
  7424. {
  7425. struct stat sbuf;
  7426. /* Linux will dereference the symlink and fail, as required by POSIX.
  7427. That is better in the sense that it means we will not
  7428. have to compile and use the lstat wrapper. */
  7429. return lstat ("conftest.sym/", &sbuf) == 0;
  7430. ;
  7431. return 0;
  7432. }
  7433. _ACEOF
  7434. if ac_fn_cxx_try_run "$LINENO"; then :
  7435. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7436. else
  7437. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7438. fi
  7439. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7440. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7441. fi
  7442. else
  7443. # If the `ln -s' command failed, then we probably don't even
  7444. # have an lstat function.
  7445. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7446. fi
  7447. rm -f conftest.sym conftest.file
  7448. fi
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7450. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  7451. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7452. cat >>build/confdefs.h <<_ACEOF
  7453. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7454. _ACEOF
  7455. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  7456. case " $LIBOBJS " in
  7457. *" lstat.$ac_objext "* ) ;;
  7458. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  7459. ;;
  7460. esac
  7461. fi
  7462. for ac_header in $ac_header_list
  7463. do :
  7464. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7465. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7466. "
  7467. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7468. cat >>build/confdefs.h <<_ACEOF
  7469. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7470. _ACEOF
  7471. fi
  7472. done
  7473. for ac_func in getpagesize
  7474. do :
  7475. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7476. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7477. cat >>build/confdefs.h <<_ACEOF
  7478. #define HAVE_GETPAGESIZE 1
  7479. _ACEOF
  7480. fi
  7481. done
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7483. $as_echo_n "checking for working mmap... " >&6; }
  7484. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. if test "$cross_compiling" = yes; then :
  7488. ac_cv_func_mmap_fixed_mapped=no
  7489. else
  7490. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7491. /* end build/confdefs.h. */
  7492. $ac_includes_default
  7493. /* malloc might have been renamed as rpl_malloc. */
  7494. #undef malloc
  7495. /* Thanks to Mike Haertel and Jim Avera for this test.
  7496. Here is a matrix of mmap possibilities:
  7497. mmap private not fixed
  7498. mmap private fixed at somewhere currently unmapped
  7499. mmap private fixed at somewhere already mapped
  7500. mmap shared not fixed
  7501. mmap shared fixed at somewhere currently unmapped
  7502. mmap shared fixed at somewhere already mapped
  7503. For private mappings, we should verify that changes cannot be read()
  7504. back from the file, nor mmap's back from the file at a different
  7505. address. (There have been systems where private was not correctly
  7506. implemented like the infamous i386 svr4.0, and systems where the
  7507. VM page cache was not coherent with the file system buffer cache
  7508. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7509. For shared mappings, we should conversely verify that changes get
  7510. propagated back to all the places they're supposed to be.
  7511. Grep wants private fixed already mapped.
  7512. The main things grep needs to know about mmap are:
  7513. * does it exist and is it safe to write into the mmap'd area
  7514. * how to use it (BSD variants) */
  7515. #include <fcntl.h>
  7516. #include <sys/mman.h>
  7517. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7518. char *malloc ();
  7519. #endif
  7520. /* This mess was copied from the GNU getpagesize.h. */
  7521. #ifndef HAVE_GETPAGESIZE
  7522. # ifdef _SC_PAGESIZE
  7523. # define getpagesize() sysconf(_SC_PAGESIZE)
  7524. # else /* no _SC_PAGESIZE */
  7525. # ifdef HAVE_SYS_PARAM_H
  7526. # include <sys/param.h>
  7527. # ifdef EXEC_PAGESIZE
  7528. # define getpagesize() EXEC_PAGESIZE
  7529. # else /* no EXEC_PAGESIZE */
  7530. # ifdef NBPG
  7531. # define getpagesize() NBPG * CLSIZE
  7532. # ifndef CLSIZE
  7533. # define CLSIZE 1
  7534. # endif /* no CLSIZE */
  7535. # else /* no NBPG */
  7536. # ifdef NBPC
  7537. # define getpagesize() NBPC
  7538. # else /* no NBPC */
  7539. # ifdef PAGESIZE
  7540. # define getpagesize() PAGESIZE
  7541. # endif /* PAGESIZE */
  7542. # endif /* no NBPC */
  7543. # endif /* no NBPG */
  7544. # endif /* no EXEC_PAGESIZE */
  7545. # else /* no HAVE_SYS_PARAM_H */
  7546. # define getpagesize() 8192 /* punt totally */
  7547. # endif /* no HAVE_SYS_PARAM_H */
  7548. # endif /* no _SC_PAGESIZE */
  7549. #endif /* no HAVE_GETPAGESIZE */
  7550. int
  7551. main ()
  7552. {
  7553. char *data, *data2, *data3;
  7554. const char *cdata2;
  7555. int i, pagesize;
  7556. int fd, fd2;
  7557. pagesize = getpagesize ();
  7558. /* First, make a file with some known garbage in it. */
  7559. data = (char *) malloc (pagesize);
  7560. if (!data)
  7561. return 1;
  7562. for (i = 0; i < pagesize; ++i)
  7563. *(data + i) = rand ();
  7564. umask (0);
  7565. fd = creat ("conftest.mmap", 0600);
  7566. if (fd < 0)
  7567. return 2;
  7568. if (write (fd, data, pagesize) != pagesize)
  7569. return 3;
  7570. close (fd);
  7571. /* Next, check that the tail of a page is zero-filled. File must have
  7572. non-zero length, otherwise we risk SIGBUS for entire page. */
  7573. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7574. if (fd2 < 0)
  7575. return 4;
  7576. cdata2 = "";
  7577. if (write (fd2, cdata2, 1) != 1)
  7578. return 5;
  7579. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7580. if (data2 == MAP_FAILED)
  7581. return 6;
  7582. for (i = 0; i < pagesize; ++i)
  7583. if (*(data2 + i))
  7584. return 7;
  7585. close (fd2);
  7586. if (munmap (data2, pagesize))
  7587. return 8;
  7588. /* Next, try to mmap the file at a fixed address which already has
  7589. something else allocated at it. If we can, also make sure that
  7590. we see the same garbage. */
  7591. fd = open ("conftest.mmap", O_RDWR);
  7592. if (fd < 0)
  7593. return 9;
  7594. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7595. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7596. return 10;
  7597. for (i = 0; i < pagesize; ++i)
  7598. if (*(data + i) != *(data2 + i))
  7599. return 11;
  7600. /* Finally, make sure that changes to the mapped area do not
  7601. percolate back to the file as seen by read(). (This is a bug on
  7602. some variants of i386 svr4.0.) */
  7603. for (i = 0; i < pagesize; ++i)
  7604. *(data2 + i) = *(data2 + i) + 1;
  7605. data3 = (char *) malloc (pagesize);
  7606. if (!data3)
  7607. return 12;
  7608. if (read (fd, data3, pagesize) != pagesize)
  7609. return 13;
  7610. for (i = 0; i < pagesize; ++i)
  7611. if (*(data + i) != *(data3 + i))
  7612. return 14;
  7613. close (fd);
  7614. return 0;
  7615. }
  7616. _ACEOF
  7617. if ac_fn_cxx_try_run "$LINENO"; then :
  7618. ac_cv_func_mmap_fixed_mapped=yes
  7619. else
  7620. ac_cv_func_mmap_fixed_mapped=no
  7621. fi
  7622. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7623. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7624. fi
  7625. fi
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7627. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7628. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7629. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7630. fi
  7631. rm -f conftest.mmap conftest.txt
  7632. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7633. #include <sys/time.h>
  7634. #include <time.h>
  7635. "
  7636. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7637. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7638. fi
  7639. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7640. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7641. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7642. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7643. else
  7644. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7645. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7646. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7647. fi
  7648. fi
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7650. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7651. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7652. /* end build/confdefs.h. */
  7653. #include <sys/types.h>
  7654. #include <sys/time.h>
  7655. int
  7656. main ()
  7657. {
  7658. struct timespec ts1, ts2;
  7659. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7660. #ifndef timespecsub
  7661. #error missing timespecsub
  7662. #endif
  7663. timespecsub(&ts1, &ts2);
  7664. ;
  7665. return 0;
  7666. }
  7667. _ACEOF
  7668. if ac_fn_cxx_try_compile "$LINENO"; then :
  7669. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7671. $as_echo "yes" >&6; }
  7672. else
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7674. $as_echo "no" >&6; }
  7675. fi
  7676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7677. fi
  7678. #checkpoint
  7679. cat >confcache <<\_ACEOF
  7680. # This file is a shell script that caches the results of configure
  7681. # tests run on this system so they can be shared between configure
  7682. # scripts and configure runs, see configure's option --config-cache.
  7683. # It is not useful on other systems. If it contains results you don't
  7684. # want to keep, you may remove or edit it.
  7685. #
  7686. # build/config.status only pays attention to the cache file if you give it
  7687. # the --recheck option to rerun configure.
  7688. #
  7689. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7690. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7691. # following values.
  7692. _ACEOF
  7693. # The following way of writing the cache mishandles newlines in values,
  7694. # but we know of no workaround that is simple, portable, and efficient.
  7695. # So, we kill variables containing newlines.
  7696. # Ultrix sh set writes to stderr and can't be redirected directly,
  7697. # and sets the high bit in the cache file unless we assign to the vars.
  7698. (
  7699. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7700. eval ac_val=\$$ac_var
  7701. case $ac_val in #(
  7702. *${as_nl}*)
  7703. case $ac_var in #(
  7704. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7705. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7706. esac
  7707. case $ac_var in #(
  7708. _ | IFS | as_nl) ;; #(
  7709. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7710. *) { eval $ac_var=; unset $ac_var;} ;;
  7711. esac ;;
  7712. esac
  7713. done
  7714. (set) 2>&1 |
  7715. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7716. *${as_nl}ac_space=\ *)
  7717. # `set' does not quote correctly, so add quotes: double-quote
  7718. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7719. sed -n \
  7720. "s/'/'\\\\''/g;
  7721. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7722. ;; #(
  7723. *)
  7724. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7725. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7726. ;;
  7727. esac |
  7728. sort
  7729. ) |
  7730. sed '
  7731. /^ac_cv_env_/b end
  7732. t clear
  7733. :clear
  7734. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7735. t end
  7736. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7737. :end' >>confcache
  7738. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7739. if test -w "$cache_file"; then
  7740. if test "x$cache_file" != "x/dev/null"; then
  7741. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7742. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7743. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7744. cat confcache >"$cache_file"
  7745. else
  7746. case $cache_file in #(
  7747. */* | ?:*)
  7748. mv -f confcache "$cache_file"$$ &&
  7749. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7750. *)
  7751. mv -f confcache "$cache_file" ;;
  7752. esac
  7753. fi
  7754. fi
  7755. else
  7756. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7757. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7758. fi
  7759. fi
  7760. rm -f confcache
  7761. for ac_func in getrusage getpassphrase posix_madvise madvise
  7762. do :
  7763. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7764. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7765. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7766. cat >>build/confdefs.h <<_ACEOF
  7767. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7768. _ACEOF
  7769. fi
  7770. done
  7771. for ac_func in memmem random snprintf srandom gettime
  7772. do :
  7773. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7774. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7775. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7776. cat >>build/confdefs.h <<_ACEOF
  7777. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7778. _ACEOF
  7779. fi
  7780. done
  7781. #checkpoint
  7782. cat >confcache <<\_ACEOF
  7783. # This file is a shell script that caches the results of configure
  7784. # tests run on this system so they can be shared between configure
  7785. # scripts and configure runs, see configure's option --config-cache.
  7786. # It is not useful on other systems. If it contains results you don't
  7787. # want to keep, you may remove or edit it.
  7788. #
  7789. # build/config.status only pays attention to the cache file if you give it
  7790. # the --recheck option to rerun configure.
  7791. #
  7792. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7793. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7794. # following values.
  7795. _ACEOF
  7796. # The following way of writing the cache mishandles newlines in values,
  7797. # but we know of no workaround that is simple, portable, and efficient.
  7798. # So, we kill variables containing newlines.
  7799. # Ultrix sh set writes to stderr and can't be redirected directly,
  7800. # and sets the high bit in the cache file unless we assign to the vars.
  7801. (
  7802. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7803. eval ac_val=\$$ac_var
  7804. case $ac_val in #(
  7805. *${as_nl}*)
  7806. case $ac_var in #(
  7807. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7808. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7809. esac
  7810. case $ac_var in #(
  7811. _ | IFS | as_nl) ;; #(
  7812. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7813. *) { eval $ac_var=; unset $ac_var;} ;;
  7814. esac ;;
  7815. esac
  7816. done
  7817. (set) 2>&1 |
  7818. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7819. *${as_nl}ac_space=\ *)
  7820. # `set' does not quote correctly, so add quotes: double-quote
  7821. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7822. sed -n \
  7823. "s/'/'\\\\''/g;
  7824. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7825. ;; #(
  7826. *)
  7827. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7828. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7829. ;;
  7830. esac |
  7831. sort
  7832. ) |
  7833. sed '
  7834. /^ac_cv_env_/b end
  7835. t clear
  7836. :clear
  7837. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7838. t end
  7839. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7840. :end' >>confcache
  7841. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7842. if test -w "$cache_file"; then
  7843. if test "x$cache_file" != "x/dev/null"; then
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7845. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7846. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7847. cat confcache >"$cache_file"
  7848. else
  7849. case $cache_file in #(
  7850. */* | ?:*)
  7851. mv -f confcache "$cache_file"$$ &&
  7852. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7853. *)
  7854. mv -f confcache "$cache_file" ;;
  7855. esac
  7856. fi
  7857. fi
  7858. else
  7859. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7860. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7861. fi
  7862. fi
  7863. rm -f confcache
  7864. for ac_func in vsnprintf prctl procctl closefrom
  7865. do :
  7866. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7867. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7868. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7869. cat >>build/confdefs.h <<_ACEOF
  7870. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7871. _ACEOF
  7872. fi
  7873. done
  7874. #autoscan suggested this....
  7875. #These are recommended by autoscan, but no code supports it currently
  7876. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7877. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7878. for ac_func in vsprintf
  7879. do :
  7880. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7881. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7882. cat >>build/confdefs.h <<_ACEOF
  7883. #define HAVE_VSPRINTF 1
  7884. _ACEOF
  7885. fi
  7886. done
  7887. if test "$ac_cv_func_vsprintf" = "no"
  7888. then
  7889. cat << 'EOF' >&2
  7890. configure: error:
  7891. Your system does not have the sprintf/vsprintf libraries.
  7892. These are required to compile almost anything. Sorry.
  7893. EOF
  7894. exit 1
  7895. fi
  7896. for ac_func in uname
  7897. do :
  7898. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7899. if test "x$ac_cv_func_uname" = xyes; then :
  7900. cat >>build/confdefs.h <<_ACEOF
  7901. #define HAVE_UNAME 1
  7902. _ACEOF
  7903. fi
  7904. done
  7905. if test "$ac_cv_func_uname" = "no"
  7906. then
  7907. cat << 'EOF' >&2
  7908. configure: error:
  7909. Your system does not have the uname() function.
  7910. This is required for the botpack.
  7911. EOF
  7912. exit 1
  7913. fi
  7914. # Make sure we have stdc headers, since we can't compile without them
  7915. if test "$ac_cv_header_stdc" = "no"
  7916. then
  7917. cat << 'EOF' >&2
  7918. configure: error:
  7919. Your system must support ANSI C Header files.
  7920. These are required for the language support. Sorry.
  7921. EOF
  7922. exit 1
  7923. fi
  7924. #checkpoint
  7925. cat >confcache <<\_ACEOF
  7926. # This file is a shell script that caches the results of configure
  7927. # tests run on this system so they can be shared between configure
  7928. # scripts and configure runs, see configure's option --config-cache.
  7929. # It is not useful on other systems. If it contains results you don't
  7930. # want to keep, you may remove or edit it.
  7931. #
  7932. # build/config.status only pays attention to the cache file if you give it
  7933. # the --recheck option to rerun configure.
  7934. #
  7935. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7936. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7937. # following values.
  7938. _ACEOF
  7939. # The following way of writing the cache mishandles newlines in values,
  7940. # but we know of no workaround that is simple, portable, and efficient.
  7941. # So, we kill variables containing newlines.
  7942. # Ultrix sh set writes to stderr and can't be redirected directly,
  7943. # and sets the high bit in the cache file unless we assign to the vars.
  7944. (
  7945. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7946. eval ac_val=\$$ac_var
  7947. case $ac_val in #(
  7948. *${as_nl}*)
  7949. case $ac_var in #(
  7950. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7951. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7952. esac
  7953. case $ac_var in #(
  7954. _ | IFS | as_nl) ;; #(
  7955. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7956. *) { eval $ac_var=; unset $ac_var;} ;;
  7957. esac ;;
  7958. esac
  7959. done
  7960. (set) 2>&1 |
  7961. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7962. *${as_nl}ac_space=\ *)
  7963. # `set' does not quote correctly, so add quotes: double-quote
  7964. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7965. sed -n \
  7966. "s/'/'\\\\''/g;
  7967. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7968. ;; #(
  7969. *)
  7970. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7971. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7972. ;;
  7973. esac |
  7974. sort
  7975. ) |
  7976. sed '
  7977. /^ac_cv_env_/b end
  7978. t clear
  7979. :clear
  7980. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7981. t end
  7982. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7983. :end' >>confcache
  7984. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7985. if test -w "$cache_file"; then
  7986. if test "x$cache_file" != "x/dev/null"; then
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7988. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7989. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7990. cat confcache >"$cache_file"
  7991. else
  7992. case $cache_file in #(
  7993. */* | ?:*)
  7994. mv -f confcache "$cache_file"$$ &&
  7995. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7996. *)
  7997. mv -f confcache "$cache_file" ;;
  7998. esac
  7999. fi
  8000. fi
  8001. else
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8003. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8004. fi
  8005. fi
  8006. rm -f confcache
  8007. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  8008. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  8009. cat >>build/confdefs.h <<_ACEOF
  8010. #define EGG_VERSION $version_num
  8011. _ACEOF
  8012. #FIND_WRAPS
  8013. files="src/Makefile.in"
  8014. for mf in $files; do
  8015. # Strip MF so we end up with the name of the file.
  8016. mf=${mf%%:*}
  8017. dirmf=${mf%/*}
  8018. rm -f "$dirmf/.deps/includes"
  8019. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  8020. for file in `sed -n -e '
  8021. /^OBJS = .*\\\\$/ {
  8022. s/^OBJS = //
  8023. :loop
  8024. s/\\\\$//
  8025. p
  8026. n
  8027. /\\\\$/ b loop
  8028. p
  8029. }
  8030. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  8031. do
  8032. dirpart="${dirmf}/${file}"
  8033. dirpart="${dirpart%/*}"
  8034. if [ "${dirpart}" != "${dirmf}" ]; then
  8035. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  8036. fi
  8037. file="${file##*/}"
  8038. suffix=${file##*.}
  8039. base=${file%%.*}
  8040. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  8041. if ! test -f "$dirpart/.deps/$base.Po"; then
  8042. echo '# dummy' > "$dirpart/.deps/$base.Po"
  8043. #Remove the .o file, because it needs to be recompiled for its dependancies.
  8044. if test -f "$dirpart/${base}.${suffix}"; then
  8045. rm -f "$dirpart/${base}.${suffix}"
  8046. fi
  8047. fi
  8048. echo "include .${dirpart#${dirmf}}/.deps/$base.Po" >> "${dirmf}/.deps/includes"
  8049. done
  8050. done
  8051. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  8052. GIT_REQUIRED=1
  8053. if [ "$GIT_REQUIRED" = "1" ]; then
  8054. if ! test -d .git; then
  8055. echo ""
  8056. echo ""
  8057. echo "You have downloaded a GIT version of wraith."
  8058. echo "Either 'git clone' from a git repository or download a source tarball"
  8059. echo "A distribution version can be found at https://github.com/wraith/wraith/wiki/Download"
  8060. echo ""
  8061. echo ""
  8062. exit 1
  8063. fi
  8064. fi
  8065. if test -d .git; then
  8066. git submodule init || exit 1
  8067. git submodule update || exit 1
  8068. git submodule foreach --recursive git clean -fdx || exit 1
  8069. # Restore as it may have been removed by an older 'make distclean'
  8070. if ! test -f src/response.h; then
  8071. git checkout src/response.h || exit 1
  8072. fi
  8073. fi
  8074. export CC CXX
  8075. if [ -f lib/bdlib/configure ]; then
  8076. subdirs="$subdirs lib/bdlib"
  8077. fi
  8078. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  8079. subdirs="$subdirs lib/libelf"
  8080. fi
  8081. cat >confcache <<\_ACEOF
  8082. # This file is a shell script that caches the results of configure
  8083. # tests run on this system so they can be shared between configure
  8084. # scripts and configure runs, see configure's option --config-cache.
  8085. # It is not useful on other systems. If it contains results you don't
  8086. # want to keep, you may remove or edit it.
  8087. #
  8088. # build/config.status only pays attention to the cache file if you give it
  8089. # the --recheck option to rerun configure.
  8090. #
  8091. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8092. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8093. # following values.
  8094. _ACEOF
  8095. # The following way of writing the cache mishandles newlines in values,
  8096. # but we know of no workaround that is simple, portable, and efficient.
  8097. # So, we kill variables containing newlines.
  8098. # Ultrix sh set writes to stderr and can't be redirected directly,
  8099. # and sets the high bit in the cache file unless we assign to the vars.
  8100. (
  8101. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8102. eval ac_val=\$$ac_var
  8103. case $ac_val in #(
  8104. *${as_nl}*)
  8105. case $ac_var in #(
  8106. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8107. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8108. esac
  8109. case $ac_var in #(
  8110. _ | IFS | as_nl) ;; #(
  8111. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8112. *) { eval $ac_var=; unset $ac_var;} ;;
  8113. esac ;;
  8114. esac
  8115. done
  8116. (set) 2>&1 |
  8117. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8118. *${as_nl}ac_space=\ *)
  8119. # `set' does not quote correctly, so add quotes: double-quote
  8120. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8121. sed -n \
  8122. "s/'/'\\\\''/g;
  8123. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8124. ;; #(
  8125. *)
  8126. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8127. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8128. ;;
  8129. esac |
  8130. sort
  8131. ) |
  8132. sed '
  8133. /^ac_cv_env_/b end
  8134. t clear
  8135. :clear
  8136. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8137. t end
  8138. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8139. :end' >>confcache
  8140. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8141. if test -w "$cache_file"; then
  8142. if test "x$cache_file" != "x/dev/null"; then
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8144. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8145. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8146. cat confcache >"$cache_file"
  8147. else
  8148. case $cache_file in #(
  8149. */* | ?:*)
  8150. mv -f confcache "$cache_file"$$ &&
  8151. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8152. *)
  8153. mv -f confcache "$cache_file" ;;
  8154. esac
  8155. fi
  8156. fi
  8157. else
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8159. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8160. fi
  8161. fi
  8162. rm -f confcache
  8163. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8164. # Let make expand exec_prefix.
  8165. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8166. DEFS=-DHAVE_CONFIG_H
  8167. ac_libobjs=
  8168. ac_ltlibobjs=
  8169. U=
  8170. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8171. # 1. Remove the extension, and $U if already installed.
  8172. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8173. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8174. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8175. # will be set to the directory where LIBOBJS objects are built.
  8176. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8177. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8178. done
  8179. LIBOBJS=$ac_libobjs
  8180. LTLIBOBJS=$ac_ltlibobjs
  8181. : "${CONFIG_STATUS=./build/config.status}"
  8182. ac_write_fail=0
  8183. ac_clean_files_save=$ac_clean_files
  8184. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8186. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8187. as_write_fail=0
  8188. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8189. #! $SHELL
  8190. # Generated by $as_me.
  8191. # Run this file to recreate the current configuration.
  8192. # Compiler output produced by configure, useful for debugging
  8193. # configure, is in build/config.log if it exists.
  8194. debug=false
  8195. ac_cs_recheck=false
  8196. ac_cs_silent=false
  8197. SHELL=\${CONFIG_SHELL-$SHELL}
  8198. export SHELL
  8199. _ASEOF
  8200. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8201. ## -------------------- ##
  8202. ## M4sh Initialization. ##
  8203. ## -------------------- ##
  8204. # Be more Bourne compatible
  8205. DUALCASE=1; export DUALCASE # for MKS sh
  8206. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8207. emulate sh
  8208. NULLCMD=:
  8209. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8210. # is contrary to our usage. Disable this feature.
  8211. alias -g '${1+"$@"}'='"$@"'
  8212. setopt NO_GLOB_SUBST
  8213. else
  8214. case `(set -o) 2>/dev/null` in #(
  8215. *posix*) :
  8216. set -o posix ;; #(
  8217. *) :
  8218. ;;
  8219. esac
  8220. fi
  8221. as_nl='
  8222. '
  8223. export as_nl
  8224. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8225. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8226. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8227. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8228. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8229. # but without wasting forks for bash or zsh.
  8230. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8231. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8232. as_echo='print -r --'
  8233. as_echo_n='print -rn --'
  8234. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8235. as_echo='printf %s\n'
  8236. as_echo_n='printf %s'
  8237. else
  8238. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8239. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8240. as_echo_n='/usr/ucb/echo -n'
  8241. else
  8242. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8243. as_echo_n_body='eval
  8244. arg=$1;
  8245. case $arg in #(
  8246. *"$as_nl"*)
  8247. expr "X$arg" : "X\\(.*\\)$as_nl";
  8248. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8249. esac;
  8250. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8251. '
  8252. export as_echo_n_body
  8253. as_echo_n='sh -c $as_echo_n_body as_echo'
  8254. fi
  8255. export as_echo_body
  8256. as_echo='sh -c $as_echo_body as_echo'
  8257. fi
  8258. # The user is always right.
  8259. if test "${PATH_SEPARATOR+set}" != set; then
  8260. PATH_SEPARATOR=:
  8261. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8262. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8263. PATH_SEPARATOR=';'
  8264. }
  8265. fi
  8266. # IFS
  8267. # We need space, tab and new line, in precisely that order. Quoting is
  8268. # there to prevent editors from complaining about space-tab.
  8269. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8270. # splitting by setting IFS to empty value.)
  8271. IFS=" "" $as_nl"
  8272. # Find who we are. Look in the path if we contain no directory separator.
  8273. as_myself=
  8274. case $0 in #((
  8275. *[\\/]* ) as_myself=$0 ;;
  8276. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8277. for as_dir in $PATH
  8278. do
  8279. IFS=$as_save_IFS
  8280. test -z "$as_dir" && as_dir=.
  8281. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8282. done
  8283. IFS=$as_save_IFS
  8284. ;;
  8285. esac
  8286. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8287. # in which case we are not to be found in the path.
  8288. if test "x$as_myself" = x; then
  8289. as_myself=$0
  8290. fi
  8291. if test ! -f "$as_myself"; then
  8292. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8293. exit 1
  8294. fi
  8295. # Unset variables that we do not need and which cause bugs (e.g. in
  8296. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8297. # suppresses any "Segmentation fault" message there. '((' could
  8298. # trigger a bug in pdksh 5.2.14.
  8299. for as_var in BASH_ENV ENV MAIL MAILPATH
  8300. do eval test x\${$as_var+set} = xset \
  8301. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8302. done
  8303. PS1='$ '
  8304. PS2='> '
  8305. PS4='+ '
  8306. # NLS nuisances.
  8307. LC_ALL=C
  8308. export LC_ALL
  8309. LANGUAGE=C
  8310. export LANGUAGE
  8311. # CDPATH.
  8312. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8313. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8314. # ----------------------------------------
  8315. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8316. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8317. # script with STATUS, using 1 if that was 0.
  8318. as_fn_error ()
  8319. {
  8320. as_status=$1; test $as_status -eq 0 && as_status=1
  8321. if test "$4"; then
  8322. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8323. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8324. fi
  8325. $as_echo "$as_me: error: $2" >&2
  8326. as_fn_exit $as_status
  8327. } # as_fn_error
  8328. # as_fn_set_status STATUS
  8329. # -----------------------
  8330. # Set $? to STATUS, without forking.
  8331. as_fn_set_status ()
  8332. {
  8333. return $1
  8334. } # as_fn_set_status
  8335. # as_fn_exit STATUS
  8336. # -----------------
  8337. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8338. as_fn_exit ()
  8339. {
  8340. set +e
  8341. as_fn_set_status $1
  8342. exit $1
  8343. } # as_fn_exit
  8344. # as_fn_unset VAR
  8345. # ---------------
  8346. # Portably unset VAR.
  8347. as_fn_unset ()
  8348. {
  8349. { eval $1=; unset $1;}
  8350. }
  8351. as_unset=as_fn_unset
  8352. # as_fn_append VAR VALUE
  8353. # ----------------------
  8354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8355. # advantage of any shell optimizations that allow amortized linear growth over
  8356. # repeated appends, instead of the typical quadratic growth present in naive
  8357. # implementations.
  8358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8359. eval 'as_fn_append ()
  8360. {
  8361. eval $1+=\$2
  8362. }'
  8363. else
  8364. as_fn_append ()
  8365. {
  8366. eval $1=\$$1\$2
  8367. }
  8368. fi # as_fn_append
  8369. # as_fn_arith ARG...
  8370. # ------------------
  8371. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8372. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8373. # must be portable across $(()) and expr.
  8374. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8375. eval 'as_fn_arith ()
  8376. {
  8377. as_val=$(( $* ))
  8378. }'
  8379. else
  8380. as_fn_arith ()
  8381. {
  8382. as_val=`expr "$@" || test $? -eq 1`
  8383. }
  8384. fi # as_fn_arith
  8385. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8386. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8387. as_expr=expr
  8388. else
  8389. as_expr=false
  8390. fi
  8391. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8392. as_basename=basename
  8393. else
  8394. as_basename=false
  8395. fi
  8396. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8397. as_dirname=dirname
  8398. else
  8399. as_dirname=false
  8400. fi
  8401. as_me=`$as_basename -- "$0" ||
  8402. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8403. X"$0" : 'X\(//\)$' \| \
  8404. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8405. $as_echo X/"$0" |
  8406. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8407. s//\1/
  8408. q
  8409. }
  8410. /^X\/\(\/\/\)$/{
  8411. s//\1/
  8412. q
  8413. }
  8414. /^X\/\(\/\).*/{
  8415. s//\1/
  8416. q
  8417. }
  8418. s/.*/./; q'`
  8419. # Avoid depending upon Character Ranges.
  8420. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8421. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8422. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8423. as_cr_digits='0123456789'
  8424. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8425. ECHO_C= ECHO_N= ECHO_T=
  8426. case `echo -n x` in #(((((
  8427. -n*)
  8428. case `echo 'xy\c'` in
  8429. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8430. xy) ECHO_C='\c';;
  8431. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8432. ECHO_T=' ';;
  8433. esac;;
  8434. *)
  8435. ECHO_N='-n';;
  8436. esac
  8437. rm -f conf$$ conf$$.exe conf$$.file
  8438. if test -d conf$$.dir; then
  8439. rm -f conf$$.dir/conf$$.file
  8440. else
  8441. rm -f conf$$.dir
  8442. mkdir conf$$.dir 2>/dev/null
  8443. fi
  8444. if (echo >conf$$.file) 2>/dev/null; then
  8445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8446. as_ln_s='ln -s'
  8447. # ... but there are two gotchas:
  8448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8450. # In both cases, we have to default to `cp -pR'.
  8451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8452. as_ln_s='cp -pR'
  8453. elif ln conf$$.file conf$$ 2>/dev/null; then
  8454. as_ln_s=ln
  8455. else
  8456. as_ln_s='cp -pR'
  8457. fi
  8458. else
  8459. as_ln_s='cp -pR'
  8460. fi
  8461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8462. rmdir conf$$.dir 2>/dev/null
  8463. # as_fn_mkdir_p
  8464. # -------------
  8465. # Create "$as_dir" as a directory, including parents if necessary.
  8466. as_fn_mkdir_p ()
  8467. {
  8468. case $as_dir in #(
  8469. -*) as_dir=./$as_dir;;
  8470. esac
  8471. test -d "$as_dir" || eval $as_mkdir_p || {
  8472. as_dirs=
  8473. while :; do
  8474. case $as_dir in #(
  8475. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8476. *) as_qdir=$as_dir;;
  8477. esac
  8478. as_dirs="'$as_qdir' $as_dirs"
  8479. as_dir=`$as_dirname -- "$as_dir" ||
  8480. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8481. X"$as_dir" : 'X\(//\)[^/]' \| \
  8482. X"$as_dir" : 'X\(//\)$' \| \
  8483. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8484. $as_echo X"$as_dir" |
  8485. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8486. s//\1/
  8487. q
  8488. }
  8489. /^X\(\/\/\)[^/].*/{
  8490. s//\1/
  8491. q
  8492. }
  8493. /^X\(\/\/\)$/{
  8494. s//\1/
  8495. q
  8496. }
  8497. /^X\(\/\).*/{
  8498. s//\1/
  8499. q
  8500. }
  8501. s/.*/./; q'`
  8502. test -d "$as_dir" && break
  8503. done
  8504. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8505. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8506. } # as_fn_mkdir_p
  8507. if mkdir -p . 2>/dev/null; then
  8508. as_mkdir_p='mkdir -p "$as_dir"'
  8509. else
  8510. test -d ./-p && rmdir ./-p
  8511. as_mkdir_p=false
  8512. fi
  8513. # as_fn_executable_p FILE
  8514. # -----------------------
  8515. # Test if FILE is an executable regular file.
  8516. as_fn_executable_p ()
  8517. {
  8518. test -f "$1" && test -x "$1"
  8519. } # as_fn_executable_p
  8520. as_test_x='test -x'
  8521. as_executable_p=as_fn_executable_p
  8522. # Sed expression to map a string onto a valid CPP name.
  8523. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8524. # Sed expression to map a string onto a valid variable name.
  8525. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8526. exec 6>&1
  8527. ## ----------------------------------- ##
  8528. ## Main body of $CONFIG_STATUS script. ##
  8529. ## ----------------------------------- ##
  8530. _ASEOF
  8531. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8532. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8533. # Save the log message, to keep $0 and so on meaningful, and to
  8534. # report actual input values of CONFIG_FILES etc. instead of their
  8535. # values after options handling.
  8536. ac_log="
  8537. This file was extended by $as_me, which was
  8538. generated by GNU Autoconf 2.69. Invocation command line was
  8539. CONFIG_FILES = $CONFIG_FILES
  8540. CONFIG_HEADERS = $CONFIG_HEADERS
  8541. CONFIG_LINKS = $CONFIG_LINKS
  8542. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8543. $ $0 $@
  8544. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8545. "
  8546. _ACEOF
  8547. case $ac_config_files in *"
  8548. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8549. esac
  8550. case $ac_config_headers in *"
  8551. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8552. esac
  8553. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8554. # Files that build/config.status was made for.
  8555. config_files="$ac_config_files"
  8556. config_headers="$ac_config_headers"
  8557. _ACEOF
  8558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8559. ac_cs_usage="\
  8560. \`$as_me' instantiates files and other configuration actions
  8561. from templates according to the current configuration. Unless the files
  8562. and actions are specified as TAGs, all are instantiated by default.
  8563. Usage: $0 [OPTION]... [TAG]...
  8564. -h, --help print this help, then exit
  8565. -V, --version print version number and configuration settings, then exit
  8566. --config print configuration, then exit
  8567. -q, --quiet, --silent
  8568. do not print progress messages
  8569. -d, --debug don't remove temporary files
  8570. --recheck update $as_me by reconfiguring in the same conditions
  8571. --file=FILE[:TEMPLATE]
  8572. instantiate the configuration file FILE
  8573. --header=FILE[:TEMPLATE]
  8574. instantiate the configuration header FILE
  8575. Configuration files:
  8576. $config_files
  8577. Configuration headers:
  8578. $config_headers
  8579. Report bugs to the package provider."
  8580. _ACEOF
  8581. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8582. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8583. ac_cs_version="\\
  8584. build/config.status
  8585. configured by $0, generated by GNU Autoconf 2.69,
  8586. with options \\"\$ac_cs_config\\"
  8587. Copyright (C) 2012 Free Software Foundation, Inc.
  8588. This build/config.status script is free software; the Free Software Foundation
  8589. gives unlimited permission to copy, distribute and modify it."
  8590. ac_pwd='$ac_pwd'
  8591. srcdir='$srcdir'
  8592. AWK='$AWK'
  8593. test -n "\$AWK" || AWK=awk
  8594. _ACEOF
  8595. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8596. # The default lists apply if the user does not specify any file.
  8597. ac_need_defaults=:
  8598. while test $# != 0
  8599. do
  8600. case $1 in
  8601. --*=?*)
  8602. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8603. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8604. ac_shift=:
  8605. ;;
  8606. --*=)
  8607. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8608. ac_optarg=
  8609. ac_shift=:
  8610. ;;
  8611. *)
  8612. ac_option=$1
  8613. ac_optarg=$2
  8614. ac_shift=shift
  8615. ;;
  8616. esac
  8617. case $ac_option in
  8618. # Handling of the options.
  8619. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8620. ac_cs_recheck=: ;;
  8621. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8622. $as_echo "$ac_cs_version"; exit ;;
  8623. --config | --confi | --conf | --con | --co | --c )
  8624. $as_echo "$ac_cs_config"; exit ;;
  8625. --debug | --debu | --deb | --de | --d | -d )
  8626. debug=: ;;
  8627. --file | --fil | --fi | --f )
  8628. $ac_shift
  8629. case $ac_optarg in
  8630. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8631. '') as_fn_error $? "missing file argument" ;;
  8632. esac
  8633. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8634. ac_need_defaults=false;;
  8635. --header | --heade | --head | --hea )
  8636. $ac_shift
  8637. case $ac_optarg in
  8638. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8639. esac
  8640. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8641. ac_need_defaults=false;;
  8642. --he | --h)
  8643. # Conflict between --help and --header
  8644. as_fn_error $? "ambiguous option: \`$1'
  8645. Try \`$0 --help' for more information.";;
  8646. --help | --hel | -h )
  8647. $as_echo "$ac_cs_usage"; exit ;;
  8648. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8649. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8650. ac_cs_silent=: ;;
  8651. # This is an error.
  8652. -*) as_fn_error $? "unrecognized option: \`$1'
  8653. Try \`$0 --help' for more information." ;;
  8654. *) as_fn_append ac_config_targets " $1"
  8655. ac_need_defaults=false ;;
  8656. esac
  8657. shift
  8658. done
  8659. ac_configure_extra_args=
  8660. if $ac_cs_silent; then
  8661. exec 6>/dev/null
  8662. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8663. fi
  8664. _ACEOF
  8665. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8666. if \$ac_cs_recheck; then
  8667. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8668. shift
  8669. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8670. CONFIG_SHELL='$SHELL'
  8671. export CONFIG_SHELL
  8672. exec "\$@"
  8673. fi
  8674. _ACEOF
  8675. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8676. exec 5>>build/config.log
  8677. {
  8678. echo
  8679. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8680. ## Running $as_me. ##
  8681. _ASBOX
  8682. $as_echo "$ac_log"
  8683. } >&5
  8684. _ACEOF
  8685. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8686. _ACEOF
  8687. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8688. # Handling of arguments.
  8689. for ac_config_target in $ac_config_targets
  8690. do
  8691. case $ac_config_target in
  8692. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8693. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8694. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8695. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8696. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8697. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8698. esac
  8699. done
  8700. # If the user did not use the arguments to specify the items to instantiate,
  8701. # then the envvar interface is used. Set only those that are not.
  8702. # We use the long form for the default assignment because of an extremely
  8703. # bizarre bug on SunOS 4.1.3.
  8704. if $ac_need_defaults; then
  8705. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8706. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8707. fi
  8708. # Have a temporary directory for convenience. Make it in the build tree
  8709. # simply because there is no reason against having it here, and in addition,
  8710. # creating and moving files from /tmp can sometimes cause problems.
  8711. # Hook for its removal unless debugging.
  8712. # Note that there is a small window in which the directory will not be cleaned:
  8713. # after its creation but before its name has been assigned to `$tmp'.
  8714. $debug ||
  8715. {
  8716. tmp= ac_tmp=
  8717. trap 'exit_status=$?
  8718. : "${ac_tmp:=$tmp}"
  8719. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8720. ' 0
  8721. trap 'as_fn_exit 1' 1 2 13 15
  8722. }
  8723. # Create a (secure) tmp directory for tmp files.
  8724. {
  8725. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8726. test -d "$tmp"
  8727. } ||
  8728. {
  8729. tmp=./conf$$-$RANDOM
  8730. (umask 077 && mkdir "$tmp")
  8731. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8732. ac_tmp=$tmp
  8733. # Set up the scripts for CONFIG_FILES section.
  8734. # No need to generate them if there are no CONFIG_FILES.
  8735. # This happens for instance with `./build/config.status config.h'.
  8736. if test -n "$CONFIG_FILES"; then
  8737. ac_cr=`echo X | tr X '\015'`
  8738. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8739. # But we know of no other shell where ac_cr would be empty at this
  8740. # point, so we can use a bashism as a fallback.
  8741. if test "x$ac_cr" = x; then
  8742. eval ac_cr=\$\'\\r\'
  8743. fi
  8744. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8745. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8746. ac_cs_awk_cr='\\r'
  8747. else
  8748. ac_cs_awk_cr=$ac_cr
  8749. fi
  8750. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8751. _ACEOF
  8752. {
  8753. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8754. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8755. echo "_ACEOF"
  8756. } >conf$$subs.sh ||
  8757. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8758. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8759. ac_delim='%!_!# '
  8760. for ac_last_try in false false false false false :; do
  8761. . ./conf$$subs.sh ||
  8762. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8763. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8764. if test $ac_delim_n = $ac_delim_num; then
  8765. break
  8766. elif $ac_last_try; then
  8767. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8768. else
  8769. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8770. fi
  8771. done
  8772. rm -f conf$$subs.sh
  8773. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8774. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8775. _ACEOF
  8776. sed -n '
  8777. h
  8778. s/^/S["/; s/!.*/"]=/
  8779. p
  8780. g
  8781. s/^[^!]*!//
  8782. :repl
  8783. t repl
  8784. s/'"$ac_delim"'$//
  8785. t delim
  8786. :nl
  8787. h
  8788. s/\(.\{148\}\)..*/\1/
  8789. t more1
  8790. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8791. p
  8792. n
  8793. b repl
  8794. :more1
  8795. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8796. p
  8797. g
  8798. s/.\{148\}//
  8799. t nl
  8800. :delim
  8801. h
  8802. s/\(.\{148\}\)..*/\1/
  8803. t more2
  8804. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8805. p
  8806. b
  8807. :more2
  8808. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8809. p
  8810. g
  8811. s/.\{148\}//
  8812. t delim
  8813. ' <conf$$subs.awk | sed '
  8814. /^[^""]/{
  8815. N
  8816. s/\n//
  8817. }
  8818. ' >>$CONFIG_STATUS || ac_write_fail=1
  8819. rm -f conf$$subs.awk
  8820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8821. _ACAWK
  8822. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8823. for (key in S) S_is_set[key] = 1
  8824. FS = ""
  8825. }
  8826. {
  8827. line = $ 0
  8828. nfields = split(line, field, "@")
  8829. substed = 0
  8830. len = length(field[1])
  8831. for (i = 2; i < nfields; i++) {
  8832. key = field[i]
  8833. keylen = length(key)
  8834. if (S_is_set[key]) {
  8835. value = S[key]
  8836. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8837. len += length(value) + length(field[++i])
  8838. substed = 1
  8839. } else
  8840. len += 1 + keylen
  8841. }
  8842. print line
  8843. }
  8844. _ACAWK
  8845. _ACEOF
  8846. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8847. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8848. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8849. else
  8850. cat
  8851. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8852. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8853. _ACEOF
  8854. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8855. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8856. # trailing colons and then remove the whole line if VPATH becomes empty
  8857. # (actually we leave an empty line to preserve line numbers).
  8858. if test "x$srcdir" = x.; then
  8859. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8860. h
  8861. s///
  8862. s/^/:/
  8863. s/[ ]*$/:/
  8864. s/:\$(srcdir):/:/g
  8865. s/:\${srcdir}:/:/g
  8866. s/:@srcdir@:/:/g
  8867. s/^:*//
  8868. s/:*$//
  8869. x
  8870. s/\(=[ ]*\).*/\1/
  8871. G
  8872. s/\n//
  8873. s/^[^=]*=[ ]*$//
  8874. }'
  8875. fi
  8876. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8877. fi # test -n "$CONFIG_FILES"
  8878. # Set up the scripts for CONFIG_HEADERS section.
  8879. # No need to generate them if there are no CONFIG_HEADERS.
  8880. # This happens for instance with `./build/config.status Makefile'.
  8881. if test -n "$CONFIG_HEADERS"; then
  8882. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8883. BEGIN {
  8884. _ACEOF
  8885. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8886. # here-document in build/config.status, that substitutes the proper values into
  8887. # config.h.in to produce config.h.
  8888. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8889. # handling of long lines.
  8890. ac_delim='%!_!# '
  8891. for ac_last_try in false false :; do
  8892. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8893. if test -z "$ac_tt"; then
  8894. break
  8895. elif $ac_last_try; then
  8896. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8897. else
  8898. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8899. fi
  8900. done
  8901. # For the awk script, D is an array of macro values keyed by name,
  8902. # likewise P contains macro parameters if any. Preserve backslash
  8903. # newline sequences.
  8904. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8905. sed -n '
  8906. s/.\{148\}/&'"$ac_delim"'/g
  8907. t rset
  8908. :rset
  8909. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8910. t def
  8911. d
  8912. :def
  8913. s/\\$//
  8914. t bsnl
  8915. s/["\\]/\\&/g
  8916. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8917. D["\1"]=" \3"/p
  8918. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8919. d
  8920. :bsnl
  8921. s/["\\]/\\&/g
  8922. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8923. D["\1"]=" \3\\\\\\n"\\/p
  8924. t cont
  8925. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8926. t cont
  8927. d
  8928. :cont
  8929. n
  8930. s/.\{148\}/&'"$ac_delim"'/g
  8931. t clear
  8932. :clear
  8933. s/\\$//
  8934. t bsnlc
  8935. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8936. d
  8937. :bsnlc
  8938. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8939. b cont
  8940. ' <build/confdefs.h | sed '
  8941. s/'"$ac_delim"'/"\\\
  8942. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8943. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8944. for (key in D) D_is_set[key] = 1
  8945. FS = ""
  8946. }
  8947. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8948. line = \$ 0
  8949. split(line, arg, " ")
  8950. if (arg[1] == "#") {
  8951. defundef = arg[2]
  8952. mac1 = arg[3]
  8953. } else {
  8954. defundef = substr(arg[1], 2)
  8955. mac1 = arg[2]
  8956. }
  8957. split(mac1, mac2, "(") #)
  8958. macro = mac2[1]
  8959. prefix = substr(line, 1, index(line, defundef) - 1)
  8960. if (D_is_set[macro]) {
  8961. # Preserve the white space surrounding the "#".
  8962. print prefix "define", macro P[macro] D[macro]
  8963. next
  8964. } else {
  8965. # Replace #undef with comments. This is necessary, for example,
  8966. # in the case of _POSIX_SOURCE, which is predefined and required
  8967. # on some systems where configure will not decide to define it.
  8968. if (defundef == "undef") {
  8969. print "/*", prefix defundef, macro, "*/"
  8970. next
  8971. }
  8972. }
  8973. }
  8974. { print }
  8975. _ACAWK
  8976. _ACEOF
  8977. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8978. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8979. fi # test -n "$CONFIG_HEADERS"
  8980. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8981. shift
  8982. for ac_tag
  8983. do
  8984. case $ac_tag in
  8985. :[FHLC]) ac_mode=$ac_tag; continue;;
  8986. esac
  8987. case $ac_mode$ac_tag in
  8988. :[FHL]*:*);;
  8989. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8990. :[FH]-) ac_tag=-:-;;
  8991. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8992. esac
  8993. ac_save_IFS=$IFS
  8994. IFS=:
  8995. set x $ac_tag
  8996. IFS=$ac_save_IFS
  8997. shift
  8998. ac_file=$1
  8999. shift
  9000. case $ac_mode in
  9001. :L) ac_source=$1;;
  9002. :[FH])
  9003. ac_file_inputs=
  9004. for ac_f
  9005. do
  9006. case $ac_f in
  9007. -) ac_f="$ac_tmp/stdin";;
  9008. *) # Look for the file first in the build tree, then in the source tree
  9009. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9010. # because $ac_f cannot contain `:'.
  9011. test -f "$ac_f" ||
  9012. case $ac_f in
  9013. [\\/$]*) false;;
  9014. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9015. esac ||
  9016. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9017. esac
  9018. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9019. as_fn_append ac_file_inputs " '$ac_f'"
  9020. done
  9021. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9022. # use $as_me), people would be surprised to read:
  9023. # /* config.h. Generated by build/config.status. */
  9024. configure_input='Generated from '`
  9025. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9026. `' by configure.'
  9027. if test x"$ac_file" != x-; then
  9028. configure_input="$ac_file. $configure_input"
  9029. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9030. $as_echo "$as_me: creating $ac_file" >&6;}
  9031. fi
  9032. # Neutralize special characters interpreted by sed in replacement strings.
  9033. case $configure_input in #(
  9034. *\&* | *\|* | *\\* )
  9035. ac_sed_conf_input=`$as_echo "$configure_input" |
  9036. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9037. *) ac_sed_conf_input=$configure_input;;
  9038. esac
  9039. case $ac_tag in
  9040. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9041. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9042. esac
  9043. ;;
  9044. esac
  9045. ac_dir=`$as_dirname -- "$ac_file" ||
  9046. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9047. X"$ac_file" : 'X\(//\)[^/]' \| \
  9048. X"$ac_file" : 'X\(//\)$' \| \
  9049. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9050. $as_echo X"$ac_file" |
  9051. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9052. s//\1/
  9053. q
  9054. }
  9055. /^X\(\/\/\)[^/].*/{
  9056. s//\1/
  9057. q
  9058. }
  9059. /^X\(\/\/\)$/{
  9060. s//\1/
  9061. q
  9062. }
  9063. /^X\(\/\).*/{
  9064. s//\1/
  9065. q
  9066. }
  9067. s/.*/./; q'`
  9068. as_dir="$ac_dir"; as_fn_mkdir_p
  9069. ac_builddir=.
  9070. case "$ac_dir" in
  9071. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9072. *)
  9073. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9074. # A ".." for each directory in $ac_dir_suffix.
  9075. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9076. case $ac_top_builddir_sub in
  9077. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9078. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9079. esac ;;
  9080. esac
  9081. ac_abs_top_builddir=$ac_pwd
  9082. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9083. # for backward compatibility:
  9084. ac_top_builddir=$ac_top_build_prefix
  9085. case $srcdir in
  9086. .) # We are building in place.
  9087. ac_srcdir=.
  9088. ac_top_srcdir=$ac_top_builddir_sub
  9089. ac_abs_top_srcdir=$ac_pwd ;;
  9090. [\\/]* | ?:[\\/]* ) # Absolute name.
  9091. ac_srcdir=$srcdir$ac_dir_suffix;
  9092. ac_top_srcdir=$srcdir
  9093. ac_abs_top_srcdir=$srcdir ;;
  9094. *) # Relative name.
  9095. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9096. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9097. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9098. esac
  9099. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9100. case $ac_mode in
  9101. :F)
  9102. #
  9103. # CONFIG_FILE
  9104. #
  9105. _ACEOF
  9106. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9107. # If the template does not know about datarootdir, expand it.
  9108. # FIXME: This hack should be removed a few years after 2.60.
  9109. ac_datarootdir_hack=; ac_datarootdir_seen=
  9110. ac_sed_dataroot='
  9111. /datarootdir/ {
  9112. p
  9113. q
  9114. }
  9115. /@datadir@/p
  9116. /@docdir@/p
  9117. /@infodir@/p
  9118. /@localedir@/p
  9119. /@mandir@/p'
  9120. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9121. *datarootdir*) ac_datarootdir_seen=yes;;
  9122. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9124. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9125. _ACEOF
  9126. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9127. ac_datarootdir_hack='
  9128. s&@datadir@&$datadir&g
  9129. s&@docdir@&$docdir&g
  9130. s&@infodir@&$infodir&g
  9131. s&@localedir@&$localedir&g
  9132. s&@mandir@&$mandir&g
  9133. s&\\\${datarootdir}&$datarootdir&g' ;;
  9134. esac
  9135. _ACEOF
  9136. # Neutralize VPATH when `$srcdir' = `.'.
  9137. # Shell code in configure.ac might set extrasub.
  9138. # FIXME: do we really want to maintain this feature?
  9139. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9140. ac_sed_extra="$ac_vpsub
  9141. $extrasub
  9142. _ACEOF
  9143. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9144. :t
  9145. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9146. s|@configure_input@|$ac_sed_conf_input|;t t
  9147. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9148. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9149. s&@srcdir@&$ac_srcdir&;t t
  9150. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9151. s&@top_srcdir@&$ac_top_srcdir&;t t
  9152. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9153. s&@builddir@&$ac_builddir&;t t
  9154. s&@abs_builddir@&$ac_abs_builddir&;t t
  9155. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9156. $ac_datarootdir_hack
  9157. "
  9158. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9159. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9160. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9161. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9162. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9163. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9165. which seems to be undefined. Please make sure it is defined" >&5
  9166. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9167. which seems to be undefined. Please make sure it is defined" >&2;}
  9168. rm -f "$ac_tmp/stdin"
  9169. case $ac_file in
  9170. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9171. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9172. esac \
  9173. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9174. ;;
  9175. :H)
  9176. #
  9177. # CONFIG_HEADER
  9178. #
  9179. if test x"$ac_file" != x-; then
  9180. {
  9181. $as_echo "/* $configure_input */" \
  9182. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9183. } >"$ac_tmp/config.h" \
  9184. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9185. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9186. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9187. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9188. else
  9189. rm -f "$ac_file"
  9190. mv "$ac_tmp/config.h" "$ac_file" \
  9191. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9192. fi
  9193. else
  9194. $as_echo "/* $configure_input */" \
  9195. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9196. || as_fn_error $? "could not create -" "$LINENO" 5
  9197. fi
  9198. ;;
  9199. esac
  9200. done # for ac_tag
  9201. as_fn_exit 0
  9202. _ACEOF
  9203. ac_clean_files=$ac_clean_files_save
  9204. test $ac_write_fail = 0 ||
  9205. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9206. # configure is writing to build/config.log, and then calls build/config.status.
  9207. # build/config.status does its own redirection, appending to build/config.log.
  9208. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9209. # by configure, so build/config.status won't be able to write to it; its
  9210. # output is simply discarded. So we exec the FD to /dev/null,
  9211. # effectively closing build/config.log, so it can be properly (re)opened and
  9212. # appended to by build/config.status. When coming back to configure, we
  9213. # need to make the FD available again.
  9214. if test "$no_create" != yes; then
  9215. ac_cs_success=:
  9216. ac_config_status_args=
  9217. test "$silent" = yes &&
  9218. ac_config_status_args="$ac_config_status_args --quiet"
  9219. exec 5>/dev/null
  9220. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9221. exec 5>>build/config.log
  9222. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9223. # would make configure fail if this is the last instruction.
  9224. $ac_cs_success || as_fn_exit 1
  9225. fi
  9226. #
  9227. # CONFIG_SUBDIRS section.
  9228. #
  9229. if test "$no_recursion" != yes; then
  9230. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9231. # so they do not pile up.
  9232. ac_sub_configure_args=
  9233. ac_prev=
  9234. eval "set x $ac_configure_args"
  9235. shift
  9236. for ac_arg
  9237. do
  9238. if test -n "$ac_prev"; then
  9239. ac_prev=
  9240. continue
  9241. fi
  9242. case $ac_arg in
  9243. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9244. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9245. ac_prev=cache_file ;;
  9246. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9247. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9248. | --c=*)
  9249. ;;
  9250. --config-cache | -C)
  9251. ;;
  9252. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9253. ac_prev=srcdir ;;
  9254. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9255. ;;
  9256. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9257. ac_prev=prefix ;;
  9258. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9259. ;;
  9260. --disable-option-checking)
  9261. ;;
  9262. *)
  9263. case $ac_arg in
  9264. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9265. esac
  9266. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9267. esac
  9268. done
  9269. # Always prepend --prefix to ensure using the same prefix
  9270. # in subdir configurations.
  9271. ac_arg="--prefix=$prefix"
  9272. case $ac_arg in
  9273. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9274. esac
  9275. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9276. # Pass --silent
  9277. if test "$silent" = yes; then
  9278. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9279. fi
  9280. # Always prepend --disable-option-checking to silence warnings, since
  9281. # different subdirs can have different --enable and --with options.
  9282. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9283. ac_popdir=`pwd`
  9284. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9285. # Do not complain, so a configure script can configure whichever
  9286. # parts of a large source tree are present.
  9287. test -d "$srcdir/$ac_dir" || continue
  9288. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9289. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9290. $as_echo "$ac_msg" >&6
  9291. as_dir="$ac_dir"; as_fn_mkdir_p
  9292. ac_builddir=.
  9293. case "$ac_dir" in
  9294. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9295. *)
  9296. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9297. # A ".." for each directory in $ac_dir_suffix.
  9298. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9299. case $ac_top_builddir_sub in
  9300. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9301. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9302. esac ;;
  9303. esac
  9304. ac_abs_top_builddir=$ac_pwd
  9305. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9306. # for backward compatibility:
  9307. ac_top_builddir=$ac_top_build_prefix
  9308. case $srcdir in
  9309. .) # We are building in place.
  9310. ac_srcdir=.
  9311. ac_top_srcdir=$ac_top_builddir_sub
  9312. ac_abs_top_srcdir=$ac_pwd ;;
  9313. [\\/]* | ?:[\\/]* ) # Absolute name.
  9314. ac_srcdir=$srcdir$ac_dir_suffix;
  9315. ac_top_srcdir=$srcdir
  9316. ac_abs_top_srcdir=$srcdir ;;
  9317. *) # Relative name.
  9318. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9319. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9320. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9321. esac
  9322. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9323. cd "$ac_dir"
  9324. # Check for guested configure; otherwise get Cygnus style configure.
  9325. if test -f "$ac_srcdir/configure.gnu"; then
  9326. ac_sub_configure=$ac_srcdir/configure.gnu
  9327. elif test -f "$ac_srcdir/configure"; then
  9328. ac_sub_configure=$ac_srcdir/configure
  9329. elif test -f "$ac_srcdir/configure.in"; then
  9330. # This should be Cygnus configure.
  9331. ac_sub_configure=$ac_aux_dir/configure
  9332. else
  9333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9334. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9335. ac_sub_configure=
  9336. fi
  9337. # The recursion is here.
  9338. if test -n "$ac_sub_configure"; then
  9339. # Make the cache file name correct relative to the subdirectory.
  9340. case $cache_file in
  9341. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9342. *) # Relative name.
  9343. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9344. esac
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  9346. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9347. # The eval makes quoting arguments work.
  9348. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9349. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9350. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9351. fi
  9352. cd "$ac_popdir"
  9353. done
  9354. fi
  9355. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9357. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9358. fi
  9359. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9360. SED="$SED" src/generate_defs.sh || exit 1