configure 168 KB

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