configure 267 KB

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