configure 264 KB

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