configure 198 KB

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