configure 398 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.63.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. #
  11. # Copyright (c) 2003, 2004 Bryan Drewery
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  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. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='printf %s\n'
  45. as_echo_n='printf %s'
  46. else
  47. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  48. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  49. as_echo_n='/usr/ucb/echo -n'
  50. else
  51. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  52. as_echo_n_body='eval
  53. arg=$1;
  54. case $arg in
  55. *"$as_nl"*)
  56. expr "X$arg" : "X\\(.*\\)$as_nl";
  57. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  58. esac;
  59. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  60. '
  61. export as_echo_n_body
  62. as_echo_n='sh -c $as_echo_n_body as_echo'
  63. fi
  64. export as_echo_body
  65. as_echo='sh -c $as_echo_body as_echo'
  66. fi
  67. # The user is always right.
  68. if test "${PATH_SEPARATOR+set}" != set; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Support unset when possible.
  76. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  77. as_unset=unset
  78. else
  79. as_unset=false
  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); exit 1; }
  108. fi
  109. # Work around bugs in pre-3.0 UWIN ksh.
  110. for as_var in ENV MAIL MAILPATH
  111. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # Required to use basename.
  122. if expr a : '\(a\)' >/dev/null 2>&1 &&
  123. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  124. as_expr=expr
  125. else
  126. as_expr=false
  127. fi
  128. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  129. as_basename=basename
  130. else
  131. as_basename=false
  132. fi
  133. # Name of the executable.
  134. as_me=`$as_basename -- "$0" ||
  135. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  136. X"$0" : 'X\(//\)$' \| \
  137. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  138. $as_echo X/"$0" |
  139. sed '/^.*\/\([^/][^/]*\)\/*$/{
  140. s//\1/
  141. q
  142. }
  143. /^X\/\(\/\/\)$/{
  144. s//\1/
  145. q
  146. }
  147. /^X\/\(\/\).*/{
  148. s//\1/
  149. q
  150. }
  151. s/.*/./; q'`
  152. # CDPATH.
  153. $as_unset CDPATH
  154. if test "x$CONFIG_SHELL" = x; then
  155. if (eval ":") 2>/dev/null; then
  156. as_have_required=yes
  157. else
  158. as_have_required=no
  159. fi
  160. if test $as_have_required = yes && (eval ":
  161. (as_func_return () {
  162. (exit \$1)
  163. }
  164. as_func_success () {
  165. as_func_return 0
  166. }
  167. as_func_failure () {
  168. as_func_return 1
  169. }
  170. as_func_ret_success () {
  171. return 0
  172. }
  173. as_func_ret_failure () {
  174. return 1
  175. }
  176. exitcode=0
  177. if as_func_success; then
  178. :
  179. else
  180. exitcode=1
  181. echo as_func_success failed.
  182. fi
  183. if as_func_failure; then
  184. exitcode=1
  185. echo as_func_failure succeeded.
  186. fi
  187. if as_func_ret_success; then
  188. :
  189. else
  190. exitcode=1
  191. echo as_func_ret_success failed.
  192. fi
  193. if as_func_ret_failure; then
  194. exitcode=1
  195. echo as_func_ret_failure succeeded.
  196. fi
  197. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  198. :
  199. else
  200. exitcode=1
  201. echo positional parameters were not saved.
  202. fi
  203. test \$exitcode = 0) || { (exit 1); exit 1; }
  204. (
  205. as_lineno_1=\$LINENO
  206. as_lineno_2=\$LINENO
  207. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  208. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  209. ") 2> /dev/null; then
  210. :
  211. else
  212. as_candidate_shells=
  213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  214. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  215. do
  216. IFS=$as_save_IFS
  217. test -z "$as_dir" && as_dir=.
  218. case $as_dir in
  219. /*)
  220. for as_base in sh bash ksh sh5; do
  221. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  222. done;;
  223. esac
  224. done
  225. IFS=$as_save_IFS
  226. for as_shell in $as_candidate_shells $SHELL; do
  227. # Try only shells that exist, to save several forks.
  228. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  229. { ("$as_shell") 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. _ASEOF
  244. }; then
  245. CONFIG_SHELL=$as_shell
  246. as_have_required=yes
  247. if { "$as_shell" 2> /dev/null <<\_ASEOF
  248. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  249. emulate sh
  250. NULLCMD=:
  251. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  252. # is contrary to our usage. Disable this feature.
  253. alias -g '${1+"$@"}'='"$@"'
  254. setopt NO_GLOB_SUBST
  255. else
  256. case `(set -o) 2>/dev/null` in
  257. *posix*) set -o posix ;;
  258. esac
  259. fi
  260. :
  261. (as_func_return () {
  262. (exit $1)
  263. }
  264. as_func_success () {
  265. as_func_return 0
  266. }
  267. as_func_failure () {
  268. as_func_return 1
  269. }
  270. as_func_ret_success () {
  271. return 0
  272. }
  273. as_func_ret_failure () {
  274. return 1
  275. }
  276. exitcode=0
  277. if as_func_success; then
  278. :
  279. else
  280. exitcode=1
  281. echo as_func_success failed.
  282. fi
  283. if as_func_failure; then
  284. exitcode=1
  285. echo as_func_failure succeeded.
  286. fi
  287. if as_func_ret_success; then
  288. :
  289. else
  290. exitcode=1
  291. echo as_func_ret_success failed.
  292. fi
  293. if as_func_ret_failure; then
  294. exitcode=1
  295. echo as_func_ret_failure succeeded.
  296. fi
  297. if ( set x; as_func_ret_success y && test x = "$1" ); then
  298. :
  299. else
  300. exitcode=1
  301. echo positional parameters were not saved.
  302. fi
  303. test $exitcode = 0) || { (exit 1); exit 1; }
  304. (
  305. as_lineno_1=$LINENO
  306. as_lineno_2=$LINENO
  307. test "x$as_lineno_1" != "x$as_lineno_2" &&
  308. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  309. _ASEOF
  310. }; then
  311. break
  312. fi
  313. fi
  314. done
  315. if test "x$CONFIG_SHELL" != x; then
  316. for as_var in BASH_ENV ENV
  317. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  318. done
  319. export CONFIG_SHELL
  320. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  321. fi
  322. if test $as_have_required = no; then
  323. echo This script requires a shell more modern than all the
  324. echo shells that I found on your system. Please install a
  325. echo modern shell, or manually run the script under such a
  326. echo shell if you do have one.
  327. { (exit 1); exit 1; }
  328. fi
  329. fi
  330. fi
  331. (eval "as_func_return () {
  332. (exit \$1)
  333. }
  334. as_func_success () {
  335. as_func_return 0
  336. }
  337. as_func_failure () {
  338. as_func_return 1
  339. }
  340. as_func_ret_success () {
  341. return 0
  342. }
  343. as_func_ret_failure () {
  344. return 1
  345. }
  346. exitcode=0
  347. if as_func_success; then
  348. :
  349. else
  350. exitcode=1
  351. echo as_func_success failed.
  352. fi
  353. if as_func_failure; then
  354. exitcode=1
  355. echo as_func_failure succeeded.
  356. fi
  357. if as_func_ret_success; then
  358. :
  359. else
  360. exitcode=1
  361. echo as_func_ret_success failed.
  362. fi
  363. if as_func_ret_failure; then
  364. exitcode=1
  365. echo as_func_ret_failure succeeded.
  366. fi
  367. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  368. :
  369. else
  370. exitcode=1
  371. echo positional parameters were not saved.
  372. fi
  373. test \$exitcode = 0") || {
  374. echo No shell found that supports shell functions.
  375. echo Please tell bug-autoconf@gnu.org about your system,
  376. echo including any error possibly output before this message.
  377. echo This can help us improve future autoconf versions.
  378. echo Configuration will now proceed without shell functions.
  379. }
  380. as_lineno_1=$LINENO
  381. as_lineno_2=$LINENO
  382. test "x$as_lineno_1" != "x$as_lineno_2" &&
  383. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  384. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  385. # uniformly replaced by the line number. The first 'sed' inserts a
  386. # line-number line after each line using $LINENO; the second 'sed'
  387. # does the real work. The second script uses 'N' to pair each
  388. # line-number line with the line containing $LINENO, and appends
  389. # trailing '-' during substitution so that $LINENO is not a special
  390. # case at line end.
  391. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  392. # scripts with optimization help from Paolo Bonzini. Blame Lee
  393. # 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
  411. { (exit 1); exit 1; }; }
  412. # Don't try to exec as it changes $[0], causing all sort of problems
  413. # (the dirname of $[0] is not the place where we might find the
  414. # original and so on. Autoconf is especially sensitive to this).
  415. . "./$as_me.lineno"
  416. # Exit status is that of the last command.
  417. exit
  418. }
  419. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  420. as_dirname=dirname
  421. else
  422. as_dirname=false
  423. fi
  424. ECHO_C= ECHO_N= ECHO_T=
  425. case `echo -n x` in
  426. -n*)
  427. case `echo 'x\c'` in
  428. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  429. *) ECHO_C='\c';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. if expr a : '\(a\)' >/dev/null 2>&1 &&
  435. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  436. as_expr=expr
  437. else
  438. as_expr=false
  439. fi
  440. rm -f conf$$ conf$$.exe conf$$.file
  441. if test -d conf$$.dir; then
  442. rm -f conf$$.dir/conf$$.file
  443. else
  444. rm -f conf$$.dir
  445. mkdir conf$$.dir 2>/dev/null
  446. fi
  447. if (echo >conf$$.file) 2>/dev/null; then
  448. if ln -s conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s='ln -s'
  450. # ... but there are two gotchas:
  451. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  452. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  453. # In both cases, we have to default to `cp -p'.
  454. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  455. as_ln_s='cp -p'
  456. elif ln conf$$.file conf$$ 2>/dev/null; then
  457. as_ln_s=ln
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. else
  462. as_ln_s='cp -p'
  463. fi
  464. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  465. rmdir conf$$.dir 2>/dev/null
  466. if mkdir -p . 2>/dev/null; then
  467. as_mkdir_p=:
  468. else
  469. test -d ./-p && rmdir ./-p
  470. as_mkdir_p=false
  471. fi
  472. if test -x / >/dev/null 2>&1; then
  473. as_test_x='test -x'
  474. else
  475. if ls -dL / >/dev/null 2>&1; then
  476. as_ls_L_option=L
  477. else
  478. as_ls_L_option=
  479. fi
  480. as_test_x='
  481. eval sh -c '\''
  482. if test -d "$1"; then
  483. test -d "$1/.";
  484. else
  485. case $1 in
  486. -*)set "./$1";;
  487. esac;
  488. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  489. ???[sx]*):;;*)false;;esac;fi
  490. '\'' sh
  491. '
  492. fi
  493. as_executable_p=$as_test_x
  494. # Sed expression to map a string onto a valid CPP name.
  495. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  496. # Sed expression to map a string onto a valid variable name.
  497. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  498. exec 7<&0 </dev/null 6>&1
  499. # Name of the host.
  500. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  501. # so uname gets run too.
  502. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  503. #
  504. # Initializations.
  505. #
  506. ac_default_prefix=/usr/local
  507. ac_clean_files=
  508. ac_config_libobj_dir=.
  509. LIBOBJS=
  510. cross_compiling=no
  511. subdirs=
  512. MFLAGS=
  513. MAKEFLAGS=
  514. SHELL=${CONFIG_SHELL-/bin/sh}
  515. # Identity of this package.
  516. PACKAGE_NAME=
  517. PACKAGE_TARNAME=
  518. PACKAGE_VERSION=
  519. PACKAGE_STRING=
  520. PACKAGE_BUGREPORT=
  521. ac_unique_file="wraith"
  522. ac_unique_file="src/eggdrop.h"
  523. # Factoring default headers for most tests.
  524. ac_includes_default="\
  525. #include <stdio.h>
  526. #ifdef HAVE_SYS_TYPES_H
  527. # include <sys/types.h>
  528. #endif
  529. #ifdef HAVE_SYS_STAT_H
  530. # include <sys/stat.h>
  531. #endif
  532. #ifdef STDC_HEADERS
  533. # include <stdlib.h>
  534. # include <stddef.h>
  535. #else
  536. # ifdef HAVE_STDLIB_H
  537. # include <stdlib.h>
  538. # endif
  539. #endif
  540. #ifdef HAVE_STRING_H
  541. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  542. # include <memory.h>
  543. # endif
  544. # include <string.h>
  545. #endif
  546. #ifdef HAVE_STRINGS_H
  547. # include <strings.h>
  548. #endif
  549. #ifdef HAVE_INTTYPES_H
  550. # include <inttypes.h>
  551. #endif
  552. #ifdef HAVE_STDINT_H
  553. # include <stdint.h>
  554. #endif
  555. #ifdef HAVE_UNISTD_H
  556. # include <unistd.h>
  557. #endif"
  558. ac_header_list=
  559. ac_func_list=
  560. ac_subst_vars='LTLIBOBJS
  561. MOD_UPDIR
  562. NUMVER
  563. VERSION
  564. LIBOBJS
  565. CCDEBUG
  566. BUILDARCH
  567. BUILDOS
  568. DISTCC
  569. CCACHE
  570. UNAME
  571. DIFF
  572. STRIP
  573. OBJCOPY
  574. BASENAME
  575. AWK
  576. HEAD_1
  577. SET_MAKE
  578. GCC4DEB
  579. GCC3DEB
  580. GCC3
  581. CCDEPMODE
  582. EGREP
  583. GREP
  584. CXXCPP
  585. OBJEXT
  586. EXEEXT
  587. ac_ct_CXX
  588. CPPFLAGS
  589. LDFLAGS
  590. CXXFLAGS
  591. CXX
  592. egg_ac_parameters
  593. target_alias
  594. host_alias
  595. build_alias
  596. LIBS
  597. ECHO_T
  598. ECHO_N
  599. ECHO_C
  600. DEFS
  601. mandir
  602. localedir
  603. libdir
  604. psdir
  605. pdfdir
  606. dvidir
  607. htmldir
  608. infodir
  609. docdir
  610. oldincludedir
  611. includedir
  612. localstatedir
  613. sharedstatedir
  614. sysconfdir
  615. datadir
  616. datarootdir
  617. libexecdir
  618. sbindir
  619. bindir
  620. program_transform_name
  621. prefix
  622. exec_prefix
  623. PACKAGE_BUGREPORT
  624. PACKAGE_STRING
  625. PACKAGE_VERSION
  626. PACKAGE_TARNAME
  627. PACKAGE_NAME
  628. PATH_SEPARATOR
  629. SHELL'
  630. ac_subst_files=''
  631. ac_user_opts='
  632. enable_option_checking
  633. enable_ipv6
  634. '
  635. ac_precious_vars='build_alias
  636. host_alias
  637. target_alias
  638. CXX
  639. CXXFLAGS
  640. LDFLAGS
  641. LIBS
  642. CPPFLAGS
  643. CCC
  644. CXXCPP'
  645. # Initialize some variables set by options.
  646. ac_init_help=
  647. ac_init_version=false
  648. ac_unrecognized_opts=
  649. ac_unrecognized_sep=
  650. # The variables have the same names as the options, with
  651. # dashes changed to underlines.
  652. cache_file=./config.cache
  653. exec_prefix=NONE
  654. no_create=
  655. no_recursion=
  656. prefix=NONE
  657. program_prefix=NONE
  658. program_suffix=NONE
  659. program_transform_name=s,x,x,
  660. silent=
  661. site=
  662. srcdir=
  663. verbose=
  664. x_includes=NONE
  665. x_libraries=NONE
  666. # Installation directory options.
  667. # These are left unexpanded so users can "make install exec_prefix=/foo"
  668. # and all the variables that are supposed to be based on exec_prefix
  669. # by default will actually change.
  670. # Use braces instead of parens because sh, perl, etc. also accept them.
  671. # (The list follows the same order as the GNU Coding Standards.)
  672. bindir='${exec_prefix}/bin'
  673. sbindir='${exec_prefix}/sbin'
  674. libexecdir='${exec_prefix}/libexec'
  675. datarootdir='${prefix}/share'
  676. datadir='${datarootdir}'
  677. sysconfdir='${prefix}/etc'
  678. sharedstatedir='${prefix}/com'
  679. localstatedir='${prefix}/var'
  680. includedir='${prefix}/include'
  681. oldincludedir='/usr/include'
  682. docdir='${datarootdir}/doc/${PACKAGE}'
  683. infodir='${datarootdir}/info'
  684. htmldir='${docdir}'
  685. dvidir='${docdir}'
  686. pdfdir='${docdir}'
  687. psdir='${docdir}'
  688. libdir='${exec_prefix}/lib'
  689. localedir='${datarootdir}/locale'
  690. mandir='${datarootdir}/man'
  691. ac_prev=
  692. ac_dashdash=
  693. for ac_option
  694. do
  695. # If the previous option needs an argument, assign it.
  696. if test -n "$ac_prev"; then
  697. eval $ac_prev=\$ac_option
  698. ac_prev=
  699. continue
  700. fi
  701. case $ac_option in
  702. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  703. *) ac_optarg=yes ;;
  704. esac
  705. # Accept the important Cygnus configure options, so we can diagnose typos.
  706. case $ac_dashdash$ac_option in
  707. --)
  708. ac_dashdash=yes ;;
  709. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  710. ac_prev=bindir ;;
  711. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  712. bindir=$ac_optarg ;;
  713. -build | --build | --buil | --bui | --bu)
  714. ac_prev=build_alias ;;
  715. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  716. build_alias=$ac_optarg ;;
  717. -cache-file | --cache-file | --cache-fil | --cache-fi \
  718. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  719. ac_prev=cache_file ;;
  720. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  721. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  722. cache_file=$ac_optarg ;;
  723. --config-cache | -C)
  724. cache_file=config.cache ;;
  725. -datadir | --datadir | --datadi | --datad)
  726. ac_prev=datadir ;;
  727. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  728. datadir=$ac_optarg ;;
  729. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  730. | --dataroo | --dataro | --datar)
  731. ac_prev=datarootdir ;;
  732. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  733. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  734. datarootdir=$ac_optarg ;;
  735. -disable-* | --disable-*)
  736. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  737. # Reject names that are not valid shell variable names.
  738. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  739. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  740. { (exit 1); exit 1; }; }
  741. ac_useropt_orig=$ac_useropt
  742. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  743. case $ac_user_opts in
  744. *"
  745. "enable_$ac_useropt"
  746. "*) ;;
  747. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  748. ac_unrecognized_sep=', ';;
  749. esac
  750. eval enable_$ac_useropt=no ;;
  751. -docdir | --docdir | --docdi | --doc | --do)
  752. ac_prev=docdir ;;
  753. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  754. docdir=$ac_optarg ;;
  755. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  756. ac_prev=dvidir ;;
  757. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  758. dvidir=$ac_optarg ;;
  759. -enable-* | --enable-*)
  760. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  761. # Reject names that are not valid shell variable names.
  762. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  763. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  764. { (exit 1); exit 1; }; }
  765. ac_useropt_orig=$ac_useropt
  766. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  767. case $ac_user_opts in
  768. *"
  769. "enable_$ac_useropt"
  770. "*) ;;
  771. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  772. ac_unrecognized_sep=', ';;
  773. esac
  774. eval enable_$ac_useropt=\$ac_optarg ;;
  775. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  776. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  777. | --exec | --exe | --ex)
  778. ac_prev=exec_prefix ;;
  779. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  780. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  781. | --exec=* | --exe=* | --ex=*)
  782. exec_prefix=$ac_optarg ;;
  783. -gas | --gas | --ga | --g)
  784. # Obsolete; use --with-gas.
  785. with_gas=yes ;;
  786. -help | --help | --hel | --he | -h)
  787. ac_init_help=long ;;
  788. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  789. ac_init_help=recursive ;;
  790. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  791. ac_init_help=short ;;
  792. -host | --host | --hos | --ho)
  793. ac_prev=host_alias ;;
  794. -host=* | --host=* | --hos=* | --ho=*)
  795. host_alias=$ac_optarg ;;
  796. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  797. ac_prev=htmldir ;;
  798. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  799. | --ht=*)
  800. htmldir=$ac_optarg ;;
  801. -includedir | --includedir | --includedi | --included | --include \
  802. | --includ | --inclu | --incl | --inc)
  803. ac_prev=includedir ;;
  804. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  805. | --includ=* | --inclu=* | --incl=* | --inc=*)
  806. includedir=$ac_optarg ;;
  807. -infodir | --infodir | --infodi | --infod | --info | --inf)
  808. ac_prev=infodir ;;
  809. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  810. infodir=$ac_optarg ;;
  811. -libdir | --libdir | --libdi | --libd)
  812. ac_prev=libdir ;;
  813. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  814. libdir=$ac_optarg ;;
  815. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  816. | --libexe | --libex | --libe)
  817. ac_prev=libexecdir ;;
  818. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  819. | --libexe=* | --libex=* | --libe=*)
  820. libexecdir=$ac_optarg ;;
  821. -localedir | --localedir | --localedi | --localed | --locale)
  822. ac_prev=localedir ;;
  823. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  824. localedir=$ac_optarg ;;
  825. -localstatedir | --localstatedir | --localstatedi | --localstated \
  826. | --localstate | --localstat | --localsta | --localst | --locals)
  827. ac_prev=localstatedir ;;
  828. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  829. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  830. localstatedir=$ac_optarg ;;
  831. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  832. ac_prev=mandir ;;
  833. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  834. mandir=$ac_optarg ;;
  835. -nfp | --nfp | --nf)
  836. # Obsolete; use --without-fp.
  837. with_fp=no ;;
  838. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  839. | --no-cr | --no-c | -n)
  840. no_create=yes ;;
  841. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  842. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  843. no_recursion=yes ;;
  844. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  845. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  846. | --oldin | --oldi | --old | --ol | --o)
  847. ac_prev=oldincludedir ;;
  848. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  849. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  850. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  851. oldincludedir=$ac_optarg ;;
  852. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  853. ac_prev=prefix ;;
  854. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  855. prefix=$ac_optarg ;;
  856. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  857. | --program-pre | --program-pr | --program-p)
  858. ac_prev=program_prefix ;;
  859. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  860. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  861. program_prefix=$ac_optarg ;;
  862. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  863. | --program-suf | --program-su | --program-s)
  864. ac_prev=program_suffix ;;
  865. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  866. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  867. program_suffix=$ac_optarg ;;
  868. -program-transform-name | --program-transform-name \
  869. | --program-transform-nam | --program-transform-na \
  870. | --program-transform-n | --program-transform- \
  871. | --program-transform | --program-transfor \
  872. | --program-transfo | --program-transf \
  873. | --program-trans | --program-tran \
  874. | --progr-tra | --program-tr | --program-t)
  875. ac_prev=program_transform_name ;;
  876. -program-transform-name=* | --program-transform-name=* \
  877. | --program-transform-nam=* | --program-transform-na=* \
  878. | --program-transform-n=* | --program-transform-=* \
  879. | --program-transform=* | --program-transfor=* \
  880. | --program-transfo=* | --program-transf=* \
  881. | --program-trans=* | --program-tran=* \
  882. | --progr-tra=* | --program-tr=* | --program-t=*)
  883. program_transform_name=$ac_optarg ;;
  884. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  885. ac_prev=pdfdir ;;
  886. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  887. pdfdir=$ac_optarg ;;
  888. -psdir | --psdir | --psdi | --psd | --ps)
  889. ac_prev=psdir ;;
  890. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  891. psdir=$ac_optarg ;;
  892. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  893. | -silent | --silent | --silen | --sile | --sil)
  894. silent=yes ;;
  895. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  896. ac_prev=sbindir ;;
  897. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  898. | --sbi=* | --sb=*)
  899. sbindir=$ac_optarg ;;
  900. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  901. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  902. | --sharedst | --shareds | --shared | --share | --shar \
  903. | --sha | --sh)
  904. ac_prev=sharedstatedir ;;
  905. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  906. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  907. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  908. | --sha=* | --sh=*)
  909. sharedstatedir=$ac_optarg ;;
  910. -site | --site | --sit)
  911. ac_prev=site ;;
  912. -site=* | --site=* | --sit=*)
  913. site=$ac_optarg ;;
  914. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  915. ac_prev=srcdir ;;
  916. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  917. srcdir=$ac_optarg ;;
  918. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  919. | --syscon | --sysco | --sysc | --sys | --sy)
  920. ac_prev=sysconfdir ;;
  921. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  922. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  923. sysconfdir=$ac_optarg ;;
  924. -target | --target | --targe | --targ | --tar | --ta | --t)
  925. ac_prev=target_alias ;;
  926. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  927. target_alias=$ac_optarg ;;
  928. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  929. verbose=yes ;;
  930. -version | --version | --versio | --versi | --vers | -V)
  931. ac_init_version=: ;;
  932. -with-* | --with-*)
  933. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  934. # Reject names that are not valid shell variable names.
  935. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  936. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  937. { (exit 1); exit 1; }; }
  938. ac_useropt_orig=$ac_useropt
  939. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  940. case $ac_user_opts in
  941. *"
  942. "with_$ac_useropt"
  943. "*) ;;
  944. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  945. ac_unrecognized_sep=', ';;
  946. esac
  947. eval with_$ac_useropt=\$ac_optarg ;;
  948. -without-* | --without-*)
  949. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  950. # Reject names that are not valid shell variable names.
  951. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  952. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  953. { (exit 1); exit 1; }; }
  954. ac_useropt_orig=$ac_useropt
  955. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  956. case $ac_user_opts in
  957. *"
  958. "with_$ac_useropt"
  959. "*) ;;
  960. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  961. ac_unrecognized_sep=', ';;
  962. esac
  963. eval with_$ac_useropt=no ;;
  964. --x)
  965. # Obsolete; use --with-x.
  966. with_x=yes ;;
  967. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  968. | --x-incl | --x-inc | --x-in | --x-i)
  969. ac_prev=x_includes ;;
  970. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  971. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  972. x_includes=$ac_optarg ;;
  973. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  974. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  975. ac_prev=x_libraries ;;
  976. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  977. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  978. x_libraries=$ac_optarg ;;
  979. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  980. Try \`$0 --help' for more information." >&2
  981. { (exit 1); exit 1; }; }
  982. ;;
  983. *=*)
  984. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  985. # Reject names that are not valid shell variable names.
  986. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  987. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  988. { (exit 1); exit 1; }; }
  989. eval $ac_envvar=\$ac_optarg
  990. export $ac_envvar ;;
  991. *)
  992. # FIXME: should be removed in autoconf 3.0.
  993. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  994. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  995. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  996. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  997. ;;
  998. esac
  999. done
  1000. if test -n "$ac_prev"; then
  1001. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1002. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1003. { (exit 1); exit 1; }; }
  1004. fi
  1005. if test -n "$ac_unrecognized_opts"; then
  1006. case $enable_option_checking in
  1007. no) ;;
  1008. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1009. { (exit 1); exit 1; }; } ;;
  1010. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1011. esac
  1012. fi
  1013. # Check all directory arguments for consistency.
  1014. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1015. datadir sysconfdir sharedstatedir localstatedir includedir \
  1016. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1017. libdir localedir mandir
  1018. do
  1019. eval ac_val=\$$ac_var
  1020. # Remove trailing slashes.
  1021. case $ac_val in
  1022. */ )
  1023. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1024. eval $ac_var=\$ac_val;;
  1025. esac
  1026. # Be sure to have absolute directory names.
  1027. case $ac_val in
  1028. [\\/$]* | ?:[\\/]* ) continue;;
  1029. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1030. esac
  1031. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1032. { (exit 1); exit 1; }; }
  1033. done
  1034. # There might be people who depend on the old broken behavior: `$host'
  1035. # used to hold the argument of --host etc.
  1036. # FIXME: To remove some day.
  1037. build=$build_alias
  1038. host=$host_alias
  1039. target=$target_alias
  1040. # FIXME: To remove some day.
  1041. if test "x$host_alias" != x; then
  1042. if test "x$build_alias" = x; then
  1043. cross_compiling=maybe
  1044. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1045. If a cross compiler is detected then cross compile mode will be used." >&2
  1046. elif test "x$build_alias" != "x$host_alias"; then
  1047. cross_compiling=yes
  1048. fi
  1049. fi
  1050. ac_tool_prefix=
  1051. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1052. test "$silent" = yes && exec 6>/dev/null
  1053. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1054. ac_ls_di=`ls -di .` &&
  1055. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1056. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1057. { (exit 1); exit 1; }; }
  1058. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1059. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1060. { (exit 1); exit 1; }; }
  1061. # Find the source files, if location was not specified.
  1062. if test -z "$srcdir"; then
  1063. ac_srcdir_defaulted=yes
  1064. # Try the directory containing this script, then the parent directory.
  1065. ac_confdir=`$as_dirname -- "$as_myself" ||
  1066. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1067. X"$as_myself" : 'X\(//\)[^/]' \| \
  1068. X"$as_myself" : 'X\(//\)$' \| \
  1069. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1070. $as_echo X"$as_myself" |
  1071. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1072. s//\1/
  1073. q
  1074. }
  1075. /^X\(\/\/\)[^/].*/{
  1076. s//\1/
  1077. q
  1078. }
  1079. /^X\(\/\/\)$/{
  1080. s//\1/
  1081. q
  1082. }
  1083. /^X\(\/\).*/{
  1084. s//\1/
  1085. q
  1086. }
  1087. s/.*/./; q'`
  1088. srcdir=$ac_confdir
  1089. if test ! -r "$srcdir/$ac_unique_file"; then
  1090. srcdir=..
  1091. fi
  1092. else
  1093. ac_srcdir_defaulted=no
  1094. fi
  1095. if test ! -r "$srcdir/$ac_unique_file"; then
  1096. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1097. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1098. { (exit 1); exit 1; }; }
  1099. fi
  1100. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1101. ac_abs_confdir=`(
  1102. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1103. { (exit 1); exit 1; }; }
  1104. pwd)`
  1105. # When building in place, set srcdir=.
  1106. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1107. srcdir=.
  1108. fi
  1109. # Remove unnecessary trailing slashes from srcdir.
  1110. # Double slashes in file names in object file debugging info
  1111. # mess up M-x gdb in Emacs.
  1112. case $srcdir in
  1113. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1114. esac
  1115. for ac_var in $ac_precious_vars; do
  1116. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1117. eval ac_env_${ac_var}_value=\$${ac_var}
  1118. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1119. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1120. done
  1121. #
  1122. # Report the --help message.
  1123. #
  1124. if test "$ac_init_help" = "long"; then
  1125. # Omit some internal or obsolete options to make the list less imposing.
  1126. # This message is too long to be a string in the A/UX 3.1 sh.
  1127. cat <<_ACEOF
  1128. \`configure' configures this package to adapt to many kinds of systems.
  1129. Usage: $0 [OPTION]... [VAR=VALUE]...
  1130. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1131. VAR=VALUE. See below for descriptions of some of the useful variables.
  1132. Defaults for the options are specified in brackets.
  1133. Configuration:
  1134. -h, --help display this help and exit
  1135. --help=short display options specific to this package
  1136. --help=recursive display the short help of all the included packages
  1137. -V, --version display version information and exit
  1138. -q, --quiet, --silent do not print \`checking...' messages
  1139. --cache-file=FILE cache test results in FILE [disabled]
  1140. -C, --config-cache alias for \`--cache-file=config.cache'
  1141. -n, --no-create do not create output files
  1142. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1143. Installation directories:
  1144. --prefix=PREFIX install architecture-independent files in PREFIX
  1145. [$ac_default_prefix]
  1146. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1147. [PREFIX]
  1148. By default, \`make install' will install all the files in
  1149. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1150. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1151. for instance \`--prefix=\$HOME'.
  1152. For better control, use the options below.
  1153. Fine tuning of the installation directories:
  1154. --bindir=DIR user executables [EPREFIX/bin]
  1155. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1156. --libexecdir=DIR program executables [EPREFIX/libexec]
  1157. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1158. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1159. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1160. --libdir=DIR object code libraries [EPREFIX/lib]
  1161. --includedir=DIR C header files [PREFIX/include]
  1162. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1163. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1164. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1165. --infodir=DIR info documentation [DATAROOTDIR/info]
  1166. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1167. --mandir=DIR man documentation [DATAROOTDIR/man]
  1168. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1169. --htmldir=DIR html documentation [DOCDIR]
  1170. --dvidir=DIR dvi documentation [DOCDIR]
  1171. --pdfdir=DIR pdf documentation [DOCDIR]
  1172. --psdir=DIR ps documentation [DOCDIR]
  1173. _ACEOF
  1174. cat <<\_ACEOF
  1175. _ACEOF
  1176. fi
  1177. if test -n "$ac_init_help"; then
  1178. cat <<\_ACEOF
  1179. Optional Features:
  1180. --disable-option-checking ignore unrecognized --enable/--with options
  1181. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1182. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1183. --disable-ipv6 disable IPv6 support
  1184. Some influential environment variables:
  1185. CXX C++ compiler command
  1186. CXXFLAGS C++ compiler flags
  1187. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1188. nonstandard directory <lib dir>
  1189. LIBS libraries to pass to the linker, e.g. -l<library>
  1190. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1191. you have headers in a nonstandard directory <include dir>
  1192. CXXCPP C++ preprocessor
  1193. Use these variables to override the choices made by `configure' or to help
  1194. it to find libraries and programs with nonstandard names/locations.
  1195. _ACEOF
  1196. ac_status=$?
  1197. fi
  1198. if test "$ac_init_help" = "recursive"; then
  1199. # If there are subdirs, report their specific --help.
  1200. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1201. test -d "$ac_dir" ||
  1202. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1203. continue
  1204. ac_builddir=.
  1205. case "$ac_dir" in
  1206. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1207. *)
  1208. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1209. # A ".." for each directory in $ac_dir_suffix.
  1210. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1211. case $ac_top_builddir_sub in
  1212. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1213. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1214. esac ;;
  1215. esac
  1216. ac_abs_top_builddir=$ac_pwd
  1217. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1218. # for backward compatibility:
  1219. ac_top_builddir=$ac_top_build_prefix
  1220. case $srcdir in
  1221. .) # We are building in place.
  1222. ac_srcdir=.
  1223. ac_top_srcdir=$ac_top_builddir_sub
  1224. ac_abs_top_srcdir=$ac_pwd ;;
  1225. [\\/]* | ?:[\\/]* ) # Absolute name.
  1226. ac_srcdir=$srcdir$ac_dir_suffix;
  1227. ac_top_srcdir=$srcdir
  1228. ac_abs_top_srcdir=$srcdir ;;
  1229. *) # Relative name.
  1230. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1231. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1232. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1233. esac
  1234. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1235. cd "$ac_dir" || { ac_status=$?; continue; }
  1236. # Check for guested configure.
  1237. if test -f "$ac_srcdir/configure.gnu"; then
  1238. echo &&
  1239. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1240. elif test -f "$ac_srcdir/configure"; then
  1241. echo &&
  1242. $SHELL "$ac_srcdir/configure" --help=recursive
  1243. else
  1244. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1245. fi || ac_status=$?
  1246. cd "$ac_pwd" || { ac_status=$?; break; }
  1247. done
  1248. fi
  1249. test -n "$ac_init_help" && exit $ac_status
  1250. if $ac_init_version; then
  1251. cat <<\_ACEOF
  1252. configure
  1253. generated by GNU Autoconf 2.63
  1254. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1255. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1256. This configure script is free software; the Free Software Foundation
  1257. gives unlimited permission to copy, distribute and modify it.
  1258. Copyright (c) 2003, 2004 Bryan Drewery
  1259. _ACEOF
  1260. exit
  1261. fi
  1262. cat >config.log <<_ACEOF
  1263. This file contains any messages produced by compilers while
  1264. running configure, to aid debugging if configure makes a mistake.
  1265. It was created by $as_me, which was
  1266. generated by GNU Autoconf 2.63. Invocation command line was
  1267. $ $0 $@
  1268. _ACEOF
  1269. exec 5>>config.log
  1270. {
  1271. cat <<_ASUNAME
  1272. ## --------- ##
  1273. ## Platform. ##
  1274. ## --------- ##
  1275. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1276. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1277. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1278. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1279. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1280. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1281. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1282. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1283. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1284. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1285. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1286. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1287. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1288. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1289. _ASUNAME
  1290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1291. for as_dir in $PATH
  1292. do
  1293. IFS=$as_save_IFS
  1294. test -z "$as_dir" && as_dir=.
  1295. $as_echo "PATH: $as_dir"
  1296. done
  1297. IFS=$as_save_IFS
  1298. } >&5
  1299. cat >&5 <<_ACEOF
  1300. ## ----------- ##
  1301. ## Core tests. ##
  1302. ## ----------- ##
  1303. _ACEOF
  1304. # Keep a trace of the command line.
  1305. # Strip out --no-create and --no-recursion so they do not pile up.
  1306. # Strip out --silent because we don't want to record it for future runs.
  1307. # Also quote any args containing shell meta-characters.
  1308. # Make two passes to allow for proper duplicate-argument suppression.
  1309. ac_configure_args=
  1310. ac_configure_args0=
  1311. ac_configure_args1=
  1312. ac_must_keep_next=false
  1313. for ac_pass in 1 2
  1314. do
  1315. for ac_arg
  1316. do
  1317. case $ac_arg in
  1318. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1319. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1320. | -silent | --silent | --silen | --sile | --sil)
  1321. continue ;;
  1322. *\'*)
  1323. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1324. esac
  1325. case $ac_pass in
  1326. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1327. 2)
  1328. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1329. if test $ac_must_keep_next = true; then
  1330. ac_must_keep_next=false # Got value, back to normal.
  1331. else
  1332. case $ac_arg in
  1333. *=* | --config-cache | -C | -disable-* | --disable-* \
  1334. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1335. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1336. | -with-* | --with-* | -without-* | --without-* | --x)
  1337. case "$ac_configure_args0 " in
  1338. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1339. esac
  1340. ;;
  1341. -* ) ac_must_keep_next=true ;;
  1342. esac
  1343. fi
  1344. ac_configure_args="$ac_configure_args '$ac_arg'"
  1345. ;;
  1346. esac
  1347. done
  1348. done
  1349. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1350. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1351. # When interrupted or exit'd, cleanup temporary files, and complete
  1352. # config.log. We remove comments because anyway the quotes in there
  1353. # would cause problems or look ugly.
  1354. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1355. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1356. trap 'exit_status=$?
  1357. # Save into config.log some information that might help in debugging.
  1358. {
  1359. echo
  1360. cat <<\_ASBOX
  1361. ## ---------------- ##
  1362. ## Cache variables. ##
  1363. ## ---------------- ##
  1364. _ASBOX
  1365. echo
  1366. # The following way of writing the cache mishandles newlines in values,
  1367. (
  1368. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1369. eval ac_val=\$$ac_var
  1370. case $ac_val in #(
  1371. *${as_nl}*)
  1372. case $ac_var in #(
  1373. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1374. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1375. esac
  1376. case $ac_var in #(
  1377. _ | IFS | as_nl) ;; #(
  1378. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1379. *) $as_unset $ac_var ;;
  1380. esac ;;
  1381. esac
  1382. done
  1383. (set) 2>&1 |
  1384. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1385. *${as_nl}ac_space=\ *)
  1386. sed -n \
  1387. "s/'\''/'\''\\\\'\'''\''/g;
  1388. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1389. ;; #(
  1390. *)
  1391. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1392. ;;
  1393. esac |
  1394. sort
  1395. )
  1396. echo
  1397. cat <<\_ASBOX
  1398. ## ----------------- ##
  1399. ## Output variables. ##
  1400. ## ----------------- ##
  1401. _ASBOX
  1402. echo
  1403. for ac_var in $ac_subst_vars
  1404. do
  1405. eval ac_val=\$$ac_var
  1406. case $ac_val in
  1407. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1408. esac
  1409. $as_echo "$ac_var='\''$ac_val'\''"
  1410. done | sort
  1411. echo
  1412. if test -n "$ac_subst_files"; then
  1413. cat <<\_ASBOX
  1414. ## ------------------- ##
  1415. ## File substitutions. ##
  1416. ## ------------------- ##
  1417. _ASBOX
  1418. echo
  1419. for ac_var in $ac_subst_files
  1420. do
  1421. eval ac_val=\$$ac_var
  1422. case $ac_val in
  1423. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1424. esac
  1425. $as_echo "$ac_var='\''$ac_val'\''"
  1426. done | sort
  1427. echo
  1428. fi
  1429. if test -s confdefs.h; then
  1430. cat <<\_ASBOX
  1431. ## ----------- ##
  1432. ## confdefs.h. ##
  1433. ## ----------- ##
  1434. _ASBOX
  1435. echo
  1436. cat confdefs.h
  1437. echo
  1438. fi
  1439. test "$ac_signal" != 0 &&
  1440. $as_echo "$as_me: caught signal $ac_signal"
  1441. $as_echo "$as_me: exit $exit_status"
  1442. } >&5
  1443. rm -f core *.core core.conftest.* &&
  1444. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1445. exit $exit_status
  1446. ' 0
  1447. for ac_signal in 1 2 13 15; do
  1448. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1449. done
  1450. ac_signal=0
  1451. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1452. rm -f -r conftest* confdefs.h
  1453. # Predefined preprocessor variables.
  1454. cat >>confdefs.h <<_ACEOF
  1455. #define PACKAGE_NAME "$PACKAGE_NAME"
  1456. _ACEOF
  1457. cat >>confdefs.h <<_ACEOF
  1458. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1459. _ACEOF
  1460. cat >>confdefs.h <<_ACEOF
  1461. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1462. _ACEOF
  1463. cat >>confdefs.h <<_ACEOF
  1464. #define PACKAGE_STRING "$PACKAGE_STRING"
  1465. _ACEOF
  1466. cat >>confdefs.h <<_ACEOF
  1467. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1468. _ACEOF
  1469. # Let the site file select an alternate cache file if it wants to.
  1470. # Prefer an explicitly selected file to automatically selected ones.
  1471. ac_site_file1=NONE
  1472. ac_site_file2=NONE
  1473. if test -n "$CONFIG_SITE"; then
  1474. ac_site_file1=$CONFIG_SITE
  1475. elif test "x$prefix" != xNONE; then
  1476. ac_site_file1=$prefix/share/config.site
  1477. ac_site_file2=$prefix/etc/config.site
  1478. else
  1479. ac_site_file1=$ac_default_prefix/share/config.site
  1480. ac_site_file2=$ac_default_prefix/etc/config.site
  1481. fi
  1482. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1483. do
  1484. test "x$ac_site_file" = xNONE && continue
  1485. if test -r "$ac_site_file"; then
  1486. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1487. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1488. sed 's/^/| /' "$ac_site_file" >&5
  1489. . "$ac_site_file"
  1490. fi
  1491. done
  1492. if test -r "$cache_file"; then
  1493. # Some versions of bash will fail to source /dev/null (special
  1494. # files actually), so we avoid doing that.
  1495. if test -f "$cache_file"; then
  1496. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1497. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1498. case $cache_file in
  1499. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1500. *) . "./$cache_file";;
  1501. esac
  1502. fi
  1503. else
  1504. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1505. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1506. >$cache_file
  1507. fi
  1508. ac_header_list="$ac_header_list sys/time.h"
  1509. ac_header_list="$ac_header_list unistd.h"
  1510. ac_func_list="$ac_func_list alarm"
  1511. # Check that the precious variables saved in the cache have kept the same
  1512. # value.
  1513. ac_cache_corrupted=false
  1514. for ac_var in $ac_precious_vars; do
  1515. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1516. eval ac_new_set=\$ac_env_${ac_var}_set
  1517. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1518. eval ac_new_val=\$ac_env_${ac_var}_value
  1519. case $ac_old_set,$ac_new_set in
  1520. set,)
  1521. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1522. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1523. ac_cache_corrupted=: ;;
  1524. ,set)
  1525. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1526. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1527. ac_cache_corrupted=: ;;
  1528. ,);;
  1529. *)
  1530. if test "x$ac_old_val" != "x$ac_new_val"; then
  1531. # differences in whitespace do not lead to failure.
  1532. ac_old_val_w=`echo x $ac_old_val`
  1533. ac_new_val_w=`echo x $ac_new_val`
  1534. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1535. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1536. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1537. ac_cache_corrupted=:
  1538. else
  1539. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1540. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1541. eval $ac_var=\$ac_old_val
  1542. fi
  1543. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1544. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1545. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1546. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1547. fi;;
  1548. esac
  1549. # Pass precious variables to config.status.
  1550. if test "$ac_new_set" = set; then
  1551. case $ac_new_val in
  1552. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1553. *) ac_arg=$ac_var=$ac_new_val ;;
  1554. esac
  1555. case " $ac_configure_args " in
  1556. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1557. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1558. esac
  1559. fi
  1560. done
  1561. if $ac_cache_corrupted; then
  1562. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1564. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1565. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1566. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1567. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1568. { (exit 1); exit 1; }; }
  1569. fi
  1570. ac_ext=c
  1571. ac_cpp='$CPP $CPPFLAGS'
  1572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1575. ac_config_headers="$ac_config_headers config.h"
  1576. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1577. egg_ac_parameters=
  1578. ac_prev=
  1579. for ac_arg in $ac_configure_args; do
  1580. if test -n "$ac_prev"; then
  1581. ac_prev=
  1582. continue
  1583. fi
  1584. case $ac_arg in
  1585. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1586. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1587. ac_prev=cache_file ;;
  1588. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1589. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1590. | --c=*)
  1591. ;;
  1592. --config-cache | -C)
  1593. ;;
  1594. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1595. ac_prev=srcdir ;;
  1596. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1597. ;;
  1598. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1599. esac
  1600. done
  1601. # Setup build environment
  1602. #AC_REQUIRE_CPP
  1603. ac_ext=cpp
  1604. ac_cpp='$CXXCPP $CPPFLAGS'
  1605. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1606. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1607. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1608. ac_ext=cpp
  1609. ac_cpp='$CXXCPP $CPPFLAGS'
  1610. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1611. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1612. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1613. if test -z "$CXX"; then
  1614. if test -n "$CCC"; then
  1615. CXX=$CCC
  1616. else
  1617. if test -n "$ac_tool_prefix"; then
  1618. 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
  1619. do
  1620. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1621. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1622. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1623. $as_echo_n "checking for $ac_word... " >&6; }
  1624. if test "${ac_cv_prog_CXX+set}" = set; then
  1625. $as_echo_n "(cached) " >&6
  1626. else
  1627. if test -n "$CXX"; then
  1628. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1629. else
  1630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1631. for as_dir in $PATH
  1632. do
  1633. IFS=$as_save_IFS
  1634. test -z "$as_dir" && as_dir=.
  1635. for ac_exec_ext in '' $ac_executable_extensions; do
  1636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1637. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1638. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1639. break 2
  1640. fi
  1641. done
  1642. done
  1643. IFS=$as_save_IFS
  1644. fi
  1645. fi
  1646. CXX=$ac_cv_prog_CXX
  1647. if test -n "$CXX"; then
  1648. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  1649. $as_echo "$CXX" >&6; }
  1650. else
  1651. { $as_echo "$as_me:$LINENO: result: no" >&5
  1652. $as_echo "no" >&6; }
  1653. fi
  1654. test -n "$CXX" && break
  1655. done
  1656. fi
  1657. if test -z "$CXX"; then
  1658. ac_ct_CXX=$CXX
  1659. 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
  1660. do
  1661. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1662. set dummy $ac_prog; ac_word=$2
  1663. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1664. $as_echo_n "checking for $ac_word... " >&6; }
  1665. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1666. $as_echo_n "(cached) " >&6
  1667. else
  1668. if test -n "$ac_ct_CXX"; then
  1669. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1670. else
  1671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1672. for as_dir in $PATH
  1673. do
  1674. IFS=$as_save_IFS
  1675. test -z "$as_dir" && as_dir=.
  1676. for ac_exec_ext in '' $ac_executable_extensions; do
  1677. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1678. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1679. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1680. break 2
  1681. fi
  1682. done
  1683. done
  1684. IFS=$as_save_IFS
  1685. fi
  1686. fi
  1687. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1688. if test -n "$ac_ct_CXX"; then
  1689. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1690. $as_echo "$ac_ct_CXX" >&6; }
  1691. else
  1692. { $as_echo "$as_me:$LINENO: result: no" >&5
  1693. $as_echo "no" >&6; }
  1694. fi
  1695. test -n "$ac_ct_CXX" && break
  1696. done
  1697. if test "x$ac_ct_CXX" = x; then
  1698. CXX="g++"
  1699. else
  1700. case $cross_compiling:$ac_tool_warned in
  1701. yes:)
  1702. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1704. ac_tool_warned=yes ;;
  1705. esac
  1706. CXX=$ac_ct_CXX
  1707. fi
  1708. fi
  1709. fi
  1710. fi
  1711. # Provide some information about the compiler.
  1712. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1713. set X $ac_compile
  1714. ac_compiler=$2
  1715. { (ac_try="$ac_compiler --version >&5"
  1716. case "(($ac_try" in
  1717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1718. *) ac_try_echo=$ac_try;;
  1719. esac
  1720. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1721. $as_echo "$ac_try_echo") >&5
  1722. (eval "$ac_compiler --version >&5") 2>&5
  1723. ac_status=$?
  1724. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1725. (exit $ac_status); }
  1726. { (ac_try="$ac_compiler -v >&5"
  1727. case "(($ac_try" in
  1728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1729. *) ac_try_echo=$ac_try;;
  1730. esac
  1731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1732. $as_echo "$ac_try_echo") >&5
  1733. (eval "$ac_compiler -v >&5") 2>&5
  1734. ac_status=$?
  1735. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1736. (exit $ac_status); }
  1737. { (ac_try="$ac_compiler -V >&5"
  1738. case "(($ac_try" in
  1739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1740. *) ac_try_echo=$ac_try;;
  1741. esac
  1742. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1743. $as_echo "$ac_try_echo") >&5
  1744. (eval "$ac_compiler -V >&5") 2>&5
  1745. ac_status=$?
  1746. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1747. (exit $ac_status); }
  1748. cat >conftest.$ac_ext <<_ACEOF
  1749. /* confdefs.h. */
  1750. _ACEOF
  1751. cat confdefs.h >>conftest.$ac_ext
  1752. cat >>conftest.$ac_ext <<_ACEOF
  1753. /* end confdefs.h. */
  1754. int
  1755. main ()
  1756. {
  1757. ;
  1758. return 0;
  1759. }
  1760. _ACEOF
  1761. ac_clean_files_save=$ac_clean_files
  1762. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1763. # Try to create an executable without -o first, disregard a.out.
  1764. # It will help us diagnose broken compilers, and finding out an intuition
  1765. # of exeext.
  1766. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1767. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  1768. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1769. # The possible output files:
  1770. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1771. ac_rmfiles=
  1772. for ac_file in $ac_files
  1773. do
  1774. case $ac_file in
  1775. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1776. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1777. esac
  1778. done
  1779. rm -f $ac_rmfiles
  1780. if { (ac_try="$ac_link_default"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo") >&5
  1787. (eval "$ac_link_default") 2>&5
  1788. ac_status=$?
  1789. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1790. (exit $ac_status); }; then
  1791. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1792. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1793. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1794. # so that the user can short-circuit this test for compilers unknown to
  1795. # Autoconf.
  1796. for ac_file in $ac_files ''
  1797. do
  1798. test -f "$ac_file" || continue
  1799. case $ac_file in
  1800. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1801. ;;
  1802. [ab].out )
  1803. # We found the default executable, but exeext='' is most
  1804. # certainly right.
  1805. break;;
  1806. *.* )
  1807. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1808. then :; else
  1809. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1810. fi
  1811. # We set ac_cv_exeext here because the later test for it is not
  1812. # safe: cross compilers may not add the suffix if given an `-o'
  1813. # argument, so we may need to know it at that point already.
  1814. # Even if this section looks crufty: it has the advantage of
  1815. # actually working.
  1816. break;;
  1817. * )
  1818. break;;
  1819. esac
  1820. done
  1821. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1822. else
  1823. ac_file=''
  1824. fi
  1825. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  1826. $as_echo "$ac_file" >&6; }
  1827. if test -z "$ac_file"; then
  1828. $as_echo "$as_me: failed program was:" >&5
  1829. sed 's/^/| /' conftest.$ac_ext >&5
  1830. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1831. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1832. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1833. See \`config.log' for more details." >&5
  1834. $as_echo "$as_me: error: C++ compiler cannot create executables
  1835. See \`config.log' for more details." >&2;}
  1836. { (exit 77); exit 77; }; }; }
  1837. fi
  1838. ac_exeext=$ac_cv_exeext
  1839. # Check that the compiler produces executables we can run. If not, either
  1840. # the compiler is broken, or we cross compile.
  1841. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1842. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  1843. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1844. # If not cross compiling, check that we can run a simple program.
  1845. if test "$cross_compiling" != yes; then
  1846. if { ac_try='./$ac_file'
  1847. { (case "(($ac_try" in
  1848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1849. *) ac_try_echo=$ac_try;;
  1850. esac
  1851. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1852. $as_echo "$ac_try_echo") >&5
  1853. (eval "$ac_try") 2>&5
  1854. ac_status=$?
  1855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1856. (exit $ac_status); }; }; then
  1857. cross_compiling=no
  1858. else
  1859. if test "$cross_compiling" = maybe; then
  1860. cross_compiling=yes
  1861. else
  1862. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1863. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1864. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1865. If you meant to cross compile, use \`--host'.
  1866. See \`config.log' for more details." >&5
  1867. $as_echo "$as_me: error: cannot run C++ compiled programs.
  1868. If you meant to cross compile, use \`--host'.
  1869. See \`config.log' for more details." >&2;}
  1870. { (exit 1); exit 1; }; }; }
  1871. fi
  1872. fi
  1873. fi
  1874. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1875. $as_echo "yes" >&6; }
  1876. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1877. ac_clean_files=$ac_clean_files_save
  1878. # Check that the compiler produces executables we can run. If not, either
  1879. # the compiler is broken, or we cross compile.
  1880. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1881. $as_echo_n "checking whether we are cross compiling... " >&6; }
  1882. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1883. $as_echo "$cross_compiling" >&6; }
  1884. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1885. $as_echo_n "checking for suffix of executables... " >&6; }
  1886. if { (ac_try="$ac_link"
  1887. case "(($ac_try" in
  1888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1889. *) ac_try_echo=$ac_try;;
  1890. esac
  1891. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1892. $as_echo "$ac_try_echo") >&5
  1893. (eval "$ac_link") 2>&5
  1894. ac_status=$?
  1895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1896. (exit $ac_status); }; then
  1897. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1898. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1899. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1900. # `rm'.
  1901. for ac_file in conftest.exe conftest conftest.*; do
  1902. test -f "$ac_file" || continue
  1903. case $ac_file in
  1904. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1905. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1906. break;;
  1907. * ) break;;
  1908. esac
  1909. done
  1910. else
  1911. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1912. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1913. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1914. See \`config.log' for more details." >&5
  1915. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1916. See \`config.log' for more details." >&2;}
  1917. { (exit 1); exit 1; }; }; }
  1918. fi
  1919. rm -f conftest$ac_cv_exeext
  1920. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1921. $as_echo "$ac_cv_exeext" >&6; }
  1922. rm -f conftest.$ac_ext
  1923. EXEEXT=$ac_cv_exeext
  1924. ac_exeext=$EXEEXT
  1925. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1926. $as_echo_n "checking for suffix of object files... " >&6; }
  1927. if test "${ac_cv_objext+set}" = set; then
  1928. $as_echo_n "(cached) " >&6
  1929. else
  1930. cat >conftest.$ac_ext <<_ACEOF
  1931. /* confdefs.h. */
  1932. _ACEOF
  1933. cat confdefs.h >>conftest.$ac_ext
  1934. cat >>conftest.$ac_ext <<_ACEOF
  1935. /* end confdefs.h. */
  1936. int
  1937. main ()
  1938. {
  1939. ;
  1940. return 0;
  1941. }
  1942. _ACEOF
  1943. rm -f conftest.o conftest.obj
  1944. if { (ac_try="$ac_compile"
  1945. case "(($ac_try" in
  1946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1947. *) ac_try_echo=$ac_try;;
  1948. esac
  1949. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1950. $as_echo "$ac_try_echo") >&5
  1951. (eval "$ac_compile") 2>&5
  1952. ac_status=$?
  1953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1954. (exit $ac_status); }; then
  1955. for ac_file in conftest.o conftest.obj conftest.*; do
  1956. test -f "$ac_file" || continue;
  1957. case $ac_file in
  1958. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1959. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1960. break;;
  1961. esac
  1962. done
  1963. else
  1964. $as_echo "$as_me: failed program was:" >&5
  1965. sed 's/^/| /' conftest.$ac_ext >&5
  1966. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1967. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1968. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1969. See \`config.log' for more details." >&5
  1970. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1971. See \`config.log' for more details." >&2;}
  1972. { (exit 1); exit 1; }; }; }
  1973. fi
  1974. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1975. fi
  1976. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1977. $as_echo "$ac_cv_objext" >&6; }
  1978. OBJEXT=$ac_cv_objext
  1979. ac_objext=$OBJEXT
  1980. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1981. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  1982. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1983. $as_echo_n "(cached) " >&6
  1984. else
  1985. cat >conftest.$ac_ext <<_ACEOF
  1986. /* confdefs.h. */
  1987. _ACEOF
  1988. cat confdefs.h >>conftest.$ac_ext
  1989. cat >>conftest.$ac_ext <<_ACEOF
  1990. /* end confdefs.h. */
  1991. int
  1992. main ()
  1993. {
  1994. #ifndef __GNUC__
  1995. choke me
  1996. #endif
  1997. ;
  1998. return 0;
  1999. }
  2000. _ACEOF
  2001. rm -f conftest.$ac_objext
  2002. if { (ac_try="$ac_compile"
  2003. case "(($ac_try" in
  2004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2005. *) ac_try_echo=$ac_try;;
  2006. esac
  2007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2008. $as_echo "$ac_try_echo") >&5
  2009. (eval "$ac_compile") 2>conftest.er1
  2010. ac_status=$?
  2011. grep -v '^ *+' conftest.er1 >conftest.err
  2012. rm -f conftest.er1
  2013. cat conftest.err >&5
  2014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2015. (exit $ac_status); } && {
  2016. test -z "$ac_cxx_werror_flag" ||
  2017. test ! -s conftest.err
  2018. } && test -s conftest.$ac_objext; then
  2019. ac_compiler_gnu=yes
  2020. else
  2021. $as_echo "$as_me: failed program was:" >&5
  2022. sed 's/^/| /' conftest.$ac_ext >&5
  2023. ac_compiler_gnu=no
  2024. fi
  2025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2027. fi
  2028. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2029. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2030. if test $ac_compiler_gnu = yes; then
  2031. GXX=yes
  2032. else
  2033. GXX=
  2034. fi
  2035. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2036. ac_save_CXXFLAGS=$CXXFLAGS
  2037. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2038. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2039. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2040. $as_echo_n "(cached) " >&6
  2041. else
  2042. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2043. ac_cxx_werror_flag=yes
  2044. ac_cv_prog_cxx_g=no
  2045. CXXFLAGS="-g"
  2046. cat >conftest.$ac_ext <<_ACEOF
  2047. /* confdefs.h. */
  2048. _ACEOF
  2049. cat confdefs.h >>conftest.$ac_ext
  2050. cat >>conftest.$ac_ext <<_ACEOF
  2051. /* end confdefs.h. */
  2052. int
  2053. main ()
  2054. {
  2055. ;
  2056. return 0;
  2057. }
  2058. _ACEOF
  2059. rm -f conftest.$ac_objext
  2060. if { (ac_try="$ac_compile"
  2061. case "(($ac_try" in
  2062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2063. *) ac_try_echo=$ac_try;;
  2064. esac
  2065. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2066. $as_echo "$ac_try_echo") >&5
  2067. (eval "$ac_compile") 2>conftest.er1
  2068. ac_status=$?
  2069. grep -v '^ *+' conftest.er1 >conftest.err
  2070. rm -f conftest.er1
  2071. cat conftest.err >&5
  2072. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2073. (exit $ac_status); } && {
  2074. test -z "$ac_cxx_werror_flag" ||
  2075. test ! -s conftest.err
  2076. } && test -s conftest.$ac_objext; then
  2077. ac_cv_prog_cxx_g=yes
  2078. else
  2079. $as_echo "$as_me: failed program was:" >&5
  2080. sed 's/^/| /' conftest.$ac_ext >&5
  2081. CXXFLAGS=""
  2082. cat >conftest.$ac_ext <<_ACEOF
  2083. /* confdefs.h. */
  2084. _ACEOF
  2085. cat confdefs.h >>conftest.$ac_ext
  2086. cat >>conftest.$ac_ext <<_ACEOF
  2087. /* end confdefs.h. */
  2088. int
  2089. main ()
  2090. {
  2091. ;
  2092. return 0;
  2093. }
  2094. _ACEOF
  2095. rm -f conftest.$ac_objext
  2096. if { (ac_try="$ac_compile"
  2097. case "(($ac_try" in
  2098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2099. *) ac_try_echo=$ac_try;;
  2100. esac
  2101. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2102. $as_echo "$ac_try_echo") >&5
  2103. (eval "$ac_compile") 2>conftest.er1
  2104. ac_status=$?
  2105. grep -v '^ *+' conftest.er1 >conftest.err
  2106. rm -f conftest.er1
  2107. cat conftest.err >&5
  2108. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2109. (exit $ac_status); } && {
  2110. test -z "$ac_cxx_werror_flag" ||
  2111. test ! -s conftest.err
  2112. } && test -s conftest.$ac_objext; then
  2113. :
  2114. else
  2115. $as_echo "$as_me: failed program was:" >&5
  2116. sed 's/^/| /' conftest.$ac_ext >&5
  2117. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2118. CXXFLAGS="-g"
  2119. cat >conftest.$ac_ext <<_ACEOF
  2120. /* confdefs.h. */
  2121. _ACEOF
  2122. cat confdefs.h >>conftest.$ac_ext
  2123. cat >>conftest.$ac_ext <<_ACEOF
  2124. /* end confdefs.h. */
  2125. int
  2126. main ()
  2127. {
  2128. ;
  2129. return 0;
  2130. }
  2131. _ACEOF
  2132. rm -f conftest.$ac_objext
  2133. if { (ac_try="$ac_compile"
  2134. case "(($ac_try" in
  2135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2136. *) ac_try_echo=$ac_try;;
  2137. esac
  2138. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2139. $as_echo "$ac_try_echo") >&5
  2140. (eval "$ac_compile") 2>conftest.er1
  2141. ac_status=$?
  2142. grep -v '^ *+' conftest.er1 >conftest.err
  2143. rm -f conftest.er1
  2144. cat conftest.err >&5
  2145. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2146. (exit $ac_status); } && {
  2147. test -z "$ac_cxx_werror_flag" ||
  2148. test ! -s conftest.err
  2149. } && test -s conftest.$ac_objext; then
  2150. ac_cv_prog_cxx_g=yes
  2151. else
  2152. $as_echo "$as_me: failed program was:" >&5
  2153. sed 's/^/| /' conftest.$ac_ext >&5
  2154. fi
  2155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2156. fi
  2157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2158. fi
  2159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2160. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2161. fi
  2162. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2163. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2164. if test "$ac_test_CXXFLAGS" = set; then
  2165. CXXFLAGS=$ac_save_CXXFLAGS
  2166. elif test $ac_cv_prog_cxx_g = yes; then
  2167. if test "$GXX" = yes; then
  2168. CXXFLAGS="-g -O2"
  2169. else
  2170. CXXFLAGS="-g"
  2171. fi
  2172. else
  2173. if test "$GXX" = yes; then
  2174. CXXFLAGS="-O2"
  2175. else
  2176. CXXFLAGS=
  2177. fi
  2178. fi
  2179. ac_ext=cpp
  2180. ac_cpp='$CXXCPP $CPPFLAGS'
  2181. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2182. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2183. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2184. if test "${cross_compiling-x}" = "x"
  2185. then
  2186. cat << 'EOF' >&2
  2187. configure: error:
  2188. This system does not appear to have a working C compiler.
  2189. A working C compiler is required to compile Eggdrop.
  2190. EOF
  2191. exit 1
  2192. fi
  2193. if test -n "$GXX"; then
  2194. CXXFLAGS="$CXXFLAGS -O3"
  2195. fi
  2196. # Crazy machines
  2197. ac_ext=cpp
  2198. ac_cpp='$CXXCPP $CPPFLAGS'
  2199. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2200. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2201. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2202. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2203. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2204. if test -z "$CXXCPP"; then
  2205. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2206. $as_echo_n "(cached) " >&6
  2207. else
  2208. # Double quotes because CXXCPP needs to be expanded
  2209. for CXXCPP in "$CXX -E" "/lib/cpp"
  2210. do
  2211. ac_preproc_ok=false
  2212. for ac_cxx_preproc_warn_flag in '' yes
  2213. do
  2214. # Use a header file that comes with gcc, so configuring glibc
  2215. # with a fresh cross-compiler works.
  2216. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2217. # <limits.h> exists even on freestanding compilers.
  2218. # On the NeXT, cc -E runs the code through the compiler's parser,
  2219. # not just through cpp. "Syntax error" is here to catch this case.
  2220. cat >conftest.$ac_ext <<_ACEOF
  2221. /* confdefs.h. */
  2222. _ACEOF
  2223. cat confdefs.h >>conftest.$ac_ext
  2224. cat >>conftest.$ac_ext <<_ACEOF
  2225. /* end confdefs.h. */
  2226. #ifdef __STDC__
  2227. # include <limits.h>
  2228. #else
  2229. # include <assert.h>
  2230. #endif
  2231. Syntax error
  2232. _ACEOF
  2233. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2234. case "(($ac_try" in
  2235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2236. *) ac_try_echo=$ac_try;;
  2237. esac
  2238. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2239. $as_echo "$ac_try_echo") >&5
  2240. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2241. ac_status=$?
  2242. grep -v '^ *+' conftest.er1 >conftest.err
  2243. rm -f conftest.er1
  2244. cat conftest.err >&5
  2245. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2246. (exit $ac_status); } >/dev/null && {
  2247. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2248. test ! -s conftest.err
  2249. }; then
  2250. :
  2251. else
  2252. $as_echo "$as_me: failed program was:" >&5
  2253. sed 's/^/| /' conftest.$ac_ext >&5
  2254. # Broken: fails on valid input.
  2255. continue
  2256. fi
  2257. rm -f conftest.err conftest.$ac_ext
  2258. # OK, works on sane cases. Now check whether nonexistent headers
  2259. # can be detected and how.
  2260. cat >conftest.$ac_ext <<_ACEOF
  2261. /* confdefs.h. */
  2262. _ACEOF
  2263. cat confdefs.h >>conftest.$ac_ext
  2264. cat >>conftest.$ac_ext <<_ACEOF
  2265. /* end confdefs.h. */
  2266. #include <ac_nonexistent.h>
  2267. _ACEOF
  2268. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2269. case "(($ac_try" in
  2270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2271. *) ac_try_echo=$ac_try;;
  2272. esac
  2273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2274. $as_echo "$ac_try_echo") >&5
  2275. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2276. ac_status=$?
  2277. grep -v '^ *+' conftest.er1 >conftest.err
  2278. rm -f conftest.er1
  2279. cat conftest.err >&5
  2280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2281. (exit $ac_status); } >/dev/null && {
  2282. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2283. test ! -s conftest.err
  2284. }; then
  2285. # Broken: success on invalid input.
  2286. continue
  2287. else
  2288. $as_echo "$as_me: failed program was:" >&5
  2289. sed 's/^/| /' conftest.$ac_ext >&5
  2290. # Passes both tests.
  2291. ac_preproc_ok=:
  2292. break
  2293. fi
  2294. rm -f conftest.err conftest.$ac_ext
  2295. done
  2296. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2297. rm -f conftest.err conftest.$ac_ext
  2298. if $ac_preproc_ok; then
  2299. break
  2300. fi
  2301. done
  2302. ac_cv_prog_CXXCPP=$CXXCPP
  2303. fi
  2304. CXXCPP=$ac_cv_prog_CXXCPP
  2305. else
  2306. ac_cv_prog_CXXCPP=$CXXCPP
  2307. fi
  2308. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2309. $as_echo "$CXXCPP" >&6; }
  2310. ac_preproc_ok=false
  2311. for ac_cxx_preproc_warn_flag in '' yes
  2312. do
  2313. # Use a header file that comes with gcc, so configuring glibc
  2314. # with a fresh cross-compiler works.
  2315. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2316. # <limits.h> exists even on freestanding compilers.
  2317. # On the NeXT, cc -E runs the code through the compiler's parser,
  2318. # not just through cpp. "Syntax error" is here to catch this case.
  2319. cat >conftest.$ac_ext <<_ACEOF
  2320. /* confdefs.h. */
  2321. _ACEOF
  2322. cat confdefs.h >>conftest.$ac_ext
  2323. cat >>conftest.$ac_ext <<_ACEOF
  2324. /* end confdefs.h. */
  2325. #ifdef __STDC__
  2326. # include <limits.h>
  2327. #else
  2328. # include <assert.h>
  2329. #endif
  2330. Syntax error
  2331. _ACEOF
  2332. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2333. case "(($ac_try" in
  2334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2335. *) ac_try_echo=$ac_try;;
  2336. esac
  2337. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2338. $as_echo "$ac_try_echo") >&5
  2339. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2340. ac_status=$?
  2341. grep -v '^ *+' conftest.er1 >conftest.err
  2342. rm -f conftest.er1
  2343. cat conftest.err >&5
  2344. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2345. (exit $ac_status); } >/dev/null && {
  2346. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2347. test ! -s conftest.err
  2348. }; then
  2349. :
  2350. else
  2351. $as_echo "$as_me: failed program was:" >&5
  2352. sed 's/^/| /' conftest.$ac_ext >&5
  2353. # Broken: fails on valid input.
  2354. continue
  2355. fi
  2356. rm -f conftest.err conftest.$ac_ext
  2357. # OK, works on sane cases. Now check whether nonexistent headers
  2358. # can be detected and how.
  2359. cat >conftest.$ac_ext <<_ACEOF
  2360. /* confdefs.h. */
  2361. _ACEOF
  2362. cat confdefs.h >>conftest.$ac_ext
  2363. cat >>conftest.$ac_ext <<_ACEOF
  2364. /* end confdefs.h. */
  2365. #include <ac_nonexistent.h>
  2366. _ACEOF
  2367. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2368. case "(($ac_try" in
  2369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2370. *) ac_try_echo=$ac_try;;
  2371. esac
  2372. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2373. $as_echo "$ac_try_echo") >&5
  2374. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2375. ac_status=$?
  2376. grep -v '^ *+' conftest.er1 >conftest.err
  2377. rm -f conftest.er1
  2378. cat conftest.err >&5
  2379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2380. (exit $ac_status); } >/dev/null && {
  2381. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2382. test ! -s conftest.err
  2383. }; then
  2384. # Broken: success on invalid input.
  2385. continue
  2386. else
  2387. $as_echo "$as_me: failed program was:" >&5
  2388. sed 's/^/| /' conftest.$ac_ext >&5
  2389. # Passes both tests.
  2390. ac_preproc_ok=:
  2391. break
  2392. fi
  2393. rm -f conftest.err conftest.$ac_ext
  2394. done
  2395. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2396. rm -f conftest.err conftest.$ac_ext
  2397. if $ac_preproc_ok; then
  2398. :
  2399. else
  2400. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2401. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2402. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2403. See \`config.log' for more details." >&5
  2404. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2405. See \`config.log' for more details." >&2;}
  2406. { (exit 1); exit 1; }; }; }
  2407. fi
  2408. ac_ext=cpp
  2409. ac_cpp='$CXXCPP $CPPFLAGS'
  2410. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2411. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2412. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2413. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2414. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2415. if test "${ac_cv_path_GREP+set}" = set; then
  2416. $as_echo_n "(cached) " >&6
  2417. else
  2418. if test -z "$GREP"; then
  2419. ac_path_GREP_found=false
  2420. # Loop through the user's path and test for each of PROGNAME-LIST
  2421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2422. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2423. do
  2424. IFS=$as_save_IFS
  2425. test -z "$as_dir" && as_dir=.
  2426. for ac_prog in grep ggrep; do
  2427. for ac_exec_ext in '' $ac_executable_extensions; do
  2428. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2429. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2430. # Check for GNU ac_path_GREP and select it if it is found.
  2431. # Check for GNU $ac_path_GREP
  2432. case `"$ac_path_GREP" --version 2>&1` in
  2433. *GNU*)
  2434. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2435. *)
  2436. ac_count=0
  2437. $as_echo_n 0123456789 >"conftest.in"
  2438. while :
  2439. do
  2440. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2441. mv "conftest.tmp" "conftest.in"
  2442. cp "conftest.in" "conftest.nl"
  2443. $as_echo 'GREP' >> "conftest.nl"
  2444. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2445. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2446. ac_count=`expr $ac_count + 1`
  2447. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2448. # Best one so far, save it but keep looking for a better one
  2449. ac_cv_path_GREP="$ac_path_GREP"
  2450. ac_path_GREP_max=$ac_count
  2451. fi
  2452. # 10*(2^10) chars as input seems more than enough
  2453. test $ac_count -gt 10 && break
  2454. done
  2455. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2456. esac
  2457. $ac_path_GREP_found && break 3
  2458. done
  2459. done
  2460. done
  2461. IFS=$as_save_IFS
  2462. if test -z "$ac_cv_path_GREP"; then
  2463. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2464. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2465. { (exit 1); exit 1; }; }
  2466. fi
  2467. else
  2468. ac_cv_path_GREP=$GREP
  2469. fi
  2470. fi
  2471. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2472. $as_echo "$ac_cv_path_GREP" >&6; }
  2473. GREP="$ac_cv_path_GREP"
  2474. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  2475. $as_echo_n "checking for egrep... " >&6; }
  2476. if test "${ac_cv_path_EGREP+set}" = set; then
  2477. $as_echo_n "(cached) " >&6
  2478. else
  2479. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2480. then ac_cv_path_EGREP="$GREP -E"
  2481. else
  2482. if test -z "$EGREP"; then
  2483. ac_path_EGREP_found=false
  2484. # Loop through the user's path and test for each of PROGNAME-LIST
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_prog in egrep; do
  2491. for ac_exec_ext in '' $ac_executable_extensions; do
  2492. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2493. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2494. # Check for GNU ac_path_EGREP and select it if it is found.
  2495. # Check for GNU $ac_path_EGREP
  2496. case `"$ac_path_EGREP" --version 2>&1` in
  2497. *GNU*)
  2498. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2499. *)
  2500. ac_count=0
  2501. $as_echo_n 0123456789 >"conftest.in"
  2502. while :
  2503. do
  2504. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2505. mv "conftest.tmp" "conftest.in"
  2506. cp "conftest.in" "conftest.nl"
  2507. $as_echo 'EGREP' >> "conftest.nl"
  2508. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2509. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2510. ac_count=`expr $ac_count + 1`
  2511. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2512. # Best one so far, save it but keep looking for a better one
  2513. ac_cv_path_EGREP="$ac_path_EGREP"
  2514. ac_path_EGREP_max=$ac_count
  2515. fi
  2516. # 10*(2^10) chars as input seems more than enough
  2517. test $ac_count -gt 10 && break
  2518. done
  2519. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2520. esac
  2521. $ac_path_EGREP_found && break 3
  2522. done
  2523. done
  2524. done
  2525. IFS=$as_save_IFS
  2526. if test -z "$ac_cv_path_EGREP"; then
  2527. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2528. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2529. { (exit 1); exit 1; }; }
  2530. fi
  2531. else
  2532. ac_cv_path_EGREP=$EGREP
  2533. fi
  2534. fi
  2535. fi
  2536. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2537. $as_echo "$ac_cv_path_EGREP" >&6; }
  2538. EGREP="$ac_cv_path_EGREP"
  2539. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2540. $as_echo_n "checking for ANSI C header files... " >&6; }
  2541. if test "${ac_cv_header_stdc+set}" = set; then
  2542. $as_echo_n "(cached) " >&6
  2543. else
  2544. cat >conftest.$ac_ext <<_ACEOF
  2545. /* confdefs.h. */
  2546. _ACEOF
  2547. cat confdefs.h >>conftest.$ac_ext
  2548. cat >>conftest.$ac_ext <<_ACEOF
  2549. /* end confdefs.h. */
  2550. #include <stdlib.h>
  2551. #include <stdarg.h>
  2552. #include <string.h>
  2553. #include <float.h>
  2554. int
  2555. main ()
  2556. {
  2557. ;
  2558. return 0;
  2559. }
  2560. _ACEOF
  2561. rm -f conftest.$ac_objext
  2562. if { (ac_try="$ac_compile"
  2563. case "(($ac_try" in
  2564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2565. *) ac_try_echo=$ac_try;;
  2566. esac
  2567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2568. $as_echo "$ac_try_echo") >&5
  2569. (eval "$ac_compile") 2>conftest.er1
  2570. ac_status=$?
  2571. grep -v '^ *+' conftest.er1 >conftest.err
  2572. rm -f conftest.er1
  2573. cat conftest.err >&5
  2574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2575. (exit $ac_status); } && {
  2576. test -z "$ac_cxx_werror_flag" ||
  2577. test ! -s conftest.err
  2578. } && test -s conftest.$ac_objext; then
  2579. ac_cv_header_stdc=yes
  2580. else
  2581. $as_echo "$as_me: failed program was:" >&5
  2582. sed 's/^/| /' conftest.$ac_ext >&5
  2583. ac_cv_header_stdc=no
  2584. fi
  2585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2586. if test $ac_cv_header_stdc = yes; then
  2587. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2588. cat >conftest.$ac_ext <<_ACEOF
  2589. /* confdefs.h. */
  2590. _ACEOF
  2591. cat confdefs.h >>conftest.$ac_ext
  2592. cat >>conftest.$ac_ext <<_ACEOF
  2593. /* end confdefs.h. */
  2594. #include <string.h>
  2595. _ACEOF
  2596. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2597. $EGREP "memchr" >/dev/null 2>&1; then
  2598. :
  2599. else
  2600. ac_cv_header_stdc=no
  2601. fi
  2602. rm -f conftest*
  2603. fi
  2604. if test $ac_cv_header_stdc = yes; then
  2605. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2606. cat >conftest.$ac_ext <<_ACEOF
  2607. /* confdefs.h. */
  2608. _ACEOF
  2609. cat confdefs.h >>conftest.$ac_ext
  2610. cat >>conftest.$ac_ext <<_ACEOF
  2611. /* end confdefs.h. */
  2612. #include <stdlib.h>
  2613. _ACEOF
  2614. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2615. $EGREP "free" >/dev/null 2>&1; then
  2616. :
  2617. else
  2618. ac_cv_header_stdc=no
  2619. fi
  2620. rm -f conftest*
  2621. fi
  2622. if test $ac_cv_header_stdc = yes; then
  2623. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2624. if test "$cross_compiling" = yes; then
  2625. :
  2626. else
  2627. cat >conftest.$ac_ext <<_ACEOF
  2628. /* confdefs.h. */
  2629. _ACEOF
  2630. cat confdefs.h >>conftest.$ac_ext
  2631. cat >>conftest.$ac_ext <<_ACEOF
  2632. /* end confdefs.h. */
  2633. #include <ctype.h>
  2634. #include <stdlib.h>
  2635. #if ((' ' & 0x0FF) == 0x020)
  2636. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2637. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2638. #else
  2639. # define ISLOWER(c) \
  2640. (('a' <= (c) && (c) <= 'i') \
  2641. || ('j' <= (c) && (c) <= 'r') \
  2642. || ('s' <= (c) && (c) <= 'z'))
  2643. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2644. #endif
  2645. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2646. int
  2647. main ()
  2648. {
  2649. int i;
  2650. for (i = 0; i < 256; i++)
  2651. if (XOR (islower (i), ISLOWER (i))
  2652. || toupper (i) != TOUPPER (i))
  2653. return 2;
  2654. return 0;
  2655. }
  2656. _ACEOF
  2657. rm -f conftest$ac_exeext
  2658. if { (ac_try="$ac_link"
  2659. case "(($ac_try" in
  2660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2661. *) ac_try_echo=$ac_try;;
  2662. esac
  2663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2664. $as_echo "$ac_try_echo") >&5
  2665. (eval "$ac_link") 2>&5
  2666. ac_status=$?
  2667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2669. { (case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2674. $as_echo "$ac_try_echo") >&5
  2675. (eval "$ac_try") 2>&5
  2676. ac_status=$?
  2677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2678. (exit $ac_status); }; }; then
  2679. :
  2680. else
  2681. $as_echo "$as_me: program exited with status $ac_status" >&5
  2682. $as_echo "$as_me: failed program was:" >&5
  2683. sed 's/^/| /' conftest.$ac_ext >&5
  2684. ( exit $ac_status )
  2685. ac_cv_header_stdc=no
  2686. fi
  2687. rm -rf conftest.dSYM
  2688. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2689. fi
  2690. fi
  2691. fi
  2692. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2693. $as_echo "$ac_cv_header_stdc" >&6; }
  2694. if test $ac_cv_header_stdc = yes; then
  2695. cat >>confdefs.h <<\_ACEOF
  2696. #define STDC_HEADERS 1
  2697. _ACEOF
  2698. fi
  2699. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2700. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2701. inttypes.h stdint.h unistd.h
  2702. do
  2703. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2704. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2705. $as_echo_n "checking for $ac_header... " >&6; }
  2706. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2707. $as_echo_n "(cached) " >&6
  2708. else
  2709. cat >conftest.$ac_ext <<_ACEOF
  2710. /* confdefs.h. */
  2711. _ACEOF
  2712. cat confdefs.h >>conftest.$ac_ext
  2713. cat >>conftest.$ac_ext <<_ACEOF
  2714. /* end confdefs.h. */
  2715. $ac_includes_default
  2716. #include <$ac_header>
  2717. _ACEOF
  2718. rm -f conftest.$ac_objext
  2719. if { (ac_try="$ac_compile"
  2720. case "(($ac_try" in
  2721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2722. *) ac_try_echo=$ac_try;;
  2723. esac
  2724. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2725. $as_echo "$ac_try_echo") >&5
  2726. (eval "$ac_compile") 2>conftest.er1
  2727. ac_status=$?
  2728. grep -v '^ *+' conftest.er1 >conftest.err
  2729. rm -f conftest.er1
  2730. cat conftest.err >&5
  2731. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2732. (exit $ac_status); } && {
  2733. test -z "$ac_cxx_werror_flag" ||
  2734. test ! -s conftest.err
  2735. } && test -s conftest.$ac_objext; then
  2736. eval "$as_ac_Header=yes"
  2737. else
  2738. $as_echo "$as_me: failed program was:" >&5
  2739. sed 's/^/| /' conftest.$ac_ext >&5
  2740. eval "$as_ac_Header=no"
  2741. fi
  2742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2743. fi
  2744. ac_res=`eval 'as_val=${'$as_ac_Header'}
  2745. $as_echo "$as_val"'`
  2746. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  2747. $as_echo "$ac_res" >&6; }
  2748. as_val=`eval 'as_val=${'$as_ac_Header'}
  2749. $as_echo "$as_val"'`
  2750. if test "x$as_val" = x""yes; then
  2751. cat >>confdefs.h <<_ACEOF
  2752. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2753. _ACEOF
  2754. fi
  2755. done
  2756. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2757. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2758. $as_echo_n "checking for minix/config.h... " >&6; }
  2759. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2760. $as_echo_n "(cached) " >&6
  2761. fi
  2762. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2763. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2764. else
  2765. # Is the header compilable?
  2766. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2767. $as_echo_n "checking minix/config.h usability... " >&6; }
  2768. cat >conftest.$ac_ext <<_ACEOF
  2769. /* confdefs.h. */
  2770. _ACEOF
  2771. cat confdefs.h >>conftest.$ac_ext
  2772. cat >>conftest.$ac_ext <<_ACEOF
  2773. /* end confdefs.h. */
  2774. $ac_includes_default
  2775. #include <minix/config.h>
  2776. _ACEOF
  2777. rm -f conftest.$ac_objext
  2778. if { (ac_try="$ac_compile"
  2779. case "(($ac_try" in
  2780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2781. *) ac_try_echo=$ac_try;;
  2782. esac
  2783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2784. $as_echo "$ac_try_echo") >&5
  2785. (eval "$ac_compile") 2>conftest.er1
  2786. ac_status=$?
  2787. grep -v '^ *+' conftest.er1 >conftest.err
  2788. rm -f conftest.er1
  2789. cat conftest.err >&5
  2790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); } && {
  2792. test -z "$ac_cxx_werror_flag" ||
  2793. test ! -s conftest.err
  2794. } && test -s conftest.$ac_objext; then
  2795. ac_header_compiler=yes
  2796. else
  2797. $as_echo "$as_me: failed program was:" >&5
  2798. sed 's/^/| /' conftest.$ac_ext >&5
  2799. ac_header_compiler=no
  2800. fi
  2801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2802. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2803. $as_echo "$ac_header_compiler" >&6; }
  2804. # Is the header present?
  2805. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2806. $as_echo_n "checking minix/config.h presence... " >&6; }
  2807. cat >conftest.$ac_ext <<_ACEOF
  2808. /* confdefs.h. */
  2809. _ACEOF
  2810. cat confdefs.h >>conftest.$ac_ext
  2811. cat >>conftest.$ac_ext <<_ACEOF
  2812. /* end confdefs.h. */
  2813. #include <minix/config.h>
  2814. _ACEOF
  2815. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2816. case "(($ac_try" in
  2817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2818. *) ac_try_echo=$ac_try;;
  2819. esac
  2820. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2821. $as_echo "$ac_try_echo") >&5
  2822. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2823. ac_status=$?
  2824. grep -v '^ *+' conftest.er1 >conftest.err
  2825. rm -f conftest.er1
  2826. cat conftest.err >&5
  2827. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2828. (exit $ac_status); } >/dev/null && {
  2829. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2830. test ! -s conftest.err
  2831. }; then
  2832. ac_header_preproc=yes
  2833. else
  2834. $as_echo "$as_me: failed program was:" >&5
  2835. sed 's/^/| /' conftest.$ac_ext >&5
  2836. ac_header_preproc=no
  2837. fi
  2838. rm -f conftest.err conftest.$ac_ext
  2839. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2840. $as_echo "$ac_header_preproc" >&6; }
  2841. # So? What about this header?
  2842. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2843. yes:no: )
  2844. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2845. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2846. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2847. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2848. ac_header_preproc=yes
  2849. ;;
  2850. no:yes:* )
  2851. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2852. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2853. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2854. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2855. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2856. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2857. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2858. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2859. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2860. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2861. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2862. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2863. ;;
  2864. esac
  2865. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2866. $as_echo_n "checking for minix/config.h... " >&6; }
  2867. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2868. $as_echo_n "(cached) " >&6
  2869. else
  2870. ac_cv_header_minix_config_h=$ac_header_preproc
  2871. fi
  2872. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2873. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  2874. fi
  2875. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  2876. MINIX=yes
  2877. else
  2878. MINIX=
  2879. fi
  2880. if test "$MINIX" = yes; then
  2881. cat >>confdefs.h <<\_ACEOF
  2882. #define _POSIX_SOURCE 1
  2883. _ACEOF
  2884. cat >>confdefs.h <<\_ACEOF
  2885. #define _POSIX_1_SOURCE 2
  2886. _ACEOF
  2887. cat >>confdefs.h <<\_ACEOF
  2888. #define _MINIX 1
  2889. _ACEOF
  2890. fi
  2891. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  2892. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  2893. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. cat >conftest.$ac_ext <<_ACEOF
  2897. /* confdefs.h. */
  2898. _ACEOF
  2899. cat confdefs.h >>conftest.$ac_ext
  2900. cat >>conftest.$ac_ext <<_ACEOF
  2901. /* end confdefs.h. */
  2902. # define __EXTENSIONS__ 1
  2903. $ac_includes_default
  2904. int
  2905. main ()
  2906. {
  2907. ;
  2908. return 0;
  2909. }
  2910. _ACEOF
  2911. rm -f conftest.$ac_objext
  2912. if { (ac_try="$ac_compile"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2918. $as_echo "$ac_try_echo") >&5
  2919. (eval "$ac_compile") 2>conftest.er1
  2920. ac_status=$?
  2921. grep -v '^ *+' conftest.er1 >conftest.err
  2922. rm -f conftest.er1
  2923. cat conftest.err >&5
  2924. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2925. (exit $ac_status); } && {
  2926. test -z "$ac_cxx_werror_flag" ||
  2927. test ! -s conftest.err
  2928. } && test -s conftest.$ac_objext; then
  2929. ac_cv_safe_to_define___extensions__=yes
  2930. else
  2931. $as_echo "$as_me: failed program was:" >&5
  2932. sed 's/^/| /' conftest.$ac_ext >&5
  2933. ac_cv_safe_to_define___extensions__=no
  2934. fi
  2935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2936. fi
  2937. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  2938. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  2939. test $ac_cv_safe_to_define___extensions__ = yes &&
  2940. cat >>confdefs.h <<\_ACEOF
  2941. #define __EXTENSIONS__ 1
  2942. _ACEOF
  2943. cat >>confdefs.h <<\_ACEOF
  2944. #define _ALL_SOURCE 1
  2945. _ACEOF
  2946. cat >>confdefs.h <<\_ACEOF
  2947. #define _GNU_SOURCE 1
  2948. _ACEOF
  2949. cat >>confdefs.h <<\_ACEOF
  2950. #define _POSIX_PTHREAD_SEMANTICS 1
  2951. _ACEOF
  2952. cat >>confdefs.h <<\_ACEOF
  2953. #define _TANDEM_SOURCE 1
  2954. _ACEOF
  2955. { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2956. $as_echo_n "checking for strerror in -lcposix... " >&6; }
  2957. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2958. $as_echo_n "(cached) " >&6
  2959. else
  2960. ac_check_lib_save_LIBS=$LIBS
  2961. LIBS="-lcposix $LIBS"
  2962. cat >conftest.$ac_ext <<_ACEOF
  2963. /* confdefs.h. */
  2964. _ACEOF
  2965. cat confdefs.h >>conftest.$ac_ext
  2966. cat >>conftest.$ac_ext <<_ACEOF
  2967. /* end confdefs.h. */
  2968. /* Override any GCC internal prototype to avoid an error.
  2969. Use char because int might match the return type of a GCC
  2970. builtin and then its argument prototype would still apply. */
  2971. #ifdef __cplusplus
  2972. extern "C"
  2973. #endif
  2974. char strerror ();
  2975. int
  2976. main ()
  2977. {
  2978. return strerror ();
  2979. ;
  2980. return 0;
  2981. }
  2982. _ACEOF
  2983. rm -f conftest.$ac_objext conftest$ac_exeext
  2984. if { (ac_try="$ac_link"
  2985. case "(($ac_try" in
  2986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2987. *) ac_try_echo=$ac_try;;
  2988. esac
  2989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2990. $as_echo "$ac_try_echo") >&5
  2991. (eval "$ac_link") 2>conftest.er1
  2992. ac_status=$?
  2993. grep -v '^ *+' conftest.er1 >conftest.err
  2994. rm -f conftest.er1
  2995. cat conftest.err >&5
  2996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2997. (exit $ac_status); } && {
  2998. test -z "$ac_cxx_werror_flag" ||
  2999. test ! -s conftest.err
  3000. } && test -s conftest$ac_exeext && {
  3001. test "$cross_compiling" = yes ||
  3002. $as_test_x conftest$ac_exeext
  3003. }; then
  3004. ac_cv_lib_cposix_strerror=yes
  3005. else
  3006. $as_echo "$as_me: failed program was:" >&5
  3007. sed 's/^/| /' conftest.$ac_ext >&5
  3008. ac_cv_lib_cposix_strerror=no
  3009. fi
  3010. rm -rf conftest.dSYM
  3011. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3012. conftest$ac_exeext conftest.$ac_ext
  3013. LIBS=$ac_check_lib_save_LIBS
  3014. fi
  3015. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  3016. $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
  3017. if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
  3018. LIBS="$LIBS -lcposix"
  3019. fi
  3020. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3021. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3022. $as_echo_n "checking for minix/config.h... " >&6; }
  3023. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3024. $as_echo_n "(cached) " >&6
  3025. fi
  3026. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3027. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3028. else
  3029. # Is the header compilable?
  3030. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  3031. $as_echo_n "checking minix/config.h usability... " >&6; }
  3032. cat >conftest.$ac_ext <<_ACEOF
  3033. /* confdefs.h. */
  3034. _ACEOF
  3035. cat confdefs.h >>conftest.$ac_ext
  3036. cat >>conftest.$ac_ext <<_ACEOF
  3037. /* end confdefs.h. */
  3038. $ac_includes_default
  3039. #include <minix/config.h>
  3040. _ACEOF
  3041. rm -f conftest.$ac_objext
  3042. if { (ac_try="$ac_compile"
  3043. case "(($ac_try" in
  3044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3045. *) ac_try_echo=$ac_try;;
  3046. esac
  3047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3048. $as_echo "$ac_try_echo") >&5
  3049. (eval "$ac_compile") 2>conftest.er1
  3050. ac_status=$?
  3051. grep -v '^ *+' conftest.er1 >conftest.err
  3052. rm -f conftest.er1
  3053. cat conftest.err >&5
  3054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3055. (exit $ac_status); } && {
  3056. test -z "$ac_cxx_werror_flag" ||
  3057. test ! -s conftest.err
  3058. } && test -s conftest.$ac_objext; then
  3059. ac_header_compiler=yes
  3060. else
  3061. $as_echo "$as_me: failed program was:" >&5
  3062. sed 's/^/| /' conftest.$ac_ext >&5
  3063. ac_header_compiler=no
  3064. fi
  3065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3066. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3067. $as_echo "$ac_header_compiler" >&6; }
  3068. # Is the header present?
  3069. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  3070. $as_echo_n "checking minix/config.h presence... " >&6; }
  3071. cat >conftest.$ac_ext <<_ACEOF
  3072. /* confdefs.h. */
  3073. _ACEOF
  3074. cat confdefs.h >>conftest.$ac_ext
  3075. cat >>conftest.$ac_ext <<_ACEOF
  3076. /* end confdefs.h. */
  3077. #include <minix/config.h>
  3078. _ACEOF
  3079. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3080. case "(($ac_try" in
  3081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3082. *) ac_try_echo=$ac_try;;
  3083. esac
  3084. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3085. $as_echo "$ac_try_echo") >&5
  3086. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3087. ac_status=$?
  3088. grep -v '^ *+' conftest.er1 >conftest.err
  3089. rm -f conftest.er1
  3090. cat conftest.err >&5
  3091. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3092. (exit $ac_status); } >/dev/null && {
  3093. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3094. test ! -s conftest.err
  3095. }; then
  3096. ac_header_preproc=yes
  3097. else
  3098. $as_echo "$as_me: failed program was:" >&5
  3099. sed 's/^/| /' conftest.$ac_ext >&5
  3100. ac_header_preproc=no
  3101. fi
  3102. rm -f conftest.err conftest.$ac_ext
  3103. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3104. $as_echo "$ac_header_preproc" >&6; }
  3105. # So? What about this header?
  3106. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  3107. yes:no: )
  3108. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  3109. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3110. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  3111. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  3112. ac_header_preproc=yes
  3113. ;;
  3114. no:yes:* )
  3115. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  3116. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  3117. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  3118. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  3119. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  3120. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  3121. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  3122. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  3123. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  3124. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  3125. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  3126. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  3127. ;;
  3128. esac
  3129. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  3130. $as_echo_n "checking for minix/config.h... " >&6; }
  3131. if test "${ac_cv_header_minix_config_h+set}" = set; then
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. ac_cv_header_minix_config_h=$ac_header_preproc
  3135. fi
  3136. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  3137. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  3138. fi
  3139. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  3140. MINIX=yes
  3141. else
  3142. MINIX=
  3143. fi
  3144. if test "$MINIX" = yes; then
  3145. cat >>confdefs.h <<\_ACEOF
  3146. #define _POSIX_SOURCE 1
  3147. _ACEOF
  3148. cat >>confdefs.h <<\_ACEOF
  3149. #define _POSIX_1_SOURCE 2
  3150. _ACEOF
  3151. cat >>confdefs.h <<\_ACEOF
  3152. #define _MINIX 1
  3153. _ACEOF
  3154. fi
  3155. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  3156. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3157. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  3158. $as_echo_n "(cached) " >&6
  3159. else
  3160. cat >conftest.$ac_ext <<_ACEOF
  3161. /* confdefs.h. */
  3162. _ACEOF
  3163. cat confdefs.h >>conftest.$ac_ext
  3164. cat >>conftest.$ac_ext <<_ACEOF
  3165. /* end confdefs.h. */
  3166. # define __EXTENSIONS__ 1
  3167. $ac_includes_default
  3168. int
  3169. main ()
  3170. {
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. rm -f conftest.$ac_objext
  3176. if { (ac_try="$ac_compile"
  3177. case "(($ac_try" in
  3178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3179. *) ac_try_echo=$ac_try;;
  3180. esac
  3181. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3182. $as_echo "$ac_try_echo") >&5
  3183. (eval "$ac_compile") 2>conftest.er1
  3184. ac_status=$?
  3185. grep -v '^ *+' conftest.er1 >conftest.err
  3186. rm -f conftest.er1
  3187. cat conftest.err >&5
  3188. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3189. (exit $ac_status); } && {
  3190. test -z "$ac_cxx_werror_flag" ||
  3191. test ! -s conftest.err
  3192. } && test -s conftest.$ac_objext; then
  3193. ac_cv_safe_to_define___extensions__=yes
  3194. else
  3195. $as_echo "$as_me: failed program was:" >&5
  3196. sed 's/^/| /' conftest.$ac_ext >&5
  3197. ac_cv_safe_to_define___extensions__=no
  3198. fi
  3199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3200. fi
  3201. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  3202. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3203. test $ac_cv_safe_to_define___extensions__ = yes &&
  3204. cat >>confdefs.h <<\_ACEOF
  3205. #define __EXTENSIONS__ 1
  3206. _ACEOF
  3207. cat >>confdefs.h <<\_ACEOF
  3208. #define _ALL_SOURCE 1
  3209. _ACEOF
  3210. cat >>confdefs.h <<\_ACEOF
  3211. #define _GNU_SOURCE 1
  3212. _ACEOF
  3213. cat >>confdefs.h <<\_ACEOF
  3214. #define _POSIX_PTHREAD_SEMANTICS 1
  3215. _ACEOF
  3216. cat >>confdefs.h <<\_ACEOF
  3217. #define _TANDEM_SOURCE 1
  3218. _ACEOF
  3219. #checkpoint
  3220. cat >confcache <<\_ACEOF
  3221. # This file is a shell script that caches the results of configure
  3222. # tests run on this system so they can be shared between configure
  3223. # scripts and configure runs, see configure's option --config-cache.
  3224. # It is not useful on other systems. If it contains results you don't
  3225. # want to keep, you may remove or edit it.
  3226. #
  3227. # config.status only pays attention to the cache file if you give it
  3228. # the --recheck option to rerun configure.
  3229. #
  3230. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3231. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3232. # following values.
  3233. _ACEOF
  3234. # The following way of writing the cache mishandles newlines in values,
  3235. # but we know of no workaround that is simple, portable, and efficient.
  3236. # So, we kill variables containing newlines.
  3237. # Ultrix sh set writes to stderr and can't be redirected directly,
  3238. # and sets the high bit in the cache file unless we assign to the vars.
  3239. (
  3240. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3241. eval ac_val=\$$ac_var
  3242. case $ac_val in #(
  3243. *${as_nl}*)
  3244. case $ac_var in #(
  3245. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3246. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3247. esac
  3248. case $ac_var in #(
  3249. _ | IFS | as_nl) ;; #(
  3250. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3251. *) $as_unset $ac_var ;;
  3252. esac ;;
  3253. esac
  3254. done
  3255. (set) 2>&1 |
  3256. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3257. *${as_nl}ac_space=\ *)
  3258. # `set' does not quote correctly, so add quotes (double-quote
  3259. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3260. sed -n \
  3261. "s/'/'\\\\''/g;
  3262. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3263. ;; #(
  3264. *)
  3265. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3266. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3267. ;;
  3268. esac |
  3269. sort
  3270. ) |
  3271. sed '
  3272. /^ac_cv_env_/b end
  3273. t clear
  3274. :clear
  3275. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3276. t end
  3277. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3278. :end' >>confcache
  3279. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3280. if test -w "$cache_file"; then
  3281. test "x$cache_file" != "x/dev/null" &&
  3282. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3283. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3284. cat confcache >$cache_file
  3285. else
  3286. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3287. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3288. fi
  3289. fi
  3290. rm -f confcache
  3291. # Speedup compile
  3292. if test -n "$GXX" && test -z "$no_wall"; then
  3293. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  3294. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3295. if test "${egg_cv_var_ccwall+set}" = set; then
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. ac_old_CXXFLAGS="$CXXFLAGS"
  3299. CXXFLAGS="$CXXFLAGS -Wall"
  3300. cat >conftest.$ac_ext <<_ACEOF
  3301. int main ()
  3302. {
  3303. return(0);
  3304. }
  3305. _ACEOF
  3306. rm -f conftest.$ac_objext
  3307. if { (ac_try="$ac_compile"
  3308. case "(($ac_try" in
  3309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3310. *) ac_try_echo=$ac_try;;
  3311. esac
  3312. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3313. $as_echo "$ac_try_echo") >&5
  3314. (eval "$ac_compile") 2>conftest.er1
  3315. ac_status=$?
  3316. grep -v '^ *+' conftest.er1 >conftest.err
  3317. rm -f conftest.er1
  3318. cat conftest.err >&5
  3319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3320. (exit $ac_status); } && {
  3321. test -z "$ac_cxx_werror_flag" ||
  3322. test ! -s conftest.err
  3323. } && test -s conftest.$ac_objext; then
  3324. egg_cv_var_ccwall="yes"
  3325. else
  3326. $as_echo "$as_me: failed program was:" >&5
  3327. sed 's/^/| /' conftest.$ac_ext >&5
  3328. egg_cv_var_ccwall="no"
  3329. fi
  3330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3331. CXXFLAGS="$ac_old_CXXFLAGS"
  3332. fi
  3333. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  3334. $as_echo "$egg_cv_var_ccwall" >&6; }
  3335. if test "$egg_cv_var_ccwall" = "yes"; then
  3336. CXXFLAGS="$CXXFLAGS -Wall"
  3337. fi
  3338. fi
  3339. if test -n "$GXX" && test -z "$no_pipe"; then
  3340. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3341. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3342. if test "${egg_cv_var_ccpipe+set}" = set; then
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. ac_old_CXX="$CXX"
  3346. CXX="$CXX -pipe"
  3347. cat >conftest.$ac_ext <<_ACEOF
  3348. int main ()
  3349. {
  3350. return(0);
  3351. }
  3352. _ACEOF
  3353. rm -f conftest.$ac_objext
  3354. if { (ac_try="$ac_compile"
  3355. case "(($ac_try" in
  3356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3357. *) ac_try_echo=$ac_try;;
  3358. esac
  3359. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3360. $as_echo "$ac_try_echo") >&5
  3361. (eval "$ac_compile") 2>conftest.er1
  3362. ac_status=$?
  3363. grep -v '^ *+' conftest.er1 >conftest.err
  3364. rm -f conftest.er1
  3365. cat conftest.err >&5
  3366. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3367. (exit $ac_status); } && {
  3368. test -z "$ac_cxx_werror_flag" ||
  3369. test ! -s conftest.err
  3370. } && test -s conftest.$ac_objext; then
  3371. egg_cv_var_ccpipe="yes"
  3372. else
  3373. $as_echo "$as_me: failed program was:" >&5
  3374. sed 's/^/| /' conftest.$ac_ext >&5
  3375. egg_cv_var_ccpipe="no"
  3376. fi
  3377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3378. CXX="$ac_old_CXX"
  3379. fi
  3380. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3381. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3382. if test "$egg_cv_var_ccpipe" = "yes"; then
  3383. CXX="$CXX -pipe"
  3384. fi
  3385. fi
  3386. CCDEPMODE=gcc
  3387. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3388. if test $num -ge "3"; then
  3389. CCDEPMODE=gcc3
  3390. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3391. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -fno-strict-aliasing"
  3392. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3393. fi
  3394. if test $num -ge "4"; then
  3395. GCC4DEB="-fstack-protector-all"
  3396. fi
  3397. #checkpoint
  3398. cat >confcache <<\_ACEOF
  3399. # This file is a shell script that caches the results of configure
  3400. # tests run on this system so they can be shared between configure
  3401. # scripts and configure runs, see configure's option --config-cache.
  3402. # It is not useful on other systems. If it contains results you don't
  3403. # want to keep, you may remove or edit it.
  3404. #
  3405. # config.status only pays attention to the cache file if you give it
  3406. # the --recheck option to rerun configure.
  3407. #
  3408. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3409. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3410. # following values.
  3411. _ACEOF
  3412. # The following way of writing the cache mishandles newlines in values,
  3413. # but we know of no workaround that is simple, portable, and efficient.
  3414. # So, we kill variables containing newlines.
  3415. # Ultrix sh set writes to stderr and can't be redirected directly,
  3416. # and sets the high bit in the cache file unless we assign to the vars.
  3417. (
  3418. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3419. eval ac_val=\$$ac_var
  3420. case $ac_val in #(
  3421. *${as_nl}*)
  3422. case $ac_var in #(
  3423. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3424. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3425. esac
  3426. case $ac_var in #(
  3427. _ | IFS | as_nl) ;; #(
  3428. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3429. *) $as_unset $ac_var ;;
  3430. esac ;;
  3431. esac
  3432. done
  3433. (set) 2>&1 |
  3434. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3435. *${as_nl}ac_space=\ *)
  3436. # `set' does not quote correctly, so add quotes (double-quote
  3437. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3438. sed -n \
  3439. "s/'/'\\\\''/g;
  3440. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3441. ;; #(
  3442. *)
  3443. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3444. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3445. ;;
  3446. esac |
  3447. sort
  3448. ) |
  3449. sed '
  3450. /^ac_cv_env_/b end
  3451. t clear
  3452. :clear
  3453. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3454. t end
  3455. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3456. :end' >>confcache
  3457. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3458. if test -w "$cache_file"; then
  3459. test "x$cache_file" != "x/dev/null" &&
  3460. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3461. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3462. cat confcache >$cache_file
  3463. else
  3464. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3465. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3466. fi
  3467. fi
  3468. rm -f confcache
  3469. # Checks for programs
  3470. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3471. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3472. set x ${MAKE-make}
  3473. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3474. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3475. $as_echo_n "(cached) " >&6
  3476. else
  3477. cat >conftest.make <<\_ACEOF
  3478. SHELL = /bin/sh
  3479. all:
  3480. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3481. _ACEOF
  3482. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3483. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3484. *@@@%%%=?*=@@@%%%*)
  3485. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3486. *)
  3487. eval ac_cv_prog_make_${ac_make}_set=no;;
  3488. esac
  3489. rm -f conftest.make
  3490. fi
  3491. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3492. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3493. $as_echo "yes" >&6; }
  3494. SET_MAKE=
  3495. else
  3496. { $as_echo "$as_me:$LINENO: result: no" >&5
  3497. $as_echo "no" >&6; }
  3498. SET_MAKE="MAKE=${MAKE-make}"
  3499. fi
  3500. cat << 'EOF' > conftest.head
  3501. a
  3502. b
  3503. c
  3504. EOF
  3505. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3506. do
  3507. { $as_echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3508. $as_echo_n "checking whether $ac_prog works... " >&6; }
  3509. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3510. $as_echo_n "(cached) " >&6
  3511. else
  3512. if test -n "$HEAD_1"
  3513. then
  3514. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3515. else
  3516. if test "`cat conftest.head | $ac_prog`" = "a";
  3517. then
  3518. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3519. $as_echo "yes" >&6; }
  3520. ac_cv_prog_HEAD_1=$ac_prog
  3521. else
  3522. { $as_echo "$as_me:$LINENO: result: no" >&5
  3523. $as_echo "no" >&6; }
  3524. fi
  3525. fi
  3526. fi
  3527. test -n "$ac_cv_prog_HEAD_1" && break
  3528. done
  3529. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3530. then
  3531. cat << 'EOF' >&2
  3532. configure: error:
  3533. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3534. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3535. EOF
  3536. exit 1
  3537. fi
  3538. rm -f conftest.head
  3539. HEAD_1=$ac_cv_prog_HEAD_1
  3540. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3541. for ac_prog in gawk mawk nawk awk
  3542. do
  3543. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3544. set dummy $ac_prog; ac_word=$2
  3545. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3546. $as_echo_n "checking for $ac_word... " >&6; }
  3547. if test "${ac_cv_prog_AWK+set}" = set; then
  3548. $as_echo_n "(cached) " >&6
  3549. else
  3550. if test -n "$AWK"; then
  3551. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3552. else
  3553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3554. for as_dir in $PATH
  3555. do
  3556. IFS=$as_save_IFS
  3557. test -z "$as_dir" && as_dir=.
  3558. for ac_exec_ext in '' $ac_executable_extensions; do
  3559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3560. ac_cv_prog_AWK="$ac_prog"
  3561. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3562. break 2
  3563. fi
  3564. done
  3565. done
  3566. IFS=$as_save_IFS
  3567. fi
  3568. fi
  3569. AWK=$ac_cv_prog_AWK
  3570. if test -n "$AWK"; then
  3571. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  3572. $as_echo "$AWK" >&6; }
  3573. else
  3574. { $as_echo "$as_me:$LINENO: result: no" >&5
  3575. $as_echo "no" >&6; }
  3576. fi
  3577. test -n "$AWK" && break
  3578. done
  3579. if test "${AWK-x}" = "x"
  3580. then
  3581. cat << 'EOF' >&2
  3582. configure: error:
  3583. This system seems to lack a working 'awk' command.
  3584. A working 'awk' command is required to compile Eggdrop.
  3585. EOF
  3586. exit 1
  3587. fi
  3588. # basename is needed for Tcl library and header checks
  3589. # Extract the first word of "basename", so it can be a program name with args.
  3590. set dummy basename; ac_word=$2
  3591. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3592. $as_echo_n "checking for $ac_word... " >&6; }
  3593. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3594. $as_echo_n "(cached) " >&6
  3595. else
  3596. if test -n "$BASENAME"; then
  3597. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3598. else
  3599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3600. for as_dir in $PATH
  3601. do
  3602. IFS=$as_save_IFS
  3603. test -z "$as_dir" && as_dir=.
  3604. for ac_exec_ext in '' $ac_executable_extensions; do
  3605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3606. ac_cv_prog_BASENAME="basename"
  3607. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3608. break 2
  3609. fi
  3610. done
  3611. done
  3612. IFS=$as_save_IFS
  3613. fi
  3614. fi
  3615. BASENAME=$ac_cv_prog_BASENAME
  3616. if test -n "$BASENAME"; then
  3617. { $as_echo "$as_me:$LINENO: result: $BASENAME" >&5
  3618. $as_echo "$BASENAME" >&6; }
  3619. else
  3620. { $as_echo "$as_me:$LINENO: result: no" >&5
  3621. $as_echo "no" >&6; }
  3622. fi
  3623. if test "${BASENAME-x}" = "x"
  3624. then
  3625. cat << 'EOF' >&2
  3626. configure: error:
  3627. This system seems to lack a working 'basename' command.
  3628. A working 'basename' command is required to compile Eggdrop.
  3629. EOF
  3630. exit 1
  3631. fi
  3632. # Extract the first word of "objcopy", so it can be a program name with args.
  3633. set dummy objcopy; ac_word=$2
  3634. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3635. $as_echo_n "checking for $ac_word... " >&6; }
  3636. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. if test -n "$OBJCOPY"; then
  3640. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3641. else
  3642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3643. for as_dir in $PATH
  3644. do
  3645. IFS=$as_save_IFS
  3646. test -z "$as_dir" && as_dir=.
  3647. for ac_exec_ext in '' $ac_executable_extensions; do
  3648. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3649. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3650. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3651. break 2
  3652. fi
  3653. done
  3654. done
  3655. IFS=$as_save_IFS
  3656. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3657. fi
  3658. fi
  3659. OBJCOPY=$ac_cv_prog_OBJCOPY
  3660. if test -n "$OBJCOPY"; then
  3661. { $as_echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3662. $as_echo "$OBJCOPY" >&6; }
  3663. else
  3664. { $as_echo "$as_me:$LINENO: result: no" >&5
  3665. $as_echo "no" >&6; }
  3666. fi
  3667. # Extract the first word of "strip", so it can be a program name with args.
  3668. set dummy strip; ac_word=$2
  3669. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3670. $as_echo_n "checking for $ac_word... " >&6; }
  3671. if test "${ac_cv_prog_STRIP+set}" = set; then
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. if test -n "$STRIP"; then
  3675. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3676. else
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for ac_exec_ext in '' $ac_executable_extensions; do
  3683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3684. ac_cv_prog_STRIP="strip"
  3685. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3686. break 2
  3687. fi
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3692. fi
  3693. fi
  3694. STRIP=$ac_cv_prog_STRIP
  3695. if test -n "$STRIP"; then
  3696. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  3697. $as_echo "$STRIP" >&6; }
  3698. else
  3699. { $as_echo "$as_me:$LINENO: result: no" >&5
  3700. $as_echo "no" >&6; }
  3701. fi
  3702. # Extract the first word of "gdiff", so it can be a program name with args.
  3703. set dummy gdiff; ac_word=$2
  3704. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3705. $as_echo_n "checking for $ac_word... " >&6; }
  3706. if test "${ac_cv_prog_DIFF+set}" = set; then
  3707. $as_echo_n "(cached) " >&6
  3708. else
  3709. if test -n "$DIFF"; then
  3710. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3711. else
  3712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3713. for as_dir in $PATH
  3714. do
  3715. IFS=$as_save_IFS
  3716. test -z "$as_dir" && as_dir=.
  3717. for ac_exec_ext in '' $ac_executable_extensions; do
  3718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3719. ac_cv_prog_DIFF="gdiff"
  3720. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3721. break 2
  3722. fi
  3723. done
  3724. done
  3725. IFS=$as_save_IFS
  3726. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3727. fi
  3728. fi
  3729. DIFF=$ac_cv_prog_DIFF
  3730. if test -n "$DIFF"; then
  3731. { $as_echo "$as_me:$LINENO: result: $DIFF" >&5
  3732. $as_echo "$DIFF" >&6; }
  3733. else
  3734. { $as_echo "$as_me:$LINENO: result: no" >&5
  3735. $as_echo "no" >&6; }
  3736. fi
  3737. # Extract the first word of "uname", so it can be a program name with args.
  3738. set dummy uname; ac_word=$2
  3739. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3740. $as_echo_n "checking for $ac_word... " >&6; }
  3741. if test "${ac_cv_prog_UNAME+set}" = set; then
  3742. $as_echo_n "(cached) " >&6
  3743. else
  3744. if test -n "$UNAME"; then
  3745. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3746. else
  3747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3748. for as_dir in $PATH
  3749. do
  3750. IFS=$as_save_IFS
  3751. test -z "$as_dir" && as_dir=.
  3752. for ac_exec_ext in '' $ac_executable_extensions; do
  3753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3754. ac_cv_prog_UNAME="uname"
  3755. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3756. break 2
  3757. fi
  3758. done
  3759. done
  3760. IFS=$as_save_IFS
  3761. fi
  3762. fi
  3763. UNAME=$ac_cv_prog_UNAME
  3764. if test -n "$UNAME"; then
  3765. { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
  3766. $as_echo "$UNAME" >&6; }
  3767. else
  3768. { $as_echo "$as_me:$LINENO: result: no" >&5
  3769. $as_echo "no" >&6; }
  3770. fi
  3771. # Extract the first word of "ccache", so it can be a program name with args.
  3772. set dummy ccache; ac_word=$2
  3773. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3774. $as_echo_n "checking for $ac_word... " >&6; }
  3775. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3776. $as_echo_n "(cached) " >&6
  3777. else
  3778. if test -n "$CCACHE"; then
  3779. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3780. else
  3781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3782. for as_dir in $PATH
  3783. do
  3784. IFS=$as_save_IFS
  3785. test -z "$as_dir" && as_dir=.
  3786. for ac_exec_ext in '' $ac_executable_extensions; do
  3787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3788. ac_cv_prog_CCACHE="ccache"
  3789. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3790. break 2
  3791. fi
  3792. done
  3793. done
  3794. IFS=$as_save_IFS
  3795. fi
  3796. fi
  3797. CCACHE=$ac_cv_prog_CCACHE
  3798. if test -n "$CCACHE"; then
  3799. { $as_echo "$as_me:$LINENO: result: $CCACHE" >&5
  3800. $as_echo "$CCACHE" >&6; }
  3801. else
  3802. { $as_echo "$as_me:$LINENO: result: no" >&5
  3803. $as_echo "no" >&6; }
  3804. fi
  3805. # Extract the first word of "distcc", so it can be a program name with args.
  3806. set dummy distcc; ac_word=$2
  3807. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3808. $as_echo_n "checking for $ac_word... " >&6; }
  3809. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. if test -n "$DISTCC"; then
  3813. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3814. else
  3815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3816. for as_dir in $PATH
  3817. do
  3818. IFS=$as_save_IFS
  3819. test -z "$as_dir" && as_dir=.
  3820. for ac_exec_ext in '' $ac_executable_extensions; do
  3821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3822. ac_cv_prog_DISTCC="distcc"
  3823. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3824. break 2
  3825. fi
  3826. done
  3827. done
  3828. IFS=$as_save_IFS
  3829. fi
  3830. fi
  3831. DISTCC=$ac_cv_prog_DISTCC
  3832. if test -n "$DISTCC"; then
  3833. { $as_echo "$as_me:$LINENO: result: $DISTCC" >&5
  3834. $as_echo "$DISTCC" >&6; }
  3835. else
  3836. { $as_echo "$as_me:$LINENO: result: no" >&5
  3837. $as_echo "no" >&6; }
  3838. fi
  3839. # Test the os and set the module linking settings
  3840. EGG_CYGWIN=no
  3841. { $as_echo "$as_me:$LINENO: checking system type" >&5
  3842. $as_echo_n "checking system type... " >&6; }
  3843. if test "${egg_cv_var_system_type+set}" = set; then
  3844. $as_echo_n "(cached) " >&6
  3845. else
  3846. egg_cv_var_system_type=`$UNAME -s`
  3847. fi
  3848. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3849. $as_echo "$egg_cv_var_system_type" >&6; }
  3850. { $as_echo "$as_me:$LINENO: checking system release" >&5
  3851. $as_echo_n "checking system release... " >&6; }
  3852. if test "${egg_cv_var_system_release+set}" = set; then
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. egg_cv_var_system_release=`$UNAME -r`
  3856. fi
  3857. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3858. $as_echo "$egg_cv_var_system_release" >&6; }
  3859. { $as_echo "$as_me:$LINENO: checking system machine" >&5
  3860. $as_echo_n "checking system machine... " >&6; }
  3861. if test "${egg_cv_var_system_machine+set}" = set; then
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. egg_cv_var_system_machine=`$UNAME -m`
  3865. fi
  3866. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3867. $as_echo "$egg_cv_var_system_machine" >&6; }
  3868. BUILDOS="$egg_cv_var_system_type"
  3869. BUILDARCH="$egg_cv_var_system_machine"
  3870. case "$egg_cv_var_system_machine" in
  3871. i*)
  3872. CXX="$CXX -march=i486"
  3873. BUILDARCH="i486"
  3874. ;;
  3875. *)
  3876. ;;
  3877. esac
  3878. case "$egg_cv_var_system_type" in
  3879. BSD/OS)
  3880. ;;
  3881. CYGWI*)
  3882. { $as_echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3883. $as_echo_n "checking how to access the Win32 API... " >&6; }
  3884. WIN32FLAGS=
  3885. cat >conftest.$ac_ext <<_ACEOF
  3886. /* confdefs.h. */
  3887. _ACEOF
  3888. cat confdefs.h >>conftest.$ac_ext
  3889. cat >>conftest.$ac_ext <<_ACEOF
  3890. /* end confdefs.h. */
  3891. int
  3892. main ()
  3893. {
  3894. #ifndef WIN32
  3895. # ifndef _WIN32
  3896. # error WIN32 or _WIN32 not defined
  3897. # endif
  3898. #endif
  3899. ;
  3900. return 0;
  3901. }
  3902. _ACEOF
  3903. rm -f conftest.$ac_objext
  3904. if { (ac_try="$ac_compile"
  3905. case "(($ac_try" in
  3906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3907. *) ac_try_echo=$ac_try;;
  3908. esac
  3909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3910. $as_echo "$ac_try_echo") >&5
  3911. (eval "$ac_compile") 2>conftest.er1
  3912. ac_status=$?
  3913. grep -v '^ *+' conftest.er1 >conftest.err
  3914. rm -f conftest.er1
  3915. cat conftest.err >&5
  3916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3917. (exit $ac_status); } && {
  3918. test -z "$ac_cxx_werror_flag" ||
  3919. test ! -s conftest.err
  3920. } && test -s conftest.$ac_objext; then
  3921. { $as_echo "$as_me:$LINENO: result: present by default" >&5
  3922. $as_echo "present by default" >&6; }
  3923. else
  3924. $as_echo "$as_me: failed program was:" >&5
  3925. sed 's/^/| /' conftest.$ac_ext >&5
  3926. ac_compile_save="$ac_compile"
  3927. save_CXX="$CXX"
  3928. ac_compile="$ac_compile -mwin32"
  3929. CXX="$CXX -mwin32"
  3930. cat >conftest.$ac_ext <<_ACEOF
  3931. /* confdefs.h. */
  3932. _ACEOF
  3933. cat confdefs.h >>conftest.$ac_ext
  3934. cat >>conftest.$ac_ext <<_ACEOF
  3935. /* end confdefs.h. */
  3936. int
  3937. main ()
  3938. {
  3939. #ifndef WIN32
  3940. # ifndef _WIN32
  3941. # error WIN32 or _WIN32 not defined
  3942. # endif
  3943. #endif
  3944. ;
  3945. return 0;
  3946. }
  3947. _ACEOF
  3948. rm -f conftest.$ac_objext
  3949. if { (ac_try="$ac_compile"
  3950. case "(($ac_try" in
  3951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3952. *) ac_try_echo=$ac_try;;
  3953. esac
  3954. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3955. $as_echo "$ac_try_echo") >&5
  3956. (eval "$ac_compile") 2>conftest.er1
  3957. ac_status=$?
  3958. grep -v '^ *+' conftest.er1 >conftest.err
  3959. rm -f conftest.er1
  3960. cat conftest.err >&5
  3961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3962. (exit $ac_status); } && {
  3963. test -z "$ac_cxx_werror_flag" ||
  3964. test ! -s conftest.err
  3965. } && test -s conftest.$ac_objext; then
  3966. { $as_echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3967. $as_echo "found via -mwin32" >&6; }
  3968. ac_compile="$ac_compile_save"
  3969. CXX="$save_CXX"
  3970. WIN32FLAGS="-mwin32"
  3971. else
  3972. $as_echo "$as_me: failed program was:" >&5
  3973. sed 's/^/| /' conftest.$ac_ext >&5
  3974. ac_compile="$ac_compile_save"
  3975. CXX="$save_CXX"
  3976. { $as_echo "$as_me:$LINENO: result: not found" >&5
  3977. $as_echo "not found" >&6; }
  3978. fi
  3979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3980. fi
  3981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3982. CXX="$CXX $WIN32FLAGS"
  3983. EGG_CYGWIN="yes"
  3984. if test $EGG_CYGWIN = "yes"; then
  3985. { $as_echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3986. $as_echo_n "checking for /usr/lib/binmode.o... " >&6; }
  3987. if test -r /usr/lib/binmode.o; then
  3988. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3989. $as_echo "yes" >&6; }
  3990. LIBS="$LIBS /usr/lib/binmode.o"
  3991. else
  3992. { $as_echo "$as_me:$LINENO: result: no" >&5
  3993. $as_echo "no" >&6; }
  3994. { $as_echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3995. $as_echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3996. fi
  3997. fi
  3998. cat >>confdefs.h <<\_ACEOF
  3999. #define CYGWIN_HACKS 1
  4000. _ACEOF
  4001. cat >>confdefs.h <<\_ACEOF
  4002. #define WIN32_LEAN_AND_MEAN 1
  4003. _ACEOF
  4004. ;;
  4005. IRIX)
  4006. ;;
  4007. HP-UX)
  4008. cat >>confdefs.h <<\_ACEOF
  4009. #define MD32_XARRAY 1
  4010. _ACEOF
  4011. ;;
  4012. Ultrix)
  4013. SHELL=/bin/sh5
  4014. ;;
  4015. SINIX*)
  4016. ;;
  4017. BeOS)
  4018. ;;
  4019. Linux)
  4020. ;;
  4021. Lynx)
  4022. ;;
  4023. QNX)
  4024. ;;
  4025. OSF1)
  4026. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4027. V*)
  4028. if test "$AWK" = "gawk"
  4029. then
  4030. AWK=awk
  4031. fi
  4032. ;;
  4033. 1.0|1.1|1.2)
  4034. cat >>confdefs.h <<\_ACEOF
  4035. #define OSF1_HACKS 1
  4036. _ACEOF
  4037. ;;
  4038. 1.*)
  4039. cat >>confdefs.h <<\_ACEOF
  4040. #define OSF1_HACKS 1
  4041. _ACEOF
  4042. ;;
  4043. *)
  4044. ;;
  4045. esac
  4046. cat >>confdefs.h <<\_ACEOF
  4047. #define STOP_UAC 1
  4048. _ACEOF
  4049. cat >>confdefs.h <<\_ACEOF
  4050. #define BROKEN_SNPRINTF 1
  4051. _ACEOF
  4052. ;;
  4053. SunOS)
  4054. SUNOS="yes"
  4055. ;;
  4056. *BSD)
  4057. # FreeBSD/OpenBSD/NetBSD
  4058. ;;
  4059. *)
  4060. { $as_echo "$as_me:$LINENO: checking if system is Mach based" >&5
  4061. $as_echo_n "checking if system is Mach based... " >&6; }
  4062. if test -r /mach
  4063. then
  4064. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4065. $as_echo "yes" >&6; }
  4066. cat >>confdefs.h <<\_ACEOF
  4067. #define BORGCUBES 1
  4068. _ACEOF
  4069. else
  4070. { $as_echo "$as_me:$LINENO: result: no" >&5
  4071. $as_echo "no" >&6; }
  4072. { $as_echo "$as_me:$LINENO: checking if system is QNX" >&5
  4073. $as_echo_n "checking if system is QNX... " >&6; }
  4074. if test -r /cmds
  4075. then
  4076. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4077. $as_echo "yes" >&6; }
  4078. else
  4079. { $as_echo "$as_me:$LINENO: result: no" >&5
  4080. $as_echo "no" >&6; }
  4081. { $as_echo "$as_me:$LINENO: result: Something unknown!" >&5
  4082. $as_echo "Something unknown!" >&6; }
  4083. { $as_echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  4084. $as_echo "If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6; }
  4085. fi
  4086. fi
  4087. ;;
  4088. esac
  4089. # Check for IPv6 support
  4090. #EGG_IPV6_SUPPORTED
  4091. { $as_echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4092. $as_echo_n "checking whether or not you disabled IPv6 support... " >&6; }
  4093. # Check whether --enable-ipv6 was given.
  4094. if test "${enable_ipv6+set}" = set; then
  4095. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  4096. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4097. $as_echo "yes" >&6; }
  4098. else
  4099. ac_cv_dipv6="no"
  4100. if test "$egg_cv_ipv6_supported" = "no"; then
  4101. ac_cv_dipv6="no"
  4102. fi
  4103. { $as_echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4104. $as_echo "$ac_cv_dipv6" >&6; }
  4105. fi
  4106. if ! test "$EGG_CYGWIN" = "yes"; then
  4107. if test "$ac_cv_dipv6" = "no"; then
  4108. cat >>confdefs.h <<\_ACEOF
  4109. #define USE_IPV6 1
  4110. _ACEOF
  4111. fi
  4112. fi
  4113. { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
  4114. $as_echo_n "checking for socklen_t... " >&6; }
  4115. if test "${egg_cv_socklen_t+set}" = set; then
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. if test "$cross_compiling" = yes; then
  4119. egg_cv_socklen_t=no
  4120. else
  4121. cat >conftest.$ac_ext <<_ACEOF
  4122. /* confdefs.h. */
  4123. _ACEOF
  4124. cat confdefs.h >>conftest.$ac_ext
  4125. cat >>conftest.$ac_ext <<_ACEOF
  4126. /* end confdefs.h. */
  4127. #include <unistd.h>
  4128. #include <sys/types.h>
  4129. #include <sys/socket.h>
  4130. #include <netinet/in.h>
  4131. #include <arpa/inet.h>
  4132. int main()
  4133. {
  4134. socklen_t test = sizeof(int);
  4135. return 0;
  4136. }
  4137. _ACEOF
  4138. rm -f conftest$ac_exeext
  4139. if { (ac_try="$ac_link"
  4140. case "(($ac_try" in
  4141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4142. *) ac_try_echo=$ac_try;;
  4143. esac
  4144. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4145. $as_echo "$ac_try_echo") >&5
  4146. (eval "$ac_link") 2>&5
  4147. ac_status=$?
  4148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4149. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4150. { (case "(($ac_try" in
  4151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4152. *) ac_try_echo=$ac_try;;
  4153. esac
  4154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4155. $as_echo "$ac_try_echo") >&5
  4156. (eval "$ac_try") 2>&5
  4157. ac_status=$?
  4158. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4159. (exit $ac_status); }; }; then
  4160. egg_cv_socklen_t=yes
  4161. else
  4162. $as_echo "$as_me: program exited with status $ac_status" >&5
  4163. $as_echo "$as_me: failed program was:" >&5
  4164. sed 's/^/| /' conftest.$ac_ext >&5
  4165. ( exit $ac_status )
  4166. egg_cv_socklen_t=no
  4167. fi
  4168. rm -rf conftest.dSYM
  4169. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4170. fi
  4171. fi
  4172. if test "$egg_cv_socklen_t" = "yes"; then
  4173. cat >>confdefs.h <<\_ACEOF
  4174. #define HAVE_SOCKLEN_T 1
  4175. _ACEOF
  4176. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4177. $as_echo "yes" >&6; }
  4178. else
  4179. { $as_echo "$as_me:$LINENO: result: no" >&5
  4180. $as_echo "no" >&6; }
  4181. fi
  4182. # Check for inconsistent random() functions
  4183. { $as_echo "$as_me:$LINENO: checking for random limit" >&5
  4184. $as_echo_n "checking for random limit... " >&6; }
  4185. case "$egg_cv_var_system_type" in
  4186. SunOS) RMAX=0x7FFFFFFF
  4187. ;;
  4188. *) RMAX=RAND_MAX
  4189. ;;
  4190. esac
  4191. { $as_echo "$as_me:$LINENO: result: $RMAX" >&5
  4192. $as_echo "$RMAX" >&6; }
  4193. cat >>confdefs.h <<_ACEOF
  4194. #define RANDOM_MAX $RMAX
  4195. _ACEOF
  4196. # Create static binaries
  4197. if test -z "$no_static"
  4198. then
  4199. if test -n "$GXX"
  4200. then
  4201. { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4202. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4203. if test "${egg_cv_var_ccstatic+set}" = set; then
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. ac_old_CXX="$CXX"
  4207. CXX="$CXX -static"
  4208. cat >conftest.$ac_ext <<_ACEOF
  4209. /* confdefs.h. */
  4210. _ACEOF
  4211. cat confdefs.h >>conftest.$ac_ext
  4212. cat >>conftest.$ac_ext <<_ACEOF
  4213. /* end confdefs.h. */
  4214. int
  4215. main ()
  4216. {
  4217. ;
  4218. return 0;
  4219. }
  4220. _ACEOF
  4221. rm -f conftest.$ac_objext
  4222. if { (ac_try="$ac_compile"
  4223. case "(($ac_try" in
  4224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4225. *) ac_try_echo=$ac_try;;
  4226. esac
  4227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4228. $as_echo "$ac_try_echo") >&5
  4229. (eval "$ac_compile") 2>conftest.er1
  4230. ac_status=$?
  4231. grep -v '^ *+' conftest.er1 >conftest.err
  4232. rm -f conftest.er1
  4233. cat conftest.err >&5
  4234. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4235. (exit $ac_status); } && {
  4236. test -z "$ac_cxx_werror_flag" ||
  4237. test ! -s conftest.err
  4238. } && test -s conftest.$ac_objext; then
  4239. egg_cv_var_ccstatic="yes"
  4240. else
  4241. $as_echo "$as_me: failed program was:" >&5
  4242. sed 's/^/| /' conftest.$ac_ext >&5
  4243. egg_cv_var_ccstatic="no"
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4246. CXX="$ac_old_CXX"
  4247. fi
  4248. { $as_echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4249. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4250. if test "$egg_cv_var_ccstatic" = "yes"
  4251. then
  4252. CCDEBUG="$CXX"
  4253. # CXX="$CXX -static"
  4254. else
  4255. cat << 'EOF' >&2
  4256. configure: error:
  4257. Your C compiler does not support -static.
  4258. This compile flag is required for the botpack.
  4259. EOF
  4260. exit 1
  4261. fi
  4262. fi
  4263. fi
  4264. #checkpoint
  4265. cat >confcache <<\_ACEOF
  4266. # This file is a shell script that caches the results of configure
  4267. # tests run on this system so they can be shared between configure
  4268. # scripts and configure runs, see configure's option --config-cache.
  4269. # It is not useful on other systems. If it contains results you don't
  4270. # want to keep, you may remove or edit it.
  4271. #
  4272. # config.status only pays attention to the cache file if you give it
  4273. # the --recheck option to rerun configure.
  4274. #
  4275. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4276. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4277. # following values.
  4278. _ACEOF
  4279. # The following way of writing the cache mishandles newlines in values,
  4280. # but we know of no workaround that is simple, portable, and efficient.
  4281. # So, we kill variables containing newlines.
  4282. # Ultrix sh set writes to stderr and can't be redirected directly,
  4283. # and sets the high bit in the cache file unless we assign to the vars.
  4284. (
  4285. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4286. eval ac_val=\$$ac_var
  4287. case $ac_val in #(
  4288. *${as_nl}*)
  4289. case $ac_var in #(
  4290. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  4291. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4292. esac
  4293. case $ac_var in #(
  4294. _ | IFS | as_nl) ;; #(
  4295. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4296. *) $as_unset $ac_var ;;
  4297. esac ;;
  4298. esac
  4299. done
  4300. (set) 2>&1 |
  4301. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4302. *${as_nl}ac_space=\ *)
  4303. # `set' does not quote correctly, so add quotes (double-quote
  4304. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4305. sed -n \
  4306. "s/'/'\\\\''/g;
  4307. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4308. ;; #(
  4309. *)
  4310. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4311. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4312. ;;
  4313. esac |
  4314. sort
  4315. ) |
  4316. sed '
  4317. /^ac_cv_env_/b end
  4318. t clear
  4319. :clear
  4320. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4321. t end
  4322. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4323. :end' >>confcache
  4324. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4325. if test -w "$cache_file"; then
  4326. test "x$cache_file" != "x/dev/null" &&
  4327. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4328. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4329. cat confcache >$cache_file
  4330. else
  4331. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4332. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4333. fi
  4334. fi
  4335. rm -f confcache
  4336. # Checks for system libraries
  4337. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4338. $as_echo_n "checking for socket in -lsocket... " >&6; }
  4339. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4340. $as_echo_n "(cached) " >&6
  4341. else
  4342. ac_check_lib_save_LIBS=$LIBS
  4343. LIBS="-lsocket $LIBS"
  4344. cat >conftest.$ac_ext <<_ACEOF
  4345. /* confdefs.h. */
  4346. _ACEOF
  4347. cat confdefs.h >>conftest.$ac_ext
  4348. cat >>conftest.$ac_ext <<_ACEOF
  4349. /* end confdefs.h. */
  4350. /* Override any GCC internal prototype to avoid an error.
  4351. Use char because int might match the return type of a GCC
  4352. builtin and then its argument prototype would still apply. */
  4353. #ifdef __cplusplus
  4354. extern "C"
  4355. #endif
  4356. char socket ();
  4357. int
  4358. main ()
  4359. {
  4360. return socket ();
  4361. ;
  4362. return 0;
  4363. }
  4364. _ACEOF
  4365. rm -f conftest.$ac_objext conftest$ac_exeext
  4366. if { (ac_try="$ac_link"
  4367. case "(($ac_try" in
  4368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4369. *) ac_try_echo=$ac_try;;
  4370. esac
  4371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4372. $as_echo "$ac_try_echo") >&5
  4373. (eval "$ac_link") 2>conftest.er1
  4374. ac_status=$?
  4375. grep -v '^ *+' conftest.er1 >conftest.err
  4376. rm -f conftest.er1
  4377. cat conftest.err >&5
  4378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4379. (exit $ac_status); } && {
  4380. test -z "$ac_cxx_werror_flag" ||
  4381. test ! -s conftest.err
  4382. } && test -s conftest$ac_exeext && {
  4383. test "$cross_compiling" = yes ||
  4384. $as_test_x conftest$ac_exeext
  4385. }; then
  4386. ac_cv_lib_socket_socket=yes
  4387. else
  4388. $as_echo "$as_me: failed program was:" >&5
  4389. sed 's/^/| /' conftest.$ac_ext >&5
  4390. ac_cv_lib_socket_socket=no
  4391. fi
  4392. rm -rf conftest.dSYM
  4393. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4394. conftest$ac_exeext conftest.$ac_ext
  4395. LIBS=$ac_check_lib_save_LIBS
  4396. fi
  4397. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4398. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  4399. if test "x$ac_cv_lib_socket_socket" = x""yes; then
  4400. cat >>confdefs.h <<_ACEOF
  4401. #define HAVE_LIBSOCKET 1
  4402. _ACEOF
  4403. LIBS="-lsocket $LIBS"
  4404. fi
  4405. # AC_CHECK_LIB(nsl, connect)
  4406. # AC_CHECK_LIB(dl, dlopen)
  4407. # AC_CHECK_LIB(nsl, gethostbyname)
  4408. # AC_CHECK_LIB(dns, gethostbyname)
  4409. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4410. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4411. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4412. # This is needed for Tcl libraries compiled with thread support
  4413. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4414. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4415. # ac_cv_lib_pthread="-lpthread"], [dnl
  4416. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4417. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4418. # ac_cv_lib_pthread="-lpthread"], [dnl
  4419. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4420. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4421. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4422. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4423. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4424. # ac_cv_lib_pthread=""],
  4425. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4426. if test "$SUNOS" = "yes"; then
  4427. # For suns without yp
  4428. { $as_echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4429. $as_echo_n "checking for main in -ldl... " >&6; }
  4430. if test "${ac_cv_lib_dl_main+set}" = set; then
  4431. $as_echo_n "(cached) " >&6
  4432. else
  4433. ac_check_lib_save_LIBS=$LIBS
  4434. LIBS="-ldl $LIBS"
  4435. cat >conftest.$ac_ext <<_ACEOF
  4436. /* confdefs.h. */
  4437. _ACEOF
  4438. cat confdefs.h >>conftest.$ac_ext
  4439. cat >>conftest.$ac_ext <<_ACEOF
  4440. /* end confdefs.h. */
  4441. int
  4442. main ()
  4443. {
  4444. return main ();
  4445. ;
  4446. return 0;
  4447. }
  4448. _ACEOF
  4449. rm -f conftest.$ac_objext conftest$ac_exeext
  4450. if { (ac_try="$ac_link"
  4451. case "(($ac_try" in
  4452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4453. *) ac_try_echo=$ac_try;;
  4454. esac
  4455. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4456. $as_echo "$ac_try_echo") >&5
  4457. (eval "$ac_link") 2>conftest.er1
  4458. ac_status=$?
  4459. grep -v '^ *+' conftest.er1 >conftest.err
  4460. rm -f conftest.er1
  4461. cat conftest.err >&5
  4462. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4463. (exit $ac_status); } && {
  4464. test -z "$ac_cxx_werror_flag" ||
  4465. test ! -s conftest.err
  4466. } && test -s conftest$ac_exeext && {
  4467. test "$cross_compiling" = yes ||
  4468. $as_test_x conftest$ac_exeext
  4469. }; then
  4470. ac_cv_lib_dl_main=yes
  4471. else
  4472. $as_echo "$as_me: failed program was:" >&5
  4473. sed 's/^/| /' conftest.$ac_ext >&5
  4474. ac_cv_lib_dl_main=no
  4475. fi
  4476. rm -rf conftest.dSYM
  4477. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4478. conftest$ac_exeext conftest.$ac_ext
  4479. LIBS=$ac_check_lib_save_LIBS
  4480. fi
  4481. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4482. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4483. if test "x$ac_cv_lib_dl_main" = x""yes; then
  4484. cat >>confdefs.h <<_ACEOF
  4485. #define HAVE_LIBDL 1
  4486. _ACEOF
  4487. LIBS="-ldl $LIBS"
  4488. fi
  4489. { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4490. $as_echo_n "checking for main in -lsocket... " >&6; }
  4491. if test "${ac_cv_lib_socket_main+set}" = set; then
  4492. $as_echo_n "(cached) " >&6
  4493. else
  4494. ac_check_lib_save_LIBS=$LIBS
  4495. LIBS="-lsocket $LIBS"
  4496. cat >conftest.$ac_ext <<_ACEOF
  4497. /* confdefs.h. */
  4498. _ACEOF
  4499. cat confdefs.h >>conftest.$ac_ext
  4500. cat >>conftest.$ac_ext <<_ACEOF
  4501. /* end confdefs.h. */
  4502. int
  4503. main ()
  4504. {
  4505. return main ();
  4506. ;
  4507. return 0;
  4508. }
  4509. _ACEOF
  4510. rm -f conftest.$ac_objext conftest$ac_exeext
  4511. if { (ac_try="$ac_link"
  4512. case "(($ac_try" in
  4513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4514. *) ac_try_echo=$ac_try;;
  4515. esac
  4516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4517. $as_echo "$ac_try_echo") >&5
  4518. (eval "$ac_link") 2>conftest.er1
  4519. ac_status=$?
  4520. grep -v '^ *+' conftest.er1 >conftest.err
  4521. rm -f conftest.er1
  4522. cat conftest.err >&5
  4523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); } && {
  4525. test -z "$ac_cxx_werror_flag" ||
  4526. test ! -s conftest.err
  4527. } && test -s conftest$ac_exeext && {
  4528. test "$cross_compiling" = yes ||
  4529. $as_test_x conftest$ac_exeext
  4530. }; then
  4531. ac_cv_lib_socket_main=yes
  4532. else
  4533. $as_echo "$as_me: failed program was:" >&5
  4534. sed 's/^/| /' conftest.$ac_ext >&5
  4535. ac_cv_lib_socket_main=no
  4536. fi
  4537. rm -rf conftest.dSYM
  4538. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4539. conftest$ac_exeext conftest.$ac_ext
  4540. LIBS=$ac_check_lib_save_LIBS
  4541. fi
  4542. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4543. $as_echo "$ac_cv_lib_socket_main" >&6; }
  4544. if test "x$ac_cv_lib_socket_main" = x""yes; then
  4545. cat >>confdefs.h <<_ACEOF
  4546. #define HAVE_LIBSOCKET 1
  4547. _ACEOF
  4548. LIBS="-lsocket $LIBS"
  4549. fi
  4550. { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4551. $as_echo_n "checking for main in -lnsl... " >&6; }
  4552. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. ac_check_lib_save_LIBS=$LIBS
  4556. LIBS="-lnsl $LIBS"
  4557. cat >conftest.$ac_ext <<_ACEOF
  4558. /* confdefs.h. */
  4559. _ACEOF
  4560. cat confdefs.h >>conftest.$ac_ext
  4561. cat >>conftest.$ac_ext <<_ACEOF
  4562. /* end confdefs.h. */
  4563. int
  4564. main ()
  4565. {
  4566. return main ();
  4567. ;
  4568. return 0;
  4569. }
  4570. _ACEOF
  4571. rm -f conftest.$ac_objext conftest$ac_exeext
  4572. if { (ac_try="$ac_link"
  4573. case "(($ac_try" in
  4574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4575. *) ac_try_echo=$ac_try;;
  4576. esac
  4577. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4578. $as_echo "$ac_try_echo") >&5
  4579. (eval "$ac_link") 2>conftest.er1
  4580. ac_status=$?
  4581. grep -v '^ *+' conftest.er1 >conftest.err
  4582. rm -f conftest.er1
  4583. cat conftest.err >&5
  4584. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4585. (exit $ac_status); } && {
  4586. test -z "$ac_cxx_werror_flag" ||
  4587. test ! -s conftest.err
  4588. } && test -s conftest$ac_exeext && {
  4589. test "$cross_compiling" = yes ||
  4590. $as_test_x conftest$ac_exeext
  4591. }; then
  4592. ac_cv_lib_nsl_main=yes
  4593. else
  4594. $as_echo "$as_me: failed program was:" >&5
  4595. sed 's/^/| /' conftest.$ac_ext >&5
  4596. ac_cv_lib_nsl_main=no
  4597. fi
  4598. rm -rf conftest.dSYM
  4599. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4600. conftest$ac_exeext conftest.$ac_ext
  4601. LIBS=$ac_check_lib_save_LIBS
  4602. fi
  4603. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4604. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  4605. if test "x$ac_cv_lib_nsl_main" = x""yes; then
  4606. cat >>confdefs.h <<_ACEOF
  4607. #define HAVE_LIBNSL 1
  4608. _ACEOF
  4609. LIBS="-lnsl $LIBS"
  4610. fi
  4611. fi
  4612. # Checks for header files
  4613. ac_header_dirent=no
  4614. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4615. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4616. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4617. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  4618. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4619. $as_echo_n "(cached) " >&6
  4620. else
  4621. cat >conftest.$ac_ext <<_ACEOF
  4622. /* confdefs.h. */
  4623. _ACEOF
  4624. cat confdefs.h >>conftest.$ac_ext
  4625. cat >>conftest.$ac_ext <<_ACEOF
  4626. /* end confdefs.h. */
  4627. #include <sys/types.h>
  4628. #include <$ac_hdr>
  4629. int
  4630. main ()
  4631. {
  4632. if ((DIR *) 0)
  4633. return 0;
  4634. ;
  4635. return 0;
  4636. }
  4637. _ACEOF
  4638. rm -f conftest.$ac_objext
  4639. if { (ac_try="$ac_compile"
  4640. case "(($ac_try" in
  4641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4642. *) ac_try_echo=$ac_try;;
  4643. esac
  4644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4645. $as_echo "$ac_try_echo") >&5
  4646. (eval "$ac_compile") 2>conftest.er1
  4647. ac_status=$?
  4648. grep -v '^ *+' conftest.er1 >conftest.err
  4649. rm -f conftest.er1
  4650. cat conftest.err >&5
  4651. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4652. (exit $ac_status); } && {
  4653. test -z "$ac_cxx_werror_flag" ||
  4654. test ! -s conftest.err
  4655. } && test -s conftest.$ac_objext; then
  4656. eval "$as_ac_Header=yes"
  4657. else
  4658. $as_echo "$as_me: failed program was:" >&5
  4659. sed 's/^/| /' conftest.$ac_ext >&5
  4660. eval "$as_ac_Header=no"
  4661. fi
  4662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4663. fi
  4664. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4665. $as_echo "$as_val"'`
  4666. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4667. $as_echo "$ac_res" >&6; }
  4668. as_val=`eval 'as_val=${'$as_ac_Header'}
  4669. $as_echo "$as_val"'`
  4670. if test "x$as_val" = x""yes; then
  4671. cat >>confdefs.h <<_ACEOF
  4672. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4673. _ACEOF
  4674. ac_header_dirent=$ac_hdr; break
  4675. fi
  4676. done
  4677. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4678. if test $ac_header_dirent = dirent.h; then
  4679. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4680. $as_echo_n "checking for library containing opendir... " >&6; }
  4681. if test "${ac_cv_search_opendir+set}" = set; then
  4682. $as_echo_n "(cached) " >&6
  4683. else
  4684. ac_func_search_save_LIBS=$LIBS
  4685. cat >conftest.$ac_ext <<_ACEOF
  4686. /* confdefs.h. */
  4687. _ACEOF
  4688. cat confdefs.h >>conftest.$ac_ext
  4689. cat >>conftest.$ac_ext <<_ACEOF
  4690. /* end confdefs.h. */
  4691. /* Override any GCC internal prototype to avoid an error.
  4692. Use char because int might match the return type of a GCC
  4693. builtin and then its argument prototype would still apply. */
  4694. #ifdef __cplusplus
  4695. extern "C"
  4696. #endif
  4697. char opendir ();
  4698. int
  4699. main ()
  4700. {
  4701. return opendir ();
  4702. ;
  4703. return 0;
  4704. }
  4705. _ACEOF
  4706. for ac_lib in '' dir; do
  4707. if test -z "$ac_lib"; then
  4708. ac_res="none required"
  4709. else
  4710. ac_res=-l$ac_lib
  4711. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4712. fi
  4713. rm -f conftest.$ac_objext conftest$ac_exeext
  4714. if { (ac_try="$ac_link"
  4715. case "(($ac_try" in
  4716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4717. *) ac_try_echo=$ac_try;;
  4718. esac
  4719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4720. $as_echo "$ac_try_echo") >&5
  4721. (eval "$ac_link") 2>conftest.er1
  4722. ac_status=$?
  4723. grep -v '^ *+' conftest.er1 >conftest.err
  4724. rm -f conftest.er1
  4725. cat conftest.err >&5
  4726. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4727. (exit $ac_status); } && {
  4728. test -z "$ac_cxx_werror_flag" ||
  4729. test ! -s conftest.err
  4730. } && test -s conftest$ac_exeext && {
  4731. test "$cross_compiling" = yes ||
  4732. $as_test_x conftest$ac_exeext
  4733. }; then
  4734. ac_cv_search_opendir=$ac_res
  4735. else
  4736. $as_echo "$as_me: failed program was:" >&5
  4737. sed 's/^/| /' conftest.$ac_ext >&5
  4738. fi
  4739. rm -rf conftest.dSYM
  4740. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4741. conftest$ac_exeext
  4742. if test "${ac_cv_search_opendir+set}" = set; then
  4743. break
  4744. fi
  4745. done
  4746. if test "${ac_cv_search_opendir+set}" = set; then
  4747. :
  4748. else
  4749. ac_cv_search_opendir=no
  4750. fi
  4751. rm conftest.$ac_ext
  4752. LIBS=$ac_func_search_save_LIBS
  4753. fi
  4754. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4755. $as_echo "$ac_cv_search_opendir" >&6; }
  4756. ac_res=$ac_cv_search_opendir
  4757. if test "$ac_res" != no; then
  4758. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4759. fi
  4760. else
  4761. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4762. $as_echo_n "checking for library containing opendir... " >&6; }
  4763. if test "${ac_cv_search_opendir+set}" = set; then
  4764. $as_echo_n "(cached) " >&6
  4765. else
  4766. ac_func_search_save_LIBS=$LIBS
  4767. cat >conftest.$ac_ext <<_ACEOF
  4768. /* confdefs.h. */
  4769. _ACEOF
  4770. cat confdefs.h >>conftest.$ac_ext
  4771. cat >>conftest.$ac_ext <<_ACEOF
  4772. /* end confdefs.h. */
  4773. /* Override any GCC internal prototype to avoid an error.
  4774. Use char because int might match the return type of a GCC
  4775. builtin and then its argument prototype would still apply. */
  4776. #ifdef __cplusplus
  4777. extern "C"
  4778. #endif
  4779. char opendir ();
  4780. int
  4781. main ()
  4782. {
  4783. return opendir ();
  4784. ;
  4785. return 0;
  4786. }
  4787. _ACEOF
  4788. for ac_lib in '' x; do
  4789. if test -z "$ac_lib"; then
  4790. ac_res="none required"
  4791. else
  4792. ac_res=-l$ac_lib
  4793. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4794. fi
  4795. rm -f conftest.$ac_objext conftest$ac_exeext
  4796. if { (ac_try="$ac_link"
  4797. case "(($ac_try" in
  4798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4799. *) ac_try_echo=$ac_try;;
  4800. esac
  4801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4802. $as_echo "$ac_try_echo") >&5
  4803. (eval "$ac_link") 2>conftest.er1
  4804. ac_status=$?
  4805. grep -v '^ *+' conftest.er1 >conftest.err
  4806. rm -f conftest.er1
  4807. cat conftest.err >&5
  4808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4809. (exit $ac_status); } && {
  4810. test -z "$ac_cxx_werror_flag" ||
  4811. test ! -s conftest.err
  4812. } && test -s conftest$ac_exeext && {
  4813. test "$cross_compiling" = yes ||
  4814. $as_test_x conftest$ac_exeext
  4815. }; then
  4816. ac_cv_search_opendir=$ac_res
  4817. else
  4818. $as_echo "$as_me: failed program was:" >&5
  4819. sed 's/^/| /' conftest.$ac_ext >&5
  4820. fi
  4821. rm -rf conftest.dSYM
  4822. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4823. conftest$ac_exeext
  4824. if test "${ac_cv_search_opendir+set}" = set; then
  4825. break
  4826. fi
  4827. done
  4828. if test "${ac_cv_search_opendir+set}" = set; then
  4829. :
  4830. else
  4831. ac_cv_search_opendir=no
  4832. fi
  4833. rm conftest.$ac_ext
  4834. LIBS=$ac_func_search_save_LIBS
  4835. fi
  4836. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4837. $as_echo "$ac_cv_search_opendir" >&6; }
  4838. ac_res=$ac_cv_search_opendir
  4839. if test "$ac_res" != no; then
  4840. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4841. fi
  4842. fi
  4843. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4844. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  4845. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4846. $as_echo_n "(cached) " >&6
  4847. else
  4848. cat >conftest.$ac_ext <<_ACEOF
  4849. /* confdefs.h. */
  4850. _ACEOF
  4851. cat confdefs.h >>conftest.$ac_ext
  4852. cat >>conftest.$ac_ext <<_ACEOF
  4853. /* end confdefs.h. */
  4854. #include <sys/types.h>
  4855. #include <sys/wait.h>
  4856. #ifndef WEXITSTATUS
  4857. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4858. #endif
  4859. #ifndef WIFEXITED
  4860. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4861. #endif
  4862. int
  4863. main ()
  4864. {
  4865. int s;
  4866. wait (&s);
  4867. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4868. ;
  4869. return 0;
  4870. }
  4871. _ACEOF
  4872. rm -f conftest.$ac_objext
  4873. if { (ac_try="$ac_compile"
  4874. case "(($ac_try" in
  4875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4876. *) ac_try_echo=$ac_try;;
  4877. esac
  4878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4879. $as_echo "$ac_try_echo") >&5
  4880. (eval "$ac_compile") 2>conftest.er1
  4881. ac_status=$?
  4882. grep -v '^ *+' conftest.er1 >conftest.err
  4883. rm -f conftest.er1
  4884. cat conftest.err >&5
  4885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4886. (exit $ac_status); } && {
  4887. test -z "$ac_cxx_werror_flag" ||
  4888. test ! -s conftest.err
  4889. } && test -s conftest.$ac_objext; then
  4890. ac_cv_header_sys_wait_h=yes
  4891. else
  4892. $as_echo "$as_me: failed program was:" >&5
  4893. sed 's/^/| /' conftest.$ac_ext >&5
  4894. ac_cv_header_sys_wait_h=no
  4895. fi
  4896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4897. fi
  4898. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4899. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  4900. if test $ac_cv_header_sys_wait_h = yes; then
  4901. cat >>confdefs.h <<\_ACEOF
  4902. #define HAVE_SYS_WAIT_H 1
  4903. _ACEOF
  4904. fi
  4905. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4906. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4907. if test "${ac_cv_header_time+set}" = set; then
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. cat >conftest.$ac_ext <<_ACEOF
  4911. /* confdefs.h. */
  4912. _ACEOF
  4913. cat confdefs.h >>conftest.$ac_ext
  4914. cat >>conftest.$ac_ext <<_ACEOF
  4915. /* end confdefs.h. */
  4916. #include <sys/types.h>
  4917. #include <sys/time.h>
  4918. #include <time.h>
  4919. int
  4920. main ()
  4921. {
  4922. if ((struct tm *) 0)
  4923. return 0;
  4924. ;
  4925. return 0;
  4926. }
  4927. _ACEOF
  4928. rm -f conftest.$ac_objext
  4929. if { (ac_try="$ac_compile"
  4930. case "(($ac_try" in
  4931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4932. *) ac_try_echo=$ac_try;;
  4933. esac
  4934. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4935. $as_echo "$ac_try_echo") >&5
  4936. (eval "$ac_compile") 2>conftest.er1
  4937. ac_status=$?
  4938. grep -v '^ *+' conftest.er1 >conftest.err
  4939. rm -f conftest.er1
  4940. cat conftest.err >&5
  4941. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4942. (exit $ac_status); } && {
  4943. test -z "$ac_cxx_werror_flag" ||
  4944. test ! -s conftest.err
  4945. } && test -s conftest.$ac_objext; then
  4946. ac_cv_header_time=yes
  4947. else
  4948. $as_echo "$as_me: failed program was:" >&5
  4949. sed 's/^/| /' conftest.$ac_ext >&5
  4950. ac_cv_header_time=no
  4951. fi
  4952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4953. fi
  4954. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4955. $as_echo "$ac_cv_header_time" >&6; }
  4956. if test $ac_cv_header_time = yes; then
  4957. cat >>confdefs.h <<\_ACEOF
  4958. #define TIME_WITH_SYS_TIME 1
  4959. _ACEOF
  4960. fi
  4961. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4962. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  4963. if test "${ac_cv_header_stat_broken+set}" = set; then
  4964. $as_echo_n "(cached) " >&6
  4965. else
  4966. cat >conftest.$ac_ext <<_ACEOF
  4967. /* confdefs.h. */
  4968. _ACEOF
  4969. cat confdefs.h >>conftest.$ac_ext
  4970. cat >>conftest.$ac_ext <<_ACEOF
  4971. /* end confdefs.h. */
  4972. #include <sys/types.h>
  4973. #include <sys/stat.h>
  4974. #if defined S_ISBLK && defined S_IFDIR
  4975. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4976. #endif
  4977. #if defined S_ISBLK && defined S_IFCHR
  4978. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4979. #endif
  4980. #if defined S_ISLNK && defined S_IFREG
  4981. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4982. #endif
  4983. #if defined S_ISSOCK && defined S_IFREG
  4984. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4985. #endif
  4986. _ACEOF
  4987. rm -f conftest.$ac_objext
  4988. if { (ac_try="$ac_compile"
  4989. case "(($ac_try" in
  4990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4991. *) ac_try_echo=$ac_try;;
  4992. esac
  4993. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4994. $as_echo "$ac_try_echo") >&5
  4995. (eval "$ac_compile") 2>conftest.er1
  4996. ac_status=$?
  4997. grep -v '^ *+' conftest.er1 >conftest.err
  4998. rm -f conftest.er1
  4999. cat conftest.err >&5
  5000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5001. (exit $ac_status); } && {
  5002. test -z "$ac_cxx_werror_flag" ||
  5003. test ! -s conftest.err
  5004. } && test -s conftest.$ac_objext; then
  5005. ac_cv_header_stat_broken=no
  5006. else
  5007. $as_echo "$as_me: failed program was:" >&5
  5008. sed 's/^/| /' conftest.$ac_ext >&5
  5009. ac_cv_header_stat_broken=yes
  5010. fi
  5011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5012. fi
  5013. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5014. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5015. if test $ac_cv_header_stat_broken = yes; then
  5016. cat >>confdefs.h <<\_ACEOF
  5017. #define STAT_MACROS_BROKEN 1
  5018. _ACEOF
  5019. fi
  5020. #checkpoint
  5021. cat >confcache <<\_ACEOF
  5022. # This file is a shell script that caches the results of configure
  5023. # tests run on this system so they can be shared between configure
  5024. # scripts and configure runs, see configure's option --config-cache.
  5025. # It is not useful on other systems. If it contains results you don't
  5026. # want to keep, you may remove or edit it.
  5027. #
  5028. # config.status only pays attention to the cache file if you give it
  5029. # the --recheck option to rerun configure.
  5030. #
  5031. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5032. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5033. # following values.
  5034. _ACEOF
  5035. # The following way of writing the cache mishandles newlines in values,
  5036. # but we know of no workaround that is simple, portable, and efficient.
  5037. # So, we kill variables containing newlines.
  5038. # Ultrix sh set writes to stderr and can't be redirected directly,
  5039. # and sets the high bit in the cache file unless we assign to the vars.
  5040. (
  5041. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5042. eval ac_val=\$$ac_var
  5043. case $ac_val in #(
  5044. *${as_nl}*)
  5045. case $ac_var in #(
  5046. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5047. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5048. esac
  5049. case $ac_var in #(
  5050. _ | IFS | as_nl) ;; #(
  5051. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5052. *) $as_unset $ac_var ;;
  5053. esac ;;
  5054. esac
  5055. done
  5056. (set) 2>&1 |
  5057. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5058. *${as_nl}ac_space=\ *)
  5059. # `set' does not quote correctly, so add quotes (double-quote
  5060. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5061. sed -n \
  5062. "s/'/'\\\\''/g;
  5063. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5064. ;; #(
  5065. *)
  5066. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5067. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5068. ;;
  5069. esac |
  5070. sort
  5071. ) |
  5072. sed '
  5073. /^ac_cv_env_/b end
  5074. t clear
  5075. :clear
  5076. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5077. t end
  5078. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5079. :end' >>confcache
  5080. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5081. if test -w "$cache_file"; then
  5082. test "x$cache_file" != "x/dev/null" &&
  5083. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5084. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5085. cat confcache >$cache_file
  5086. else
  5087. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5088. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5089. fi
  5090. fi
  5091. rm -f confcache
  5092. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5093. do
  5094. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5095. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5096. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5097. $as_echo_n "checking for $ac_header... " >&6; }
  5098. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5099. $as_echo_n "(cached) " >&6
  5100. fi
  5101. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5102. $as_echo "$as_val"'`
  5103. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5104. $as_echo "$ac_res" >&6; }
  5105. else
  5106. # Is the header compilable?
  5107. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5108. $as_echo_n "checking $ac_header usability... " >&6; }
  5109. cat >conftest.$ac_ext <<_ACEOF
  5110. /* confdefs.h. */
  5111. _ACEOF
  5112. cat confdefs.h >>conftest.$ac_ext
  5113. cat >>conftest.$ac_ext <<_ACEOF
  5114. /* end confdefs.h. */
  5115. $ac_includes_default
  5116. #include <$ac_header>
  5117. _ACEOF
  5118. rm -f conftest.$ac_objext
  5119. if { (ac_try="$ac_compile"
  5120. case "(($ac_try" in
  5121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5122. *) ac_try_echo=$ac_try;;
  5123. esac
  5124. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5125. $as_echo "$ac_try_echo") >&5
  5126. (eval "$ac_compile") 2>conftest.er1
  5127. ac_status=$?
  5128. grep -v '^ *+' conftest.er1 >conftest.err
  5129. rm -f conftest.er1
  5130. cat conftest.err >&5
  5131. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5132. (exit $ac_status); } && {
  5133. test -z "$ac_cxx_werror_flag" ||
  5134. test ! -s conftest.err
  5135. } && test -s conftest.$ac_objext; then
  5136. ac_header_compiler=yes
  5137. else
  5138. $as_echo "$as_me: failed program was:" >&5
  5139. sed 's/^/| /' conftest.$ac_ext >&5
  5140. ac_header_compiler=no
  5141. fi
  5142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5143. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5144. $as_echo "$ac_header_compiler" >&6; }
  5145. # Is the header present?
  5146. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5147. $as_echo_n "checking $ac_header presence... " >&6; }
  5148. cat >conftest.$ac_ext <<_ACEOF
  5149. /* confdefs.h. */
  5150. _ACEOF
  5151. cat confdefs.h >>conftest.$ac_ext
  5152. cat >>conftest.$ac_ext <<_ACEOF
  5153. /* end confdefs.h. */
  5154. #include <$ac_header>
  5155. _ACEOF
  5156. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5157. case "(($ac_try" in
  5158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5159. *) ac_try_echo=$ac_try;;
  5160. esac
  5161. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5162. $as_echo "$ac_try_echo") >&5
  5163. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5164. ac_status=$?
  5165. grep -v '^ *+' conftest.er1 >conftest.err
  5166. rm -f conftest.er1
  5167. cat conftest.err >&5
  5168. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5169. (exit $ac_status); } >/dev/null && {
  5170. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5171. test ! -s conftest.err
  5172. }; then
  5173. ac_header_preproc=yes
  5174. else
  5175. $as_echo "$as_me: failed program was:" >&5
  5176. sed 's/^/| /' conftest.$ac_ext >&5
  5177. ac_header_preproc=no
  5178. fi
  5179. rm -f conftest.err conftest.$ac_ext
  5180. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5181. $as_echo "$ac_header_preproc" >&6; }
  5182. # So? What about this header?
  5183. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5184. yes:no: )
  5185. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5186. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5187. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5188. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5189. ac_header_preproc=yes
  5190. ;;
  5191. no:yes:* )
  5192. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5193. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5194. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5195. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5196. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5197. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5198. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5199. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5200. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5201. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5202. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5203. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5204. ;;
  5205. esac
  5206. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5207. $as_echo_n "checking for $ac_header... " >&6; }
  5208. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5209. $as_echo_n "(cached) " >&6
  5210. else
  5211. eval "$as_ac_Header=\$ac_header_preproc"
  5212. fi
  5213. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5214. $as_echo "$as_val"'`
  5215. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5216. $as_echo "$ac_res" >&6; }
  5217. fi
  5218. as_val=`eval 'as_val=${'$as_ac_Header'}
  5219. $as_echo "$as_val"'`
  5220. if test "x$as_val" = x""yes; then
  5221. cat >>confdefs.h <<_ACEOF
  5222. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5223. _ACEOF
  5224. fi
  5225. done
  5226. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  5227. do
  5228. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5229. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5230. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5231. $as_echo_n "checking for $ac_header... " >&6; }
  5232. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5233. $as_echo_n "(cached) " >&6
  5234. fi
  5235. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5236. $as_echo "$as_val"'`
  5237. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5238. $as_echo "$ac_res" >&6; }
  5239. else
  5240. # Is the header compilable?
  5241. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5242. $as_echo_n "checking $ac_header usability... " >&6; }
  5243. cat >conftest.$ac_ext <<_ACEOF
  5244. /* confdefs.h. */
  5245. _ACEOF
  5246. cat confdefs.h >>conftest.$ac_ext
  5247. cat >>conftest.$ac_ext <<_ACEOF
  5248. /* end confdefs.h. */
  5249. $ac_includes_default
  5250. #include <$ac_header>
  5251. _ACEOF
  5252. rm -f conftest.$ac_objext
  5253. if { (ac_try="$ac_compile"
  5254. case "(($ac_try" in
  5255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5256. *) ac_try_echo=$ac_try;;
  5257. esac
  5258. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5259. $as_echo "$ac_try_echo") >&5
  5260. (eval "$ac_compile") 2>conftest.er1
  5261. ac_status=$?
  5262. grep -v '^ *+' conftest.er1 >conftest.err
  5263. rm -f conftest.er1
  5264. cat conftest.err >&5
  5265. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5266. (exit $ac_status); } && {
  5267. test -z "$ac_cxx_werror_flag" ||
  5268. test ! -s conftest.err
  5269. } && test -s conftest.$ac_objext; then
  5270. ac_header_compiler=yes
  5271. else
  5272. $as_echo "$as_me: failed program was:" >&5
  5273. sed 's/^/| /' conftest.$ac_ext >&5
  5274. ac_header_compiler=no
  5275. fi
  5276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5277. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5278. $as_echo "$ac_header_compiler" >&6; }
  5279. # Is the header present?
  5280. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5281. $as_echo_n "checking $ac_header presence... " >&6; }
  5282. cat >conftest.$ac_ext <<_ACEOF
  5283. /* confdefs.h. */
  5284. _ACEOF
  5285. cat confdefs.h >>conftest.$ac_ext
  5286. cat >>conftest.$ac_ext <<_ACEOF
  5287. /* end confdefs.h. */
  5288. #include <$ac_header>
  5289. _ACEOF
  5290. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5291. case "(($ac_try" in
  5292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5293. *) ac_try_echo=$ac_try;;
  5294. esac
  5295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5296. $as_echo "$ac_try_echo") >&5
  5297. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5298. ac_status=$?
  5299. grep -v '^ *+' conftest.er1 >conftest.err
  5300. rm -f conftest.er1
  5301. cat conftest.err >&5
  5302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5303. (exit $ac_status); } >/dev/null && {
  5304. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5305. test ! -s conftest.err
  5306. }; then
  5307. ac_header_preproc=yes
  5308. else
  5309. $as_echo "$as_me: failed program was:" >&5
  5310. sed 's/^/| /' conftest.$ac_ext >&5
  5311. ac_header_preproc=no
  5312. fi
  5313. rm -f conftest.err conftest.$ac_ext
  5314. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5315. $as_echo "$ac_header_preproc" >&6; }
  5316. # So? What about this header?
  5317. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5318. yes:no: )
  5319. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5320. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5321. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5322. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5323. ac_header_preproc=yes
  5324. ;;
  5325. no:yes:* )
  5326. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5327. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5328. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5329. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5330. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5331. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5332. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5333. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5334. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5335. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5336. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5337. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5338. ;;
  5339. esac
  5340. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5341. $as_echo_n "checking for $ac_header... " >&6; }
  5342. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5343. $as_echo_n "(cached) " >&6
  5344. else
  5345. eval "$as_ac_Header=\$ac_header_preproc"
  5346. fi
  5347. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5348. $as_echo "$as_val"'`
  5349. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5350. $as_echo "$ac_res" >&6; }
  5351. fi
  5352. as_val=`eval 'as_val=${'$as_ac_Header'}
  5353. $as_echo "$as_val"'`
  5354. if test "x$as_val" = x""yes; then
  5355. cat >>confdefs.h <<_ACEOF
  5356. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5357. _ACEOF
  5358. fi
  5359. done
  5360. #checkpoint
  5361. cat >confcache <<\_ACEOF
  5362. # This file is a shell script that caches the results of configure
  5363. # tests run on this system so they can be shared between configure
  5364. # scripts and configure runs, see configure's option --config-cache.
  5365. # It is not useful on other systems. If it contains results you don't
  5366. # want to keep, you may remove or edit it.
  5367. #
  5368. # config.status only pays attention to the cache file if you give it
  5369. # the --recheck option to rerun configure.
  5370. #
  5371. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5372. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5373. # following values.
  5374. _ACEOF
  5375. # The following way of writing the cache mishandles newlines in values,
  5376. # but we know of no workaround that is simple, portable, and efficient.
  5377. # So, we kill variables containing newlines.
  5378. # Ultrix sh set writes to stderr and can't be redirected directly,
  5379. # and sets the high bit in the cache file unless we assign to the vars.
  5380. (
  5381. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5382. eval ac_val=\$$ac_var
  5383. case $ac_val in #(
  5384. *${as_nl}*)
  5385. case $ac_var in #(
  5386. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  5387. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5388. esac
  5389. case $ac_var in #(
  5390. _ | IFS | as_nl) ;; #(
  5391. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5392. *) $as_unset $ac_var ;;
  5393. esac ;;
  5394. esac
  5395. done
  5396. (set) 2>&1 |
  5397. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5398. *${as_nl}ac_space=\ *)
  5399. # `set' does not quote correctly, so add quotes (double-quote
  5400. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5401. sed -n \
  5402. "s/'/'\\\\''/g;
  5403. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5404. ;; #(
  5405. *)
  5406. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5407. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5408. ;;
  5409. esac |
  5410. sort
  5411. ) |
  5412. sed '
  5413. /^ac_cv_env_/b end
  5414. t clear
  5415. :clear
  5416. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5417. t end
  5418. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5419. :end' >>confcache
  5420. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5421. if test -w "$cache_file"; then
  5422. test "x$cache_file" != "x/dev/null" &&
  5423. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5424. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5425. cat confcache >$cache_file
  5426. else
  5427. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5428. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5429. fi
  5430. fi
  5431. rm -f confcache
  5432. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5433. #AC_CHECK_HEADERS(zlib.h)
  5434. #EGG_CHECK_ZLIB
  5435. #EGG_CHECK_SSL
  5436. #AC_SUBST(ZLIB)dnl
  5437. #AC_SUBST(SSL)dnl
  5438. # Checks for typedefs, structures, and compiler characteristics
  5439. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  5440. $as_echo_n "checking for pid_t... " >&6; }
  5441. if test "${ac_cv_type_pid_t+set}" = set; then
  5442. $as_echo_n "(cached) " >&6
  5443. else
  5444. ac_cv_type_pid_t=no
  5445. cat >conftest.$ac_ext <<_ACEOF
  5446. /* confdefs.h. */
  5447. _ACEOF
  5448. cat confdefs.h >>conftest.$ac_ext
  5449. cat >>conftest.$ac_ext <<_ACEOF
  5450. /* end confdefs.h. */
  5451. $ac_includes_default
  5452. int
  5453. main ()
  5454. {
  5455. if (sizeof (pid_t))
  5456. return 0;
  5457. ;
  5458. return 0;
  5459. }
  5460. _ACEOF
  5461. rm -f conftest.$ac_objext
  5462. if { (ac_try="$ac_compile"
  5463. case "(($ac_try" in
  5464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5465. *) ac_try_echo=$ac_try;;
  5466. esac
  5467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5468. $as_echo "$ac_try_echo") >&5
  5469. (eval "$ac_compile") 2>conftest.er1
  5470. ac_status=$?
  5471. grep -v '^ *+' conftest.er1 >conftest.err
  5472. rm -f conftest.er1
  5473. cat conftest.err >&5
  5474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5475. (exit $ac_status); } && {
  5476. test -z "$ac_cxx_werror_flag" ||
  5477. test ! -s conftest.err
  5478. } && test -s conftest.$ac_objext; then
  5479. cat >conftest.$ac_ext <<_ACEOF
  5480. /* confdefs.h. */
  5481. _ACEOF
  5482. cat confdefs.h >>conftest.$ac_ext
  5483. cat >>conftest.$ac_ext <<_ACEOF
  5484. /* end confdefs.h. */
  5485. $ac_includes_default
  5486. int
  5487. main ()
  5488. {
  5489. if (sizeof ((pid_t)))
  5490. return 0;
  5491. ;
  5492. return 0;
  5493. }
  5494. _ACEOF
  5495. rm -f conftest.$ac_objext
  5496. if { (ac_try="$ac_compile"
  5497. case "(($ac_try" in
  5498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5499. *) ac_try_echo=$ac_try;;
  5500. esac
  5501. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5502. $as_echo "$ac_try_echo") >&5
  5503. (eval "$ac_compile") 2>conftest.er1
  5504. ac_status=$?
  5505. grep -v '^ *+' conftest.er1 >conftest.err
  5506. rm -f conftest.er1
  5507. cat conftest.err >&5
  5508. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5509. (exit $ac_status); } && {
  5510. test -z "$ac_cxx_werror_flag" ||
  5511. test ! -s conftest.err
  5512. } && test -s conftest.$ac_objext; then
  5513. :
  5514. else
  5515. $as_echo "$as_me: failed program was:" >&5
  5516. sed 's/^/| /' conftest.$ac_ext >&5
  5517. ac_cv_type_pid_t=yes
  5518. fi
  5519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5520. else
  5521. $as_echo "$as_me: failed program was:" >&5
  5522. sed 's/^/| /' conftest.$ac_ext >&5
  5523. fi
  5524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5525. fi
  5526. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5527. $as_echo "$ac_cv_type_pid_t" >&6; }
  5528. if test "x$ac_cv_type_pid_t" = x""yes; then
  5529. :
  5530. else
  5531. cat >>confdefs.h <<_ACEOF
  5532. #define pid_t int
  5533. _ACEOF
  5534. fi
  5535. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  5536. $as_echo_n "checking for size_t... " >&6; }
  5537. if test "${ac_cv_type_size_t+set}" = set; then
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. ac_cv_type_size_t=no
  5541. cat >conftest.$ac_ext <<_ACEOF
  5542. /* confdefs.h. */
  5543. _ACEOF
  5544. cat confdefs.h >>conftest.$ac_ext
  5545. cat >>conftest.$ac_ext <<_ACEOF
  5546. /* end confdefs.h. */
  5547. $ac_includes_default
  5548. int
  5549. main ()
  5550. {
  5551. if (sizeof (size_t))
  5552. return 0;
  5553. ;
  5554. return 0;
  5555. }
  5556. _ACEOF
  5557. rm -f conftest.$ac_objext
  5558. if { (ac_try="$ac_compile"
  5559. case "(($ac_try" in
  5560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5561. *) ac_try_echo=$ac_try;;
  5562. esac
  5563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5564. $as_echo "$ac_try_echo") >&5
  5565. (eval "$ac_compile") 2>conftest.er1
  5566. ac_status=$?
  5567. grep -v '^ *+' conftest.er1 >conftest.err
  5568. rm -f conftest.er1
  5569. cat conftest.err >&5
  5570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5571. (exit $ac_status); } && {
  5572. test -z "$ac_cxx_werror_flag" ||
  5573. test ! -s conftest.err
  5574. } && test -s conftest.$ac_objext; then
  5575. cat >conftest.$ac_ext <<_ACEOF
  5576. /* confdefs.h. */
  5577. _ACEOF
  5578. cat confdefs.h >>conftest.$ac_ext
  5579. cat >>conftest.$ac_ext <<_ACEOF
  5580. /* end confdefs.h. */
  5581. $ac_includes_default
  5582. int
  5583. main ()
  5584. {
  5585. if (sizeof ((size_t)))
  5586. return 0;
  5587. ;
  5588. return 0;
  5589. }
  5590. _ACEOF
  5591. rm -f conftest.$ac_objext
  5592. if { (ac_try="$ac_compile"
  5593. case "(($ac_try" in
  5594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5595. *) ac_try_echo=$ac_try;;
  5596. esac
  5597. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5598. $as_echo "$ac_try_echo") >&5
  5599. (eval "$ac_compile") 2>conftest.er1
  5600. ac_status=$?
  5601. grep -v '^ *+' conftest.er1 >conftest.err
  5602. rm -f conftest.er1
  5603. cat conftest.err >&5
  5604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5605. (exit $ac_status); } && {
  5606. test -z "$ac_cxx_werror_flag" ||
  5607. test ! -s conftest.err
  5608. } && test -s conftest.$ac_objext; then
  5609. :
  5610. else
  5611. $as_echo "$as_me: failed program was:" >&5
  5612. sed 's/^/| /' conftest.$ac_ext >&5
  5613. ac_cv_type_size_t=yes
  5614. fi
  5615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5616. else
  5617. $as_echo "$as_me: failed program was:" >&5
  5618. sed 's/^/| /' conftest.$ac_ext >&5
  5619. fi
  5620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5621. fi
  5622. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5623. $as_echo "$ac_cv_type_size_t" >&6; }
  5624. if test "x$ac_cv_type_size_t" = x""yes; then
  5625. :
  5626. else
  5627. cat >>confdefs.h <<_ACEOF
  5628. #define size_t unsigned int
  5629. _ACEOF
  5630. fi
  5631. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5632. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5633. if test "${ac_cv_type_uid_t+set}" = set; then
  5634. $as_echo_n "(cached) " >&6
  5635. else
  5636. cat >conftest.$ac_ext <<_ACEOF
  5637. /* confdefs.h. */
  5638. _ACEOF
  5639. cat confdefs.h >>conftest.$ac_ext
  5640. cat >>conftest.$ac_ext <<_ACEOF
  5641. /* end confdefs.h. */
  5642. #include <sys/types.h>
  5643. _ACEOF
  5644. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5645. $EGREP "uid_t" >/dev/null 2>&1; then
  5646. ac_cv_type_uid_t=yes
  5647. else
  5648. ac_cv_type_uid_t=no
  5649. fi
  5650. rm -f conftest*
  5651. fi
  5652. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5653. $as_echo "$ac_cv_type_uid_t" >&6; }
  5654. if test $ac_cv_type_uid_t = no; then
  5655. cat >>confdefs.h <<\_ACEOF
  5656. #define uid_t int
  5657. _ACEOF
  5658. cat >>confdefs.h <<\_ACEOF
  5659. #define gid_t int
  5660. _ACEOF
  5661. fi
  5662. #AC_C_CONST
  5663. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  5664. $as_echo_n "checking for working volatile... " >&6; }
  5665. if test "${ac_cv_c_volatile+set}" = set; then
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. cat >conftest.$ac_ext <<_ACEOF
  5669. /* confdefs.h. */
  5670. _ACEOF
  5671. cat confdefs.h >>conftest.$ac_ext
  5672. cat >>conftest.$ac_ext <<_ACEOF
  5673. /* end confdefs.h. */
  5674. int
  5675. main ()
  5676. {
  5677. volatile int x;
  5678. int * volatile y = (int *) 0;
  5679. return !x && !y;
  5680. ;
  5681. return 0;
  5682. }
  5683. _ACEOF
  5684. rm -f conftest.$ac_objext
  5685. if { (ac_try="$ac_compile"
  5686. case "(($ac_try" in
  5687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5688. *) ac_try_echo=$ac_try;;
  5689. esac
  5690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5691. $as_echo "$ac_try_echo") >&5
  5692. (eval "$ac_compile") 2>conftest.er1
  5693. ac_status=$?
  5694. grep -v '^ *+' conftest.er1 >conftest.err
  5695. rm -f conftest.er1
  5696. cat conftest.err >&5
  5697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5698. (exit $ac_status); } && {
  5699. test -z "$ac_cxx_werror_flag" ||
  5700. test ! -s conftest.err
  5701. } && test -s conftest.$ac_objext; then
  5702. ac_cv_c_volatile=yes
  5703. else
  5704. $as_echo "$as_me: failed program was:" >&5
  5705. sed 's/^/| /' conftest.$ac_ext >&5
  5706. ac_cv_c_volatile=no
  5707. fi
  5708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5709. fi
  5710. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5711. $as_echo "$ac_cv_c_volatile" >&6; }
  5712. if test $ac_cv_c_volatile = no; then
  5713. cat >>confdefs.h <<\_ACEOF
  5714. #define volatile /**/
  5715. _ACEOF
  5716. fi
  5717. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5718. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5719. if test "${ac_cv_c_bigendian+set}" = set; then
  5720. $as_echo_n "(cached) " >&6
  5721. else
  5722. ac_cv_c_bigendian=unknown
  5723. # See if we're dealing with a universal compiler.
  5724. cat >conftest.$ac_ext <<_ACEOF
  5725. /* confdefs.h. */
  5726. _ACEOF
  5727. cat confdefs.h >>conftest.$ac_ext
  5728. cat >>conftest.$ac_ext <<_ACEOF
  5729. /* end confdefs.h. */
  5730. #ifndef __APPLE_CC__
  5731. not a universal capable compiler
  5732. #endif
  5733. typedef int dummy;
  5734. _ACEOF
  5735. rm -f conftest.$ac_objext
  5736. if { (ac_try="$ac_compile"
  5737. case "(($ac_try" in
  5738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5739. *) ac_try_echo=$ac_try;;
  5740. esac
  5741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5742. $as_echo "$ac_try_echo") >&5
  5743. (eval "$ac_compile") 2>conftest.er1
  5744. ac_status=$?
  5745. grep -v '^ *+' conftest.er1 >conftest.err
  5746. rm -f conftest.er1
  5747. cat conftest.err >&5
  5748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5749. (exit $ac_status); } && {
  5750. test -z "$ac_cxx_werror_flag" ||
  5751. test ! -s conftest.err
  5752. } && test -s conftest.$ac_objext; then
  5753. # Check for potential -arch flags. It is not universal unless
  5754. # there are some -arch flags. Note that *ppc* also matches
  5755. # ppc64. This check is also rather less than ideal.
  5756. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  5757. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  5758. esac
  5759. else
  5760. $as_echo "$as_me: failed program was:" >&5
  5761. sed 's/^/| /' conftest.$ac_ext >&5
  5762. fi
  5763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5764. if test $ac_cv_c_bigendian = unknown; then
  5765. # See if sys/param.h defines the BYTE_ORDER macro.
  5766. cat >conftest.$ac_ext <<_ACEOF
  5767. /* confdefs.h. */
  5768. _ACEOF
  5769. cat confdefs.h >>conftest.$ac_ext
  5770. cat >>conftest.$ac_ext <<_ACEOF
  5771. /* end confdefs.h. */
  5772. #include <sys/types.h>
  5773. #include <sys/param.h>
  5774. int
  5775. main ()
  5776. {
  5777. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5778. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5779. && LITTLE_ENDIAN)
  5780. bogus endian macros
  5781. #endif
  5782. ;
  5783. return 0;
  5784. }
  5785. _ACEOF
  5786. rm -f conftest.$ac_objext
  5787. if { (ac_try="$ac_compile"
  5788. case "(($ac_try" in
  5789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5790. *) ac_try_echo=$ac_try;;
  5791. esac
  5792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5793. $as_echo "$ac_try_echo") >&5
  5794. (eval "$ac_compile") 2>conftest.er1
  5795. ac_status=$?
  5796. grep -v '^ *+' conftest.er1 >conftest.err
  5797. rm -f conftest.er1
  5798. cat conftest.err >&5
  5799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5800. (exit $ac_status); } && {
  5801. test -z "$ac_cxx_werror_flag" ||
  5802. test ! -s conftest.err
  5803. } && test -s conftest.$ac_objext; then
  5804. # It does; now see whether it defined to BIG_ENDIAN or not.
  5805. cat >conftest.$ac_ext <<_ACEOF
  5806. /* confdefs.h. */
  5807. _ACEOF
  5808. cat confdefs.h >>conftest.$ac_ext
  5809. cat >>conftest.$ac_ext <<_ACEOF
  5810. /* end confdefs.h. */
  5811. #include <sys/types.h>
  5812. #include <sys/param.h>
  5813. int
  5814. main ()
  5815. {
  5816. #if BYTE_ORDER != BIG_ENDIAN
  5817. not big endian
  5818. #endif
  5819. ;
  5820. return 0;
  5821. }
  5822. _ACEOF
  5823. rm -f conftest.$ac_objext
  5824. if { (ac_try="$ac_compile"
  5825. case "(($ac_try" in
  5826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5827. *) ac_try_echo=$ac_try;;
  5828. esac
  5829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5830. $as_echo "$ac_try_echo") >&5
  5831. (eval "$ac_compile") 2>conftest.er1
  5832. ac_status=$?
  5833. grep -v '^ *+' conftest.er1 >conftest.err
  5834. rm -f conftest.er1
  5835. cat conftest.err >&5
  5836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5837. (exit $ac_status); } && {
  5838. test -z "$ac_cxx_werror_flag" ||
  5839. test ! -s conftest.err
  5840. } && test -s conftest.$ac_objext; then
  5841. ac_cv_c_bigendian=yes
  5842. else
  5843. $as_echo "$as_me: failed program was:" >&5
  5844. sed 's/^/| /' conftest.$ac_ext >&5
  5845. ac_cv_c_bigendian=no
  5846. fi
  5847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5848. else
  5849. $as_echo "$as_me: failed program was:" >&5
  5850. sed 's/^/| /' conftest.$ac_ext >&5
  5851. fi
  5852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5853. fi
  5854. if test $ac_cv_c_bigendian = unknown; then
  5855. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5856. cat >conftest.$ac_ext <<_ACEOF
  5857. /* confdefs.h. */
  5858. _ACEOF
  5859. cat confdefs.h >>conftest.$ac_ext
  5860. cat >>conftest.$ac_ext <<_ACEOF
  5861. /* end confdefs.h. */
  5862. #include <limits.h>
  5863. int
  5864. main ()
  5865. {
  5866. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5867. bogus endian macros
  5868. #endif
  5869. ;
  5870. return 0;
  5871. }
  5872. _ACEOF
  5873. rm -f conftest.$ac_objext
  5874. if { (ac_try="$ac_compile"
  5875. case "(($ac_try" in
  5876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5877. *) ac_try_echo=$ac_try;;
  5878. esac
  5879. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5880. $as_echo "$ac_try_echo") >&5
  5881. (eval "$ac_compile") 2>conftest.er1
  5882. ac_status=$?
  5883. grep -v '^ *+' conftest.er1 >conftest.err
  5884. rm -f conftest.er1
  5885. cat conftest.err >&5
  5886. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5887. (exit $ac_status); } && {
  5888. test -z "$ac_cxx_werror_flag" ||
  5889. test ! -s conftest.err
  5890. } && test -s conftest.$ac_objext; then
  5891. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5892. cat >conftest.$ac_ext <<_ACEOF
  5893. /* confdefs.h. */
  5894. _ACEOF
  5895. cat confdefs.h >>conftest.$ac_ext
  5896. cat >>conftest.$ac_ext <<_ACEOF
  5897. /* end confdefs.h. */
  5898. #include <limits.h>
  5899. int
  5900. main ()
  5901. {
  5902. #ifndef _BIG_ENDIAN
  5903. not big endian
  5904. #endif
  5905. ;
  5906. return 0;
  5907. }
  5908. _ACEOF
  5909. rm -f conftest.$ac_objext
  5910. if { (ac_try="$ac_compile"
  5911. case "(($ac_try" in
  5912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5913. *) ac_try_echo=$ac_try;;
  5914. esac
  5915. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5916. $as_echo "$ac_try_echo") >&5
  5917. (eval "$ac_compile") 2>conftest.er1
  5918. ac_status=$?
  5919. grep -v '^ *+' conftest.er1 >conftest.err
  5920. rm -f conftest.er1
  5921. cat conftest.err >&5
  5922. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5923. (exit $ac_status); } && {
  5924. test -z "$ac_cxx_werror_flag" ||
  5925. test ! -s conftest.err
  5926. } && test -s conftest.$ac_objext; then
  5927. ac_cv_c_bigendian=yes
  5928. else
  5929. $as_echo "$as_me: failed program was:" >&5
  5930. sed 's/^/| /' conftest.$ac_ext >&5
  5931. ac_cv_c_bigendian=no
  5932. fi
  5933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5934. else
  5935. $as_echo "$as_me: failed program was:" >&5
  5936. sed 's/^/| /' conftest.$ac_ext >&5
  5937. fi
  5938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5939. fi
  5940. if test $ac_cv_c_bigendian = unknown; then
  5941. # Compile a test program.
  5942. if test "$cross_compiling" = yes; then
  5943. # Try to guess by grepping values from an object file.
  5944. cat >conftest.$ac_ext <<_ACEOF
  5945. /* confdefs.h. */
  5946. _ACEOF
  5947. cat confdefs.h >>conftest.$ac_ext
  5948. cat >>conftest.$ac_ext <<_ACEOF
  5949. /* end confdefs.h. */
  5950. short int ascii_mm[] =
  5951. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5952. short int ascii_ii[] =
  5953. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5954. int use_ascii (int i) {
  5955. return ascii_mm[i] + ascii_ii[i];
  5956. }
  5957. short int ebcdic_ii[] =
  5958. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5959. short int ebcdic_mm[] =
  5960. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5961. int use_ebcdic (int i) {
  5962. return ebcdic_mm[i] + ebcdic_ii[i];
  5963. }
  5964. extern int foo;
  5965. int
  5966. main ()
  5967. {
  5968. return use_ascii (foo) == use_ebcdic (foo);
  5969. ;
  5970. return 0;
  5971. }
  5972. _ACEOF
  5973. rm -f conftest.$ac_objext
  5974. if { (ac_try="$ac_compile"
  5975. case "(($ac_try" in
  5976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5977. *) ac_try_echo=$ac_try;;
  5978. esac
  5979. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5980. $as_echo "$ac_try_echo") >&5
  5981. (eval "$ac_compile") 2>conftest.er1
  5982. ac_status=$?
  5983. grep -v '^ *+' conftest.er1 >conftest.err
  5984. rm -f conftest.er1
  5985. cat conftest.err >&5
  5986. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5987. (exit $ac_status); } && {
  5988. test -z "$ac_cxx_werror_flag" ||
  5989. test ! -s conftest.err
  5990. } && test -s conftest.$ac_objext; then
  5991. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5992. ac_cv_c_bigendian=yes
  5993. fi
  5994. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5995. if test "$ac_cv_c_bigendian" = unknown; then
  5996. ac_cv_c_bigendian=no
  5997. else
  5998. # finding both strings is unlikely to happen, but who knows?
  5999. ac_cv_c_bigendian=unknown
  6000. fi
  6001. fi
  6002. else
  6003. $as_echo "$as_me: failed program was:" >&5
  6004. sed 's/^/| /' conftest.$ac_ext >&5
  6005. fi
  6006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6007. else
  6008. cat >conftest.$ac_ext <<_ACEOF
  6009. /* confdefs.h. */
  6010. _ACEOF
  6011. cat confdefs.h >>conftest.$ac_ext
  6012. cat >>conftest.$ac_ext <<_ACEOF
  6013. /* end confdefs.h. */
  6014. $ac_includes_default
  6015. int
  6016. main ()
  6017. {
  6018. /* Are we little or big endian? From Harbison&Steele. */
  6019. union
  6020. {
  6021. long int l;
  6022. char c[sizeof (long int)];
  6023. } u;
  6024. u.l = 1;
  6025. return u.c[sizeof (long int) - 1] == 1;
  6026. ;
  6027. return 0;
  6028. }
  6029. _ACEOF
  6030. rm -f conftest$ac_exeext
  6031. if { (ac_try="$ac_link"
  6032. case "(($ac_try" in
  6033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6034. *) ac_try_echo=$ac_try;;
  6035. esac
  6036. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6037. $as_echo "$ac_try_echo") >&5
  6038. (eval "$ac_link") 2>&5
  6039. ac_status=$?
  6040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6041. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6042. { (case "(($ac_try" in
  6043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6044. *) ac_try_echo=$ac_try;;
  6045. esac
  6046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6047. $as_echo "$ac_try_echo") >&5
  6048. (eval "$ac_try") 2>&5
  6049. ac_status=$?
  6050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6051. (exit $ac_status); }; }; then
  6052. ac_cv_c_bigendian=no
  6053. else
  6054. $as_echo "$as_me: program exited with status $ac_status" >&5
  6055. $as_echo "$as_me: failed program was:" >&5
  6056. sed 's/^/| /' conftest.$ac_ext >&5
  6057. ( exit $ac_status )
  6058. ac_cv_c_bigendian=yes
  6059. fi
  6060. rm -rf conftest.dSYM
  6061. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6062. fi
  6063. fi
  6064. fi
  6065. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6066. $as_echo "$ac_cv_c_bigendian" >&6; }
  6067. case $ac_cv_c_bigendian in #(
  6068. yes)
  6069. cat >>confdefs.h <<\_ACEOF
  6070. #define B_ENDIAN 1
  6071. _ACEOF
  6072. ;; #(
  6073. no)
  6074. cat >>confdefs.h <<\_ACEOF
  6075. #define L_ENDIAN 1
  6076. _ACEOF
  6077. ;; #(
  6078. universal)
  6079. cat >>confdefs.h <<\_ACEOF
  6080. #define AC_APPLE_UNIVERSAL_BUILD 1
  6081. _ACEOF
  6082. ;; #(
  6083. *)
  6084. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  6085. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6086. $as_echo "$as_me: error: unknown endianness
  6087. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6088. { (exit 1); exit 1; }; } ;;
  6089. esac
  6090. #AC_C_INLINE
  6091. { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6092. $as_echo_n "checking whether char is unsigned... " >&6; }
  6093. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6094. $as_echo_n "(cached) " >&6
  6095. else
  6096. cat >conftest.$ac_ext <<_ACEOF
  6097. /* confdefs.h. */
  6098. _ACEOF
  6099. cat confdefs.h >>conftest.$ac_ext
  6100. cat >>conftest.$ac_ext <<_ACEOF
  6101. /* end confdefs.h. */
  6102. $ac_includes_default
  6103. int
  6104. main ()
  6105. {
  6106. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6107. test_array [0] = 0
  6108. ;
  6109. return 0;
  6110. }
  6111. _ACEOF
  6112. rm -f conftest.$ac_objext
  6113. if { (ac_try="$ac_compile"
  6114. case "(($ac_try" in
  6115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6116. *) ac_try_echo=$ac_try;;
  6117. esac
  6118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6119. $as_echo "$ac_try_echo") >&5
  6120. (eval "$ac_compile") 2>conftest.er1
  6121. ac_status=$?
  6122. grep -v '^ *+' conftest.er1 >conftest.err
  6123. rm -f conftest.er1
  6124. cat conftest.err >&5
  6125. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6126. (exit $ac_status); } && {
  6127. test -z "$ac_cxx_werror_flag" ||
  6128. test ! -s conftest.err
  6129. } && test -s conftest.$ac_objext; then
  6130. ac_cv_c_char_unsigned=no
  6131. else
  6132. $as_echo "$as_me: failed program was:" >&5
  6133. sed 's/^/| /' conftest.$ac_ext >&5
  6134. ac_cv_c_char_unsigned=yes
  6135. fi
  6136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6137. fi
  6138. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6139. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  6140. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6141. cat >>confdefs.h <<\_ACEOF
  6142. #define __CHAR_UNSIGNED__ 1
  6143. _ACEOF
  6144. fi
  6145. #AC_C_STRINGIZE
  6146. #AC_C_PROTOTYPES
  6147. #checkpoint
  6148. cat >confcache <<\_ACEOF
  6149. # This file is a shell script that caches the results of configure
  6150. # tests run on this system so they can be shared between configure
  6151. # scripts and configure runs, see configure's option --config-cache.
  6152. # It is not useful on other systems. If it contains results you don't
  6153. # want to keep, you may remove or edit it.
  6154. #
  6155. # config.status only pays attention to the cache file if you give it
  6156. # the --recheck option to rerun configure.
  6157. #
  6158. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6159. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6160. # following values.
  6161. _ACEOF
  6162. # The following way of writing the cache mishandles newlines in values,
  6163. # but we know of no workaround that is simple, portable, and efficient.
  6164. # So, we kill variables containing newlines.
  6165. # Ultrix sh set writes to stderr and can't be redirected directly,
  6166. # and sets the high bit in the cache file unless we assign to the vars.
  6167. (
  6168. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6169. eval ac_val=\$$ac_var
  6170. case $ac_val in #(
  6171. *${as_nl}*)
  6172. case $ac_var in #(
  6173. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  6174. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6175. esac
  6176. case $ac_var in #(
  6177. _ | IFS | as_nl) ;; #(
  6178. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6179. *) $as_unset $ac_var ;;
  6180. esac ;;
  6181. esac
  6182. done
  6183. (set) 2>&1 |
  6184. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6185. *${as_nl}ac_space=\ *)
  6186. # `set' does not quote correctly, so add quotes (double-quote
  6187. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6188. sed -n \
  6189. "s/'/'\\\\''/g;
  6190. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6191. ;; #(
  6192. *)
  6193. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6194. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6195. ;;
  6196. esac |
  6197. sort
  6198. ) |
  6199. sed '
  6200. /^ac_cv_env_/b end
  6201. t clear
  6202. :clear
  6203. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6204. t end
  6205. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6206. :end' >>confcache
  6207. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6208. if test -w "$cache_file"; then
  6209. test "x$cache_file" != "x/dev/null" &&
  6210. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  6211. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6212. cat confcache >$cache_file
  6213. else
  6214. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  6215. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6216. fi
  6217. fi
  6218. rm -f confcache
  6219. # The cast to long int works around a bug in the HP C Compiler
  6220. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6221. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6222. # This bug is HP SR number 8606223364.
  6223. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  6224. $as_echo_n "checking size of short... " >&6; }
  6225. if test "${ac_cv_sizeof_short+set}" = set; then
  6226. $as_echo_n "(cached) " >&6
  6227. else
  6228. if test "$cross_compiling" = yes; then
  6229. # Depending upon the size, compute the lo and hi bounds.
  6230. cat >conftest.$ac_ext <<_ACEOF
  6231. /* confdefs.h. */
  6232. _ACEOF
  6233. cat confdefs.h >>conftest.$ac_ext
  6234. cat >>conftest.$ac_ext <<_ACEOF
  6235. /* end confdefs.h. */
  6236. $ac_includes_default
  6237. int
  6238. main ()
  6239. {
  6240. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  6241. test_array [0] = 0
  6242. ;
  6243. return 0;
  6244. }
  6245. _ACEOF
  6246. rm -f conftest.$ac_objext
  6247. if { (ac_try="$ac_compile"
  6248. case "(($ac_try" in
  6249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6250. *) ac_try_echo=$ac_try;;
  6251. esac
  6252. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6253. $as_echo "$ac_try_echo") >&5
  6254. (eval "$ac_compile") 2>conftest.er1
  6255. ac_status=$?
  6256. grep -v '^ *+' conftest.er1 >conftest.err
  6257. rm -f conftest.er1
  6258. cat conftest.err >&5
  6259. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6260. (exit $ac_status); } && {
  6261. test -z "$ac_cxx_werror_flag" ||
  6262. test ! -s conftest.err
  6263. } && test -s conftest.$ac_objext; then
  6264. ac_lo=0 ac_mid=0
  6265. while :; do
  6266. cat >conftest.$ac_ext <<_ACEOF
  6267. /* confdefs.h. */
  6268. _ACEOF
  6269. cat confdefs.h >>conftest.$ac_ext
  6270. cat >>conftest.$ac_ext <<_ACEOF
  6271. /* end confdefs.h. */
  6272. $ac_includes_default
  6273. int
  6274. main ()
  6275. {
  6276. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6277. test_array [0] = 0
  6278. ;
  6279. return 0;
  6280. }
  6281. _ACEOF
  6282. rm -f conftest.$ac_objext
  6283. if { (ac_try="$ac_compile"
  6284. case "(($ac_try" in
  6285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6286. *) ac_try_echo=$ac_try;;
  6287. esac
  6288. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6289. $as_echo "$ac_try_echo") >&5
  6290. (eval "$ac_compile") 2>conftest.er1
  6291. ac_status=$?
  6292. grep -v '^ *+' conftest.er1 >conftest.err
  6293. rm -f conftest.er1
  6294. cat conftest.err >&5
  6295. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6296. (exit $ac_status); } && {
  6297. test -z "$ac_cxx_werror_flag" ||
  6298. test ! -s conftest.err
  6299. } && test -s conftest.$ac_objext; then
  6300. ac_hi=$ac_mid; break
  6301. else
  6302. $as_echo "$as_me: failed program was:" >&5
  6303. sed 's/^/| /' conftest.$ac_ext >&5
  6304. ac_lo=`expr $ac_mid + 1`
  6305. if test $ac_lo -le $ac_mid; then
  6306. ac_lo= ac_hi=
  6307. break
  6308. fi
  6309. ac_mid=`expr 2 '*' $ac_mid + 1`
  6310. fi
  6311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6312. done
  6313. else
  6314. $as_echo "$as_me: failed program was:" >&5
  6315. sed 's/^/| /' conftest.$ac_ext >&5
  6316. cat >conftest.$ac_ext <<_ACEOF
  6317. /* confdefs.h. */
  6318. _ACEOF
  6319. cat confdefs.h >>conftest.$ac_ext
  6320. cat >>conftest.$ac_ext <<_ACEOF
  6321. /* end confdefs.h. */
  6322. $ac_includes_default
  6323. int
  6324. main ()
  6325. {
  6326. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  6327. test_array [0] = 0
  6328. ;
  6329. return 0;
  6330. }
  6331. _ACEOF
  6332. rm -f conftest.$ac_objext
  6333. if { (ac_try="$ac_compile"
  6334. case "(($ac_try" in
  6335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6336. *) ac_try_echo=$ac_try;;
  6337. esac
  6338. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6339. $as_echo "$ac_try_echo") >&5
  6340. (eval "$ac_compile") 2>conftest.er1
  6341. ac_status=$?
  6342. grep -v '^ *+' conftest.er1 >conftest.err
  6343. rm -f conftest.er1
  6344. cat conftest.err >&5
  6345. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6346. (exit $ac_status); } && {
  6347. test -z "$ac_cxx_werror_flag" ||
  6348. test ! -s conftest.err
  6349. } && test -s conftest.$ac_objext; then
  6350. ac_hi=-1 ac_mid=-1
  6351. while :; do
  6352. cat >conftest.$ac_ext <<_ACEOF
  6353. /* confdefs.h. */
  6354. _ACEOF
  6355. cat confdefs.h >>conftest.$ac_ext
  6356. cat >>conftest.$ac_ext <<_ACEOF
  6357. /* end confdefs.h. */
  6358. $ac_includes_default
  6359. int
  6360. main ()
  6361. {
  6362. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  6363. test_array [0] = 0
  6364. ;
  6365. return 0;
  6366. }
  6367. _ACEOF
  6368. rm -f conftest.$ac_objext
  6369. if { (ac_try="$ac_compile"
  6370. case "(($ac_try" in
  6371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6372. *) ac_try_echo=$ac_try;;
  6373. esac
  6374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6375. $as_echo "$ac_try_echo") >&5
  6376. (eval "$ac_compile") 2>conftest.er1
  6377. ac_status=$?
  6378. grep -v '^ *+' conftest.er1 >conftest.err
  6379. rm -f conftest.er1
  6380. cat conftest.err >&5
  6381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6382. (exit $ac_status); } && {
  6383. test -z "$ac_cxx_werror_flag" ||
  6384. test ! -s conftest.err
  6385. } && test -s conftest.$ac_objext; then
  6386. ac_lo=$ac_mid; break
  6387. else
  6388. $as_echo "$as_me: failed program was:" >&5
  6389. sed 's/^/| /' conftest.$ac_ext >&5
  6390. ac_hi=`expr '(' $ac_mid ')' - 1`
  6391. if test $ac_mid -le $ac_hi; then
  6392. ac_lo= ac_hi=
  6393. break
  6394. fi
  6395. ac_mid=`expr 2 '*' $ac_mid`
  6396. fi
  6397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6398. done
  6399. else
  6400. $as_echo "$as_me: failed program was:" >&5
  6401. sed 's/^/| /' conftest.$ac_ext >&5
  6402. ac_lo= ac_hi=
  6403. fi
  6404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6405. fi
  6406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6407. # Binary search between lo and hi bounds.
  6408. while test "x$ac_lo" != "x$ac_hi"; do
  6409. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6410. cat >conftest.$ac_ext <<_ACEOF
  6411. /* confdefs.h. */
  6412. _ACEOF
  6413. cat confdefs.h >>conftest.$ac_ext
  6414. cat >>conftest.$ac_ext <<_ACEOF
  6415. /* end confdefs.h. */
  6416. $ac_includes_default
  6417. int
  6418. main ()
  6419. {
  6420. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  6421. test_array [0] = 0
  6422. ;
  6423. return 0;
  6424. }
  6425. _ACEOF
  6426. rm -f conftest.$ac_objext
  6427. if { (ac_try="$ac_compile"
  6428. case "(($ac_try" in
  6429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6430. *) ac_try_echo=$ac_try;;
  6431. esac
  6432. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6433. $as_echo "$ac_try_echo") >&5
  6434. (eval "$ac_compile") 2>conftest.er1
  6435. ac_status=$?
  6436. grep -v '^ *+' conftest.er1 >conftest.err
  6437. rm -f conftest.er1
  6438. cat conftest.err >&5
  6439. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6440. (exit $ac_status); } && {
  6441. test -z "$ac_cxx_werror_flag" ||
  6442. test ! -s conftest.err
  6443. } && test -s conftest.$ac_objext; then
  6444. ac_hi=$ac_mid
  6445. else
  6446. $as_echo "$as_me: failed program was:" >&5
  6447. sed 's/^/| /' conftest.$ac_ext >&5
  6448. ac_lo=`expr '(' $ac_mid ')' + 1`
  6449. fi
  6450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6451. done
  6452. case $ac_lo in
  6453. ?*) ac_cv_sizeof_short=$ac_lo;;
  6454. '') if test "$ac_cv_type_short" = yes; then
  6455. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6456. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6457. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6458. See \`config.log' for more details." >&5
  6459. $as_echo "$as_me: error: cannot compute sizeof (short)
  6460. See \`config.log' for more details." >&2;}
  6461. { (exit 77); exit 77; }; }; }
  6462. else
  6463. ac_cv_sizeof_short=0
  6464. fi ;;
  6465. esac
  6466. else
  6467. cat >conftest.$ac_ext <<_ACEOF
  6468. /* confdefs.h. */
  6469. _ACEOF
  6470. cat confdefs.h >>conftest.$ac_ext
  6471. cat >>conftest.$ac_ext <<_ACEOF
  6472. /* end confdefs.h. */
  6473. $ac_includes_default
  6474. static long int longval () { return (long int) (sizeof (short)); }
  6475. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  6476. #include <stdio.h>
  6477. #include <stdlib.h>
  6478. int
  6479. main ()
  6480. {
  6481. FILE *f = fopen ("conftest.val", "w");
  6482. if (! f)
  6483. return 1;
  6484. if (((long int) (sizeof (short))) < 0)
  6485. {
  6486. long int i = longval ();
  6487. if (i != ((long int) (sizeof (short))))
  6488. return 1;
  6489. fprintf (f, "%ld", i);
  6490. }
  6491. else
  6492. {
  6493. unsigned long int i = ulongval ();
  6494. if (i != ((long int) (sizeof (short))))
  6495. return 1;
  6496. fprintf (f, "%lu", i);
  6497. }
  6498. /* Do not output a trailing newline, as this causes \r\n confusion
  6499. on some platforms. */
  6500. return ferror (f) || fclose (f) != 0;
  6501. ;
  6502. return 0;
  6503. }
  6504. _ACEOF
  6505. rm -f conftest$ac_exeext
  6506. if { (ac_try="$ac_link"
  6507. case "(($ac_try" in
  6508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6509. *) ac_try_echo=$ac_try;;
  6510. esac
  6511. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6512. $as_echo "$ac_try_echo") >&5
  6513. (eval "$ac_link") 2>&5
  6514. ac_status=$?
  6515. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6516. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6517. { (case "(($ac_try" in
  6518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6519. *) ac_try_echo=$ac_try;;
  6520. esac
  6521. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6522. $as_echo "$ac_try_echo") >&5
  6523. (eval "$ac_try") 2>&5
  6524. ac_status=$?
  6525. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6526. (exit $ac_status); }; }; then
  6527. ac_cv_sizeof_short=`cat conftest.val`
  6528. else
  6529. $as_echo "$as_me: program exited with status $ac_status" >&5
  6530. $as_echo "$as_me: failed program was:" >&5
  6531. sed 's/^/| /' conftest.$ac_ext >&5
  6532. ( exit $ac_status )
  6533. if test "$ac_cv_type_short" = yes; then
  6534. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6535. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6536. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6537. See \`config.log' for more details." >&5
  6538. $as_echo "$as_me: error: cannot compute sizeof (short)
  6539. See \`config.log' for more details." >&2;}
  6540. { (exit 77); exit 77; }; }; }
  6541. else
  6542. ac_cv_sizeof_short=0
  6543. fi
  6544. fi
  6545. rm -rf conftest.dSYM
  6546. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6547. fi
  6548. rm -f conftest.val
  6549. fi
  6550. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6551. $as_echo "$ac_cv_sizeof_short" >&6; }
  6552. cat >>confdefs.h <<_ACEOF
  6553. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6554. _ACEOF
  6555. # The cast to long int works around a bug in the HP C Compiler
  6556. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6557. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6558. # This bug is HP SR number 8606223364.
  6559. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  6560. $as_echo_n "checking size of int... " >&6; }
  6561. if test "${ac_cv_sizeof_int+set}" = set; then
  6562. $as_echo_n "(cached) " >&6
  6563. else
  6564. if test "$cross_compiling" = yes; then
  6565. # Depending upon the size, compute the lo and hi bounds.
  6566. cat >conftest.$ac_ext <<_ACEOF
  6567. /* confdefs.h. */
  6568. _ACEOF
  6569. cat confdefs.h >>conftest.$ac_ext
  6570. cat >>conftest.$ac_ext <<_ACEOF
  6571. /* end confdefs.h. */
  6572. $ac_includes_default
  6573. int
  6574. main ()
  6575. {
  6576. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  6577. test_array [0] = 0
  6578. ;
  6579. return 0;
  6580. }
  6581. _ACEOF
  6582. rm -f conftest.$ac_objext
  6583. if { (ac_try="$ac_compile"
  6584. case "(($ac_try" in
  6585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6586. *) ac_try_echo=$ac_try;;
  6587. esac
  6588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6589. $as_echo "$ac_try_echo") >&5
  6590. (eval "$ac_compile") 2>conftest.er1
  6591. ac_status=$?
  6592. grep -v '^ *+' conftest.er1 >conftest.err
  6593. rm -f conftest.er1
  6594. cat conftest.err >&5
  6595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6596. (exit $ac_status); } && {
  6597. test -z "$ac_cxx_werror_flag" ||
  6598. test ! -s conftest.err
  6599. } && test -s conftest.$ac_objext; then
  6600. ac_lo=0 ac_mid=0
  6601. while :; do
  6602. cat >conftest.$ac_ext <<_ACEOF
  6603. /* confdefs.h. */
  6604. _ACEOF
  6605. cat confdefs.h >>conftest.$ac_ext
  6606. cat >>conftest.$ac_ext <<_ACEOF
  6607. /* end confdefs.h. */
  6608. $ac_includes_default
  6609. int
  6610. main ()
  6611. {
  6612. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6613. test_array [0] = 0
  6614. ;
  6615. return 0;
  6616. }
  6617. _ACEOF
  6618. rm -f conftest.$ac_objext
  6619. if { (ac_try="$ac_compile"
  6620. case "(($ac_try" in
  6621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6622. *) ac_try_echo=$ac_try;;
  6623. esac
  6624. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6625. $as_echo "$ac_try_echo") >&5
  6626. (eval "$ac_compile") 2>conftest.er1
  6627. ac_status=$?
  6628. grep -v '^ *+' conftest.er1 >conftest.err
  6629. rm -f conftest.er1
  6630. cat conftest.err >&5
  6631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6632. (exit $ac_status); } && {
  6633. test -z "$ac_cxx_werror_flag" ||
  6634. test ! -s conftest.err
  6635. } && test -s conftest.$ac_objext; then
  6636. ac_hi=$ac_mid; break
  6637. else
  6638. $as_echo "$as_me: failed program was:" >&5
  6639. sed 's/^/| /' conftest.$ac_ext >&5
  6640. ac_lo=`expr $ac_mid + 1`
  6641. if test $ac_lo -le $ac_mid; then
  6642. ac_lo= ac_hi=
  6643. break
  6644. fi
  6645. ac_mid=`expr 2 '*' $ac_mid + 1`
  6646. fi
  6647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6648. done
  6649. else
  6650. $as_echo "$as_me: failed program was:" >&5
  6651. sed 's/^/| /' conftest.$ac_ext >&5
  6652. cat >conftest.$ac_ext <<_ACEOF
  6653. /* confdefs.h. */
  6654. _ACEOF
  6655. cat confdefs.h >>conftest.$ac_ext
  6656. cat >>conftest.$ac_ext <<_ACEOF
  6657. /* end confdefs.h. */
  6658. $ac_includes_default
  6659. int
  6660. main ()
  6661. {
  6662. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  6663. test_array [0] = 0
  6664. ;
  6665. return 0;
  6666. }
  6667. _ACEOF
  6668. rm -f conftest.$ac_objext
  6669. if { (ac_try="$ac_compile"
  6670. case "(($ac_try" in
  6671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6672. *) ac_try_echo=$ac_try;;
  6673. esac
  6674. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6675. $as_echo "$ac_try_echo") >&5
  6676. (eval "$ac_compile") 2>conftest.er1
  6677. ac_status=$?
  6678. grep -v '^ *+' conftest.er1 >conftest.err
  6679. rm -f conftest.er1
  6680. cat conftest.err >&5
  6681. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6682. (exit $ac_status); } && {
  6683. test -z "$ac_cxx_werror_flag" ||
  6684. test ! -s conftest.err
  6685. } && test -s conftest.$ac_objext; then
  6686. ac_hi=-1 ac_mid=-1
  6687. while :; do
  6688. cat >conftest.$ac_ext <<_ACEOF
  6689. /* confdefs.h. */
  6690. _ACEOF
  6691. cat confdefs.h >>conftest.$ac_ext
  6692. cat >>conftest.$ac_ext <<_ACEOF
  6693. /* end confdefs.h. */
  6694. $ac_includes_default
  6695. int
  6696. main ()
  6697. {
  6698. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  6699. test_array [0] = 0
  6700. ;
  6701. return 0;
  6702. }
  6703. _ACEOF
  6704. rm -f conftest.$ac_objext
  6705. if { (ac_try="$ac_compile"
  6706. case "(($ac_try" in
  6707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6708. *) ac_try_echo=$ac_try;;
  6709. esac
  6710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6711. $as_echo "$ac_try_echo") >&5
  6712. (eval "$ac_compile") 2>conftest.er1
  6713. ac_status=$?
  6714. grep -v '^ *+' conftest.er1 >conftest.err
  6715. rm -f conftest.er1
  6716. cat conftest.err >&5
  6717. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6718. (exit $ac_status); } && {
  6719. test -z "$ac_cxx_werror_flag" ||
  6720. test ! -s conftest.err
  6721. } && test -s conftest.$ac_objext; then
  6722. ac_lo=$ac_mid; break
  6723. else
  6724. $as_echo "$as_me: failed program was:" >&5
  6725. sed 's/^/| /' conftest.$ac_ext >&5
  6726. ac_hi=`expr '(' $ac_mid ')' - 1`
  6727. if test $ac_mid -le $ac_hi; then
  6728. ac_lo= ac_hi=
  6729. break
  6730. fi
  6731. ac_mid=`expr 2 '*' $ac_mid`
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6734. done
  6735. else
  6736. $as_echo "$as_me: failed program was:" >&5
  6737. sed 's/^/| /' conftest.$ac_ext >&5
  6738. ac_lo= ac_hi=
  6739. fi
  6740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6743. # Binary search between lo and hi bounds.
  6744. while test "x$ac_lo" != "x$ac_hi"; do
  6745. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6746. cat >conftest.$ac_ext <<_ACEOF
  6747. /* confdefs.h. */
  6748. _ACEOF
  6749. cat confdefs.h >>conftest.$ac_ext
  6750. cat >>conftest.$ac_ext <<_ACEOF
  6751. /* end confdefs.h. */
  6752. $ac_includes_default
  6753. int
  6754. main ()
  6755. {
  6756. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  6757. test_array [0] = 0
  6758. ;
  6759. return 0;
  6760. }
  6761. _ACEOF
  6762. rm -f conftest.$ac_objext
  6763. if { (ac_try="$ac_compile"
  6764. case "(($ac_try" in
  6765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6766. *) ac_try_echo=$ac_try;;
  6767. esac
  6768. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6769. $as_echo "$ac_try_echo") >&5
  6770. (eval "$ac_compile") 2>conftest.er1
  6771. ac_status=$?
  6772. grep -v '^ *+' conftest.er1 >conftest.err
  6773. rm -f conftest.er1
  6774. cat conftest.err >&5
  6775. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6776. (exit $ac_status); } && {
  6777. test -z "$ac_cxx_werror_flag" ||
  6778. test ! -s conftest.err
  6779. } && test -s conftest.$ac_objext; then
  6780. ac_hi=$ac_mid
  6781. else
  6782. $as_echo "$as_me: failed program was:" >&5
  6783. sed 's/^/| /' conftest.$ac_ext >&5
  6784. ac_lo=`expr '(' $ac_mid ')' + 1`
  6785. fi
  6786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6787. done
  6788. case $ac_lo in
  6789. ?*) ac_cv_sizeof_int=$ac_lo;;
  6790. '') if test "$ac_cv_type_int" = yes; then
  6791. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6792. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6793. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6794. See \`config.log' for more details." >&5
  6795. $as_echo "$as_me: error: cannot compute sizeof (int)
  6796. See \`config.log' for more details." >&2;}
  6797. { (exit 77); exit 77; }; }; }
  6798. else
  6799. ac_cv_sizeof_int=0
  6800. fi ;;
  6801. esac
  6802. else
  6803. cat >conftest.$ac_ext <<_ACEOF
  6804. /* confdefs.h. */
  6805. _ACEOF
  6806. cat confdefs.h >>conftest.$ac_ext
  6807. cat >>conftest.$ac_ext <<_ACEOF
  6808. /* end confdefs.h. */
  6809. $ac_includes_default
  6810. static long int longval () { return (long int) (sizeof (int)); }
  6811. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  6812. #include <stdio.h>
  6813. #include <stdlib.h>
  6814. int
  6815. main ()
  6816. {
  6817. FILE *f = fopen ("conftest.val", "w");
  6818. if (! f)
  6819. return 1;
  6820. if (((long int) (sizeof (int))) < 0)
  6821. {
  6822. long int i = longval ();
  6823. if (i != ((long int) (sizeof (int))))
  6824. return 1;
  6825. fprintf (f, "%ld", i);
  6826. }
  6827. else
  6828. {
  6829. unsigned long int i = ulongval ();
  6830. if (i != ((long int) (sizeof (int))))
  6831. return 1;
  6832. fprintf (f, "%lu", i);
  6833. }
  6834. /* Do not output a trailing newline, as this causes \r\n confusion
  6835. on some platforms. */
  6836. return ferror (f) || fclose (f) != 0;
  6837. ;
  6838. return 0;
  6839. }
  6840. _ACEOF
  6841. rm -f conftest$ac_exeext
  6842. if { (ac_try="$ac_link"
  6843. case "(($ac_try" in
  6844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6845. *) ac_try_echo=$ac_try;;
  6846. esac
  6847. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6848. $as_echo "$ac_try_echo") >&5
  6849. (eval "$ac_link") 2>&5
  6850. ac_status=$?
  6851. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6852. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6853. { (case "(($ac_try" in
  6854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6855. *) ac_try_echo=$ac_try;;
  6856. esac
  6857. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6858. $as_echo "$ac_try_echo") >&5
  6859. (eval "$ac_try") 2>&5
  6860. ac_status=$?
  6861. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6862. (exit $ac_status); }; }; then
  6863. ac_cv_sizeof_int=`cat conftest.val`
  6864. else
  6865. $as_echo "$as_me: program exited with status $ac_status" >&5
  6866. $as_echo "$as_me: failed program was:" >&5
  6867. sed 's/^/| /' conftest.$ac_ext >&5
  6868. ( exit $ac_status )
  6869. if test "$ac_cv_type_int" = yes; then
  6870. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6871. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6872. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  6873. See \`config.log' for more details." >&5
  6874. $as_echo "$as_me: error: cannot compute sizeof (int)
  6875. See \`config.log' for more details." >&2;}
  6876. { (exit 77); exit 77; }; }; }
  6877. else
  6878. ac_cv_sizeof_int=0
  6879. fi
  6880. fi
  6881. rm -rf conftest.dSYM
  6882. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6883. fi
  6884. rm -f conftest.val
  6885. fi
  6886. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6887. $as_echo "$ac_cv_sizeof_int" >&6; }
  6888. cat >>confdefs.h <<_ACEOF
  6889. #define SIZEOF_INT $ac_cv_sizeof_int
  6890. _ACEOF
  6891. # The cast to long int works around a bug in the HP C Compiler
  6892. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6893. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6894. # This bug is HP SR number 8606223364.
  6895. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  6896. $as_echo_n "checking size of long... " >&6; }
  6897. if test "${ac_cv_sizeof_long+set}" = set; then
  6898. $as_echo_n "(cached) " >&6
  6899. else
  6900. if test "$cross_compiling" = yes; then
  6901. # Depending upon the size, compute the lo and hi bounds.
  6902. cat >conftest.$ac_ext <<_ACEOF
  6903. /* confdefs.h. */
  6904. _ACEOF
  6905. cat confdefs.h >>conftest.$ac_ext
  6906. cat >>conftest.$ac_ext <<_ACEOF
  6907. /* end confdefs.h. */
  6908. $ac_includes_default
  6909. int
  6910. main ()
  6911. {
  6912. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  6913. test_array [0] = 0
  6914. ;
  6915. return 0;
  6916. }
  6917. _ACEOF
  6918. rm -f conftest.$ac_objext
  6919. if { (ac_try="$ac_compile"
  6920. case "(($ac_try" in
  6921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6922. *) ac_try_echo=$ac_try;;
  6923. esac
  6924. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6925. $as_echo "$ac_try_echo") >&5
  6926. (eval "$ac_compile") 2>conftest.er1
  6927. ac_status=$?
  6928. grep -v '^ *+' conftest.er1 >conftest.err
  6929. rm -f conftest.er1
  6930. cat conftest.err >&5
  6931. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6932. (exit $ac_status); } && {
  6933. test -z "$ac_cxx_werror_flag" ||
  6934. test ! -s conftest.err
  6935. } && test -s conftest.$ac_objext; then
  6936. ac_lo=0 ac_mid=0
  6937. while :; do
  6938. cat >conftest.$ac_ext <<_ACEOF
  6939. /* confdefs.h. */
  6940. _ACEOF
  6941. cat confdefs.h >>conftest.$ac_ext
  6942. cat >>conftest.$ac_ext <<_ACEOF
  6943. /* end confdefs.h. */
  6944. $ac_includes_default
  6945. int
  6946. main ()
  6947. {
  6948. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  6949. test_array [0] = 0
  6950. ;
  6951. return 0;
  6952. }
  6953. _ACEOF
  6954. rm -f conftest.$ac_objext
  6955. if { (ac_try="$ac_compile"
  6956. case "(($ac_try" in
  6957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6958. *) ac_try_echo=$ac_try;;
  6959. esac
  6960. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6961. $as_echo "$ac_try_echo") >&5
  6962. (eval "$ac_compile") 2>conftest.er1
  6963. ac_status=$?
  6964. grep -v '^ *+' conftest.er1 >conftest.err
  6965. rm -f conftest.er1
  6966. cat conftest.err >&5
  6967. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6968. (exit $ac_status); } && {
  6969. test -z "$ac_cxx_werror_flag" ||
  6970. test ! -s conftest.err
  6971. } && test -s conftest.$ac_objext; then
  6972. ac_hi=$ac_mid; break
  6973. else
  6974. $as_echo "$as_me: failed program was:" >&5
  6975. sed 's/^/| /' conftest.$ac_ext >&5
  6976. ac_lo=`expr $ac_mid + 1`
  6977. if test $ac_lo -le $ac_mid; then
  6978. ac_lo= ac_hi=
  6979. break
  6980. fi
  6981. ac_mid=`expr 2 '*' $ac_mid + 1`
  6982. fi
  6983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6984. done
  6985. else
  6986. $as_echo "$as_me: failed program was:" >&5
  6987. sed 's/^/| /' conftest.$ac_ext >&5
  6988. cat >conftest.$ac_ext <<_ACEOF
  6989. /* confdefs.h. */
  6990. _ACEOF
  6991. cat confdefs.h >>conftest.$ac_ext
  6992. cat >>conftest.$ac_ext <<_ACEOF
  6993. /* end confdefs.h. */
  6994. $ac_includes_default
  6995. int
  6996. main ()
  6997. {
  6998. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  6999. test_array [0] = 0
  7000. ;
  7001. return 0;
  7002. }
  7003. _ACEOF
  7004. rm -f conftest.$ac_objext
  7005. if { (ac_try="$ac_compile"
  7006. case "(($ac_try" in
  7007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7008. *) ac_try_echo=$ac_try;;
  7009. esac
  7010. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7011. $as_echo "$ac_try_echo") >&5
  7012. (eval "$ac_compile") 2>conftest.er1
  7013. ac_status=$?
  7014. grep -v '^ *+' conftest.er1 >conftest.err
  7015. rm -f conftest.er1
  7016. cat conftest.err >&5
  7017. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7018. (exit $ac_status); } && {
  7019. test -z "$ac_cxx_werror_flag" ||
  7020. test ! -s conftest.err
  7021. } && test -s conftest.$ac_objext; then
  7022. ac_hi=-1 ac_mid=-1
  7023. while :; do
  7024. cat >conftest.$ac_ext <<_ACEOF
  7025. /* confdefs.h. */
  7026. _ACEOF
  7027. cat confdefs.h >>conftest.$ac_ext
  7028. cat >>conftest.$ac_ext <<_ACEOF
  7029. /* end confdefs.h. */
  7030. $ac_includes_default
  7031. int
  7032. main ()
  7033. {
  7034. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  7035. test_array [0] = 0
  7036. ;
  7037. return 0;
  7038. }
  7039. _ACEOF
  7040. rm -f conftest.$ac_objext
  7041. if { (ac_try="$ac_compile"
  7042. case "(($ac_try" in
  7043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7044. *) ac_try_echo=$ac_try;;
  7045. esac
  7046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7047. $as_echo "$ac_try_echo") >&5
  7048. (eval "$ac_compile") 2>conftest.er1
  7049. ac_status=$?
  7050. grep -v '^ *+' conftest.er1 >conftest.err
  7051. rm -f conftest.er1
  7052. cat conftest.err >&5
  7053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7054. (exit $ac_status); } && {
  7055. test -z "$ac_cxx_werror_flag" ||
  7056. test ! -s conftest.err
  7057. } && test -s conftest.$ac_objext; then
  7058. ac_lo=$ac_mid; break
  7059. else
  7060. $as_echo "$as_me: failed program was:" >&5
  7061. sed 's/^/| /' conftest.$ac_ext >&5
  7062. ac_hi=`expr '(' $ac_mid ')' - 1`
  7063. if test $ac_mid -le $ac_hi; then
  7064. ac_lo= ac_hi=
  7065. break
  7066. fi
  7067. ac_mid=`expr 2 '*' $ac_mid`
  7068. fi
  7069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7070. done
  7071. else
  7072. $as_echo "$as_me: failed program was:" >&5
  7073. sed 's/^/| /' conftest.$ac_ext >&5
  7074. ac_lo= ac_hi=
  7075. fi
  7076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7077. fi
  7078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7079. # Binary search between lo and hi bounds.
  7080. while test "x$ac_lo" != "x$ac_hi"; do
  7081. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7082. cat >conftest.$ac_ext <<_ACEOF
  7083. /* confdefs.h. */
  7084. _ACEOF
  7085. cat confdefs.h >>conftest.$ac_ext
  7086. cat >>conftest.$ac_ext <<_ACEOF
  7087. /* end confdefs.h. */
  7088. $ac_includes_default
  7089. int
  7090. main ()
  7091. {
  7092. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  7093. test_array [0] = 0
  7094. ;
  7095. return 0;
  7096. }
  7097. _ACEOF
  7098. rm -f conftest.$ac_objext
  7099. if { (ac_try="$ac_compile"
  7100. case "(($ac_try" in
  7101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7102. *) ac_try_echo=$ac_try;;
  7103. esac
  7104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7105. $as_echo "$ac_try_echo") >&5
  7106. (eval "$ac_compile") 2>conftest.er1
  7107. ac_status=$?
  7108. grep -v '^ *+' conftest.er1 >conftest.err
  7109. rm -f conftest.er1
  7110. cat conftest.err >&5
  7111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7112. (exit $ac_status); } && {
  7113. test -z "$ac_cxx_werror_flag" ||
  7114. test ! -s conftest.err
  7115. } && test -s conftest.$ac_objext; then
  7116. ac_hi=$ac_mid
  7117. else
  7118. $as_echo "$as_me: failed program was:" >&5
  7119. sed 's/^/| /' conftest.$ac_ext >&5
  7120. ac_lo=`expr '(' $ac_mid ')' + 1`
  7121. fi
  7122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7123. done
  7124. case $ac_lo in
  7125. ?*) ac_cv_sizeof_long=$ac_lo;;
  7126. '') if test "$ac_cv_type_long" = yes; then
  7127. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7128. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7129. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7130. See \`config.log' for more details." >&5
  7131. $as_echo "$as_me: error: cannot compute sizeof (long)
  7132. See \`config.log' for more details." >&2;}
  7133. { (exit 77); exit 77; }; }; }
  7134. else
  7135. ac_cv_sizeof_long=0
  7136. fi ;;
  7137. esac
  7138. else
  7139. cat >conftest.$ac_ext <<_ACEOF
  7140. /* confdefs.h. */
  7141. _ACEOF
  7142. cat confdefs.h >>conftest.$ac_ext
  7143. cat >>conftest.$ac_ext <<_ACEOF
  7144. /* end confdefs.h. */
  7145. $ac_includes_default
  7146. static long int longval () { return (long int) (sizeof (long)); }
  7147. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  7148. #include <stdio.h>
  7149. #include <stdlib.h>
  7150. int
  7151. main ()
  7152. {
  7153. FILE *f = fopen ("conftest.val", "w");
  7154. if (! f)
  7155. return 1;
  7156. if (((long int) (sizeof (long))) < 0)
  7157. {
  7158. long int i = longval ();
  7159. if (i != ((long int) (sizeof (long))))
  7160. return 1;
  7161. fprintf (f, "%ld", i);
  7162. }
  7163. else
  7164. {
  7165. unsigned long int i = ulongval ();
  7166. if (i != ((long int) (sizeof (long))))
  7167. return 1;
  7168. fprintf (f, "%lu", i);
  7169. }
  7170. /* Do not output a trailing newline, as this causes \r\n confusion
  7171. on some platforms. */
  7172. return ferror (f) || fclose (f) != 0;
  7173. ;
  7174. return 0;
  7175. }
  7176. _ACEOF
  7177. rm -f conftest$ac_exeext
  7178. if { (ac_try="$ac_link"
  7179. case "(($ac_try" in
  7180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7181. *) ac_try_echo=$ac_try;;
  7182. esac
  7183. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7184. $as_echo "$ac_try_echo") >&5
  7185. (eval "$ac_link") 2>&5
  7186. ac_status=$?
  7187. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7188. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7189. { (case "(($ac_try" in
  7190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7191. *) ac_try_echo=$ac_try;;
  7192. esac
  7193. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7194. $as_echo "$ac_try_echo") >&5
  7195. (eval "$ac_try") 2>&5
  7196. ac_status=$?
  7197. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7198. (exit $ac_status); }; }; then
  7199. ac_cv_sizeof_long=`cat conftest.val`
  7200. else
  7201. $as_echo "$as_me: program exited with status $ac_status" >&5
  7202. $as_echo "$as_me: failed program was:" >&5
  7203. sed 's/^/| /' conftest.$ac_ext >&5
  7204. ( exit $ac_status )
  7205. if test "$ac_cv_type_long" = yes; then
  7206. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7208. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  7209. See \`config.log' for more details." >&5
  7210. $as_echo "$as_me: error: cannot compute sizeof (long)
  7211. See \`config.log' for more details." >&2;}
  7212. { (exit 77); exit 77; }; }; }
  7213. else
  7214. ac_cv_sizeof_long=0
  7215. fi
  7216. fi
  7217. rm -rf conftest.dSYM
  7218. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7219. fi
  7220. rm -f conftest.val
  7221. fi
  7222. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7223. $as_echo "$ac_cv_sizeof_long" >&6; }
  7224. cat >>confdefs.h <<_ACEOF
  7225. #define SIZEOF_LONG $ac_cv_sizeof_long
  7226. _ACEOF
  7227. # The cast to long int works around a bug in the HP C Compiler
  7228. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7229. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7230. # This bug is HP SR number 8606223364.
  7231. { $as_echo "$as_me:$LINENO: checking size of long long" >&5
  7232. $as_echo_n "checking size of long long... " >&6; }
  7233. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7234. $as_echo_n "(cached) " >&6
  7235. else
  7236. if test "$cross_compiling" = yes; then
  7237. # Depending upon the size, compute the lo and hi bounds.
  7238. cat >conftest.$ac_ext <<_ACEOF
  7239. /* confdefs.h. */
  7240. _ACEOF
  7241. cat confdefs.h >>conftest.$ac_ext
  7242. cat >>conftest.$ac_ext <<_ACEOF
  7243. /* end confdefs.h. */
  7244. $ac_includes_default
  7245. int
  7246. main ()
  7247. {
  7248. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
  7249. test_array [0] = 0
  7250. ;
  7251. return 0;
  7252. }
  7253. _ACEOF
  7254. rm -f conftest.$ac_objext
  7255. if { (ac_try="$ac_compile"
  7256. case "(($ac_try" in
  7257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7258. *) ac_try_echo=$ac_try;;
  7259. esac
  7260. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7261. $as_echo "$ac_try_echo") >&5
  7262. (eval "$ac_compile") 2>conftest.er1
  7263. ac_status=$?
  7264. grep -v '^ *+' conftest.er1 >conftest.err
  7265. rm -f conftest.er1
  7266. cat conftest.err >&5
  7267. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7268. (exit $ac_status); } && {
  7269. test -z "$ac_cxx_werror_flag" ||
  7270. test ! -s conftest.err
  7271. } && test -s conftest.$ac_objext; then
  7272. ac_lo=0 ac_mid=0
  7273. while :; do
  7274. cat >conftest.$ac_ext <<_ACEOF
  7275. /* confdefs.h. */
  7276. _ACEOF
  7277. cat confdefs.h >>conftest.$ac_ext
  7278. cat >>conftest.$ac_ext <<_ACEOF
  7279. /* end confdefs.h. */
  7280. $ac_includes_default
  7281. int
  7282. main ()
  7283. {
  7284. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7285. test_array [0] = 0
  7286. ;
  7287. return 0;
  7288. }
  7289. _ACEOF
  7290. rm -f conftest.$ac_objext
  7291. if { (ac_try="$ac_compile"
  7292. case "(($ac_try" in
  7293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7294. *) ac_try_echo=$ac_try;;
  7295. esac
  7296. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7297. $as_echo "$ac_try_echo") >&5
  7298. (eval "$ac_compile") 2>conftest.er1
  7299. ac_status=$?
  7300. grep -v '^ *+' conftest.er1 >conftest.err
  7301. rm -f conftest.er1
  7302. cat conftest.err >&5
  7303. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7304. (exit $ac_status); } && {
  7305. test -z "$ac_cxx_werror_flag" ||
  7306. test ! -s conftest.err
  7307. } && test -s conftest.$ac_objext; then
  7308. ac_hi=$ac_mid; break
  7309. else
  7310. $as_echo "$as_me: failed program was:" >&5
  7311. sed 's/^/| /' conftest.$ac_ext >&5
  7312. ac_lo=`expr $ac_mid + 1`
  7313. if test $ac_lo -le $ac_mid; then
  7314. ac_lo= ac_hi=
  7315. break
  7316. fi
  7317. ac_mid=`expr 2 '*' $ac_mid + 1`
  7318. fi
  7319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7320. done
  7321. else
  7322. $as_echo "$as_me: failed program was:" >&5
  7323. sed 's/^/| /' conftest.$ac_ext >&5
  7324. cat >conftest.$ac_ext <<_ACEOF
  7325. /* confdefs.h. */
  7326. _ACEOF
  7327. cat confdefs.h >>conftest.$ac_ext
  7328. cat >>conftest.$ac_ext <<_ACEOF
  7329. /* end confdefs.h. */
  7330. $ac_includes_default
  7331. int
  7332. main ()
  7333. {
  7334. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
  7335. test_array [0] = 0
  7336. ;
  7337. return 0;
  7338. }
  7339. _ACEOF
  7340. rm -f conftest.$ac_objext
  7341. if { (ac_try="$ac_compile"
  7342. case "(($ac_try" in
  7343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7344. *) ac_try_echo=$ac_try;;
  7345. esac
  7346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7347. $as_echo "$ac_try_echo") >&5
  7348. (eval "$ac_compile") 2>conftest.er1
  7349. ac_status=$?
  7350. grep -v '^ *+' conftest.er1 >conftest.err
  7351. rm -f conftest.er1
  7352. cat conftest.err >&5
  7353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7354. (exit $ac_status); } && {
  7355. test -z "$ac_cxx_werror_flag" ||
  7356. test ! -s conftest.err
  7357. } && test -s conftest.$ac_objext; then
  7358. ac_hi=-1 ac_mid=-1
  7359. while :; do
  7360. cat >conftest.$ac_ext <<_ACEOF
  7361. /* confdefs.h. */
  7362. _ACEOF
  7363. cat confdefs.h >>conftest.$ac_ext
  7364. cat >>conftest.$ac_ext <<_ACEOF
  7365. /* end confdefs.h. */
  7366. $ac_includes_default
  7367. int
  7368. main ()
  7369. {
  7370. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
  7371. test_array [0] = 0
  7372. ;
  7373. return 0;
  7374. }
  7375. _ACEOF
  7376. rm -f conftest.$ac_objext
  7377. if { (ac_try="$ac_compile"
  7378. case "(($ac_try" in
  7379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7380. *) ac_try_echo=$ac_try;;
  7381. esac
  7382. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7383. $as_echo "$ac_try_echo") >&5
  7384. (eval "$ac_compile") 2>conftest.er1
  7385. ac_status=$?
  7386. grep -v '^ *+' conftest.er1 >conftest.err
  7387. rm -f conftest.er1
  7388. cat conftest.err >&5
  7389. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7390. (exit $ac_status); } && {
  7391. test -z "$ac_cxx_werror_flag" ||
  7392. test ! -s conftest.err
  7393. } && test -s conftest.$ac_objext; then
  7394. ac_lo=$ac_mid; break
  7395. else
  7396. $as_echo "$as_me: failed program was:" >&5
  7397. sed 's/^/| /' conftest.$ac_ext >&5
  7398. ac_hi=`expr '(' $ac_mid ')' - 1`
  7399. if test $ac_mid -le $ac_hi; then
  7400. ac_lo= ac_hi=
  7401. break
  7402. fi
  7403. ac_mid=`expr 2 '*' $ac_mid`
  7404. fi
  7405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7406. done
  7407. else
  7408. $as_echo "$as_me: failed program was:" >&5
  7409. sed 's/^/| /' conftest.$ac_ext >&5
  7410. ac_lo= ac_hi=
  7411. fi
  7412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7413. fi
  7414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7415. # Binary search between lo and hi bounds.
  7416. while test "x$ac_lo" != "x$ac_hi"; do
  7417. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7418. cat >conftest.$ac_ext <<_ACEOF
  7419. /* confdefs.h. */
  7420. _ACEOF
  7421. cat confdefs.h >>conftest.$ac_ext
  7422. cat >>conftest.$ac_ext <<_ACEOF
  7423. /* end confdefs.h. */
  7424. $ac_includes_default
  7425. int
  7426. main ()
  7427. {
  7428. static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
  7429. test_array [0] = 0
  7430. ;
  7431. return 0;
  7432. }
  7433. _ACEOF
  7434. rm -f conftest.$ac_objext
  7435. if { (ac_try="$ac_compile"
  7436. case "(($ac_try" in
  7437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7438. *) ac_try_echo=$ac_try;;
  7439. esac
  7440. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7441. $as_echo "$ac_try_echo") >&5
  7442. (eval "$ac_compile") 2>conftest.er1
  7443. ac_status=$?
  7444. grep -v '^ *+' conftest.er1 >conftest.err
  7445. rm -f conftest.er1
  7446. cat conftest.err >&5
  7447. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7448. (exit $ac_status); } && {
  7449. test -z "$ac_cxx_werror_flag" ||
  7450. test ! -s conftest.err
  7451. } && test -s conftest.$ac_objext; then
  7452. ac_hi=$ac_mid
  7453. else
  7454. $as_echo "$as_me: failed program was:" >&5
  7455. sed 's/^/| /' conftest.$ac_ext >&5
  7456. ac_lo=`expr '(' $ac_mid ')' + 1`
  7457. fi
  7458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7459. done
  7460. case $ac_lo in
  7461. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7462. '') if test "$ac_cv_type_long_long" = yes; then
  7463. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7465. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7466. See \`config.log' for more details." >&5
  7467. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7468. See \`config.log' for more details." >&2;}
  7469. { (exit 77); exit 77; }; }; }
  7470. else
  7471. ac_cv_sizeof_long_long=0
  7472. fi ;;
  7473. esac
  7474. else
  7475. cat >conftest.$ac_ext <<_ACEOF
  7476. /* confdefs.h. */
  7477. _ACEOF
  7478. cat confdefs.h >>conftest.$ac_ext
  7479. cat >>conftest.$ac_ext <<_ACEOF
  7480. /* end confdefs.h. */
  7481. $ac_includes_default
  7482. static long int longval () { return (long int) (sizeof (long long)); }
  7483. static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
  7484. #include <stdio.h>
  7485. #include <stdlib.h>
  7486. int
  7487. main ()
  7488. {
  7489. FILE *f = fopen ("conftest.val", "w");
  7490. if (! f)
  7491. return 1;
  7492. if (((long int) (sizeof (long long))) < 0)
  7493. {
  7494. long int i = longval ();
  7495. if (i != ((long int) (sizeof (long long))))
  7496. return 1;
  7497. fprintf (f, "%ld", i);
  7498. }
  7499. else
  7500. {
  7501. unsigned long int i = ulongval ();
  7502. if (i != ((long int) (sizeof (long long))))
  7503. return 1;
  7504. fprintf (f, "%lu", i);
  7505. }
  7506. /* Do not output a trailing newline, as this causes \r\n confusion
  7507. on some platforms. */
  7508. return ferror (f) || fclose (f) != 0;
  7509. ;
  7510. return 0;
  7511. }
  7512. _ACEOF
  7513. rm -f conftest$ac_exeext
  7514. if { (ac_try="$ac_link"
  7515. case "(($ac_try" in
  7516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7517. *) ac_try_echo=$ac_try;;
  7518. esac
  7519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7520. $as_echo "$ac_try_echo") >&5
  7521. (eval "$ac_link") 2>&5
  7522. ac_status=$?
  7523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7524. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7525. { (case "(($ac_try" in
  7526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7527. *) ac_try_echo=$ac_try;;
  7528. esac
  7529. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7530. $as_echo "$ac_try_echo") >&5
  7531. (eval "$ac_try") 2>&5
  7532. ac_status=$?
  7533. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7534. (exit $ac_status); }; }; then
  7535. ac_cv_sizeof_long_long=`cat conftest.val`
  7536. else
  7537. $as_echo "$as_me: program exited with status $ac_status" >&5
  7538. $as_echo "$as_me: failed program was:" >&5
  7539. sed 's/^/| /' conftest.$ac_ext >&5
  7540. ( exit $ac_status )
  7541. if test "$ac_cv_type_long_long" = yes; then
  7542. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7543. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7544. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7545. See \`config.log' for more details." >&5
  7546. $as_echo "$as_me: error: cannot compute sizeof (long long)
  7547. See \`config.log' for more details." >&2;}
  7548. { (exit 77); exit 77; }; }; }
  7549. else
  7550. ac_cv_sizeof_long_long=0
  7551. fi
  7552. fi
  7553. rm -rf conftest.dSYM
  7554. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7555. fi
  7556. rm -f conftest.val
  7557. fi
  7558. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7559. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  7560. cat >>confdefs.h <<_ACEOF
  7561. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7562. _ACEOF
  7563. # The cast to long int works around a bug in the HP C Compiler
  7564. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7565. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7566. # This bug is HP SR number 8606223364.
  7567. { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
  7568. $as_echo_n "checking size of size_t... " >&6; }
  7569. if test "${ac_cv_sizeof_size_t+set}" = set; then
  7570. $as_echo_n "(cached) " >&6
  7571. else
  7572. if test "$cross_compiling" = yes; then
  7573. # Depending upon the size, compute the lo and hi bounds.
  7574. cat >conftest.$ac_ext <<_ACEOF
  7575. /* confdefs.h. */
  7576. _ACEOF
  7577. cat confdefs.h >>conftest.$ac_ext
  7578. cat >>conftest.$ac_ext <<_ACEOF
  7579. /* end confdefs.h. */
  7580. $ac_includes_default
  7581. int
  7582. main ()
  7583. {
  7584. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
  7585. test_array [0] = 0
  7586. ;
  7587. return 0;
  7588. }
  7589. _ACEOF
  7590. rm -f conftest.$ac_objext
  7591. if { (ac_try="$ac_compile"
  7592. case "(($ac_try" in
  7593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7594. *) ac_try_echo=$ac_try;;
  7595. esac
  7596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7597. $as_echo "$ac_try_echo") >&5
  7598. (eval "$ac_compile") 2>conftest.er1
  7599. ac_status=$?
  7600. grep -v '^ *+' conftest.er1 >conftest.err
  7601. rm -f conftest.er1
  7602. cat conftest.err >&5
  7603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7604. (exit $ac_status); } && {
  7605. test -z "$ac_cxx_werror_flag" ||
  7606. test ! -s conftest.err
  7607. } && test -s conftest.$ac_objext; then
  7608. ac_lo=0 ac_mid=0
  7609. while :; do
  7610. cat >conftest.$ac_ext <<_ACEOF
  7611. /* confdefs.h. */
  7612. _ACEOF
  7613. cat confdefs.h >>conftest.$ac_ext
  7614. cat >>conftest.$ac_ext <<_ACEOF
  7615. /* end confdefs.h. */
  7616. $ac_includes_default
  7617. int
  7618. main ()
  7619. {
  7620. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7621. test_array [0] = 0
  7622. ;
  7623. return 0;
  7624. }
  7625. _ACEOF
  7626. rm -f conftest.$ac_objext
  7627. if { (ac_try="$ac_compile"
  7628. case "(($ac_try" in
  7629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7630. *) ac_try_echo=$ac_try;;
  7631. esac
  7632. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7633. $as_echo "$ac_try_echo") >&5
  7634. (eval "$ac_compile") 2>conftest.er1
  7635. ac_status=$?
  7636. grep -v '^ *+' conftest.er1 >conftest.err
  7637. rm -f conftest.er1
  7638. cat conftest.err >&5
  7639. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7640. (exit $ac_status); } && {
  7641. test -z "$ac_cxx_werror_flag" ||
  7642. test ! -s conftest.err
  7643. } && test -s conftest.$ac_objext; then
  7644. ac_hi=$ac_mid; break
  7645. else
  7646. $as_echo "$as_me: failed program was:" >&5
  7647. sed 's/^/| /' conftest.$ac_ext >&5
  7648. ac_lo=`expr $ac_mid + 1`
  7649. if test $ac_lo -le $ac_mid; then
  7650. ac_lo= ac_hi=
  7651. break
  7652. fi
  7653. ac_mid=`expr 2 '*' $ac_mid + 1`
  7654. fi
  7655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7656. done
  7657. else
  7658. $as_echo "$as_me: failed program was:" >&5
  7659. sed 's/^/| /' conftest.$ac_ext >&5
  7660. cat >conftest.$ac_ext <<_ACEOF
  7661. /* confdefs.h. */
  7662. _ACEOF
  7663. cat confdefs.h >>conftest.$ac_ext
  7664. cat >>conftest.$ac_ext <<_ACEOF
  7665. /* end confdefs.h. */
  7666. $ac_includes_default
  7667. int
  7668. main ()
  7669. {
  7670. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
  7671. test_array [0] = 0
  7672. ;
  7673. return 0;
  7674. }
  7675. _ACEOF
  7676. rm -f conftest.$ac_objext
  7677. if { (ac_try="$ac_compile"
  7678. case "(($ac_try" in
  7679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7680. *) ac_try_echo=$ac_try;;
  7681. esac
  7682. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7683. $as_echo "$ac_try_echo") >&5
  7684. (eval "$ac_compile") 2>conftest.er1
  7685. ac_status=$?
  7686. grep -v '^ *+' conftest.er1 >conftest.err
  7687. rm -f conftest.er1
  7688. cat conftest.err >&5
  7689. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7690. (exit $ac_status); } && {
  7691. test -z "$ac_cxx_werror_flag" ||
  7692. test ! -s conftest.err
  7693. } && test -s conftest.$ac_objext; then
  7694. ac_hi=-1 ac_mid=-1
  7695. while :; do
  7696. cat >conftest.$ac_ext <<_ACEOF
  7697. /* confdefs.h. */
  7698. _ACEOF
  7699. cat confdefs.h >>conftest.$ac_ext
  7700. cat >>conftest.$ac_ext <<_ACEOF
  7701. /* end confdefs.h. */
  7702. $ac_includes_default
  7703. int
  7704. main ()
  7705. {
  7706. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
  7707. test_array [0] = 0
  7708. ;
  7709. return 0;
  7710. }
  7711. _ACEOF
  7712. rm -f conftest.$ac_objext
  7713. if { (ac_try="$ac_compile"
  7714. case "(($ac_try" in
  7715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7716. *) ac_try_echo=$ac_try;;
  7717. esac
  7718. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7719. $as_echo "$ac_try_echo") >&5
  7720. (eval "$ac_compile") 2>conftest.er1
  7721. ac_status=$?
  7722. grep -v '^ *+' conftest.er1 >conftest.err
  7723. rm -f conftest.er1
  7724. cat conftest.err >&5
  7725. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7726. (exit $ac_status); } && {
  7727. test -z "$ac_cxx_werror_flag" ||
  7728. test ! -s conftest.err
  7729. } && test -s conftest.$ac_objext; then
  7730. ac_lo=$ac_mid; break
  7731. else
  7732. $as_echo "$as_me: failed program was:" >&5
  7733. sed 's/^/| /' conftest.$ac_ext >&5
  7734. ac_hi=`expr '(' $ac_mid ')' - 1`
  7735. if test $ac_mid -le $ac_hi; then
  7736. ac_lo= ac_hi=
  7737. break
  7738. fi
  7739. ac_mid=`expr 2 '*' $ac_mid`
  7740. fi
  7741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7742. done
  7743. else
  7744. $as_echo "$as_me: failed program was:" >&5
  7745. sed 's/^/| /' conftest.$ac_ext >&5
  7746. ac_lo= ac_hi=
  7747. fi
  7748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7749. fi
  7750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7751. # Binary search between lo and hi bounds.
  7752. while test "x$ac_lo" != "x$ac_hi"; do
  7753. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7754. cat >conftest.$ac_ext <<_ACEOF
  7755. /* confdefs.h. */
  7756. _ACEOF
  7757. cat confdefs.h >>conftest.$ac_ext
  7758. cat >>conftest.$ac_ext <<_ACEOF
  7759. /* end confdefs.h. */
  7760. $ac_includes_default
  7761. int
  7762. main ()
  7763. {
  7764. static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
  7765. test_array [0] = 0
  7766. ;
  7767. return 0;
  7768. }
  7769. _ACEOF
  7770. rm -f conftest.$ac_objext
  7771. if { (ac_try="$ac_compile"
  7772. case "(($ac_try" in
  7773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7774. *) ac_try_echo=$ac_try;;
  7775. esac
  7776. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7777. $as_echo "$ac_try_echo") >&5
  7778. (eval "$ac_compile") 2>conftest.er1
  7779. ac_status=$?
  7780. grep -v '^ *+' conftest.er1 >conftest.err
  7781. rm -f conftest.er1
  7782. cat conftest.err >&5
  7783. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7784. (exit $ac_status); } && {
  7785. test -z "$ac_cxx_werror_flag" ||
  7786. test ! -s conftest.err
  7787. } && test -s conftest.$ac_objext; then
  7788. ac_hi=$ac_mid
  7789. else
  7790. $as_echo "$as_me: failed program was:" >&5
  7791. sed 's/^/| /' conftest.$ac_ext >&5
  7792. ac_lo=`expr '(' $ac_mid ')' + 1`
  7793. fi
  7794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7795. done
  7796. case $ac_lo in
  7797. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  7798. '') if test "$ac_cv_type_size_t" = yes; then
  7799. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7800. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7801. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7802. See \`config.log' for more details." >&5
  7803. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7804. See \`config.log' for more details." >&2;}
  7805. { (exit 77); exit 77; }; }; }
  7806. else
  7807. ac_cv_sizeof_size_t=0
  7808. fi ;;
  7809. esac
  7810. else
  7811. cat >conftest.$ac_ext <<_ACEOF
  7812. /* confdefs.h. */
  7813. _ACEOF
  7814. cat confdefs.h >>conftest.$ac_ext
  7815. cat >>conftest.$ac_ext <<_ACEOF
  7816. /* end confdefs.h. */
  7817. $ac_includes_default
  7818. static long int longval () { return (long int) (sizeof (size_t)); }
  7819. static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
  7820. #include <stdio.h>
  7821. #include <stdlib.h>
  7822. int
  7823. main ()
  7824. {
  7825. FILE *f = fopen ("conftest.val", "w");
  7826. if (! f)
  7827. return 1;
  7828. if (((long int) (sizeof (size_t))) < 0)
  7829. {
  7830. long int i = longval ();
  7831. if (i != ((long int) (sizeof (size_t))))
  7832. return 1;
  7833. fprintf (f, "%ld", i);
  7834. }
  7835. else
  7836. {
  7837. unsigned long int i = ulongval ();
  7838. if (i != ((long int) (sizeof (size_t))))
  7839. return 1;
  7840. fprintf (f, "%lu", i);
  7841. }
  7842. /* Do not output a trailing newline, as this causes \r\n confusion
  7843. on some platforms. */
  7844. return ferror (f) || fclose (f) != 0;
  7845. ;
  7846. return 0;
  7847. }
  7848. _ACEOF
  7849. rm -f conftest$ac_exeext
  7850. if { (ac_try="$ac_link"
  7851. case "(($ac_try" in
  7852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7853. *) ac_try_echo=$ac_try;;
  7854. esac
  7855. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7856. $as_echo "$ac_try_echo") >&5
  7857. (eval "$ac_link") 2>&5
  7858. ac_status=$?
  7859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7860. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7861. { (case "(($ac_try" in
  7862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7863. *) ac_try_echo=$ac_try;;
  7864. esac
  7865. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7866. $as_echo "$ac_try_echo") >&5
  7867. (eval "$ac_try") 2>&5
  7868. ac_status=$?
  7869. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7870. (exit $ac_status); }; }; then
  7871. ac_cv_sizeof_size_t=`cat conftest.val`
  7872. else
  7873. $as_echo "$as_me: program exited with status $ac_status" >&5
  7874. $as_echo "$as_me: failed program was:" >&5
  7875. sed 's/^/| /' conftest.$ac_ext >&5
  7876. ( exit $ac_status )
  7877. if test "$ac_cv_type_size_t" = yes; then
  7878. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7879. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7880. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  7881. See \`config.log' for more details." >&5
  7882. $as_echo "$as_me: error: cannot compute sizeof (size_t)
  7883. See \`config.log' for more details." >&2;}
  7884. { (exit 77); exit 77; }; }; }
  7885. else
  7886. ac_cv_sizeof_size_t=0
  7887. fi
  7888. fi
  7889. rm -rf conftest.dSYM
  7890. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7891. fi
  7892. rm -f conftest.val
  7893. fi
  7894. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  7895. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  7896. cat >>confdefs.h <<_ACEOF
  7897. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  7898. _ACEOF
  7899. # The cast to long int works around a bug in the HP C Compiler
  7900. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7901. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7902. # This bug is HP SR number 8606223364.
  7903. { $as_echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
  7904. $as_echo_n "checking size of ptrdiff_t... " >&6; }
  7905. if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
  7906. $as_echo_n "(cached) " >&6
  7907. else
  7908. if test "$cross_compiling" = yes; then
  7909. # Depending upon the size, compute the lo and hi bounds.
  7910. cat >conftest.$ac_ext <<_ACEOF
  7911. /* confdefs.h. */
  7912. _ACEOF
  7913. cat confdefs.h >>conftest.$ac_ext
  7914. cat >>conftest.$ac_ext <<_ACEOF
  7915. /* end confdefs.h. */
  7916. $ac_includes_default
  7917. int
  7918. main ()
  7919. {
  7920. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= 0)];
  7921. test_array [0] = 0
  7922. ;
  7923. return 0;
  7924. }
  7925. _ACEOF
  7926. rm -f conftest.$ac_objext
  7927. if { (ac_try="$ac_compile"
  7928. case "(($ac_try" in
  7929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7930. *) ac_try_echo=$ac_try;;
  7931. esac
  7932. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7933. $as_echo "$ac_try_echo") >&5
  7934. (eval "$ac_compile") 2>conftest.er1
  7935. ac_status=$?
  7936. grep -v '^ *+' conftest.er1 >conftest.err
  7937. rm -f conftest.er1
  7938. cat conftest.err >&5
  7939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7940. (exit $ac_status); } && {
  7941. test -z "$ac_cxx_werror_flag" ||
  7942. test ! -s conftest.err
  7943. } && test -s conftest.$ac_objext; then
  7944. ac_lo=0 ac_mid=0
  7945. while :; do
  7946. cat >conftest.$ac_ext <<_ACEOF
  7947. /* confdefs.h. */
  7948. _ACEOF
  7949. cat confdefs.h >>conftest.$ac_ext
  7950. cat >>conftest.$ac_ext <<_ACEOF
  7951. /* end confdefs.h. */
  7952. $ac_includes_default
  7953. int
  7954. main ()
  7955. {
  7956. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  7957. test_array [0] = 0
  7958. ;
  7959. return 0;
  7960. }
  7961. _ACEOF
  7962. rm -f conftest.$ac_objext
  7963. if { (ac_try="$ac_compile"
  7964. case "(($ac_try" in
  7965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7966. *) ac_try_echo=$ac_try;;
  7967. esac
  7968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7969. $as_echo "$ac_try_echo") >&5
  7970. (eval "$ac_compile") 2>conftest.er1
  7971. ac_status=$?
  7972. grep -v '^ *+' conftest.er1 >conftest.err
  7973. rm -f conftest.er1
  7974. cat conftest.err >&5
  7975. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7976. (exit $ac_status); } && {
  7977. test -z "$ac_cxx_werror_flag" ||
  7978. test ! -s conftest.err
  7979. } && test -s conftest.$ac_objext; then
  7980. ac_hi=$ac_mid; break
  7981. else
  7982. $as_echo "$as_me: failed program was:" >&5
  7983. sed 's/^/| /' conftest.$ac_ext >&5
  7984. ac_lo=`expr $ac_mid + 1`
  7985. if test $ac_lo -le $ac_mid; then
  7986. ac_lo= ac_hi=
  7987. break
  7988. fi
  7989. ac_mid=`expr 2 '*' $ac_mid + 1`
  7990. fi
  7991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7992. done
  7993. else
  7994. $as_echo "$as_me: failed program was:" >&5
  7995. sed 's/^/| /' conftest.$ac_ext >&5
  7996. cat >conftest.$ac_ext <<_ACEOF
  7997. /* confdefs.h. */
  7998. _ACEOF
  7999. cat confdefs.h >>conftest.$ac_ext
  8000. cat >>conftest.$ac_ext <<_ACEOF
  8001. /* end confdefs.h. */
  8002. $ac_includes_default
  8003. int
  8004. main ()
  8005. {
  8006. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) < 0)];
  8007. test_array [0] = 0
  8008. ;
  8009. return 0;
  8010. }
  8011. _ACEOF
  8012. rm -f conftest.$ac_objext
  8013. if { (ac_try="$ac_compile"
  8014. case "(($ac_try" in
  8015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8016. *) ac_try_echo=$ac_try;;
  8017. esac
  8018. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8019. $as_echo "$ac_try_echo") >&5
  8020. (eval "$ac_compile") 2>conftest.er1
  8021. ac_status=$?
  8022. grep -v '^ *+' conftest.er1 >conftest.err
  8023. rm -f conftest.er1
  8024. cat conftest.err >&5
  8025. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8026. (exit $ac_status); } && {
  8027. test -z "$ac_cxx_werror_flag" ||
  8028. test ! -s conftest.err
  8029. } && test -s conftest.$ac_objext; then
  8030. ac_hi=-1 ac_mid=-1
  8031. while :; do
  8032. cat >conftest.$ac_ext <<_ACEOF
  8033. /* confdefs.h. */
  8034. _ACEOF
  8035. cat confdefs.h >>conftest.$ac_ext
  8036. cat >>conftest.$ac_ext <<_ACEOF
  8037. /* end confdefs.h. */
  8038. $ac_includes_default
  8039. int
  8040. main ()
  8041. {
  8042. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) >= $ac_mid)];
  8043. test_array [0] = 0
  8044. ;
  8045. return 0;
  8046. }
  8047. _ACEOF
  8048. rm -f conftest.$ac_objext
  8049. if { (ac_try="$ac_compile"
  8050. case "(($ac_try" in
  8051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8052. *) ac_try_echo=$ac_try;;
  8053. esac
  8054. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8055. $as_echo "$ac_try_echo") >&5
  8056. (eval "$ac_compile") 2>conftest.er1
  8057. ac_status=$?
  8058. grep -v '^ *+' conftest.er1 >conftest.err
  8059. rm -f conftest.er1
  8060. cat conftest.err >&5
  8061. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. (exit $ac_status); } && {
  8063. test -z "$ac_cxx_werror_flag" ||
  8064. test ! -s conftest.err
  8065. } && test -s conftest.$ac_objext; then
  8066. ac_lo=$ac_mid; break
  8067. else
  8068. $as_echo "$as_me: failed program was:" >&5
  8069. sed 's/^/| /' conftest.$ac_ext >&5
  8070. ac_hi=`expr '(' $ac_mid ')' - 1`
  8071. if test $ac_mid -le $ac_hi; then
  8072. ac_lo= ac_hi=
  8073. break
  8074. fi
  8075. ac_mid=`expr 2 '*' $ac_mid`
  8076. fi
  8077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8078. done
  8079. else
  8080. $as_echo "$as_me: failed program was:" >&5
  8081. sed 's/^/| /' conftest.$ac_ext >&5
  8082. ac_lo= ac_hi=
  8083. fi
  8084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8085. fi
  8086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8087. # Binary search between lo and hi bounds.
  8088. while test "x$ac_lo" != "x$ac_hi"; do
  8089. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8090. cat >conftest.$ac_ext <<_ACEOF
  8091. /* confdefs.h. */
  8092. _ACEOF
  8093. cat confdefs.h >>conftest.$ac_ext
  8094. cat >>conftest.$ac_ext <<_ACEOF
  8095. /* end confdefs.h. */
  8096. $ac_includes_default
  8097. int
  8098. main ()
  8099. {
  8100. static int test_array [1 - 2 * !(((long int) (sizeof (ptrdiff_t))) <= $ac_mid)];
  8101. test_array [0] = 0
  8102. ;
  8103. return 0;
  8104. }
  8105. _ACEOF
  8106. rm -f conftest.$ac_objext
  8107. if { (ac_try="$ac_compile"
  8108. case "(($ac_try" in
  8109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8110. *) ac_try_echo=$ac_try;;
  8111. esac
  8112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8113. $as_echo "$ac_try_echo") >&5
  8114. (eval "$ac_compile") 2>conftest.er1
  8115. ac_status=$?
  8116. grep -v '^ *+' conftest.er1 >conftest.err
  8117. rm -f conftest.er1
  8118. cat conftest.err >&5
  8119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8120. (exit $ac_status); } && {
  8121. test -z "$ac_cxx_werror_flag" ||
  8122. test ! -s conftest.err
  8123. } && test -s conftest.$ac_objext; then
  8124. ac_hi=$ac_mid
  8125. else
  8126. $as_echo "$as_me: failed program was:" >&5
  8127. sed 's/^/| /' conftest.$ac_ext >&5
  8128. ac_lo=`expr '(' $ac_mid ')' + 1`
  8129. fi
  8130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8131. done
  8132. case $ac_lo in
  8133. ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
  8134. '') if test "$ac_cv_type_ptrdiff_t" = yes; then
  8135. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8136. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8137. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8138. See \`config.log' for more details." >&5
  8139. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8140. See \`config.log' for more details." >&2;}
  8141. { (exit 77); exit 77; }; }; }
  8142. else
  8143. ac_cv_sizeof_ptrdiff_t=0
  8144. fi ;;
  8145. esac
  8146. else
  8147. cat >conftest.$ac_ext <<_ACEOF
  8148. /* confdefs.h. */
  8149. _ACEOF
  8150. cat confdefs.h >>conftest.$ac_ext
  8151. cat >>conftest.$ac_ext <<_ACEOF
  8152. /* end confdefs.h. */
  8153. $ac_includes_default
  8154. static long int longval () { return (long int) (sizeof (ptrdiff_t)); }
  8155. static unsigned long int ulongval () { return (long int) (sizeof (ptrdiff_t)); }
  8156. #include <stdio.h>
  8157. #include <stdlib.h>
  8158. int
  8159. main ()
  8160. {
  8161. FILE *f = fopen ("conftest.val", "w");
  8162. if (! f)
  8163. return 1;
  8164. if (((long int) (sizeof (ptrdiff_t))) < 0)
  8165. {
  8166. long int i = longval ();
  8167. if (i != ((long int) (sizeof (ptrdiff_t))))
  8168. return 1;
  8169. fprintf (f, "%ld", i);
  8170. }
  8171. else
  8172. {
  8173. unsigned long int i = ulongval ();
  8174. if (i != ((long int) (sizeof (ptrdiff_t))))
  8175. return 1;
  8176. fprintf (f, "%lu", i);
  8177. }
  8178. /* Do not output a trailing newline, as this causes \r\n confusion
  8179. on some platforms. */
  8180. return ferror (f) || fclose (f) != 0;
  8181. ;
  8182. return 0;
  8183. }
  8184. _ACEOF
  8185. rm -f conftest$ac_exeext
  8186. if { (ac_try="$ac_link"
  8187. case "(($ac_try" in
  8188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8189. *) ac_try_echo=$ac_try;;
  8190. esac
  8191. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8192. $as_echo "$ac_try_echo") >&5
  8193. (eval "$ac_link") 2>&5
  8194. ac_status=$?
  8195. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8196. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8197. { (case "(($ac_try" in
  8198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8199. *) ac_try_echo=$ac_try;;
  8200. esac
  8201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8202. $as_echo "$ac_try_echo") >&5
  8203. (eval "$ac_try") 2>&5
  8204. ac_status=$?
  8205. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8206. (exit $ac_status); }; }; then
  8207. ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
  8208. else
  8209. $as_echo "$as_me: program exited with status $ac_status" >&5
  8210. $as_echo "$as_me: failed program was:" >&5
  8211. sed 's/^/| /' conftest.$ac_ext >&5
  8212. ( exit $ac_status )
  8213. if test "$ac_cv_type_ptrdiff_t" = yes; then
  8214. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8215. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8216. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t)
  8217. See \`config.log' for more details." >&5
  8218. $as_echo "$as_me: error: cannot compute sizeof (ptrdiff_t)
  8219. See \`config.log' for more details." >&2;}
  8220. { (exit 77); exit 77; }; }; }
  8221. else
  8222. ac_cv_sizeof_ptrdiff_t=0
  8223. fi
  8224. fi
  8225. rm -rf conftest.dSYM
  8226. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8227. fi
  8228. rm -f conftest.val
  8229. fi
  8230. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
  8231. $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
  8232. cat >>confdefs.h <<_ACEOF
  8233. #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
  8234. _ACEOF
  8235. # The cast to long int works around a bug in the HP C Compiler
  8236. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  8237. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  8238. # This bug is HP SR number 8606223364.
  8239. { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
  8240. $as_echo_n "checking size of time_t... " >&6; }
  8241. if test "${ac_cv_sizeof_time_t+set}" = set; then
  8242. $as_echo_n "(cached) " >&6
  8243. else
  8244. if test "$cross_compiling" = yes; then
  8245. # Depending upon the size, compute the lo and hi bounds.
  8246. cat >conftest.$ac_ext <<_ACEOF
  8247. /* confdefs.h. */
  8248. _ACEOF
  8249. cat confdefs.h >>conftest.$ac_ext
  8250. cat >>conftest.$ac_ext <<_ACEOF
  8251. /* end confdefs.h. */
  8252. $ac_includes_default
  8253. int
  8254. main ()
  8255. {
  8256. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
  8257. test_array [0] = 0
  8258. ;
  8259. return 0;
  8260. }
  8261. _ACEOF
  8262. rm -f conftest.$ac_objext
  8263. if { (ac_try="$ac_compile"
  8264. case "(($ac_try" in
  8265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8266. *) ac_try_echo=$ac_try;;
  8267. esac
  8268. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8269. $as_echo "$ac_try_echo") >&5
  8270. (eval "$ac_compile") 2>conftest.er1
  8271. ac_status=$?
  8272. grep -v '^ *+' conftest.er1 >conftest.err
  8273. rm -f conftest.er1
  8274. cat conftest.err >&5
  8275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8276. (exit $ac_status); } && {
  8277. test -z "$ac_cxx_werror_flag" ||
  8278. test ! -s conftest.err
  8279. } && test -s conftest.$ac_objext; then
  8280. ac_lo=0 ac_mid=0
  8281. while :; do
  8282. cat >conftest.$ac_ext <<_ACEOF
  8283. /* confdefs.h. */
  8284. _ACEOF
  8285. cat confdefs.h >>conftest.$ac_ext
  8286. cat >>conftest.$ac_ext <<_ACEOF
  8287. /* end confdefs.h. */
  8288. $ac_includes_default
  8289. int
  8290. main ()
  8291. {
  8292. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8293. test_array [0] = 0
  8294. ;
  8295. return 0;
  8296. }
  8297. _ACEOF
  8298. rm -f conftest.$ac_objext
  8299. if { (ac_try="$ac_compile"
  8300. case "(($ac_try" in
  8301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8302. *) ac_try_echo=$ac_try;;
  8303. esac
  8304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8305. $as_echo "$ac_try_echo") >&5
  8306. (eval "$ac_compile") 2>conftest.er1
  8307. ac_status=$?
  8308. grep -v '^ *+' conftest.er1 >conftest.err
  8309. rm -f conftest.er1
  8310. cat conftest.err >&5
  8311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8312. (exit $ac_status); } && {
  8313. test -z "$ac_cxx_werror_flag" ||
  8314. test ! -s conftest.err
  8315. } && test -s conftest.$ac_objext; then
  8316. ac_hi=$ac_mid; break
  8317. else
  8318. $as_echo "$as_me: failed program was:" >&5
  8319. sed 's/^/| /' conftest.$ac_ext >&5
  8320. ac_lo=`expr $ac_mid + 1`
  8321. if test $ac_lo -le $ac_mid; then
  8322. ac_lo= ac_hi=
  8323. break
  8324. fi
  8325. ac_mid=`expr 2 '*' $ac_mid + 1`
  8326. fi
  8327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8328. done
  8329. else
  8330. $as_echo "$as_me: failed program was:" >&5
  8331. sed 's/^/| /' conftest.$ac_ext >&5
  8332. cat >conftest.$ac_ext <<_ACEOF
  8333. /* confdefs.h. */
  8334. _ACEOF
  8335. cat confdefs.h >>conftest.$ac_ext
  8336. cat >>conftest.$ac_ext <<_ACEOF
  8337. /* end confdefs.h. */
  8338. $ac_includes_default
  8339. int
  8340. main ()
  8341. {
  8342. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
  8343. test_array [0] = 0
  8344. ;
  8345. return 0;
  8346. }
  8347. _ACEOF
  8348. rm -f conftest.$ac_objext
  8349. if { (ac_try="$ac_compile"
  8350. case "(($ac_try" in
  8351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8352. *) ac_try_echo=$ac_try;;
  8353. esac
  8354. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8355. $as_echo "$ac_try_echo") >&5
  8356. (eval "$ac_compile") 2>conftest.er1
  8357. ac_status=$?
  8358. grep -v '^ *+' conftest.er1 >conftest.err
  8359. rm -f conftest.er1
  8360. cat conftest.err >&5
  8361. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8362. (exit $ac_status); } && {
  8363. test -z "$ac_cxx_werror_flag" ||
  8364. test ! -s conftest.err
  8365. } && test -s conftest.$ac_objext; then
  8366. ac_hi=-1 ac_mid=-1
  8367. while :; do
  8368. cat >conftest.$ac_ext <<_ACEOF
  8369. /* confdefs.h. */
  8370. _ACEOF
  8371. cat confdefs.h >>conftest.$ac_ext
  8372. cat >>conftest.$ac_ext <<_ACEOF
  8373. /* end confdefs.h. */
  8374. $ac_includes_default
  8375. int
  8376. main ()
  8377. {
  8378. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
  8379. test_array [0] = 0
  8380. ;
  8381. return 0;
  8382. }
  8383. _ACEOF
  8384. rm -f conftest.$ac_objext
  8385. if { (ac_try="$ac_compile"
  8386. case "(($ac_try" in
  8387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8388. *) ac_try_echo=$ac_try;;
  8389. esac
  8390. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8391. $as_echo "$ac_try_echo") >&5
  8392. (eval "$ac_compile") 2>conftest.er1
  8393. ac_status=$?
  8394. grep -v '^ *+' conftest.er1 >conftest.err
  8395. rm -f conftest.er1
  8396. cat conftest.err >&5
  8397. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8398. (exit $ac_status); } && {
  8399. test -z "$ac_cxx_werror_flag" ||
  8400. test ! -s conftest.err
  8401. } && test -s conftest.$ac_objext; then
  8402. ac_lo=$ac_mid; break
  8403. else
  8404. $as_echo "$as_me: failed program was:" >&5
  8405. sed 's/^/| /' conftest.$ac_ext >&5
  8406. ac_hi=`expr '(' $ac_mid ')' - 1`
  8407. if test $ac_mid -le $ac_hi; then
  8408. ac_lo= ac_hi=
  8409. break
  8410. fi
  8411. ac_mid=`expr 2 '*' $ac_mid`
  8412. fi
  8413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8414. done
  8415. else
  8416. $as_echo "$as_me: failed program was:" >&5
  8417. sed 's/^/| /' conftest.$ac_ext >&5
  8418. ac_lo= ac_hi=
  8419. fi
  8420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8421. fi
  8422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8423. # Binary search between lo and hi bounds.
  8424. while test "x$ac_lo" != "x$ac_hi"; do
  8425. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  8426. cat >conftest.$ac_ext <<_ACEOF
  8427. /* confdefs.h. */
  8428. _ACEOF
  8429. cat confdefs.h >>conftest.$ac_ext
  8430. cat >>conftest.$ac_ext <<_ACEOF
  8431. /* end confdefs.h. */
  8432. $ac_includes_default
  8433. int
  8434. main ()
  8435. {
  8436. static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
  8437. test_array [0] = 0
  8438. ;
  8439. return 0;
  8440. }
  8441. _ACEOF
  8442. rm -f conftest.$ac_objext
  8443. if { (ac_try="$ac_compile"
  8444. case "(($ac_try" in
  8445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8446. *) ac_try_echo=$ac_try;;
  8447. esac
  8448. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8449. $as_echo "$ac_try_echo") >&5
  8450. (eval "$ac_compile") 2>conftest.er1
  8451. ac_status=$?
  8452. grep -v '^ *+' conftest.er1 >conftest.err
  8453. rm -f conftest.er1
  8454. cat conftest.err >&5
  8455. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8456. (exit $ac_status); } && {
  8457. test -z "$ac_cxx_werror_flag" ||
  8458. test ! -s conftest.err
  8459. } && test -s conftest.$ac_objext; then
  8460. ac_hi=$ac_mid
  8461. else
  8462. $as_echo "$as_me: failed program was:" >&5
  8463. sed 's/^/| /' conftest.$ac_ext >&5
  8464. ac_lo=`expr '(' $ac_mid ')' + 1`
  8465. fi
  8466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8467. done
  8468. case $ac_lo in
  8469. ?*) ac_cv_sizeof_time_t=$ac_lo;;
  8470. '') if test "$ac_cv_type_time_t" = yes; then
  8471. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8472. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8473. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8474. See \`config.log' for more details." >&5
  8475. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8476. See \`config.log' for more details." >&2;}
  8477. { (exit 77); exit 77; }; }; }
  8478. else
  8479. ac_cv_sizeof_time_t=0
  8480. fi ;;
  8481. esac
  8482. else
  8483. cat >conftest.$ac_ext <<_ACEOF
  8484. /* confdefs.h. */
  8485. _ACEOF
  8486. cat confdefs.h >>conftest.$ac_ext
  8487. cat >>conftest.$ac_ext <<_ACEOF
  8488. /* end confdefs.h. */
  8489. $ac_includes_default
  8490. static long int longval () { return (long int) (sizeof (time_t)); }
  8491. static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
  8492. #include <stdio.h>
  8493. #include <stdlib.h>
  8494. int
  8495. main ()
  8496. {
  8497. FILE *f = fopen ("conftest.val", "w");
  8498. if (! f)
  8499. return 1;
  8500. if (((long int) (sizeof (time_t))) < 0)
  8501. {
  8502. long int i = longval ();
  8503. if (i != ((long int) (sizeof (time_t))))
  8504. return 1;
  8505. fprintf (f, "%ld", i);
  8506. }
  8507. else
  8508. {
  8509. unsigned long int i = ulongval ();
  8510. if (i != ((long int) (sizeof (time_t))))
  8511. return 1;
  8512. fprintf (f, "%lu", i);
  8513. }
  8514. /* Do not output a trailing newline, as this causes \r\n confusion
  8515. on some platforms. */
  8516. return ferror (f) || fclose (f) != 0;
  8517. ;
  8518. return 0;
  8519. }
  8520. _ACEOF
  8521. rm -f conftest$ac_exeext
  8522. if { (ac_try="$ac_link"
  8523. case "(($ac_try" in
  8524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8525. *) ac_try_echo=$ac_try;;
  8526. esac
  8527. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8528. $as_echo "$ac_try_echo") >&5
  8529. (eval "$ac_link") 2>&5
  8530. ac_status=$?
  8531. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8532. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8533. { (case "(($ac_try" in
  8534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8535. *) ac_try_echo=$ac_try;;
  8536. esac
  8537. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8538. $as_echo "$ac_try_echo") >&5
  8539. (eval "$ac_try") 2>&5
  8540. ac_status=$?
  8541. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8542. (exit $ac_status); }; }; then
  8543. ac_cv_sizeof_time_t=`cat conftest.val`
  8544. else
  8545. $as_echo "$as_me: program exited with status $ac_status" >&5
  8546. $as_echo "$as_me: failed program was:" >&5
  8547. sed 's/^/| /' conftest.$ac_ext >&5
  8548. ( exit $ac_status )
  8549. if test "$ac_cv_type_time_t" = yes; then
  8550. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  8551. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8552. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
  8553. See \`config.log' for more details." >&5
  8554. $as_echo "$as_me: error: cannot compute sizeof (time_t)
  8555. See \`config.log' for more details." >&2;}
  8556. { (exit 77); exit 77; }; }; }
  8557. else
  8558. ac_cv_sizeof_time_t=0
  8559. fi
  8560. fi
  8561. rm -rf conftest.dSYM
  8562. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8563. fi
  8564. rm -f conftest.val
  8565. fi
  8566. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
  8567. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  8568. cat >>confdefs.h <<_ACEOF
  8569. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  8570. _ACEOF
  8571. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8572. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8573. if test "${ac_cv_struct_tm+set}" = set; then
  8574. $as_echo_n "(cached) " >&6
  8575. else
  8576. cat >conftest.$ac_ext <<_ACEOF
  8577. /* confdefs.h. */
  8578. _ACEOF
  8579. cat confdefs.h >>conftest.$ac_ext
  8580. cat >>conftest.$ac_ext <<_ACEOF
  8581. /* end confdefs.h. */
  8582. #include <sys/types.h>
  8583. #include <time.h>
  8584. int
  8585. main ()
  8586. {
  8587. struct tm tm;
  8588. int *p = &tm.tm_sec;
  8589. return !p;
  8590. ;
  8591. return 0;
  8592. }
  8593. _ACEOF
  8594. rm -f conftest.$ac_objext
  8595. if { (ac_try="$ac_compile"
  8596. case "(($ac_try" in
  8597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8598. *) ac_try_echo=$ac_try;;
  8599. esac
  8600. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8601. $as_echo "$ac_try_echo") >&5
  8602. (eval "$ac_compile") 2>conftest.er1
  8603. ac_status=$?
  8604. grep -v '^ *+' conftest.er1 >conftest.err
  8605. rm -f conftest.er1
  8606. cat conftest.err >&5
  8607. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8608. (exit $ac_status); } && {
  8609. test -z "$ac_cxx_werror_flag" ||
  8610. test ! -s conftest.err
  8611. } && test -s conftest.$ac_objext; then
  8612. ac_cv_struct_tm=time.h
  8613. else
  8614. $as_echo "$as_me: failed program was:" >&5
  8615. sed 's/^/| /' conftest.$ac_ext >&5
  8616. ac_cv_struct_tm=sys/time.h
  8617. fi
  8618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8619. fi
  8620. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8621. $as_echo "$ac_cv_struct_tm" >&6; }
  8622. if test $ac_cv_struct_tm = sys/time.h; then
  8623. cat >>confdefs.h <<\_ACEOF
  8624. #define TM_IN_SYS_TIME 1
  8625. _ACEOF
  8626. fi
  8627. { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8628. $as_echo_n "checking for struct tm.tm_zone... " >&6; }
  8629. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8630. $as_echo_n "(cached) " >&6
  8631. else
  8632. cat >conftest.$ac_ext <<_ACEOF
  8633. /* confdefs.h. */
  8634. _ACEOF
  8635. cat confdefs.h >>conftest.$ac_ext
  8636. cat >>conftest.$ac_ext <<_ACEOF
  8637. /* end confdefs.h. */
  8638. #include <sys/types.h>
  8639. #include <$ac_cv_struct_tm>
  8640. int
  8641. main ()
  8642. {
  8643. static struct tm ac_aggr;
  8644. if (ac_aggr.tm_zone)
  8645. return 0;
  8646. ;
  8647. return 0;
  8648. }
  8649. _ACEOF
  8650. rm -f conftest.$ac_objext
  8651. if { (ac_try="$ac_compile"
  8652. case "(($ac_try" in
  8653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8654. *) ac_try_echo=$ac_try;;
  8655. esac
  8656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8657. $as_echo "$ac_try_echo") >&5
  8658. (eval "$ac_compile") 2>conftest.er1
  8659. ac_status=$?
  8660. grep -v '^ *+' conftest.er1 >conftest.err
  8661. rm -f conftest.er1
  8662. cat conftest.err >&5
  8663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8664. (exit $ac_status); } && {
  8665. test -z "$ac_cxx_werror_flag" ||
  8666. test ! -s conftest.err
  8667. } && test -s conftest.$ac_objext; then
  8668. ac_cv_member_struct_tm_tm_zone=yes
  8669. else
  8670. $as_echo "$as_me: failed program was:" >&5
  8671. sed 's/^/| /' conftest.$ac_ext >&5
  8672. cat >conftest.$ac_ext <<_ACEOF
  8673. /* confdefs.h. */
  8674. _ACEOF
  8675. cat confdefs.h >>conftest.$ac_ext
  8676. cat >>conftest.$ac_ext <<_ACEOF
  8677. /* end confdefs.h. */
  8678. #include <sys/types.h>
  8679. #include <$ac_cv_struct_tm>
  8680. int
  8681. main ()
  8682. {
  8683. static struct tm ac_aggr;
  8684. if (sizeof ac_aggr.tm_zone)
  8685. return 0;
  8686. ;
  8687. return 0;
  8688. }
  8689. _ACEOF
  8690. rm -f conftest.$ac_objext
  8691. if { (ac_try="$ac_compile"
  8692. case "(($ac_try" in
  8693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8694. *) ac_try_echo=$ac_try;;
  8695. esac
  8696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8697. $as_echo "$ac_try_echo") >&5
  8698. (eval "$ac_compile") 2>conftest.er1
  8699. ac_status=$?
  8700. grep -v '^ *+' conftest.er1 >conftest.err
  8701. rm -f conftest.er1
  8702. cat conftest.err >&5
  8703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8704. (exit $ac_status); } && {
  8705. test -z "$ac_cxx_werror_flag" ||
  8706. test ! -s conftest.err
  8707. } && test -s conftest.$ac_objext; then
  8708. ac_cv_member_struct_tm_tm_zone=yes
  8709. else
  8710. $as_echo "$as_me: failed program was:" >&5
  8711. sed 's/^/| /' conftest.$ac_ext >&5
  8712. ac_cv_member_struct_tm_tm_zone=no
  8713. fi
  8714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8715. fi
  8716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8717. fi
  8718. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8719. $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
  8720. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
  8721. cat >>confdefs.h <<_ACEOF
  8722. #define HAVE_STRUCT_TM_TM_ZONE 1
  8723. _ACEOF
  8724. fi
  8725. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8726. cat >>confdefs.h <<\_ACEOF
  8727. #define HAVE_TM_ZONE 1
  8728. _ACEOF
  8729. else
  8730. { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  8731. $as_echo_n "checking whether tzname is declared... " >&6; }
  8732. if test "${ac_cv_have_decl_tzname+set}" = set; then
  8733. $as_echo_n "(cached) " >&6
  8734. else
  8735. cat >conftest.$ac_ext <<_ACEOF
  8736. /* confdefs.h. */
  8737. _ACEOF
  8738. cat confdefs.h >>conftest.$ac_ext
  8739. cat >>conftest.$ac_ext <<_ACEOF
  8740. /* end confdefs.h. */
  8741. #include <time.h>
  8742. int
  8743. main ()
  8744. {
  8745. #ifndef tzname
  8746. (void) tzname;
  8747. #endif
  8748. ;
  8749. return 0;
  8750. }
  8751. _ACEOF
  8752. rm -f conftest.$ac_objext
  8753. if { (ac_try="$ac_compile"
  8754. case "(($ac_try" in
  8755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8756. *) ac_try_echo=$ac_try;;
  8757. esac
  8758. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8759. $as_echo "$ac_try_echo") >&5
  8760. (eval "$ac_compile") 2>conftest.er1
  8761. ac_status=$?
  8762. grep -v '^ *+' conftest.er1 >conftest.err
  8763. rm -f conftest.er1
  8764. cat conftest.err >&5
  8765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8766. (exit $ac_status); } && {
  8767. test -z "$ac_cxx_werror_flag" ||
  8768. test ! -s conftest.err
  8769. } && test -s conftest.$ac_objext; then
  8770. ac_cv_have_decl_tzname=yes
  8771. else
  8772. $as_echo "$as_me: failed program was:" >&5
  8773. sed 's/^/| /' conftest.$ac_ext >&5
  8774. ac_cv_have_decl_tzname=no
  8775. fi
  8776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8777. fi
  8778. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  8779. $as_echo "$ac_cv_have_decl_tzname" >&6; }
  8780. if test "x$ac_cv_have_decl_tzname" = x""yes; then
  8781. cat >>confdefs.h <<_ACEOF
  8782. #define HAVE_DECL_TZNAME 1
  8783. _ACEOF
  8784. else
  8785. cat >>confdefs.h <<_ACEOF
  8786. #define HAVE_DECL_TZNAME 0
  8787. _ACEOF
  8788. fi
  8789. { $as_echo "$as_me:$LINENO: checking for tzname" >&5
  8790. $as_echo_n "checking for tzname... " >&6; }
  8791. if test "${ac_cv_var_tzname+set}" = set; then
  8792. $as_echo_n "(cached) " >&6
  8793. else
  8794. cat >conftest.$ac_ext <<_ACEOF
  8795. /* confdefs.h. */
  8796. _ACEOF
  8797. cat confdefs.h >>conftest.$ac_ext
  8798. cat >>conftest.$ac_ext <<_ACEOF
  8799. /* end confdefs.h. */
  8800. #include <time.h>
  8801. #if !HAVE_DECL_TZNAME
  8802. extern char *tzname[];
  8803. #endif
  8804. int
  8805. main ()
  8806. {
  8807. return tzname[0][0];
  8808. ;
  8809. return 0;
  8810. }
  8811. _ACEOF
  8812. rm -f conftest.$ac_objext conftest$ac_exeext
  8813. if { (ac_try="$ac_link"
  8814. case "(($ac_try" in
  8815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8816. *) ac_try_echo=$ac_try;;
  8817. esac
  8818. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8819. $as_echo "$ac_try_echo") >&5
  8820. (eval "$ac_link") 2>conftest.er1
  8821. ac_status=$?
  8822. grep -v '^ *+' conftest.er1 >conftest.err
  8823. rm -f conftest.er1
  8824. cat conftest.err >&5
  8825. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8826. (exit $ac_status); } && {
  8827. test -z "$ac_cxx_werror_flag" ||
  8828. test ! -s conftest.err
  8829. } && test -s conftest$ac_exeext && {
  8830. test "$cross_compiling" = yes ||
  8831. $as_test_x conftest$ac_exeext
  8832. }; then
  8833. ac_cv_var_tzname=yes
  8834. else
  8835. $as_echo "$as_me: failed program was:" >&5
  8836. sed 's/^/| /' conftest.$ac_ext >&5
  8837. ac_cv_var_tzname=no
  8838. fi
  8839. rm -rf conftest.dSYM
  8840. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8841. conftest$ac_exeext conftest.$ac_ext
  8842. fi
  8843. { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8844. $as_echo "$ac_cv_var_tzname" >&6; }
  8845. if test $ac_cv_var_tzname = yes; then
  8846. cat >>confdefs.h <<\_ACEOF
  8847. #define HAVE_TZNAME 1
  8848. _ACEOF
  8849. fi
  8850. fi
  8851. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8852. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8853. if test "${ac_cv_struct_tm+set}" = set; then
  8854. $as_echo_n "(cached) " >&6
  8855. else
  8856. cat >conftest.$ac_ext <<_ACEOF
  8857. /* confdefs.h. */
  8858. _ACEOF
  8859. cat confdefs.h >>conftest.$ac_ext
  8860. cat >>conftest.$ac_ext <<_ACEOF
  8861. /* end confdefs.h. */
  8862. #include <sys/types.h>
  8863. #include <time.h>
  8864. int
  8865. main ()
  8866. {
  8867. struct tm tm;
  8868. int *p = &tm.tm_sec;
  8869. return !p;
  8870. ;
  8871. return 0;
  8872. }
  8873. _ACEOF
  8874. rm -f conftest.$ac_objext
  8875. if { (ac_try="$ac_compile"
  8876. case "(($ac_try" in
  8877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8878. *) ac_try_echo=$ac_try;;
  8879. esac
  8880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8881. $as_echo "$ac_try_echo") >&5
  8882. (eval "$ac_compile") 2>conftest.er1
  8883. ac_status=$?
  8884. grep -v '^ *+' conftest.er1 >conftest.err
  8885. rm -f conftest.er1
  8886. cat conftest.err >&5
  8887. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8888. (exit $ac_status); } && {
  8889. test -z "$ac_cxx_werror_flag" ||
  8890. test ! -s conftest.err
  8891. } && test -s conftest.$ac_objext; then
  8892. ac_cv_struct_tm=time.h
  8893. else
  8894. $as_echo "$as_me: failed program was:" >&5
  8895. sed 's/^/| /' conftest.$ac_ext >&5
  8896. ac_cv_struct_tm=sys/time.h
  8897. fi
  8898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8899. fi
  8900. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8901. $as_echo "$ac_cv_struct_tm" >&6; }
  8902. if test $ac_cv_struct_tm = sys/time.h; then
  8903. cat >>confdefs.h <<\_ACEOF
  8904. #define TM_IN_SYS_TIME 1
  8905. _ACEOF
  8906. fi
  8907. # Checks for library functions
  8908. for ac_header in vfork.h
  8909. do
  8910. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8911. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8912. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  8913. $as_echo_n "checking for $ac_header... " >&6; }
  8914. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8915. $as_echo_n "(cached) " >&6
  8916. fi
  8917. ac_res=`eval 'as_val=${'$as_ac_Header'}
  8918. $as_echo "$as_val"'`
  8919. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  8920. $as_echo "$ac_res" >&6; }
  8921. else
  8922. # Is the header compilable?
  8923. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8924. $as_echo_n "checking $ac_header usability... " >&6; }
  8925. cat >conftest.$ac_ext <<_ACEOF
  8926. /* confdefs.h. */
  8927. _ACEOF
  8928. cat confdefs.h >>conftest.$ac_ext
  8929. cat >>conftest.$ac_ext <<_ACEOF
  8930. /* end confdefs.h. */
  8931. $ac_includes_default
  8932. #include <$ac_header>
  8933. _ACEOF
  8934. rm -f conftest.$ac_objext
  8935. if { (ac_try="$ac_compile"
  8936. case "(($ac_try" in
  8937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8938. *) ac_try_echo=$ac_try;;
  8939. esac
  8940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8941. $as_echo "$ac_try_echo") >&5
  8942. (eval "$ac_compile") 2>conftest.er1
  8943. ac_status=$?
  8944. grep -v '^ *+' conftest.er1 >conftest.err
  8945. rm -f conftest.er1
  8946. cat conftest.err >&5
  8947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. (exit $ac_status); } && {
  8949. test -z "$ac_cxx_werror_flag" ||
  8950. test ! -s conftest.err
  8951. } && test -s conftest.$ac_objext; then
  8952. ac_header_compiler=yes
  8953. else
  8954. $as_echo "$as_me: failed program was:" >&5
  8955. sed 's/^/| /' conftest.$ac_ext >&5
  8956. ac_header_compiler=no
  8957. fi
  8958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8959. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8960. $as_echo "$ac_header_compiler" >&6; }
  8961. # Is the header present?
  8962. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8963. $as_echo_n "checking $ac_header presence... " >&6; }
  8964. cat >conftest.$ac_ext <<_ACEOF
  8965. /* confdefs.h. */
  8966. _ACEOF
  8967. cat confdefs.h >>conftest.$ac_ext
  8968. cat >>conftest.$ac_ext <<_ACEOF
  8969. /* end confdefs.h. */
  8970. #include <$ac_header>
  8971. _ACEOF
  8972. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8973. case "(($ac_try" in
  8974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8975. *) ac_try_echo=$ac_try;;
  8976. esac
  8977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8978. $as_echo "$ac_try_echo") >&5
  8979. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8980. ac_status=$?
  8981. grep -v '^ *+' conftest.er1 >conftest.err
  8982. rm -f conftest.er1
  8983. cat conftest.err >&5
  8984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8985. (exit $ac_status); } >/dev/null && {
  8986. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8987. test ! -s conftest.err
  8988. }; then
  8989. ac_header_preproc=yes
  8990. else
  8991. $as_echo "$as_me: failed program was:" >&5
  8992. sed 's/^/| /' conftest.$ac_ext >&5
  8993. ac_header_preproc=no
  8994. fi
  8995. rm -f conftest.err conftest.$ac_ext
  8996. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8997. $as_echo "$ac_header_preproc" >&6; }
  8998. # So? What about this header?
  8999. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9000. yes:no: )
  9001. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9002. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9003. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9004. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9005. ac_header_preproc=yes
  9006. ;;
  9007. no:yes:* )
  9008. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9009. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9010. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9011. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9012. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9013. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9014. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9015. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9016. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9017. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9018. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9019. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9020. ;;
  9021. esac
  9022. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9023. $as_echo_n "checking for $ac_header... " >&6; }
  9024. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9025. $as_echo_n "(cached) " >&6
  9026. else
  9027. eval "$as_ac_Header=\$ac_header_preproc"
  9028. fi
  9029. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9030. $as_echo "$as_val"'`
  9031. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9032. $as_echo "$ac_res" >&6; }
  9033. fi
  9034. as_val=`eval 'as_val=${'$as_ac_Header'}
  9035. $as_echo "$as_val"'`
  9036. if test "x$as_val" = x""yes; then
  9037. cat >>confdefs.h <<_ACEOF
  9038. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9039. _ACEOF
  9040. fi
  9041. done
  9042. for ac_func in fork vfork
  9043. do
  9044. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9045. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9046. $as_echo_n "checking for $ac_func... " >&6; }
  9047. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9048. $as_echo_n "(cached) " >&6
  9049. else
  9050. cat >conftest.$ac_ext <<_ACEOF
  9051. /* confdefs.h. */
  9052. _ACEOF
  9053. cat confdefs.h >>conftest.$ac_ext
  9054. cat >>conftest.$ac_ext <<_ACEOF
  9055. /* end confdefs.h. */
  9056. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9057. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9058. #define $ac_func innocuous_$ac_func
  9059. /* System header to define __stub macros and hopefully few prototypes,
  9060. which can conflict with char $ac_func (); below.
  9061. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9062. <limits.h> exists even on freestanding compilers. */
  9063. #ifdef __STDC__
  9064. # include <limits.h>
  9065. #else
  9066. # include <assert.h>
  9067. #endif
  9068. #undef $ac_func
  9069. /* Override any GCC internal prototype to avoid an error.
  9070. Use char because int might match the return type of a GCC
  9071. builtin and then its argument prototype would still apply. */
  9072. #ifdef __cplusplus
  9073. extern "C"
  9074. #endif
  9075. char $ac_func ();
  9076. /* The GNU C library defines this for functions which it implements
  9077. to always fail with ENOSYS. Some functions are actually named
  9078. something starting with __ and the normal name is an alias. */
  9079. #if defined __stub_$ac_func || defined __stub___$ac_func
  9080. choke me
  9081. #endif
  9082. int
  9083. main ()
  9084. {
  9085. return $ac_func ();
  9086. ;
  9087. return 0;
  9088. }
  9089. _ACEOF
  9090. rm -f conftest.$ac_objext conftest$ac_exeext
  9091. if { (ac_try="$ac_link"
  9092. case "(($ac_try" in
  9093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9094. *) ac_try_echo=$ac_try;;
  9095. esac
  9096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9097. $as_echo "$ac_try_echo") >&5
  9098. (eval "$ac_link") 2>conftest.er1
  9099. ac_status=$?
  9100. grep -v '^ *+' conftest.er1 >conftest.err
  9101. rm -f conftest.er1
  9102. cat conftest.err >&5
  9103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9104. (exit $ac_status); } && {
  9105. test -z "$ac_cxx_werror_flag" ||
  9106. test ! -s conftest.err
  9107. } && test -s conftest$ac_exeext && {
  9108. test "$cross_compiling" = yes ||
  9109. $as_test_x conftest$ac_exeext
  9110. }; then
  9111. eval "$as_ac_var=yes"
  9112. else
  9113. $as_echo "$as_me: failed program was:" >&5
  9114. sed 's/^/| /' conftest.$ac_ext >&5
  9115. eval "$as_ac_var=no"
  9116. fi
  9117. rm -rf conftest.dSYM
  9118. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9119. conftest$ac_exeext conftest.$ac_ext
  9120. fi
  9121. ac_res=`eval 'as_val=${'$as_ac_var'}
  9122. $as_echo "$as_val"'`
  9123. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9124. $as_echo "$ac_res" >&6; }
  9125. as_val=`eval 'as_val=${'$as_ac_var'}
  9126. $as_echo "$as_val"'`
  9127. if test "x$as_val" = x""yes; then
  9128. cat >>confdefs.h <<_ACEOF
  9129. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9130. _ACEOF
  9131. fi
  9132. done
  9133. if test "x$ac_cv_func_fork" = xyes; then
  9134. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  9135. $as_echo_n "checking for working fork... " >&6; }
  9136. if test "${ac_cv_func_fork_works+set}" = set; then
  9137. $as_echo_n "(cached) " >&6
  9138. else
  9139. if test "$cross_compiling" = yes; then
  9140. ac_cv_func_fork_works=cross
  9141. else
  9142. cat >conftest.$ac_ext <<_ACEOF
  9143. /* confdefs.h. */
  9144. _ACEOF
  9145. cat confdefs.h >>conftest.$ac_ext
  9146. cat >>conftest.$ac_ext <<_ACEOF
  9147. /* end confdefs.h. */
  9148. $ac_includes_default
  9149. int
  9150. main ()
  9151. {
  9152. /* By Ruediger Kuhlmann. */
  9153. return fork () < 0;
  9154. ;
  9155. return 0;
  9156. }
  9157. _ACEOF
  9158. rm -f conftest$ac_exeext
  9159. if { (ac_try="$ac_link"
  9160. case "(($ac_try" in
  9161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9162. *) ac_try_echo=$ac_try;;
  9163. esac
  9164. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9165. $as_echo "$ac_try_echo") >&5
  9166. (eval "$ac_link") 2>&5
  9167. ac_status=$?
  9168. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9169. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9170. { (case "(($ac_try" in
  9171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9172. *) ac_try_echo=$ac_try;;
  9173. esac
  9174. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9175. $as_echo "$ac_try_echo") >&5
  9176. (eval "$ac_try") 2>&5
  9177. ac_status=$?
  9178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9179. (exit $ac_status); }; }; then
  9180. ac_cv_func_fork_works=yes
  9181. else
  9182. $as_echo "$as_me: program exited with status $ac_status" >&5
  9183. $as_echo "$as_me: failed program was:" >&5
  9184. sed 's/^/| /' conftest.$ac_ext >&5
  9185. ( exit $ac_status )
  9186. ac_cv_func_fork_works=no
  9187. fi
  9188. rm -rf conftest.dSYM
  9189. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9190. fi
  9191. fi
  9192. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  9193. $as_echo "$ac_cv_func_fork_works" >&6; }
  9194. else
  9195. ac_cv_func_fork_works=$ac_cv_func_fork
  9196. fi
  9197. if test "x$ac_cv_func_fork_works" = xcross; then
  9198. case $host in
  9199. *-*-amigaos* | *-*-msdosdjgpp*)
  9200. # Override, as these systems have only a dummy fork() stub
  9201. ac_cv_func_fork_works=no
  9202. ;;
  9203. *)
  9204. ac_cv_func_fork_works=yes
  9205. ;;
  9206. esac
  9207. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9208. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9209. fi
  9210. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9211. if test "x$ac_cv_func_vfork" = xyes; then
  9212. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  9213. $as_echo_n "checking for working vfork... " >&6; }
  9214. if test "${ac_cv_func_vfork_works+set}" = set; then
  9215. $as_echo_n "(cached) " >&6
  9216. else
  9217. if test "$cross_compiling" = yes; then
  9218. ac_cv_func_vfork_works=cross
  9219. else
  9220. cat >conftest.$ac_ext <<_ACEOF
  9221. /* confdefs.h. */
  9222. _ACEOF
  9223. cat confdefs.h >>conftest.$ac_ext
  9224. cat >>conftest.$ac_ext <<_ACEOF
  9225. /* end confdefs.h. */
  9226. /* Thanks to Paul Eggert for this test. */
  9227. $ac_includes_default
  9228. #include <sys/wait.h>
  9229. #ifdef HAVE_VFORK_H
  9230. # include <vfork.h>
  9231. #endif
  9232. /* On some sparc systems, changes by the child to local and incoming
  9233. argument registers are propagated back to the parent. The compiler
  9234. is told about this with #include <vfork.h>, but some compilers
  9235. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  9236. static variable whose address is put into a register that is
  9237. clobbered by the vfork. */
  9238. static void
  9239. #ifdef __cplusplus
  9240. sparc_address_test (int arg)
  9241. # else
  9242. sparc_address_test (arg) int arg;
  9243. #endif
  9244. {
  9245. static pid_t child;
  9246. if (!child) {
  9247. child = vfork ();
  9248. if (child < 0) {
  9249. perror ("vfork");
  9250. _exit(2);
  9251. }
  9252. if (!child) {
  9253. arg = getpid();
  9254. write(-1, "", 0);
  9255. _exit (arg);
  9256. }
  9257. }
  9258. }
  9259. int
  9260. main ()
  9261. {
  9262. pid_t parent = getpid ();
  9263. pid_t child;
  9264. sparc_address_test (0);
  9265. child = vfork ();
  9266. if (child == 0) {
  9267. /* Here is another test for sparc vfork register problems. This
  9268. test uses lots of local variables, at least as many local
  9269. variables as main has allocated so far including compiler
  9270. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  9271. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  9272. reuse the register of parent for one of the local variables,
  9273. since it will think that parent can't possibly be used any more
  9274. in this routine. Assigning to the local variable will thus
  9275. munge parent in the parent process. */
  9276. pid_t
  9277. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9278. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9279. /* Convince the compiler that p..p7 are live; otherwise, it might
  9280. use the same hardware register for all 8 local variables. */
  9281. if (p != p1 || p != p2 || p != p3 || p != p4
  9282. || p != p5 || p != p6 || p != p7)
  9283. _exit(1);
  9284. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9285. from child file descriptors. If the child closes a descriptor
  9286. before it execs or exits, this munges the parent's descriptor
  9287. as well. Test for this by closing stdout in the child. */
  9288. _exit(close(fileno(stdout)) != 0);
  9289. } else {
  9290. int status;
  9291. struct stat st;
  9292. while (wait(&status) != child)
  9293. ;
  9294. return (
  9295. /* Was there some problem with vforking? */
  9296. child < 0
  9297. /* Did the child fail? (This shouldn't happen.) */
  9298. || status
  9299. /* Did the vfork/compiler bug occur? */
  9300. || parent != getpid()
  9301. /* Did the file descriptor bug occur? */
  9302. || fstat(fileno(stdout), &st) != 0
  9303. );
  9304. }
  9305. }
  9306. _ACEOF
  9307. rm -f conftest$ac_exeext
  9308. if { (ac_try="$ac_link"
  9309. case "(($ac_try" in
  9310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9311. *) ac_try_echo=$ac_try;;
  9312. esac
  9313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9314. $as_echo "$ac_try_echo") >&5
  9315. (eval "$ac_link") 2>&5
  9316. ac_status=$?
  9317. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9318. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9319. { (case "(($ac_try" in
  9320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9321. *) ac_try_echo=$ac_try;;
  9322. esac
  9323. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9324. $as_echo "$ac_try_echo") >&5
  9325. (eval "$ac_try") 2>&5
  9326. ac_status=$?
  9327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9328. (exit $ac_status); }; }; then
  9329. ac_cv_func_vfork_works=yes
  9330. else
  9331. $as_echo "$as_me: program exited with status $ac_status" >&5
  9332. $as_echo "$as_me: failed program was:" >&5
  9333. sed 's/^/| /' conftest.$ac_ext >&5
  9334. ( exit $ac_status )
  9335. ac_cv_func_vfork_works=no
  9336. fi
  9337. rm -rf conftest.dSYM
  9338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9339. fi
  9340. fi
  9341. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  9342. $as_echo "$ac_cv_func_vfork_works" >&6; }
  9343. fi;
  9344. if test "x$ac_cv_func_fork_works" = xcross; then
  9345. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9346. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9347. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9348. fi
  9349. if test "x$ac_cv_func_vfork_works" = xyes; then
  9350. cat >>confdefs.h <<\_ACEOF
  9351. #define HAVE_WORKING_VFORK 1
  9352. _ACEOF
  9353. else
  9354. cat >>confdefs.h <<\_ACEOF
  9355. #define vfork fork
  9356. _ACEOF
  9357. fi
  9358. if test "x$ac_cv_func_fork_works" = xyes; then
  9359. cat >>confdefs.h <<\_ACEOF
  9360. #define HAVE_WORKING_FORK 1
  9361. _ACEOF
  9362. fi
  9363. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9364. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9365. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9366. $as_echo_n "(cached) " >&6
  9367. else
  9368. rm -f conftest.sym conftest.file
  9369. echo >conftest.file
  9370. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9371. if test "$cross_compiling" = yes; then
  9372. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9373. else
  9374. cat >conftest.$ac_ext <<_ACEOF
  9375. /* confdefs.h. */
  9376. _ACEOF
  9377. cat confdefs.h >>conftest.$ac_ext
  9378. cat >>conftest.$ac_ext <<_ACEOF
  9379. /* end confdefs.h. */
  9380. $ac_includes_default
  9381. int
  9382. main ()
  9383. {
  9384. struct stat sbuf;
  9385. /* Linux will dereference the symlink and fail.
  9386. That is better in the sense that it means we will not
  9387. have to compile and use the lstat wrapper. */
  9388. return lstat ("conftest.sym/", &sbuf) == 0;
  9389. ;
  9390. return 0;
  9391. }
  9392. _ACEOF
  9393. rm -f conftest$ac_exeext
  9394. if { (ac_try="$ac_link"
  9395. case "(($ac_try" in
  9396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9397. *) ac_try_echo=$ac_try;;
  9398. esac
  9399. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9400. $as_echo "$ac_try_echo") >&5
  9401. (eval "$ac_link") 2>&5
  9402. ac_status=$?
  9403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9404. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9405. { (case "(($ac_try" in
  9406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9407. *) ac_try_echo=$ac_try;;
  9408. esac
  9409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9410. $as_echo "$ac_try_echo") >&5
  9411. (eval "$ac_try") 2>&5
  9412. ac_status=$?
  9413. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9414. (exit $ac_status); }; }; then
  9415. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9416. else
  9417. $as_echo "$as_me: program exited with status $ac_status" >&5
  9418. $as_echo "$as_me: failed program was:" >&5
  9419. sed 's/^/| /' conftest.$ac_ext >&5
  9420. ( exit $ac_status )
  9421. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9422. fi
  9423. rm -rf conftest.dSYM
  9424. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9425. fi
  9426. else
  9427. # If the `ln -s' command failed, then we probably don't even
  9428. # have an lstat function.
  9429. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9430. fi
  9431. rm -f conftest.sym conftest.file
  9432. fi
  9433. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9434. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9435. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9436. cat >>confdefs.h <<_ACEOF
  9437. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9438. _ACEOF
  9439. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9440. case " $LIBOBJS " in
  9441. *" lstat.$ac_objext "* ) ;;
  9442. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9443. ;;
  9444. esac
  9445. fi
  9446. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  9447. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  9448. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  9449. $as_echo_n "(cached) " >&6
  9450. else
  9451. if test "$cross_compiling" = yes; then
  9452. ac_cv_func_lstat_empty_string_bug=yes
  9453. else
  9454. cat >conftest.$ac_ext <<_ACEOF
  9455. /* confdefs.h. */
  9456. _ACEOF
  9457. cat confdefs.h >>conftest.$ac_ext
  9458. cat >>conftest.$ac_ext <<_ACEOF
  9459. /* end confdefs.h. */
  9460. $ac_includes_default
  9461. int
  9462. main ()
  9463. {
  9464. struct stat sbuf;
  9465. return lstat ("", &sbuf) == 0;
  9466. ;
  9467. return 0;
  9468. }
  9469. _ACEOF
  9470. rm -f conftest$ac_exeext
  9471. if { (ac_try="$ac_link"
  9472. case "(($ac_try" in
  9473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9474. *) ac_try_echo=$ac_try;;
  9475. esac
  9476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9477. $as_echo "$ac_try_echo") >&5
  9478. (eval "$ac_link") 2>&5
  9479. ac_status=$?
  9480. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9481. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9482. { (case "(($ac_try" in
  9483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9484. *) ac_try_echo=$ac_try;;
  9485. esac
  9486. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9487. $as_echo "$ac_try_echo") >&5
  9488. (eval "$ac_try") 2>&5
  9489. ac_status=$?
  9490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9491. (exit $ac_status); }; }; then
  9492. ac_cv_func_lstat_empty_string_bug=no
  9493. else
  9494. $as_echo "$as_me: program exited with status $ac_status" >&5
  9495. $as_echo "$as_me: failed program was:" >&5
  9496. sed 's/^/| /' conftest.$ac_ext >&5
  9497. ( exit $ac_status )
  9498. ac_cv_func_lstat_empty_string_bug=yes
  9499. fi
  9500. rm -rf conftest.dSYM
  9501. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9502. fi
  9503. fi
  9504. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9505. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  9506. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9507. case " $LIBOBJS " in
  9508. *" lstat.$ac_objext "* ) ;;
  9509. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9510. ;;
  9511. esac
  9512. cat >>confdefs.h <<_ACEOF
  9513. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9514. _ACEOF
  9515. fi
  9516. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9517. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  9518. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9519. $as_echo_n "(cached) " >&6
  9520. else
  9521. rm -f conftest.sym conftest.file
  9522. echo >conftest.file
  9523. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9524. if test "$cross_compiling" = yes; then
  9525. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9526. else
  9527. cat >conftest.$ac_ext <<_ACEOF
  9528. /* confdefs.h. */
  9529. _ACEOF
  9530. cat confdefs.h >>conftest.$ac_ext
  9531. cat >>conftest.$ac_ext <<_ACEOF
  9532. /* end confdefs.h. */
  9533. $ac_includes_default
  9534. int
  9535. main ()
  9536. {
  9537. struct stat sbuf;
  9538. /* Linux will dereference the symlink and fail.
  9539. That is better in the sense that it means we will not
  9540. have to compile and use the lstat wrapper. */
  9541. return lstat ("conftest.sym/", &sbuf) == 0;
  9542. ;
  9543. return 0;
  9544. }
  9545. _ACEOF
  9546. rm -f conftest$ac_exeext
  9547. if { (ac_try="$ac_link"
  9548. case "(($ac_try" in
  9549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9550. *) ac_try_echo=$ac_try;;
  9551. esac
  9552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9553. $as_echo "$ac_try_echo") >&5
  9554. (eval "$ac_link") 2>&5
  9555. ac_status=$?
  9556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9557. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9558. { (case "(($ac_try" in
  9559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9560. *) ac_try_echo=$ac_try;;
  9561. esac
  9562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9563. $as_echo "$ac_try_echo") >&5
  9564. (eval "$ac_try") 2>&5
  9565. ac_status=$?
  9566. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9567. (exit $ac_status); }; }; then
  9568. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9569. else
  9570. $as_echo "$as_me: program exited with status $ac_status" >&5
  9571. $as_echo "$as_me: failed program was:" >&5
  9572. sed 's/^/| /' conftest.$ac_ext >&5
  9573. ( exit $ac_status )
  9574. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9575. fi
  9576. rm -rf conftest.dSYM
  9577. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9578. fi
  9579. else
  9580. # If the `ln -s' command failed, then we probably don't even
  9581. # have an lstat function.
  9582. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9583. fi
  9584. rm -f conftest.sym conftest.file
  9585. fi
  9586. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9587. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  9588. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9589. cat >>confdefs.h <<_ACEOF
  9590. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9591. _ACEOF
  9592. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9593. case " $LIBOBJS " in
  9594. *" lstat.$ac_objext "* ) ;;
  9595. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  9596. ;;
  9597. esac
  9598. fi
  9599. for ac_header in stdlib.h
  9600. do
  9601. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9602. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9603. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9604. $as_echo_n "checking for $ac_header... " >&6; }
  9605. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9606. $as_echo_n "(cached) " >&6
  9607. fi
  9608. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9609. $as_echo "$as_val"'`
  9610. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9611. $as_echo "$ac_res" >&6; }
  9612. else
  9613. # Is the header compilable?
  9614. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9615. $as_echo_n "checking $ac_header usability... " >&6; }
  9616. cat >conftest.$ac_ext <<_ACEOF
  9617. /* confdefs.h. */
  9618. _ACEOF
  9619. cat confdefs.h >>conftest.$ac_ext
  9620. cat >>conftest.$ac_ext <<_ACEOF
  9621. /* end confdefs.h. */
  9622. $ac_includes_default
  9623. #include <$ac_header>
  9624. _ACEOF
  9625. rm -f conftest.$ac_objext
  9626. if { (ac_try="$ac_compile"
  9627. case "(($ac_try" in
  9628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9629. *) ac_try_echo=$ac_try;;
  9630. esac
  9631. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9632. $as_echo "$ac_try_echo") >&5
  9633. (eval "$ac_compile") 2>conftest.er1
  9634. ac_status=$?
  9635. grep -v '^ *+' conftest.er1 >conftest.err
  9636. rm -f conftest.er1
  9637. cat conftest.err >&5
  9638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9639. (exit $ac_status); } && {
  9640. test -z "$ac_cxx_werror_flag" ||
  9641. test ! -s conftest.err
  9642. } && test -s conftest.$ac_objext; then
  9643. ac_header_compiler=yes
  9644. else
  9645. $as_echo "$as_me: failed program was:" >&5
  9646. sed 's/^/| /' conftest.$ac_ext >&5
  9647. ac_header_compiler=no
  9648. fi
  9649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9650. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9651. $as_echo "$ac_header_compiler" >&6; }
  9652. # Is the header present?
  9653. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9654. $as_echo_n "checking $ac_header presence... " >&6; }
  9655. cat >conftest.$ac_ext <<_ACEOF
  9656. /* confdefs.h. */
  9657. _ACEOF
  9658. cat confdefs.h >>conftest.$ac_ext
  9659. cat >>conftest.$ac_ext <<_ACEOF
  9660. /* end confdefs.h. */
  9661. #include <$ac_header>
  9662. _ACEOF
  9663. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9664. case "(($ac_try" in
  9665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9666. *) ac_try_echo=$ac_try;;
  9667. esac
  9668. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9669. $as_echo "$ac_try_echo") >&5
  9670. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9671. ac_status=$?
  9672. grep -v '^ *+' conftest.er1 >conftest.err
  9673. rm -f conftest.er1
  9674. cat conftest.err >&5
  9675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9676. (exit $ac_status); } >/dev/null && {
  9677. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9678. test ! -s conftest.err
  9679. }; then
  9680. ac_header_preproc=yes
  9681. else
  9682. $as_echo "$as_me: failed program was:" >&5
  9683. sed 's/^/| /' conftest.$ac_ext >&5
  9684. ac_header_preproc=no
  9685. fi
  9686. rm -f conftest.err conftest.$ac_ext
  9687. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9688. $as_echo "$ac_header_preproc" >&6; }
  9689. # So? What about this header?
  9690. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9691. yes:no: )
  9692. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9693. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9694. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9695. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9696. ac_header_preproc=yes
  9697. ;;
  9698. no:yes:* )
  9699. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9700. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9701. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9702. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9703. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9704. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9705. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9706. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9707. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9708. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9709. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9710. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9711. ;;
  9712. esac
  9713. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9714. $as_echo_n "checking for $ac_header... " >&6; }
  9715. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9716. $as_echo_n "(cached) " >&6
  9717. else
  9718. eval "$as_ac_Header=\$ac_header_preproc"
  9719. fi
  9720. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9721. $as_echo "$as_val"'`
  9722. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9723. $as_echo "$ac_res" >&6; }
  9724. fi
  9725. as_val=`eval 'as_val=${'$as_ac_Header'}
  9726. $as_echo "$as_val"'`
  9727. if test "x$as_val" = x""yes; then
  9728. cat >>confdefs.h <<_ACEOF
  9729. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9730. _ACEOF
  9731. fi
  9732. done
  9733. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9734. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  9735. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9736. $as_echo_n "(cached) " >&6
  9737. else
  9738. if test "$cross_compiling" = yes; then
  9739. ac_cv_func_malloc_0_nonnull=no
  9740. else
  9741. cat >conftest.$ac_ext <<_ACEOF
  9742. /* confdefs.h. */
  9743. _ACEOF
  9744. cat confdefs.h >>conftest.$ac_ext
  9745. cat >>conftest.$ac_ext <<_ACEOF
  9746. /* end confdefs.h. */
  9747. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9748. # include <stdlib.h>
  9749. #else
  9750. char *malloc ();
  9751. #endif
  9752. int
  9753. main ()
  9754. {
  9755. return ! malloc (0);
  9756. ;
  9757. return 0;
  9758. }
  9759. _ACEOF
  9760. rm -f conftest$ac_exeext
  9761. if { (ac_try="$ac_link"
  9762. case "(($ac_try" in
  9763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9764. *) ac_try_echo=$ac_try;;
  9765. esac
  9766. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9767. $as_echo "$ac_try_echo") >&5
  9768. (eval "$ac_link") 2>&5
  9769. ac_status=$?
  9770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9771. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9772. { (case "(($ac_try" in
  9773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9774. *) ac_try_echo=$ac_try;;
  9775. esac
  9776. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9777. $as_echo "$ac_try_echo") >&5
  9778. (eval "$ac_try") 2>&5
  9779. ac_status=$?
  9780. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9781. (exit $ac_status); }; }; then
  9782. ac_cv_func_malloc_0_nonnull=yes
  9783. else
  9784. $as_echo "$as_me: program exited with status $ac_status" >&5
  9785. $as_echo "$as_me: failed program was:" >&5
  9786. sed 's/^/| /' conftest.$ac_ext >&5
  9787. ( exit $ac_status )
  9788. ac_cv_func_malloc_0_nonnull=no
  9789. fi
  9790. rm -rf conftest.dSYM
  9791. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9792. fi
  9793. fi
  9794. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9795. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  9796. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9797. cat >>confdefs.h <<\_ACEOF
  9798. #define HAVE_MALLOC 1
  9799. _ACEOF
  9800. else
  9801. cat >>confdefs.h <<\_ACEOF
  9802. #define HAVE_MALLOC 0
  9803. _ACEOF
  9804. case " $LIBOBJS " in
  9805. *" malloc.$ac_objext "* ) ;;
  9806. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9807. ;;
  9808. esac
  9809. cat >>confdefs.h <<\_ACEOF
  9810. #define malloc rpl_malloc
  9811. _ACEOF
  9812. fi
  9813. for ac_header in $ac_header_list
  9814. do
  9815. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9816. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9817. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9818. $as_echo_n "checking for $ac_header... " >&6; }
  9819. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9820. $as_echo_n "(cached) " >&6
  9821. fi
  9822. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9823. $as_echo "$as_val"'`
  9824. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9825. $as_echo "$ac_res" >&6; }
  9826. else
  9827. # Is the header compilable?
  9828. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9829. $as_echo_n "checking $ac_header usability... " >&6; }
  9830. cat >conftest.$ac_ext <<_ACEOF
  9831. /* confdefs.h. */
  9832. _ACEOF
  9833. cat confdefs.h >>conftest.$ac_ext
  9834. cat >>conftest.$ac_ext <<_ACEOF
  9835. /* end confdefs.h. */
  9836. $ac_includes_default
  9837. #include <$ac_header>
  9838. _ACEOF
  9839. rm -f conftest.$ac_objext
  9840. if { (ac_try="$ac_compile"
  9841. case "(($ac_try" in
  9842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9843. *) ac_try_echo=$ac_try;;
  9844. esac
  9845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9846. $as_echo "$ac_try_echo") >&5
  9847. (eval "$ac_compile") 2>conftest.er1
  9848. ac_status=$?
  9849. grep -v '^ *+' conftest.er1 >conftest.err
  9850. rm -f conftest.er1
  9851. cat conftest.err >&5
  9852. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9853. (exit $ac_status); } && {
  9854. test -z "$ac_cxx_werror_flag" ||
  9855. test ! -s conftest.err
  9856. } && test -s conftest.$ac_objext; then
  9857. ac_header_compiler=yes
  9858. else
  9859. $as_echo "$as_me: failed program was:" >&5
  9860. sed 's/^/| /' conftest.$ac_ext >&5
  9861. ac_header_compiler=no
  9862. fi
  9863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9864. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9865. $as_echo "$ac_header_compiler" >&6; }
  9866. # Is the header present?
  9867. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9868. $as_echo_n "checking $ac_header presence... " >&6; }
  9869. cat >conftest.$ac_ext <<_ACEOF
  9870. /* confdefs.h. */
  9871. _ACEOF
  9872. cat confdefs.h >>conftest.$ac_ext
  9873. cat >>conftest.$ac_ext <<_ACEOF
  9874. /* end confdefs.h. */
  9875. #include <$ac_header>
  9876. _ACEOF
  9877. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9878. case "(($ac_try" in
  9879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9880. *) ac_try_echo=$ac_try;;
  9881. esac
  9882. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9883. $as_echo "$ac_try_echo") >&5
  9884. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9885. ac_status=$?
  9886. grep -v '^ *+' conftest.er1 >conftest.err
  9887. rm -f conftest.er1
  9888. cat conftest.err >&5
  9889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9890. (exit $ac_status); } >/dev/null && {
  9891. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9892. test ! -s conftest.err
  9893. }; then
  9894. ac_header_preproc=yes
  9895. else
  9896. $as_echo "$as_me: failed program was:" >&5
  9897. sed 's/^/| /' conftest.$ac_ext >&5
  9898. ac_header_preproc=no
  9899. fi
  9900. rm -f conftest.err conftest.$ac_ext
  9901. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9902. $as_echo "$ac_header_preproc" >&6; }
  9903. # So? What about this header?
  9904. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9905. yes:no: )
  9906. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9907. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9908. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9909. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9910. ac_header_preproc=yes
  9911. ;;
  9912. no:yes:* )
  9913. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9914. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9915. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9916. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9917. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9918. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9919. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9920. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9921. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9922. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9923. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9924. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9925. ;;
  9926. esac
  9927. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  9928. $as_echo_n "checking for $ac_header... " >&6; }
  9929. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9930. $as_echo_n "(cached) " >&6
  9931. else
  9932. eval "$as_ac_Header=\$ac_header_preproc"
  9933. fi
  9934. ac_res=`eval 'as_val=${'$as_ac_Header'}
  9935. $as_echo "$as_val"'`
  9936. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  9937. $as_echo "$ac_res" >&6; }
  9938. fi
  9939. as_val=`eval 'as_val=${'$as_ac_Header'}
  9940. $as_echo "$as_val"'`
  9941. if test "x$as_val" = x""yes; then
  9942. cat >>confdefs.h <<_ACEOF
  9943. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9944. _ACEOF
  9945. fi
  9946. done
  9947. for ac_func in $ac_func_list
  9948. do
  9949. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9950. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  9951. $as_echo_n "checking for $ac_func... " >&6; }
  9952. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9953. $as_echo_n "(cached) " >&6
  9954. else
  9955. cat >conftest.$ac_ext <<_ACEOF
  9956. /* confdefs.h. */
  9957. _ACEOF
  9958. cat confdefs.h >>conftest.$ac_ext
  9959. cat >>conftest.$ac_ext <<_ACEOF
  9960. /* end confdefs.h. */
  9961. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9962. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9963. #define $ac_func innocuous_$ac_func
  9964. /* System header to define __stub macros and hopefully few prototypes,
  9965. which can conflict with char $ac_func (); below.
  9966. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9967. <limits.h> exists even on freestanding compilers. */
  9968. #ifdef __STDC__
  9969. # include <limits.h>
  9970. #else
  9971. # include <assert.h>
  9972. #endif
  9973. #undef $ac_func
  9974. /* Override any GCC internal prototype to avoid an error.
  9975. Use char because int might match the return type of a GCC
  9976. builtin and then its argument prototype would still apply. */
  9977. #ifdef __cplusplus
  9978. extern "C"
  9979. #endif
  9980. char $ac_func ();
  9981. /* The GNU C library defines this for functions which it implements
  9982. to always fail with ENOSYS. Some functions are actually named
  9983. something starting with __ and the normal name is an alias. */
  9984. #if defined __stub_$ac_func || defined __stub___$ac_func
  9985. choke me
  9986. #endif
  9987. int
  9988. main ()
  9989. {
  9990. return $ac_func ();
  9991. ;
  9992. return 0;
  9993. }
  9994. _ACEOF
  9995. rm -f conftest.$ac_objext conftest$ac_exeext
  9996. if { (ac_try="$ac_link"
  9997. case "(($ac_try" in
  9998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9999. *) ac_try_echo=$ac_try;;
  10000. esac
  10001. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10002. $as_echo "$ac_try_echo") >&5
  10003. (eval "$ac_link") 2>conftest.er1
  10004. ac_status=$?
  10005. grep -v '^ *+' conftest.er1 >conftest.err
  10006. rm -f conftest.er1
  10007. cat conftest.err >&5
  10008. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10009. (exit $ac_status); } && {
  10010. test -z "$ac_cxx_werror_flag" ||
  10011. test ! -s conftest.err
  10012. } && test -s conftest$ac_exeext && {
  10013. test "$cross_compiling" = yes ||
  10014. $as_test_x conftest$ac_exeext
  10015. }; then
  10016. eval "$as_ac_var=yes"
  10017. else
  10018. $as_echo "$as_me: failed program was:" >&5
  10019. sed 's/^/| /' conftest.$ac_ext >&5
  10020. eval "$as_ac_var=no"
  10021. fi
  10022. rm -rf conftest.dSYM
  10023. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10024. conftest$ac_exeext conftest.$ac_ext
  10025. fi
  10026. ac_res=`eval 'as_val=${'$as_ac_var'}
  10027. $as_echo "$as_val"'`
  10028. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10029. $as_echo "$ac_res" >&6; }
  10030. as_val=`eval 'as_val=${'$as_ac_var'}
  10031. $as_echo "$as_val"'`
  10032. if test "x$as_val" = x""yes; then
  10033. cat >>confdefs.h <<_ACEOF
  10034. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10035. _ACEOF
  10036. fi
  10037. done
  10038. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  10039. $as_echo_n "checking for working mktime... " >&6; }
  10040. if test "${ac_cv_func_working_mktime+set}" = set; then
  10041. $as_echo_n "(cached) " >&6
  10042. else
  10043. if test "$cross_compiling" = yes; then
  10044. ac_cv_func_working_mktime=no
  10045. else
  10046. cat >conftest.$ac_ext <<_ACEOF
  10047. /* confdefs.h. */
  10048. _ACEOF
  10049. cat confdefs.h >>conftest.$ac_ext
  10050. cat >>conftest.$ac_ext <<_ACEOF
  10051. /* end confdefs.h. */
  10052. /* Test program from Paul Eggert and Tony Leneis. */
  10053. #ifdef TIME_WITH_SYS_TIME
  10054. # include <sys/time.h>
  10055. # include <time.h>
  10056. #else
  10057. # ifdef HAVE_SYS_TIME_H
  10058. # include <sys/time.h>
  10059. # else
  10060. # include <time.h>
  10061. # endif
  10062. #endif
  10063. #include <limits.h>
  10064. #include <stdlib.h>
  10065. #ifdef HAVE_UNISTD_H
  10066. # include <unistd.h>
  10067. #endif
  10068. #ifndef HAVE_ALARM
  10069. # define alarm(X) /* empty */
  10070. #endif
  10071. /* Work around redefinition to rpl_putenv by other config tests. */
  10072. #undef putenv
  10073. static time_t time_t_max;
  10074. static time_t time_t_min;
  10075. /* Values we'll use to set the TZ environment variable. */
  10076. static char *tz_strings[] = {
  10077. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  10078. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  10079. };
  10080. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  10081. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  10082. Based on a problem report from Andreas Jaeger. */
  10083. static int
  10084. spring_forward_gap ()
  10085. {
  10086. /* glibc (up to about 1998-10-07) failed this test. */
  10087. struct tm tm;
  10088. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10089. instead of "TZ=America/Vancouver" in order to detect the bug even
  10090. on systems that don't support the Olson extension, or don't have the
  10091. full zoneinfo tables installed. */
  10092. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10093. tm.tm_year = 98;
  10094. tm.tm_mon = 3;
  10095. tm.tm_mday = 5;
  10096. tm.tm_hour = 2;
  10097. tm.tm_min = 0;
  10098. tm.tm_sec = 0;
  10099. tm.tm_isdst = -1;
  10100. return mktime (&tm) != (time_t) -1;
  10101. }
  10102. static int
  10103. mktime_test1 (now)
  10104. time_t now;
  10105. {
  10106. struct tm *lt;
  10107. return ! (lt = localtime (&now)) || mktime (lt) == now;
  10108. }
  10109. static int
  10110. mktime_test (now)
  10111. time_t now;
  10112. {
  10113. return (mktime_test1 (now)
  10114. && mktime_test1 ((time_t) (time_t_max - now))
  10115. && mktime_test1 ((time_t) (time_t_min + now)));
  10116. }
  10117. static int
  10118. irix_6_4_bug ()
  10119. {
  10120. /* Based on code from Ariel Faigon. */
  10121. struct tm tm;
  10122. tm.tm_year = 96;
  10123. tm.tm_mon = 3;
  10124. tm.tm_mday = 0;
  10125. tm.tm_hour = 0;
  10126. tm.tm_min = 0;
  10127. tm.tm_sec = 0;
  10128. tm.tm_isdst = -1;
  10129. mktime (&tm);
  10130. return tm.tm_mon == 2 && tm.tm_mday == 31;
  10131. }
  10132. static int
  10133. bigtime_test (j)
  10134. int j;
  10135. {
  10136. struct tm tm;
  10137. time_t now;
  10138. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  10139. now = mktime (&tm);
  10140. if (now != (time_t) -1)
  10141. {
  10142. struct tm *lt = localtime (&now);
  10143. if (! (lt
  10144. && lt->tm_year == tm.tm_year
  10145. && lt->tm_mon == tm.tm_mon
  10146. && lt->tm_mday == tm.tm_mday
  10147. && lt->tm_hour == tm.tm_hour
  10148. && lt->tm_min == tm.tm_min
  10149. && lt->tm_sec == tm.tm_sec
  10150. && lt->tm_yday == tm.tm_yday
  10151. && lt->tm_wday == tm.tm_wday
  10152. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  10153. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  10154. return 0;
  10155. }
  10156. return 1;
  10157. }
  10158. static int
  10159. year_2050_test ()
  10160. {
  10161. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  10162. ignoring leap seconds. */
  10163. unsigned long int answer = 2527315200UL;
  10164. struct tm tm;
  10165. time_t t;
  10166. tm.tm_year = 2050 - 1900;
  10167. tm.tm_mon = 2 - 1;
  10168. tm.tm_mday = 1;
  10169. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  10170. tm.tm_isdst = -1;
  10171. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  10172. instead of "TZ=America/Vancouver" in order to detect the bug even
  10173. on systems that don't support the Olson extension, or don't have the
  10174. full zoneinfo tables installed. */
  10175. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  10176. t = mktime (&tm);
  10177. /* Check that the result is either a failure, or close enough
  10178. to the correct answer that we can assume the discrepancy is
  10179. due to leap seconds. */
  10180. return (t == (time_t) -1
  10181. || (0 < t && answer - 120 <= t && t <= answer + 120));
  10182. }
  10183. int
  10184. main ()
  10185. {
  10186. time_t t, delta;
  10187. int i, j;
  10188. /* This test makes some buggy mktime implementations loop.
  10189. Give up after 60 seconds; a mktime slower than that
  10190. isn't worth using anyway. */
  10191. alarm (60);
  10192. for (;;)
  10193. {
  10194. t = (time_t_max << 1) + 1;
  10195. if (t <= time_t_max)
  10196. break;
  10197. time_t_max = t;
  10198. }
  10199. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  10200. delta = time_t_max / 997; /* a suitable prime number */
  10201. for (i = 0; i < N_STRINGS; i++)
  10202. {
  10203. if (tz_strings[i])
  10204. putenv (tz_strings[i]);
  10205. for (t = 0; t <= time_t_max - delta; t += delta)
  10206. if (! mktime_test (t))
  10207. return 1;
  10208. if (! (mktime_test ((time_t) 1)
  10209. && mktime_test ((time_t) (60 * 60))
  10210. && mktime_test ((time_t) (60 * 60 * 24))))
  10211. return 1;
  10212. for (j = 1; ; j <<= 1)
  10213. if (! bigtime_test (j))
  10214. return 1;
  10215. else if (INT_MAX / 2 < j)
  10216. break;
  10217. if (! bigtime_test (INT_MAX))
  10218. return 1;
  10219. }
  10220. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  10221. }
  10222. _ACEOF
  10223. rm -f conftest$ac_exeext
  10224. if { (ac_try="$ac_link"
  10225. case "(($ac_try" in
  10226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10227. *) ac_try_echo=$ac_try;;
  10228. esac
  10229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10230. $as_echo "$ac_try_echo") >&5
  10231. (eval "$ac_link") 2>&5
  10232. ac_status=$?
  10233. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10234. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10235. { (case "(($ac_try" in
  10236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10237. *) ac_try_echo=$ac_try;;
  10238. esac
  10239. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10240. $as_echo "$ac_try_echo") >&5
  10241. (eval "$ac_try") 2>&5
  10242. ac_status=$?
  10243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10244. (exit $ac_status); }; }; then
  10245. ac_cv_func_working_mktime=yes
  10246. else
  10247. $as_echo "$as_me: program exited with status $ac_status" >&5
  10248. $as_echo "$as_me: failed program was:" >&5
  10249. sed 's/^/| /' conftest.$ac_ext >&5
  10250. ( exit $ac_status )
  10251. ac_cv_func_working_mktime=no
  10252. fi
  10253. rm -rf conftest.dSYM
  10254. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10255. fi
  10256. fi
  10257. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  10258. $as_echo "$ac_cv_func_working_mktime" >&6; }
  10259. if test $ac_cv_func_working_mktime = no; then
  10260. case " $LIBOBJS " in
  10261. *" mktime.$ac_objext "* ) ;;
  10262. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  10263. ;;
  10264. esac
  10265. fi
  10266. for ac_header in stdlib.h unistd.h
  10267. do
  10268. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10269. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10270. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10271. $as_echo_n "checking for $ac_header... " >&6; }
  10272. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10273. $as_echo_n "(cached) " >&6
  10274. fi
  10275. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10276. $as_echo "$as_val"'`
  10277. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10278. $as_echo "$ac_res" >&6; }
  10279. else
  10280. # Is the header compilable?
  10281. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10282. $as_echo_n "checking $ac_header usability... " >&6; }
  10283. cat >conftest.$ac_ext <<_ACEOF
  10284. /* confdefs.h. */
  10285. _ACEOF
  10286. cat confdefs.h >>conftest.$ac_ext
  10287. cat >>conftest.$ac_ext <<_ACEOF
  10288. /* end confdefs.h. */
  10289. $ac_includes_default
  10290. #include <$ac_header>
  10291. _ACEOF
  10292. rm -f conftest.$ac_objext
  10293. if { (ac_try="$ac_compile"
  10294. case "(($ac_try" in
  10295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10296. *) ac_try_echo=$ac_try;;
  10297. esac
  10298. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10299. $as_echo "$ac_try_echo") >&5
  10300. (eval "$ac_compile") 2>conftest.er1
  10301. ac_status=$?
  10302. grep -v '^ *+' conftest.er1 >conftest.err
  10303. rm -f conftest.er1
  10304. cat conftest.err >&5
  10305. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10306. (exit $ac_status); } && {
  10307. test -z "$ac_cxx_werror_flag" ||
  10308. test ! -s conftest.err
  10309. } && test -s conftest.$ac_objext; then
  10310. ac_header_compiler=yes
  10311. else
  10312. $as_echo "$as_me: failed program was:" >&5
  10313. sed 's/^/| /' conftest.$ac_ext >&5
  10314. ac_header_compiler=no
  10315. fi
  10316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10317. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10318. $as_echo "$ac_header_compiler" >&6; }
  10319. # Is the header present?
  10320. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10321. $as_echo_n "checking $ac_header presence... " >&6; }
  10322. cat >conftest.$ac_ext <<_ACEOF
  10323. /* confdefs.h. */
  10324. _ACEOF
  10325. cat confdefs.h >>conftest.$ac_ext
  10326. cat >>conftest.$ac_ext <<_ACEOF
  10327. /* end confdefs.h. */
  10328. #include <$ac_header>
  10329. _ACEOF
  10330. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10331. case "(($ac_try" in
  10332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10333. *) ac_try_echo=$ac_try;;
  10334. esac
  10335. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10336. $as_echo "$ac_try_echo") >&5
  10337. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10338. ac_status=$?
  10339. grep -v '^ *+' conftest.er1 >conftest.err
  10340. rm -f conftest.er1
  10341. cat conftest.err >&5
  10342. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10343. (exit $ac_status); } >/dev/null && {
  10344. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10345. test ! -s conftest.err
  10346. }; then
  10347. ac_header_preproc=yes
  10348. else
  10349. $as_echo "$as_me: failed program was:" >&5
  10350. sed 's/^/| /' conftest.$ac_ext >&5
  10351. ac_header_preproc=no
  10352. fi
  10353. rm -f conftest.err conftest.$ac_ext
  10354. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10355. $as_echo "$ac_header_preproc" >&6; }
  10356. # So? What about this header?
  10357. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10358. yes:no: )
  10359. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10360. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10361. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10362. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10363. ac_header_preproc=yes
  10364. ;;
  10365. no:yes:* )
  10366. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10367. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10368. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10369. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10370. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10371. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10372. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10373. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10374. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10375. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10376. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10377. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10378. ;;
  10379. esac
  10380. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10381. $as_echo_n "checking for $ac_header... " >&6; }
  10382. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10383. $as_echo_n "(cached) " >&6
  10384. else
  10385. eval "$as_ac_Header=\$ac_header_preproc"
  10386. fi
  10387. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10388. $as_echo "$as_val"'`
  10389. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10390. $as_echo "$ac_res" >&6; }
  10391. fi
  10392. as_val=`eval 'as_val=${'$as_ac_Header'}
  10393. $as_echo "$as_val"'`
  10394. if test "x$as_val" = x""yes; then
  10395. cat >>confdefs.h <<_ACEOF
  10396. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10397. _ACEOF
  10398. fi
  10399. done
  10400. for ac_func in getpagesize
  10401. do
  10402. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10403. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10404. $as_echo_n "checking for $ac_func... " >&6; }
  10405. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10406. $as_echo_n "(cached) " >&6
  10407. else
  10408. cat >conftest.$ac_ext <<_ACEOF
  10409. /* confdefs.h. */
  10410. _ACEOF
  10411. cat confdefs.h >>conftest.$ac_ext
  10412. cat >>conftest.$ac_ext <<_ACEOF
  10413. /* end confdefs.h. */
  10414. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10415. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10416. #define $ac_func innocuous_$ac_func
  10417. /* System header to define __stub macros and hopefully few prototypes,
  10418. which can conflict with char $ac_func (); below.
  10419. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10420. <limits.h> exists even on freestanding compilers. */
  10421. #ifdef __STDC__
  10422. # include <limits.h>
  10423. #else
  10424. # include <assert.h>
  10425. #endif
  10426. #undef $ac_func
  10427. /* Override any GCC internal prototype to avoid an error.
  10428. Use char because int might match the return type of a GCC
  10429. builtin and then its argument prototype would still apply. */
  10430. #ifdef __cplusplus
  10431. extern "C"
  10432. #endif
  10433. char $ac_func ();
  10434. /* The GNU C library defines this for functions which it implements
  10435. to always fail with ENOSYS. Some functions are actually named
  10436. something starting with __ and the normal name is an alias. */
  10437. #if defined __stub_$ac_func || defined __stub___$ac_func
  10438. choke me
  10439. #endif
  10440. int
  10441. main ()
  10442. {
  10443. return $ac_func ();
  10444. ;
  10445. return 0;
  10446. }
  10447. _ACEOF
  10448. rm -f conftest.$ac_objext conftest$ac_exeext
  10449. if { (ac_try="$ac_link"
  10450. case "(($ac_try" in
  10451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10452. *) ac_try_echo=$ac_try;;
  10453. esac
  10454. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10455. $as_echo "$ac_try_echo") >&5
  10456. (eval "$ac_link") 2>conftest.er1
  10457. ac_status=$?
  10458. grep -v '^ *+' conftest.er1 >conftest.err
  10459. rm -f conftest.er1
  10460. cat conftest.err >&5
  10461. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10462. (exit $ac_status); } && {
  10463. test -z "$ac_cxx_werror_flag" ||
  10464. test ! -s conftest.err
  10465. } && test -s conftest$ac_exeext && {
  10466. test "$cross_compiling" = yes ||
  10467. $as_test_x conftest$ac_exeext
  10468. }; then
  10469. eval "$as_ac_var=yes"
  10470. else
  10471. $as_echo "$as_me: failed program was:" >&5
  10472. sed 's/^/| /' conftest.$ac_ext >&5
  10473. eval "$as_ac_var=no"
  10474. fi
  10475. rm -rf conftest.dSYM
  10476. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10477. conftest$ac_exeext conftest.$ac_ext
  10478. fi
  10479. ac_res=`eval 'as_val=${'$as_ac_var'}
  10480. $as_echo "$as_val"'`
  10481. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10482. $as_echo "$ac_res" >&6; }
  10483. as_val=`eval 'as_val=${'$as_ac_var'}
  10484. $as_echo "$as_val"'`
  10485. if test "x$as_val" = x""yes; then
  10486. cat >>confdefs.h <<_ACEOF
  10487. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10488. _ACEOF
  10489. fi
  10490. done
  10491. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10492. $as_echo_n "checking for working mmap... " >&6; }
  10493. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10494. $as_echo_n "(cached) " >&6
  10495. else
  10496. if test "$cross_compiling" = yes; then
  10497. ac_cv_func_mmap_fixed_mapped=no
  10498. else
  10499. cat >conftest.$ac_ext <<_ACEOF
  10500. /* confdefs.h. */
  10501. _ACEOF
  10502. cat confdefs.h >>conftest.$ac_ext
  10503. cat >>conftest.$ac_ext <<_ACEOF
  10504. /* end confdefs.h. */
  10505. $ac_includes_default
  10506. /* malloc might have been renamed as rpl_malloc. */
  10507. #undef malloc
  10508. /* Thanks to Mike Haertel and Jim Avera for this test.
  10509. Here is a matrix of mmap possibilities:
  10510. mmap private not fixed
  10511. mmap private fixed at somewhere currently unmapped
  10512. mmap private fixed at somewhere already mapped
  10513. mmap shared not fixed
  10514. mmap shared fixed at somewhere currently unmapped
  10515. mmap shared fixed at somewhere already mapped
  10516. For private mappings, we should verify that changes cannot be read()
  10517. back from the file, nor mmap's back from the file at a different
  10518. address. (There have been systems where private was not correctly
  10519. implemented like the infamous i386 svr4.0, and systems where the
  10520. VM page cache was not coherent with the file system buffer cache
  10521. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10522. For shared mappings, we should conversely verify that changes get
  10523. propagated back to all the places they're supposed to be.
  10524. Grep wants private fixed already mapped.
  10525. The main things grep needs to know about mmap are:
  10526. * does it exist and is it safe to write into the mmap'd area
  10527. * how to use it (BSD variants) */
  10528. #include <fcntl.h>
  10529. #include <sys/mman.h>
  10530. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10531. char *malloc ();
  10532. #endif
  10533. /* This mess was copied from the GNU getpagesize.h. */
  10534. #ifndef HAVE_GETPAGESIZE
  10535. /* Assume that all systems that can run configure have sys/param.h. */
  10536. # ifndef HAVE_SYS_PARAM_H
  10537. # define HAVE_SYS_PARAM_H 1
  10538. # endif
  10539. # ifdef _SC_PAGESIZE
  10540. # define getpagesize() sysconf(_SC_PAGESIZE)
  10541. # else /* no _SC_PAGESIZE */
  10542. # ifdef HAVE_SYS_PARAM_H
  10543. # include <sys/param.h>
  10544. # ifdef EXEC_PAGESIZE
  10545. # define getpagesize() EXEC_PAGESIZE
  10546. # else /* no EXEC_PAGESIZE */
  10547. # ifdef NBPG
  10548. # define getpagesize() NBPG * CLSIZE
  10549. # ifndef CLSIZE
  10550. # define CLSIZE 1
  10551. # endif /* no CLSIZE */
  10552. # else /* no NBPG */
  10553. # ifdef NBPC
  10554. # define getpagesize() NBPC
  10555. # else /* no NBPC */
  10556. # ifdef PAGESIZE
  10557. # define getpagesize() PAGESIZE
  10558. # endif /* PAGESIZE */
  10559. # endif /* no NBPC */
  10560. # endif /* no NBPG */
  10561. # endif /* no EXEC_PAGESIZE */
  10562. # else /* no HAVE_SYS_PARAM_H */
  10563. # define getpagesize() 8192 /* punt totally */
  10564. # endif /* no HAVE_SYS_PARAM_H */
  10565. # endif /* no _SC_PAGESIZE */
  10566. #endif /* no HAVE_GETPAGESIZE */
  10567. int
  10568. main ()
  10569. {
  10570. char *data, *data2, *data3;
  10571. int i, pagesize;
  10572. int fd;
  10573. pagesize = getpagesize ();
  10574. /* First, make a file with some known garbage in it. */
  10575. data = (char *) malloc (pagesize);
  10576. if (!data)
  10577. return 1;
  10578. for (i = 0; i < pagesize; ++i)
  10579. *(data + i) = rand ();
  10580. umask (0);
  10581. fd = creat ("conftest.mmap", 0600);
  10582. if (fd < 0)
  10583. return 1;
  10584. if (write (fd, data, pagesize) != pagesize)
  10585. return 1;
  10586. close (fd);
  10587. /* Next, try to mmap the file at a fixed address which already has
  10588. something else allocated at it. If we can, also make sure that
  10589. we see the same garbage. */
  10590. fd = open ("conftest.mmap", O_RDWR);
  10591. if (fd < 0)
  10592. return 1;
  10593. data2 = (char *) malloc (2 * pagesize);
  10594. if (!data2)
  10595. return 1;
  10596. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10597. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10598. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10599. return 1;
  10600. for (i = 0; i < pagesize; ++i)
  10601. if (*(data + i) != *(data2 + i))
  10602. return 1;
  10603. /* Finally, make sure that changes to the mapped area do not
  10604. percolate back to the file as seen by read(). (This is a bug on
  10605. some variants of i386 svr4.0.) */
  10606. for (i = 0; i < pagesize; ++i)
  10607. *(data2 + i) = *(data2 + i) + 1;
  10608. data3 = (char *) malloc (pagesize);
  10609. if (!data3)
  10610. return 1;
  10611. if (read (fd, data3, pagesize) != pagesize)
  10612. return 1;
  10613. for (i = 0; i < pagesize; ++i)
  10614. if (*(data + i) != *(data3 + i))
  10615. return 1;
  10616. close (fd);
  10617. return 0;
  10618. }
  10619. _ACEOF
  10620. rm -f conftest$ac_exeext
  10621. if { (ac_try="$ac_link"
  10622. case "(($ac_try" in
  10623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10624. *) ac_try_echo=$ac_try;;
  10625. esac
  10626. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10627. $as_echo "$ac_try_echo") >&5
  10628. (eval "$ac_link") 2>&5
  10629. ac_status=$?
  10630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10631. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10632. { (case "(($ac_try" in
  10633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10634. *) ac_try_echo=$ac_try;;
  10635. esac
  10636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10637. $as_echo "$ac_try_echo") >&5
  10638. (eval "$ac_try") 2>&5
  10639. ac_status=$?
  10640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10641. (exit $ac_status); }; }; then
  10642. ac_cv_func_mmap_fixed_mapped=yes
  10643. else
  10644. $as_echo "$as_me: program exited with status $ac_status" >&5
  10645. $as_echo "$as_me: failed program was:" >&5
  10646. sed 's/^/| /' conftest.$ac_ext >&5
  10647. ( exit $ac_status )
  10648. ac_cv_func_mmap_fixed_mapped=no
  10649. fi
  10650. rm -rf conftest.dSYM
  10651. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10652. fi
  10653. fi
  10654. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10655. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10656. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10657. cat >>confdefs.h <<\_ACEOF
  10658. #define HAVE_MMAP 1
  10659. _ACEOF
  10660. fi
  10661. rm -f conftest.mmap
  10662. for ac_header in stdlib.h
  10663. do
  10664. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10665. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10666. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10667. $as_echo_n "checking for $ac_header... " >&6; }
  10668. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10669. $as_echo_n "(cached) " >&6
  10670. fi
  10671. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10672. $as_echo "$as_val"'`
  10673. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10674. $as_echo "$ac_res" >&6; }
  10675. else
  10676. # Is the header compilable?
  10677. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10678. $as_echo_n "checking $ac_header usability... " >&6; }
  10679. cat >conftest.$ac_ext <<_ACEOF
  10680. /* confdefs.h. */
  10681. _ACEOF
  10682. cat confdefs.h >>conftest.$ac_ext
  10683. cat >>conftest.$ac_ext <<_ACEOF
  10684. /* end confdefs.h. */
  10685. $ac_includes_default
  10686. #include <$ac_header>
  10687. _ACEOF
  10688. rm -f conftest.$ac_objext
  10689. if { (ac_try="$ac_compile"
  10690. case "(($ac_try" in
  10691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10692. *) ac_try_echo=$ac_try;;
  10693. esac
  10694. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10695. $as_echo "$ac_try_echo") >&5
  10696. (eval "$ac_compile") 2>conftest.er1
  10697. ac_status=$?
  10698. grep -v '^ *+' conftest.er1 >conftest.err
  10699. rm -f conftest.er1
  10700. cat conftest.err >&5
  10701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10702. (exit $ac_status); } && {
  10703. test -z "$ac_cxx_werror_flag" ||
  10704. test ! -s conftest.err
  10705. } && test -s conftest.$ac_objext; then
  10706. ac_header_compiler=yes
  10707. else
  10708. $as_echo "$as_me: failed program was:" >&5
  10709. sed 's/^/| /' conftest.$ac_ext >&5
  10710. ac_header_compiler=no
  10711. fi
  10712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10713. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10714. $as_echo "$ac_header_compiler" >&6; }
  10715. # Is the header present?
  10716. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10717. $as_echo_n "checking $ac_header presence... " >&6; }
  10718. cat >conftest.$ac_ext <<_ACEOF
  10719. /* confdefs.h. */
  10720. _ACEOF
  10721. cat confdefs.h >>conftest.$ac_ext
  10722. cat >>conftest.$ac_ext <<_ACEOF
  10723. /* end confdefs.h. */
  10724. #include <$ac_header>
  10725. _ACEOF
  10726. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10727. case "(($ac_try" in
  10728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10729. *) ac_try_echo=$ac_try;;
  10730. esac
  10731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10732. $as_echo "$ac_try_echo") >&5
  10733. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10734. ac_status=$?
  10735. grep -v '^ *+' conftest.er1 >conftest.err
  10736. rm -f conftest.er1
  10737. cat conftest.err >&5
  10738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10739. (exit $ac_status); } >/dev/null && {
  10740. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10741. test ! -s conftest.err
  10742. }; then
  10743. ac_header_preproc=yes
  10744. else
  10745. $as_echo "$as_me: failed program was:" >&5
  10746. sed 's/^/| /' conftest.$ac_ext >&5
  10747. ac_header_preproc=no
  10748. fi
  10749. rm -f conftest.err conftest.$ac_ext
  10750. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10751. $as_echo "$ac_header_preproc" >&6; }
  10752. # So? What about this header?
  10753. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10754. yes:no: )
  10755. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10756. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10757. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10758. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10759. ac_header_preproc=yes
  10760. ;;
  10761. no:yes:* )
  10762. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10763. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10764. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10765. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10766. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10767. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10768. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10769. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10770. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10771. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10772. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10773. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10774. ;;
  10775. esac
  10776. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10777. $as_echo_n "checking for $ac_header... " >&6; }
  10778. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10779. $as_echo_n "(cached) " >&6
  10780. else
  10781. eval "$as_ac_Header=\$ac_header_preproc"
  10782. fi
  10783. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10784. $as_echo "$as_val"'`
  10785. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10786. $as_echo "$ac_res" >&6; }
  10787. fi
  10788. as_val=`eval 'as_val=${'$as_ac_Header'}
  10789. $as_echo "$as_val"'`
  10790. if test "x$as_val" = x""yes; then
  10791. cat >>confdefs.h <<_ACEOF
  10792. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10793. _ACEOF
  10794. fi
  10795. done
  10796. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10797. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  10798. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10799. $as_echo_n "(cached) " >&6
  10800. else
  10801. if test "$cross_compiling" = yes; then
  10802. ac_cv_func_realloc_0_nonnull=no
  10803. else
  10804. cat >conftest.$ac_ext <<_ACEOF
  10805. /* confdefs.h. */
  10806. _ACEOF
  10807. cat confdefs.h >>conftest.$ac_ext
  10808. cat >>conftest.$ac_ext <<_ACEOF
  10809. /* end confdefs.h. */
  10810. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10811. # include <stdlib.h>
  10812. #else
  10813. char *realloc ();
  10814. #endif
  10815. int
  10816. main ()
  10817. {
  10818. return ! realloc (0, 0);
  10819. ;
  10820. return 0;
  10821. }
  10822. _ACEOF
  10823. rm -f conftest$ac_exeext
  10824. if { (ac_try="$ac_link"
  10825. case "(($ac_try" in
  10826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10827. *) ac_try_echo=$ac_try;;
  10828. esac
  10829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10830. $as_echo "$ac_try_echo") >&5
  10831. (eval "$ac_link") 2>&5
  10832. ac_status=$?
  10833. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10834. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10835. { (case "(($ac_try" in
  10836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10837. *) ac_try_echo=$ac_try;;
  10838. esac
  10839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10840. $as_echo "$ac_try_echo") >&5
  10841. (eval "$ac_try") 2>&5
  10842. ac_status=$?
  10843. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10844. (exit $ac_status); }; }; then
  10845. ac_cv_func_realloc_0_nonnull=yes
  10846. else
  10847. $as_echo "$as_me: program exited with status $ac_status" >&5
  10848. $as_echo "$as_me: failed program was:" >&5
  10849. sed 's/^/| /' conftest.$ac_ext >&5
  10850. ( exit $ac_status )
  10851. ac_cv_func_realloc_0_nonnull=no
  10852. fi
  10853. rm -rf conftest.dSYM
  10854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10855. fi
  10856. fi
  10857. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10858. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  10859. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10860. cat >>confdefs.h <<\_ACEOF
  10861. #define HAVE_REALLOC 1
  10862. _ACEOF
  10863. else
  10864. cat >>confdefs.h <<\_ACEOF
  10865. #define HAVE_REALLOC 0
  10866. _ACEOF
  10867. case " $LIBOBJS " in
  10868. *" realloc.$ac_objext "* ) ;;
  10869. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10870. ;;
  10871. esac
  10872. cat >>confdefs.h <<\_ACEOF
  10873. #define realloc rpl_realloc
  10874. _ACEOF
  10875. fi
  10876. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10877. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  10878. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10879. $as_echo_n "(cached) " >&6
  10880. else
  10881. if test "$cross_compiling" = yes; then
  10882. ac_cv_func_stat_empty_string_bug=yes
  10883. else
  10884. cat >conftest.$ac_ext <<_ACEOF
  10885. /* confdefs.h. */
  10886. _ACEOF
  10887. cat confdefs.h >>conftest.$ac_ext
  10888. cat >>conftest.$ac_ext <<_ACEOF
  10889. /* end confdefs.h. */
  10890. $ac_includes_default
  10891. int
  10892. main ()
  10893. {
  10894. struct stat sbuf;
  10895. return stat ("", &sbuf) == 0;
  10896. ;
  10897. return 0;
  10898. }
  10899. _ACEOF
  10900. rm -f conftest$ac_exeext
  10901. if { (ac_try="$ac_link"
  10902. case "(($ac_try" in
  10903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10904. *) ac_try_echo=$ac_try;;
  10905. esac
  10906. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10907. $as_echo "$ac_try_echo") >&5
  10908. (eval "$ac_link") 2>&5
  10909. ac_status=$?
  10910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10911. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10912. { (case "(($ac_try" in
  10913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10914. *) ac_try_echo=$ac_try;;
  10915. esac
  10916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10917. $as_echo "$ac_try_echo") >&5
  10918. (eval "$ac_try") 2>&5
  10919. ac_status=$?
  10920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10921. (exit $ac_status); }; }; then
  10922. ac_cv_func_stat_empty_string_bug=no
  10923. else
  10924. $as_echo "$as_me: program exited with status $ac_status" >&5
  10925. $as_echo "$as_me: failed program was:" >&5
  10926. sed 's/^/| /' conftest.$ac_ext >&5
  10927. ( exit $ac_status )
  10928. ac_cv_func_stat_empty_string_bug=yes
  10929. fi
  10930. rm -rf conftest.dSYM
  10931. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10932. fi
  10933. fi
  10934. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10935. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  10936. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10937. case " $LIBOBJS " in
  10938. *" stat.$ac_objext "* ) ;;
  10939. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10940. ;;
  10941. esac
  10942. cat >>confdefs.h <<_ACEOF
  10943. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10944. _ACEOF
  10945. fi
  10946. { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
  10947. $as_echo_n "checking for struct timespec... " >&6; }
  10948. if test "${ac_cv_type_struct_timespec+set}" = set; then
  10949. $as_echo_n "(cached) " >&6
  10950. else
  10951. ac_cv_type_struct_timespec=no
  10952. cat >conftest.$ac_ext <<_ACEOF
  10953. /* confdefs.h. */
  10954. _ACEOF
  10955. cat confdefs.h >>conftest.$ac_ext
  10956. cat >>conftest.$ac_ext <<_ACEOF
  10957. /* end confdefs.h. */
  10958. #include <sys/types.h>
  10959. #include <sys/time.h>
  10960. #include <time.h>
  10961. int
  10962. main ()
  10963. {
  10964. if (sizeof (struct timespec))
  10965. return 0;
  10966. ;
  10967. return 0;
  10968. }
  10969. _ACEOF
  10970. rm -f conftest.$ac_objext
  10971. if { (ac_try="$ac_compile"
  10972. case "(($ac_try" in
  10973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10974. *) ac_try_echo=$ac_try;;
  10975. esac
  10976. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10977. $as_echo "$ac_try_echo") >&5
  10978. (eval "$ac_compile") 2>conftest.er1
  10979. ac_status=$?
  10980. grep -v '^ *+' conftest.er1 >conftest.err
  10981. rm -f conftest.er1
  10982. cat conftest.err >&5
  10983. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10984. (exit $ac_status); } && {
  10985. test -z "$ac_cxx_werror_flag" ||
  10986. test ! -s conftest.err
  10987. } && test -s conftest.$ac_objext; then
  10988. cat >conftest.$ac_ext <<_ACEOF
  10989. /* confdefs.h. */
  10990. _ACEOF
  10991. cat confdefs.h >>conftest.$ac_ext
  10992. cat >>conftest.$ac_ext <<_ACEOF
  10993. /* end confdefs.h. */
  10994. #include <sys/types.h>
  10995. #include <sys/time.h>
  10996. #include <time.h>
  10997. int
  10998. main ()
  10999. {
  11000. if (sizeof ((struct timespec)))
  11001. return 0;
  11002. ;
  11003. return 0;
  11004. }
  11005. _ACEOF
  11006. rm -f conftest.$ac_objext
  11007. if { (ac_try="$ac_compile"
  11008. case "(($ac_try" in
  11009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11010. *) ac_try_echo=$ac_try;;
  11011. esac
  11012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11013. $as_echo "$ac_try_echo") >&5
  11014. (eval "$ac_compile") 2>conftest.er1
  11015. ac_status=$?
  11016. grep -v '^ *+' conftest.er1 >conftest.err
  11017. rm -f conftest.er1
  11018. cat conftest.err >&5
  11019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11020. (exit $ac_status); } && {
  11021. test -z "$ac_cxx_werror_flag" ||
  11022. test ! -s conftest.err
  11023. } && test -s conftest.$ac_objext; then
  11024. :
  11025. else
  11026. $as_echo "$as_me: failed program was:" >&5
  11027. sed 's/^/| /' conftest.$ac_ext >&5
  11028. ac_cv_type_struct_timespec=yes
  11029. fi
  11030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11031. else
  11032. $as_echo "$as_me: failed program was:" >&5
  11033. sed 's/^/| /' conftest.$ac_ext >&5
  11034. fi
  11035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11036. fi
  11037. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  11038. $as_echo "$ac_cv_type_struct_timespec" >&6; }
  11039. if test "x$ac_cv_type_struct_timespec" = x""yes; then
  11040. cat >>confdefs.h <<\_ACEOF
  11041. #define HAVE_TIMESPEC 1
  11042. _ACEOF
  11043. fi
  11044. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  11045. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  11046. $as_echo_n "checking for struct stat.st_mtim... " >&6; }
  11047. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  11048. $as_echo_n "(cached) " >&6
  11049. else
  11050. cat >conftest.$ac_ext <<_ACEOF
  11051. /* confdefs.h. */
  11052. _ACEOF
  11053. cat confdefs.h >>conftest.$ac_ext
  11054. cat >>conftest.$ac_ext <<_ACEOF
  11055. /* end confdefs.h. */
  11056. $ac_includes_default
  11057. int
  11058. main ()
  11059. {
  11060. static struct stat ac_aggr;
  11061. if (ac_aggr.st_mtim)
  11062. return 0;
  11063. ;
  11064. return 0;
  11065. }
  11066. _ACEOF
  11067. rm -f conftest.$ac_objext
  11068. if { (ac_try="$ac_compile"
  11069. case "(($ac_try" in
  11070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11071. *) ac_try_echo=$ac_try;;
  11072. esac
  11073. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11074. $as_echo "$ac_try_echo") >&5
  11075. (eval "$ac_compile") 2>conftest.er1
  11076. ac_status=$?
  11077. grep -v '^ *+' conftest.er1 >conftest.err
  11078. rm -f conftest.er1
  11079. cat conftest.err >&5
  11080. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11081. (exit $ac_status); } && {
  11082. test -z "$ac_cxx_werror_flag" ||
  11083. test ! -s conftest.err
  11084. } && test -s conftest.$ac_objext; then
  11085. ac_cv_member_struct_stat_st_mtim=yes
  11086. else
  11087. $as_echo "$as_me: failed program was:" >&5
  11088. sed 's/^/| /' conftest.$ac_ext >&5
  11089. cat >conftest.$ac_ext <<_ACEOF
  11090. /* confdefs.h. */
  11091. _ACEOF
  11092. cat confdefs.h >>conftest.$ac_ext
  11093. cat >>conftest.$ac_ext <<_ACEOF
  11094. /* end confdefs.h. */
  11095. $ac_includes_default
  11096. int
  11097. main ()
  11098. {
  11099. static struct stat ac_aggr;
  11100. if (sizeof ac_aggr.st_mtim)
  11101. return 0;
  11102. ;
  11103. return 0;
  11104. }
  11105. _ACEOF
  11106. rm -f conftest.$ac_objext
  11107. if { (ac_try="$ac_compile"
  11108. case "(($ac_try" in
  11109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11110. *) ac_try_echo=$ac_try;;
  11111. esac
  11112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11113. $as_echo "$ac_try_echo") >&5
  11114. (eval "$ac_compile") 2>conftest.er1
  11115. ac_status=$?
  11116. grep -v '^ *+' conftest.er1 >conftest.err
  11117. rm -f conftest.er1
  11118. cat conftest.err >&5
  11119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11120. (exit $ac_status); } && {
  11121. test -z "$ac_cxx_werror_flag" ||
  11122. test ! -s conftest.err
  11123. } && test -s conftest.$ac_objext; then
  11124. ac_cv_member_struct_stat_st_mtim=yes
  11125. else
  11126. $as_echo "$as_me: failed program was:" >&5
  11127. sed 's/^/| /' conftest.$ac_ext >&5
  11128. ac_cv_member_struct_stat_st_mtim=no
  11129. fi
  11130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11131. fi
  11132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11133. fi
  11134. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  11135. $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
  11136. if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then
  11137. cat >>confdefs.h <<\_ACEOF
  11138. #define HAVE_ST_MTIM 1
  11139. _ACEOF
  11140. else
  11141. { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  11142. $as_echo_n "checking for struct stat.st_mtimespec... " >&6; }
  11143. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  11144. $as_echo_n "(cached) " >&6
  11145. else
  11146. cat >conftest.$ac_ext <<_ACEOF
  11147. /* confdefs.h. */
  11148. _ACEOF
  11149. cat confdefs.h >>conftest.$ac_ext
  11150. cat >>conftest.$ac_ext <<_ACEOF
  11151. /* end confdefs.h. */
  11152. $ac_includes_default
  11153. int
  11154. main ()
  11155. {
  11156. static struct stat ac_aggr;
  11157. if (ac_aggr.st_mtimespec)
  11158. return 0;
  11159. ;
  11160. return 0;
  11161. }
  11162. _ACEOF
  11163. rm -f conftest.$ac_objext
  11164. if { (ac_try="$ac_compile"
  11165. case "(($ac_try" in
  11166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11167. *) ac_try_echo=$ac_try;;
  11168. esac
  11169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11170. $as_echo "$ac_try_echo") >&5
  11171. (eval "$ac_compile") 2>conftest.er1
  11172. ac_status=$?
  11173. grep -v '^ *+' conftest.er1 >conftest.err
  11174. rm -f conftest.er1
  11175. cat conftest.err >&5
  11176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11177. (exit $ac_status); } && {
  11178. test -z "$ac_cxx_werror_flag" ||
  11179. test ! -s conftest.err
  11180. } && test -s conftest.$ac_objext; then
  11181. ac_cv_member_struct_stat_st_mtimespec=yes
  11182. else
  11183. $as_echo "$as_me: failed program was:" >&5
  11184. sed 's/^/| /' conftest.$ac_ext >&5
  11185. cat >conftest.$ac_ext <<_ACEOF
  11186. /* confdefs.h. */
  11187. _ACEOF
  11188. cat confdefs.h >>conftest.$ac_ext
  11189. cat >>conftest.$ac_ext <<_ACEOF
  11190. /* end confdefs.h. */
  11191. $ac_includes_default
  11192. int
  11193. main ()
  11194. {
  11195. static struct stat ac_aggr;
  11196. if (sizeof ac_aggr.st_mtimespec)
  11197. return 0;
  11198. ;
  11199. return 0;
  11200. }
  11201. _ACEOF
  11202. rm -f conftest.$ac_objext
  11203. if { (ac_try="$ac_compile"
  11204. case "(($ac_try" in
  11205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11206. *) ac_try_echo=$ac_try;;
  11207. esac
  11208. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11209. $as_echo "$ac_try_echo") >&5
  11210. (eval "$ac_compile") 2>conftest.er1
  11211. ac_status=$?
  11212. grep -v '^ *+' conftest.er1 >conftest.err
  11213. rm -f conftest.er1
  11214. cat conftest.err >&5
  11215. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11216. (exit $ac_status); } && {
  11217. test -z "$ac_cxx_werror_flag" ||
  11218. test ! -s conftest.err
  11219. } && test -s conftest.$ac_objext; then
  11220. ac_cv_member_struct_stat_st_mtimespec=yes
  11221. else
  11222. $as_echo "$as_me: failed program was:" >&5
  11223. sed 's/^/| /' conftest.$ac_ext >&5
  11224. ac_cv_member_struct_stat_st_mtimespec=no
  11225. fi
  11226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11227. fi
  11228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11229. fi
  11230. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  11231. $as_echo "$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  11232. if test "x$ac_cv_member_struct_stat_st_mtimespec" = x""yes; then
  11233. cat >>confdefs.h <<\_ACEOF
  11234. #define HAVE_ST_MTIMESPEC 1
  11235. _ACEOF
  11236. fi
  11237. fi
  11238. { $as_echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  11239. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  11240. cat >conftest.$ac_ext <<_ACEOF
  11241. /* confdefs.h. */
  11242. _ACEOF
  11243. cat confdefs.h >>conftest.$ac_ext
  11244. cat >>conftest.$ac_ext <<_ACEOF
  11245. /* end confdefs.h. */
  11246. #include <sys/types.h>
  11247. #include <sys/time.h>
  11248. int
  11249. main ()
  11250. {
  11251. struct timespec ts1, ts2;
  11252. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  11253. #ifndef timespecsub
  11254. #error missing timespecsub
  11255. #endif
  11256. timespecsub(&ts1, &ts2);
  11257. ;
  11258. return 0;
  11259. }
  11260. _ACEOF
  11261. rm -f conftest.$ac_objext
  11262. if { (ac_try="$ac_compile"
  11263. case "(($ac_try" in
  11264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11265. *) ac_try_echo=$ac_try;;
  11266. esac
  11267. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11268. $as_echo "$ac_try_echo") >&5
  11269. (eval "$ac_compile") 2>conftest.er1
  11270. ac_status=$?
  11271. grep -v '^ *+' conftest.er1 >conftest.err
  11272. rm -f conftest.er1
  11273. cat conftest.err >&5
  11274. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11275. (exit $ac_status); } && {
  11276. test -z "$ac_cxx_werror_flag" ||
  11277. test ! -s conftest.err
  11278. } && test -s conftest.$ac_objext; then
  11279. cat >>confdefs.h <<\_ACEOF
  11280. #define HAVE_TIMESPECSUB2 1
  11281. _ACEOF
  11282. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11283. $as_echo "yes" >&6; }
  11284. else
  11285. $as_echo "$as_me: failed program was:" >&5
  11286. sed 's/^/| /' conftest.$ac_ext >&5
  11287. { $as_echo "$as_me:$LINENO: result: no" >&5
  11288. $as_echo "no" >&6; }
  11289. fi
  11290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11291. fi
  11292. for ac_func in strftime
  11293. do
  11294. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11295. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11296. $as_echo_n "checking for $ac_func... " >&6; }
  11297. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11298. $as_echo_n "(cached) " >&6
  11299. else
  11300. cat >conftest.$ac_ext <<_ACEOF
  11301. /* confdefs.h. */
  11302. _ACEOF
  11303. cat confdefs.h >>conftest.$ac_ext
  11304. cat >>conftest.$ac_ext <<_ACEOF
  11305. /* end confdefs.h. */
  11306. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11307. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11308. #define $ac_func innocuous_$ac_func
  11309. /* System header to define __stub macros and hopefully few prototypes,
  11310. which can conflict with char $ac_func (); below.
  11311. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11312. <limits.h> exists even on freestanding compilers. */
  11313. #ifdef __STDC__
  11314. # include <limits.h>
  11315. #else
  11316. # include <assert.h>
  11317. #endif
  11318. #undef $ac_func
  11319. /* Override any GCC internal prototype to avoid an error.
  11320. Use char because int might match the return type of a GCC
  11321. builtin and then its argument prototype would still apply. */
  11322. #ifdef __cplusplus
  11323. extern "C"
  11324. #endif
  11325. char $ac_func ();
  11326. /* The GNU C library defines this for functions which it implements
  11327. to always fail with ENOSYS. Some functions are actually named
  11328. something starting with __ and the normal name is an alias. */
  11329. #if defined __stub_$ac_func || defined __stub___$ac_func
  11330. choke me
  11331. #endif
  11332. int
  11333. main ()
  11334. {
  11335. return $ac_func ();
  11336. ;
  11337. return 0;
  11338. }
  11339. _ACEOF
  11340. rm -f conftest.$ac_objext conftest$ac_exeext
  11341. if { (ac_try="$ac_link"
  11342. case "(($ac_try" in
  11343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11344. *) ac_try_echo=$ac_try;;
  11345. esac
  11346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11347. $as_echo "$ac_try_echo") >&5
  11348. (eval "$ac_link") 2>conftest.er1
  11349. ac_status=$?
  11350. grep -v '^ *+' conftest.er1 >conftest.err
  11351. rm -f conftest.er1
  11352. cat conftest.err >&5
  11353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11354. (exit $ac_status); } && {
  11355. test -z "$ac_cxx_werror_flag" ||
  11356. test ! -s conftest.err
  11357. } && test -s conftest$ac_exeext && {
  11358. test "$cross_compiling" = yes ||
  11359. $as_test_x conftest$ac_exeext
  11360. }; then
  11361. eval "$as_ac_var=yes"
  11362. else
  11363. $as_echo "$as_me: failed program was:" >&5
  11364. sed 's/^/| /' conftest.$ac_ext >&5
  11365. eval "$as_ac_var=no"
  11366. fi
  11367. rm -rf conftest.dSYM
  11368. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11369. conftest$ac_exeext conftest.$ac_ext
  11370. fi
  11371. ac_res=`eval 'as_val=${'$as_ac_var'}
  11372. $as_echo "$as_val"'`
  11373. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11374. $as_echo "$ac_res" >&6; }
  11375. as_val=`eval 'as_val=${'$as_ac_var'}
  11376. $as_echo "$as_val"'`
  11377. if test "x$as_val" = x""yes; then
  11378. cat >>confdefs.h <<_ACEOF
  11379. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11380. _ACEOF
  11381. else
  11382. # strftime is in -lintl on SCO UNIX.
  11383. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  11384. $as_echo_n "checking for strftime in -lintl... " >&6; }
  11385. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  11386. $as_echo_n "(cached) " >&6
  11387. else
  11388. ac_check_lib_save_LIBS=$LIBS
  11389. LIBS="-lintl $LIBS"
  11390. cat >conftest.$ac_ext <<_ACEOF
  11391. /* confdefs.h. */
  11392. _ACEOF
  11393. cat confdefs.h >>conftest.$ac_ext
  11394. cat >>conftest.$ac_ext <<_ACEOF
  11395. /* end confdefs.h. */
  11396. /* Override any GCC internal prototype to avoid an error.
  11397. Use char because int might match the return type of a GCC
  11398. builtin and then its argument prototype would still apply. */
  11399. #ifdef __cplusplus
  11400. extern "C"
  11401. #endif
  11402. char strftime ();
  11403. int
  11404. main ()
  11405. {
  11406. return strftime ();
  11407. ;
  11408. return 0;
  11409. }
  11410. _ACEOF
  11411. rm -f conftest.$ac_objext conftest$ac_exeext
  11412. if { (ac_try="$ac_link"
  11413. case "(($ac_try" in
  11414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11415. *) ac_try_echo=$ac_try;;
  11416. esac
  11417. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11418. $as_echo "$ac_try_echo") >&5
  11419. (eval "$ac_link") 2>conftest.er1
  11420. ac_status=$?
  11421. grep -v '^ *+' conftest.er1 >conftest.err
  11422. rm -f conftest.er1
  11423. cat conftest.err >&5
  11424. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11425. (exit $ac_status); } && {
  11426. test -z "$ac_cxx_werror_flag" ||
  11427. test ! -s conftest.err
  11428. } && test -s conftest$ac_exeext && {
  11429. test "$cross_compiling" = yes ||
  11430. $as_test_x conftest$ac_exeext
  11431. }; then
  11432. ac_cv_lib_intl_strftime=yes
  11433. else
  11434. $as_echo "$as_me: failed program was:" >&5
  11435. sed 's/^/| /' conftest.$ac_ext >&5
  11436. ac_cv_lib_intl_strftime=no
  11437. fi
  11438. rm -rf conftest.dSYM
  11439. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11440. conftest$ac_exeext conftest.$ac_ext
  11441. LIBS=$ac_check_lib_save_LIBS
  11442. fi
  11443. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  11444. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  11445. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  11446. cat >>confdefs.h <<\_ACEOF
  11447. #define HAVE_STRFTIME 1
  11448. _ACEOF
  11449. LIBS="-lintl $LIBS"
  11450. fi
  11451. fi
  11452. done
  11453. #checkpoint
  11454. cat >confcache <<\_ACEOF
  11455. # This file is a shell script that caches the results of configure
  11456. # tests run on this system so they can be shared between configure
  11457. # scripts and configure runs, see configure's option --config-cache.
  11458. # It is not useful on other systems. If it contains results you don't
  11459. # want to keep, you may remove or edit it.
  11460. #
  11461. # config.status only pays attention to the cache file if you give it
  11462. # the --recheck option to rerun configure.
  11463. #
  11464. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11465. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11466. # following values.
  11467. _ACEOF
  11468. # The following way of writing the cache mishandles newlines in values,
  11469. # but we know of no workaround that is simple, portable, and efficient.
  11470. # So, we kill variables containing newlines.
  11471. # Ultrix sh set writes to stderr and can't be redirected directly,
  11472. # and sets the high bit in the cache file unless we assign to the vars.
  11473. (
  11474. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11475. eval ac_val=\$$ac_var
  11476. case $ac_val in #(
  11477. *${as_nl}*)
  11478. case $ac_var in #(
  11479. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11480. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11481. esac
  11482. case $ac_var in #(
  11483. _ | IFS | as_nl) ;; #(
  11484. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11485. *) $as_unset $ac_var ;;
  11486. esac ;;
  11487. esac
  11488. done
  11489. (set) 2>&1 |
  11490. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11491. *${as_nl}ac_space=\ *)
  11492. # `set' does not quote correctly, so add quotes (double-quote
  11493. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11494. sed -n \
  11495. "s/'/'\\\\''/g;
  11496. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11497. ;; #(
  11498. *)
  11499. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11500. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11501. ;;
  11502. esac |
  11503. sort
  11504. ) |
  11505. sed '
  11506. /^ac_cv_env_/b end
  11507. t clear
  11508. :clear
  11509. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11510. t end
  11511. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11512. :end' >>confcache
  11513. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11514. if test -w "$cache_file"; then
  11515. test "x$cache_file" != "x/dev/null" &&
  11516. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11517. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11518. cat confcache >$cache_file
  11519. else
  11520. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11521. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11522. fi
  11523. fi
  11524. rm -f confcache
  11525. for ac_func in clock fsync getrusage isascii getpassphrase
  11526. do
  11527. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11528. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11529. $as_echo_n "checking for $ac_func... " >&6; }
  11530. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11531. $as_echo_n "(cached) " >&6
  11532. else
  11533. cat >conftest.$ac_ext <<_ACEOF
  11534. /* confdefs.h. */
  11535. _ACEOF
  11536. cat confdefs.h >>conftest.$ac_ext
  11537. cat >>conftest.$ac_ext <<_ACEOF
  11538. /* end confdefs.h. */
  11539. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11540. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11541. #define $ac_func innocuous_$ac_func
  11542. /* System header to define __stub macros and hopefully few prototypes,
  11543. which can conflict with char $ac_func (); below.
  11544. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11545. <limits.h> exists even on freestanding compilers. */
  11546. #ifdef __STDC__
  11547. # include <limits.h>
  11548. #else
  11549. # include <assert.h>
  11550. #endif
  11551. #undef $ac_func
  11552. /* Override any GCC internal prototype to avoid an error.
  11553. Use char because int might match the return type of a GCC
  11554. builtin and then its argument prototype would still apply. */
  11555. #ifdef __cplusplus
  11556. extern "C"
  11557. #endif
  11558. char $ac_func ();
  11559. /* The GNU C library defines this for functions which it implements
  11560. to always fail with ENOSYS. Some functions are actually named
  11561. something starting with __ and the normal name is an alias. */
  11562. #if defined __stub_$ac_func || defined __stub___$ac_func
  11563. choke me
  11564. #endif
  11565. int
  11566. main ()
  11567. {
  11568. return $ac_func ();
  11569. ;
  11570. return 0;
  11571. }
  11572. _ACEOF
  11573. rm -f conftest.$ac_objext conftest$ac_exeext
  11574. if { (ac_try="$ac_link"
  11575. case "(($ac_try" in
  11576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11577. *) ac_try_echo=$ac_try;;
  11578. esac
  11579. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11580. $as_echo "$ac_try_echo") >&5
  11581. (eval "$ac_link") 2>conftest.er1
  11582. ac_status=$?
  11583. grep -v '^ *+' conftest.er1 >conftest.err
  11584. rm -f conftest.er1
  11585. cat conftest.err >&5
  11586. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11587. (exit $ac_status); } && {
  11588. test -z "$ac_cxx_werror_flag" ||
  11589. test ! -s conftest.err
  11590. } && test -s conftest$ac_exeext && {
  11591. test "$cross_compiling" = yes ||
  11592. $as_test_x conftest$ac_exeext
  11593. }; then
  11594. eval "$as_ac_var=yes"
  11595. else
  11596. $as_echo "$as_me: failed program was:" >&5
  11597. sed 's/^/| /' conftest.$ac_ext >&5
  11598. eval "$as_ac_var=no"
  11599. fi
  11600. rm -rf conftest.dSYM
  11601. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11602. conftest$ac_exeext conftest.$ac_ext
  11603. fi
  11604. ac_res=`eval 'as_val=${'$as_ac_var'}
  11605. $as_echo "$as_val"'`
  11606. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11607. $as_echo "$ac_res" >&6; }
  11608. as_val=`eval 'as_val=${'$as_ac_var'}
  11609. $as_echo "$as_val"'`
  11610. if test "x$as_val" = x""yes; then
  11611. cat >>confdefs.h <<_ACEOF
  11612. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11613. _ACEOF
  11614. fi
  11615. done
  11616. for ac_func in memcpy memset random rename snprintf srandom gettime
  11617. do
  11618. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11619. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11620. $as_echo_n "checking for $ac_func... " >&6; }
  11621. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11622. $as_echo_n "(cached) " >&6
  11623. else
  11624. cat >conftest.$ac_ext <<_ACEOF
  11625. /* confdefs.h. */
  11626. _ACEOF
  11627. cat confdefs.h >>conftest.$ac_ext
  11628. cat >>conftest.$ac_ext <<_ACEOF
  11629. /* end confdefs.h. */
  11630. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11631. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11632. #define $ac_func innocuous_$ac_func
  11633. /* System header to define __stub macros and hopefully few prototypes,
  11634. which can conflict with char $ac_func (); below.
  11635. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11636. <limits.h> exists even on freestanding compilers. */
  11637. #ifdef __STDC__
  11638. # include <limits.h>
  11639. #else
  11640. # include <assert.h>
  11641. #endif
  11642. #undef $ac_func
  11643. /* Override any GCC internal prototype to avoid an error.
  11644. Use char because int might match the return type of a GCC
  11645. builtin and then its argument prototype would still apply. */
  11646. #ifdef __cplusplus
  11647. extern "C"
  11648. #endif
  11649. char $ac_func ();
  11650. /* The GNU C library defines this for functions which it implements
  11651. to always fail with ENOSYS. Some functions are actually named
  11652. something starting with __ and the normal name is an alias. */
  11653. #if defined __stub_$ac_func || defined __stub___$ac_func
  11654. choke me
  11655. #endif
  11656. int
  11657. main ()
  11658. {
  11659. return $ac_func ();
  11660. ;
  11661. return 0;
  11662. }
  11663. _ACEOF
  11664. rm -f conftest.$ac_objext conftest$ac_exeext
  11665. if { (ac_try="$ac_link"
  11666. case "(($ac_try" in
  11667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11668. *) ac_try_echo=$ac_try;;
  11669. esac
  11670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11671. $as_echo "$ac_try_echo") >&5
  11672. (eval "$ac_link") 2>conftest.er1
  11673. ac_status=$?
  11674. grep -v '^ *+' conftest.er1 >conftest.err
  11675. rm -f conftest.er1
  11676. cat conftest.err >&5
  11677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11678. (exit $ac_status); } && {
  11679. test -z "$ac_cxx_werror_flag" ||
  11680. test ! -s conftest.err
  11681. } && test -s conftest$ac_exeext && {
  11682. test "$cross_compiling" = yes ||
  11683. $as_test_x conftest$ac_exeext
  11684. }; then
  11685. eval "$as_ac_var=yes"
  11686. else
  11687. $as_echo "$as_me: failed program was:" >&5
  11688. sed 's/^/| /' conftest.$ac_ext >&5
  11689. eval "$as_ac_var=no"
  11690. fi
  11691. rm -rf conftest.dSYM
  11692. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11693. conftest$ac_exeext conftest.$ac_ext
  11694. fi
  11695. ac_res=`eval 'as_val=${'$as_ac_var'}
  11696. $as_echo "$as_val"'`
  11697. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11698. $as_echo "$ac_res" >&6; }
  11699. as_val=`eval 'as_val=${'$as_ac_var'}
  11700. $as_echo "$as_val"'`
  11701. if test "x$as_val" = x""yes; then
  11702. cat >>confdefs.h <<_ACEOF
  11703. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11704. _ACEOF
  11705. fi
  11706. done
  11707. #checkpoint
  11708. cat >confcache <<\_ACEOF
  11709. # This file is a shell script that caches the results of configure
  11710. # tests run on this system so they can be shared between configure
  11711. # scripts and configure runs, see configure's option --config-cache.
  11712. # It is not useful on other systems. If it contains results you don't
  11713. # want to keep, you may remove or edit it.
  11714. #
  11715. # config.status only pays attention to the cache file if you give it
  11716. # the --recheck option to rerun configure.
  11717. #
  11718. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11719. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11720. # following values.
  11721. _ACEOF
  11722. # The following way of writing the cache mishandles newlines in values,
  11723. # but we know of no workaround that is simple, portable, and efficient.
  11724. # So, we kill variables containing newlines.
  11725. # Ultrix sh set writes to stderr and can't be redirected directly,
  11726. # and sets the high bit in the cache file unless we assign to the vars.
  11727. (
  11728. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11729. eval ac_val=\$$ac_var
  11730. case $ac_val in #(
  11731. *${as_nl}*)
  11732. case $ac_var in #(
  11733. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  11734. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11735. esac
  11736. case $ac_var in #(
  11737. _ | IFS | as_nl) ;; #(
  11738. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11739. *) $as_unset $ac_var ;;
  11740. esac ;;
  11741. esac
  11742. done
  11743. (set) 2>&1 |
  11744. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11745. *${as_nl}ac_space=\ *)
  11746. # `set' does not quote correctly, so add quotes (double-quote
  11747. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11748. sed -n \
  11749. "s/'/'\\\\''/g;
  11750. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11751. ;; #(
  11752. *)
  11753. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11754. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11755. ;;
  11756. esac |
  11757. sort
  11758. ) |
  11759. sed '
  11760. /^ac_cv_env_/b end
  11761. t clear
  11762. :clear
  11763. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11764. t end
  11765. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11766. :end' >>confcache
  11767. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11768. if test -w "$cache_file"; then
  11769. test "x$cache_file" != "x/dev/null" &&
  11770. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11771. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11772. cat confcache >$cache_file
  11773. else
  11774. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11775. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11776. fi
  11777. fi
  11778. rm -f confcache
  11779. for ac_func in strcasecmp strncasecmp vsnprintf
  11780. do
  11781. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11782. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11783. $as_echo_n "checking for $ac_func... " >&6; }
  11784. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11785. $as_echo_n "(cached) " >&6
  11786. else
  11787. cat >conftest.$ac_ext <<_ACEOF
  11788. /* confdefs.h. */
  11789. _ACEOF
  11790. cat confdefs.h >>conftest.$ac_ext
  11791. cat >>conftest.$ac_ext <<_ACEOF
  11792. /* end confdefs.h. */
  11793. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11794. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11795. #define $ac_func innocuous_$ac_func
  11796. /* System header to define __stub macros and hopefully few prototypes,
  11797. which can conflict with char $ac_func (); below.
  11798. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11799. <limits.h> exists even on freestanding compilers. */
  11800. #ifdef __STDC__
  11801. # include <limits.h>
  11802. #else
  11803. # include <assert.h>
  11804. #endif
  11805. #undef $ac_func
  11806. /* Override any GCC internal prototype to avoid an error.
  11807. Use char because int might match the return type of a GCC
  11808. builtin and then its argument prototype would still apply. */
  11809. #ifdef __cplusplus
  11810. extern "C"
  11811. #endif
  11812. char $ac_func ();
  11813. /* The GNU C library defines this for functions which it implements
  11814. to always fail with ENOSYS. Some functions are actually named
  11815. something starting with __ and the normal name is an alias. */
  11816. #if defined __stub_$ac_func || defined __stub___$ac_func
  11817. choke me
  11818. #endif
  11819. int
  11820. main ()
  11821. {
  11822. return $ac_func ();
  11823. ;
  11824. return 0;
  11825. }
  11826. _ACEOF
  11827. rm -f conftest.$ac_objext conftest$ac_exeext
  11828. if { (ac_try="$ac_link"
  11829. case "(($ac_try" in
  11830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11831. *) ac_try_echo=$ac_try;;
  11832. esac
  11833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11834. $as_echo "$ac_try_echo") >&5
  11835. (eval "$ac_link") 2>conftest.er1
  11836. ac_status=$?
  11837. grep -v '^ *+' conftest.er1 >conftest.err
  11838. rm -f conftest.er1
  11839. cat conftest.err >&5
  11840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11841. (exit $ac_status); } && {
  11842. test -z "$ac_cxx_werror_flag" ||
  11843. test ! -s conftest.err
  11844. } && test -s conftest$ac_exeext && {
  11845. test "$cross_compiling" = yes ||
  11846. $as_test_x conftest$ac_exeext
  11847. }; then
  11848. eval "$as_ac_var=yes"
  11849. else
  11850. $as_echo "$as_me: failed program was:" >&5
  11851. sed 's/^/| /' conftest.$ac_ext >&5
  11852. eval "$as_ac_var=no"
  11853. fi
  11854. rm -rf conftest.dSYM
  11855. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11856. conftest$ac_exeext conftest.$ac_ext
  11857. fi
  11858. ac_res=`eval 'as_val=${'$as_ac_var'}
  11859. $as_echo "$as_val"'`
  11860. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11861. $as_echo "$ac_res" >&6; }
  11862. as_val=`eval 'as_val=${'$as_ac_var'}
  11863. $as_echo "$as_val"'`
  11864. if test "x$as_val" = x""yes; then
  11865. cat >>confdefs.h <<_ACEOF
  11866. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11867. _ACEOF
  11868. fi
  11869. done
  11870. #autoscan suggested this....
  11871. #These are recommended by autoscan, but no code supports it currently
  11872. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  11873. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11874. for ac_func in vsprintf
  11875. do
  11876. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11877. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11878. $as_echo_n "checking for $ac_func... " >&6; }
  11879. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11880. $as_echo_n "(cached) " >&6
  11881. else
  11882. cat >conftest.$ac_ext <<_ACEOF
  11883. /* confdefs.h. */
  11884. _ACEOF
  11885. cat confdefs.h >>conftest.$ac_ext
  11886. cat >>conftest.$ac_ext <<_ACEOF
  11887. /* end confdefs.h. */
  11888. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11889. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11890. #define $ac_func innocuous_$ac_func
  11891. /* System header to define __stub macros and hopefully few prototypes,
  11892. which can conflict with char $ac_func (); below.
  11893. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11894. <limits.h> exists even on freestanding compilers. */
  11895. #ifdef __STDC__
  11896. # include <limits.h>
  11897. #else
  11898. # include <assert.h>
  11899. #endif
  11900. #undef $ac_func
  11901. /* Override any GCC internal prototype to avoid an error.
  11902. Use char because int might match the return type of a GCC
  11903. builtin and then its argument prototype would still apply. */
  11904. #ifdef __cplusplus
  11905. extern "C"
  11906. #endif
  11907. char $ac_func ();
  11908. /* The GNU C library defines this for functions which it implements
  11909. to always fail with ENOSYS. Some functions are actually named
  11910. something starting with __ and the normal name is an alias. */
  11911. #if defined __stub_$ac_func || defined __stub___$ac_func
  11912. choke me
  11913. #endif
  11914. int
  11915. main ()
  11916. {
  11917. return $ac_func ();
  11918. ;
  11919. return 0;
  11920. }
  11921. _ACEOF
  11922. rm -f conftest.$ac_objext conftest$ac_exeext
  11923. if { (ac_try="$ac_link"
  11924. case "(($ac_try" in
  11925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11926. *) ac_try_echo=$ac_try;;
  11927. esac
  11928. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11929. $as_echo "$ac_try_echo") >&5
  11930. (eval "$ac_link") 2>conftest.er1
  11931. ac_status=$?
  11932. grep -v '^ *+' conftest.er1 >conftest.err
  11933. rm -f conftest.er1
  11934. cat conftest.err >&5
  11935. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11936. (exit $ac_status); } && {
  11937. test -z "$ac_cxx_werror_flag" ||
  11938. test ! -s conftest.err
  11939. } && test -s conftest$ac_exeext && {
  11940. test "$cross_compiling" = yes ||
  11941. $as_test_x conftest$ac_exeext
  11942. }; then
  11943. eval "$as_ac_var=yes"
  11944. else
  11945. $as_echo "$as_me: failed program was:" >&5
  11946. sed 's/^/| /' conftest.$ac_ext >&5
  11947. eval "$as_ac_var=no"
  11948. fi
  11949. rm -rf conftest.dSYM
  11950. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11951. conftest$ac_exeext conftest.$ac_ext
  11952. fi
  11953. ac_res=`eval 'as_val=${'$as_ac_var'}
  11954. $as_echo "$as_val"'`
  11955. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11956. $as_echo "$ac_res" >&6; }
  11957. as_val=`eval 'as_val=${'$as_ac_var'}
  11958. $as_echo "$as_val"'`
  11959. if test "x$as_val" = x""yes; then
  11960. cat >>confdefs.h <<_ACEOF
  11961. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11962. _ACEOF
  11963. fi
  11964. done
  11965. if test "$ac_cv_func_vsprintf" = "no"
  11966. then
  11967. cat << 'EOF' >&2
  11968. configure: error:
  11969. Your system does not have the sprintf/vsprintf libraries.
  11970. These are required to compile almost anything. Sorry.
  11971. EOF
  11972. exit 1
  11973. fi
  11974. for ac_func in uname
  11975. do
  11976. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11977. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  11978. $as_echo_n "checking for $ac_func... " >&6; }
  11979. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11980. $as_echo_n "(cached) " >&6
  11981. else
  11982. cat >conftest.$ac_ext <<_ACEOF
  11983. /* confdefs.h. */
  11984. _ACEOF
  11985. cat confdefs.h >>conftest.$ac_ext
  11986. cat >>conftest.$ac_ext <<_ACEOF
  11987. /* end confdefs.h. */
  11988. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11989. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11990. #define $ac_func innocuous_$ac_func
  11991. /* System header to define __stub macros and hopefully few prototypes,
  11992. which can conflict with char $ac_func (); below.
  11993. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11994. <limits.h> exists even on freestanding compilers. */
  11995. #ifdef __STDC__
  11996. # include <limits.h>
  11997. #else
  11998. # include <assert.h>
  11999. #endif
  12000. #undef $ac_func
  12001. /* Override any GCC internal prototype to avoid an error.
  12002. Use char because int might match the return type of a GCC
  12003. builtin and then its argument prototype would still apply. */
  12004. #ifdef __cplusplus
  12005. extern "C"
  12006. #endif
  12007. char $ac_func ();
  12008. /* The GNU C library defines this for functions which it implements
  12009. to always fail with ENOSYS. Some functions are actually named
  12010. something starting with __ and the normal name is an alias. */
  12011. #if defined __stub_$ac_func || defined __stub___$ac_func
  12012. choke me
  12013. #endif
  12014. int
  12015. main ()
  12016. {
  12017. return $ac_func ();
  12018. ;
  12019. return 0;
  12020. }
  12021. _ACEOF
  12022. rm -f conftest.$ac_objext conftest$ac_exeext
  12023. if { (ac_try="$ac_link"
  12024. case "(($ac_try" in
  12025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12026. *) ac_try_echo=$ac_try;;
  12027. esac
  12028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12029. $as_echo "$ac_try_echo") >&5
  12030. (eval "$ac_link") 2>conftest.er1
  12031. ac_status=$?
  12032. grep -v '^ *+' conftest.er1 >conftest.err
  12033. rm -f conftest.er1
  12034. cat conftest.err >&5
  12035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12036. (exit $ac_status); } && {
  12037. test -z "$ac_cxx_werror_flag" ||
  12038. test ! -s conftest.err
  12039. } && test -s conftest$ac_exeext && {
  12040. test "$cross_compiling" = yes ||
  12041. $as_test_x conftest$ac_exeext
  12042. }; then
  12043. eval "$as_ac_var=yes"
  12044. else
  12045. $as_echo "$as_me: failed program was:" >&5
  12046. sed 's/^/| /' conftest.$ac_ext >&5
  12047. eval "$as_ac_var=no"
  12048. fi
  12049. rm -rf conftest.dSYM
  12050. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12051. conftest$ac_exeext conftest.$ac_ext
  12052. fi
  12053. ac_res=`eval 'as_val=${'$as_ac_var'}
  12054. $as_echo "$as_val"'`
  12055. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  12056. $as_echo "$ac_res" >&6; }
  12057. as_val=`eval 'as_val=${'$as_ac_var'}
  12058. $as_echo "$as_val"'`
  12059. if test "x$as_val" = x""yes; then
  12060. cat >>confdefs.h <<_ACEOF
  12061. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12062. _ACEOF
  12063. fi
  12064. done
  12065. if test "$ac_cv_func_uname" = "no"
  12066. then
  12067. cat << 'EOF' >&2
  12068. configure: error:
  12069. Your system does not have the uname() function.
  12070. This is required for the botpack.
  12071. EOF
  12072. exit 1
  12073. fi
  12074. # Make sure we have stdc headers, since we can't compile without them
  12075. if test "$ac_cv_header_stdc" = "no"
  12076. then
  12077. cat << 'EOF' >&2
  12078. configure: error:
  12079. Your system must support ANSI C Header files.
  12080. These are required for the language support. Sorry.
  12081. EOF
  12082. exit 1
  12083. fi
  12084. #checkpoint
  12085. cat >confcache <<\_ACEOF
  12086. # This file is a shell script that caches the results of configure
  12087. # tests run on this system so they can be shared between configure
  12088. # scripts and configure runs, see configure's option --config-cache.
  12089. # It is not useful on other systems. If it contains results you don't
  12090. # want to keep, you may remove or edit it.
  12091. #
  12092. # config.status only pays attention to the cache file if you give it
  12093. # the --recheck option to rerun configure.
  12094. #
  12095. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12096. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12097. # following values.
  12098. _ACEOF
  12099. # The following way of writing the cache mishandles newlines in values,
  12100. # but we know of no workaround that is simple, portable, and efficient.
  12101. # So, we kill variables containing newlines.
  12102. # Ultrix sh set writes to stderr and can't be redirected directly,
  12103. # and sets the high bit in the cache file unless we assign to the vars.
  12104. (
  12105. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12106. eval ac_val=\$$ac_var
  12107. case $ac_val in #(
  12108. *${as_nl}*)
  12109. case $ac_var in #(
  12110. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12111. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12112. esac
  12113. case $ac_var in #(
  12114. _ | IFS | as_nl) ;; #(
  12115. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12116. *) $as_unset $ac_var ;;
  12117. esac ;;
  12118. esac
  12119. done
  12120. (set) 2>&1 |
  12121. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12122. *${as_nl}ac_space=\ *)
  12123. # `set' does not quote correctly, so add quotes (double-quote
  12124. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12125. sed -n \
  12126. "s/'/'\\\\''/g;
  12127. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12128. ;; #(
  12129. *)
  12130. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12131. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12132. ;;
  12133. esac |
  12134. sort
  12135. ) |
  12136. sed '
  12137. /^ac_cv_env_/b end
  12138. t clear
  12139. :clear
  12140. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12141. t end
  12142. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12143. :end' >>confcache
  12144. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12145. if test -w "$cache_file"; then
  12146. test "x$cache_file" != "x/dev/null" &&
  12147. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12148. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12149. cat confcache >$cache_file
  12150. else
  12151. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12152. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12153. fi
  12154. fi
  12155. rm -f confcache
  12156. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12157. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12158. cat >>confdefs.h <<_ACEOF
  12159. #define EGG_VERSION $version_num
  12160. _ACEOF
  12161. #FIND_WRAPS
  12162. case "$srcdir" in
  12163. [\\/]* | ?:[\\/]*)
  12164. MOD_UPDIR=""
  12165. ;;
  12166. *)
  12167. MOD_UPDIR="../"
  12168. ;;
  12169. esac
  12170. 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"
  12171. for mf in $files; do
  12172. # Strip MF so we end up with the name of the file.
  12173. # echo "MF: $mf"
  12174. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12175. dirpart=`$as_dirname -- "$mf" ||
  12176. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12177. X"$mf" : 'X\(//\)[^/]' \| \
  12178. X"$mf" : 'X\(//\)$' \| \
  12179. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12180. $as_echo X"$mf" |
  12181. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12182. s//\1/
  12183. q
  12184. }
  12185. /^X\(\/\/\)[^/].*/{
  12186. s//\1/
  12187. q
  12188. }
  12189. /^X\(\/\/\)$/{
  12190. s//\1/
  12191. q
  12192. }
  12193. /^X\(\/\).*/{
  12194. s//\1/
  12195. q
  12196. }
  12197. s/.*/./; q'`
  12198. # echo "dirpart: $dirpart mf: $mf"
  12199. # rm -rf "$dirpart/.deps/"
  12200. rm -f "$dirpart/.deps/includes"
  12201. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12202. for file in `sed -n -e '
  12203. /^OBJS = .*\\\\$/ {
  12204. s/^OBJS = //
  12205. :loop
  12206. s/\\\\$//
  12207. p
  12208. n
  12209. /\\\\$/ b loop
  12210. p
  12211. }
  12212. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12213. do
  12214. base=`basename $file .o`
  12215. test -f "$dirpart/$base.c" || continue
  12216. if ! test -f "$dirpart/.deps/$base.Po"; then
  12217. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12218. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12219. if test -f "$dirpart/$base.o"; then
  12220. rm -f "$dirpart/$base.o"
  12221. fi
  12222. fi
  12223. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12224. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12225. done
  12226. done
  12227. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  12228. cat >confcache <<\_ACEOF
  12229. # This file is a shell script that caches the results of configure
  12230. # tests run on this system so they can be shared between configure
  12231. # scripts and configure runs, see configure's option --config-cache.
  12232. # It is not useful on other systems. If it contains results you don't
  12233. # want to keep, you may remove or edit it.
  12234. #
  12235. # config.status only pays attention to the cache file if you give it
  12236. # the --recheck option to rerun configure.
  12237. #
  12238. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12239. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12240. # following values.
  12241. _ACEOF
  12242. # The following way of writing the cache mishandles newlines in values,
  12243. # but we know of no workaround that is simple, portable, and efficient.
  12244. # So, we kill variables containing newlines.
  12245. # Ultrix sh set writes to stderr and can't be redirected directly,
  12246. # and sets the high bit in the cache file unless we assign to the vars.
  12247. (
  12248. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12249. eval ac_val=\$$ac_var
  12250. case $ac_val in #(
  12251. *${as_nl}*)
  12252. case $ac_var in #(
  12253. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  12254. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12255. esac
  12256. case $ac_var in #(
  12257. _ | IFS | as_nl) ;; #(
  12258. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12259. *) $as_unset $ac_var ;;
  12260. esac ;;
  12261. esac
  12262. done
  12263. (set) 2>&1 |
  12264. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12265. *${as_nl}ac_space=\ *)
  12266. # `set' does not quote correctly, so add quotes (double-quote
  12267. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12268. sed -n \
  12269. "s/'/'\\\\''/g;
  12270. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12271. ;; #(
  12272. *)
  12273. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12274. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12275. ;;
  12276. esac |
  12277. sort
  12278. ) |
  12279. sed '
  12280. /^ac_cv_env_/b end
  12281. t clear
  12282. :clear
  12283. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12284. t end
  12285. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12286. :end' >>confcache
  12287. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12288. if test -w "$cache_file"; then
  12289. test "x$cache_file" != "x/dev/null" &&
  12290. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12291. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12292. cat confcache >$cache_file
  12293. else
  12294. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12295. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12296. fi
  12297. fi
  12298. rm -f confcache
  12299. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12300. # Let make expand exec_prefix.
  12301. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12302. DEFS=-DHAVE_CONFIG_H
  12303. ac_libobjs=
  12304. ac_ltlibobjs=
  12305. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12306. # 1. Remove the extension, and $U if already installed.
  12307. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12308. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12309. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12310. # will be set to the directory where LIBOBJS objects are built.
  12311. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12312. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12313. done
  12314. LIBOBJS=$ac_libobjs
  12315. LTLIBOBJS=$ac_ltlibobjs
  12316. : ${CONFIG_STATUS=./config.status}
  12317. ac_write_fail=0
  12318. ac_clean_files_save=$ac_clean_files
  12319. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12320. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12321. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12322. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12323. #! $SHELL
  12324. # Generated by $as_me.
  12325. # Run this file to recreate the current configuration.
  12326. # Compiler output produced by configure, useful for debugging
  12327. # configure, is in config.log if it exists.
  12328. debug=false
  12329. ac_cs_recheck=false
  12330. ac_cs_silent=false
  12331. SHELL=\${CONFIG_SHELL-$SHELL}
  12332. _ACEOF
  12333. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12334. ## --------------------- ##
  12335. ## M4sh Initialization. ##
  12336. ## --------------------- ##
  12337. # Be more Bourne compatible
  12338. DUALCASE=1; export DUALCASE # for MKS sh
  12339. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12340. emulate sh
  12341. NULLCMD=:
  12342. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12343. # is contrary to our usage. Disable this feature.
  12344. alias -g '${1+"$@"}'='"$@"'
  12345. setopt NO_GLOB_SUBST
  12346. else
  12347. case `(set -o) 2>/dev/null` in
  12348. *posix*) set -o posix ;;
  12349. esac
  12350. fi
  12351. # PATH needs CR
  12352. # Avoid depending upon Character Ranges.
  12353. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12354. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12355. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12356. as_cr_digits='0123456789'
  12357. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12358. as_nl='
  12359. '
  12360. export as_nl
  12361. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12362. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12363. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12364. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12365. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12366. as_echo='printf %s\n'
  12367. as_echo_n='printf %s'
  12368. else
  12369. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12370. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12371. as_echo_n='/usr/ucb/echo -n'
  12372. else
  12373. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12374. as_echo_n_body='eval
  12375. arg=$1;
  12376. case $arg in
  12377. *"$as_nl"*)
  12378. expr "X$arg" : "X\\(.*\\)$as_nl";
  12379. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12380. esac;
  12381. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12382. '
  12383. export as_echo_n_body
  12384. as_echo_n='sh -c $as_echo_n_body as_echo'
  12385. fi
  12386. export as_echo_body
  12387. as_echo='sh -c $as_echo_body as_echo'
  12388. fi
  12389. # The user is always right.
  12390. if test "${PATH_SEPARATOR+set}" != set; then
  12391. PATH_SEPARATOR=:
  12392. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12393. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12394. PATH_SEPARATOR=';'
  12395. }
  12396. fi
  12397. # Support unset when possible.
  12398. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12399. as_unset=unset
  12400. else
  12401. as_unset=false
  12402. fi
  12403. # IFS
  12404. # We need space, tab and new line, in precisely that order. Quoting is
  12405. # there to prevent editors from complaining about space-tab.
  12406. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12407. # splitting by setting IFS to empty value.)
  12408. IFS=" "" $as_nl"
  12409. # Find who we are. Look in the path if we contain no directory separator.
  12410. case $0 in
  12411. *[\\/]* ) as_myself=$0 ;;
  12412. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12413. for as_dir in $PATH
  12414. do
  12415. IFS=$as_save_IFS
  12416. test -z "$as_dir" && as_dir=.
  12417. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12418. done
  12419. IFS=$as_save_IFS
  12420. ;;
  12421. esac
  12422. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12423. # in which case we are not to be found in the path.
  12424. if test "x$as_myself" = x; then
  12425. as_myself=$0
  12426. fi
  12427. if test ! -f "$as_myself"; then
  12428. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12429. { (exit 1); exit 1; }
  12430. fi
  12431. # Work around bugs in pre-3.0 UWIN ksh.
  12432. for as_var in ENV MAIL MAILPATH
  12433. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12434. done
  12435. PS1='$ '
  12436. PS2='> '
  12437. PS4='+ '
  12438. # NLS nuisances.
  12439. LC_ALL=C
  12440. export LC_ALL
  12441. LANGUAGE=C
  12442. export LANGUAGE
  12443. # Required to use basename.
  12444. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12445. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12446. as_expr=expr
  12447. else
  12448. as_expr=false
  12449. fi
  12450. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12451. as_basename=basename
  12452. else
  12453. as_basename=false
  12454. fi
  12455. # Name of the executable.
  12456. as_me=`$as_basename -- "$0" ||
  12457. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12458. X"$0" : 'X\(//\)$' \| \
  12459. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12460. $as_echo X/"$0" |
  12461. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12462. s//\1/
  12463. q
  12464. }
  12465. /^X\/\(\/\/\)$/{
  12466. s//\1/
  12467. q
  12468. }
  12469. /^X\/\(\/\).*/{
  12470. s//\1/
  12471. q
  12472. }
  12473. s/.*/./; q'`
  12474. # CDPATH.
  12475. $as_unset CDPATH
  12476. as_lineno_1=$LINENO
  12477. as_lineno_2=$LINENO
  12478. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12479. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12480. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12481. # uniformly replaced by the line number. The first 'sed' inserts a
  12482. # line-number line after each line using $LINENO; the second 'sed'
  12483. # does the real work. The second script uses 'N' to pair each
  12484. # line-number line with the line containing $LINENO, and appends
  12485. # trailing '-' during substitution so that $LINENO is not a special
  12486. # case at line end.
  12487. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12488. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12489. # E. McMahon (1931-1989) for sed's syntax. :-)
  12490. sed -n '
  12491. p
  12492. /[$]LINENO/=
  12493. ' <$as_myself |
  12494. sed '
  12495. s/[$]LINENO.*/&-/
  12496. t lineno
  12497. b
  12498. :lineno
  12499. N
  12500. :loop
  12501. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12502. t loop
  12503. s/-\n.*//
  12504. ' >$as_me.lineno &&
  12505. chmod +x "$as_me.lineno" ||
  12506. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12507. { (exit 1); exit 1; }; }
  12508. # Don't try to exec as it changes $[0], causing all sort of problems
  12509. # (the dirname of $[0] is not the place where we might find the
  12510. # original and so on. Autoconf is especially sensitive to this).
  12511. . "./$as_me.lineno"
  12512. # Exit status is that of the last command.
  12513. exit
  12514. }
  12515. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12516. as_dirname=dirname
  12517. else
  12518. as_dirname=false
  12519. fi
  12520. ECHO_C= ECHO_N= ECHO_T=
  12521. case `echo -n x` in
  12522. -n*)
  12523. case `echo 'x\c'` in
  12524. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12525. *) ECHO_C='\c';;
  12526. esac;;
  12527. *)
  12528. ECHO_N='-n';;
  12529. esac
  12530. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12531. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12532. as_expr=expr
  12533. else
  12534. as_expr=false
  12535. fi
  12536. rm -f conf$$ conf$$.exe conf$$.file
  12537. if test -d conf$$.dir; then
  12538. rm -f conf$$.dir/conf$$.file
  12539. else
  12540. rm -f conf$$.dir
  12541. mkdir conf$$.dir 2>/dev/null
  12542. fi
  12543. if (echo >conf$$.file) 2>/dev/null; then
  12544. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12545. as_ln_s='ln -s'
  12546. # ... but there are two gotchas:
  12547. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12548. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12549. # In both cases, we have to default to `cp -p'.
  12550. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12551. as_ln_s='cp -p'
  12552. elif ln conf$$.file conf$$ 2>/dev/null; then
  12553. as_ln_s=ln
  12554. else
  12555. as_ln_s='cp -p'
  12556. fi
  12557. else
  12558. as_ln_s='cp -p'
  12559. fi
  12560. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12561. rmdir conf$$.dir 2>/dev/null
  12562. if mkdir -p . 2>/dev/null; then
  12563. as_mkdir_p=:
  12564. else
  12565. test -d ./-p && rmdir ./-p
  12566. as_mkdir_p=false
  12567. fi
  12568. if test -x / >/dev/null 2>&1; then
  12569. as_test_x='test -x'
  12570. else
  12571. if ls -dL / >/dev/null 2>&1; then
  12572. as_ls_L_option=L
  12573. else
  12574. as_ls_L_option=
  12575. fi
  12576. as_test_x='
  12577. eval sh -c '\''
  12578. if test -d "$1"; then
  12579. test -d "$1/.";
  12580. else
  12581. case $1 in
  12582. -*)set "./$1";;
  12583. esac;
  12584. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12585. ???[sx]*):;;*)false;;esac;fi
  12586. '\'' sh
  12587. '
  12588. fi
  12589. as_executable_p=$as_test_x
  12590. # Sed expression to map a string onto a valid CPP name.
  12591. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12592. # Sed expression to map a string onto a valid variable name.
  12593. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12594. exec 6>&1
  12595. # Save the log message, to keep $[0] and so on meaningful, and to
  12596. # report actual input values of CONFIG_FILES etc. instead of their
  12597. # values after options handling.
  12598. ac_log="
  12599. This file was extended by $as_me, which was
  12600. generated by GNU Autoconf 2.63. Invocation command line was
  12601. CONFIG_FILES = $CONFIG_FILES
  12602. CONFIG_HEADERS = $CONFIG_HEADERS
  12603. CONFIG_LINKS = $CONFIG_LINKS
  12604. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12605. $ $0 $@
  12606. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12607. "
  12608. _ACEOF
  12609. case $ac_config_files in *"
  12610. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12611. esac
  12612. case $ac_config_headers in *"
  12613. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12614. esac
  12615. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12616. # Files that config.status was made for.
  12617. config_files="$ac_config_files"
  12618. config_headers="$ac_config_headers"
  12619. _ACEOF
  12620. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12621. ac_cs_usage="\
  12622. \`$as_me' instantiates files from templates according to the
  12623. current configuration.
  12624. Usage: $0 [OPTION]... [FILE]...
  12625. -h, --help print this help, then exit
  12626. -V, --version print version number and configuration settings, then exit
  12627. -q, --quiet, --silent
  12628. do not print progress messages
  12629. -d, --debug don't remove temporary files
  12630. --recheck update $as_me by reconfiguring in the same conditions
  12631. --file=FILE[:TEMPLATE]
  12632. instantiate the configuration file FILE
  12633. --header=FILE[:TEMPLATE]
  12634. instantiate the configuration header FILE
  12635. Configuration files:
  12636. $config_files
  12637. Configuration headers:
  12638. $config_headers
  12639. Report bugs to <bug-autoconf@gnu.org>."
  12640. _ACEOF
  12641. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12642. ac_cs_version="\\
  12643. config.status
  12644. configured by $0, generated by GNU Autoconf 2.63,
  12645. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12646. Copyright (C) 2008 Free Software Foundation, Inc.
  12647. This config.status script is free software; the Free Software Foundation
  12648. gives unlimited permission to copy, distribute and modify it."
  12649. ac_pwd='$ac_pwd'
  12650. srcdir='$srcdir'
  12651. AWK='$AWK'
  12652. test -n "\$AWK" || AWK=awk
  12653. _ACEOF
  12654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12655. # The default lists apply if the user does not specify any file.
  12656. ac_need_defaults=:
  12657. while test $# != 0
  12658. do
  12659. case $1 in
  12660. --*=*)
  12661. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12662. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12663. ac_shift=:
  12664. ;;
  12665. *)
  12666. ac_option=$1
  12667. ac_optarg=$2
  12668. ac_shift=shift
  12669. ;;
  12670. esac
  12671. case $ac_option in
  12672. # Handling of the options.
  12673. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12674. ac_cs_recheck=: ;;
  12675. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12676. $as_echo "$ac_cs_version"; exit ;;
  12677. --debug | --debu | --deb | --de | --d | -d )
  12678. debug=: ;;
  12679. --file | --fil | --fi | --f )
  12680. $ac_shift
  12681. case $ac_optarg in
  12682. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12683. esac
  12684. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12685. ac_need_defaults=false;;
  12686. --header | --heade | --head | --hea )
  12687. $ac_shift
  12688. case $ac_optarg in
  12689. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12690. esac
  12691. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12692. ac_need_defaults=false;;
  12693. --he | --h)
  12694. # Conflict between --help and --header
  12695. { $as_echo "$as_me: error: ambiguous option: $1
  12696. Try \`$0 --help' for more information." >&2
  12697. { (exit 1); exit 1; }; };;
  12698. --help | --hel | -h )
  12699. $as_echo "$ac_cs_usage"; exit ;;
  12700. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12701. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12702. ac_cs_silent=: ;;
  12703. # This is an error.
  12704. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12705. Try \`$0 --help' for more information." >&2
  12706. { (exit 1); exit 1; }; } ;;
  12707. *) ac_config_targets="$ac_config_targets $1"
  12708. ac_need_defaults=false ;;
  12709. esac
  12710. shift
  12711. done
  12712. ac_configure_extra_args=
  12713. if $ac_cs_silent; then
  12714. exec 6>/dev/null
  12715. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12716. fi
  12717. _ACEOF
  12718. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12719. if \$ac_cs_recheck; then
  12720. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12721. shift
  12722. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12723. CONFIG_SHELL='$SHELL'
  12724. export CONFIG_SHELL
  12725. exec "\$@"
  12726. fi
  12727. _ACEOF
  12728. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12729. exec 5>>config.log
  12730. {
  12731. echo
  12732. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12733. ## Running $as_me. ##
  12734. _ASBOX
  12735. $as_echo "$ac_log"
  12736. } >&5
  12737. _ACEOF
  12738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12739. _ACEOF
  12740. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12741. # Handling of arguments.
  12742. for ac_config_target in $ac_config_targets
  12743. do
  12744. case $ac_config_target in
  12745. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12746. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12747. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12748. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12749. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12750. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  12751. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12752. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  12753. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12754. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12755. { (exit 1); exit 1; }; };;
  12756. esac
  12757. done
  12758. # If the user did not use the arguments to specify the items to instantiate,
  12759. # then the envvar interface is used. Set only those that are not.
  12760. # We use the long form for the default assignment because of an extremely
  12761. # bizarre bug on SunOS 4.1.3.
  12762. if $ac_need_defaults; then
  12763. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12764. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12765. fi
  12766. # Have a temporary directory for convenience. Make it in the build tree
  12767. # simply because there is no reason against having it here, and in addition,
  12768. # creating and moving files from /tmp can sometimes cause problems.
  12769. # Hook for its removal unless debugging.
  12770. # Note that there is a small window in which the directory will not be cleaned:
  12771. # after its creation but before its name has been assigned to `$tmp'.
  12772. $debug ||
  12773. {
  12774. tmp=
  12775. trap 'exit_status=$?
  12776. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12777. ' 0
  12778. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12779. }
  12780. # Create a (secure) tmp directory for tmp files.
  12781. {
  12782. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12783. test -n "$tmp" && test -d "$tmp"
  12784. } ||
  12785. {
  12786. tmp=./conf$$-$RANDOM
  12787. (umask 077 && mkdir "$tmp")
  12788. } ||
  12789. {
  12790. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12791. { (exit 1); exit 1; }
  12792. }
  12793. # Set up the scripts for CONFIG_FILES section.
  12794. # No need to generate them if there are no CONFIG_FILES.
  12795. # This happens for instance with `./config.status config.h'.
  12796. if test -n "$CONFIG_FILES"; then
  12797. ac_cr=' '
  12798. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12799. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12800. ac_cs_awk_cr='\\r'
  12801. else
  12802. ac_cs_awk_cr=$ac_cr
  12803. fi
  12804. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12805. _ACEOF
  12806. {
  12807. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12808. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12809. echo "_ACEOF"
  12810. } >conf$$subs.sh ||
  12811. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12812. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12813. { (exit 1); exit 1; }; }
  12814. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12815. ac_delim='%!_!# '
  12816. for ac_last_try in false false false false false :; do
  12817. . ./conf$$subs.sh ||
  12818. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12819. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12820. { (exit 1); exit 1; }; }
  12821. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12822. if test $ac_delim_n = $ac_delim_num; then
  12823. break
  12824. elif $ac_last_try; then
  12825. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12826. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12827. { (exit 1); exit 1; }; }
  12828. else
  12829. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12830. fi
  12831. done
  12832. rm -f conf$$subs.sh
  12833. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12834. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12835. _ACEOF
  12836. sed -n '
  12837. h
  12838. s/^/S["/; s/!.*/"]=/
  12839. p
  12840. g
  12841. s/^[^!]*!//
  12842. :repl
  12843. t repl
  12844. s/'"$ac_delim"'$//
  12845. t delim
  12846. :nl
  12847. h
  12848. s/\(.\{148\}\).*/\1/
  12849. t more1
  12850. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12851. p
  12852. n
  12853. b repl
  12854. :more1
  12855. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12856. p
  12857. g
  12858. s/.\{148\}//
  12859. t nl
  12860. :delim
  12861. h
  12862. s/\(.\{148\}\).*/\1/
  12863. t more2
  12864. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12865. p
  12866. b
  12867. :more2
  12868. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12869. p
  12870. g
  12871. s/.\{148\}//
  12872. t delim
  12873. ' <conf$$subs.awk | sed '
  12874. /^[^""]/{
  12875. N
  12876. s/\n//
  12877. }
  12878. ' >>$CONFIG_STATUS || ac_write_fail=1
  12879. rm -f conf$$subs.awk
  12880. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12881. _ACAWK
  12882. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12883. for (key in S) S_is_set[key] = 1
  12884. FS = ""
  12885. }
  12886. {
  12887. line = $ 0
  12888. nfields = split(line, field, "@")
  12889. substed = 0
  12890. len = length(field[1])
  12891. for (i = 2; i < nfields; i++) {
  12892. key = field[i]
  12893. keylen = length(key)
  12894. if (S_is_set[key]) {
  12895. value = S[key]
  12896. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12897. len += length(value) + length(field[++i])
  12898. substed = 1
  12899. } else
  12900. len += 1 + keylen
  12901. }
  12902. print line
  12903. }
  12904. _ACAWK
  12905. _ACEOF
  12906. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12907. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12908. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12909. else
  12910. cat
  12911. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12912. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  12913. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  12914. { (exit 1); exit 1; }; }
  12915. _ACEOF
  12916. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12917. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12918. # trailing colons and then remove the whole line if VPATH becomes empty
  12919. # (actually we leave an empty line to preserve line numbers).
  12920. if test "x$srcdir" = x.; then
  12921. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12922. s/:*\$(srcdir):*/:/
  12923. s/:*\${srcdir}:*/:/
  12924. s/:*@srcdir@:*/:/
  12925. s/^\([^=]*=[ ]*\):*/\1/
  12926. s/:*$//
  12927. s/^[^=]*=[ ]*$//
  12928. }'
  12929. fi
  12930. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12931. fi # test -n "$CONFIG_FILES"
  12932. # Set up the scripts for CONFIG_HEADERS section.
  12933. # No need to generate them if there are no CONFIG_HEADERS.
  12934. # This happens for instance with `./config.status Makefile'.
  12935. if test -n "$CONFIG_HEADERS"; then
  12936. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12937. BEGIN {
  12938. _ACEOF
  12939. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12940. # here-document in config.status, that substitutes the proper values into
  12941. # config.h.in to produce config.h.
  12942. # Create a delimiter string that does not exist in confdefs.h, to ease
  12943. # handling of long lines.
  12944. ac_delim='%!_!# '
  12945. for ac_last_try in false false :; do
  12946. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12947. if test -z "$ac_t"; then
  12948. break
  12949. elif $ac_last_try; then
  12950. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  12951. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  12952. { (exit 1); exit 1; }; }
  12953. else
  12954. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12955. fi
  12956. done
  12957. # For the awk script, D is an array of macro values keyed by name,
  12958. # likewise P contains macro parameters if any. Preserve backslash
  12959. # newline sequences.
  12960. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12961. sed -n '
  12962. s/.\{148\}/&'"$ac_delim"'/g
  12963. t rset
  12964. :rset
  12965. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12966. t def
  12967. d
  12968. :def
  12969. s/\\$//
  12970. t bsnl
  12971. s/["\\]/\\&/g
  12972. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12973. D["\1"]=" \3"/p
  12974. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12975. d
  12976. :bsnl
  12977. s/["\\]/\\&/g
  12978. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12979. D["\1"]=" \3\\\\\\n"\\/p
  12980. t cont
  12981. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12982. t cont
  12983. d
  12984. :cont
  12985. n
  12986. s/.\{148\}/&'"$ac_delim"'/g
  12987. t clear
  12988. :clear
  12989. s/\\$//
  12990. t bsnlc
  12991. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12992. d
  12993. :bsnlc
  12994. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12995. b cont
  12996. ' <confdefs.h | sed '
  12997. s/'"$ac_delim"'/"\\\
  12998. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12999. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13000. for (key in D) D_is_set[key] = 1
  13001. FS = ""
  13002. }
  13003. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13004. line = \$ 0
  13005. split(line, arg, " ")
  13006. if (arg[1] == "#") {
  13007. defundef = arg[2]
  13008. mac1 = arg[3]
  13009. } else {
  13010. defundef = substr(arg[1], 2)
  13011. mac1 = arg[2]
  13012. }
  13013. split(mac1, mac2, "(") #)
  13014. macro = mac2[1]
  13015. prefix = substr(line, 1, index(line, defundef) - 1)
  13016. if (D_is_set[macro]) {
  13017. # Preserve the white space surrounding the "#".
  13018. print prefix "define", macro P[macro] D[macro]
  13019. next
  13020. } else {
  13021. # Replace #undef with comments. This is necessary, for example,
  13022. # in the case of _POSIX_SOURCE, which is predefined and required
  13023. # on some systems where configure will not decide to define it.
  13024. if (defundef == "undef") {
  13025. print "/*", prefix defundef, macro, "*/"
  13026. next
  13027. }
  13028. }
  13029. }
  13030. { print }
  13031. _ACAWK
  13032. _ACEOF
  13033. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13034. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  13035. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  13036. { (exit 1); exit 1; }; }
  13037. fi # test -n "$CONFIG_HEADERS"
  13038. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  13039. shift
  13040. for ac_tag
  13041. do
  13042. case $ac_tag in
  13043. :[FHLC]) ac_mode=$ac_tag; continue;;
  13044. esac
  13045. case $ac_mode$ac_tag in
  13046. :[FHL]*:*);;
  13047. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  13048. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  13049. { (exit 1); exit 1; }; };;
  13050. :[FH]-) ac_tag=-:-;;
  13051. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13052. esac
  13053. ac_save_IFS=$IFS
  13054. IFS=:
  13055. set x $ac_tag
  13056. IFS=$ac_save_IFS
  13057. shift
  13058. ac_file=$1
  13059. shift
  13060. case $ac_mode in
  13061. :L) ac_source=$1;;
  13062. :[FH])
  13063. ac_file_inputs=
  13064. for ac_f
  13065. do
  13066. case $ac_f in
  13067. -) ac_f="$tmp/stdin";;
  13068. *) # Look for the file first in the build tree, then in the source tree
  13069. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13070. # because $ac_f cannot contain `:'.
  13071. test -f "$ac_f" ||
  13072. case $ac_f in
  13073. [\\/$]*) false;;
  13074. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13075. esac ||
  13076. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13077. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13078. { (exit 1); exit 1; }; };;
  13079. esac
  13080. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13081. ac_file_inputs="$ac_file_inputs '$ac_f'"
  13082. done
  13083. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13084. # use $as_me), people would be surprised to read:
  13085. # /* config.h. Generated by config.status. */
  13086. configure_input='Generated from '`
  13087. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13088. `' by configure.'
  13089. if test x"$ac_file" != x-; then
  13090. configure_input="$ac_file. $configure_input"
  13091. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  13092. $as_echo "$as_me: creating $ac_file" >&6;}
  13093. fi
  13094. # Neutralize special characters interpreted by sed in replacement strings.
  13095. case $configure_input in #(
  13096. *\&* | *\|* | *\\* )
  13097. ac_sed_conf_input=`$as_echo "$configure_input" |
  13098. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13099. *) ac_sed_conf_input=$configure_input;;
  13100. esac
  13101. case $ac_tag in
  13102. *:-:* | *:-) cat >"$tmp/stdin" \
  13103. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13104. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13105. { (exit 1); exit 1; }; } ;;
  13106. esac
  13107. ;;
  13108. esac
  13109. ac_dir=`$as_dirname -- "$ac_file" ||
  13110. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13111. X"$ac_file" : 'X\(//\)[^/]' \| \
  13112. X"$ac_file" : 'X\(//\)$' \| \
  13113. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13114. $as_echo X"$ac_file" |
  13115. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13116. s//\1/
  13117. q
  13118. }
  13119. /^X\(\/\/\)[^/].*/{
  13120. s//\1/
  13121. q
  13122. }
  13123. /^X\(\/\/\)$/{
  13124. s//\1/
  13125. q
  13126. }
  13127. /^X\(\/\).*/{
  13128. s//\1/
  13129. q
  13130. }
  13131. s/.*/./; q'`
  13132. { as_dir="$ac_dir"
  13133. case $as_dir in #(
  13134. -*) as_dir=./$as_dir;;
  13135. esac
  13136. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13137. as_dirs=
  13138. while :; do
  13139. case $as_dir in #(
  13140. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13141. *) as_qdir=$as_dir;;
  13142. esac
  13143. as_dirs="'$as_qdir' $as_dirs"
  13144. as_dir=`$as_dirname -- "$as_dir" ||
  13145. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13146. X"$as_dir" : 'X\(//\)[^/]' \| \
  13147. X"$as_dir" : 'X\(//\)$' \| \
  13148. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13149. $as_echo X"$as_dir" |
  13150. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13151. s//\1/
  13152. q
  13153. }
  13154. /^X\(\/\/\)[^/].*/{
  13155. s//\1/
  13156. q
  13157. }
  13158. /^X\(\/\/\)$/{
  13159. s//\1/
  13160. q
  13161. }
  13162. /^X\(\/\).*/{
  13163. s//\1/
  13164. q
  13165. }
  13166. s/.*/./; q'`
  13167. test -d "$as_dir" && break
  13168. done
  13169. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13170. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13171. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13172. { (exit 1); exit 1; }; }; }
  13173. ac_builddir=.
  13174. case "$ac_dir" in
  13175. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13176. *)
  13177. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13178. # A ".." for each directory in $ac_dir_suffix.
  13179. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13180. case $ac_top_builddir_sub in
  13181. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13182. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13183. esac ;;
  13184. esac
  13185. ac_abs_top_builddir=$ac_pwd
  13186. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13187. # for backward compatibility:
  13188. ac_top_builddir=$ac_top_build_prefix
  13189. case $srcdir in
  13190. .) # We are building in place.
  13191. ac_srcdir=.
  13192. ac_top_srcdir=$ac_top_builddir_sub
  13193. ac_abs_top_srcdir=$ac_pwd ;;
  13194. [\\/]* | ?:[\\/]* ) # Absolute name.
  13195. ac_srcdir=$srcdir$ac_dir_suffix;
  13196. ac_top_srcdir=$srcdir
  13197. ac_abs_top_srcdir=$srcdir ;;
  13198. *) # Relative name.
  13199. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13200. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13201. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13202. esac
  13203. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13204. case $ac_mode in
  13205. :F)
  13206. #
  13207. # CONFIG_FILE
  13208. #
  13209. _ACEOF
  13210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13211. # If the template does not know about datarootdir, expand it.
  13212. # FIXME: This hack should be removed a few years after 2.60.
  13213. ac_datarootdir_hack=; ac_datarootdir_seen=
  13214. ac_sed_dataroot='
  13215. /datarootdir/ {
  13216. p
  13217. q
  13218. }
  13219. /@datadir@/p
  13220. /@docdir@/p
  13221. /@infodir@/p
  13222. /@localedir@/p
  13223. /@mandir@/p
  13224. '
  13225. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13226. *datarootdir*) ac_datarootdir_seen=yes;;
  13227. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13228. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13229. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13230. _ACEOF
  13231. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13232. ac_datarootdir_hack='
  13233. s&@datadir@&$datadir&g
  13234. s&@docdir@&$docdir&g
  13235. s&@infodir@&$infodir&g
  13236. s&@localedir@&$localedir&g
  13237. s&@mandir@&$mandir&g
  13238. s&\\\${datarootdir}&$datarootdir&g' ;;
  13239. esac
  13240. _ACEOF
  13241. # Neutralize VPATH when `$srcdir' = `.'.
  13242. # Shell code in configure.ac might set extrasub.
  13243. # FIXME: do we really want to maintain this feature?
  13244. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13245. ac_sed_extra="$ac_vpsub
  13246. $extrasub
  13247. _ACEOF
  13248. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13249. :t
  13250. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13251. s|@configure_input@|$ac_sed_conf_input|;t t
  13252. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13253. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13254. s&@srcdir@&$ac_srcdir&;t t
  13255. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13256. s&@top_srcdir@&$ac_top_srcdir&;t t
  13257. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13258. s&@builddir@&$ac_builddir&;t t
  13259. s&@abs_builddir@&$ac_abs_builddir&;t t
  13260. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13261. $ac_datarootdir_hack
  13262. "
  13263. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13264. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13265. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13266. { (exit 1); exit 1; }; }
  13267. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13268. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13269. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13270. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13271. which seems to be undefined. Please make sure it is defined." >&5
  13272. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13273. which seems to be undefined. Please make sure it is defined." >&2;}
  13274. rm -f "$tmp/stdin"
  13275. case $ac_file in
  13276. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13277. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13278. esac \
  13279. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13280. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13281. { (exit 1); exit 1; }; }
  13282. ;;
  13283. :H)
  13284. #
  13285. # CONFIG_HEADER
  13286. #
  13287. if test x"$ac_file" != x-; then
  13288. {
  13289. $as_echo "/* $configure_input */" \
  13290. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13291. } >"$tmp/config.h" \
  13292. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13293. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13294. { (exit 1); exit 1; }; }
  13295. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13296. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13297. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13298. else
  13299. rm -f "$ac_file"
  13300. mv "$tmp/config.h" "$ac_file" \
  13301. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  13302. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  13303. { (exit 1); exit 1; }; }
  13304. fi
  13305. else
  13306. $as_echo "/* $configure_input */" \
  13307. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13308. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  13309. $as_echo "$as_me: error: could not create -" >&2;}
  13310. { (exit 1); exit 1; }; }
  13311. fi
  13312. ;;
  13313. esac
  13314. done # for ac_tag
  13315. { (exit 0); exit 0; }
  13316. _ACEOF
  13317. chmod +x $CONFIG_STATUS
  13318. ac_clean_files=$ac_clean_files_save
  13319. test $ac_write_fail = 0 ||
  13320. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  13321. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  13322. { (exit 1); exit 1; }; }
  13323. # configure is writing to config.log, and then calls config.status.
  13324. # config.status does its own redirection, appending to config.log.
  13325. # Unfortunately, on DOS this fails, as config.log is still kept open
  13326. # by configure, so config.status won't be able to write to it; its
  13327. # output is simply discarded. So we exec the FD to /dev/null,
  13328. # effectively closing config.log, so it can be properly (re)opened and
  13329. # appended to by config.status. When coming back to configure, we
  13330. # need to make the FD available again.
  13331. if test "$no_create" != yes; then
  13332. ac_cs_success=:
  13333. ac_config_status_args=
  13334. test "$silent" = yes &&
  13335. ac_config_status_args="$ac_config_status_args --quiet"
  13336. exec 5>/dev/null
  13337. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13338. exec 5>>config.log
  13339. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13340. # would make configure fail if this is the last instruction.
  13341. $ac_cs_success || { (exit 1); exit 1; }
  13342. fi
  13343. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13344. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13345. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13346. fi
  13347. echo ""
  13348. echo ""
  13349. echo "------------ Configuring BDLIB ------------"
  13350. if test -d .git; then
  13351. git submodule init
  13352. git submodule update
  13353. fi
  13354. test -f lib/bdlib/configure && cd lib/bdlib && ./configure