configure 230 KB

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