configure 158 KB

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