configure 238 KB

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