configure 168 KB

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