configure 269 KB

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