configure 166 KB

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