configure 246 KB

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