configure 260 KB

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