configure 285 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321
  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. ac_func_list=
  578. enable_option_checking=no
  579. ac_subst_vars='LTLIBOBJS
  580. subdirs
  581. MOD_UPDIR
  582. NUMVER
  583. VERSION
  584. LIBOBJS
  585. TCL_LIBS
  586. TCL_REQS
  587. DEFAULT_MAKE
  588. TCLINCFN
  589. TCL_INCLUDES
  590. TCLLIBFN
  591. TCLLIB
  592. SSL_LIBS
  593. SSL_INCLUDES
  594. EGREP
  595. GREP
  596. DEBCXXFLAGS
  597. CCDEBUG
  598. STATIC
  599. BUILDARCH
  600. BUILDOS
  601. DISTCC
  602. CCACHE
  603. UNAME
  604. DIFF
  605. STRIP
  606. OBJCOPY
  607. BASENAME
  608. AWK
  609. HEAD_1
  610. SED
  611. SET_MAKE
  612. GCC4DEB
  613. GCC3DEB
  614. GCC3
  615. CCDEPMODE
  616. HAVE_CXX11
  617. CXXCPP
  618. OBJEXT
  619. EXEEXT
  620. ac_ct_CXX
  621. CPPFLAGS
  622. LDFLAGS
  623. CXXFLAGS
  624. CXX
  625. egg_ac_parameters
  626. target_alias
  627. host_alias
  628. build_alias
  629. LIBS
  630. ECHO_T
  631. ECHO_N
  632. ECHO_C
  633. DEFS
  634. mandir
  635. localedir
  636. libdir
  637. psdir
  638. pdfdir
  639. dvidir
  640. htmldir
  641. infodir
  642. docdir
  643. oldincludedir
  644. includedir
  645. localstatedir
  646. sharedstatedir
  647. sysconfdir
  648. datadir
  649. datarootdir
  650. libexecdir
  651. sbindir
  652. bindir
  653. program_transform_name
  654. prefix
  655. exec_prefix
  656. PACKAGE_URL
  657. PACKAGE_BUGREPORT
  658. PACKAGE_STRING
  659. PACKAGE_VERSION
  660. PACKAGE_TARNAME
  661. PACKAGE_NAME
  662. PATH_SEPARATOR
  663. SHELL'
  664. ac_subst_files=''
  665. ac_user_opts='
  666. enable_option_checking
  667. enable_ipv6
  668. with_openssl
  669. with_tcllib
  670. with_tclinc
  671. enable_script_tcl
  672. '
  673. ac_precious_vars='build_alias
  674. host_alias
  675. target_alias
  676. CXX
  677. CXXFLAGS
  678. LDFLAGS
  679. LIBS
  680. CPPFLAGS
  681. CCC
  682. CXXCPP'
  683. ac_subdirs_all='lib/bdlib'
  684. # Initialize some variables set by options.
  685. ac_init_help=
  686. ac_init_version=false
  687. ac_unrecognized_opts=
  688. ac_unrecognized_sep=
  689. # The variables have the same names as the options, with
  690. # dashes changed to underlines.
  691. cache_file=/dev/null
  692. exec_prefix=NONE
  693. no_create=
  694. no_recursion=
  695. prefix=NONE
  696. program_prefix=NONE
  697. program_suffix=NONE
  698. program_transform_name=s,x,x,
  699. silent=
  700. site=
  701. srcdir=
  702. verbose=
  703. x_includes=NONE
  704. x_libraries=NONE
  705. # Installation directory options.
  706. # These are left unexpanded so users can "make install exec_prefix=/foo"
  707. # and all the variables that are supposed to be based on exec_prefix
  708. # by default will actually change.
  709. # Use braces instead of parens because sh, perl, etc. also accept them.
  710. # (The list follows the same order as the GNU Coding Standards.)
  711. bindir='${exec_prefix}/bin'
  712. sbindir='${exec_prefix}/sbin'
  713. libexecdir='${exec_prefix}/libexec'
  714. datarootdir='${prefix}/share'
  715. datadir='${datarootdir}'
  716. sysconfdir='${prefix}/etc'
  717. sharedstatedir='${prefix}/com'
  718. localstatedir='${prefix}/var'
  719. includedir='${prefix}/include'
  720. oldincludedir='/usr/include'
  721. docdir='${datarootdir}/doc/${PACKAGE}'
  722. infodir='${datarootdir}/info'
  723. htmldir='${docdir}'
  724. dvidir='${docdir}'
  725. pdfdir='${docdir}'
  726. psdir='${docdir}'
  727. libdir='${exec_prefix}/lib'
  728. localedir='${datarootdir}/locale'
  729. mandir='${datarootdir}/man'
  730. ac_prev=
  731. ac_dashdash=
  732. for ac_option
  733. do
  734. # If the previous option needs an argument, assign it.
  735. if test -n "$ac_prev"; then
  736. eval $ac_prev=\$ac_option
  737. ac_prev=
  738. continue
  739. fi
  740. case $ac_option in
  741. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  742. *=) ac_optarg= ;;
  743. *) ac_optarg=yes ;;
  744. esac
  745. # Accept the important Cygnus configure options, so we can diagnose typos.
  746. case $ac_dashdash$ac_option in
  747. --)
  748. ac_dashdash=yes ;;
  749. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  750. ac_prev=bindir ;;
  751. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  752. bindir=$ac_optarg ;;
  753. -build | --build | --buil | --bui | --bu)
  754. ac_prev=build_alias ;;
  755. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  756. build_alias=$ac_optarg ;;
  757. -cache-file | --cache-file | --cache-fil | --cache-fi \
  758. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  759. ac_prev=cache_file ;;
  760. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  761. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  762. cache_file=$ac_optarg ;;
  763. --config-cache | -C)
  764. cache_file=config.cache ;;
  765. -datadir | --datadir | --datadi | --datad)
  766. ac_prev=datadir ;;
  767. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  768. datadir=$ac_optarg ;;
  769. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  770. | --dataroo | --dataro | --datar)
  771. ac_prev=datarootdir ;;
  772. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  773. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  774. datarootdir=$ac_optarg ;;
  775. -disable-* | --disable-*)
  776. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  777. # Reject names that are not valid shell variable names.
  778. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  779. as_fn_error $? "invalid feature name: $ac_useropt"
  780. ac_useropt_orig=$ac_useropt
  781. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  782. case $ac_user_opts in
  783. *"
  784. "enable_$ac_useropt"
  785. "*) ;;
  786. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  787. ac_unrecognized_sep=', ';;
  788. esac
  789. eval enable_$ac_useropt=no ;;
  790. -docdir | --docdir | --docdi | --doc | --do)
  791. ac_prev=docdir ;;
  792. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  793. docdir=$ac_optarg ;;
  794. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  795. ac_prev=dvidir ;;
  796. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  797. dvidir=$ac_optarg ;;
  798. -enable-* | --enable-*)
  799. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  800. # Reject names that are not valid shell variable names.
  801. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  802. as_fn_error $? "invalid feature name: $ac_useropt"
  803. ac_useropt_orig=$ac_useropt
  804. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  805. case $ac_user_opts in
  806. *"
  807. "enable_$ac_useropt"
  808. "*) ;;
  809. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  810. ac_unrecognized_sep=', ';;
  811. esac
  812. eval enable_$ac_useropt=\$ac_optarg ;;
  813. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  814. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  815. | --exec | --exe | --ex)
  816. ac_prev=exec_prefix ;;
  817. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  818. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  819. | --exec=* | --exe=* | --ex=*)
  820. exec_prefix=$ac_optarg ;;
  821. -gas | --gas | --ga | --g)
  822. # Obsolete; use --with-gas.
  823. with_gas=yes ;;
  824. -help | --help | --hel | --he | -h)
  825. ac_init_help=long ;;
  826. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  827. ac_init_help=recursive ;;
  828. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  829. ac_init_help=short ;;
  830. -host | --host | --hos | --ho)
  831. ac_prev=host_alias ;;
  832. -host=* | --host=* | --hos=* | --ho=*)
  833. host_alias=$ac_optarg ;;
  834. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  835. ac_prev=htmldir ;;
  836. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  837. | --ht=*)
  838. htmldir=$ac_optarg ;;
  839. -includedir | --includedir | --includedi | --included | --include \
  840. | --includ | --inclu | --incl | --inc)
  841. ac_prev=includedir ;;
  842. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  843. | --includ=* | --inclu=* | --incl=* | --inc=*)
  844. includedir=$ac_optarg ;;
  845. -infodir | --infodir | --infodi | --infod | --info | --inf)
  846. ac_prev=infodir ;;
  847. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  848. infodir=$ac_optarg ;;
  849. -libdir | --libdir | --libdi | --libd)
  850. ac_prev=libdir ;;
  851. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  852. libdir=$ac_optarg ;;
  853. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  854. | --libexe | --libex | --libe)
  855. ac_prev=libexecdir ;;
  856. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  857. | --libexe=* | --libex=* | --libe=*)
  858. libexecdir=$ac_optarg ;;
  859. -localedir | --localedir | --localedi | --localed | --locale)
  860. ac_prev=localedir ;;
  861. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  862. localedir=$ac_optarg ;;
  863. -localstatedir | --localstatedir | --localstatedi | --localstated \
  864. | --localstate | --localstat | --localsta | --localst | --locals)
  865. ac_prev=localstatedir ;;
  866. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  867. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  868. localstatedir=$ac_optarg ;;
  869. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  870. ac_prev=mandir ;;
  871. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  872. mandir=$ac_optarg ;;
  873. -nfp | --nfp | --nf)
  874. # Obsolete; use --without-fp.
  875. with_fp=no ;;
  876. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  877. | --no-cr | --no-c | -n)
  878. no_create=yes ;;
  879. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  880. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  881. no_recursion=yes ;;
  882. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  883. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  884. | --oldin | --oldi | --old | --ol | --o)
  885. ac_prev=oldincludedir ;;
  886. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  887. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  888. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  889. oldincludedir=$ac_optarg ;;
  890. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  891. ac_prev=prefix ;;
  892. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  893. prefix=$ac_optarg ;;
  894. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  895. | --program-pre | --program-pr | --program-p)
  896. ac_prev=program_prefix ;;
  897. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  898. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  899. program_prefix=$ac_optarg ;;
  900. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  901. | --program-suf | --program-su | --program-s)
  902. ac_prev=program_suffix ;;
  903. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  904. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  905. program_suffix=$ac_optarg ;;
  906. -program-transform-name | --program-transform-name \
  907. | --program-transform-nam | --program-transform-na \
  908. | --program-transform-n | --program-transform- \
  909. | --program-transform | --program-transfor \
  910. | --program-transfo | --program-transf \
  911. | --program-trans | --program-tran \
  912. | --progr-tra | --program-tr | --program-t)
  913. ac_prev=program_transform_name ;;
  914. -program-transform-name=* | --program-transform-name=* \
  915. | --program-transform-nam=* | --program-transform-na=* \
  916. | --program-transform-n=* | --program-transform-=* \
  917. | --program-transform=* | --program-transfor=* \
  918. | --program-transfo=* | --program-transf=* \
  919. | --program-trans=* | --program-tran=* \
  920. | --progr-tra=* | --program-tr=* | --program-t=*)
  921. program_transform_name=$ac_optarg ;;
  922. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  923. ac_prev=pdfdir ;;
  924. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  925. pdfdir=$ac_optarg ;;
  926. -psdir | --psdir | --psdi | --psd | --ps)
  927. ac_prev=psdir ;;
  928. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  929. psdir=$ac_optarg ;;
  930. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  931. | -silent | --silent | --silen | --sile | --sil)
  932. silent=yes ;;
  933. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  934. ac_prev=sbindir ;;
  935. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  936. | --sbi=* | --sb=*)
  937. sbindir=$ac_optarg ;;
  938. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  939. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  940. | --sharedst | --shareds | --shared | --share | --shar \
  941. | --sha | --sh)
  942. ac_prev=sharedstatedir ;;
  943. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  944. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  945. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  946. | --sha=* | --sh=*)
  947. sharedstatedir=$ac_optarg ;;
  948. -site | --site | --sit)
  949. ac_prev=site ;;
  950. -site=* | --site=* | --sit=*)
  951. site=$ac_optarg ;;
  952. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  953. ac_prev=srcdir ;;
  954. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  955. srcdir=$ac_optarg ;;
  956. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  957. | --syscon | --sysco | --sysc | --sys | --sy)
  958. ac_prev=sysconfdir ;;
  959. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  960. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  961. sysconfdir=$ac_optarg ;;
  962. -target | --target | --targe | --targ | --tar | --ta | --t)
  963. ac_prev=target_alias ;;
  964. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  965. target_alias=$ac_optarg ;;
  966. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  967. verbose=yes ;;
  968. -version | --version | --versio | --versi | --vers | -V)
  969. ac_init_version=: ;;
  970. -with-* | --with-*)
  971. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  972. # Reject names that are not valid shell variable names.
  973. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  974. as_fn_error $? "invalid package name: $ac_useropt"
  975. ac_useropt_orig=$ac_useropt
  976. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  977. case $ac_user_opts in
  978. *"
  979. "with_$ac_useropt"
  980. "*) ;;
  981. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  982. ac_unrecognized_sep=', ';;
  983. esac
  984. eval with_$ac_useropt=\$ac_optarg ;;
  985. -without-* | --without-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error $? "invalid package name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "with_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval with_$ac_useropt=no ;;
  1000. --x)
  1001. # Obsolete; use --with-x.
  1002. with_x=yes ;;
  1003. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1004. | --x-incl | --x-inc | --x-in | --x-i)
  1005. ac_prev=x_includes ;;
  1006. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1007. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1008. x_includes=$ac_optarg ;;
  1009. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1010. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1011. ac_prev=x_libraries ;;
  1012. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1013. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1014. x_libraries=$ac_optarg ;;
  1015. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1016. Try \`$0 --help' for more information"
  1017. ;;
  1018. *=*)
  1019. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1020. # Reject names that are not valid shell variable names.
  1021. case $ac_envvar in #(
  1022. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1023. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1024. esac
  1025. eval $ac_envvar=\$ac_optarg
  1026. export $ac_envvar ;;
  1027. *)
  1028. # FIXME: should be removed in autoconf 3.0.
  1029. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1030. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1031. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1032. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1033. ;;
  1034. esac
  1035. done
  1036. if test -n "$ac_prev"; then
  1037. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1038. as_fn_error $? "missing argument to $ac_option"
  1039. fi
  1040. if test -n "$ac_unrecognized_opts"; then
  1041. case $enable_option_checking in
  1042. no) ;;
  1043. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1044. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1045. esac
  1046. fi
  1047. # Check all directory arguments for consistency.
  1048. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1049. datadir sysconfdir sharedstatedir localstatedir includedir \
  1050. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1051. libdir localedir mandir
  1052. do
  1053. eval ac_val=\$$ac_var
  1054. # Remove trailing slashes.
  1055. case $ac_val in
  1056. */ )
  1057. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1058. eval $ac_var=\$ac_val;;
  1059. esac
  1060. # Be sure to have absolute directory names.
  1061. case $ac_val in
  1062. [\\/$]* | ?:[\\/]* ) continue;;
  1063. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1064. esac
  1065. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1066. done
  1067. # There might be people who depend on the old broken behavior: `$host'
  1068. # used to hold the argument of --host etc.
  1069. # FIXME: To remove some day.
  1070. build=$build_alias
  1071. host=$host_alias
  1072. target=$target_alias
  1073. # FIXME: To remove some day.
  1074. if test "x$host_alias" != x; then
  1075. if test "x$build_alias" = x; then
  1076. cross_compiling=maybe
  1077. elif test "x$build_alias" != "x$host_alias"; then
  1078. cross_compiling=yes
  1079. fi
  1080. fi
  1081. ac_tool_prefix=
  1082. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1083. test "$silent" = yes && exec 6>/dev/null
  1084. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1085. ac_ls_di=`ls -di .` &&
  1086. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1087. as_fn_error $? "working directory cannot be determined"
  1088. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1089. as_fn_error $? "pwd does not report name of working directory"
  1090. # Find the source files, if location was not specified.
  1091. if test -z "$srcdir"; then
  1092. ac_srcdir_defaulted=yes
  1093. # Try the directory containing this script, then the parent directory.
  1094. ac_confdir=`$as_dirname -- "$as_myself" ||
  1095. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1096. X"$as_myself" : 'X\(//\)[^/]' \| \
  1097. X"$as_myself" : 'X\(//\)$' \| \
  1098. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1099. $as_echo X"$as_myself" |
  1100. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1101. s//\1/
  1102. q
  1103. }
  1104. /^X\(\/\/\)[^/].*/{
  1105. s//\1/
  1106. q
  1107. }
  1108. /^X\(\/\/\)$/{
  1109. s//\1/
  1110. q
  1111. }
  1112. /^X\(\/\).*/{
  1113. s//\1/
  1114. q
  1115. }
  1116. s/.*/./; q'`
  1117. srcdir=$ac_confdir
  1118. if test ! -r "$srcdir/$ac_unique_file"; then
  1119. srcdir=..
  1120. fi
  1121. else
  1122. ac_srcdir_defaulted=no
  1123. fi
  1124. if test ! -r "$srcdir/$ac_unique_file"; then
  1125. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1126. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1127. fi
  1128. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1129. ac_abs_confdir=`(
  1130. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1131. pwd)`
  1132. # When building in place, set srcdir=.
  1133. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1134. srcdir=.
  1135. fi
  1136. # Remove unnecessary trailing slashes from srcdir.
  1137. # Double slashes in file names in object file debugging info
  1138. # mess up M-x gdb in Emacs.
  1139. case $srcdir in
  1140. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1141. esac
  1142. for ac_var in $ac_precious_vars; do
  1143. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1144. eval ac_env_${ac_var}_value=\$${ac_var}
  1145. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1146. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1147. done
  1148. #
  1149. # Report the --help message.
  1150. #
  1151. if test "$ac_init_help" = "long"; then
  1152. # Omit some internal or obsolete options to make the list less imposing.
  1153. # This message is too long to be a string in the A/UX 3.1 sh.
  1154. cat <<_ACEOF
  1155. \`configure' configures this package to adapt to many kinds of systems.
  1156. Usage: $0 [OPTION]... [VAR=VALUE]...
  1157. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1158. VAR=VALUE. See below for descriptions of some of the useful variables.
  1159. Defaults for the options are specified in brackets.
  1160. Configuration:
  1161. -h, --help display this help and exit
  1162. --help=short display options specific to this package
  1163. --help=recursive display the short help of all the included packages
  1164. -V, --version display version information and exit
  1165. -q, --quiet, --silent do not print \`checking ...' messages
  1166. --cache-file=FILE cache test results in FILE [disabled]
  1167. -C, --config-cache alias for \`--cache-file=config.cache'
  1168. -n, --no-create do not create output files
  1169. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1170. Installation directories:
  1171. --prefix=PREFIX install architecture-independent files in PREFIX
  1172. [$ac_default_prefix]
  1173. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1174. [PREFIX]
  1175. By default, \`make install' will install all the files in
  1176. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1177. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1178. for instance \`--prefix=\$HOME'.
  1179. For better control, use the options below.
  1180. Fine tuning of the installation directories:
  1181. --bindir=DIR user executables [EPREFIX/bin]
  1182. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1183. --libexecdir=DIR program executables [EPREFIX/libexec]
  1184. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1185. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1186. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1187. --libdir=DIR object code libraries [EPREFIX/lib]
  1188. --includedir=DIR C header files [PREFIX/include]
  1189. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1190. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1191. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1192. --infodir=DIR info documentation [DATAROOTDIR/info]
  1193. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1194. --mandir=DIR man documentation [DATAROOTDIR/man]
  1195. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1196. --htmldir=DIR html documentation [DOCDIR]
  1197. --dvidir=DIR dvi documentation [DOCDIR]
  1198. --pdfdir=DIR pdf documentation [DOCDIR]
  1199. --psdir=DIR ps documentation [DOCDIR]
  1200. _ACEOF
  1201. cat <<\_ACEOF
  1202. _ACEOF
  1203. fi
  1204. if test -n "$ac_init_help"; then
  1205. cat <<\_ACEOF
  1206. Optional Features:
  1207. --disable-option-checking ignore unrecognized --enable/--with options
  1208. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1209. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1210. --disable-ipv6 disable IPv6 support
  1211. --disable-script-tcl disable TCL Script support
  1212. Optional Packages:
  1213. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1214. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1215. --with-openssl=PATH Path to OpenSSL
  1216. --with-tcllib=PATH full path to Tcl library
  1217. --with-tclinc=PATH full path to Tcl header
  1218. Some influential environment variables:
  1219. CXX C++ compiler command
  1220. CXXFLAGS C++ compiler flags
  1221. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1222. nonstandard directory <lib dir>
  1223. LIBS libraries to pass to the linker, e.g. -l<library>
  1224. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1225. you have headers in a nonstandard directory <include dir>
  1226. CXXCPP C++ preprocessor
  1227. Use these variables to override the choices made by `configure' or to help
  1228. it to find libraries and programs with nonstandard names/locations.
  1229. Report bugs to the package provider.
  1230. _ACEOF
  1231. ac_status=$?
  1232. fi
  1233. if test "$ac_init_help" = "recursive"; then
  1234. # If there are subdirs, report their specific --help.
  1235. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1236. test -d "$ac_dir" ||
  1237. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1238. continue
  1239. ac_builddir=.
  1240. case "$ac_dir" in
  1241. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1242. *)
  1243. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1244. # A ".." for each directory in $ac_dir_suffix.
  1245. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1246. case $ac_top_builddir_sub in
  1247. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1248. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1249. esac ;;
  1250. esac
  1251. ac_abs_top_builddir=$ac_pwd
  1252. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1253. # for backward compatibility:
  1254. ac_top_builddir=$ac_top_build_prefix
  1255. case $srcdir in
  1256. .) # We are building in place.
  1257. ac_srcdir=.
  1258. ac_top_srcdir=$ac_top_builddir_sub
  1259. ac_abs_top_srcdir=$ac_pwd ;;
  1260. [\\/]* | ?:[\\/]* ) # Absolute name.
  1261. ac_srcdir=$srcdir$ac_dir_suffix;
  1262. ac_top_srcdir=$srcdir
  1263. ac_abs_top_srcdir=$srcdir ;;
  1264. *) # Relative name.
  1265. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1266. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1267. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1268. esac
  1269. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1270. cd "$ac_dir" || { ac_status=$?; continue; }
  1271. # Check for guested configure.
  1272. if test -f "$ac_srcdir/configure.gnu"; then
  1273. echo &&
  1274. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1275. elif test -f "$ac_srcdir/configure"; then
  1276. echo &&
  1277. $SHELL "$ac_srcdir/configure" --help=recursive
  1278. else
  1279. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1280. fi || ac_status=$?
  1281. cd "$ac_pwd" || { ac_status=$?; break; }
  1282. done
  1283. fi
  1284. test -n "$ac_init_help" && exit $ac_status
  1285. if $ac_init_version; then
  1286. cat <<\_ACEOF
  1287. configure
  1288. generated by GNU Autoconf 2.69
  1289. Copyright (C) 2012 Free Software Foundation, Inc.
  1290. This configure script is free software; the Free Software Foundation
  1291. gives unlimited permission to copy, distribute and modify it.
  1292. Copyright (c) Bryan Drewery
  1293. _ACEOF
  1294. exit
  1295. fi
  1296. ## ------------------------ ##
  1297. ## Autoconf initialization. ##
  1298. ## ------------------------ ##
  1299. # ac_fn_cxx_try_compile LINENO
  1300. # ----------------------------
  1301. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1302. ac_fn_cxx_try_compile ()
  1303. {
  1304. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1305. rm -f conftest.$ac_objext
  1306. if { { ac_try="$ac_compile"
  1307. case "(($ac_try" in
  1308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1309. *) ac_try_echo=$ac_try;;
  1310. esac
  1311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1312. $as_echo "$ac_try_echo"; } >&5
  1313. (eval "$ac_compile") 2>conftest.err
  1314. ac_status=$?
  1315. if test -s conftest.err; then
  1316. grep -v '^ *+' conftest.err >conftest.er1
  1317. cat conftest.er1 >&5
  1318. mv -f conftest.er1 conftest.err
  1319. fi
  1320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1321. test $ac_status = 0; } && {
  1322. test -z "$ac_cxx_werror_flag" ||
  1323. test ! -s conftest.err
  1324. } && test -s conftest.$ac_objext; then :
  1325. ac_retval=0
  1326. else
  1327. $as_echo "$as_me: failed program was:" >&5
  1328. sed 's/^/| /' conftest.$ac_ext >&5
  1329. ac_retval=1
  1330. fi
  1331. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1332. as_fn_set_status $ac_retval
  1333. } # ac_fn_cxx_try_compile
  1334. # ac_fn_cxx_try_cpp LINENO
  1335. # ------------------------
  1336. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1337. ac_fn_cxx_try_cpp ()
  1338. {
  1339. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1340. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1341. case "(($ac_try" in
  1342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1343. *) ac_try_echo=$ac_try;;
  1344. esac
  1345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1346. $as_echo "$ac_try_echo"; } >&5
  1347. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1348. ac_status=$?
  1349. if test -s conftest.err; then
  1350. grep -v '^ *+' conftest.err >conftest.er1
  1351. cat conftest.er1 >&5
  1352. mv -f conftest.er1 conftest.err
  1353. fi
  1354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1355. test $ac_status = 0; } > conftest.i && {
  1356. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1357. test ! -s conftest.err
  1358. }; then :
  1359. ac_retval=0
  1360. else
  1361. $as_echo "$as_me: failed program was:" >&5
  1362. sed 's/^/| /' conftest.$ac_ext >&5
  1363. ac_retval=1
  1364. fi
  1365. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1366. as_fn_set_status $ac_retval
  1367. } # ac_fn_cxx_try_cpp
  1368. # ac_fn_cxx_try_run LINENO
  1369. # ------------------------
  1370. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1371. # that executables *can* be run.
  1372. ac_fn_cxx_try_run ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. if { { ac_try="$ac_link"
  1376. case "(($ac_try" in
  1377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1378. *) ac_try_echo=$ac_try;;
  1379. esac
  1380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1381. $as_echo "$ac_try_echo"; } >&5
  1382. (eval "$ac_link") 2>&5
  1383. ac_status=$?
  1384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1385. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1386. { { case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_try") 2>&5
  1393. ac_status=$?
  1394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1395. test $ac_status = 0; }; }; then :
  1396. ac_retval=0
  1397. else
  1398. $as_echo "$as_me: program exited with status $ac_status" >&5
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=$ac_status
  1402. fi
  1403. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1404. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1405. as_fn_set_status $ac_retval
  1406. } # ac_fn_cxx_try_run
  1407. # ac_fn_cxx_try_link LINENO
  1408. # -------------------------
  1409. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1410. ac_fn_cxx_try_link ()
  1411. {
  1412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1413. rm -f conftest.$ac_objext conftest$ac_exeext
  1414. if { { ac_try="$ac_link"
  1415. case "(($ac_try" in
  1416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1417. *) ac_try_echo=$ac_try;;
  1418. esac
  1419. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1420. $as_echo "$ac_try_echo"; } >&5
  1421. (eval "$ac_link") 2>conftest.err
  1422. ac_status=$?
  1423. if test -s conftest.err; then
  1424. grep -v '^ *+' conftest.err >conftest.er1
  1425. cat conftest.er1 >&5
  1426. mv -f conftest.er1 conftest.err
  1427. fi
  1428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1429. test $ac_status = 0; } && {
  1430. test -z "$ac_cxx_werror_flag" ||
  1431. test ! -s conftest.err
  1432. } && test -s conftest$ac_exeext && {
  1433. test "$cross_compiling" = yes ||
  1434. test -x conftest$ac_exeext
  1435. }; then :
  1436. ac_retval=0
  1437. else
  1438. $as_echo "$as_me: failed program was:" >&5
  1439. sed 's/^/| /' conftest.$ac_ext >&5
  1440. ac_retval=1
  1441. fi
  1442. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1443. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1444. # interfere with the next link command; also delete a directory that is
  1445. # left behind by Apple's compiler. We do this before executing the actions.
  1446. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. as_fn_set_status $ac_retval
  1449. } # ac_fn_cxx_try_link
  1450. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1451. # ---------------------------------------------------------
  1452. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1453. # the include files in INCLUDES and setting the cache variable VAR
  1454. # accordingly.
  1455. ac_fn_cxx_check_header_mongrel ()
  1456. {
  1457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1458. if eval \${$3+:} false; then :
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1460. $as_echo_n "checking for $2... " >&6; }
  1461. if eval \${$3+:} false; then :
  1462. $as_echo_n "(cached) " >&6
  1463. fi
  1464. eval ac_res=\$$3
  1465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1466. $as_echo "$ac_res" >&6; }
  1467. else
  1468. # Is the header compilable?
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1470. $as_echo_n "checking $2 usability... " >&6; }
  1471. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1472. /* end build/confdefs.h. */
  1473. $4
  1474. #include <$2>
  1475. _ACEOF
  1476. if ac_fn_cxx_try_compile "$LINENO"; then :
  1477. ac_header_compiler=yes
  1478. else
  1479. ac_header_compiler=no
  1480. fi
  1481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1483. $as_echo "$ac_header_compiler" >&6; }
  1484. # Is the header present?
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1486. $as_echo_n "checking $2 presence... " >&6; }
  1487. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1488. /* end build/confdefs.h. */
  1489. #include <$2>
  1490. _ACEOF
  1491. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1492. ac_header_preproc=yes
  1493. else
  1494. ac_header_preproc=no
  1495. fi
  1496. rm -f conftest.err conftest.i conftest.$ac_ext
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1498. $as_echo "$ac_header_preproc" >&6; }
  1499. # So? What about this header?
  1500. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1501. yes:no: )
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1503. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1505. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1506. ;;
  1507. no:yes:* )
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1509. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1511. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1513. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1515. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1517. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1518. ;;
  1519. esac
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1521. $as_echo_n "checking for $2... " >&6; }
  1522. if eval \${$3+:} false; then :
  1523. $as_echo_n "(cached) " >&6
  1524. else
  1525. eval "$3=\$ac_header_compiler"
  1526. fi
  1527. eval ac_res=\$$3
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1529. $as_echo "$ac_res" >&6; }
  1530. fi
  1531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1532. } # ac_fn_cxx_check_header_mongrel
  1533. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1534. # ---------------------------------------------------------
  1535. # Tests whether HEADER exists and can be compiled using the include files in
  1536. # INCLUDES, setting the cache variable VAR accordingly.
  1537. ac_fn_cxx_check_header_compile ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1541. $as_echo_n "checking for $2... " >&6; }
  1542. if eval \${$3+:} false; then :
  1543. $as_echo_n "(cached) " >&6
  1544. else
  1545. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1546. /* end build/confdefs.h. */
  1547. $4
  1548. #include <$2>
  1549. _ACEOF
  1550. if ac_fn_cxx_try_compile "$LINENO"; then :
  1551. eval "$3=yes"
  1552. else
  1553. eval "$3=no"
  1554. fi
  1555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1556. fi
  1557. eval ac_res=\$$3
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1559. $as_echo "$ac_res" >&6; }
  1560. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1561. } # ac_fn_cxx_check_header_compile
  1562. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1563. # ---------------------------------------------
  1564. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1565. # variable VAR accordingly.
  1566. ac_fn_cxx_check_type ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1570. $as_echo_n "checking for $2... " >&6; }
  1571. if eval \${$3+:} false; then :
  1572. $as_echo_n "(cached) " >&6
  1573. else
  1574. eval "$3=no"
  1575. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end build/confdefs.h. */
  1577. $4
  1578. int
  1579. main ()
  1580. {
  1581. if (sizeof ($2))
  1582. return 0;
  1583. ;
  1584. return 0;
  1585. }
  1586. _ACEOF
  1587. if ac_fn_cxx_try_compile "$LINENO"; then :
  1588. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1589. /* end build/confdefs.h. */
  1590. $4
  1591. int
  1592. main ()
  1593. {
  1594. if (sizeof (($2)))
  1595. return 0;
  1596. ;
  1597. return 0;
  1598. }
  1599. _ACEOF
  1600. if ac_fn_cxx_try_compile "$LINENO"; then :
  1601. else
  1602. eval "$3=yes"
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. fi
  1608. eval ac_res=\$$3
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1610. $as_echo "$ac_res" >&6; }
  1611. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1612. } # ac_fn_cxx_check_type
  1613. # ac_fn_c_find_intX_t LINENO BITS VAR
  1614. # -----------------------------------
  1615. # Finds a signed integer type with width BITS, setting cache variable VAR
  1616. # accordingly.
  1617. ac_fn_c_find_intX_t ()
  1618. {
  1619. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1621. $as_echo_n "checking for int$2_t... " >&6; }
  1622. if eval \${$3+:} false; then :
  1623. $as_echo_n "(cached) " >&6
  1624. else
  1625. eval "$3=no"
  1626. # Order is important - never check a type that is potentially smaller
  1627. # than half of the expected target width.
  1628. for ac_type in int$2_t 'int' 'long int' \
  1629. 'long long int' 'short int' 'signed char'; do
  1630. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1631. /* end build/confdefs.h. */
  1632. $ac_includes_default
  1633. enum { N = $2 / 2 - 1 };
  1634. int
  1635. main ()
  1636. {
  1637. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1638. test_array [0] = 0;
  1639. return test_array [0];
  1640. ;
  1641. return 0;
  1642. }
  1643. _ACEOF
  1644. if ac_fn_cxx_try_compile "$LINENO"; then :
  1645. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end build/confdefs.h. */
  1647. $ac_includes_default
  1648. enum { N = $2 / 2 - 1 };
  1649. int
  1650. main ()
  1651. {
  1652. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1653. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1654. test_array [0] = 0;
  1655. return test_array [0];
  1656. ;
  1657. return 0;
  1658. }
  1659. _ACEOF
  1660. if ac_fn_cxx_try_compile "$LINENO"; then :
  1661. else
  1662. case $ac_type in #(
  1663. int$2_t) :
  1664. eval "$3=yes" ;; #(
  1665. *) :
  1666. eval "$3=\$ac_type" ;;
  1667. esac
  1668. fi
  1669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. if eval test \"x\$"$3"\" = x"no"; then :
  1673. else
  1674. break
  1675. fi
  1676. done
  1677. fi
  1678. eval ac_res=\$$3
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1680. $as_echo "$ac_res" >&6; }
  1681. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1682. } # ac_fn_c_find_intX_t
  1683. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1684. # ------------------------------------
  1685. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1686. # accordingly.
  1687. ac_fn_c_find_uintX_t ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1691. $as_echo_n "checking for uint$2_t... " >&6; }
  1692. if eval \${$3+:} false; then :
  1693. $as_echo_n "(cached) " >&6
  1694. else
  1695. eval "$3=no"
  1696. # Order is important - never check a type that is potentially smaller
  1697. # than half of the expected target width.
  1698. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1699. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1700. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end build/confdefs.h. */
  1702. $ac_includes_default
  1703. int
  1704. main ()
  1705. {
  1706. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1707. test_array [0] = 0;
  1708. return test_array [0];
  1709. ;
  1710. return 0;
  1711. }
  1712. _ACEOF
  1713. if ac_fn_cxx_try_compile "$LINENO"; then :
  1714. case $ac_type in #(
  1715. uint$2_t) :
  1716. eval "$3=yes" ;; #(
  1717. *) :
  1718. eval "$3=\$ac_type" ;;
  1719. esac
  1720. fi
  1721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1722. if eval test \"x\$"$3"\" = x"no"; then :
  1723. else
  1724. break
  1725. fi
  1726. done
  1727. fi
  1728. eval ac_res=\$$3
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1730. $as_echo "$ac_res" >&6; }
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. } # ac_fn_c_find_uintX_t
  1733. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1734. # ------------------------------------------------------
  1735. # Tries to find if the field MEMBER exists in type AGGR, after including
  1736. # INCLUDES, setting cache variable VAR accordingly.
  1737. ac_fn_cxx_check_member ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1741. $as_echo_n "checking for $2.$3... " >&6; }
  1742. if eval \${$4+:} false; then :
  1743. $as_echo_n "(cached) " >&6
  1744. else
  1745. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end build/confdefs.h. */
  1747. $5
  1748. int
  1749. main ()
  1750. {
  1751. static $2 ac_aggr;
  1752. if (ac_aggr.$3)
  1753. return 0;
  1754. ;
  1755. return 0;
  1756. }
  1757. _ACEOF
  1758. if ac_fn_cxx_try_compile "$LINENO"; then :
  1759. eval "$4=yes"
  1760. else
  1761. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end build/confdefs.h. */
  1763. $5
  1764. int
  1765. main ()
  1766. {
  1767. static $2 ac_aggr;
  1768. if (sizeof ac_aggr.$3)
  1769. return 0;
  1770. ;
  1771. return 0;
  1772. }
  1773. _ACEOF
  1774. if ac_fn_cxx_try_compile "$LINENO"; then :
  1775. eval "$4=yes"
  1776. else
  1777. eval "$4=no"
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. eval ac_res=\$$4
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1785. $as_echo "$ac_res" >&6; }
  1786. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1787. } # ac_fn_cxx_check_member
  1788. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1789. # -----------------------------------------------
  1790. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1791. # accordingly.
  1792. ac_fn_cxx_check_decl ()
  1793. {
  1794. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1795. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1796. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1798. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1799. if eval \${$3+:} false; then :
  1800. $as_echo_n "(cached) " >&6
  1801. else
  1802. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1803. /* end build/confdefs.h. */
  1804. $4
  1805. int
  1806. main ()
  1807. {
  1808. #ifndef $as_decl_name
  1809. #ifdef __cplusplus
  1810. (void) $as_decl_use;
  1811. #else
  1812. (void) $as_decl_name;
  1813. #endif
  1814. #endif
  1815. ;
  1816. return 0;
  1817. }
  1818. _ACEOF
  1819. if ac_fn_cxx_try_compile "$LINENO"; then :
  1820. eval "$3=yes"
  1821. else
  1822. eval "$3=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. } # ac_fn_cxx_check_decl
  1831. # ac_fn_cxx_check_func LINENO FUNC VAR
  1832. # ------------------------------------
  1833. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1834. ac_fn_cxx_check_func ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1838. $as_echo_n "checking for $2... " >&6; }
  1839. if eval \${$3+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end build/confdefs.h. */
  1844. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1845. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1846. #define $2 innocuous_$2
  1847. /* System header to define __stub macros and hopefully few prototypes,
  1848. which can conflict with char $2 (); below.
  1849. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1850. <limits.h> exists even on freestanding compilers. */
  1851. #ifdef __STDC__
  1852. # include <limits.h>
  1853. #else
  1854. # include <assert.h>
  1855. #endif
  1856. #undef $2
  1857. /* Override any GCC internal prototype to avoid an error.
  1858. Use char because int might match the return type of a GCC
  1859. builtin and then its argument prototype would still apply. */
  1860. #ifdef __cplusplus
  1861. extern "C"
  1862. #endif
  1863. char $2 ();
  1864. /* The GNU C library defines this for functions which it implements
  1865. to always fail with ENOSYS. Some functions are actually named
  1866. something starting with __ and the normal name is an alias. */
  1867. #if defined __stub_$2 || defined __stub___$2
  1868. choke me
  1869. #endif
  1870. int
  1871. main ()
  1872. {
  1873. return $2 ();
  1874. ;
  1875. return 0;
  1876. }
  1877. _ACEOF
  1878. if ac_fn_cxx_try_link "$LINENO"; then :
  1879. eval "$3=yes"
  1880. else
  1881. eval "$3=no"
  1882. fi
  1883. rm -f core conftest.err conftest.$ac_objext \
  1884. conftest$ac_exeext conftest.$ac_ext
  1885. fi
  1886. eval ac_res=\$$3
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1888. $as_echo "$ac_res" >&6; }
  1889. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1890. } # ac_fn_cxx_check_func
  1891. cat >build/config.log <<_ACEOF
  1892. This file contains any messages produced by compilers while
  1893. running configure, to aid debugging if configure makes a mistake.
  1894. It was created by $as_me, which was
  1895. generated by GNU Autoconf 2.69. Invocation command line was
  1896. $ $0 $@
  1897. _ACEOF
  1898. exec 5>>build/config.log
  1899. {
  1900. cat <<_ASUNAME
  1901. ## --------- ##
  1902. ## Platform. ##
  1903. ## --------- ##
  1904. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1905. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1906. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1907. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1908. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1909. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1910. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1911. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1912. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1913. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1914. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1915. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1916. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1917. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1918. _ASUNAME
  1919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1920. for as_dir in $PATH
  1921. do
  1922. IFS=$as_save_IFS
  1923. test -z "$as_dir" && as_dir=.
  1924. $as_echo "PATH: $as_dir"
  1925. done
  1926. IFS=$as_save_IFS
  1927. } >&5
  1928. cat >&5 <<_ACEOF
  1929. ## ----------- ##
  1930. ## Core tests. ##
  1931. ## ----------- ##
  1932. _ACEOF
  1933. # Keep a trace of the command line.
  1934. # Strip out --no-create and --no-recursion so they do not pile up.
  1935. # Strip out --silent because we don't want to record it for future runs.
  1936. # Also quote any args containing shell meta-characters.
  1937. # Make two passes to allow for proper duplicate-argument suppression.
  1938. ac_configure_args=
  1939. ac_configure_args0=
  1940. ac_configure_args1=
  1941. ac_must_keep_next=false
  1942. for ac_pass in 1 2
  1943. do
  1944. for ac_arg
  1945. do
  1946. case $ac_arg in
  1947. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1949. | -silent | --silent | --silen | --sile | --sil)
  1950. continue ;;
  1951. *\'*)
  1952. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1953. esac
  1954. case $ac_pass in
  1955. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1956. 2)
  1957. as_fn_append ac_configure_args1 " '$ac_arg'"
  1958. if test $ac_must_keep_next = true; then
  1959. ac_must_keep_next=false # Got value, back to normal.
  1960. else
  1961. case $ac_arg in
  1962. *=* | --config-cache | -C | -disable-* | --disable-* \
  1963. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1964. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1965. | -with-* | --with-* | -without-* | --without-* | --x)
  1966. case "$ac_configure_args0 " in
  1967. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1968. esac
  1969. ;;
  1970. -* ) ac_must_keep_next=true ;;
  1971. esac
  1972. fi
  1973. as_fn_append ac_configure_args " '$ac_arg'"
  1974. ;;
  1975. esac
  1976. done
  1977. done
  1978. { ac_configure_args0=; unset ac_configure_args0;}
  1979. { ac_configure_args1=; unset ac_configure_args1;}
  1980. # When interrupted or exit'd, cleanup temporary files, and complete
  1981. # build/config.log. We remove comments because anyway the quotes in there
  1982. # would cause problems or look ugly.
  1983. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1984. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1985. trap 'exit_status=$?
  1986. # Save into build/config.log some information that might help in debugging.
  1987. {
  1988. echo
  1989. $as_echo "## ---------------- ##
  1990. ## Cache variables. ##
  1991. ## ---------------- ##"
  1992. echo
  1993. # The following way of writing the cache mishandles newlines in values,
  1994. (
  1995. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1996. eval ac_val=\$$ac_var
  1997. case $ac_val in #(
  1998. *${as_nl}*)
  1999. case $ac_var in #(
  2000. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2001. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2002. esac
  2003. case $ac_var in #(
  2004. _ | IFS | as_nl) ;; #(
  2005. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2006. *) { eval $ac_var=; unset $ac_var;} ;;
  2007. esac ;;
  2008. esac
  2009. done
  2010. (set) 2>&1 |
  2011. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2012. *${as_nl}ac_space=\ *)
  2013. sed -n \
  2014. "s/'\''/'\''\\\\'\'''\''/g;
  2015. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2016. ;; #(
  2017. *)
  2018. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2019. ;;
  2020. esac |
  2021. sort
  2022. )
  2023. echo
  2024. $as_echo "## ----------------- ##
  2025. ## Output variables. ##
  2026. ## ----------------- ##"
  2027. echo
  2028. for ac_var in $ac_subst_vars
  2029. do
  2030. eval ac_val=\$$ac_var
  2031. case $ac_val in
  2032. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2033. esac
  2034. $as_echo "$ac_var='\''$ac_val'\''"
  2035. done | sort
  2036. echo
  2037. if test -n "$ac_subst_files"; then
  2038. $as_echo "## ------------------- ##
  2039. ## File substitutions. ##
  2040. ## ------------------- ##"
  2041. echo
  2042. for ac_var in $ac_subst_files
  2043. do
  2044. eval ac_val=\$$ac_var
  2045. case $ac_val in
  2046. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2047. esac
  2048. $as_echo "$ac_var='\''$ac_val'\''"
  2049. done | sort
  2050. echo
  2051. fi
  2052. if test -s build/confdefs.h; then
  2053. $as_echo "## ----------- ##
  2054. ## build/confdefs.h. ##
  2055. ## ----------- ##"
  2056. echo
  2057. cat build/confdefs.h
  2058. echo
  2059. fi
  2060. test "$ac_signal" != 0 &&
  2061. $as_echo "$as_me: caught signal $ac_signal"
  2062. $as_echo "$as_me: exit $exit_status"
  2063. } >&5
  2064. rm -f core *.core core.conftest.* &&
  2065. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2066. exit $exit_status
  2067. ' 0
  2068. for ac_signal in 1 2 13 15; do
  2069. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2070. done
  2071. ac_signal=0
  2072. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2073. rm -f -r conftest* build/confdefs.h
  2074. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2075. # Predefined preprocessor variables.
  2076. cat >>build/confdefs.h <<_ACEOF
  2077. #define PACKAGE_NAME "$PACKAGE_NAME"
  2078. _ACEOF
  2079. cat >>build/confdefs.h <<_ACEOF
  2080. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2081. _ACEOF
  2082. cat >>build/confdefs.h <<_ACEOF
  2083. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2084. _ACEOF
  2085. cat >>build/confdefs.h <<_ACEOF
  2086. #define PACKAGE_STRING "$PACKAGE_STRING"
  2087. _ACEOF
  2088. cat >>build/confdefs.h <<_ACEOF
  2089. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2090. _ACEOF
  2091. cat >>build/confdefs.h <<_ACEOF
  2092. #define PACKAGE_URL "$PACKAGE_URL"
  2093. _ACEOF
  2094. # Let the site file select an alternate cache file if it wants to.
  2095. # Prefer an explicitly selected file to automatically selected ones.
  2096. ac_site_file1=NONE
  2097. ac_site_file2=NONE
  2098. if test -n "$CONFIG_SITE"; then
  2099. # We do not want a PATH search for config.site.
  2100. case $CONFIG_SITE in #((
  2101. -*) ac_site_file1=./$CONFIG_SITE;;
  2102. */*) ac_site_file1=$CONFIG_SITE;;
  2103. *) ac_site_file1=./$CONFIG_SITE;;
  2104. esac
  2105. elif test "x$prefix" != xNONE; then
  2106. ac_site_file1=$prefix/share/config.site
  2107. ac_site_file2=$prefix/etc/config.site
  2108. else
  2109. ac_site_file1=$ac_default_prefix/share/config.site
  2110. ac_site_file2=$ac_default_prefix/etc/config.site
  2111. fi
  2112. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2113. do
  2114. test "x$ac_site_file" = xNONE && continue
  2115. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2117. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2118. sed 's/^/| /' "$ac_site_file" >&5
  2119. . "$ac_site_file" \
  2120. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2122. as_fn_error $? "failed to load site script $ac_site_file
  2123. See \`build/config.log' for more details" "$LINENO" 5; }
  2124. fi
  2125. done
  2126. if test -r "$cache_file"; then
  2127. # Some versions of bash will fail to source /dev/null (special files
  2128. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2129. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2131. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2132. case $cache_file in
  2133. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2134. *) . "./$cache_file";;
  2135. esac
  2136. fi
  2137. else
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2139. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2140. >$cache_file
  2141. fi
  2142. as_fn_append ac_header_list " sys/time.h"
  2143. as_fn_append ac_header_list " unistd.h"
  2144. as_fn_append ac_func_list " alarm"
  2145. as_fn_append ac_header_list " stdlib.h"
  2146. as_fn_append ac_header_list " sys/param.h"
  2147. # Check that the precious variables saved in the cache have kept the same
  2148. # value.
  2149. ac_cache_corrupted=false
  2150. for ac_var in $ac_precious_vars; do
  2151. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2152. eval ac_new_set=\$ac_env_${ac_var}_set
  2153. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2154. eval ac_new_val=\$ac_env_${ac_var}_value
  2155. case $ac_old_set,$ac_new_set in
  2156. set,)
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2158. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2159. ac_cache_corrupted=: ;;
  2160. ,set)
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2162. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2163. ac_cache_corrupted=: ;;
  2164. ,);;
  2165. *)
  2166. if test "x$ac_old_val" != "x$ac_new_val"; then
  2167. # differences in whitespace do not lead to failure.
  2168. ac_old_val_w=`echo x $ac_old_val`
  2169. ac_new_val_w=`echo x $ac_new_val`
  2170. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2172. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2173. ac_cache_corrupted=:
  2174. else
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2176. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2177. eval $ac_var=\$ac_old_val
  2178. fi
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2180. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2182. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2183. fi;;
  2184. esac
  2185. # Pass precious variables to build/config.status.
  2186. if test "$ac_new_set" = set; then
  2187. case $ac_new_val in
  2188. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2189. *) ac_arg=$ac_var=$ac_new_val ;;
  2190. esac
  2191. case " $ac_configure_args " in
  2192. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2193. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2194. esac
  2195. fi
  2196. done
  2197. if $ac_cache_corrupted; then
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2201. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2202. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2203. fi
  2204. ## -------------------- ##
  2205. ## Main body of script. ##
  2206. ## -------------------- ##
  2207. ac_ext=c
  2208. ac_cpp='$CPP $CPPFLAGS'
  2209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2212. ac_config_headers="$ac_config_headers src/config.h"
  2213. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2214. egg_ac_parameters=
  2215. ac_prev=
  2216. for ac_arg in $ac_configure_args; do
  2217. if test -n "$ac_prev"; then
  2218. ac_prev=
  2219. continue
  2220. fi
  2221. case $ac_arg in
  2222. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2223. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2224. ac_prev=cache_file ;;
  2225. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2226. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2227. | --c=*)
  2228. ;;
  2229. --config-cache | -C)
  2230. ;;
  2231. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2232. ac_prev=srcdir ;;
  2233. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2234. ;;
  2235. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2236. esac
  2237. done
  2238. # Setup build environment
  2239. #AC_REQUIRE_CPP
  2240. ac_ext=cpp
  2241. ac_cpp='$CXXCPP $CPPFLAGS'
  2242. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2243. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2244. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2245. ac_ext=cpp
  2246. ac_cpp='$CXXCPP $CPPFLAGS'
  2247. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2248. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2249. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2250. if test -z "$CXX"; then
  2251. if test -n "$CCC"; then
  2252. CXX=$CCC
  2253. else
  2254. if test -n "$ac_tool_prefix"; then
  2255. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2256. do
  2257. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2258. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2260. $as_echo_n "checking for $ac_word... " >&6; }
  2261. if ${ac_cv_prog_CXX+:} false; then :
  2262. $as_echo_n "(cached) " >&6
  2263. else
  2264. if test -n "$CXX"; then
  2265. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2266. else
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. for ac_exec_ext in '' $ac_executable_extensions; do
  2273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2274. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2276. break 2
  2277. fi
  2278. done
  2279. done
  2280. IFS=$as_save_IFS
  2281. fi
  2282. fi
  2283. CXX=$ac_cv_prog_CXX
  2284. if test -n "$CXX"; then
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2286. $as_echo "$CXX" >&6; }
  2287. else
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2289. $as_echo "no" >&6; }
  2290. fi
  2291. test -n "$CXX" && break
  2292. done
  2293. fi
  2294. if test -z "$CXX"; then
  2295. ac_ct_CXX=$CXX
  2296. for ac_prog in g++49 g++-4.9 g++48 g++-4.8 g++47 g++-4.7 clang++ g++46 g++-4.6 g++45 g++-4.5 g++-4.4 g++-4.4.1 g++-4.4.2 g++-4.4.0 g++44 g++4 eg++ g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  2297. do
  2298. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2299. set dummy $ac_prog; ac_word=$2
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2301. $as_echo_n "checking for $ac_word... " >&6; }
  2302. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2303. $as_echo_n "(cached) " >&6
  2304. else
  2305. if test -n "$ac_ct_CXX"; then
  2306. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2307. else
  2308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2309. for as_dir in $PATH
  2310. do
  2311. IFS=$as_save_IFS
  2312. test -z "$as_dir" && as_dir=.
  2313. for ac_exec_ext in '' $ac_executable_extensions; do
  2314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2315. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2317. break 2
  2318. fi
  2319. done
  2320. done
  2321. IFS=$as_save_IFS
  2322. fi
  2323. fi
  2324. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2325. if test -n "$ac_ct_CXX"; then
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2327. $as_echo "$ac_ct_CXX" >&6; }
  2328. else
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2330. $as_echo "no" >&6; }
  2331. fi
  2332. test -n "$ac_ct_CXX" && break
  2333. done
  2334. if test "x$ac_ct_CXX" = x; then
  2335. CXX="g++"
  2336. else
  2337. case $cross_compiling:$ac_tool_warned in
  2338. yes:)
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2341. ac_tool_warned=yes ;;
  2342. esac
  2343. CXX=$ac_ct_CXX
  2344. fi
  2345. fi
  2346. fi
  2347. fi
  2348. # Provide some information about the compiler.
  2349. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2350. set X $ac_compile
  2351. ac_compiler=$2
  2352. for ac_option in --version -v -V -qversion; do
  2353. { { ac_try="$ac_compiler $ac_option >&5"
  2354. case "(($ac_try" in
  2355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2356. *) ac_try_echo=$ac_try;;
  2357. esac
  2358. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2359. $as_echo "$ac_try_echo"; } >&5
  2360. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2361. ac_status=$?
  2362. if test -s conftest.err; then
  2363. sed '10a\
  2364. ... rest of stderr output deleted ...
  2365. 10q' conftest.err >conftest.er1
  2366. cat conftest.er1 >&5
  2367. fi
  2368. rm -f conftest.er1 conftest.err
  2369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2370. test $ac_status = 0; }
  2371. done
  2372. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2373. /* end build/confdefs.h. */
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. ac_clean_files_save=$ac_clean_files
  2382. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2383. # Try to create an executable without -o first, disregard a.out.
  2384. # It will help us diagnose broken compilers, and finding out an intuition
  2385. # of exeext.
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2387. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2388. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2389. # The possible output files:
  2390. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2391. ac_rmfiles=
  2392. for ac_file in $ac_files
  2393. do
  2394. case $ac_file in
  2395. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2396. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2397. esac
  2398. done
  2399. rm -f $ac_rmfiles
  2400. if { { ac_try="$ac_link_default"
  2401. case "(($ac_try" in
  2402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2403. *) ac_try_echo=$ac_try;;
  2404. esac
  2405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2406. $as_echo "$ac_try_echo"; } >&5
  2407. (eval "$ac_link_default") 2>&5
  2408. ac_status=$?
  2409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2410. test $ac_status = 0; }; then :
  2411. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2412. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2413. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2414. # so that the user can short-circuit this test for compilers unknown to
  2415. # Autoconf.
  2416. for ac_file in $ac_files ''
  2417. do
  2418. test -f "$ac_file" || continue
  2419. case $ac_file in
  2420. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2421. ;;
  2422. [ab].out )
  2423. # We found the default executable, but exeext='' is most
  2424. # certainly right.
  2425. break;;
  2426. *.* )
  2427. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2428. then :; else
  2429. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2430. fi
  2431. # We set ac_cv_exeext here because the later test for it is not
  2432. # safe: cross compilers may not add the suffix if given an `-o'
  2433. # argument, so we may need to know it at that point already.
  2434. # Even if this section looks crufty: it has the advantage of
  2435. # actually working.
  2436. break;;
  2437. * )
  2438. break;;
  2439. esac
  2440. done
  2441. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2442. else
  2443. ac_file=''
  2444. fi
  2445. if test -z "$ac_file"; then :
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2447. $as_echo "no" >&6; }
  2448. $as_echo "$as_me: failed program was:" >&5
  2449. sed 's/^/| /' conftest.$ac_ext >&5
  2450. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2451. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2452. as_fn_error 77 "C++ compiler cannot create executables
  2453. See \`build/config.log' for more details" "$LINENO" 5; }
  2454. else
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2456. $as_echo "yes" >&6; }
  2457. fi
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2459. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2461. $as_echo "$ac_file" >&6; }
  2462. ac_exeext=$ac_cv_exeext
  2463. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2464. ac_clean_files=$ac_clean_files_save
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2466. $as_echo_n "checking for suffix of executables... " >&6; }
  2467. if { { ac_try="$ac_link"
  2468. case "(($ac_try" in
  2469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2470. *) ac_try_echo=$ac_try;;
  2471. esac
  2472. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2473. $as_echo "$ac_try_echo"; } >&5
  2474. (eval "$ac_link") 2>&5
  2475. ac_status=$?
  2476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2477. test $ac_status = 0; }; then :
  2478. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2479. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2480. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2481. # `rm'.
  2482. for ac_file in conftest.exe conftest conftest.*; do
  2483. test -f "$ac_file" || continue
  2484. case $ac_file in
  2485. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2486. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2487. break;;
  2488. * ) break;;
  2489. esac
  2490. done
  2491. else
  2492. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2494. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2495. See \`build/config.log' for more details" "$LINENO" 5; }
  2496. fi
  2497. rm -f conftest conftest$ac_cv_exeext
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2499. $as_echo "$ac_cv_exeext" >&6; }
  2500. rm -f conftest.$ac_ext
  2501. EXEEXT=$ac_cv_exeext
  2502. ac_exeext=$EXEEXT
  2503. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2504. /* end build/confdefs.h. */
  2505. #include <stdio.h>
  2506. int
  2507. main ()
  2508. {
  2509. FILE *f = fopen ("conftest.out", "w");
  2510. return ferror (f) || fclose (f) != 0;
  2511. ;
  2512. return 0;
  2513. }
  2514. _ACEOF
  2515. ac_clean_files="$ac_clean_files conftest.out"
  2516. # Check that the compiler produces executables we can run. If not, either
  2517. # the compiler is broken, or we cross compile.
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2519. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2520. if test "$cross_compiling" != yes; then
  2521. { { ac_try="$ac_link"
  2522. case "(($ac_try" in
  2523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2524. *) ac_try_echo=$ac_try;;
  2525. esac
  2526. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2527. $as_echo "$ac_try_echo"; } >&5
  2528. (eval "$ac_link") 2>&5
  2529. ac_status=$?
  2530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2531. test $ac_status = 0; }
  2532. if { ac_try='./conftest$ac_cv_exeext'
  2533. { { case "(($ac_try" in
  2534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2535. *) ac_try_echo=$ac_try;;
  2536. esac
  2537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2538. $as_echo "$ac_try_echo"; } >&5
  2539. (eval "$ac_try") 2>&5
  2540. ac_status=$?
  2541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2542. test $ac_status = 0; }; }; then
  2543. cross_compiling=no
  2544. else
  2545. if test "$cross_compiling" = maybe; then
  2546. cross_compiling=yes
  2547. else
  2548. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2549. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2550. as_fn_error $? "cannot run C++ compiled programs.
  2551. If you meant to cross compile, use \`--host'.
  2552. See \`build/config.log' for more details" "$LINENO" 5; }
  2553. fi
  2554. fi
  2555. fi
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2557. $as_echo "$cross_compiling" >&6; }
  2558. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2559. ac_clean_files=$ac_clean_files_save
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2561. $as_echo_n "checking for suffix of object files... " >&6; }
  2562. if ${ac_cv_objext+:} false; then :
  2563. $as_echo_n "(cached) " >&6
  2564. else
  2565. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2566. /* end build/confdefs.h. */
  2567. int
  2568. main ()
  2569. {
  2570. ;
  2571. return 0;
  2572. }
  2573. _ACEOF
  2574. rm -f conftest.o conftest.obj
  2575. if { { ac_try="$ac_compile"
  2576. case "(($ac_try" in
  2577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2578. *) ac_try_echo=$ac_try;;
  2579. esac
  2580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2581. $as_echo "$ac_try_echo"; } >&5
  2582. (eval "$ac_compile") 2>&5
  2583. ac_status=$?
  2584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2585. test $ac_status = 0; }; then :
  2586. for ac_file in conftest.o conftest.obj conftest.*; do
  2587. test -f "$ac_file" || continue;
  2588. case $ac_file in
  2589. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2590. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2591. break;;
  2592. esac
  2593. done
  2594. else
  2595. $as_echo "$as_me: failed program was:" >&5
  2596. sed 's/^/| /' conftest.$ac_ext >&5
  2597. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2599. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2600. See \`build/config.log' for more details" "$LINENO" 5; }
  2601. fi
  2602. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2603. fi
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2605. $as_echo "$ac_cv_objext" >&6; }
  2606. OBJEXT=$ac_cv_objext
  2607. ac_objext=$OBJEXT
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2609. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2610. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2611. $as_echo_n "(cached) " >&6
  2612. else
  2613. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2614. /* end build/confdefs.h. */
  2615. int
  2616. main ()
  2617. {
  2618. #ifndef __GNUC__
  2619. choke me
  2620. #endif
  2621. ;
  2622. return 0;
  2623. }
  2624. _ACEOF
  2625. if ac_fn_cxx_try_compile "$LINENO"; then :
  2626. ac_compiler_gnu=yes
  2627. else
  2628. ac_compiler_gnu=no
  2629. fi
  2630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2631. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2632. fi
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2634. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2635. if test $ac_compiler_gnu = yes; then
  2636. GXX=yes
  2637. else
  2638. GXX=
  2639. fi
  2640. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2641. ac_save_CXXFLAGS=$CXXFLAGS
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2643. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2644. if ${ac_cv_prog_cxx_g+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2648. ac_cxx_werror_flag=yes
  2649. ac_cv_prog_cxx_g=no
  2650. CXXFLAGS="-g"
  2651. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2652. /* end build/confdefs.h. */
  2653. int
  2654. main ()
  2655. {
  2656. ;
  2657. return 0;
  2658. }
  2659. _ACEOF
  2660. if ac_fn_cxx_try_compile "$LINENO"; then :
  2661. ac_cv_prog_cxx_g=yes
  2662. else
  2663. CXXFLAGS=""
  2664. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2665. /* end build/confdefs.h. */
  2666. int
  2667. main ()
  2668. {
  2669. ;
  2670. return 0;
  2671. }
  2672. _ACEOF
  2673. if ac_fn_cxx_try_compile "$LINENO"; then :
  2674. else
  2675. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2676. CXXFLAGS="-g"
  2677. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2678. /* end build/confdefs.h. */
  2679. int
  2680. main ()
  2681. {
  2682. ;
  2683. return 0;
  2684. }
  2685. _ACEOF
  2686. if ac_fn_cxx_try_compile "$LINENO"; then :
  2687. ac_cv_prog_cxx_g=yes
  2688. fi
  2689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2690. fi
  2691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2692. fi
  2693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2694. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2695. fi
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2697. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2698. if test "$ac_test_CXXFLAGS" = set; then
  2699. CXXFLAGS=$ac_save_CXXFLAGS
  2700. elif test $ac_cv_prog_cxx_g = yes; then
  2701. if test "$GXX" = yes; then
  2702. CXXFLAGS="-g -O2"
  2703. else
  2704. CXXFLAGS="-g"
  2705. fi
  2706. else
  2707. if test "$GXX" = yes; then
  2708. CXXFLAGS="-O2"
  2709. else
  2710. CXXFLAGS=
  2711. fi
  2712. fi
  2713. ac_ext=cpp
  2714. ac_cpp='$CXXCPP $CPPFLAGS'
  2715. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2716. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2717. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2718. ac_ext=cpp
  2719. ac_cpp='$CXXCPP $CPPFLAGS'
  2720. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2721. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2722. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2724. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2725. if test -z "$CXXCPP"; then
  2726. if ${ac_cv_prog_CXXCPP+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. # Double quotes because CXXCPP needs to be expanded
  2730. for CXXCPP in "$CXX -E" "/lib/cpp"
  2731. do
  2732. ac_preproc_ok=false
  2733. for ac_cxx_preproc_warn_flag in '' yes
  2734. do
  2735. # Use a header file that comes with gcc, so configuring glibc
  2736. # with a fresh cross-compiler works.
  2737. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2738. # <limits.h> exists even on freestanding compilers.
  2739. # On the NeXT, cc -E runs the code through the compiler's parser,
  2740. # not just through cpp. "Syntax error" is here to catch this case.
  2741. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2742. /* end build/confdefs.h. */
  2743. #ifdef __STDC__
  2744. # include <limits.h>
  2745. #else
  2746. # include <assert.h>
  2747. #endif
  2748. Syntax error
  2749. _ACEOF
  2750. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2751. else
  2752. # Broken: fails on valid input.
  2753. continue
  2754. fi
  2755. rm -f conftest.err conftest.i conftest.$ac_ext
  2756. # OK, works on sane cases. Now check whether nonexistent headers
  2757. # can be detected and how.
  2758. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2759. /* end build/confdefs.h. */
  2760. #include <ac_nonexistent.h>
  2761. _ACEOF
  2762. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2763. # Broken: success on invalid input.
  2764. continue
  2765. else
  2766. # Passes both tests.
  2767. ac_preproc_ok=:
  2768. break
  2769. fi
  2770. rm -f conftest.err conftest.i conftest.$ac_ext
  2771. done
  2772. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2773. rm -f conftest.i conftest.err conftest.$ac_ext
  2774. if $ac_preproc_ok; then :
  2775. break
  2776. fi
  2777. done
  2778. ac_cv_prog_CXXCPP=$CXXCPP
  2779. fi
  2780. CXXCPP=$ac_cv_prog_CXXCPP
  2781. else
  2782. ac_cv_prog_CXXCPP=$CXXCPP
  2783. fi
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2785. $as_echo "$CXXCPP" >&6; }
  2786. ac_preproc_ok=false
  2787. for ac_cxx_preproc_warn_flag in '' yes
  2788. do
  2789. # Use a header file that comes with gcc, so configuring glibc
  2790. # with a fresh cross-compiler works.
  2791. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2792. # <limits.h> exists even on freestanding compilers.
  2793. # On the NeXT, cc -E runs the code through the compiler's parser,
  2794. # not just through cpp. "Syntax error" is here to catch this case.
  2795. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2796. /* end build/confdefs.h. */
  2797. #ifdef __STDC__
  2798. # include <limits.h>
  2799. #else
  2800. # include <assert.h>
  2801. #endif
  2802. Syntax error
  2803. _ACEOF
  2804. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2805. else
  2806. # Broken: fails on valid input.
  2807. continue
  2808. fi
  2809. rm -f conftest.err conftest.i conftest.$ac_ext
  2810. # OK, works on sane cases. Now check whether nonexistent headers
  2811. # can be detected and how.
  2812. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2813. /* end build/confdefs.h. */
  2814. #include <ac_nonexistent.h>
  2815. _ACEOF
  2816. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2817. # Broken: success on invalid input.
  2818. continue
  2819. else
  2820. # Passes both tests.
  2821. ac_preproc_ok=:
  2822. break
  2823. fi
  2824. rm -f conftest.err conftest.i conftest.$ac_ext
  2825. done
  2826. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2827. rm -f conftest.i conftest.err conftest.$ac_ext
  2828. if $ac_preproc_ok; then :
  2829. else
  2830. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2831. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2832. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2833. See \`build/config.log' for more details" "$LINENO" 5; }
  2834. fi
  2835. ac_ext=cpp
  2836. ac_cpp='$CXXCPP $CPPFLAGS'
  2837. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2838. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2839. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2840. ax_cxx_compile_cxx11_required=true
  2841. ac_ext=cpp
  2842. ac_cpp='$CXXCPP $CPPFLAGS'
  2843. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2844. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2845. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2846. ac_success=no
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  2848. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  2849. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2853. /* end build/confdefs.h. */
  2854. template <typename T>
  2855. struct check
  2856. {
  2857. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2858. };
  2859. struct Base {
  2860. virtual void f() {}
  2861. };
  2862. struct Child : public Base {
  2863. virtual void f() override {}
  2864. };
  2865. typedef check<check<bool>> right_angle_brackets;
  2866. int a;
  2867. decltype(a) b;
  2868. typedef check<int> check_type;
  2869. check_type c;
  2870. check_type&& cr = static_cast<check_type&&>(c);
  2871. auto d = a;
  2872. auto l = [](){};
  2873. _ACEOF
  2874. if ac_fn_cxx_try_compile "$LINENO"; then :
  2875. ax_cv_cxx_compile_cxx11=yes
  2876. else
  2877. ax_cv_cxx_compile_cxx11=no
  2878. fi
  2879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2880. fi
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  2882. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  2883. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  2884. ac_success=yes
  2885. fi
  2886. if test x$ac_success = xno; then
  2887. for switch in -std=c++11 -std=c++0x; do
  2888. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2890. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2891. if eval \${$cachevar+:} false; then :
  2892. $as_echo_n "(cached) " >&6
  2893. else
  2894. ac_save_CXXFLAGS="$CXXFLAGS"
  2895. CXXFLAGS="$CXXFLAGS $switch"
  2896. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2897. /* end build/confdefs.h. */
  2898. template <typename T>
  2899. struct check
  2900. {
  2901. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2902. };
  2903. struct Base {
  2904. virtual void f() {}
  2905. };
  2906. struct Child : public Base {
  2907. virtual void f() override {}
  2908. };
  2909. typedef check<check<bool>> right_angle_brackets;
  2910. int a;
  2911. decltype(a) b;
  2912. typedef check<int> check_type;
  2913. check_type c;
  2914. check_type&& cr = static_cast<check_type&&>(c);
  2915. auto d = a;
  2916. auto l = [](){};
  2917. _ACEOF
  2918. if ac_fn_cxx_try_compile "$LINENO"; then :
  2919. eval $cachevar=yes
  2920. else
  2921. eval $cachevar=no
  2922. fi
  2923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2924. CXXFLAGS="$ac_save_CXXFLAGS"
  2925. fi
  2926. eval ac_res=\$$cachevar
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2928. $as_echo "$ac_res" >&6; }
  2929. if eval test x\$$cachevar = xyes; then
  2930. CXXFLAGS="$CXXFLAGS $switch"
  2931. ac_success=yes
  2932. break
  2933. fi
  2934. done
  2935. fi
  2936. ac_ext=cpp
  2937. ac_cpp='$CXXCPP $CPPFLAGS'
  2938. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2939. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2940. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2941. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  2942. if test x$ac_success = xno; then
  2943. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  2944. fi
  2945. else
  2946. if test x$ac_success = xno; then
  2947. HAVE_CXX11=0
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  2949. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  2950. else
  2951. HAVE_CXX11=1
  2952. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  2953. fi
  2954. fi
  2955. if test "${cross_compiling-x}" = "x"
  2956. then
  2957. cat << 'EOF' >&2
  2958. configure: error:
  2959. This system does not appear to have a working C compiler.
  2960. A working C compiler is required to compile Wraith.
  2961. EOF
  2962. exit 1
  2963. fi
  2964. if test -n "$GXX"; then
  2965. CXXFLAGS="$CXXFLAGS"
  2966. fi
  2967. #checkpoint
  2968. cat >confcache <<\_ACEOF
  2969. # This file is a shell script that caches the results of configure
  2970. # tests run on this system so they can be shared between configure
  2971. # scripts and configure runs, see configure's option --config-cache.
  2972. # It is not useful on other systems. If it contains results you don't
  2973. # want to keep, you may remove or edit it.
  2974. #
  2975. # build/config.status only pays attention to the cache file if you give it
  2976. # the --recheck option to rerun configure.
  2977. #
  2978. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2979. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2980. # following values.
  2981. _ACEOF
  2982. # The following way of writing the cache mishandles newlines in values,
  2983. # but we know of no workaround that is simple, portable, and efficient.
  2984. # So, we kill variables containing newlines.
  2985. # Ultrix sh set writes to stderr and can't be redirected directly,
  2986. # and sets the high bit in the cache file unless we assign to the vars.
  2987. (
  2988. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  2989. eval ac_val=\$$ac_var
  2990. case $ac_val in #(
  2991. *${as_nl}*)
  2992. case $ac_var in #(
  2993. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2994. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2995. esac
  2996. case $ac_var in #(
  2997. _ | IFS | as_nl) ;; #(
  2998. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2999. *) { eval $ac_var=; unset $ac_var;} ;;
  3000. esac ;;
  3001. esac
  3002. done
  3003. (set) 2>&1 |
  3004. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3005. *${as_nl}ac_space=\ *)
  3006. # `set' does not quote correctly, so add quotes: double-quote
  3007. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3008. sed -n \
  3009. "s/'/'\\\\''/g;
  3010. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3011. ;; #(
  3012. *)
  3013. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3014. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3015. ;;
  3016. esac |
  3017. sort
  3018. ) |
  3019. sed '
  3020. /^ac_cv_env_/b end
  3021. t clear
  3022. :clear
  3023. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3024. t end
  3025. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3026. :end' >>confcache
  3027. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3028. if test -w "$cache_file"; then
  3029. if test "x$cache_file" != "x/dev/null"; then
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3031. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3032. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3033. cat confcache >"$cache_file"
  3034. else
  3035. case $cache_file in #(
  3036. */* | ?:*)
  3037. mv -f confcache "$cache_file"$$ &&
  3038. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3039. *)
  3040. mv -f confcache "$cache_file" ;;
  3041. esac
  3042. fi
  3043. fi
  3044. else
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3046. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3047. fi
  3048. fi
  3049. rm -f confcache
  3050. # Speedup compile
  3051. if test -n "$GXX" && test -z "$no_wall"; then
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3053. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3054. if ${egg_cv_var_ccwall+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. ac_old_CXXFLAGS="$CXXFLAGS"
  3058. CXXFLAGS="$CXXFLAGS -Wall"
  3059. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3060. /* end build/confdefs.h. */
  3061. int main ()
  3062. {
  3063. return(0);
  3064. }
  3065. _ACEOF
  3066. if ac_fn_cxx_try_compile "$LINENO"; then :
  3067. egg_cv_var_ccwall="yes"
  3068. else
  3069. egg_cv_var_ccwall="no"
  3070. fi
  3071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3072. CXXFLAGS="$ac_old_CXXFLAGS"
  3073. fi
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3075. $as_echo "$egg_cv_var_ccwall" >&6; }
  3076. if test "$egg_cv_var_ccwall" = "yes"; then
  3077. CXXFLAGS="$CXXFLAGS -Wall"
  3078. fi
  3079. fi
  3080. if test -n "$GXX" && test -z "$no_pipe"; then
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3082. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3083. if ${egg_cv_var_ccpipe+:} false; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. ac_old_CXX="$CXX"
  3087. CXX="$CXX -pipe"
  3088. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3089. /* end build/confdefs.h. */
  3090. int main ()
  3091. {
  3092. return(0);
  3093. }
  3094. _ACEOF
  3095. if ac_fn_cxx_try_compile "$LINENO"; then :
  3096. egg_cv_var_ccpipe="yes"
  3097. else
  3098. egg_cv_var_ccpipe="no"
  3099. fi
  3100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3101. CXX="$ac_old_CXX"
  3102. fi
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3104. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3105. if test "$egg_cv_var_ccpipe" = "yes"; then
  3106. CXX="$CXX -pipe"
  3107. fi
  3108. fi
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3110. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3111. if ${egg_cv_prog_cc_colordiagnostics+:} false; then :
  3112. $as_echo_n "(cached) " >&6
  3113. else
  3114. ac_ext=cpp
  3115. ac_cpp='$CXXCPP $CPPFLAGS'
  3116. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3117. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3118. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3119. ac_saved_flags="$CXXFLAGS"
  3120. CXXFLAGS="-Werror -fcolor-diagnostics"
  3121. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3122. /* end build/confdefs.h. */
  3123. int
  3124. main ()
  3125. {
  3126. ;
  3127. return 0;
  3128. }
  3129. _ACEOF
  3130. if ac_fn_cxx_try_compile "$LINENO"; then :
  3131. egg_cv_prog_cc_colordiagnostics="yes"
  3132. else
  3133. egg_cv_prog_cc_colordiagnostics="no"
  3134. fi
  3135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3136. CXXFLAGS="$ac_saved_flags"
  3137. ac_ext=cpp
  3138. ac_cpp='$CXXCPP $CPPFLAGS'
  3139. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3140. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3141. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3142. fi
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_prog_cc_colordiagnostics" >&5
  3144. $as_echo "$egg_cv_prog_cc_colordiagnostics" >&6; }
  3145. if [ "$egg_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3146. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3147. elif [ -n "" ]; then
  3148. cat << 'EOF' >&2
  3149. configure: error:
  3150. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3151. This compile flag is required.
  3152. EOF
  3153. exit 1
  3154. fi
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Qunused-arguments" >&5
  3156. $as_echo_n "checking whether the compiler understands -Qunused-arguments... " >&6; }
  3157. if ${egg_cv_prog_cc_unusedarguments+:} false; then :
  3158. $as_echo_n "(cached) " >&6
  3159. else
  3160. ac_ext=cpp
  3161. ac_cpp='$CXXCPP $CPPFLAGS'
  3162. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3163. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3164. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3165. ac_saved_flags="$CXXFLAGS"
  3166. CXXFLAGS="-Werror -Qunused-arguments"
  3167. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3168. /* end build/confdefs.h. */
  3169. int
  3170. main ()
  3171. {
  3172. ;
  3173. return 0;
  3174. }
  3175. _ACEOF
  3176. if ac_fn_cxx_try_compile "$LINENO"; then :
  3177. egg_cv_prog_cc_unusedarguments="yes"
  3178. else
  3179. egg_cv_prog_cc_unusedarguments="no"
  3180. fi
  3181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3182. CXXFLAGS="$ac_saved_flags"
  3183. ac_ext=cpp
  3184. ac_cpp='$CXXCPP $CPPFLAGS'
  3185. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3186. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3187. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3188. fi
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_prog_cc_unusedarguments" >&5
  3190. $as_echo "$egg_cv_prog_cc_unusedarguments" >&6; }
  3191. if [ "$egg_cv_prog_cc_unusedarguments" = "yes" ]; then
  3192. CXXFLAGS="$CXXFLAGS -Qunused-arguments"
  3193. elif [ -n "" ]; then
  3194. cat << 'EOF' >&2
  3195. configure: error:
  3196. Your OS or C++ compiler does not support -Qunused-arguments.
  3197. This compile flag is required.
  3198. EOF
  3199. exit 1
  3200. fi
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  3202. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  3203. if ${egg_cv_prog_cc_stackprotector+:} false; then :
  3204. $as_echo_n "(cached) " >&6
  3205. else
  3206. ac_ext=cpp
  3207. ac_cpp='$CXXCPP $CPPFLAGS'
  3208. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3209. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3210. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3211. ac_saved_flags="$CXXFLAGS"
  3212. CXXFLAGS="-Werror -fstack-protector-all"
  3213. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3214. /* end build/confdefs.h. */
  3215. int
  3216. main ()
  3217. {
  3218. ;
  3219. return 0;
  3220. }
  3221. _ACEOF
  3222. if ac_fn_cxx_try_compile "$LINENO"; then :
  3223. egg_cv_prog_cc_stackprotector="yes"
  3224. else
  3225. egg_cv_prog_cc_stackprotector="no"
  3226. fi
  3227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3228. CXXFLAGS="$ac_saved_flags"
  3229. ac_ext=cpp
  3230. ac_cpp='$CXXCPP $CPPFLAGS'
  3231. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3232. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3233. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3234. fi
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_prog_cc_stackprotector" >&5
  3236. $as_echo "$egg_cv_prog_cc_stackprotector" >&6; }
  3237. if [ "$egg_cv_prog_cc_stackprotector" = "yes" ]; then
  3238. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  3239. elif [ -n "" ]; then
  3240. cat << 'EOF' >&2
  3241. configure: error:
  3242. Your OS or C++ compiler does not support -fstack-protector-all.
  3243. This compile flag is required.
  3244. EOF
  3245. exit 1
  3246. fi
  3247. CCDEPMODE=gcc
  3248. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3249. if test $num -ge "3"; then
  3250. CCDEPMODE=gcc3
  3251. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3252. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing -Woverloaded-virtual -Wno-format-y2k"
  3253. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3254. fi
  3255. #checkpoint
  3256. cat >confcache <<\_ACEOF
  3257. # This file is a shell script that caches the results of configure
  3258. # tests run on this system so they can be shared between configure
  3259. # scripts and configure runs, see configure's option --config-cache.
  3260. # It is not useful on other systems. If it contains results you don't
  3261. # want to keep, you may remove or edit it.
  3262. #
  3263. # build/config.status only pays attention to the cache file if you give it
  3264. # the --recheck option to rerun configure.
  3265. #
  3266. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3267. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3268. # following values.
  3269. _ACEOF
  3270. # The following way of writing the cache mishandles newlines in values,
  3271. # but we know of no workaround that is simple, portable, and efficient.
  3272. # So, we kill variables containing newlines.
  3273. # Ultrix sh set writes to stderr and can't be redirected directly,
  3274. # and sets the high bit in the cache file unless we assign to the vars.
  3275. (
  3276. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3277. eval ac_val=\$$ac_var
  3278. case $ac_val in #(
  3279. *${as_nl}*)
  3280. case $ac_var in #(
  3281. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3282. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3283. esac
  3284. case $ac_var in #(
  3285. _ | IFS | as_nl) ;; #(
  3286. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3287. *) { eval $ac_var=; unset $ac_var;} ;;
  3288. esac ;;
  3289. esac
  3290. done
  3291. (set) 2>&1 |
  3292. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3293. *${as_nl}ac_space=\ *)
  3294. # `set' does not quote correctly, so add quotes: double-quote
  3295. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3296. sed -n \
  3297. "s/'/'\\\\''/g;
  3298. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3299. ;; #(
  3300. *)
  3301. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3302. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3303. ;;
  3304. esac |
  3305. sort
  3306. ) |
  3307. sed '
  3308. /^ac_cv_env_/b end
  3309. t clear
  3310. :clear
  3311. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3312. t end
  3313. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3314. :end' >>confcache
  3315. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3316. if test -w "$cache_file"; then
  3317. if test "x$cache_file" != "x/dev/null"; then
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3319. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3320. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3321. cat confcache >"$cache_file"
  3322. else
  3323. case $cache_file in #(
  3324. */* | ?:*)
  3325. mv -f confcache "$cache_file"$$ &&
  3326. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3327. *)
  3328. mv -f confcache "$cache_file" ;;
  3329. esac
  3330. fi
  3331. fi
  3332. else
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3334. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3335. fi
  3336. fi
  3337. rm -f confcache
  3338. # Checks for programs
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3340. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3341. set x ${MAKE-make}
  3342. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3343. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. cat >conftest.make <<\_ACEOF
  3347. SHELL = /bin/sh
  3348. all:
  3349. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3350. _ACEOF
  3351. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3352. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3353. *@@@%%%=?*=@@@%%%*)
  3354. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3355. *)
  3356. eval ac_cv_prog_make_${ac_make}_set=no;;
  3357. esac
  3358. rm -f conftest.make
  3359. fi
  3360. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3362. $as_echo "yes" >&6; }
  3363. SET_MAKE=
  3364. else
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3366. $as_echo "no" >&6; }
  3367. SET_MAKE="MAKE=${MAKE-make}"
  3368. fi
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3370. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3371. if ${ac_cv_path_SED+:} false; then :
  3372. $as_echo_n "(cached) " >&6
  3373. else
  3374. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3375. for ac_i in 1 2 3 4 5 6 7; do
  3376. ac_script="$ac_script$as_nl$ac_script"
  3377. done
  3378. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3379. { ac_script=; unset ac_script;}
  3380. if test -z "$SED"; then
  3381. ac_path_SED_found=false
  3382. # Loop through the user's path and test for each of PROGNAME-LIST
  3383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3384. for as_dir in $PATH
  3385. do
  3386. IFS=$as_save_IFS
  3387. test -z "$as_dir" && as_dir=.
  3388. for ac_prog in sed gsed; do
  3389. for ac_exec_ext in '' $ac_executable_extensions; do
  3390. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3391. as_fn_executable_p "$ac_path_SED" || continue
  3392. # Check for GNU ac_path_SED and select it if it is found.
  3393. # Check for GNU $ac_path_SED
  3394. case `"$ac_path_SED" --version 2>&1` in
  3395. *GNU*)
  3396. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3397. *)
  3398. ac_count=0
  3399. $as_echo_n 0123456789 >"conftest.in"
  3400. while :
  3401. do
  3402. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3403. mv "conftest.tmp" "conftest.in"
  3404. cp "conftest.in" "conftest.nl"
  3405. $as_echo '' >> "conftest.nl"
  3406. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3407. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3408. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3409. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3410. # Best one so far, save it but keep looking for a better one
  3411. ac_cv_path_SED="$ac_path_SED"
  3412. ac_path_SED_max=$ac_count
  3413. fi
  3414. # 10*(2^10) chars as input seems more than enough
  3415. test $ac_count -gt 10 && break
  3416. done
  3417. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3418. esac
  3419. $ac_path_SED_found && break 3
  3420. done
  3421. done
  3422. done
  3423. IFS=$as_save_IFS
  3424. if test -z "$ac_cv_path_SED"; then
  3425. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3426. fi
  3427. else
  3428. ac_cv_path_SED=$SED
  3429. fi
  3430. fi
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3432. $as_echo "$ac_cv_path_SED" >&6; }
  3433. SED="$ac_cv_path_SED"
  3434. rm -f conftest.sed
  3435. cat << 'EOF' > conftest.head
  3436. a
  3437. b
  3438. c
  3439. EOF
  3440. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3441. do
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  3443. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3444. if ${ac_cv_prog_HEAD_1+:} false; then :
  3445. $as_echo_n "(cached) " >&6
  3446. else
  3447. if test -n "$HEAD_1"
  3448. then
  3449. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3450. else
  3451. if test "`cat conftest.head | $ac_prog`" = "a";
  3452. then
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3454. $as_echo "yes" >&6; }
  3455. ac_cv_prog_HEAD_1=$ac_prog
  3456. else
  3457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3458. $as_echo "no" >&6; }
  3459. fi
  3460. fi
  3461. fi
  3462. test -n "$ac_cv_prog_HEAD_1" && break
  3463. done
  3464. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3465. then
  3466. cat << 'EOF' >&2
  3467. configure: error:
  3468. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3469. A working 'head -1' (or equivalent) command is required to compile Wraith.
  3470. EOF
  3471. exit 1
  3472. fi
  3473. rm -f conftest.head
  3474. HEAD_1=$ac_cv_prog_HEAD_1
  3475. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3476. for ac_prog in gawk mawk nawk awk
  3477. do
  3478. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3479. set dummy $ac_prog; ac_word=$2
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3481. $as_echo_n "checking for $ac_word... " >&6; }
  3482. if ${ac_cv_prog_AWK+:} false; then :
  3483. $as_echo_n "(cached) " >&6
  3484. else
  3485. if test -n "$AWK"; then
  3486. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3487. else
  3488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3489. for as_dir in $PATH
  3490. do
  3491. IFS=$as_save_IFS
  3492. test -z "$as_dir" && as_dir=.
  3493. for ac_exec_ext in '' $ac_executable_extensions; do
  3494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3495. ac_cv_prog_AWK="$ac_prog"
  3496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3497. break 2
  3498. fi
  3499. done
  3500. done
  3501. IFS=$as_save_IFS
  3502. fi
  3503. fi
  3504. AWK=$ac_cv_prog_AWK
  3505. if test -n "$AWK"; then
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3507. $as_echo "$AWK" >&6; }
  3508. else
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3510. $as_echo "no" >&6; }
  3511. fi
  3512. test -n "$AWK" && break
  3513. done
  3514. if test "${AWK-x}" = "x"
  3515. then
  3516. cat << 'EOF' >&2
  3517. configure: error:
  3518. This system seems to lack a working 'awk' command.
  3519. A working 'awk' command is required to compile Wraith.
  3520. EOF
  3521. exit 1
  3522. fi
  3523. # basename is needed for Tcl library and header checks
  3524. # Extract the first word of "basename", so it can be a program name with args.
  3525. set dummy basename; ac_word=$2
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3527. $as_echo_n "checking for $ac_word... " >&6; }
  3528. if ${ac_cv_prog_BASENAME+:} false; then :
  3529. $as_echo_n "(cached) " >&6
  3530. else
  3531. if test -n "$BASENAME"; then
  3532. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3533. else
  3534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535. for as_dir in $PATH
  3536. do
  3537. IFS=$as_save_IFS
  3538. test -z "$as_dir" && as_dir=.
  3539. for ac_exec_ext in '' $ac_executable_extensions; do
  3540. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3541. ac_cv_prog_BASENAME="basename"
  3542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3543. break 2
  3544. fi
  3545. done
  3546. done
  3547. IFS=$as_save_IFS
  3548. fi
  3549. fi
  3550. BASENAME=$ac_cv_prog_BASENAME
  3551. if test -n "$BASENAME"; then
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  3553. $as_echo "$BASENAME" >&6; }
  3554. else
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3556. $as_echo "no" >&6; }
  3557. fi
  3558. if test "${BASENAME-x}" = "x"
  3559. then
  3560. cat << 'EOF' >&2
  3561. configure: error:
  3562. This system seems to lack a working 'basename' command.
  3563. A working 'basename' command is required to compile Wraith.
  3564. EOF
  3565. exit 1
  3566. fi
  3567. # Extract the first word of "objcopy", so it can be a program name with args.
  3568. set dummy objcopy; ac_word=$2
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3570. $as_echo_n "checking for $ac_word... " >&6; }
  3571. if ${ac_cv_prog_OBJCOPY+:} false; then :
  3572. $as_echo_n "(cached) " >&6
  3573. else
  3574. if test -n "$OBJCOPY"; then
  3575. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3576. else
  3577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3578. for as_dir in $PATH
  3579. do
  3580. IFS=$as_save_IFS
  3581. test -z "$as_dir" && as_dir=.
  3582. for ac_exec_ext in '' $ac_executable_extensions; do
  3583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3584. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3586. break 2
  3587. fi
  3588. done
  3589. done
  3590. IFS=$as_save_IFS
  3591. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3592. fi
  3593. fi
  3594. OBJCOPY=$ac_cv_prog_OBJCOPY
  3595. if test -n "$OBJCOPY"; then
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  3597. $as_echo "$OBJCOPY" >&6; }
  3598. else
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3600. $as_echo "no" >&6; }
  3601. fi
  3602. # Extract the first word of "strip", so it can be a program name with args.
  3603. set dummy strip; ac_word=$2
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3605. $as_echo_n "checking for $ac_word... " >&6; }
  3606. if ${ac_cv_prog_STRIP+:} false; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. if test -n "$STRIP"; then
  3610. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3611. else
  3612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3613. for as_dir in $PATH
  3614. do
  3615. IFS=$as_save_IFS
  3616. test -z "$as_dir" && as_dir=.
  3617. for ac_exec_ext in '' $ac_executable_extensions; do
  3618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3619. ac_cv_prog_STRIP="strip"
  3620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3621. break 2
  3622. fi
  3623. done
  3624. done
  3625. IFS=$as_save_IFS
  3626. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3627. fi
  3628. fi
  3629. STRIP=$ac_cv_prog_STRIP
  3630. if test -n "$STRIP"; then
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3632. $as_echo "$STRIP" >&6; }
  3633. else
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3635. $as_echo "no" >&6; }
  3636. fi
  3637. # Extract the first word of "gdiff", so it can be a program name with args.
  3638. set dummy gdiff; ac_word=$2
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3640. $as_echo_n "checking for $ac_word... " >&6; }
  3641. if ${ac_cv_prog_DIFF+:} false; then :
  3642. $as_echo_n "(cached) " >&6
  3643. else
  3644. if test -n "$DIFF"; then
  3645. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3646. else
  3647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3648. for as_dir in $PATH
  3649. do
  3650. IFS=$as_save_IFS
  3651. test -z "$as_dir" && as_dir=.
  3652. for ac_exec_ext in '' $ac_executable_extensions; do
  3653. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3654. ac_cv_prog_DIFF="gdiff"
  3655. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3656. break 2
  3657. fi
  3658. done
  3659. done
  3660. IFS=$as_save_IFS
  3661. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3662. fi
  3663. fi
  3664. DIFF=$ac_cv_prog_DIFF
  3665. if test -n "$DIFF"; then
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  3667. $as_echo "$DIFF" >&6; }
  3668. else
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670. $as_echo "no" >&6; }
  3671. fi
  3672. # Extract the first word of "uname", so it can be a program name with args.
  3673. set dummy uname; ac_word=$2
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3675. $as_echo_n "checking for $ac_word... " >&6; }
  3676. if ${ac_cv_prog_UNAME+:} false; then :
  3677. $as_echo_n "(cached) " >&6
  3678. else
  3679. if test -n "$UNAME"; then
  3680. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3681. else
  3682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3683. for as_dir in $PATH
  3684. do
  3685. IFS=$as_save_IFS
  3686. test -z "$as_dir" && as_dir=.
  3687. for ac_exec_ext in '' $ac_executable_extensions; do
  3688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3689. ac_cv_prog_UNAME="uname"
  3690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3691. break 2
  3692. fi
  3693. done
  3694. done
  3695. IFS=$as_save_IFS
  3696. fi
  3697. fi
  3698. UNAME=$ac_cv_prog_UNAME
  3699. if test -n "$UNAME"; then
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  3701. $as_echo "$UNAME" >&6; }
  3702. else
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3704. $as_echo "no" >&6; }
  3705. fi
  3706. # Extract the first word of "ccache", so it can be a program name with args.
  3707. set dummy ccache; ac_word=$2
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3709. $as_echo_n "checking for $ac_word... " >&6; }
  3710. if ${ac_cv_prog_CCACHE+:} false; then :
  3711. $as_echo_n "(cached) " >&6
  3712. else
  3713. if test -n "$CCACHE"; then
  3714. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3715. else
  3716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3717. for as_dir in $PATH
  3718. do
  3719. IFS=$as_save_IFS
  3720. test -z "$as_dir" && as_dir=.
  3721. for ac_exec_ext in '' $ac_executable_extensions; do
  3722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3723. ac_cv_prog_CCACHE="ccache"
  3724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3725. break 2
  3726. fi
  3727. done
  3728. done
  3729. IFS=$as_save_IFS
  3730. fi
  3731. fi
  3732. CCACHE=$ac_cv_prog_CCACHE
  3733. if test -n "$CCACHE"; then
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  3735. $as_echo "$CCACHE" >&6; }
  3736. else
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3738. $as_echo "no" >&6; }
  3739. fi
  3740. # Extract the first word of "distcc", so it can be a program name with args.
  3741. set dummy distcc; ac_word=$2
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3743. $as_echo_n "checking for $ac_word... " >&6; }
  3744. if ${ac_cv_prog_DISTCC+:} false; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. if test -n "$DISTCC"; then
  3748. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3749. else
  3750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3751. for as_dir in $PATH
  3752. do
  3753. IFS=$as_save_IFS
  3754. test -z "$as_dir" && as_dir=.
  3755. for ac_exec_ext in '' $ac_executable_extensions; do
  3756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3757. ac_cv_prog_DISTCC="distcc"
  3758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3759. break 2
  3760. fi
  3761. done
  3762. done
  3763. IFS=$as_save_IFS
  3764. fi
  3765. fi
  3766. DISTCC=$ac_cv_prog_DISTCC
  3767. if test -n "$DISTCC"; then
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
  3769. $as_echo "$DISTCC" >&6; }
  3770. else
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3772. $as_echo "no" >&6; }
  3773. fi
  3774. # Test the os and set the module linking settings
  3775. USE_STATIC=yes
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  3777. $as_echo_n "checking system type... " >&6; }
  3778. if ${egg_cv_var_system_type+:} false; then :
  3779. $as_echo_n "(cached) " >&6
  3780. else
  3781. egg_cv_var_system_type=`$UNAME -s`
  3782. fi
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  3784. $as_echo "$egg_cv_var_system_type" >&6; }
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  3786. $as_echo_n "checking system release... " >&6; }
  3787. if ${egg_cv_var_system_release+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. egg_cv_var_system_release=`$UNAME -r`
  3791. fi
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  3793. $as_echo "$egg_cv_var_system_release" >&6; }
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  3795. $as_echo_n "checking system machine... " >&6; }
  3796. if ${egg_cv_var_system_machine+:} false; then :
  3797. $as_echo_n "(cached) " >&6
  3798. else
  3799. egg_cv_var_system_machine=`$UNAME -m`
  3800. fi
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  3802. $as_echo "$egg_cv_var_system_machine" >&6; }
  3803. BUILDOS="$egg_cv_var_system_type"
  3804. BUILDARCH="$egg_cv_var_system_machine"
  3805. USE_GENERIC_I486="yes"
  3806. case "$egg_cv_var_system_type" in
  3807. BSD/OS)
  3808. ;;
  3809. IRIX)
  3810. ;;
  3811. HP-UX)
  3812. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  3813. ;;
  3814. Ultrix)
  3815. SHELL=/bin/sh5
  3816. ;;
  3817. SINIX*)
  3818. ;;
  3819. BeOS)
  3820. ;;
  3821. Linux)
  3822. ;;
  3823. Lynx)
  3824. ;;
  3825. QNX)
  3826. ;;
  3827. OSF1)
  3828. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3829. V*)
  3830. if test "$AWK" = "gawk"
  3831. then
  3832. AWK=awk
  3833. fi
  3834. ;;
  3835. 1.0|1.1|1.2)
  3836. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3837. ;;
  3838. 1.*)
  3839. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  3840. ;;
  3841. *)
  3842. ;;
  3843. esac
  3844. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  3845. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  3846. ;;
  3847. SunOS)
  3848. SUNOS="yes"
  3849. USE_STATIC="no"
  3850. ;;
  3851. Darwin)
  3852. USE_STATIC="no"
  3853. USE_GENERIC_I486="no"
  3854. ;;
  3855. *BSD)
  3856. # FreeBSD/OpenBSD/NetBSD
  3857. ;;
  3858. *)
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  3860. $as_echo_n "checking if system is Mach based... " >&6; }
  3861. if test -r /mach
  3862. then
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3864. $as_echo "yes" >&6; }
  3865. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  3866. else
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3868. $as_echo "no" >&6; }
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  3870. $as_echo_n "checking if system is QNX... " >&6; }
  3871. if test -r /cmds
  3872. then
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3874. $as_echo "yes" >&6; }
  3875. else
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3877. $as_echo "no" >&6; }
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  3879. $as_echo "Something unknown!" >&6; }
  3880. fi
  3881. fi
  3882. ;;
  3883. esac
  3884. case "$egg_cv_var_system_machine" in
  3885. i*)
  3886. if test "$USE_GENERIC_I486" = "yes"; then
  3887. CXX="$CXX -march=i486"
  3888. BUILDARCH="i486"
  3889. fi
  3890. ;;
  3891. *)
  3892. ;;
  3893. esac
  3894. # Check for IPv6 support
  3895. #EGG_IPV6_SUPPORTED
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  3897. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  3898. # Check whether --enable-ipv6 was given.
  3899. if test "${enable_ipv6+set}" = set; then :
  3900. enableval=$enable_ipv6;
  3901. enable_ipv6=$enableval
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  3903. $as_echo "$enableval" >&6; }
  3904. else
  3905. # default if not given is ENABLED
  3906. if test "x$enableval" = "x"; then
  3907. enableval="yes"
  3908. fi
  3909. enable_ipv6=$enableval
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  3911. $as_echo "$enableval" >&6; }
  3912. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  3913. fi
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  3915. $as_echo_n "checking for socklen_t... " >&6; }
  3916. if ${egg_cv_socklen_t+:} false; then :
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. if test "$cross_compiling" = yes; then :
  3920. egg_cv_socklen_t=no
  3921. else
  3922. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3923. /* end build/confdefs.h. */
  3924. #include <unistd.h>
  3925. #include <sys/types.h>
  3926. #include <sys/socket.h>
  3927. #include <netinet/in.h>
  3928. #include <arpa/inet.h>
  3929. int main()
  3930. {
  3931. socklen_t test = sizeof(int);
  3932. return 0;
  3933. }
  3934. _ACEOF
  3935. if ac_fn_cxx_try_run "$LINENO"; then :
  3936. egg_cv_socklen_t=yes
  3937. else
  3938. egg_cv_socklen_t=no
  3939. fi
  3940. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3941. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3942. fi
  3943. fi
  3944. if test "$egg_cv_socklen_t" = "yes"; then
  3945. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3947. $as_echo "yes" >&6; }
  3948. else
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3950. $as_echo "no" >&6; }
  3951. fi
  3952. # Check for inconsistent random() functions
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  3954. $as_echo_n "checking for random limit... " >&6; }
  3955. case "$egg_cv_var_system_type" in
  3956. SunOS) RMAX=0x7FFFFFFF
  3957. ;;
  3958. *) RMAX=RAND_MAX
  3959. ;;
  3960. esac
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  3962. $as_echo "$RMAX" >&6; }
  3963. cat >>build/confdefs.h <<_ACEOF
  3964. #define RANDOM_MAX $RMAX
  3965. _ACEOF
  3966. # Create static binaries
  3967. if test "$USE_STATIC" = "yes"
  3968. then
  3969. if test -n "$GXX"
  3970. then
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  3972. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  3973. if ${egg_cv_var_ccstatic+:} false; then :
  3974. $as_echo_n "(cached) " >&6
  3975. else
  3976. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3977. /* end build/confdefs.h. */
  3978. int
  3979. main ()
  3980. {
  3981. ;
  3982. return 0;
  3983. }
  3984. _ACEOF
  3985. if ac_fn_cxx_try_compile "$LINENO"; then :
  3986. egg_cv_var_ccstatic="yes"
  3987. else
  3988. egg_cv_var_ccstatic="no"
  3989. fi
  3990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3991. fi
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  3993. $as_echo "$egg_cv_var_ccstatic" >&6; }
  3994. if ! test "$egg_cv_var_ccstatic" = "yes"
  3995. then
  3996. cat << 'EOF' >&2
  3997. configure: error:
  3998. Your OS or C++ compiler does not support -static.
  3999. This compile flag is required for the botpack on this OS.
  4000. EOF
  4001. exit 1
  4002. fi
  4003. fi
  4004. STATIC="-static"
  4005. else
  4006. STATIC=""
  4007. fi
  4008. #checkpoint
  4009. cat >confcache <<\_ACEOF
  4010. # This file is a shell script that caches the results of configure
  4011. # tests run on this system so they can be shared between configure
  4012. # scripts and configure runs, see configure's option --config-cache.
  4013. # It is not useful on other systems. If it contains results you don't
  4014. # want to keep, you may remove or edit it.
  4015. #
  4016. # build/config.status only pays attention to the cache file if you give it
  4017. # the --recheck option to rerun configure.
  4018. #
  4019. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4020. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4021. # following values.
  4022. _ACEOF
  4023. # The following way of writing the cache mishandles newlines in values,
  4024. # but we know of no workaround that is simple, portable, and efficient.
  4025. # So, we kill variables containing newlines.
  4026. # Ultrix sh set writes to stderr and can't be redirected directly,
  4027. # and sets the high bit in the cache file unless we assign to the vars.
  4028. (
  4029. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4030. eval ac_val=\$$ac_var
  4031. case $ac_val in #(
  4032. *${as_nl}*)
  4033. case $ac_var in #(
  4034. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4035. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4036. esac
  4037. case $ac_var in #(
  4038. _ | IFS | as_nl) ;; #(
  4039. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4040. *) { eval $ac_var=; unset $ac_var;} ;;
  4041. esac ;;
  4042. esac
  4043. done
  4044. (set) 2>&1 |
  4045. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4046. *${as_nl}ac_space=\ *)
  4047. # `set' does not quote correctly, so add quotes: double-quote
  4048. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4049. sed -n \
  4050. "s/'/'\\\\''/g;
  4051. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4052. ;; #(
  4053. *)
  4054. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4055. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4056. ;;
  4057. esac |
  4058. sort
  4059. ) |
  4060. sed '
  4061. /^ac_cv_env_/b end
  4062. t clear
  4063. :clear
  4064. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4065. t end
  4066. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4067. :end' >>confcache
  4068. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4069. if test -w "$cache_file"; then
  4070. if test "x$cache_file" != "x/dev/null"; then
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4072. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4073. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4074. cat confcache >"$cache_file"
  4075. else
  4076. case $cache_file in #(
  4077. */* | ?:*)
  4078. mv -f confcache "$cache_file"$$ &&
  4079. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4080. *)
  4081. mv -f confcache "$cache_file" ;;
  4082. esac
  4083. fi
  4084. fi
  4085. else
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4087. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4088. fi
  4089. fi
  4090. rm -f confcache
  4091. # Checks for system libraries
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  4093. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4094. if ${ac_cv_lib_socket_socket+:} false; then :
  4095. $as_echo_n "(cached) " >&6
  4096. else
  4097. ac_check_lib_save_LIBS=$LIBS
  4098. LIBS="-lsocket $LIBS"
  4099. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4100. /* end build/confdefs.h. */
  4101. /* Override any GCC internal prototype to avoid an error.
  4102. Use char because int might match the return type of a GCC
  4103. builtin and then its argument prototype would still apply. */
  4104. #ifdef __cplusplus
  4105. extern "C"
  4106. #endif
  4107. char socket ();
  4108. int
  4109. main ()
  4110. {
  4111. return socket ();
  4112. ;
  4113. return 0;
  4114. }
  4115. _ACEOF
  4116. if ac_fn_cxx_try_link "$LINENO"; then :
  4117. ac_cv_lib_socket_socket=yes
  4118. else
  4119. ac_cv_lib_socket_socket=no
  4120. fi
  4121. rm -f core conftest.err conftest.$ac_objext \
  4122. conftest$ac_exeext conftest.$ac_ext
  4123. LIBS=$ac_check_lib_save_LIBS
  4124. fi
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  4126. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4127. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  4128. cat >>build/confdefs.h <<_ACEOF
  4129. #define HAVE_LIBSOCKET 1
  4130. _ACEOF
  4131. LIBS="-lsocket $LIBS"
  4132. fi
  4133. # AC_CHECK_LIB(nsl, connect)
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  4135. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  4136. if ${ac_cv_lib_dl_dlopen+:} false; then :
  4137. $as_echo_n "(cached) " >&6
  4138. else
  4139. ac_check_lib_save_LIBS=$LIBS
  4140. LIBS="-ldl $LIBS"
  4141. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4142. /* end build/confdefs.h. */
  4143. /* Override any GCC internal prototype to avoid an error.
  4144. Use char because int might match the return type of a GCC
  4145. builtin and then its argument prototype would still apply. */
  4146. #ifdef __cplusplus
  4147. extern "C"
  4148. #endif
  4149. char dlopen ();
  4150. int
  4151. main ()
  4152. {
  4153. return dlopen ();
  4154. ;
  4155. return 0;
  4156. }
  4157. _ACEOF
  4158. if ac_fn_cxx_try_link "$LINENO"; then :
  4159. ac_cv_lib_dl_dlopen=yes
  4160. else
  4161. ac_cv_lib_dl_dlopen=no
  4162. fi
  4163. rm -f core conftest.err conftest.$ac_objext \
  4164. conftest$ac_exeext conftest.$ac_ext
  4165. LIBS=$ac_check_lib_save_LIBS
  4166. fi
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  4168. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  4169. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  4170. cat >>build/confdefs.h <<_ACEOF
  4171. #define HAVE_LIBDL 1
  4172. _ACEOF
  4173. LIBS="-ldl $LIBS"
  4174. fi
  4175. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4176. # This is needed for Tcl libraries compiled with thread support
  4177. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4178. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4179. # ac_cv_lib_pthread="-lpthread"], [dnl
  4180. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4181. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4182. # ac_cv_lib_pthread="-lpthread"], [dnl
  4183. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4184. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4185. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4186. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4187. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4188. # ac_cv_lib_pthread=""],
  4189. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4190. if test "$SUNOS" = "yes"; then
  4191. # For suns without yp
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4193. $as_echo_n "checking for main in -ldl... " >&6; }
  4194. if ${ac_cv_lib_dl_main+:} false; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. ac_check_lib_save_LIBS=$LIBS
  4198. LIBS="-ldl $LIBS"
  4199. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4200. /* end build/confdefs.h. */
  4201. int
  4202. main ()
  4203. {
  4204. return main ();
  4205. ;
  4206. return 0;
  4207. }
  4208. _ACEOF
  4209. if ac_fn_cxx_try_link "$LINENO"; then :
  4210. ac_cv_lib_dl_main=yes
  4211. else
  4212. ac_cv_lib_dl_main=no
  4213. fi
  4214. rm -f core conftest.err conftest.$ac_objext \
  4215. conftest$ac_exeext conftest.$ac_ext
  4216. LIBS=$ac_check_lib_save_LIBS
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4219. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4220. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4221. cat >>build/confdefs.h <<_ACEOF
  4222. #define HAVE_LIBDL 1
  4223. _ACEOF
  4224. LIBS="-ldl $LIBS"
  4225. fi
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  4227. $as_echo_n "checking for main in -lsocket... " >&6; }
  4228. if ${ac_cv_lib_socket_main+:} false; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. ac_check_lib_save_LIBS=$LIBS
  4232. LIBS="-lsocket $LIBS"
  4233. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4234. /* end build/confdefs.h. */
  4235. int
  4236. main ()
  4237. {
  4238. return main ();
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. if ac_fn_cxx_try_link "$LINENO"; then :
  4244. ac_cv_lib_socket_main=yes
  4245. else
  4246. ac_cv_lib_socket_main=no
  4247. fi
  4248. rm -f core conftest.err conftest.$ac_objext \
  4249. conftest$ac_exeext conftest.$ac_ext
  4250. LIBS=$ac_check_lib_save_LIBS
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  4253. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4254. if test "x$ac_cv_lib_socket_main" = xyes; then :
  4255. cat >>build/confdefs.h <<_ACEOF
  4256. #define HAVE_LIBSOCKET 1
  4257. _ACEOF
  4258. LIBS="-lsocket $LIBS"
  4259. fi
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  4261. $as_echo_n "checking for main in -lnsl... " >&6; }
  4262. if ${ac_cv_lib_nsl_main+:} false; then :
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. ac_check_lib_save_LIBS=$LIBS
  4266. LIBS="-lnsl $LIBS"
  4267. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4268. /* end build/confdefs.h. */
  4269. int
  4270. main ()
  4271. {
  4272. return main ();
  4273. ;
  4274. return 0;
  4275. }
  4276. _ACEOF
  4277. if ac_fn_cxx_try_link "$LINENO"; then :
  4278. ac_cv_lib_nsl_main=yes
  4279. else
  4280. ac_cv_lib_nsl_main=no
  4281. fi
  4282. rm -f core conftest.err conftest.$ac_objext \
  4283. conftest$ac_exeext conftest.$ac_ext
  4284. LIBS=$ac_check_lib_save_LIBS
  4285. fi
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  4287. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4288. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  4289. cat >>build/confdefs.h <<_ACEOF
  4290. #define HAVE_LIBNSL 1
  4291. _ACEOF
  4292. LIBS="-lnsl $LIBS"
  4293. fi
  4294. fi
  4295. # Checks for header files
  4296. ac_header_dirent=no
  4297. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4298. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  4300. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4301. if eval \${$as_ac_Header+:} false; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4305. /* end build/confdefs.h. */
  4306. #include <sys/types.h>
  4307. #include <$ac_hdr>
  4308. int
  4309. main ()
  4310. {
  4311. if ((DIR *) 0)
  4312. return 0;
  4313. ;
  4314. return 0;
  4315. }
  4316. _ACEOF
  4317. if ac_fn_cxx_try_compile "$LINENO"; then :
  4318. eval "$as_ac_Header=yes"
  4319. else
  4320. eval "$as_ac_Header=no"
  4321. fi
  4322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4323. fi
  4324. eval ac_res=\$$as_ac_Header
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4326. $as_echo "$ac_res" >&6; }
  4327. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4328. cat >>build/confdefs.h <<_ACEOF
  4329. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4330. _ACEOF
  4331. ac_header_dirent=$ac_hdr; break
  4332. fi
  4333. done
  4334. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4335. if test $ac_header_dirent = dirent.h; then
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4337. $as_echo_n "checking for library containing opendir... " >&6; }
  4338. if ${ac_cv_search_opendir+:} false; then :
  4339. $as_echo_n "(cached) " >&6
  4340. else
  4341. ac_func_search_save_LIBS=$LIBS
  4342. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4343. /* end build/confdefs.h. */
  4344. /* Override any GCC internal prototype to avoid an error.
  4345. Use char because int might match the return type of a GCC
  4346. builtin and then its argument prototype would still apply. */
  4347. #ifdef __cplusplus
  4348. extern "C"
  4349. #endif
  4350. char opendir ();
  4351. int
  4352. main ()
  4353. {
  4354. return opendir ();
  4355. ;
  4356. return 0;
  4357. }
  4358. _ACEOF
  4359. for ac_lib in '' dir; do
  4360. if test -z "$ac_lib"; then
  4361. ac_res="none required"
  4362. else
  4363. ac_res=-l$ac_lib
  4364. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4365. fi
  4366. if ac_fn_cxx_try_link "$LINENO"; then :
  4367. ac_cv_search_opendir=$ac_res
  4368. fi
  4369. rm -f core conftest.err conftest.$ac_objext \
  4370. conftest$ac_exeext
  4371. if ${ac_cv_search_opendir+:} false; then :
  4372. break
  4373. fi
  4374. done
  4375. if ${ac_cv_search_opendir+:} false; then :
  4376. else
  4377. ac_cv_search_opendir=no
  4378. fi
  4379. rm conftest.$ac_ext
  4380. LIBS=$ac_func_search_save_LIBS
  4381. fi
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4383. $as_echo "$ac_cv_search_opendir" >&6; }
  4384. ac_res=$ac_cv_search_opendir
  4385. if test "$ac_res" != no; then :
  4386. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4387. fi
  4388. else
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  4390. $as_echo_n "checking for library containing opendir... " >&6; }
  4391. if ${ac_cv_search_opendir+:} false; then :
  4392. $as_echo_n "(cached) " >&6
  4393. else
  4394. ac_func_search_save_LIBS=$LIBS
  4395. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4396. /* end build/confdefs.h. */
  4397. /* Override any GCC internal prototype to avoid an error.
  4398. Use char because int might match the return type of a GCC
  4399. builtin and then its argument prototype would still apply. */
  4400. #ifdef __cplusplus
  4401. extern "C"
  4402. #endif
  4403. char opendir ();
  4404. int
  4405. main ()
  4406. {
  4407. return opendir ();
  4408. ;
  4409. return 0;
  4410. }
  4411. _ACEOF
  4412. for ac_lib in '' x; do
  4413. if test -z "$ac_lib"; then
  4414. ac_res="none required"
  4415. else
  4416. ac_res=-l$ac_lib
  4417. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4418. fi
  4419. if ac_fn_cxx_try_link "$LINENO"; then :
  4420. ac_cv_search_opendir=$ac_res
  4421. fi
  4422. rm -f core conftest.err conftest.$ac_objext \
  4423. conftest$ac_exeext
  4424. if ${ac_cv_search_opendir+:} false; then :
  4425. break
  4426. fi
  4427. done
  4428. if ${ac_cv_search_opendir+:} false; then :
  4429. else
  4430. ac_cv_search_opendir=no
  4431. fi
  4432. rm conftest.$ac_ext
  4433. LIBS=$ac_func_search_save_LIBS
  4434. fi
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  4436. $as_echo "$ac_cv_search_opendir" >&6; }
  4437. ac_res=$ac_cv_search_opendir
  4438. if test "$ac_res" != no; then :
  4439. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4440. fi
  4441. fi
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4443. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4444. if ${ac_cv_header_sys_wait_h+:} false; then :
  4445. $as_echo_n "(cached) " >&6
  4446. else
  4447. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4448. /* end build/confdefs.h. */
  4449. #include <sys/types.h>
  4450. #include <sys/wait.h>
  4451. #ifndef WEXITSTATUS
  4452. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4453. #endif
  4454. #ifndef WIFEXITED
  4455. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4456. #endif
  4457. int
  4458. main ()
  4459. {
  4460. int s;
  4461. wait (&s);
  4462. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4463. ;
  4464. return 0;
  4465. }
  4466. _ACEOF
  4467. if ac_fn_cxx_try_compile "$LINENO"; then :
  4468. ac_cv_header_sys_wait_h=yes
  4469. else
  4470. ac_cv_header_sys_wait_h=no
  4471. fi
  4472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4473. fi
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  4475. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4476. if test $ac_cv_header_sys_wait_h = yes; then
  4477. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  4478. fi
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4480. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4481. if ${ac_cv_header_time+:} false; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4485. /* end build/confdefs.h. */
  4486. #include <sys/types.h>
  4487. #include <sys/time.h>
  4488. #include <time.h>
  4489. int
  4490. main ()
  4491. {
  4492. if ((struct tm *) 0)
  4493. return 0;
  4494. ;
  4495. return 0;
  4496. }
  4497. _ACEOF
  4498. if ac_fn_cxx_try_compile "$LINENO"; then :
  4499. ac_cv_header_time=yes
  4500. else
  4501. ac_cv_header_time=no
  4502. fi
  4503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4504. fi
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4506. $as_echo "$ac_cv_header_time" >&6; }
  4507. if test $ac_cv_header_time = yes; then
  4508. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  4509. fi
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  4511. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4512. if ${ac_cv_header_stat_broken+:} false; then :
  4513. $as_echo_n "(cached) " >&6
  4514. else
  4515. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4516. /* end build/confdefs.h. */
  4517. #include <sys/types.h>
  4518. #include <sys/stat.h>
  4519. #if defined S_ISBLK && defined S_IFDIR
  4520. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4521. #endif
  4522. #if defined S_ISBLK && defined S_IFCHR
  4523. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4524. #endif
  4525. #if defined S_ISLNK && defined S_IFREG
  4526. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4527. #endif
  4528. #if defined S_ISSOCK && defined S_IFREG
  4529. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4530. #endif
  4531. _ACEOF
  4532. if ac_fn_cxx_try_compile "$LINENO"; then :
  4533. ac_cv_header_stat_broken=no
  4534. else
  4535. ac_cv_header_stat_broken=yes
  4536. fi
  4537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4538. fi
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  4540. $as_echo "$ac_cv_header_stat_broken" >&6; }
  4541. if test $ac_cv_header_stat_broken = yes; then
  4542. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  4543. fi
  4544. #checkpoint
  4545. cat >confcache <<\_ACEOF
  4546. # This file is a shell script that caches the results of configure
  4547. # tests run on this system so they can be shared between configure
  4548. # scripts and configure runs, see configure's option --config-cache.
  4549. # It is not useful on other systems. If it contains results you don't
  4550. # want to keep, you may remove or edit it.
  4551. #
  4552. # build/config.status only pays attention to the cache file if you give it
  4553. # the --recheck option to rerun configure.
  4554. #
  4555. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4556. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4557. # following values.
  4558. _ACEOF
  4559. # The following way of writing the cache mishandles newlines in values,
  4560. # but we know of no workaround that is simple, portable, and efficient.
  4561. # So, we kill variables containing newlines.
  4562. # Ultrix sh set writes to stderr and can't be redirected directly,
  4563. # and sets the high bit in the cache file unless we assign to the vars.
  4564. (
  4565. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4566. eval ac_val=\$$ac_var
  4567. case $ac_val in #(
  4568. *${as_nl}*)
  4569. case $ac_var in #(
  4570. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4571. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4572. esac
  4573. case $ac_var in #(
  4574. _ | IFS | as_nl) ;; #(
  4575. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4576. *) { eval $ac_var=; unset $ac_var;} ;;
  4577. esac ;;
  4578. esac
  4579. done
  4580. (set) 2>&1 |
  4581. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4582. *${as_nl}ac_space=\ *)
  4583. # `set' does not quote correctly, so add quotes: double-quote
  4584. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4585. sed -n \
  4586. "s/'/'\\\\''/g;
  4587. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4588. ;; #(
  4589. *)
  4590. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4591. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4592. ;;
  4593. esac |
  4594. sort
  4595. ) |
  4596. sed '
  4597. /^ac_cv_env_/b end
  4598. t clear
  4599. :clear
  4600. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4601. t end
  4602. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4603. :end' >>confcache
  4604. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4605. if test -w "$cache_file"; then
  4606. if test "x$cache_file" != "x/dev/null"; then
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4608. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4609. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4610. cat confcache >"$cache_file"
  4611. else
  4612. case $cache_file in #(
  4613. */* | ?:*)
  4614. mv -f confcache "$cache_file"$$ &&
  4615. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4616. *)
  4617. mv -f confcache "$cache_file" ;;
  4618. esac
  4619. fi
  4620. fi
  4621. else
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4623. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4624. fi
  4625. fi
  4626. rm -f confcache
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4628. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4629. if ${ac_cv_path_GREP+:} false; then :
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. if test -z "$GREP"; then
  4633. ac_path_GREP_found=false
  4634. # Loop through the user's path and test for each of PROGNAME-LIST
  4635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4636. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4637. do
  4638. IFS=$as_save_IFS
  4639. test -z "$as_dir" && as_dir=.
  4640. for ac_prog in grep ggrep; do
  4641. for ac_exec_ext in '' $ac_executable_extensions; do
  4642. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4643. as_fn_executable_p "$ac_path_GREP" || continue
  4644. # Check for GNU ac_path_GREP and select it if it is found.
  4645. # Check for GNU $ac_path_GREP
  4646. case `"$ac_path_GREP" --version 2>&1` in
  4647. *GNU*)
  4648. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4649. *)
  4650. ac_count=0
  4651. $as_echo_n 0123456789 >"conftest.in"
  4652. while :
  4653. do
  4654. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4655. mv "conftest.tmp" "conftest.in"
  4656. cp "conftest.in" "conftest.nl"
  4657. $as_echo 'GREP' >> "conftest.nl"
  4658. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4659. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4660. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4661. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4662. # Best one so far, save it but keep looking for a better one
  4663. ac_cv_path_GREP="$ac_path_GREP"
  4664. ac_path_GREP_max=$ac_count
  4665. fi
  4666. # 10*(2^10) chars as input seems more than enough
  4667. test $ac_count -gt 10 && break
  4668. done
  4669. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4670. esac
  4671. $ac_path_GREP_found && break 3
  4672. done
  4673. done
  4674. done
  4675. IFS=$as_save_IFS
  4676. if test -z "$ac_cv_path_GREP"; then
  4677. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4678. fi
  4679. else
  4680. ac_cv_path_GREP=$GREP
  4681. fi
  4682. fi
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4684. $as_echo "$ac_cv_path_GREP" >&6; }
  4685. GREP="$ac_cv_path_GREP"
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4687. $as_echo_n "checking for egrep... " >&6; }
  4688. if ${ac_cv_path_EGREP+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4692. then ac_cv_path_EGREP="$GREP -E"
  4693. else
  4694. if test -z "$EGREP"; then
  4695. ac_path_EGREP_found=false
  4696. # Loop through the user's path and test for each of PROGNAME-LIST
  4697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4698. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4699. do
  4700. IFS=$as_save_IFS
  4701. test -z "$as_dir" && as_dir=.
  4702. for ac_prog in egrep; do
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4705. as_fn_executable_p "$ac_path_EGREP" || continue
  4706. # Check for GNU ac_path_EGREP and select it if it is found.
  4707. # Check for GNU $ac_path_EGREP
  4708. case `"$ac_path_EGREP" --version 2>&1` in
  4709. *GNU*)
  4710. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4711. *)
  4712. ac_count=0
  4713. $as_echo_n 0123456789 >"conftest.in"
  4714. while :
  4715. do
  4716. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4717. mv "conftest.tmp" "conftest.in"
  4718. cp "conftest.in" "conftest.nl"
  4719. $as_echo 'EGREP' >> "conftest.nl"
  4720. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4721. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4722. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4723. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4724. # Best one so far, save it but keep looking for a better one
  4725. ac_cv_path_EGREP="$ac_path_EGREP"
  4726. ac_path_EGREP_max=$ac_count
  4727. fi
  4728. # 10*(2^10) chars as input seems more than enough
  4729. test $ac_count -gt 10 && break
  4730. done
  4731. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4732. esac
  4733. $ac_path_EGREP_found && break 3
  4734. done
  4735. done
  4736. done
  4737. IFS=$as_save_IFS
  4738. if test -z "$ac_cv_path_EGREP"; then
  4739. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4740. fi
  4741. else
  4742. ac_cv_path_EGREP=$EGREP
  4743. fi
  4744. fi
  4745. fi
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4747. $as_echo "$ac_cv_path_EGREP" >&6; }
  4748. EGREP="$ac_cv_path_EGREP"
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4750. $as_echo_n "checking for ANSI C header files... " >&6; }
  4751. if ${ac_cv_header_stdc+:} false; then :
  4752. $as_echo_n "(cached) " >&6
  4753. else
  4754. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4755. /* end build/confdefs.h. */
  4756. #include <stdlib.h>
  4757. #include <stdarg.h>
  4758. #include <string.h>
  4759. #include <float.h>
  4760. int
  4761. main ()
  4762. {
  4763. ;
  4764. return 0;
  4765. }
  4766. _ACEOF
  4767. if ac_fn_cxx_try_compile "$LINENO"; then :
  4768. ac_cv_header_stdc=yes
  4769. else
  4770. ac_cv_header_stdc=no
  4771. fi
  4772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4773. if test $ac_cv_header_stdc = yes; then
  4774. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4775. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4776. /* end build/confdefs.h. */
  4777. #include <string.h>
  4778. _ACEOF
  4779. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4780. $EGREP "memchr" >/dev/null 2>&1; then :
  4781. else
  4782. ac_cv_header_stdc=no
  4783. fi
  4784. rm -f conftest*
  4785. fi
  4786. if test $ac_cv_header_stdc = yes; then
  4787. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4788. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4789. /* end build/confdefs.h. */
  4790. #include <stdlib.h>
  4791. _ACEOF
  4792. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4793. $EGREP "free" >/dev/null 2>&1; then :
  4794. else
  4795. ac_cv_header_stdc=no
  4796. fi
  4797. rm -f conftest*
  4798. fi
  4799. if test $ac_cv_header_stdc = yes; then
  4800. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4801. if test "$cross_compiling" = yes; then :
  4802. :
  4803. else
  4804. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4805. /* end build/confdefs.h. */
  4806. #include <ctype.h>
  4807. #include <stdlib.h>
  4808. #if ((' ' & 0x0FF) == 0x020)
  4809. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4810. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4811. #else
  4812. # define ISLOWER(c) \
  4813. (('a' <= (c) && (c) <= 'i') \
  4814. || ('j' <= (c) && (c) <= 'r') \
  4815. || ('s' <= (c) && (c) <= 'z'))
  4816. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4817. #endif
  4818. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4819. int
  4820. main ()
  4821. {
  4822. int i;
  4823. for (i = 0; i < 256; i++)
  4824. if (XOR (islower (i), ISLOWER (i))
  4825. || toupper (i) != TOUPPER (i))
  4826. return 2;
  4827. return 0;
  4828. }
  4829. _ACEOF
  4830. if ac_fn_cxx_try_run "$LINENO"; then :
  4831. else
  4832. ac_cv_header_stdc=no
  4833. fi
  4834. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4835. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4836. fi
  4837. fi
  4838. fi
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4840. $as_echo "$ac_cv_header_stdc" >&6; }
  4841. if test $ac_cv_header_stdc = yes; then
  4842. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  4843. fi
  4844. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4845. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4846. inttypes.h stdint.h unistd.h
  4847. do :
  4848. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4849. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4850. "
  4851. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4852. cat >>build/confdefs.h <<_ACEOF
  4853. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4854. _ACEOF
  4855. fi
  4856. done
  4857. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4858. do :
  4859. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4860. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4861. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4862. cat >>build/confdefs.h <<_ACEOF
  4863. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4864. _ACEOF
  4865. fi
  4866. done
  4867. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h sys/prctl.h
  4868. do :
  4869. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4870. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4871. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4872. cat >>build/confdefs.h <<_ACEOF
  4873. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4874. _ACEOF
  4875. fi
  4876. done
  4877. #checkpoint
  4878. cat >confcache <<\_ACEOF
  4879. # This file is a shell script that caches the results of configure
  4880. # tests run on this system so they can be shared between configure
  4881. # scripts and configure runs, see configure's option --config-cache.
  4882. # It is not useful on other systems. If it contains results you don't
  4883. # want to keep, you may remove or edit it.
  4884. #
  4885. # build/config.status only pays attention to the cache file if you give it
  4886. # the --recheck option to rerun configure.
  4887. #
  4888. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4889. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4890. # following values.
  4891. _ACEOF
  4892. # The following way of writing the cache mishandles newlines in values,
  4893. # but we know of no workaround that is simple, portable, and efficient.
  4894. # So, we kill variables containing newlines.
  4895. # Ultrix sh set writes to stderr and can't be redirected directly,
  4896. # and sets the high bit in the cache file unless we assign to the vars.
  4897. (
  4898. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4899. eval ac_val=\$$ac_var
  4900. case $ac_val in #(
  4901. *${as_nl}*)
  4902. case $ac_var in #(
  4903. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4904. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4905. esac
  4906. case $ac_var in #(
  4907. _ | IFS | as_nl) ;; #(
  4908. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4909. *) { eval $ac_var=; unset $ac_var;} ;;
  4910. esac ;;
  4911. esac
  4912. done
  4913. (set) 2>&1 |
  4914. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4915. *${as_nl}ac_space=\ *)
  4916. # `set' does not quote correctly, so add quotes: double-quote
  4917. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4918. sed -n \
  4919. "s/'/'\\\\''/g;
  4920. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4921. ;; #(
  4922. *)
  4923. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4924. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4925. ;;
  4926. esac |
  4927. sort
  4928. ) |
  4929. sed '
  4930. /^ac_cv_env_/b end
  4931. t clear
  4932. :clear
  4933. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4934. t end
  4935. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4936. :end' >>confcache
  4937. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4938. if test -w "$cache_file"; then
  4939. if test "x$cache_file" != "x/dev/null"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4941. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4942. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4943. cat confcache >"$cache_file"
  4944. else
  4945. case $cache_file in #(
  4946. */* | ?:*)
  4947. mv -f confcache "$cache_file"$$ &&
  4948. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4949. *)
  4950. mv -f confcache "$cache_file" ;;
  4951. esac
  4952. fi
  4953. fi
  4954. else
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4956. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4957. fi
  4958. fi
  4959. rm -f confcache
  4960. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4961. #AC_CHECK_HEADERS(zlib.h)
  4962. #EGG_CHECK_ZLIB
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  4964. $as_echo_n "checking for path to OpenSSL... " >&6; }
  4965. # Check whether --with-openssl was given.
  4966. if test "${with_openssl+set}" = set; then :
  4967. withval=$with_openssl; with_openssl_path=$withval
  4968. else
  4969. with_openssl_path=auto
  4970. fi
  4971. cf_openssl_basedir=""
  4972. if test "$with_openssl_path" != "auto"; then
  4973. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  4974. else
  4975. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  4976. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  4977. cf_openssl_basedir="${dirs}"
  4978. break
  4979. fi
  4980. done
  4981. unset dirs
  4982. fi
  4983. if test ! -z "$cf_openssl_basedir"; then
  4984. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  4985. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  4986. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  4987. else
  4988. cf_openssl_basedir=""
  4989. fi
  4990. else
  4991. if test -f "/usr/include/openssl/opensslv.h" ; then
  4992. cf_openssl_basedir="/usr"
  4993. fi
  4994. fi
  4995. if test ! -z "$cf_openssl_basedir"; then
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  4997. $as_echo "$cf_openssl_basedir" >&6; }
  4998. else
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5000. $as_echo "not found" >&6; }
  5001. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  5002. fi
  5003. unset cf_openssl_basedir
  5004. save_CXX="$CXX"
  5005. CXX="$CXX $SSL_INCLUDES"
  5006. save_LIBS="$LIBS"
  5007. LIBS="$LIBS $SSL_LIBS"
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  5009. $as_echo_n "checking for OpenSSL version... " >&6; }
  5010. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5011. /* end build/confdefs.h. */
  5012. #include <openssl/opensslv.h>
  5013. int
  5014. main ()
  5015. {
  5016. #if !defined(OPENSSL_VERSION_NUMBER)
  5017. #error "Missing openssl version"
  5018. #endif
  5019. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  5020. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  5021. #endif
  5022. ;
  5023. return 0;
  5024. }
  5025. _ACEOF
  5026. if ac_fn_cxx_try_compile "$LINENO"; then :
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  5028. $as_echo "OK" >&6; }
  5029. else
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  5031. $as_echo "too old." >&6; }
  5032. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  5033. fi
  5034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5035. CXX="$CXX $SSL_LIBS"
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  5037. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  5038. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  5039. $as_echo_n "(cached) " >&6
  5040. else
  5041. ac_check_lib_save_LIBS=$LIBS
  5042. LIBS="-lcrypto $LIBS"
  5043. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5044. /* end build/confdefs.h. */
  5045. /* Override any GCC internal prototype to avoid an error.
  5046. Use char because int might match the return type of a GCC
  5047. builtin and then its argument prototype would still apply. */
  5048. #ifdef __cplusplus
  5049. extern "C"
  5050. #endif
  5051. char AES_encrypt ();
  5052. int
  5053. main ()
  5054. {
  5055. return AES_encrypt ();
  5056. ;
  5057. return 0;
  5058. }
  5059. _ACEOF
  5060. if ac_fn_cxx_try_link "$LINENO"; then :
  5061. ac_cv_lib_crypto_AES_encrypt=yes
  5062. else
  5063. ac_cv_lib_crypto_AES_encrypt=no
  5064. fi
  5065. rm -f core conftest.err conftest.$ac_objext \
  5066. conftest$ac_exeext conftest.$ac_ext
  5067. LIBS=$ac_check_lib_save_LIBS
  5068. fi
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  5070. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  5071. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  5072. if test "$USE_STATIC" = "yes"; then
  5073. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  5074. else
  5075. SSL_LIBS="$SSL_LIBS -lcrypto"
  5076. fi
  5077. else
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  5079. $as_echo "not found." >&6; }
  5080. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  5081. fi
  5082. CXX="$save_CXX"
  5083. LIBS="$save_LIBS"
  5084. cat >>build/confdefs.h <<_ACEOF
  5085. #define EGG_SSL_EXT 1
  5086. _ACEOF
  5087. # TCL checks
  5088. # Tcl version to recommend if no Tcl is found, and the site where it can be
  5089. # found for download.
  5090. tclrecommendver="8.5.X"
  5091. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  5092. # Tcl library filename prefixes, suffixes, and search paths.
  5093. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  5094. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  5095. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  5096. tcl7.0 tcl70"
  5097. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  5098. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  5099. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  5100. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  5101. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  5102. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  5103. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  5104. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  5105. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  5106. # Tcl header filenames and search paths.
  5107. tclheadernames="tcl.h"
  5108. tclheaderpaths="$HOME/include $HOME/tcl/include \
  5109. /usr/local/include /usr/include \
  5110. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  5111. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  5112. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  5113. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  5114. /usr/local/pkgs/tcl/include /sys/include \
  5115. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  5116. # Misc Tcl checks.
  5117. # Check whether --with-tcllib was given.
  5118. if test "${with_tcllib+set}" = set; then :
  5119. withval=$with_tcllib; tcllibname="$withval"
  5120. fi
  5121. # Check whether --with-tclinc was given.
  5122. if test "${with_tclinc+set}" = set; then :
  5123. withval=$with_tclinc; tclincname="$withval"
  5124. fi
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  5126. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  5127. # Check whether --enable-script-tcl was given.
  5128. if test "${enable_script_tcl+set}" = set; then :
  5129. enableval=$enable_script_tcl;
  5130. enable_script_tcl=$enableval
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5132. $as_echo "$enableval" >&6; }
  5133. else
  5134. # default if not given is ENABLED
  5135. if test "x$enableval" = "x"; then
  5136. enableval="yes"
  5137. fi
  5138. enable_script_tcl=$enableval
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  5140. $as_echo "$enableval" >&6; }
  5141. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  5142. fi
  5143. WARN=0
  5144. # Make sure either both or neither $tcllibname and $tclincname are set
  5145. if test "x$tcllibname" != x; then
  5146. if test "x$tclincname" = x; then
  5147. WARN=1
  5148. tcllibname=""
  5149. TCLLIB=""
  5150. TCLINC=""
  5151. fi
  5152. else
  5153. if test "x$tclincname" != x; then
  5154. WARN=1
  5155. tclincname=""
  5156. TCLLIB=""
  5157. TCLINC=""
  5158. fi
  5159. fi
  5160. if test "$WARN" = 1; then
  5161. cat << 'EOF' >&2
  5162. configure: WARNING:
  5163. You must specify both --with-tcllib and --with-tclinc for either to work.
  5164. configure will now attempt to autodetect both the Tcl library and header.
  5165. EOF
  5166. fi
  5167. WARN=0
  5168. # Make sure either both or neither $TCLLIB and $TCLINC are set
  5169. if test "x$TCLLIB" != x; then
  5170. if test "x$TCLINC" = x; then
  5171. WARN=1
  5172. WVAR1=TCLLIB
  5173. WVAR2=TCLINC
  5174. TCLLIB=""
  5175. fi
  5176. else
  5177. if test "x$TCLINC" != x; then
  5178. WARN=1
  5179. WVAR1=TCLINC
  5180. WVAR2=TCLLIB
  5181. TCLINC=""
  5182. fi
  5183. fi
  5184. if test "$WARN" = 1; then
  5185. cat << EOF >&2
  5186. configure: WARNING:
  5187. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  5188. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5189. configure will now attempt to autodetect both the Tcl library and header.
  5190. EOF
  5191. fi
  5192. # Look for Tcl library: if $tcllibname is set, check there first
  5193. if test "x$tcllibname" != x; then
  5194. if test -f "$tcllibname" && test -r "$tcllibname"; then
  5195. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  5196. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  5197. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  5198. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  5199. else
  5200. cat << EOF >&2
  5201. configure: WARNING:
  5202. The file '$tcllibname' given to option --with-tcllib is not valid.
  5203. configure will now attempt to autodetect both the Tcl library and header.
  5204. EOF
  5205. tcllibname=""
  5206. tclincname=""
  5207. TCLLIB=""
  5208. TCLLIBFN=""
  5209. TCLINC=""
  5210. TCLINCFN=""
  5211. fi
  5212. fi
  5213. # Look for Tcl header: if $tclincname is set, check there first
  5214. if test "x$tclincname" != x; then
  5215. if test -f "$tclincname" && test -r "$tclincname"; then
  5216. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  5217. TCLINCFN=`$BASENAME $tclincname`
  5218. else
  5219. cat << EOF >&2
  5220. configure: WARNING:
  5221. The file '$tclincname' given to option --with-tclinc is not valid.
  5222. configure will now attempt to autodetect both the Tcl library and header.
  5223. EOF
  5224. tcllibname=""
  5225. tclincname=""
  5226. TCLLIB=""
  5227. TCLLIBFN=""
  5228. TCLINC=""
  5229. TCLINCFN=""
  5230. fi
  5231. fi
  5232. # Look for Tcl library: if $TCLLIB is set, check there first
  5233. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  5234. if test -d "$TCLLIB"; then
  5235. for tcllibfns in $tcllibnames; do
  5236. for tcllibext in $tcllibextensions; do
  5237. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  5238. TCLLIBFN="${tcllibfns}${tcllibext}"
  5239. TCLLIBEXT="$tcllibext"
  5240. TCLLIBFNS="$tcllibfns"
  5241. break 2
  5242. fi
  5243. done
  5244. done
  5245. fi
  5246. if test "x$TCLLIBFN" = x; then
  5247. cat << 'EOF' >&2
  5248. configure: WARNING:
  5249. Environment variable TCLLIB was set, but incorrectly.
  5250. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5251. configure will now attempt to autodetect both the Tcl library and header.
  5252. EOF
  5253. TCLLIB=""
  5254. TCLLIBFN=""
  5255. TCLINC=""
  5256. TCLINCFN=""
  5257. fi
  5258. fi
  5259. # Look for Tcl header: if $TCLINC is set, check there first
  5260. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  5261. if test -d "$TCLINC"; then
  5262. for tclheaderfn in $tclheadernames; do
  5263. if test -r "${TCLINC}/${tclheaderfn}"; then
  5264. TCLINCFN="$tclheaderfn"
  5265. break
  5266. fi
  5267. done
  5268. fi
  5269. if test "x$TCLINCFN" = x; then
  5270. cat << 'EOF' >&2
  5271. configure: WARNING:
  5272. Environment variable TCLINC was set, but incorrectly.
  5273. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  5274. configure will now attempt to autodetect both the Tcl library and header.
  5275. EOF
  5276. TCLLIB=""
  5277. TCLLIBFN=""
  5278. TCLINC=""
  5279. TCLINCFN=""
  5280. fi
  5281. fi
  5282. if test "$enable_script_tcl" = "yes"; then
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  5284. $as_echo_n "checking for Tcl library... " >&6; }
  5285. # Attempt autodetect for $TCLLIBFN if it's not set
  5286. if test "x$TCLLIBFN" != x; then
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  5288. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  5289. else
  5290. for tcllibfns in $tcllibnames; do
  5291. for tcllibext in $tcllibextensions; do
  5292. for tcllibpath in $tcllibpaths; do
  5293. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  5295. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  5296. TCLLIB="$tcllibpath"
  5297. TCLLIBFN="${tcllibfns}${tcllibext}"
  5298. TCLLIBEXT="$tcllibext"
  5299. TCLLIBFNS="$tcllibfns"
  5300. break 3
  5301. fi
  5302. done
  5303. done
  5304. done
  5305. fi
  5306. # Show if $TCLLIBFN wasn't found
  5307. if test "x$TCLLIBFN" = x; then
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5309. $as_echo "not found" >&6; }
  5310. fi
  5311. fi
  5312. if test "$enable_script_tcl" = "yes"; then
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  5314. $as_echo_n "checking for Tcl header... " >&6; }
  5315. # Attempt autodetect for $TCLINCFN if it's not set
  5316. if test "x$TCLINCFN" != x; then
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  5318. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  5319. else
  5320. for tclheaderpath in $tclheaderpaths; do
  5321. for tclheaderfn in $tclheadernames; do
  5322. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  5324. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  5325. TCLINC="$tclheaderpath"
  5326. TCLINCFN="$tclheaderfn"
  5327. break 2
  5328. fi
  5329. done
  5330. done
  5331. # FreeBSD hack ...
  5332. if test "x$TCLINCFN" = x; then
  5333. for tcllibfns in $tcllibnames; do
  5334. for tclheaderpath in $tclheaderpaths; do
  5335. for tclheaderfn in $tclheadernames; do
  5336. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  5338. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  5339. TCLINC="${tclheaderpath}/${tcllibfns}"
  5340. TCLINCFN="$tclheaderfn"
  5341. break 3
  5342. fi
  5343. done
  5344. done
  5345. done
  5346. fi
  5347. fi
  5348. TCL_INCLUDES=""
  5349. if ! test "x$TCLINC" = x; then
  5350. TCL_INCLUDES="-I$TCLINC"
  5351. fi
  5352. if test "x$TCLINCFN" = x; then
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5354. $as_echo "not found" >&6; }
  5355. fi
  5356. fi
  5357. if test "$enable_script_tcl" = "yes"; then
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  5359. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  5360. egg_tcl_changed="yes"
  5361. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  5362. if test "$egg_tcl_id" != ":::"; then
  5363. egg_tcl_cached="yes"
  5364. if ${egg_cv_var_tcl_id+:} false; then :
  5365. $as_echo_n "(cached) " >&6
  5366. else
  5367. egg_cv_var_tcl_id="$egg_tcl_id"
  5368. egg_tcl_cached="no"
  5369. fi
  5370. if test "$egg_tcl_cached" = yes; then
  5371. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  5372. egg_tcl_changed="no"
  5373. else
  5374. egg_cv_var_tcl_id="$egg_tcl_id"
  5375. fi
  5376. fi
  5377. fi
  5378. if test "$egg_tcl_changed" = yes; then
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5380. $as_echo "yes" >&6; }
  5381. else
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5383. $as_echo "no" >&6; }
  5384. fi
  5385. fi
  5386. if test "$enable_script_tcl" = "yes"; then
  5387. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  5388. TCL_FOUND=0
  5389. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  5390. TCL_FOUND=1
  5391. # Check Tcl's version
  5392. if test "$egg_tcl_changed" = yes; then
  5393. unset egg_cv_var_tcl_version
  5394. fi
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  5396. $as_echo_n "checking for Tcl version... " >&6; }
  5397. if ${egg_cv_var_tcl_version+:} false; then :
  5398. $as_echo_n "(cached) " >&6
  5399. else
  5400. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  5401. fi
  5402. if test "x$egg_cv_var_tcl_version" != x; then
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  5404. $as_echo "$egg_cv_var_tcl_version" >&6; }
  5405. else
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5407. $as_echo "not found" >&6; }
  5408. TCL_FOUND=0
  5409. fi
  5410. # Check Tcl's patch level (if available)
  5411. if test "$egg_tcl_changed" = yes; then
  5412. unset egg_cv_var_tcl_patch_level
  5413. fi
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  5415. $as_echo_n "checking for Tcl patch level... " >&6; }
  5416. if ${egg_cv_var_tcl_patch_level+:} false; then :
  5417. $as_echo_n "(cached) " >&6
  5418. else
  5419. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  5420. fi
  5421. if test "x$egg_cv_var_tcl_patch_level" != x; then
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  5423. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  5424. else
  5425. egg_cv_var_tcl_patch_level="unknown"
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  5427. $as_echo "unknown" >&6; }
  5428. fi
  5429. fi
  5430. # Check if we found Tcl's version
  5431. if test "$TCL_FOUND" = 0; then
  5432. cat << 'EOF' >&2
  5433. configure: error:
  5434. Tcl cannot be found on this system.
  5435. Tcl is not required. Wraith will be compiled without TCL support. If you
  5436. already have Tcl installed on this system, please specify the path by
  5437. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  5438. --with-tclinc='/path/to/tcl.h' options.
  5439. EOF
  5440. enable_script_tcl="no"
  5441. else
  5442. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  5443. fi
  5444. fi
  5445. if test "$enable_script_tcl" = "yes"; then
  5446. # Is this version of Tcl too old for us to use ?
  5447. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  5448. if test "$TCL_VER_PRE70" = yes; then
  5449. cat << EOF >&2
  5450. configure: error:
  5451. Your Tcl version is much too old for Wraith to use. You should
  5452. download and compile a more recent version. The most reliable
  5453. current version is $tclrecommendver and can be downloaded from
  5454. ${tclrecommendsite}.
  5455. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  5456. for more information.
  5457. EOF
  5458. exit 1
  5459. fi
  5460. fi
  5461. # Set variables for Tcl library tests
  5462. TCL_TEST_LIB="$TCLLIBFNS"
  5463. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  5464. if test "x$ac_cv_lib_pthread" != x; then
  5465. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  5466. fi
  5467. if test "$enable_script_tcl" = "yes"; then
  5468. if test "$egg_tcl_changed" = yes; then
  5469. unset egg_cv_var_tcl_free
  5470. fi
  5471. # Check for Tcl_Free()
  5472. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  5474. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  5475. if eval \${$as_ac_Lib+:} false; then :
  5476. $as_echo_n "(cached) " >&6
  5477. else
  5478. ac_check_lib_save_LIBS=$LIBS
  5479. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5480. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5481. /* end build/confdefs.h. */
  5482. /* Override any GCC internal prototype to avoid an error.
  5483. Use char because int might match the return type of a GCC
  5484. builtin and then its argument prototype would still apply. */
  5485. #ifdef __cplusplus
  5486. extern "C"
  5487. #endif
  5488. char Tcl_Free ();
  5489. int
  5490. main ()
  5491. {
  5492. return Tcl_Free ();
  5493. ;
  5494. return 0;
  5495. }
  5496. _ACEOF
  5497. if ac_fn_cxx_try_link "$LINENO"; then :
  5498. eval "$as_ac_Lib=yes"
  5499. else
  5500. eval "$as_ac_Lib=no"
  5501. fi
  5502. rm -f core conftest.err conftest.$ac_objext \
  5503. conftest$ac_exeext conftest.$ac_ext
  5504. LIBS=$ac_check_lib_save_LIBS
  5505. fi
  5506. eval ac_res=\$$as_ac_Lib
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5508. $as_echo "$ac_res" >&6; }
  5509. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5510. egg_cv_var_tcl_free="yes"
  5511. else
  5512. egg_cv_var_tcl_free="no"
  5513. fi
  5514. if test "$egg_cv_var_tcl_free" = yes; then
  5515. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  5516. fi
  5517. fi
  5518. #EGG_TCL_CHECK_GETCURRENTTHREAD
  5519. #EGG_TCL_CHECK_GETTHREADDATA
  5520. if test "$enable_script_tcl" = "yes"; then
  5521. if test "$egg_tcl_changed" = yes; then
  5522. unset egg_cv_var_tcl_setnotifier
  5523. fi
  5524. # Check for Tcl_SetNotifier()
  5525. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  5527. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  5528. if eval \${$as_ac_Lib+:} false; then :
  5529. $as_echo_n "(cached) " >&6
  5530. else
  5531. ac_check_lib_save_LIBS=$LIBS
  5532. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  5533. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5534. /* end build/confdefs.h. */
  5535. /* Override any GCC internal prototype to avoid an error.
  5536. Use char because int might match the return type of a GCC
  5537. builtin and then its argument prototype would still apply. */
  5538. #ifdef __cplusplus
  5539. extern "C"
  5540. #endif
  5541. char Tcl_SetNotifier ();
  5542. int
  5543. main ()
  5544. {
  5545. return Tcl_SetNotifier ();
  5546. ;
  5547. return 0;
  5548. }
  5549. _ACEOF
  5550. if ac_fn_cxx_try_link "$LINENO"; then :
  5551. eval "$as_ac_Lib=yes"
  5552. else
  5553. eval "$as_ac_Lib=no"
  5554. fi
  5555. rm -f core conftest.err conftest.$ac_objext \
  5556. conftest$ac_exeext conftest.$ac_ext
  5557. LIBS=$ac_check_lib_save_LIBS
  5558. fi
  5559. eval ac_res=\$$as_ac_Lib
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5561. $as_echo "$ac_res" >&6; }
  5562. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  5563. egg_cv_var_tcl_setnotifier="yes"
  5564. else
  5565. egg_cv_var_tcl_setnotifier="no"
  5566. fi
  5567. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  5568. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  5569. fi
  5570. fi
  5571. if test "$enable_script_tcl" = "yes"; then
  5572. if test "$EGG_CYGWIN" = yes; then
  5573. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5574. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5575. else
  5576. if test "$TCLLIBEXT" != ".a"; then
  5577. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5578. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5579. else
  5580. # Set default make as static for unshared Tcl library
  5581. if test "$DEFAULT_MAKE" != static; then
  5582. cat << 'EOF' >&2
  5583. configure: WARNING:
  5584. Your Tcl library is not a shared lib.
  5585. configure will now set default make type to static.
  5586. EOF
  5587. DEFAULT_MAKE="static"
  5588. fi
  5589. # Are we using a pre 7.4 Tcl version ?
  5590. 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"}'`
  5591. if test "$TCL_VER_PRE74" = no; then
  5592. # Was the --with-tcllib option given ?
  5593. if test "x$tcllibname" != x; then
  5594. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5595. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  5596. else
  5597. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  5598. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  5599. fi
  5600. else
  5601. cat << EOF >&2
  5602. configure: WARNING:
  5603. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  5604. There are known problems, but we will attempt to work around them.
  5605. EOF
  5606. TCL_REQS="libtcle.a"
  5607. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  5608. fi
  5609. fi
  5610. fi
  5611. fi
  5612. cat >confcache <<\_ACEOF
  5613. # This file is a shell script that caches the results of configure
  5614. # tests run on this system so they can be shared between configure
  5615. # scripts and configure runs, see configure's option --config-cache.
  5616. # It is not useful on other systems. If it contains results you don't
  5617. # want to keep, you may remove or edit it.
  5618. #
  5619. # build/config.status only pays attention to the cache file if you give it
  5620. # the --recheck option to rerun configure.
  5621. #
  5622. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5623. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5624. # following values.
  5625. _ACEOF
  5626. # The following way of writing the cache mishandles newlines in values,
  5627. # but we know of no workaround that is simple, portable, and efficient.
  5628. # So, we kill variables containing newlines.
  5629. # Ultrix sh set writes to stderr and can't be redirected directly,
  5630. # and sets the high bit in the cache file unless we assign to the vars.
  5631. (
  5632. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5633. eval ac_val=\$$ac_var
  5634. case $ac_val in #(
  5635. *${as_nl}*)
  5636. case $ac_var in #(
  5637. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5638. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5639. esac
  5640. case $ac_var in #(
  5641. _ | IFS | as_nl) ;; #(
  5642. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5643. *) { eval $ac_var=; unset $ac_var;} ;;
  5644. esac ;;
  5645. esac
  5646. done
  5647. (set) 2>&1 |
  5648. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5649. *${as_nl}ac_space=\ *)
  5650. # `set' does not quote correctly, so add quotes: double-quote
  5651. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5652. sed -n \
  5653. "s/'/'\\\\''/g;
  5654. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5655. ;; #(
  5656. *)
  5657. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5658. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5659. ;;
  5660. esac |
  5661. sort
  5662. ) |
  5663. sed '
  5664. /^ac_cv_env_/b end
  5665. t clear
  5666. :clear
  5667. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5668. t end
  5669. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5670. :end' >>confcache
  5671. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5672. if test -w "$cache_file"; then
  5673. if test "x$cache_file" != "x/dev/null"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5675. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5676. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5677. cat confcache >"$cache_file"
  5678. else
  5679. case $cache_file in #(
  5680. */* | ?:*)
  5681. mv -f confcache "$cache_file"$$ &&
  5682. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5683. *)
  5684. mv -f confcache "$cache_file" ;;
  5685. esac
  5686. fi
  5687. fi
  5688. else
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5690. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5691. fi
  5692. fi
  5693. rm -f confcache
  5694. #AC_SUBST(ZLIB)dnl
  5695. # Checks for typedefs, structures, and compiler characteristics
  5696. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5697. if test "x$ac_cv_type_pid_t" = xyes; then :
  5698. else
  5699. cat >>build/confdefs.h <<_ACEOF
  5700. #define pid_t int
  5701. _ACEOF
  5702. fi
  5703. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5704. if test "x$ac_cv_type_size_t" = xyes; then :
  5705. else
  5706. cat >>build/confdefs.h <<_ACEOF
  5707. #define size_t unsigned int
  5708. _ACEOF
  5709. fi
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5711. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5712. if ${ac_cv_type_uid_t+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5716. /* end build/confdefs.h. */
  5717. #include <sys/types.h>
  5718. _ACEOF
  5719. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5720. $EGREP "uid_t" >/dev/null 2>&1; then :
  5721. ac_cv_type_uid_t=yes
  5722. else
  5723. ac_cv_type_uid_t=no
  5724. fi
  5725. rm -f conftest*
  5726. fi
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5728. $as_echo "$ac_cv_type_uid_t" >&6; }
  5729. if test $ac_cv_type_uid_t = no; then
  5730. $as_echo "#define uid_t int" >>build/confdefs.h
  5731. $as_echo "#define gid_t int" >>build/confdefs.h
  5732. fi
  5733. #AC_C_CONST
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5735. $as_echo_n "checking for working volatile... " >&6; }
  5736. if ${ac_cv_c_volatile+:} false; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5740. /* end build/confdefs.h. */
  5741. int
  5742. main ()
  5743. {
  5744. volatile int x;
  5745. int * volatile y = (int *) 0;
  5746. return !x && !y;
  5747. ;
  5748. return 0;
  5749. }
  5750. _ACEOF
  5751. if ac_fn_cxx_try_compile "$LINENO"; then :
  5752. ac_cv_c_volatile=yes
  5753. else
  5754. ac_cv_c_volatile=no
  5755. fi
  5756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5757. fi
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5759. $as_echo "$ac_cv_c_volatile" >&6; }
  5760. if test $ac_cv_c_volatile = no; then
  5761. $as_echo "#define volatile /**/" >>build/confdefs.h
  5762. fi
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5764. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5765. if ${ac_cv_c_bigendian+:} false; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. ac_cv_c_bigendian=unknown
  5769. # See if we're dealing with a universal compiler.
  5770. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5771. /* end build/confdefs.h. */
  5772. #ifndef __APPLE_CC__
  5773. not a universal capable compiler
  5774. #endif
  5775. typedef int dummy;
  5776. _ACEOF
  5777. if ac_fn_cxx_try_compile "$LINENO"; then :
  5778. # Check for potential -arch flags. It is not universal unless
  5779. # there are at least two -arch flags with different values.
  5780. ac_arch=
  5781. ac_prev=
  5782. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5783. if test -n "$ac_prev"; then
  5784. case $ac_word in
  5785. i?86 | x86_64 | ppc | ppc64)
  5786. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5787. ac_arch=$ac_word
  5788. else
  5789. ac_cv_c_bigendian=universal
  5790. break
  5791. fi
  5792. ;;
  5793. esac
  5794. ac_prev=
  5795. elif test "x$ac_word" = "x-arch"; then
  5796. ac_prev=arch
  5797. fi
  5798. done
  5799. fi
  5800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5801. if test $ac_cv_c_bigendian = unknown; then
  5802. # See if sys/param.h defines the BYTE_ORDER macro.
  5803. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5804. /* end build/confdefs.h. */
  5805. #include <sys/types.h>
  5806. #include <sys/param.h>
  5807. int
  5808. main ()
  5809. {
  5810. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5811. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5812. && LITTLE_ENDIAN)
  5813. bogus endian macros
  5814. #endif
  5815. ;
  5816. return 0;
  5817. }
  5818. _ACEOF
  5819. if ac_fn_cxx_try_compile "$LINENO"; then :
  5820. # It does; now see whether it defined to BIG_ENDIAN or not.
  5821. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5822. /* end build/confdefs.h. */
  5823. #include <sys/types.h>
  5824. #include <sys/param.h>
  5825. int
  5826. main ()
  5827. {
  5828. #if BYTE_ORDER != BIG_ENDIAN
  5829. not big endian
  5830. #endif
  5831. ;
  5832. return 0;
  5833. }
  5834. _ACEOF
  5835. if ac_fn_cxx_try_compile "$LINENO"; then :
  5836. ac_cv_c_bigendian=yes
  5837. else
  5838. ac_cv_c_bigendian=no
  5839. fi
  5840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5841. fi
  5842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5843. fi
  5844. if test $ac_cv_c_bigendian = unknown; then
  5845. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5846. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5847. /* end build/confdefs.h. */
  5848. #include <limits.h>
  5849. int
  5850. main ()
  5851. {
  5852. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5853. bogus endian macros
  5854. #endif
  5855. ;
  5856. return 0;
  5857. }
  5858. _ACEOF
  5859. if ac_fn_cxx_try_compile "$LINENO"; then :
  5860. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5861. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5862. /* end build/confdefs.h. */
  5863. #include <limits.h>
  5864. int
  5865. main ()
  5866. {
  5867. #ifndef _BIG_ENDIAN
  5868. not big endian
  5869. #endif
  5870. ;
  5871. return 0;
  5872. }
  5873. _ACEOF
  5874. if ac_fn_cxx_try_compile "$LINENO"; then :
  5875. ac_cv_c_bigendian=yes
  5876. else
  5877. ac_cv_c_bigendian=no
  5878. fi
  5879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5880. fi
  5881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5882. fi
  5883. if test $ac_cv_c_bigendian = unknown; then
  5884. # Compile a test program.
  5885. if test "$cross_compiling" = yes; then :
  5886. # Try to guess by grepping values from an object file.
  5887. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5888. /* end build/confdefs.h. */
  5889. short int ascii_mm[] =
  5890. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5891. short int ascii_ii[] =
  5892. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5893. int use_ascii (int i) {
  5894. return ascii_mm[i] + ascii_ii[i];
  5895. }
  5896. short int ebcdic_ii[] =
  5897. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5898. short int ebcdic_mm[] =
  5899. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5900. int use_ebcdic (int i) {
  5901. return ebcdic_mm[i] + ebcdic_ii[i];
  5902. }
  5903. extern int foo;
  5904. int
  5905. main ()
  5906. {
  5907. return use_ascii (foo) == use_ebcdic (foo);
  5908. ;
  5909. return 0;
  5910. }
  5911. _ACEOF
  5912. if ac_fn_cxx_try_compile "$LINENO"; then :
  5913. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5914. ac_cv_c_bigendian=yes
  5915. fi
  5916. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5917. if test "$ac_cv_c_bigendian" = unknown; then
  5918. ac_cv_c_bigendian=no
  5919. else
  5920. # finding both strings is unlikely to happen, but who knows?
  5921. ac_cv_c_bigendian=unknown
  5922. fi
  5923. fi
  5924. fi
  5925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5926. else
  5927. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5928. /* end build/confdefs.h. */
  5929. $ac_includes_default
  5930. int
  5931. main ()
  5932. {
  5933. /* Are we little or big endian? From Harbison&Steele. */
  5934. union
  5935. {
  5936. long int l;
  5937. char c[sizeof (long int)];
  5938. } u;
  5939. u.l = 1;
  5940. return u.c[sizeof (long int) - 1] == 1;
  5941. ;
  5942. return 0;
  5943. }
  5944. _ACEOF
  5945. if ac_fn_cxx_try_run "$LINENO"; then :
  5946. ac_cv_c_bigendian=no
  5947. else
  5948. ac_cv_c_bigendian=yes
  5949. fi
  5950. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5951. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5952. fi
  5953. fi
  5954. fi
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5956. $as_echo "$ac_cv_c_bigendian" >&6; }
  5957. case $ac_cv_c_bigendian in #(
  5958. yes)
  5959. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  5960. ;; #(
  5961. no)
  5962. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  5963. ;; #(
  5964. universal)
  5965. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  5966. ;; #(
  5967. *)
  5968. as_fn_error $? "unknown endianness
  5969. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5970. esac
  5971. #AC_C_INLINE
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  5973. $as_echo_n "checking whether char is unsigned... " >&6; }
  5974. if ${ac_cv_c_char_unsigned+:} false; then :
  5975. $as_echo_n "(cached) " >&6
  5976. else
  5977. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5978. /* end build/confdefs.h. */
  5979. $ac_includes_default
  5980. int
  5981. main ()
  5982. {
  5983. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5984. test_array [0] = 0;
  5985. return test_array [0];
  5986. ;
  5987. return 0;
  5988. }
  5989. _ACEOF
  5990. if ac_fn_cxx_try_compile "$LINENO"; then :
  5991. ac_cv_c_char_unsigned=no
  5992. else
  5993. ac_cv_c_char_unsigned=yes
  5994. fi
  5995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5996. fi
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  5998. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  5999. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6000. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  6001. fi
  6002. #AC_C_STRINGIZE
  6003. #AC_C_PROTOTYPES
  6004. #checkpoint
  6005. cat >confcache <<\_ACEOF
  6006. # This file is a shell script that caches the results of configure
  6007. # tests run on this system so they can be shared between configure
  6008. # scripts and configure runs, see configure's option --config-cache.
  6009. # It is not useful on other systems. If it contains results you don't
  6010. # want to keep, you may remove or edit it.
  6011. #
  6012. # build/config.status only pays attention to the cache file if you give it
  6013. # the --recheck option to rerun configure.
  6014. #
  6015. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6016. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6017. # following values.
  6018. _ACEOF
  6019. # The following way of writing the cache mishandles newlines in values,
  6020. # but we know of no workaround that is simple, portable, and efficient.
  6021. # So, we kill variables containing newlines.
  6022. # Ultrix sh set writes to stderr and can't be redirected directly,
  6023. # and sets the high bit in the cache file unless we assign to the vars.
  6024. (
  6025. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6026. eval ac_val=\$$ac_var
  6027. case $ac_val in #(
  6028. *${as_nl}*)
  6029. case $ac_var in #(
  6030. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6031. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6032. esac
  6033. case $ac_var in #(
  6034. _ | IFS | as_nl) ;; #(
  6035. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6036. *) { eval $ac_var=; unset $ac_var;} ;;
  6037. esac ;;
  6038. esac
  6039. done
  6040. (set) 2>&1 |
  6041. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6042. *${as_nl}ac_space=\ *)
  6043. # `set' does not quote correctly, so add quotes: double-quote
  6044. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6045. sed -n \
  6046. "s/'/'\\\\''/g;
  6047. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6048. ;; #(
  6049. *)
  6050. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6051. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6052. ;;
  6053. esac |
  6054. sort
  6055. ) |
  6056. sed '
  6057. /^ac_cv_env_/b end
  6058. t clear
  6059. :clear
  6060. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6061. t end
  6062. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6063. :end' >>confcache
  6064. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6065. if test -w "$cache_file"; then
  6066. if test "x$cache_file" != "x/dev/null"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6068. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6069. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6070. cat confcache >"$cache_file"
  6071. else
  6072. case $cache_file in #(
  6073. */* | ?:*)
  6074. mv -f confcache "$cache_file"$$ &&
  6075. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6076. *)
  6077. mv -f confcache "$cache_file" ;;
  6078. esac
  6079. fi
  6080. fi
  6081. else
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6083. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6084. fi
  6085. fi
  6086. rm -f confcache
  6087. # Checks for typedefs, structures, and compiler characteristics
  6088. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6089. if test "x$ac_cv_type_pid_t" = xyes; then :
  6090. else
  6091. cat >>build/confdefs.h <<_ACEOF
  6092. #define pid_t int
  6093. _ACEOF
  6094. fi
  6095. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6096. if test "x$ac_cv_type_size_t" = xyes; then :
  6097. else
  6098. cat >>build/confdefs.h <<_ACEOF
  6099. #define size_t unsigned int
  6100. _ACEOF
  6101. fi
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6103. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6104. if ${ac_cv_type_uid_t+:} false; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6108. /* end build/confdefs.h. */
  6109. #include <sys/types.h>
  6110. _ACEOF
  6111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6112. $EGREP "uid_t" >/dev/null 2>&1; then :
  6113. ac_cv_type_uid_t=yes
  6114. else
  6115. ac_cv_type_uid_t=no
  6116. fi
  6117. rm -f conftest*
  6118. fi
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6120. $as_echo "$ac_cv_type_uid_t" >&6; }
  6121. if test $ac_cv_type_uid_t = no; then
  6122. $as_echo "#define uid_t int" >>build/confdefs.h
  6123. $as_echo "#define gid_t int" >>build/confdefs.h
  6124. fi
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  6126. $as_echo_n "checking for long long int... " >&6; }
  6127. if ${ac_cv_type_long_long_int+:} false; then :
  6128. $as_echo_n "(cached) " >&6
  6129. else
  6130. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6131. /* end build/confdefs.h. */
  6132. /* For now, do not test the preprocessor; as of 2007 there are too many
  6133. implementations with broken preprocessors. Perhaps this can
  6134. be revisited in 2012. In the meantime, code should not expect
  6135. #if to work with literals wider than 32 bits. */
  6136. /* Test literals. */
  6137. long long int ll = 9223372036854775807ll;
  6138. long long int nll = -9223372036854775807LL;
  6139. unsigned long long int ull = 18446744073709551615ULL;
  6140. /* Test constant expressions. */
  6141. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  6142. ? 1 : -1)];
  6143. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  6144. ? 1 : -1)];
  6145. int i = 63;
  6146. int
  6147. main ()
  6148. {
  6149. /* Test availability of runtime routines for shift and division. */
  6150. long long int llmax = 9223372036854775807ll;
  6151. unsigned long long int ullmax = 18446744073709551615ull;
  6152. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  6153. | (llmax / ll) | (llmax % ll)
  6154. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  6155. | (ullmax / ull) | (ullmax % ull));
  6156. ;
  6157. return 0;
  6158. }
  6159. _ACEOF
  6160. if ac_fn_cxx_try_link "$LINENO"; then :
  6161. if test "$cross_compiling" = yes; then :
  6162. ac_cv_type_long_long_int=yes
  6163. else
  6164. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6165. /* end build/confdefs.h. */
  6166. #include <limits.h>
  6167. #ifndef LLONG_MAX
  6168. # define HALF \
  6169. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  6170. # define LLONG_MAX (HALF - 1 + HALF)
  6171. #endif
  6172. int
  6173. main ()
  6174. {
  6175. long long int n = 1;
  6176. int i;
  6177. for (i = 0; ; i++)
  6178. {
  6179. long long int m = n << i;
  6180. if (m >> i != n)
  6181. return 1;
  6182. if (LLONG_MAX / 2 < m)
  6183. break;
  6184. }
  6185. return 0;
  6186. ;
  6187. return 0;
  6188. }
  6189. _ACEOF
  6190. if ac_fn_cxx_try_run "$LINENO"; then :
  6191. ac_cv_type_long_long_int=yes
  6192. else
  6193. ac_cv_type_long_long_int=no
  6194. fi
  6195. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6196. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6197. fi
  6198. else
  6199. ac_cv_type_long_long_int=no
  6200. fi
  6201. rm -f core conftest.err conftest.$ac_objext \
  6202. conftest$ac_exeext conftest.$ac_ext
  6203. fi
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  6205. $as_echo "$ac_cv_type_long_long_int" >&6; }
  6206. if test $ac_cv_type_long_long_int = yes; then
  6207. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  6208. fi
  6209. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  6210. case $ac_cv_c_int8_t in #(
  6211. no|yes) ;; #(
  6212. *)
  6213. cat >>build/confdefs.h <<_ACEOF
  6214. #define int8_t $ac_cv_c_int8_t
  6215. _ACEOF
  6216. ;;
  6217. esac
  6218. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  6219. case $ac_cv_c_uint8_t in #(
  6220. no|yes) ;; #(
  6221. *)
  6222. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  6223. cat >>build/confdefs.h <<_ACEOF
  6224. #define uint8_t $ac_cv_c_uint8_t
  6225. _ACEOF
  6226. ;;
  6227. esac
  6228. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  6229. case $ac_cv_c_int16_t in #(
  6230. no|yes) ;; #(
  6231. *)
  6232. cat >>build/confdefs.h <<_ACEOF
  6233. #define int16_t $ac_cv_c_int16_t
  6234. _ACEOF
  6235. ;;
  6236. esac
  6237. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  6238. case $ac_cv_c_uint16_t in #(
  6239. no|yes) ;; #(
  6240. *)
  6241. cat >>build/confdefs.h <<_ACEOF
  6242. #define uint16_t $ac_cv_c_uint16_t
  6243. _ACEOF
  6244. ;;
  6245. esac
  6246. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  6247. case $ac_cv_c_int32_t in #(
  6248. no|yes) ;; #(
  6249. *)
  6250. cat >>build/confdefs.h <<_ACEOF
  6251. #define int32_t $ac_cv_c_int32_t
  6252. _ACEOF
  6253. ;;
  6254. esac
  6255. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  6256. case $ac_cv_c_uint32_t in #(
  6257. no|yes) ;; #(
  6258. *)
  6259. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  6260. cat >>build/confdefs.h <<_ACEOF
  6261. #define uint32_t $ac_cv_c_uint32_t
  6262. _ACEOF
  6263. ;;
  6264. esac
  6265. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  6266. case $ac_cv_c_int64_t in #(
  6267. no|yes) ;; #(
  6268. *)
  6269. cat >>build/confdefs.h <<_ACEOF
  6270. #define int64_t $ac_cv_c_int64_t
  6271. _ACEOF
  6272. ;;
  6273. esac
  6274. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  6275. case $ac_cv_c_uint64_t in #(
  6276. no|yes) ;; #(
  6277. *)
  6278. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  6279. cat >>build/confdefs.h <<_ACEOF
  6280. #define uint64_t $ac_cv_c_uint64_t
  6281. _ACEOF
  6282. ;;
  6283. esac
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6285. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6286. if ${ac_cv_struct_tm+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6290. /* end build/confdefs.h. */
  6291. #include <sys/types.h>
  6292. #include <time.h>
  6293. int
  6294. main ()
  6295. {
  6296. struct tm tm;
  6297. int *p = &tm.tm_sec;
  6298. return !p;
  6299. ;
  6300. return 0;
  6301. }
  6302. _ACEOF
  6303. if ac_fn_cxx_try_compile "$LINENO"; then :
  6304. ac_cv_struct_tm=time.h
  6305. else
  6306. ac_cv_struct_tm=sys/time.h
  6307. fi
  6308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6309. fi
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6311. $as_echo "$ac_cv_struct_tm" >&6; }
  6312. if test $ac_cv_struct_tm = sys/time.h; then
  6313. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6314. fi
  6315. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  6316. #include <$ac_cv_struct_tm>
  6317. "
  6318. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  6319. cat >>build/confdefs.h <<_ACEOF
  6320. #define HAVE_STRUCT_TM_TM_ZONE 1
  6321. _ACEOF
  6322. fi
  6323. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6324. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  6325. else
  6326. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  6327. "
  6328. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  6329. ac_have_decl=1
  6330. else
  6331. ac_have_decl=0
  6332. fi
  6333. cat >>build/confdefs.h <<_ACEOF
  6334. #define HAVE_DECL_TZNAME $ac_have_decl
  6335. _ACEOF
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  6337. $as_echo_n "checking for tzname... " >&6; }
  6338. if ${ac_cv_var_tzname+:} false; then :
  6339. $as_echo_n "(cached) " >&6
  6340. else
  6341. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6342. /* end build/confdefs.h. */
  6343. #include <time.h>
  6344. #if !HAVE_DECL_TZNAME
  6345. extern char *tzname[];
  6346. #endif
  6347. int
  6348. main ()
  6349. {
  6350. return tzname[0][0];
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_cxx_try_link "$LINENO"; then :
  6356. ac_cv_var_tzname=yes
  6357. else
  6358. ac_cv_var_tzname=no
  6359. fi
  6360. rm -f core conftest.err conftest.$ac_objext \
  6361. conftest$ac_exeext conftest.$ac_ext
  6362. fi
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  6364. $as_echo "$ac_cv_var_tzname" >&6; }
  6365. if test $ac_cv_var_tzname = yes; then
  6366. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  6367. fi
  6368. fi
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  6370. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  6371. if ${ac_cv_struct_tm+:} false; then :
  6372. $as_echo_n "(cached) " >&6
  6373. else
  6374. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6375. /* end build/confdefs.h. */
  6376. #include <sys/types.h>
  6377. #include <time.h>
  6378. int
  6379. main ()
  6380. {
  6381. struct tm tm;
  6382. int *p = &tm.tm_sec;
  6383. return !p;
  6384. ;
  6385. return 0;
  6386. }
  6387. _ACEOF
  6388. if ac_fn_cxx_try_compile "$LINENO"; then :
  6389. ac_cv_struct_tm=time.h
  6390. else
  6391. ac_cv_struct_tm=sys/time.h
  6392. fi
  6393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6394. fi
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  6396. $as_echo "$ac_cv_struct_tm" >&6; }
  6397. if test $ac_cv_struct_tm = sys/time.h; then
  6398. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  6399. fi
  6400. # Checks for library functions
  6401. for ac_header in vfork.h
  6402. do :
  6403. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  6404. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6405. cat >>build/confdefs.h <<_ACEOF
  6406. #define HAVE_VFORK_H 1
  6407. _ACEOF
  6408. fi
  6409. done
  6410. for ac_func in fork vfork
  6411. do :
  6412. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6413. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6414. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6415. cat >>build/confdefs.h <<_ACEOF
  6416. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6417. _ACEOF
  6418. fi
  6419. done
  6420. if test "x$ac_cv_func_fork" = xyes; then
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6422. $as_echo_n "checking for working fork... " >&6; }
  6423. if ${ac_cv_func_fork_works+:} false; then :
  6424. $as_echo_n "(cached) " >&6
  6425. else
  6426. if test "$cross_compiling" = yes; then :
  6427. ac_cv_func_fork_works=cross
  6428. else
  6429. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6430. /* end build/confdefs.h. */
  6431. $ac_includes_default
  6432. int
  6433. main ()
  6434. {
  6435. /* By Ruediger Kuhlmann. */
  6436. return fork () < 0;
  6437. ;
  6438. return 0;
  6439. }
  6440. _ACEOF
  6441. if ac_fn_cxx_try_run "$LINENO"; then :
  6442. ac_cv_func_fork_works=yes
  6443. else
  6444. ac_cv_func_fork_works=no
  6445. fi
  6446. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6447. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6448. fi
  6449. fi
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6451. $as_echo "$ac_cv_func_fork_works" >&6; }
  6452. else
  6453. ac_cv_func_fork_works=$ac_cv_func_fork
  6454. fi
  6455. if test "x$ac_cv_func_fork_works" = xcross; then
  6456. case $host in
  6457. *-*-amigaos* | *-*-msdosdjgpp*)
  6458. # Override, as these systems have only a dummy fork() stub
  6459. ac_cv_func_fork_works=no
  6460. ;;
  6461. *)
  6462. ac_cv_func_fork_works=yes
  6463. ;;
  6464. esac
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6466. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6467. fi
  6468. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6469. if test "x$ac_cv_func_vfork" = xyes; then
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6471. $as_echo_n "checking for working vfork... " >&6; }
  6472. if ${ac_cv_func_vfork_works+:} false; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. if test "$cross_compiling" = yes; then :
  6476. ac_cv_func_vfork_works=cross
  6477. else
  6478. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6479. /* end build/confdefs.h. */
  6480. /* Thanks to Paul Eggert for this test. */
  6481. $ac_includes_default
  6482. #include <sys/wait.h>
  6483. #ifdef HAVE_VFORK_H
  6484. # include <vfork.h>
  6485. #endif
  6486. /* On some sparc systems, changes by the child to local and incoming
  6487. argument registers are propagated back to the parent. The compiler
  6488. is told about this with #include <vfork.h>, but some compilers
  6489. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6490. static variable whose address is put into a register that is
  6491. clobbered by the vfork. */
  6492. static void
  6493. #ifdef __cplusplus
  6494. sparc_address_test (int arg)
  6495. # else
  6496. sparc_address_test (arg) int arg;
  6497. #endif
  6498. {
  6499. static pid_t child;
  6500. if (!child) {
  6501. child = vfork ();
  6502. if (child < 0) {
  6503. perror ("vfork");
  6504. _exit(2);
  6505. }
  6506. if (!child) {
  6507. arg = getpid();
  6508. write(-1, "", 0);
  6509. _exit (arg);
  6510. }
  6511. }
  6512. }
  6513. int
  6514. main ()
  6515. {
  6516. pid_t parent = getpid ();
  6517. pid_t child;
  6518. sparc_address_test (0);
  6519. child = vfork ();
  6520. if (child == 0) {
  6521. /* Here is another test for sparc vfork register problems. This
  6522. test uses lots of local variables, at least as many local
  6523. variables as main has allocated so far including compiler
  6524. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6525. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6526. reuse the register of parent for one of the local variables,
  6527. since it will think that parent can't possibly be used any more
  6528. in this routine. Assigning to the local variable will thus
  6529. munge parent in the parent process. */
  6530. pid_t
  6531. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6532. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6533. /* Convince the compiler that p..p7 are live; otherwise, it might
  6534. use the same hardware register for all 8 local variables. */
  6535. if (p != p1 || p != p2 || p != p3 || p != p4
  6536. || p != p5 || p != p6 || p != p7)
  6537. _exit(1);
  6538. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6539. from child file descriptors. If the child closes a descriptor
  6540. before it execs or exits, this munges the parent's descriptor
  6541. as well. Test for this by closing stdout in the child. */
  6542. _exit(close(fileno(stdout)) != 0);
  6543. } else {
  6544. int status;
  6545. struct stat st;
  6546. while (wait(&status) != child)
  6547. ;
  6548. return (
  6549. /* Was there some problem with vforking? */
  6550. child < 0
  6551. /* Did the child fail? (This shouldn't happen.) */
  6552. || status
  6553. /* Did the vfork/compiler bug occur? */
  6554. || parent != getpid()
  6555. /* Did the file descriptor bug occur? */
  6556. || fstat(fileno(stdout), &st) != 0
  6557. );
  6558. }
  6559. }
  6560. _ACEOF
  6561. if ac_fn_cxx_try_run "$LINENO"; then :
  6562. ac_cv_func_vfork_works=yes
  6563. else
  6564. ac_cv_func_vfork_works=no
  6565. fi
  6566. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6567. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6568. fi
  6569. fi
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6571. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6572. fi;
  6573. if test "x$ac_cv_func_fork_works" = xcross; then
  6574. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6576. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6577. fi
  6578. if test "x$ac_cv_func_vfork_works" = xyes; then
  6579. $as_echo "#define HAVE_WORKING_VFORK 1" >>build/confdefs.h
  6580. else
  6581. $as_echo "#define vfork fork" >>build/confdefs.h
  6582. fi
  6583. if test "x$ac_cv_func_fork_works" = xyes; then
  6584. $as_echo "#define HAVE_WORKING_FORK 1" >>build/confdefs.h
  6585. fi
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6587. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6588. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6589. $as_echo_n "(cached) " >&6
  6590. else
  6591. rm -f conftest.sym conftest.file
  6592. echo >conftest.file
  6593. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6594. if test "$cross_compiling" = yes; then :
  6595. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6596. else
  6597. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6598. /* end build/confdefs.h. */
  6599. $ac_includes_default
  6600. int
  6601. main ()
  6602. {
  6603. struct stat sbuf;
  6604. /* Linux will dereference the symlink and fail, as required by POSIX.
  6605. That is better in the sense that it means we will not
  6606. have to compile and use the lstat wrapper. */
  6607. return lstat ("conftest.sym/", &sbuf) == 0;
  6608. ;
  6609. return 0;
  6610. }
  6611. _ACEOF
  6612. if ac_fn_cxx_try_run "$LINENO"; then :
  6613. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6614. else
  6615. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6616. fi
  6617. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6618. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6619. fi
  6620. else
  6621. # If the `ln -s' command failed, then we probably don't even
  6622. # have an lstat function.
  6623. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6624. fi
  6625. rm -f conftest.sym conftest.file
  6626. fi
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6628. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6629. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6630. cat >>build/confdefs.h <<_ACEOF
  6631. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6632. _ACEOF
  6633. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6634. case " $LIBOBJS " in
  6635. *" lstat.$ac_objext "* ) ;;
  6636. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6637. ;;
  6638. esac
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  6641. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  6642. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. if test "$cross_compiling" = yes; then :
  6646. ac_cv_func_lstat_empty_string_bug=yes
  6647. else
  6648. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6649. /* end build/confdefs.h. */
  6650. $ac_includes_default
  6651. int
  6652. main ()
  6653. {
  6654. struct stat sbuf;
  6655. return lstat ("", &sbuf) == 0;
  6656. ;
  6657. return 0;
  6658. }
  6659. _ACEOF
  6660. if ac_fn_cxx_try_run "$LINENO"; then :
  6661. ac_cv_func_lstat_empty_string_bug=no
  6662. else
  6663. ac_cv_func_lstat_empty_string_bug=yes
  6664. fi
  6665. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6666. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6667. fi
  6668. fi
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  6670. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  6671. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  6672. case " $LIBOBJS " in
  6673. *" lstat.$ac_objext "* ) ;;
  6674. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6675. ;;
  6676. esac
  6677. cat >>build/confdefs.h <<_ACEOF
  6678. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  6679. _ACEOF
  6680. fi
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  6682. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  6683. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  6684. $as_echo_n "(cached) " >&6
  6685. else
  6686. rm -f conftest.sym conftest.file
  6687. echo >conftest.file
  6688. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  6689. if test "$cross_compiling" = yes; then :
  6690. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6691. else
  6692. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6693. /* end build/confdefs.h. */
  6694. $ac_includes_default
  6695. int
  6696. main ()
  6697. {
  6698. struct stat sbuf;
  6699. /* Linux will dereference the symlink and fail, as required by POSIX.
  6700. That is better in the sense that it means we will not
  6701. have to compile and use the lstat wrapper. */
  6702. return lstat ("conftest.sym/", &sbuf) == 0;
  6703. ;
  6704. return 0;
  6705. }
  6706. _ACEOF
  6707. if ac_fn_cxx_try_run "$LINENO"; then :
  6708. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  6709. else
  6710. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6711. fi
  6712. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6713. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6714. fi
  6715. else
  6716. # If the `ln -s' command failed, then we probably don't even
  6717. # have an lstat function.
  6718. ac_cv_func_lstat_dereferences_slashed_symlink=no
  6719. fi
  6720. rm -f conftest.sym conftest.file
  6721. fi
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  6723. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  6724. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  6725. cat >>build/confdefs.h <<_ACEOF
  6726. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  6727. _ACEOF
  6728. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  6729. case " $LIBOBJS " in
  6730. *" lstat.$ac_objext "* ) ;;
  6731. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  6732. ;;
  6733. esac
  6734. fi
  6735. for ac_header in stdlib.h
  6736. do :
  6737. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  6738. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  6739. cat >>build/confdefs.h <<_ACEOF
  6740. #define HAVE_STDLIB_H 1
  6741. _ACEOF
  6742. fi
  6743. done
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  6745. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  6746. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  6747. $as_echo_n "(cached) " >&6
  6748. else
  6749. if test "$cross_compiling" = yes; then :
  6750. ac_cv_func_malloc_0_nonnull=no
  6751. else
  6752. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6753. /* end build/confdefs.h. */
  6754. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  6755. # include <stdlib.h>
  6756. #else
  6757. char *malloc ();
  6758. #endif
  6759. int
  6760. main ()
  6761. {
  6762. return ! malloc (0);
  6763. ;
  6764. return 0;
  6765. }
  6766. _ACEOF
  6767. if ac_fn_cxx_try_run "$LINENO"; then :
  6768. ac_cv_func_malloc_0_nonnull=yes
  6769. else
  6770. ac_cv_func_malloc_0_nonnull=no
  6771. fi
  6772. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6773. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6774. fi
  6775. fi
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  6777. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  6778. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  6779. $as_echo "#define HAVE_MALLOC 1" >>build/confdefs.h
  6780. else
  6781. $as_echo "#define HAVE_MALLOC 0" >>build/confdefs.h
  6782. case " $LIBOBJS " in
  6783. *" malloc.$ac_objext "* ) ;;
  6784. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  6785. ;;
  6786. esac
  6787. $as_echo "#define malloc rpl_malloc" >>build/confdefs.h
  6788. fi
  6789. for ac_header in $ac_header_list
  6790. do :
  6791. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6792. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6793. "
  6794. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6795. cat >>build/confdefs.h <<_ACEOF
  6796. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6797. _ACEOF
  6798. fi
  6799. done
  6800. for ac_func in $ac_func_list
  6801. do :
  6802. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6803. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6804. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6805. cat >>build/confdefs.h <<_ACEOF
  6806. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6807. _ACEOF
  6808. fi
  6809. done
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  6811. $as_echo_n "checking for working mktime... " >&6; }
  6812. if ${ac_cv_func_working_mktime+:} false; then :
  6813. $as_echo_n "(cached) " >&6
  6814. else
  6815. if test "$cross_compiling" = yes; then :
  6816. ac_cv_func_working_mktime=no
  6817. else
  6818. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6819. /* end build/confdefs.h. */
  6820. /* Test program from Paul Eggert and Tony Leneis. */
  6821. #ifdef TIME_WITH_SYS_TIME
  6822. # include <sys/time.h>
  6823. # include <time.h>
  6824. #else
  6825. # ifdef HAVE_SYS_TIME_H
  6826. # include <sys/time.h>
  6827. # else
  6828. # include <time.h>
  6829. # endif
  6830. #endif
  6831. #include <limits.h>
  6832. #include <stdlib.h>
  6833. #ifdef HAVE_UNISTD_H
  6834. # include <unistd.h>
  6835. #endif
  6836. #ifndef HAVE_ALARM
  6837. # define alarm(X) /* empty */
  6838. #endif
  6839. /* Work around redefinition to rpl_putenv by other config tests. */
  6840. #undef putenv
  6841. static time_t time_t_max;
  6842. static time_t time_t_min;
  6843. /* Values we'll use to set the TZ environment variable. */
  6844. static const char *tz_strings[] = {
  6845. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  6846. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  6847. };
  6848. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  6849. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  6850. Based on a problem report from Andreas Jaeger. */
  6851. static int
  6852. spring_forward_gap ()
  6853. {
  6854. /* glibc (up to about 1998-10-07) failed this test. */
  6855. struct tm tm;
  6856. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6857. instead of "TZ=America/Vancouver" in order to detect the bug even
  6858. on systems that don't support the Olson extension, or don't have the
  6859. full zoneinfo tables installed. */
  6860. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6861. tm.tm_year = 98;
  6862. tm.tm_mon = 3;
  6863. tm.tm_mday = 5;
  6864. tm.tm_hour = 2;
  6865. tm.tm_min = 0;
  6866. tm.tm_sec = 0;
  6867. tm.tm_isdst = -1;
  6868. return mktime (&tm) != (time_t) -1;
  6869. }
  6870. static int
  6871. mktime_test1 (time_t now)
  6872. {
  6873. struct tm *lt;
  6874. return ! (lt = localtime (&now)) || mktime (lt) == now;
  6875. }
  6876. static int
  6877. mktime_test (time_t now)
  6878. {
  6879. return (mktime_test1 (now)
  6880. && mktime_test1 ((time_t) (time_t_max - now))
  6881. && mktime_test1 ((time_t) (time_t_min + now)));
  6882. }
  6883. static int
  6884. irix_6_4_bug ()
  6885. {
  6886. /* Based on code from Ariel Faigon. */
  6887. struct tm tm;
  6888. tm.tm_year = 96;
  6889. tm.tm_mon = 3;
  6890. tm.tm_mday = 0;
  6891. tm.tm_hour = 0;
  6892. tm.tm_min = 0;
  6893. tm.tm_sec = 0;
  6894. tm.tm_isdst = -1;
  6895. mktime (&tm);
  6896. return tm.tm_mon == 2 && tm.tm_mday == 31;
  6897. }
  6898. static int
  6899. bigtime_test (int j)
  6900. {
  6901. struct tm tm;
  6902. time_t now;
  6903. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  6904. now = mktime (&tm);
  6905. if (now != (time_t) -1)
  6906. {
  6907. struct tm *lt = localtime (&now);
  6908. if (! (lt
  6909. && lt->tm_year == tm.tm_year
  6910. && lt->tm_mon == tm.tm_mon
  6911. && lt->tm_mday == tm.tm_mday
  6912. && lt->tm_hour == tm.tm_hour
  6913. && lt->tm_min == tm.tm_min
  6914. && lt->tm_sec == tm.tm_sec
  6915. && lt->tm_yday == tm.tm_yday
  6916. && lt->tm_wday == tm.tm_wday
  6917. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  6918. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  6919. return 0;
  6920. }
  6921. return 1;
  6922. }
  6923. static int
  6924. year_2050_test ()
  6925. {
  6926. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  6927. ignoring leap seconds. */
  6928. unsigned long int answer = 2527315200UL;
  6929. struct tm tm;
  6930. time_t t;
  6931. tm.tm_year = 2050 - 1900;
  6932. tm.tm_mon = 2 - 1;
  6933. tm.tm_mday = 1;
  6934. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  6935. tm.tm_isdst = -1;
  6936. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  6937. instead of "TZ=America/Vancouver" in order to detect the bug even
  6938. on systems that don't support the Olson extension, or don't have the
  6939. full zoneinfo tables installed. */
  6940. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  6941. t = mktime (&tm);
  6942. /* Check that the result is either a failure, or close enough
  6943. to the correct answer that we can assume the discrepancy is
  6944. due to leap seconds. */
  6945. return (t == (time_t) -1
  6946. || (0 < t && answer - 120 <= t && t <= answer + 120));
  6947. }
  6948. int
  6949. main ()
  6950. {
  6951. time_t t, delta;
  6952. int i, j;
  6953. /* This test makes some buggy mktime implementations loop.
  6954. Give up after 60 seconds; a mktime slower than that
  6955. isn't worth using anyway. */
  6956. alarm (60);
  6957. for (;;)
  6958. {
  6959. t = (time_t_max << 1) + 1;
  6960. if (t <= time_t_max)
  6961. break;
  6962. time_t_max = t;
  6963. }
  6964. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  6965. delta = time_t_max / 997; /* a suitable prime number */
  6966. for (i = 0; i < N_STRINGS; i++)
  6967. {
  6968. if (tz_strings[i])
  6969. putenv ((char*) tz_strings[i]);
  6970. for (t = 0; t <= time_t_max - delta; t += delta)
  6971. if (! mktime_test (t))
  6972. return 1;
  6973. if (! (mktime_test ((time_t) 1)
  6974. && mktime_test ((time_t) (60 * 60))
  6975. && mktime_test ((time_t) (60 * 60 * 24))))
  6976. return 1;
  6977. for (j = 1; ; j <<= 1)
  6978. if (! bigtime_test (j))
  6979. return 1;
  6980. else if (INT_MAX / 2 < j)
  6981. break;
  6982. if (! bigtime_test (INT_MAX))
  6983. return 1;
  6984. }
  6985. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  6986. }
  6987. _ACEOF
  6988. if ac_fn_cxx_try_run "$LINENO"; then :
  6989. ac_cv_func_working_mktime=yes
  6990. else
  6991. ac_cv_func_working_mktime=no
  6992. fi
  6993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6994. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6995. fi
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  6998. $as_echo "$ac_cv_func_working_mktime" >&6; }
  6999. if test $ac_cv_func_working_mktime = no; then
  7000. case " $LIBOBJS " in
  7001. *" mktime.$ac_objext "* ) ;;
  7002. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  7003. ;;
  7004. esac
  7005. fi
  7006. for ac_func in getpagesize
  7007. do :
  7008. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7009. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7010. cat >>build/confdefs.h <<_ACEOF
  7011. #define HAVE_GETPAGESIZE 1
  7012. _ACEOF
  7013. fi
  7014. done
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7016. $as_echo_n "checking for working mmap... " >&6; }
  7017. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7018. $as_echo_n "(cached) " >&6
  7019. else
  7020. if test "$cross_compiling" = yes; then :
  7021. ac_cv_func_mmap_fixed_mapped=no
  7022. else
  7023. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7024. /* end build/confdefs.h. */
  7025. $ac_includes_default
  7026. /* malloc might have been renamed as rpl_malloc. */
  7027. #undef malloc
  7028. /* Thanks to Mike Haertel and Jim Avera for this test.
  7029. Here is a matrix of mmap possibilities:
  7030. mmap private not fixed
  7031. mmap private fixed at somewhere currently unmapped
  7032. mmap private fixed at somewhere already mapped
  7033. mmap shared not fixed
  7034. mmap shared fixed at somewhere currently unmapped
  7035. mmap shared fixed at somewhere already mapped
  7036. For private mappings, we should verify that changes cannot be read()
  7037. back from the file, nor mmap's back from the file at a different
  7038. address. (There have been systems where private was not correctly
  7039. implemented like the infamous i386 svr4.0, and systems where the
  7040. VM page cache was not coherent with the file system buffer cache
  7041. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7042. For shared mappings, we should conversely verify that changes get
  7043. propagated back to all the places they're supposed to be.
  7044. Grep wants private fixed already mapped.
  7045. The main things grep needs to know about mmap are:
  7046. * does it exist and is it safe to write into the mmap'd area
  7047. * how to use it (BSD variants) */
  7048. #include <fcntl.h>
  7049. #include <sys/mman.h>
  7050. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7051. char *malloc ();
  7052. #endif
  7053. /* This mess was copied from the GNU getpagesize.h. */
  7054. #ifndef HAVE_GETPAGESIZE
  7055. # ifdef _SC_PAGESIZE
  7056. # define getpagesize() sysconf(_SC_PAGESIZE)
  7057. # else /* no _SC_PAGESIZE */
  7058. # ifdef HAVE_SYS_PARAM_H
  7059. # include <sys/param.h>
  7060. # ifdef EXEC_PAGESIZE
  7061. # define getpagesize() EXEC_PAGESIZE
  7062. # else /* no EXEC_PAGESIZE */
  7063. # ifdef NBPG
  7064. # define getpagesize() NBPG * CLSIZE
  7065. # ifndef CLSIZE
  7066. # define CLSIZE 1
  7067. # endif /* no CLSIZE */
  7068. # else /* no NBPG */
  7069. # ifdef NBPC
  7070. # define getpagesize() NBPC
  7071. # else /* no NBPC */
  7072. # ifdef PAGESIZE
  7073. # define getpagesize() PAGESIZE
  7074. # endif /* PAGESIZE */
  7075. # endif /* no NBPC */
  7076. # endif /* no NBPG */
  7077. # endif /* no EXEC_PAGESIZE */
  7078. # else /* no HAVE_SYS_PARAM_H */
  7079. # define getpagesize() 8192 /* punt totally */
  7080. # endif /* no HAVE_SYS_PARAM_H */
  7081. # endif /* no _SC_PAGESIZE */
  7082. #endif /* no HAVE_GETPAGESIZE */
  7083. int
  7084. main ()
  7085. {
  7086. char *data, *data2, *data3;
  7087. const char *cdata2;
  7088. int i, pagesize;
  7089. int fd, fd2;
  7090. pagesize = getpagesize ();
  7091. /* First, make a file with some known garbage in it. */
  7092. data = (char *) malloc (pagesize);
  7093. if (!data)
  7094. return 1;
  7095. for (i = 0; i < pagesize; ++i)
  7096. *(data + i) = rand ();
  7097. umask (0);
  7098. fd = creat ("conftest.mmap", 0600);
  7099. if (fd < 0)
  7100. return 2;
  7101. if (write (fd, data, pagesize) != pagesize)
  7102. return 3;
  7103. close (fd);
  7104. /* Next, check that the tail of a page is zero-filled. File must have
  7105. non-zero length, otherwise we risk SIGBUS for entire page. */
  7106. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7107. if (fd2 < 0)
  7108. return 4;
  7109. cdata2 = "";
  7110. if (write (fd2, cdata2, 1) != 1)
  7111. return 5;
  7112. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7113. if (data2 == MAP_FAILED)
  7114. return 6;
  7115. for (i = 0; i < pagesize; ++i)
  7116. if (*(data2 + i))
  7117. return 7;
  7118. close (fd2);
  7119. if (munmap (data2, pagesize))
  7120. return 8;
  7121. /* Next, try to mmap the file at a fixed address which already has
  7122. something else allocated at it. If we can, also make sure that
  7123. we see the same garbage. */
  7124. fd = open ("conftest.mmap", O_RDWR);
  7125. if (fd < 0)
  7126. return 9;
  7127. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7128. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7129. return 10;
  7130. for (i = 0; i < pagesize; ++i)
  7131. if (*(data + i) != *(data2 + i))
  7132. return 11;
  7133. /* Finally, make sure that changes to the mapped area do not
  7134. percolate back to the file as seen by read(). (This is a bug on
  7135. some variants of i386 svr4.0.) */
  7136. for (i = 0; i < pagesize; ++i)
  7137. *(data2 + i) = *(data2 + i) + 1;
  7138. data3 = (char *) malloc (pagesize);
  7139. if (!data3)
  7140. return 12;
  7141. if (read (fd, data3, pagesize) != pagesize)
  7142. return 13;
  7143. for (i = 0; i < pagesize; ++i)
  7144. if (*(data + i) != *(data3 + i))
  7145. return 14;
  7146. close (fd);
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_cxx_try_run "$LINENO"; then :
  7151. ac_cv_func_mmap_fixed_mapped=yes
  7152. else
  7153. ac_cv_func_mmap_fixed_mapped=no
  7154. fi
  7155. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7156. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7157. fi
  7158. fi
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7160. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7161. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7162. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7163. fi
  7164. rm -f conftest.mmap conftest.txt
  7165. for ac_header in stdlib.h
  7166. do :
  7167. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7168. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7169. cat >>build/confdefs.h <<_ACEOF
  7170. #define HAVE_STDLIB_H 1
  7171. _ACEOF
  7172. fi
  7173. done
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  7175. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  7176. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  7177. $as_echo_n "(cached) " >&6
  7178. else
  7179. if test "$cross_compiling" = yes; then :
  7180. ac_cv_func_realloc_0_nonnull=no
  7181. else
  7182. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7183. /* end build/confdefs.h. */
  7184. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  7185. # include <stdlib.h>
  7186. #else
  7187. char *realloc ();
  7188. #endif
  7189. int
  7190. main ()
  7191. {
  7192. return ! realloc (0, 0);
  7193. ;
  7194. return 0;
  7195. }
  7196. _ACEOF
  7197. if ac_fn_cxx_try_run "$LINENO"; then :
  7198. ac_cv_func_realloc_0_nonnull=yes
  7199. else
  7200. ac_cv_func_realloc_0_nonnull=no
  7201. fi
  7202. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7203. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7204. fi
  7205. fi
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  7207. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  7208. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  7209. $as_echo "#define HAVE_REALLOC 1" >>build/confdefs.h
  7210. else
  7211. $as_echo "#define HAVE_REALLOC 0" >>build/confdefs.h
  7212. case " $LIBOBJS " in
  7213. *" realloc.$ac_objext "* ) ;;
  7214. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  7215. ;;
  7216. esac
  7217. $as_echo "#define realloc rpl_realloc" >>build/confdefs.h
  7218. fi
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  7220. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  7221. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. if test "$cross_compiling" = yes; then :
  7225. ac_cv_func_stat_empty_string_bug=yes
  7226. else
  7227. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7228. /* end build/confdefs.h. */
  7229. $ac_includes_default
  7230. int
  7231. main ()
  7232. {
  7233. struct stat sbuf;
  7234. return stat ("", &sbuf) == 0;
  7235. ;
  7236. return 0;
  7237. }
  7238. _ACEOF
  7239. if ac_fn_cxx_try_run "$LINENO"; then :
  7240. ac_cv_func_stat_empty_string_bug=no
  7241. else
  7242. ac_cv_func_stat_empty_string_bug=yes
  7243. fi
  7244. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7245. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7246. fi
  7247. fi
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  7249. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  7250. if test $ac_cv_func_stat_empty_string_bug = yes; then
  7251. case " $LIBOBJS " in
  7252. *" stat.$ac_objext "* ) ;;
  7253. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  7254. ;;
  7255. esac
  7256. cat >>build/confdefs.h <<_ACEOF
  7257. #define HAVE_STAT_EMPTY_STRING_BUG 1
  7258. _ACEOF
  7259. fi
  7260. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7261. #include <sys/time.h>
  7262. #include <time.h>
  7263. "
  7264. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7265. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7266. fi
  7267. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7268. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7269. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7270. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7271. else
  7272. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7273. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7274. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7275. fi
  7276. fi
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7278. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7279. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7280. /* end build/confdefs.h. */
  7281. #include <sys/types.h>
  7282. #include <sys/time.h>
  7283. int
  7284. main ()
  7285. {
  7286. struct timespec ts1, ts2;
  7287. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7288. #ifndef timespecsub
  7289. #error missing timespecsub
  7290. #endif
  7291. timespecsub(&ts1, &ts2);
  7292. ;
  7293. return 0;
  7294. }
  7295. _ACEOF
  7296. if ac_fn_cxx_try_compile "$LINENO"; then :
  7297. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7299. $as_echo "yes" >&6; }
  7300. else
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7302. $as_echo "no" >&6; }
  7303. fi
  7304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. fi
  7306. for ac_func in strftime
  7307. do :
  7308. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  7309. if test "x$ac_cv_func_strftime" = xyes; then :
  7310. cat >>build/confdefs.h <<_ACEOF
  7311. #define HAVE_STRFTIME 1
  7312. _ACEOF
  7313. else
  7314. # strftime is in -lintl on SCO UNIX.
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  7316. $as_echo_n "checking for strftime in -lintl... " >&6; }
  7317. if ${ac_cv_lib_intl_strftime+:} false; then :
  7318. $as_echo_n "(cached) " >&6
  7319. else
  7320. ac_check_lib_save_LIBS=$LIBS
  7321. LIBS="-lintl $LIBS"
  7322. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7323. /* end build/confdefs.h. */
  7324. /* Override any GCC internal prototype to avoid an error.
  7325. Use char because int might match the return type of a GCC
  7326. builtin and then its argument prototype would still apply. */
  7327. #ifdef __cplusplus
  7328. extern "C"
  7329. #endif
  7330. char strftime ();
  7331. int
  7332. main ()
  7333. {
  7334. return strftime ();
  7335. ;
  7336. return 0;
  7337. }
  7338. _ACEOF
  7339. if ac_fn_cxx_try_link "$LINENO"; then :
  7340. ac_cv_lib_intl_strftime=yes
  7341. else
  7342. ac_cv_lib_intl_strftime=no
  7343. fi
  7344. rm -f core conftest.err conftest.$ac_objext \
  7345. conftest$ac_exeext conftest.$ac_ext
  7346. LIBS=$ac_check_lib_save_LIBS
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  7349. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  7350. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  7351. $as_echo "#define HAVE_STRFTIME 1" >>build/confdefs.h
  7352. LIBS="-lintl $LIBS"
  7353. fi
  7354. fi
  7355. done
  7356. #checkpoint
  7357. cat >confcache <<\_ACEOF
  7358. # This file is a shell script that caches the results of configure
  7359. # tests run on this system so they can be shared between configure
  7360. # scripts and configure runs, see configure's option --config-cache.
  7361. # It is not useful on other systems. If it contains results you don't
  7362. # want to keep, you may remove or edit it.
  7363. #
  7364. # build/config.status only pays attention to the cache file if you give it
  7365. # the --recheck option to rerun configure.
  7366. #
  7367. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7368. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7369. # following values.
  7370. _ACEOF
  7371. # The following way of writing the cache mishandles newlines in values,
  7372. # but we know of no workaround that is simple, portable, and efficient.
  7373. # So, we kill variables containing newlines.
  7374. # Ultrix sh set writes to stderr and can't be redirected directly,
  7375. # and sets the high bit in the cache file unless we assign to the vars.
  7376. (
  7377. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7378. eval ac_val=\$$ac_var
  7379. case $ac_val in #(
  7380. *${as_nl}*)
  7381. case $ac_var in #(
  7382. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7383. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7384. esac
  7385. case $ac_var in #(
  7386. _ | IFS | as_nl) ;; #(
  7387. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7388. *) { eval $ac_var=; unset $ac_var;} ;;
  7389. esac ;;
  7390. esac
  7391. done
  7392. (set) 2>&1 |
  7393. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7394. *${as_nl}ac_space=\ *)
  7395. # `set' does not quote correctly, so add quotes: double-quote
  7396. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7397. sed -n \
  7398. "s/'/'\\\\''/g;
  7399. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7400. ;; #(
  7401. *)
  7402. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7403. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7404. ;;
  7405. esac |
  7406. sort
  7407. ) |
  7408. sed '
  7409. /^ac_cv_env_/b end
  7410. t clear
  7411. :clear
  7412. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7413. t end
  7414. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7415. :end' >>confcache
  7416. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7417. if test -w "$cache_file"; then
  7418. if test "x$cache_file" != "x/dev/null"; then
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7420. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7421. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7422. cat confcache >"$cache_file"
  7423. else
  7424. case $cache_file in #(
  7425. */* | ?:*)
  7426. mv -f confcache "$cache_file"$$ &&
  7427. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7428. *)
  7429. mv -f confcache "$cache_file" ;;
  7430. esac
  7431. fi
  7432. fi
  7433. else
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7435. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7436. fi
  7437. fi
  7438. rm -f confcache
  7439. for ac_func in clock fsync getrusage isascii getpassphrase
  7440. do :
  7441. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7442. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7443. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7444. cat >>build/confdefs.h <<_ACEOF
  7445. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7446. _ACEOF
  7447. fi
  7448. done
  7449. for ac_func in memcpy memset random rename snprintf srandom gettime
  7450. do :
  7451. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7452. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7453. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7454. cat >>build/confdefs.h <<_ACEOF
  7455. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7456. _ACEOF
  7457. fi
  7458. done
  7459. #checkpoint
  7460. cat >confcache <<\_ACEOF
  7461. # This file is a shell script that caches the results of configure
  7462. # tests run on this system so they can be shared between configure
  7463. # scripts and configure runs, see configure's option --config-cache.
  7464. # It is not useful on other systems. If it contains results you don't
  7465. # want to keep, you may remove or edit it.
  7466. #
  7467. # build/config.status only pays attention to the cache file if you give it
  7468. # the --recheck option to rerun configure.
  7469. #
  7470. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7471. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7472. # following values.
  7473. _ACEOF
  7474. # The following way of writing the cache mishandles newlines in values,
  7475. # but we know of no workaround that is simple, portable, and efficient.
  7476. # So, we kill variables containing newlines.
  7477. # Ultrix sh set writes to stderr and can't be redirected directly,
  7478. # and sets the high bit in the cache file unless we assign to the vars.
  7479. (
  7480. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7481. eval ac_val=\$$ac_var
  7482. case $ac_val in #(
  7483. *${as_nl}*)
  7484. case $ac_var in #(
  7485. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7486. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7487. esac
  7488. case $ac_var in #(
  7489. _ | IFS | as_nl) ;; #(
  7490. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7491. *) { eval $ac_var=; unset $ac_var;} ;;
  7492. esac ;;
  7493. esac
  7494. done
  7495. (set) 2>&1 |
  7496. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7497. *${as_nl}ac_space=\ *)
  7498. # `set' does not quote correctly, so add quotes: double-quote
  7499. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7500. sed -n \
  7501. "s/'/'\\\\''/g;
  7502. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7503. ;; #(
  7504. *)
  7505. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7506. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7507. ;;
  7508. esac |
  7509. sort
  7510. ) |
  7511. sed '
  7512. /^ac_cv_env_/b end
  7513. t clear
  7514. :clear
  7515. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7516. t end
  7517. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7518. :end' >>confcache
  7519. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7520. if test -w "$cache_file"; then
  7521. if test "x$cache_file" != "x/dev/null"; then
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7523. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7524. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7525. cat confcache >"$cache_file"
  7526. else
  7527. case $cache_file in #(
  7528. */* | ?:*)
  7529. mv -f confcache "$cache_file"$$ &&
  7530. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7531. *)
  7532. mv -f confcache "$cache_file" ;;
  7533. esac
  7534. fi
  7535. fi
  7536. else
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7538. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7539. fi
  7540. fi
  7541. rm -f confcache
  7542. for ac_func in strcasecmp strncasecmp vsnprintf inet_ntop
  7543. do :
  7544. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7545. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7546. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7547. cat >>build/confdefs.h <<_ACEOF
  7548. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7549. _ACEOF
  7550. fi
  7551. done
  7552. #autoscan suggested this....
  7553. #These are recommended by autoscan, but no code supports it currently
  7554. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7555. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7556. for ac_func in vsprintf
  7557. do :
  7558. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7559. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7560. cat >>build/confdefs.h <<_ACEOF
  7561. #define HAVE_VSPRINTF 1
  7562. _ACEOF
  7563. fi
  7564. done
  7565. if test "$ac_cv_func_vsprintf" = "no"
  7566. then
  7567. cat << 'EOF' >&2
  7568. configure: error:
  7569. Your system does not have the sprintf/vsprintf libraries.
  7570. These are required to compile almost anything. Sorry.
  7571. EOF
  7572. exit 1
  7573. fi
  7574. for ac_func in uname
  7575. do :
  7576. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7577. if test "x$ac_cv_func_uname" = xyes; then :
  7578. cat >>build/confdefs.h <<_ACEOF
  7579. #define HAVE_UNAME 1
  7580. _ACEOF
  7581. fi
  7582. done
  7583. if test "$ac_cv_func_uname" = "no"
  7584. then
  7585. cat << 'EOF' >&2
  7586. configure: error:
  7587. Your system does not have the uname() function.
  7588. This is required for the botpack.
  7589. EOF
  7590. exit 1
  7591. fi
  7592. # Make sure we have stdc headers, since we can't compile without them
  7593. if test "$ac_cv_header_stdc" = "no"
  7594. then
  7595. cat << 'EOF' >&2
  7596. configure: error:
  7597. Your system must support ANSI C Header files.
  7598. These are required for the language support. Sorry.
  7599. EOF
  7600. exit 1
  7601. fi
  7602. #checkpoint
  7603. cat >confcache <<\_ACEOF
  7604. # This file is a shell script that caches the results of configure
  7605. # tests run on this system so they can be shared between configure
  7606. # scripts and configure runs, see configure's option --config-cache.
  7607. # It is not useful on other systems. If it contains results you don't
  7608. # want to keep, you may remove or edit it.
  7609. #
  7610. # build/config.status only pays attention to the cache file if you give it
  7611. # the --recheck option to rerun configure.
  7612. #
  7613. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7614. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7615. # following values.
  7616. _ACEOF
  7617. # The following way of writing the cache mishandles newlines in values,
  7618. # but we know of no workaround that is simple, portable, and efficient.
  7619. # So, we kill variables containing newlines.
  7620. # Ultrix sh set writes to stderr and can't be redirected directly,
  7621. # and sets the high bit in the cache file unless we assign to the vars.
  7622. (
  7623. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7624. eval ac_val=\$$ac_var
  7625. case $ac_val in #(
  7626. *${as_nl}*)
  7627. case $ac_var in #(
  7628. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7629. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7630. esac
  7631. case $ac_var in #(
  7632. _ | IFS | as_nl) ;; #(
  7633. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7634. *) { eval $ac_var=; unset $ac_var;} ;;
  7635. esac ;;
  7636. esac
  7637. done
  7638. (set) 2>&1 |
  7639. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7640. *${as_nl}ac_space=\ *)
  7641. # `set' does not quote correctly, so add quotes: double-quote
  7642. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7643. sed -n \
  7644. "s/'/'\\\\''/g;
  7645. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7646. ;; #(
  7647. *)
  7648. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7649. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7650. ;;
  7651. esac |
  7652. sort
  7653. ) |
  7654. sed '
  7655. /^ac_cv_env_/b end
  7656. t clear
  7657. :clear
  7658. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7659. t end
  7660. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7661. :end' >>confcache
  7662. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7663. if test -w "$cache_file"; then
  7664. if test "x$cache_file" != "x/dev/null"; then
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7666. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7667. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7668. cat confcache >"$cache_file"
  7669. else
  7670. case $cache_file in #(
  7671. */* | ?:*)
  7672. mv -f confcache "$cache_file"$$ &&
  7673. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7674. *)
  7675. mv -f confcache "$cache_file" ;;
  7676. esac
  7677. fi
  7678. fi
  7679. else
  7680. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7681. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7682. fi
  7683. fi
  7684. rm -f confcache
  7685. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  7686. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  7687. cat >>build/confdefs.h <<_ACEOF
  7688. #define EGG_VERSION $version_num
  7689. _ACEOF
  7690. #FIND_WRAPS
  7691. case "$srcdir" in
  7692. [\\/]* | ?:[\\/]*)
  7693. MOD_UPDIR=""
  7694. ;;
  7695. *)
  7696. MOD_UPDIR="../"
  7697. ;;
  7698. esac
  7699. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/irc.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  7700. for mf in $files; do
  7701. # Strip MF so we end up with the name of the file.
  7702. # echo "MF: $mf"
  7703. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7704. dirpart=`$as_dirname -- "$mf" ||
  7705. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7706. X"$mf" : 'X\(//\)[^/]' \| \
  7707. X"$mf" : 'X\(//\)$' \| \
  7708. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  7709. $as_echo X"$mf" |
  7710. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7711. s//\1/
  7712. q
  7713. }
  7714. /^X\(\/\/\)[^/].*/{
  7715. s//\1/
  7716. q
  7717. }
  7718. /^X\(\/\/\)$/{
  7719. s//\1/
  7720. q
  7721. }
  7722. /^X\(\/\).*/{
  7723. s//\1/
  7724. q
  7725. }
  7726. s/.*/./; q'`
  7727. # echo "dirpart: $dirpart mf: $mf"
  7728. # rm -rf "$dirpart/.deps/"
  7729. rm -f "$dirpart/.deps/includes"
  7730. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  7731. for file in `sed -n -e '
  7732. /^OBJS = .*\\\\$/ {
  7733. s/^OBJS = //
  7734. :loop
  7735. s/\\\\$//
  7736. p
  7737. n
  7738. /\\\\$/ b loop
  7739. p
  7740. }
  7741. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  7742. do
  7743. suffix=${file##*.}
  7744. base=${file%%.*}
  7745. test -f "$dirpart/$base.c" || continue
  7746. if ! test -f "$dirpart/.deps/$base.Po"; then
  7747. echo '# dummy' > "$dirpart/.deps/$base.Po"
  7748. #Remove the .o file, because it needs to be recompiled for its dependancies.
  7749. if test -f "$dirpart/${base}.${suffix}"; then
  7750. rm -f "$dirpart/${base}.${suffix}"
  7751. fi
  7752. fi
  7753. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  7754. done
  7755. done
  7756. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  7757. GIT_REQUIRED=1
  7758. if [ "$GIT_REQUIRED" = "1" ]; then
  7759. if ! test -d .git; then
  7760. echo ""
  7761. echo ""
  7762. echo "You have downloaded a GIT version of wraith."
  7763. echo "Either 'git clone' from a git repository or download a source tarball"
  7764. echo "A distribution version can be found at http://wraith.botpack.net/wiki/Download"
  7765. echo ""
  7766. echo ""
  7767. exit 1
  7768. fi
  7769. fi
  7770. if test -d .git; then
  7771. git submodule init
  7772. git submodule update
  7773. fi
  7774. if [ -f lib/bdlib/configure ]; then
  7775. ac_aux_dir=
  7776. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  7777. if test -f "$ac_dir/install-sh"; then
  7778. ac_aux_dir=$ac_dir
  7779. ac_install_sh="$ac_aux_dir/install-sh -c"
  7780. break
  7781. elif test -f "$ac_dir/install.sh"; then
  7782. ac_aux_dir=$ac_dir
  7783. ac_install_sh="$ac_aux_dir/install.sh -c"
  7784. break
  7785. elif test -f "$ac_dir/shtool"; then
  7786. ac_aux_dir=$ac_dir
  7787. ac_install_sh="$ac_aux_dir/shtool install -c"
  7788. break
  7789. fi
  7790. done
  7791. if test -z "$ac_aux_dir"; then
  7792. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  7793. fi
  7794. # These three variables are undocumented and unsupported,
  7795. # and are intended to be withdrawn in a future Autoconf release.
  7796. # They can cause serious problems if a builder's source tree is in a directory
  7797. # whose full name contains unusual characters.
  7798. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  7799. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  7800. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  7801. subdirs="$subdirs lib/bdlib"
  7802. fi
  7803. cat >confcache <<\_ACEOF
  7804. # This file is a shell script that caches the results of configure
  7805. # tests run on this system so they can be shared between configure
  7806. # scripts and configure runs, see configure's option --config-cache.
  7807. # It is not useful on other systems. If it contains results you don't
  7808. # want to keep, you may remove or edit it.
  7809. #
  7810. # build/config.status only pays attention to the cache file if you give it
  7811. # the --recheck option to rerun configure.
  7812. #
  7813. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7814. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7815. # following values.
  7816. _ACEOF
  7817. # The following way of writing the cache mishandles newlines in values,
  7818. # but we know of no workaround that is simple, portable, and efficient.
  7819. # So, we kill variables containing newlines.
  7820. # Ultrix sh set writes to stderr and can't be redirected directly,
  7821. # and sets the high bit in the cache file unless we assign to the vars.
  7822. (
  7823. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7824. eval ac_val=\$$ac_var
  7825. case $ac_val in #(
  7826. *${as_nl}*)
  7827. case $ac_var in #(
  7828. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7829. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7830. esac
  7831. case $ac_var in #(
  7832. _ | IFS | as_nl) ;; #(
  7833. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7834. *) { eval $ac_var=; unset $ac_var;} ;;
  7835. esac ;;
  7836. esac
  7837. done
  7838. (set) 2>&1 |
  7839. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7840. *${as_nl}ac_space=\ *)
  7841. # `set' does not quote correctly, so add quotes: double-quote
  7842. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7843. sed -n \
  7844. "s/'/'\\\\''/g;
  7845. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7846. ;; #(
  7847. *)
  7848. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7849. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7850. ;;
  7851. esac |
  7852. sort
  7853. ) |
  7854. sed '
  7855. /^ac_cv_env_/b end
  7856. t clear
  7857. :clear
  7858. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7859. t end
  7860. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7861. :end' >>confcache
  7862. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7863. if test -w "$cache_file"; then
  7864. if test "x$cache_file" != "x/dev/null"; then
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7866. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7867. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7868. cat confcache >"$cache_file"
  7869. else
  7870. case $cache_file in #(
  7871. */* | ?:*)
  7872. mv -f confcache "$cache_file"$$ &&
  7873. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7874. *)
  7875. mv -f confcache "$cache_file" ;;
  7876. esac
  7877. fi
  7878. fi
  7879. else
  7880. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7881. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7882. fi
  7883. fi
  7884. rm -f confcache
  7885. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7886. # Let make expand exec_prefix.
  7887. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7888. DEFS=-DHAVE_CONFIG_H
  7889. ac_libobjs=
  7890. ac_ltlibobjs=
  7891. U=
  7892. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7893. # 1. Remove the extension, and $U if already installed.
  7894. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7895. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7896. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7897. # will be set to the directory where LIBOBJS objects are built.
  7898. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7899. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7900. done
  7901. LIBOBJS=$ac_libobjs
  7902. LTLIBOBJS=$ac_ltlibobjs
  7903. : "${CONFIG_STATUS=./build/config.status}"
  7904. ac_write_fail=0
  7905. ac_clean_files_save=$ac_clean_files
  7906. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7908. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7909. as_write_fail=0
  7910. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7911. #! $SHELL
  7912. # Generated by $as_me.
  7913. # Run this file to recreate the current configuration.
  7914. # Compiler output produced by configure, useful for debugging
  7915. # configure, is in build/config.log if it exists.
  7916. debug=false
  7917. ac_cs_recheck=false
  7918. ac_cs_silent=false
  7919. SHELL=\${CONFIG_SHELL-$SHELL}
  7920. export SHELL
  7921. _ASEOF
  7922. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7923. ## -------------------- ##
  7924. ## M4sh Initialization. ##
  7925. ## -------------------- ##
  7926. # Be more Bourne compatible
  7927. DUALCASE=1; export DUALCASE # for MKS sh
  7928. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7929. emulate sh
  7930. NULLCMD=:
  7931. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7932. # is contrary to our usage. Disable this feature.
  7933. alias -g '${1+"$@"}'='"$@"'
  7934. setopt NO_GLOB_SUBST
  7935. else
  7936. case `(set -o) 2>/dev/null` in #(
  7937. *posix*) :
  7938. set -o posix ;; #(
  7939. *) :
  7940. ;;
  7941. esac
  7942. fi
  7943. as_nl='
  7944. '
  7945. export as_nl
  7946. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7947. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7948. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7949. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7950. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7951. # but without wasting forks for bash or zsh.
  7952. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7953. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7954. as_echo='print -r --'
  7955. as_echo_n='print -rn --'
  7956. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7957. as_echo='printf %s\n'
  7958. as_echo_n='printf %s'
  7959. else
  7960. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7961. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7962. as_echo_n='/usr/ucb/echo -n'
  7963. else
  7964. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7965. as_echo_n_body='eval
  7966. arg=$1;
  7967. case $arg in #(
  7968. *"$as_nl"*)
  7969. expr "X$arg" : "X\\(.*\\)$as_nl";
  7970. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7971. esac;
  7972. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7973. '
  7974. export as_echo_n_body
  7975. as_echo_n='sh -c $as_echo_n_body as_echo'
  7976. fi
  7977. export as_echo_body
  7978. as_echo='sh -c $as_echo_body as_echo'
  7979. fi
  7980. # The user is always right.
  7981. if test "${PATH_SEPARATOR+set}" != set; then
  7982. PATH_SEPARATOR=:
  7983. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7984. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7985. PATH_SEPARATOR=';'
  7986. }
  7987. fi
  7988. # IFS
  7989. # We need space, tab and new line, in precisely that order. Quoting is
  7990. # there to prevent editors from complaining about space-tab.
  7991. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7992. # splitting by setting IFS to empty value.)
  7993. IFS=" "" $as_nl"
  7994. # Find who we are. Look in the path if we contain no directory separator.
  7995. as_myself=
  7996. case $0 in #((
  7997. *[\\/]* ) as_myself=$0 ;;
  7998. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7999. for as_dir in $PATH
  8000. do
  8001. IFS=$as_save_IFS
  8002. test -z "$as_dir" && as_dir=.
  8003. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8004. done
  8005. IFS=$as_save_IFS
  8006. ;;
  8007. esac
  8008. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8009. # in which case we are not to be found in the path.
  8010. if test "x$as_myself" = x; then
  8011. as_myself=$0
  8012. fi
  8013. if test ! -f "$as_myself"; then
  8014. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8015. exit 1
  8016. fi
  8017. # Unset variables that we do not need and which cause bugs (e.g. in
  8018. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8019. # suppresses any "Segmentation fault" message there. '((' could
  8020. # trigger a bug in pdksh 5.2.14.
  8021. for as_var in BASH_ENV ENV MAIL MAILPATH
  8022. do eval test x\${$as_var+set} = xset \
  8023. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8024. done
  8025. PS1='$ '
  8026. PS2='> '
  8027. PS4='+ '
  8028. # NLS nuisances.
  8029. LC_ALL=C
  8030. export LC_ALL
  8031. LANGUAGE=C
  8032. export LANGUAGE
  8033. # CDPATH.
  8034. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8035. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8036. # ----------------------------------------
  8037. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8038. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8039. # script with STATUS, using 1 if that was 0.
  8040. as_fn_error ()
  8041. {
  8042. as_status=$1; test $as_status -eq 0 && as_status=1
  8043. if test "$4"; then
  8044. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8045. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8046. fi
  8047. $as_echo "$as_me: error: $2" >&2
  8048. as_fn_exit $as_status
  8049. } # as_fn_error
  8050. # as_fn_set_status STATUS
  8051. # -----------------------
  8052. # Set $? to STATUS, without forking.
  8053. as_fn_set_status ()
  8054. {
  8055. return $1
  8056. } # as_fn_set_status
  8057. # as_fn_exit STATUS
  8058. # -----------------
  8059. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8060. as_fn_exit ()
  8061. {
  8062. set +e
  8063. as_fn_set_status $1
  8064. exit $1
  8065. } # as_fn_exit
  8066. # as_fn_unset VAR
  8067. # ---------------
  8068. # Portably unset VAR.
  8069. as_fn_unset ()
  8070. {
  8071. { eval $1=; unset $1;}
  8072. }
  8073. as_unset=as_fn_unset
  8074. # as_fn_append VAR VALUE
  8075. # ----------------------
  8076. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8077. # advantage of any shell optimizations that allow amortized linear growth over
  8078. # repeated appends, instead of the typical quadratic growth present in naive
  8079. # implementations.
  8080. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8081. eval 'as_fn_append ()
  8082. {
  8083. eval $1+=\$2
  8084. }'
  8085. else
  8086. as_fn_append ()
  8087. {
  8088. eval $1=\$$1\$2
  8089. }
  8090. fi # as_fn_append
  8091. # as_fn_arith ARG...
  8092. # ------------------
  8093. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8094. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8095. # must be portable across $(()) and expr.
  8096. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8097. eval 'as_fn_arith ()
  8098. {
  8099. as_val=$(( $* ))
  8100. }'
  8101. else
  8102. as_fn_arith ()
  8103. {
  8104. as_val=`expr "$@" || test $? -eq 1`
  8105. }
  8106. fi # as_fn_arith
  8107. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8108. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8109. as_expr=expr
  8110. else
  8111. as_expr=false
  8112. fi
  8113. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8114. as_basename=basename
  8115. else
  8116. as_basename=false
  8117. fi
  8118. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8119. as_dirname=dirname
  8120. else
  8121. as_dirname=false
  8122. fi
  8123. as_me=`$as_basename -- "$0" ||
  8124. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8125. X"$0" : 'X\(//\)$' \| \
  8126. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8127. $as_echo X/"$0" |
  8128. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8129. s//\1/
  8130. q
  8131. }
  8132. /^X\/\(\/\/\)$/{
  8133. s//\1/
  8134. q
  8135. }
  8136. /^X\/\(\/\).*/{
  8137. s//\1/
  8138. q
  8139. }
  8140. s/.*/./; q'`
  8141. # Avoid depending upon Character Ranges.
  8142. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8143. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8144. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8145. as_cr_digits='0123456789'
  8146. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8147. ECHO_C= ECHO_N= ECHO_T=
  8148. case `echo -n x` in #(((((
  8149. -n*)
  8150. case `echo 'xy\c'` in
  8151. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8152. xy) ECHO_C='\c';;
  8153. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8154. ECHO_T=' ';;
  8155. esac;;
  8156. *)
  8157. ECHO_N='-n';;
  8158. esac
  8159. rm -f conf$$ conf$$.exe conf$$.file
  8160. if test -d conf$$.dir; then
  8161. rm -f conf$$.dir/conf$$.file
  8162. else
  8163. rm -f conf$$.dir
  8164. mkdir conf$$.dir 2>/dev/null
  8165. fi
  8166. if (echo >conf$$.file) 2>/dev/null; then
  8167. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8168. as_ln_s='ln -s'
  8169. # ... but there are two gotchas:
  8170. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8171. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8172. # In both cases, we have to default to `cp -pR'.
  8173. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8174. as_ln_s='cp -pR'
  8175. elif ln conf$$.file conf$$ 2>/dev/null; then
  8176. as_ln_s=ln
  8177. else
  8178. as_ln_s='cp -pR'
  8179. fi
  8180. else
  8181. as_ln_s='cp -pR'
  8182. fi
  8183. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8184. rmdir conf$$.dir 2>/dev/null
  8185. # as_fn_mkdir_p
  8186. # -------------
  8187. # Create "$as_dir" as a directory, including parents if necessary.
  8188. as_fn_mkdir_p ()
  8189. {
  8190. case $as_dir in #(
  8191. -*) as_dir=./$as_dir;;
  8192. esac
  8193. test -d "$as_dir" || eval $as_mkdir_p || {
  8194. as_dirs=
  8195. while :; do
  8196. case $as_dir in #(
  8197. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8198. *) as_qdir=$as_dir;;
  8199. esac
  8200. as_dirs="'$as_qdir' $as_dirs"
  8201. as_dir=`$as_dirname -- "$as_dir" ||
  8202. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8203. X"$as_dir" : 'X\(//\)[^/]' \| \
  8204. X"$as_dir" : 'X\(//\)$' \| \
  8205. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8206. $as_echo X"$as_dir" |
  8207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8208. s//\1/
  8209. q
  8210. }
  8211. /^X\(\/\/\)[^/].*/{
  8212. s//\1/
  8213. q
  8214. }
  8215. /^X\(\/\/\)$/{
  8216. s//\1/
  8217. q
  8218. }
  8219. /^X\(\/\).*/{
  8220. s//\1/
  8221. q
  8222. }
  8223. s/.*/./; q'`
  8224. test -d "$as_dir" && break
  8225. done
  8226. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8227. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8228. } # as_fn_mkdir_p
  8229. if mkdir -p . 2>/dev/null; then
  8230. as_mkdir_p='mkdir -p "$as_dir"'
  8231. else
  8232. test -d ./-p && rmdir ./-p
  8233. as_mkdir_p=false
  8234. fi
  8235. # as_fn_executable_p FILE
  8236. # -----------------------
  8237. # Test if FILE is an executable regular file.
  8238. as_fn_executable_p ()
  8239. {
  8240. test -f "$1" && test -x "$1"
  8241. } # as_fn_executable_p
  8242. as_test_x='test -x'
  8243. as_executable_p=as_fn_executable_p
  8244. # Sed expression to map a string onto a valid CPP name.
  8245. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8246. # Sed expression to map a string onto a valid variable name.
  8247. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8248. exec 6>&1
  8249. ## ----------------------------------- ##
  8250. ## Main body of $CONFIG_STATUS script. ##
  8251. ## ----------------------------------- ##
  8252. _ASEOF
  8253. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8254. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8255. # Save the log message, to keep $0 and so on meaningful, and to
  8256. # report actual input values of CONFIG_FILES etc. instead of their
  8257. # values after options handling.
  8258. ac_log="
  8259. This file was extended by $as_me, which was
  8260. generated by GNU Autoconf 2.69. Invocation command line was
  8261. CONFIG_FILES = $CONFIG_FILES
  8262. CONFIG_HEADERS = $CONFIG_HEADERS
  8263. CONFIG_LINKS = $CONFIG_LINKS
  8264. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8265. $ $0 $@
  8266. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8267. "
  8268. _ACEOF
  8269. case $ac_config_files in *"
  8270. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8271. esac
  8272. case $ac_config_headers in *"
  8273. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8274. esac
  8275. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8276. # Files that build/config.status was made for.
  8277. config_files="$ac_config_files"
  8278. config_headers="$ac_config_headers"
  8279. _ACEOF
  8280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8281. ac_cs_usage="\
  8282. \`$as_me' instantiates files and other configuration actions
  8283. from templates according to the current configuration. Unless the files
  8284. and actions are specified as TAGs, all are instantiated by default.
  8285. Usage: $0 [OPTION]... [TAG]...
  8286. -h, --help print this help, then exit
  8287. -V, --version print version number and configuration settings, then exit
  8288. --config print configuration, then exit
  8289. -q, --quiet, --silent
  8290. do not print progress messages
  8291. -d, --debug don't remove temporary files
  8292. --recheck update $as_me by reconfiguring in the same conditions
  8293. --file=FILE[:TEMPLATE]
  8294. instantiate the configuration file FILE
  8295. --header=FILE[:TEMPLATE]
  8296. instantiate the configuration header FILE
  8297. Configuration files:
  8298. $config_files
  8299. Configuration headers:
  8300. $config_headers
  8301. Report bugs to the package provider."
  8302. _ACEOF
  8303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8304. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8305. ac_cs_version="\\
  8306. build/config.status
  8307. configured by $0, generated by GNU Autoconf 2.69,
  8308. with options \\"\$ac_cs_config\\"
  8309. Copyright (C) 2012 Free Software Foundation, Inc.
  8310. This build/config.status script is free software; the Free Software Foundation
  8311. gives unlimited permission to copy, distribute and modify it."
  8312. ac_pwd='$ac_pwd'
  8313. srcdir='$srcdir'
  8314. AWK='$AWK'
  8315. test -n "\$AWK" || AWK=awk
  8316. _ACEOF
  8317. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8318. # The default lists apply if the user does not specify any file.
  8319. ac_need_defaults=:
  8320. while test $# != 0
  8321. do
  8322. case $1 in
  8323. --*=?*)
  8324. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8325. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8326. ac_shift=:
  8327. ;;
  8328. --*=)
  8329. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8330. ac_optarg=
  8331. ac_shift=:
  8332. ;;
  8333. *)
  8334. ac_option=$1
  8335. ac_optarg=$2
  8336. ac_shift=shift
  8337. ;;
  8338. esac
  8339. case $ac_option in
  8340. # Handling of the options.
  8341. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8342. ac_cs_recheck=: ;;
  8343. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8344. $as_echo "$ac_cs_version"; exit ;;
  8345. --config | --confi | --conf | --con | --co | --c )
  8346. $as_echo "$ac_cs_config"; exit ;;
  8347. --debug | --debu | --deb | --de | --d | -d )
  8348. debug=: ;;
  8349. --file | --fil | --fi | --f )
  8350. $ac_shift
  8351. case $ac_optarg in
  8352. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8353. '') as_fn_error $? "missing file argument" ;;
  8354. esac
  8355. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8356. ac_need_defaults=false;;
  8357. --header | --heade | --head | --hea )
  8358. $ac_shift
  8359. case $ac_optarg in
  8360. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8361. esac
  8362. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8363. ac_need_defaults=false;;
  8364. --he | --h)
  8365. # Conflict between --help and --header
  8366. as_fn_error $? "ambiguous option: \`$1'
  8367. Try \`$0 --help' for more information.";;
  8368. --help | --hel | -h )
  8369. $as_echo "$ac_cs_usage"; exit ;;
  8370. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8371. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8372. ac_cs_silent=: ;;
  8373. # This is an error.
  8374. -*) as_fn_error $? "unrecognized option: \`$1'
  8375. Try \`$0 --help' for more information." ;;
  8376. *) as_fn_append ac_config_targets " $1"
  8377. ac_need_defaults=false ;;
  8378. esac
  8379. shift
  8380. done
  8381. ac_configure_extra_args=
  8382. if $ac_cs_silent; then
  8383. exec 6>/dev/null
  8384. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8385. fi
  8386. _ACEOF
  8387. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8388. if \$ac_cs_recheck; then
  8389. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8390. shift
  8391. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8392. CONFIG_SHELL='$SHELL'
  8393. export CONFIG_SHELL
  8394. exec "\$@"
  8395. fi
  8396. _ACEOF
  8397. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8398. exec 5>>build/config.log
  8399. {
  8400. echo
  8401. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8402. ## Running $as_me. ##
  8403. _ASBOX
  8404. $as_echo "$ac_log"
  8405. } >&5
  8406. _ACEOF
  8407. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8408. _ACEOF
  8409. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8410. # Handling of arguments.
  8411. for ac_config_target in $ac_config_targets
  8412. do
  8413. case $ac_config_target in
  8414. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8415. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8416. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8417. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8418. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  8419. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  8420. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  8421. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8422. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8423. esac
  8424. done
  8425. # If the user did not use the arguments to specify the items to instantiate,
  8426. # then the envvar interface is used. Set only those that are not.
  8427. # We use the long form for the default assignment because of an extremely
  8428. # bizarre bug on SunOS 4.1.3.
  8429. if $ac_need_defaults; then
  8430. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8431. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8432. fi
  8433. # Have a temporary directory for convenience. Make it in the build tree
  8434. # simply because there is no reason against having it here, and in addition,
  8435. # creating and moving files from /tmp can sometimes cause problems.
  8436. # Hook for its removal unless debugging.
  8437. # Note that there is a small window in which the directory will not be cleaned:
  8438. # after its creation but before its name has been assigned to `$tmp'.
  8439. $debug ||
  8440. {
  8441. tmp= ac_tmp=
  8442. trap 'exit_status=$?
  8443. : "${ac_tmp:=$tmp}"
  8444. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8445. ' 0
  8446. trap 'as_fn_exit 1' 1 2 13 15
  8447. }
  8448. # Create a (secure) tmp directory for tmp files.
  8449. {
  8450. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8451. test -d "$tmp"
  8452. } ||
  8453. {
  8454. tmp=./conf$$-$RANDOM
  8455. (umask 077 && mkdir "$tmp")
  8456. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8457. ac_tmp=$tmp
  8458. # Set up the scripts for CONFIG_FILES section.
  8459. # No need to generate them if there are no CONFIG_FILES.
  8460. # This happens for instance with `./build/config.status config.h'.
  8461. if test -n "$CONFIG_FILES"; then
  8462. ac_cr=`echo X | tr X '\015'`
  8463. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8464. # But we know of no other shell where ac_cr would be empty at this
  8465. # point, so we can use a bashism as a fallback.
  8466. if test "x$ac_cr" = x; then
  8467. eval ac_cr=\$\'\\r\'
  8468. fi
  8469. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8470. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8471. ac_cs_awk_cr='\\r'
  8472. else
  8473. ac_cs_awk_cr=$ac_cr
  8474. fi
  8475. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8476. _ACEOF
  8477. {
  8478. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8479. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8480. echo "_ACEOF"
  8481. } >conf$$subs.sh ||
  8482. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8483. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8484. ac_delim='%!_!# '
  8485. for ac_last_try in false false false false false :; do
  8486. . ./conf$$subs.sh ||
  8487. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8488. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8489. if test $ac_delim_n = $ac_delim_num; then
  8490. break
  8491. elif $ac_last_try; then
  8492. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8493. else
  8494. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8495. fi
  8496. done
  8497. rm -f conf$$subs.sh
  8498. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8499. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8500. _ACEOF
  8501. sed -n '
  8502. h
  8503. s/^/S["/; s/!.*/"]=/
  8504. p
  8505. g
  8506. s/^[^!]*!//
  8507. :repl
  8508. t repl
  8509. s/'"$ac_delim"'$//
  8510. t delim
  8511. :nl
  8512. h
  8513. s/\(.\{148\}\)..*/\1/
  8514. t more1
  8515. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8516. p
  8517. n
  8518. b repl
  8519. :more1
  8520. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8521. p
  8522. g
  8523. s/.\{148\}//
  8524. t nl
  8525. :delim
  8526. h
  8527. s/\(.\{148\}\)..*/\1/
  8528. t more2
  8529. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8530. p
  8531. b
  8532. :more2
  8533. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8534. p
  8535. g
  8536. s/.\{148\}//
  8537. t delim
  8538. ' <conf$$subs.awk | sed '
  8539. /^[^""]/{
  8540. N
  8541. s/\n//
  8542. }
  8543. ' >>$CONFIG_STATUS || ac_write_fail=1
  8544. rm -f conf$$subs.awk
  8545. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8546. _ACAWK
  8547. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8548. for (key in S) S_is_set[key] = 1
  8549. FS = ""
  8550. }
  8551. {
  8552. line = $ 0
  8553. nfields = split(line, field, "@")
  8554. substed = 0
  8555. len = length(field[1])
  8556. for (i = 2; i < nfields; i++) {
  8557. key = field[i]
  8558. keylen = length(key)
  8559. if (S_is_set[key]) {
  8560. value = S[key]
  8561. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8562. len += length(value) + length(field[++i])
  8563. substed = 1
  8564. } else
  8565. len += 1 + keylen
  8566. }
  8567. print line
  8568. }
  8569. _ACAWK
  8570. _ACEOF
  8571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8572. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8573. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8574. else
  8575. cat
  8576. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8577. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8578. _ACEOF
  8579. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8580. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8581. # trailing colons and then remove the whole line if VPATH becomes empty
  8582. # (actually we leave an empty line to preserve line numbers).
  8583. if test "x$srcdir" = x.; then
  8584. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8585. h
  8586. s///
  8587. s/^/:/
  8588. s/[ ]*$/:/
  8589. s/:\$(srcdir):/:/g
  8590. s/:\${srcdir}:/:/g
  8591. s/:@srcdir@:/:/g
  8592. s/^:*//
  8593. s/:*$//
  8594. x
  8595. s/\(=[ ]*\).*/\1/
  8596. G
  8597. s/\n//
  8598. s/^[^=]*=[ ]*$//
  8599. }'
  8600. fi
  8601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8602. fi # test -n "$CONFIG_FILES"
  8603. # Set up the scripts for CONFIG_HEADERS section.
  8604. # No need to generate them if there are no CONFIG_HEADERS.
  8605. # This happens for instance with `./build/config.status Makefile'.
  8606. if test -n "$CONFIG_HEADERS"; then
  8607. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8608. BEGIN {
  8609. _ACEOF
  8610. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8611. # here-document in build/config.status, that substitutes the proper values into
  8612. # config.h.in to produce config.h.
  8613. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8614. # handling of long lines.
  8615. ac_delim='%!_!# '
  8616. for ac_last_try in false false :; do
  8617. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8618. if test -z "$ac_tt"; then
  8619. break
  8620. elif $ac_last_try; then
  8621. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8622. else
  8623. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8624. fi
  8625. done
  8626. # For the awk script, D is an array of macro values keyed by name,
  8627. # likewise P contains macro parameters if any. Preserve backslash
  8628. # newline sequences.
  8629. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8630. sed -n '
  8631. s/.\{148\}/&'"$ac_delim"'/g
  8632. t rset
  8633. :rset
  8634. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8635. t def
  8636. d
  8637. :def
  8638. s/\\$//
  8639. t bsnl
  8640. s/["\\]/\\&/g
  8641. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8642. D["\1"]=" \3"/p
  8643. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8644. d
  8645. :bsnl
  8646. s/["\\]/\\&/g
  8647. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8648. D["\1"]=" \3\\\\\\n"\\/p
  8649. t cont
  8650. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8651. t cont
  8652. d
  8653. :cont
  8654. n
  8655. s/.\{148\}/&'"$ac_delim"'/g
  8656. t clear
  8657. :clear
  8658. s/\\$//
  8659. t bsnlc
  8660. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8661. d
  8662. :bsnlc
  8663. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8664. b cont
  8665. ' <build/confdefs.h | sed '
  8666. s/'"$ac_delim"'/"\\\
  8667. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8668. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8669. for (key in D) D_is_set[key] = 1
  8670. FS = ""
  8671. }
  8672. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8673. line = \$ 0
  8674. split(line, arg, " ")
  8675. if (arg[1] == "#") {
  8676. defundef = arg[2]
  8677. mac1 = arg[3]
  8678. } else {
  8679. defundef = substr(arg[1], 2)
  8680. mac1 = arg[2]
  8681. }
  8682. split(mac1, mac2, "(") #)
  8683. macro = mac2[1]
  8684. prefix = substr(line, 1, index(line, defundef) - 1)
  8685. if (D_is_set[macro]) {
  8686. # Preserve the white space surrounding the "#".
  8687. print prefix "define", macro P[macro] D[macro]
  8688. next
  8689. } else {
  8690. # Replace #undef with comments. This is necessary, for example,
  8691. # in the case of _POSIX_SOURCE, which is predefined and required
  8692. # on some systems where configure will not decide to define it.
  8693. if (defundef == "undef") {
  8694. print "/*", prefix defundef, macro, "*/"
  8695. next
  8696. }
  8697. }
  8698. }
  8699. { print }
  8700. _ACAWK
  8701. _ACEOF
  8702. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8703. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8704. fi # test -n "$CONFIG_HEADERS"
  8705. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  8706. shift
  8707. for ac_tag
  8708. do
  8709. case $ac_tag in
  8710. :[FHLC]) ac_mode=$ac_tag; continue;;
  8711. esac
  8712. case $ac_mode$ac_tag in
  8713. :[FHL]*:*);;
  8714. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8715. :[FH]-) ac_tag=-:-;;
  8716. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8717. esac
  8718. ac_save_IFS=$IFS
  8719. IFS=:
  8720. set x $ac_tag
  8721. IFS=$ac_save_IFS
  8722. shift
  8723. ac_file=$1
  8724. shift
  8725. case $ac_mode in
  8726. :L) ac_source=$1;;
  8727. :[FH])
  8728. ac_file_inputs=
  8729. for ac_f
  8730. do
  8731. case $ac_f in
  8732. -) ac_f="$ac_tmp/stdin";;
  8733. *) # Look for the file first in the build tree, then in the source tree
  8734. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8735. # because $ac_f cannot contain `:'.
  8736. test -f "$ac_f" ||
  8737. case $ac_f in
  8738. [\\/$]*) false;;
  8739. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8740. esac ||
  8741. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8742. esac
  8743. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8744. as_fn_append ac_file_inputs " '$ac_f'"
  8745. done
  8746. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8747. # use $as_me), people would be surprised to read:
  8748. # /* config.h. Generated by build/config.status. */
  8749. configure_input='Generated from '`
  8750. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8751. `' by configure.'
  8752. if test x"$ac_file" != x-; then
  8753. configure_input="$ac_file. $configure_input"
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8755. $as_echo "$as_me: creating $ac_file" >&6;}
  8756. fi
  8757. # Neutralize special characters interpreted by sed in replacement strings.
  8758. case $configure_input in #(
  8759. *\&* | *\|* | *\\* )
  8760. ac_sed_conf_input=`$as_echo "$configure_input" |
  8761. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8762. *) ac_sed_conf_input=$configure_input;;
  8763. esac
  8764. case $ac_tag in
  8765. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8766. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8767. esac
  8768. ;;
  8769. esac
  8770. ac_dir=`$as_dirname -- "$ac_file" ||
  8771. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8772. X"$ac_file" : 'X\(//\)[^/]' \| \
  8773. X"$ac_file" : 'X\(//\)$' \| \
  8774. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8775. $as_echo X"$ac_file" |
  8776. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8777. s//\1/
  8778. q
  8779. }
  8780. /^X\(\/\/\)[^/].*/{
  8781. s//\1/
  8782. q
  8783. }
  8784. /^X\(\/\/\)$/{
  8785. s//\1/
  8786. q
  8787. }
  8788. /^X\(\/\).*/{
  8789. s//\1/
  8790. q
  8791. }
  8792. s/.*/./; q'`
  8793. as_dir="$ac_dir"; as_fn_mkdir_p
  8794. ac_builddir=.
  8795. case "$ac_dir" in
  8796. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8797. *)
  8798. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8799. # A ".." for each directory in $ac_dir_suffix.
  8800. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8801. case $ac_top_builddir_sub in
  8802. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8803. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8804. esac ;;
  8805. esac
  8806. ac_abs_top_builddir=$ac_pwd
  8807. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8808. # for backward compatibility:
  8809. ac_top_builddir=$ac_top_build_prefix
  8810. case $srcdir in
  8811. .) # We are building in place.
  8812. ac_srcdir=.
  8813. ac_top_srcdir=$ac_top_builddir_sub
  8814. ac_abs_top_srcdir=$ac_pwd ;;
  8815. [\\/]* | ?:[\\/]* ) # Absolute name.
  8816. ac_srcdir=$srcdir$ac_dir_suffix;
  8817. ac_top_srcdir=$srcdir
  8818. ac_abs_top_srcdir=$srcdir ;;
  8819. *) # Relative name.
  8820. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8821. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8822. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8823. esac
  8824. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8825. case $ac_mode in
  8826. :F)
  8827. #
  8828. # CONFIG_FILE
  8829. #
  8830. _ACEOF
  8831. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8832. # If the template does not know about datarootdir, expand it.
  8833. # FIXME: This hack should be removed a few years after 2.60.
  8834. ac_datarootdir_hack=; ac_datarootdir_seen=
  8835. ac_sed_dataroot='
  8836. /datarootdir/ {
  8837. p
  8838. q
  8839. }
  8840. /@datadir@/p
  8841. /@docdir@/p
  8842. /@infodir@/p
  8843. /@localedir@/p
  8844. /@mandir@/p'
  8845. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8846. *datarootdir*) ac_datarootdir_seen=yes;;
  8847. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8849. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8850. _ACEOF
  8851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8852. ac_datarootdir_hack='
  8853. s&@datadir@&$datadir&g
  8854. s&@docdir@&$docdir&g
  8855. s&@infodir@&$infodir&g
  8856. s&@localedir@&$localedir&g
  8857. s&@mandir@&$mandir&g
  8858. s&\\\${datarootdir}&$datarootdir&g' ;;
  8859. esac
  8860. _ACEOF
  8861. # Neutralize VPATH when `$srcdir' = `.'.
  8862. # Shell code in configure.ac might set extrasub.
  8863. # FIXME: do we really want to maintain this feature?
  8864. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8865. ac_sed_extra="$ac_vpsub
  8866. $extrasub
  8867. _ACEOF
  8868. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8869. :t
  8870. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8871. s|@configure_input@|$ac_sed_conf_input|;t t
  8872. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8873. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8874. s&@srcdir@&$ac_srcdir&;t t
  8875. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8876. s&@top_srcdir@&$ac_top_srcdir&;t t
  8877. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8878. s&@builddir@&$ac_builddir&;t t
  8879. s&@abs_builddir@&$ac_abs_builddir&;t t
  8880. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8881. $ac_datarootdir_hack
  8882. "
  8883. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8884. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8885. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8886. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8887. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8888. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8890. which seems to be undefined. Please make sure it is defined" >&5
  8891. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8892. which seems to be undefined. Please make sure it is defined" >&2;}
  8893. rm -f "$ac_tmp/stdin"
  8894. case $ac_file in
  8895. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8896. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8897. esac \
  8898. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8899. ;;
  8900. :H)
  8901. #
  8902. # CONFIG_HEADER
  8903. #
  8904. if test x"$ac_file" != x-; then
  8905. {
  8906. $as_echo "/* $configure_input */" \
  8907. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8908. } >"$ac_tmp/config.h" \
  8909. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8910. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8912. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8913. else
  8914. rm -f "$ac_file"
  8915. mv "$ac_tmp/config.h" "$ac_file" \
  8916. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8917. fi
  8918. else
  8919. $as_echo "/* $configure_input */" \
  8920. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8921. || as_fn_error $? "could not create -" "$LINENO" 5
  8922. fi
  8923. ;;
  8924. esac
  8925. done # for ac_tag
  8926. as_fn_exit 0
  8927. _ACEOF
  8928. ac_clean_files=$ac_clean_files_save
  8929. test $ac_write_fail = 0 ||
  8930. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8931. # configure is writing to build/config.log, and then calls build/config.status.
  8932. # build/config.status does its own redirection, appending to build/config.log.
  8933. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  8934. # by configure, so build/config.status won't be able to write to it; its
  8935. # output is simply discarded. So we exec the FD to /dev/null,
  8936. # effectively closing build/config.log, so it can be properly (re)opened and
  8937. # appended to by build/config.status. When coming back to configure, we
  8938. # need to make the FD available again.
  8939. if test "$no_create" != yes; then
  8940. ac_cs_success=:
  8941. ac_config_status_args=
  8942. test "$silent" = yes &&
  8943. ac_config_status_args="$ac_config_status_args --quiet"
  8944. exec 5>/dev/null
  8945. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8946. exec 5>>build/config.log
  8947. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8948. # would make configure fail if this is the last instruction.
  8949. $ac_cs_success || as_fn_exit 1
  8950. fi
  8951. #
  8952. # CONFIG_SUBDIRS section.
  8953. #
  8954. if test "$no_recursion" != yes; then
  8955. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  8956. # so they do not pile up.
  8957. ac_sub_configure_args=
  8958. ac_prev=
  8959. eval "set x $ac_configure_args"
  8960. shift
  8961. for ac_arg
  8962. do
  8963. if test -n "$ac_prev"; then
  8964. ac_prev=
  8965. continue
  8966. fi
  8967. case $ac_arg in
  8968. -cache-file | --cache-file | --cache-fil | --cache-fi \
  8969. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  8970. ac_prev=cache_file ;;
  8971. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  8972. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  8973. | --c=*)
  8974. ;;
  8975. --config-cache | -C)
  8976. ;;
  8977. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  8978. ac_prev=srcdir ;;
  8979. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  8980. ;;
  8981. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  8982. ac_prev=prefix ;;
  8983. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  8984. ;;
  8985. --disable-option-checking)
  8986. ;;
  8987. *)
  8988. case $ac_arg in
  8989. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8990. esac
  8991. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  8992. esac
  8993. done
  8994. # Always prepend --prefix to ensure using the same prefix
  8995. # in subdir configurations.
  8996. ac_arg="--prefix=$prefix"
  8997. case $ac_arg in
  8998. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8999. esac
  9000. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9001. # Pass --silent
  9002. if test "$silent" = yes; then
  9003. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9004. fi
  9005. # Always prepend --disable-option-checking to silence warnings, since
  9006. # different subdirs can have different --enable and --with options.
  9007. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9008. ac_popdir=`pwd`
  9009. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9010. # Do not complain, so a configure script can configure whichever
  9011. # parts of a large source tree are present.
  9012. test -d "$srcdir/$ac_dir" || continue
  9013. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9014. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9015. $as_echo "$ac_msg" >&6
  9016. as_dir="$ac_dir"; as_fn_mkdir_p
  9017. ac_builddir=.
  9018. case "$ac_dir" in
  9019. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9020. *)
  9021. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9022. # A ".." for each directory in $ac_dir_suffix.
  9023. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9024. case $ac_top_builddir_sub in
  9025. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9026. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9027. esac ;;
  9028. esac
  9029. ac_abs_top_builddir=$ac_pwd
  9030. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9031. # for backward compatibility:
  9032. ac_top_builddir=$ac_top_build_prefix
  9033. case $srcdir in
  9034. .) # We are building in place.
  9035. ac_srcdir=.
  9036. ac_top_srcdir=$ac_top_builddir_sub
  9037. ac_abs_top_srcdir=$ac_pwd ;;
  9038. [\\/]* | ?:[\\/]* ) # Absolute name.
  9039. ac_srcdir=$srcdir$ac_dir_suffix;
  9040. ac_top_srcdir=$srcdir
  9041. ac_abs_top_srcdir=$srcdir ;;
  9042. *) # Relative name.
  9043. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9044. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9045. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9046. esac
  9047. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9048. cd "$ac_dir"
  9049. # Check for guested configure; otherwise get Cygnus style configure.
  9050. if test -f "$ac_srcdir/configure.gnu"; then
  9051. ac_sub_configure=$ac_srcdir/configure.gnu
  9052. elif test -f "$ac_srcdir/configure"; then
  9053. ac_sub_configure=$ac_srcdir/configure
  9054. elif test -f "$ac_srcdir/configure.in"; then
  9055. # This should be Cygnus configure.
  9056. ac_sub_configure=$ac_aux_dir/configure
  9057. else
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9059. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9060. ac_sub_configure=
  9061. fi
  9062. # The recursion is here.
  9063. if test -n "$ac_sub_configure"; then
  9064. # Make the cache file name correct relative to the subdirectory.
  9065. case $cache_file in
  9066. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9067. *) # Relative name.
  9068. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9069. esac
  9070. { $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
  9071. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9072. # The eval makes quoting arguments work.
  9073. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9074. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9075. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9076. fi
  9077. cd "$ac_popdir"
  9078. done
  9079. fi
  9080. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9082. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9083. fi
  9084. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9085. SED="$SED" src/generate_defs.sh || exit 1