configure 459 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for klish 1.6.0.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  259. $0: gmail dot com about your system, including any error
  260. $0: possibly output before this message. Then install a
  261. $0: modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='klish'
  542. PACKAGE_TARNAME='klish'
  543. PACKAGE_VERSION='1.6.0'
  544. PACKAGE_STRING='klish 1.6.0'
  545. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. LIBOBJS
  586. TINYRL_CFLAGS
  587. TINYRL_LIBS
  588. KONF_CFLAGS
  589. KONF_LIBS
  590. LUB_CFLAGS
  591. LUB_LIBS
  592. XML_CFLAGS
  593. XML_LDFLAGS
  594. XML_LIBS
  595. DEBUG_FALSE
  596. DEBUG_TRUE
  597. am__fastdepCC_FALSE
  598. am__fastdepCC_TRUE
  599. CCDEPMODE
  600. am__nodep
  601. AMDEPBACKSLASH
  602. AMDEP_FALSE
  603. AMDEP_TRUE
  604. am__quote
  605. am__include
  606. DEPDIR
  607. am__untar
  608. am__tar
  609. AMTAR
  610. am__leading_dot
  611. SET_MAKE
  612. mkdir_p
  613. MKDIR_P
  614. INSTALL_STRIP_PROGRAM
  615. install_sh
  616. MAKEINFO
  617. AUTOHEADER
  618. AUTOMAKE
  619. AUTOCONF
  620. ACLOCAL
  621. VERSION
  622. PACKAGE
  623. CYGPATH_W
  624. am__isrc
  625. INSTALL_DATA
  626. INSTALL_SCRIPT
  627. INSTALL_PROGRAM
  628. OTOOL64
  629. OTOOL
  630. LIPO
  631. NMEDIT
  632. DSYMUTIL
  633. MANIFEST_TOOL
  634. AWK
  635. RANLIB
  636. STRIP
  637. ac_ct_AR
  638. AR
  639. LN_S
  640. NM
  641. ac_ct_DUMPBIN
  642. DUMPBIN
  643. LD
  644. FGREP
  645. SED
  646. LIBTOOL
  647. OBJDUMP
  648. DLLTOOL
  649. AS
  650. host_os
  651. host_vendor
  652. host_cpu
  653. host
  654. build_os
  655. build_vendor
  656. build_cpu
  657. build
  658. EGREP
  659. GREP
  660. CPP
  661. OBJEXT
  662. EXEEXT
  663. ac_ct_CC
  664. CPPFLAGS
  665. LDFLAGS
  666. CFLAGS
  667. CC
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_shared
  710. enable_static
  711. with_pic
  712. enable_fast_install
  713. with_gnu_ld
  714. with_sysroot
  715. enable_libtool_lock
  716. enable_dependency_tracking
  717. enable_debug
  718. with_libroxml
  719. with_libexpat
  720. with_libxml2
  721. '
  722. ac_precious_vars='build_alias
  723. host_alias
  724. target_alias
  725. CC
  726. CFLAGS
  727. LDFLAGS
  728. LIBS
  729. CPPFLAGS
  730. CPP'
  731. # Initialize some variables set by options.
  732. ac_init_help=
  733. ac_init_version=false
  734. ac_unrecognized_opts=
  735. ac_unrecognized_sep=
  736. # The variables have the same names as the options, with
  737. # dashes changed to underlines.
  738. cache_file=/dev/null
  739. exec_prefix=NONE
  740. no_create=
  741. no_recursion=
  742. prefix=NONE
  743. program_prefix=NONE
  744. program_suffix=NONE
  745. program_transform_name=s,x,x,
  746. silent=
  747. site=
  748. srcdir=
  749. verbose=
  750. x_includes=NONE
  751. x_libraries=NONE
  752. # Installation directory options.
  753. # These are left unexpanded so users can "make install exec_prefix=/foo"
  754. # and all the variables that are supposed to be based on exec_prefix
  755. # by default will actually change.
  756. # Use braces instead of parens because sh, perl, etc. also accept them.
  757. # (The list follows the same order as the GNU Coding Standards.)
  758. bindir='${exec_prefix}/bin'
  759. sbindir='${exec_prefix}/sbin'
  760. libexecdir='${exec_prefix}/libexec'
  761. datarootdir='${prefix}/share'
  762. datadir='${datarootdir}'
  763. sysconfdir='${prefix}/etc'
  764. sharedstatedir='${prefix}/com'
  765. localstatedir='${prefix}/var'
  766. includedir='${prefix}/include'
  767. oldincludedir='/usr/include'
  768. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  769. infodir='${datarootdir}/info'
  770. htmldir='${docdir}'
  771. dvidir='${docdir}'
  772. pdfdir='${docdir}'
  773. psdir='${docdir}'
  774. libdir='${exec_prefix}/lib'
  775. localedir='${datarootdir}/locale'
  776. mandir='${datarootdir}/man'
  777. ac_prev=
  778. ac_dashdash=
  779. for ac_option
  780. do
  781. # If the previous option needs an argument, assign it.
  782. if test -n "$ac_prev"; then
  783. eval $ac_prev=\$ac_option
  784. ac_prev=
  785. continue
  786. fi
  787. case $ac_option in
  788. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  789. *=) ac_optarg= ;;
  790. *) ac_optarg=yes ;;
  791. esac
  792. # Accept the important Cygnus configure options, so we can diagnose typos.
  793. case $ac_dashdash$ac_option in
  794. --)
  795. ac_dashdash=yes ;;
  796. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  797. ac_prev=bindir ;;
  798. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  799. bindir=$ac_optarg ;;
  800. -build | --build | --buil | --bui | --bu)
  801. ac_prev=build_alias ;;
  802. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  803. build_alias=$ac_optarg ;;
  804. -cache-file | --cache-file | --cache-fil | --cache-fi \
  805. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  806. ac_prev=cache_file ;;
  807. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  808. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  809. cache_file=$ac_optarg ;;
  810. --config-cache | -C)
  811. cache_file=config.cache ;;
  812. -datadir | --datadir | --datadi | --datad)
  813. ac_prev=datadir ;;
  814. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  815. datadir=$ac_optarg ;;
  816. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  817. | --dataroo | --dataro | --datar)
  818. ac_prev=datarootdir ;;
  819. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  820. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  821. datarootdir=$ac_optarg ;;
  822. -disable-* | --disable-*)
  823. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  824. # Reject names that are not valid shell variable names.
  825. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  826. as_fn_error $? "invalid feature name: $ac_useropt"
  827. ac_useropt_orig=$ac_useropt
  828. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  829. case $ac_user_opts in
  830. *"
  831. "enable_$ac_useropt"
  832. "*) ;;
  833. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  834. ac_unrecognized_sep=', ';;
  835. esac
  836. eval enable_$ac_useropt=no ;;
  837. -docdir | --docdir | --docdi | --doc | --do)
  838. ac_prev=docdir ;;
  839. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  840. docdir=$ac_optarg ;;
  841. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  842. ac_prev=dvidir ;;
  843. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  844. dvidir=$ac_optarg ;;
  845. -enable-* | --enable-*)
  846. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  847. # Reject names that are not valid shell variable names.
  848. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  849. as_fn_error $? "invalid feature name: $ac_useropt"
  850. ac_useropt_orig=$ac_useropt
  851. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  852. case $ac_user_opts in
  853. *"
  854. "enable_$ac_useropt"
  855. "*) ;;
  856. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  857. ac_unrecognized_sep=', ';;
  858. esac
  859. eval enable_$ac_useropt=\$ac_optarg ;;
  860. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  861. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  862. | --exec | --exe | --ex)
  863. ac_prev=exec_prefix ;;
  864. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  865. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  866. | --exec=* | --exe=* | --ex=*)
  867. exec_prefix=$ac_optarg ;;
  868. -gas | --gas | --ga | --g)
  869. # Obsolete; use --with-gas.
  870. with_gas=yes ;;
  871. -help | --help | --hel | --he | -h)
  872. ac_init_help=long ;;
  873. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  874. ac_init_help=recursive ;;
  875. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  876. ac_init_help=short ;;
  877. -host | --host | --hos | --ho)
  878. ac_prev=host_alias ;;
  879. -host=* | --host=* | --hos=* | --ho=*)
  880. host_alias=$ac_optarg ;;
  881. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  882. ac_prev=htmldir ;;
  883. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  884. | --ht=*)
  885. htmldir=$ac_optarg ;;
  886. -includedir | --includedir | --includedi | --included | --include \
  887. | --includ | --inclu | --incl | --inc)
  888. ac_prev=includedir ;;
  889. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  890. | --includ=* | --inclu=* | --incl=* | --inc=*)
  891. includedir=$ac_optarg ;;
  892. -infodir | --infodir | --infodi | --infod | --info | --inf)
  893. ac_prev=infodir ;;
  894. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  895. infodir=$ac_optarg ;;
  896. -libdir | --libdir | --libdi | --libd)
  897. ac_prev=libdir ;;
  898. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  899. libdir=$ac_optarg ;;
  900. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  901. | --libexe | --libex | --libe)
  902. ac_prev=libexecdir ;;
  903. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  904. | --libexe=* | --libex=* | --libe=*)
  905. libexecdir=$ac_optarg ;;
  906. -localedir | --localedir | --localedi | --localed | --locale)
  907. ac_prev=localedir ;;
  908. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  909. localedir=$ac_optarg ;;
  910. -localstatedir | --localstatedir | --localstatedi | --localstated \
  911. | --localstate | --localstat | --localsta | --localst | --locals)
  912. ac_prev=localstatedir ;;
  913. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  914. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  915. localstatedir=$ac_optarg ;;
  916. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  917. ac_prev=mandir ;;
  918. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  919. mandir=$ac_optarg ;;
  920. -nfp | --nfp | --nf)
  921. # Obsolete; use --without-fp.
  922. with_fp=no ;;
  923. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  924. | --no-cr | --no-c | -n)
  925. no_create=yes ;;
  926. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  927. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  928. no_recursion=yes ;;
  929. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  930. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  931. | --oldin | --oldi | --old | --ol | --o)
  932. ac_prev=oldincludedir ;;
  933. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  934. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  935. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  936. oldincludedir=$ac_optarg ;;
  937. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  938. ac_prev=prefix ;;
  939. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  940. prefix=$ac_optarg ;;
  941. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  942. | --program-pre | --program-pr | --program-p)
  943. ac_prev=program_prefix ;;
  944. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  945. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  946. program_prefix=$ac_optarg ;;
  947. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  948. | --program-suf | --program-su | --program-s)
  949. ac_prev=program_suffix ;;
  950. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  951. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  952. program_suffix=$ac_optarg ;;
  953. -program-transform-name | --program-transform-name \
  954. | --program-transform-nam | --program-transform-na \
  955. | --program-transform-n | --program-transform- \
  956. | --program-transform | --program-transfor \
  957. | --program-transfo | --program-transf \
  958. | --program-trans | --program-tran \
  959. | --progr-tra | --program-tr | --program-t)
  960. ac_prev=program_transform_name ;;
  961. -program-transform-name=* | --program-transform-name=* \
  962. | --program-transform-nam=* | --program-transform-na=* \
  963. | --program-transform-n=* | --program-transform-=* \
  964. | --program-transform=* | --program-transfor=* \
  965. | --program-transfo=* | --program-transf=* \
  966. | --program-trans=* | --program-tran=* \
  967. | --progr-tra=* | --program-tr=* | --program-t=*)
  968. program_transform_name=$ac_optarg ;;
  969. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  970. ac_prev=pdfdir ;;
  971. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  972. pdfdir=$ac_optarg ;;
  973. -psdir | --psdir | --psdi | --psd | --ps)
  974. ac_prev=psdir ;;
  975. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  976. psdir=$ac_optarg ;;
  977. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  978. | -silent | --silent | --silen | --sile | --sil)
  979. silent=yes ;;
  980. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  981. ac_prev=sbindir ;;
  982. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  983. | --sbi=* | --sb=*)
  984. sbindir=$ac_optarg ;;
  985. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  986. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  987. | --sharedst | --shareds | --shared | --share | --shar \
  988. | --sha | --sh)
  989. ac_prev=sharedstatedir ;;
  990. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  991. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  992. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  993. | --sha=* | --sh=*)
  994. sharedstatedir=$ac_optarg ;;
  995. -site | --site | --sit)
  996. ac_prev=site ;;
  997. -site=* | --site=* | --sit=*)
  998. site=$ac_optarg ;;
  999. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1000. ac_prev=srcdir ;;
  1001. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1002. srcdir=$ac_optarg ;;
  1003. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1004. | --syscon | --sysco | --sysc | --sys | --sy)
  1005. ac_prev=sysconfdir ;;
  1006. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1007. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1008. sysconfdir=$ac_optarg ;;
  1009. -target | --target | --targe | --targ | --tar | --ta | --t)
  1010. ac_prev=target_alias ;;
  1011. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1012. target_alias=$ac_optarg ;;
  1013. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1014. verbose=yes ;;
  1015. -version | --version | --versio | --versi | --vers | -V)
  1016. ac_init_version=: ;;
  1017. -with-* | --with-*)
  1018. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1021. as_fn_error $? "invalid package name: $ac_useropt"
  1022. ac_useropt_orig=$ac_useropt
  1023. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1024. case $ac_user_opts in
  1025. *"
  1026. "with_$ac_useropt"
  1027. "*) ;;
  1028. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1029. ac_unrecognized_sep=', ';;
  1030. esac
  1031. eval with_$ac_useropt=\$ac_optarg ;;
  1032. -without-* | --without-*)
  1033. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1036. as_fn_error $? "invalid package name: $ac_useropt"
  1037. ac_useropt_orig=$ac_useropt
  1038. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1039. case $ac_user_opts in
  1040. *"
  1041. "with_$ac_useropt"
  1042. "*) ;;
  1043. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1044. ac_unrecognized_sep=', ';;
  1045. esac
  1046. eval with_$ac_useropt=no ;;
  1047. --x)
  1048. # Obsolete; use --with-x.
  1049. with_x=yes ;;
  1050. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1051. | --x-incl | --x-inc | --x-in | --x-i)
  1052. ac_prev=x_includes ;;
  1053. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1054. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1055. x_includes=$ac_optarg ;;
  1056. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1057. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1058. ac_prev=x_libraries ;;
  1059. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1060. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1061. x_libraries=$ac_optarg ;;
  1062. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1063. Try \`$0 --help' for more information"
  1064. ;;
  1065. *=*)
  1066. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1067. # Reject names that are not valid shell variable names.
  1068. case $ac_envvar in #(
  1069. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1070. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1071. esac
  1072. eval $ac_envvar=\$ac_optarg
  1073. export $ac_envvar ;;
  1074. *)
  1075. # FIXME: should be removed in autoconf 3.0.
  1076. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1077. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1078. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1079. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1080. ;;
  1081. esac
  1082. done
  1083. if test -n "$ac_prev"; then
  1084. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1085. as_fn_error $? "missing argument to $ac_option"
  1086. fi
  1087. if test -n "$ac_unrecognized_opts"; then
  1088. case $enable_option_checking in
  1089. no) ;;
  1090. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1091. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1092. esac
  1093. fi
  1094. # Check all directory arguments for consistency.
  1095. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1096. datadir sysconfdir sharedstatedir localstatedir includedir \
  1097. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1098. libdir localedir mandir
  1099. do
  1100. eval ac_val=\$$ac_var
  1101. # Remove trailing slashes.
  1102. case $ac_val in
  1103. */ )
  1104. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1105. eval $ac_var=\$ac_val;;
  1106. esac
  1107. # Be sure to have absolute directory names.
  1108. case $ac_val in
  1109. [\\/$]* | ?:[\\/]* ) continue;;
  1110. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1111. esac
  1112. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1113. done
  1114. # There might be people who depend on the old broken behavior: `$host'
  1115. # used to hold the argument of --host etc.
  1116. # FIXME: To remove some day.
  1117. build=$build_alias
  1118. host=$host_alias
  1119. target=$target_alias
  1120. # FIXME: To remove some day.
  1121. if test "x$host_alias" != x; then
  1122. if test "x$build_alias" = x; then
  1123. cross_compiling=maybe
  1124. elif test "x$build_alias" != "x$host_alias"; then
  1125. cross_compiling=yes
  1126. fi
  1127. fi
  1128. ac_tool_prefix=
  1129. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1130. test "$silent" = yes && exec 6>/dev/null
  1131. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1132. ac_ls_di=`ls -di .` &&
  1133. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1134. as_fn_error $? "working directory cannot be determined"
  1135. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1136. as_fn_error $? "pwd does not report name of working directory"
  1137. # Find the source files, if location was not specified.
  1138. if test -z "$srcdir"; then
  1139. ac_srcdir_defaulted=yes
  1140. # Try the directory containing this script, then the parent directory.
  1141. ac_confdir=`$as_dirname -- "$as_myself" ||
  1142. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1143. X"$as_myself" : 'X\(//\)[^/]' \| \
  1144. X"$as_myself" : 'X\(//\)$' \| \
  1145. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1146. $as_echo X"$as_myself" |
  1147. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\/\)[^/].*/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\).*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. s/.*/./; q'`
  1164. srcdir=$ac_confdir
  1165. if test ! -r "$srcdir/$ac_unique_file"; then
  1166. srcdir=..
  1167. fi
  1168. else
  1169. ac_srcdir_defaulted=no
  1170. fi
  1171. if test ! -r "$srcdir/$ac_unique_file"; then
  1172. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1173. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1174. fi
  1175. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1176. ac_abs_confdir=`(
  1177. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1178. pwd)`
  1179. # When building in place, set srcdir=.
  1180. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1181. srcdir=.
  1182. fi
  1183. # Remove unnecessary trailing slashes from srcdir.
  1184. # Double slashes in file names in object file debugging info
  1185. # mess up M-x gdb in Emacs.
  1186. case $srcdir in
  1187. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1188. esac
  1189. for ac_var in $ac_precious_vars; do
  1190. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_env_${ac_var}_value=\$${ac_var}
  1192. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1194. done
  1195. #
  1196. # Report the --help message.
  1197. #
  1198. if test "$ac_init_help" = "long"; then
  1199. # Omit some internal or obsolete options to make the list less imposing.
  1200. # This message is too long to be a string in the A/UX 3.1 sh.
  1201. cat <<_ACEOF
  1202. \`configure' configures klish 1.6.0 to adapt to many kinds of systems.
  1203. Usage: $0 [OPTION]... [VAR=VALUE]...
  1204. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1205. VAR=VALUE. See below for descriptions of some of the useful variables.
  1206. Defaults for the options are specified in brackets.
  1207. Configuration:
  1208. -h, --help display this help and exit
  1209. --help=short display options specific to this package
  1210. --help=recursive display the short help of all the included packages
  1211. -V, --version display version information and exit
  1212. -q, --quiet, --silent do not print \`checking ...' messages
  1213. --cache-file=FILE cache test results in FILE [disabled]
  1214. -C, --config-cache alias for \`--cache-file=config.cache'
  1215. -n, --no-create do not create output files
  1216. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1217. Installation directories:
  1218. --prefix=PREFIX install architecture-independent files in PREFIX
  1219. [$ac_default_prefix]
  1220. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1221. [PREFIX]
  1222. By default, \`make install' will install all the files in
  1223. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1224. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1225. for instance \`--prefix=\$HOME'.
  1226. For better control, use the options below.
  1227. Fine tuning of the installation directories:
  1228. --bindir=DIR user executables [EPREFIX/bin]
  1229. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1230. --libexecdir=DIR program executables [EPREFIX/libexec]
  1231. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1232. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1233. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1234. --libdir=DIR object code libraries [EPREFIX/lib]
  1235. --includedir=DIR C header files [PREFIX/include]
  1236. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1237. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1238. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1239. --infodir=DIR info documentation [DATAROOTDIR/info]
  1240. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1241. --mandir=DIR man documentation [DATAROOTDIR/man]
  1242. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1243. --htmldir=DIR html documentation [DOCDIR]
  1244. --dvidir=DIR dvi documentation [DOCDIR]
  1245. --pdfdir=DIR pdf documentation [DOCDIR]
  1246. --psdir=DIR ps documentation [DOCDIR]
  1247. _ACEOF
  1248. cat <<\_ACEOF
  1249. Program names:
  1250. --program-prefix=PREFIX prepend PREFIX to installed program names
  1251. --program-suffix=SUFFIX append SUFFIX to installed program names
  1252. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1253. System types:
  1254. --build=BUILD configure for building on BUILD [guessed]
  1255. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1256. _ACEOF
  1257. fi
  1258. if test -n "$ac_init_help"; then
  1259. case $ac_init_help in
  1260. short | recursive ) echo "Configuration of klish 1.6.0:";;
  1261. esac
  1262. cat <<\_ACEOF
  1263. Optional Features:
  1264. --disable-option-checking ignore unrecognized --enable/--with options
  1265. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1266. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1267. --enable-shared[=PKGS] build shared libraries [default=yes]
  1268. --enable-static[=PKGS] build static libraries [default=yes]
  1269. --enable-fast-install[=PKGS]
  1270. optimize for fast installation [default=yes]
  1271. --disable-libtool-lock avoid locking (might break parallel builds)
  1272. --enable-dependency-tracking
  1273. do not reject slow dependency extractors
  1274. --disable-dependency-tracking
  1275. speeds up one-time build
  1276. --enable-debug Turn on debugging including asserts [default=no]
  1277. Optional Packages:
  1278. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1279. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1280. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1281. both]
  1282. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1283. --with-sysroot=DIR Search for dependent libraries within DIR
  1284. (or the compiler's sysroot if not specified).
  1285. --with-libroxml=DIR Use roxml as the XML parser implementation
  1286. [default=no]
  1287. --with-libexpat=DIR Use expat as the XML parser implementation
  1288. [default=no]
  1289. --with-libxml2=DIR Use libxml2 as the XML parser implementation
  1290. [default=no]
  1291. Some influential environment variables:
  1292. CC C compiler command
  1293. CFLAGS C compiler flags
  1294. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1295. nonstandard directory <lib dir>
  1296. LIBS libraries to pass to the linker, e.g. -l<library>
  1297. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1298. you have headers in a nonstandard directory <include dir>
  1299. CPP C preprocessor
  1300. Use these variables to override the choices made by `configure' or to help
  1301. it to find libraries and programs with nonstandard names/locations.
  1302. Report bugs to <serj.kalichev at gmail dot com>.
  1303. _ACEOF
  1304. ac_status=$?
  1305. fi
  1306. if test "$ac_init_help" = "recursive"; then
  1307. # If there are subdirs, report their specific --help.
  1308. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1309. test -d "$ac_dir" ||
  1310. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1311. continue
  1312. ac_builddir=.
  1313. case "$ac_dir" in
  1314. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1315. *)
  1316. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1317. # A ".." for each directory in $ac_dir_suffix.
  1318. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1319. case $ac_top_builddir_sub in
  1320. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1321. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1322. esac ;;
  1323. esac
  1324. ac_abs_top_builddir=$ac_pwd
  1325. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1326. # for backward compatibility:
  1327. ac_top_builddir=$ac_top_build_prefix
  1328. case $srcdir in
  1329. .) # We are building in place.
  1330. ac_srcdir=.
  1331. ac_top_srcdir=$ac_top_builddir_sub
  1332. ac_abs_top_srcdir=$ac_pwd ;;
  1333. [\\/]* | ?:[\\/]* ) # Absolute name.
  1334. ac_srcdir=$srcdir$ac_dir_suffix;
  1335. ac_top_srcdir=$srcdir
  1336. ac_abs_top_srcdir=$srcdir ;;
  1337. *) # Relative name.
  1338. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1339. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1340. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1341. esac
  1342. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1343. cd "$ac_dir" || { ac_status=$?; continue; }
  1344. # Check for guested configure.
  1345. if test -f "$ac_srcdir/configure.gnu"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1348. elif test -f "$ac_srcdir/configure"; then
  1349. echo &&
  1350. $SHELL "$ac_srcdir/configure" --help=recursive
  1351. else
  1352. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1353. fi || ac_status=$?
  1354. cd "$ac_pwd" || { ac_status=$?; break; }
  1355. done
  1356. fi
  1357. test -n "$ac_init_help" && exit $ac_status
  1358. if $ac_init_version; then
  1359. cat <<\_ACEOF
  1360. klish configure 1.6.0
  1361. generated by GNU Autoconf 2.69
  1362. Copyright (C) 2012 Free Software Foundation, Inc.
  1363. This configure script is free software; the Free Software Foundation
  1364. gives unlimited permission to copy, distribute and modify it.
  1365. _ACEOF
  1366. exit
  1367. fi
  1368. ## ------------------------ ##
  1369. ## Autoconf initialization. ##
  1370. ## ------------------------ ##
  1371. # ac_fn_c_try_compile LINENO
  1372. # --------------------------
  1373. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1374. ac_fn_c_try_compile ()
  1375. {
  1376. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1377. rm -f conftest.$ac_objext
  1378. if { { ac_try="$ac_compile"
  1379. case "(($ac_try" in
  1380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1381. *) ac_try_echo=$ac_try;;
  1382. esac
  1383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1384. $as_echo "$ac_try_echo"; } >&5
  1385. (eval "$ac_compile") 2>conftest.err
  1386. ac_status=$?
  1387. if test -s conftest.err; then
  1388. grep -v '^ *+' conftest.err >conftest.er1
  1389. cat conftest.er1 >&5
  1390. mv -f conftest.er1 conftest.err
  1391. fi
  1392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1393. test $ac_status = 0; } && {
  1394. test -z "$ac_c_werror_flag" ||
  1395. test ! -s conftest.err
  1396. } && test -s conftest.$ac_objext; then :
  1397. ac_retval=0
  1398. else
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=1
  1402. fi
  1403. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1404. as_fn_set_status $ac_retval
  1405. } # ac_fn_c_try_compile
  1406. # ac_fn_c_try_cpp LINENO
  1407. # ----------------------
  1408. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1409. ac_fn_c_try_cpp ()
  1410. {
  1411. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1412. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1413. case "(($ac_try" in
  1414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1415. *) ac_try_echo=$ac_try;;
  1416. esac
  1417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1418. $as_echo "$ac_try_echo"; } >&5
  1419. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1420. ac_status=$?
  1421. if test -s conftest.err; then
  1422. grep -v '^ *+' conftest.err >conftest.er1
  1423. cat conftest.er1 >&5
  1424. mv -f conftest.er1 conftest.err
  1425. fi
  1426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1427. test $ac_status = 0; } > conftest.i && {
  1428. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1429. test ! -s conftest.err
  1430. }; then :
  1431. ac_retval=0
  1432. else
  1433. $as_echo "$as_me: failed program was:" >&5
  1434. sed 's/^/| /' conftest.$ac_ext >&5
  1435. ac_retval=1
  1436. fi
  1437. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1438. as_fn_set_status $ac_retval
  1439. } # ac_fn_c_try_cpp
  1440. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1441. # -------------------------------------------------------
  1442. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1443. # the include files in INCLUDES and setting the cache variable VAR
  1444. # accordingly.
  1445. ac_fn_c_check_header_mongrel ()
  1446. {
  1447. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1448. if eval \${$3+:} false; then :
  1449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1450. $as_echo_n "checking for $2... " >&6; }
  1451. if eval \${$3+:} false; then :
  1452. $as_echo_n "(cached) " >&6
  1453. fi
  1454. eval ac_res=\$$3
  1455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1456. $as_echo "$ac_res" >&6; }
  1457. else
  1458. # Is the header compilable?
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1460. $as_echo_n "checking $2 usability... " >&6; }
  1461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1462. /* end confdefs.h. */
  1463. $4
  1464. #include <$2>
  1465. _ACEOF
  1466. if ac_fn_c_try_compile "$LINENO"; then :
  1467. ac_header_compiler=yes
  1468. else
  1469. ac_header_compiler=no
  1470. fi
  1471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1473. $as_echo "$ac_header_compiler" >&6; }
  1474. # Is the header present?
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1476. $as_echo_n "checking $2 presence... " >&6; }
  1477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1478. /* end confdefs.h. */
  1479. #include <$2>
  1480. _ACEOF
  1481. if ac_fn_c_try_cpp "$LINENO"; then :
  1482. ac_header_preproc=yes
  1483. else
  1484. ac_header_preproc=no
  1485. fi
  1486. rm -f conftest.err conftest.i conftest.$ac_ext
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1488. $as_echo "$ac_header_preproc" >&6; }
  1489. # So? What about this header?
  1490. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1491. yes:no: )
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1493. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1495. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1496. ;;
  1497. no:yes:* )
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1499. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1501. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1503. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1505. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1507. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1508. ( $as_echo "## --------------------------------------------- ##
  1509. ## Report this to serj.kalichev at gmail dot com ##
  1510. ## --------------------------------------------- ##"
  1511. ) | sed "s/^/$as_me: WARNING: /" >&2
  1512. ;;
  1513. esac
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1515. $as_echo_n "checking for $2... " >&6; }
  1516. if eval \${$3+:} false; then :
  1517. $as_echo_n "(cached) " >&6
  1518. else
  1519. eval "$3=\$ac_header_compiler"
  1520. fi
  1521. eval ac_res=\$$3
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1523. $as_echo "$ac_res" >&6; }
  1524. fi
  1525. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1526. } # ac_fn_c_check_header_mongrel
  1527. # ac_fn_c_try_run LINENO
  1528. # ----------------------
  1529. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1530. # that executables *can* be run.
  1531. ac_fn_c_try_run ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. if { { ac_try="$ac_link"
  1535. case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_link") 2>&5
  1542. ac_status=$?
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1545. { { case "(($ac_try" in
  1546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1547. *) ac_try_echo=$ac_try;;
  1548. esac
  1549. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1550. $as_echo "$ac_try_echo"; } >&5
  1551. (eval "$ac_try") 2>&5
  1552. ac_status=$?
  1553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1554. test $ac_status = 0; }; }; then :
  1555. ac_retval=0
  1556. else
  1557. $as_echo "$as_me: program exited with status $ac_status" >&5
  1558. $as_echo "$as_me: failed program was:" >&5
  1559. sed 's/^/| /' conftest.$ac_ext >&5
  1560. ac_retval=$ac_status
  1561. fi
  1562. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1563. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1564. as_fn_set_status $ac_retval
  1565. } # ac_fn_c_try_run
  1566. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1567. # -------------------------------------------------------
  1568. # Tests whether HEADER exists and can be compiled using the include files in
  1569. # INCLUDES, setting the cache variable VAR accordingly.
  1570. ac_fn_c_check_header_compile ()
  1571. {
  1572. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1574. $as_echo_n "checking for $2... " >&6; }
  1575. if eval \${$3+:} false; then :
  1576. $as_echo_n "(cached) " >&6
  1577. else
  1578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1579. /* end confdefs.h. */
  1580. $4
  1581. #include <$2>
  1582. _ACEOF
  1583. if ac_fn_c_try_compile "$LINENO"; then :
  1584. eval "$3=yes"
  1585. else
  1586. eval "$3=no"
  1587. fi
  1588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1589. fi
  1590. eval ac_res=\$$3
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1592. $as_echo "$ac_res" >&6; }
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. } # ac_fn_c_check_header_compile
  1595. # ac_fn_c_try_link LINENO
  1596. # -----------------------
  1597. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1598. ac_fn_c_try_link ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. rm -f conftest.$ac_objext conftest$ac_exeext
  1602. if { { ac_try="$ac_link"
  1603. case "(($ac_try" in
  1604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1605. *) ac_try_echo=$ac_try;;
  1606. esac
  1607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1608. $as_echo "$ac_try_echo"; } >&5
  1609. (eval "$ac_link") 2>conftest.err
  1610. ac_status=$?
  1611. if test -s conftest.err; then
  1612. grep -v '^ *+' conftest.err >conftest.er1
  1613. cat conftest.er1 >&5
  1614. mv -f conftest.er1 conftest.err
  1615. fi
  1616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1617. test $ac_status = 0; } && {
  1618. test -z "$ac_c_werror_flag" ||
  1619. test ! -s conftest.err
  1620. } && test -s conftest$ac_exeext && {
  1621. test "$cross_compiling" = yes ||
  1622. test -x conftest$ac_exeext
  1623. }; then :
  1624. ac_retval=0
  1625. else
  1626. $as_echo "$as_me: failed program was:" >&5
  1627. sed 's/^/| /' conftest.$ac_ext >&5
  1628. ac_retval=1
  1629. fi
  1630. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1631. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1632. # interfere with the next link command; also delete a directory that is
  1633. # left behind by Apple's compiler. We do this before executing the actions.
  1634. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1635. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1636. as_fn_set_status $ac_retval
  1637. } # ac_fn_c_try_link
  1638. # ac_fn_c_check_func LINENO FUNC VAR
  1639. # ----------------------------------
  1640. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1641. ac_fn_c_check_func ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1645. $as_echo_n "checking for $2... " >&6; }
  1646. if eval \${$3+:} false; then :
  1647. $as_echo_n "(cached) " >&6
  1648. else
  1649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1650. /* end confdefs.h. */
  1651. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1652. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1653. #define $2 innocuous_$2
  1654. /* System header to define __stub macros and hopefully few prototypes,
  1655. which can conflict with char $2 (); below.
  1656. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1657. <limits.h> exists even on freestanding compilers. */
  1658. #ifdef __STDC__
  1659. # include <limits.h>
  1660. #else
  1661. # include <assert.h>
  1662. #endif
  1663. #undef $2
  1664. /* Override any GCC internal prototype to avoid an error.
  1665. Use char because int might match the return type of a GCC
  1666. builtin and then its argument prototype would still apply. */
  1667. #ifdef __cplusplus
  1668. extern "C"
  1669. #endif
  1670. char $2 ();
  1671. /* The GNU C library defines this for functions which it implements
  1672. to always fail with ENOSYS. Some functions are actually named
  1673. something starting with __ and the normal name is an alias. */
  1674. #if defined __stub_$2 || defined __stub___$2
  1675. choke me
  1676. #endif
  1677. int
  1678. main ()
  1679. {
  1680. return $2 ();
  1681. ;
  1682. return 0;
  1683. }
  1684. _ACEOF
  1685. if ac_fn_c_try_link "$LINENO"; then :
  1686. eval "$3=yes"
  1687. else
  1688. eval "$3=no"
  1689. fi
  1690. rm -f core conftest.err conftest.$ac_objext \
  1691. conftest$ac_exeext conftest.$ac_ext
  1692. fi
  1693. eval ac_res=\$$3
  1694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1695. $as_echo "$ac_res" >&6; }
  1696. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1697. } # ac_fn_c_check_func
  1698. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1699. # --------------------------------------------
  1700. # Tries to find the compile-time value of EXPR in a program that includes
  1701. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1702. # computed
  1703. ac_fn_c_compute_int ()
  1704. {
  1705. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706. if test "$cross_compiling" = yes; then
  1707. # Depending upon the size, compute the lo and hi bounds.
  1708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1709. /* end confdefs.h. */
  1710. $4
  1711. int
  1712. main ()
  1713. {
  1714. static int test_array [1 - 2 * !(($2) >= 0)];
  1715. test_array [0] = 0;
  1716. return test_array [0];
  1717. ;
  1718. return 0;
  1719. }
  1720. _ACEOF
  1721. if ac_fn_c_try_compile "$LINENO"; then :
  1722. ac_lo=0 ac_mid=0
  1723. while :; do
  1724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1725. /* end confdefs.h. */
  1726. $4
  1727. int
  1728. main ()
  1729. {
  1730. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1731. test_array [0] = 0;
  1732. return test_array [0];
  1733. ;
  1734. return 0;
  1735. }
  1736. _ACEOF
  1737. if ac_fn_c_try_compile "$LINENO"; then :
  1738. ac_hi=$ac_mid; break
  1739. else
  1740. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1741. if test $ac_lo -le $ac_mid; then
  1742. ac_lo= ac_hi=
  1743. break
  1744. fi
  1745. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1746. fi
  1747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1748. done
  1749. else
  1750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1751. /* end confdefs.h. */
  1752. $4
  1753. int
  1754. main ()
  1755. {
  1756. static int test_array [1 - 2 * !(($2) < 0)];
  1757. test_array [0] = 0;
  1758. return test_array [0];
  1759. ;
  1760. return 0;
  1761. }
  1762. _ACEOF
  1763. if ac_fn_c_try_compile "$LINENO"; then :
  1764. ac_hi=-1 ac_mid=-1
  1765. while :; do
  1766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1767. /* end confdefs.h. */
  1768. $4
  1769. int
  1770. main ()
  1771. {
  1772. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1773. test_array [0] = 0;
  1774. return test_array [0];
  1775. ;
  1776. return 0;
  1777. }
  1778. _ACEOF
  1779. if ac_fn_c_try_compile "$LINENO"; then :
  1780. ac_lo=$ac_mid; break
  1781. else
  1782. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1783. if test $ac_mid -le $ac_hi; then
  1784. ac_lo= ac_hi=
  1785. break
  1786. fi
  1787. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1788. fi
  1789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1790. done
  1791. else
  1792. ac_lo= ac_hi=
  1793. fi
  1794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1795. fi
  1796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1797. # Binary search between lo and hi bounds.
  1798. while test "x$ac_lo" != "x$ac_hi"; do
  1799. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $4
  1803. int
  1804. main ()
  1805. {
  1806. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1807. test_array [0] = 0;
  1808. return test_array [0];
  1809. ;
  1810. return 0;
  1811. }
  1812. _ACEOF
  1813. if ac_fn_c_try_compile "$LINENO"; then :
  1814. ac_hi=$ac_mid
  1815. else
  1816. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1817. fi
  1818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1819. done
  1820. case $ac_lo in #((
  1821. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1822. '') ac_retval=1 ;;
  1823. esac
  1824. else
  1825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1826. /* end confdefs.h. */
  1827. $4
  1828. static long int longval () { return $2; }
  1829. static unsigned long int ulongval () { return $2; }
  1830. #include <stdio.h>
  1831. #include <stdlib.h>
  1832. int
  1833. main ()
  1834. {
  1835. FILE *f = fopen ("conftest.val", "w");
  1836. if (! f)
  1837. return 1;
  1838. if (($2) < 0)
  1839. {
  1840. long int i = longval ();
  1841. if (i != ($2))
  1842. return 1;
  1843. fprintf (f, "%ld", i);
  1844. }
  1845. else
  1846. {
  1847. unsigned long int i = ulongval ();
  1848. if (i != ($2))
  1849. return 1;
  1850. fprintf (f, "%lu", i);
  1851. }
  1852. /* Do not output a trailing newline, as this causes \r\n confusion
  1853. on some platforms. */
  1854. return ferror (f) || fclose (f) != 0;
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_c_try_run "$LINENO"; then :
  1860. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1861. else
  1862. ac_retval=1
  1863. fi
  1864. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1865. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1866. rm -f conftest.val
  1867. fi
  1868. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1869. as_fn_set_status $ac_retval
  1870. } # ac_fn_c_compute_int
  1871. cat >config.log <<_ACEOF
  1872. This file contains any messages produced by compilers while
  1873. running configure, to aid debugging if configure makes a mistake.
  1874. It was created by klish $as_me 1.6.0, which was
  1875. generated by GNU Autoconf 2.69. Invocation command line was
  1876. $ $0 $@
  1877. _ACEOF
  1878. exec 5>>config.log
  1879. {
  1880. cat <<_ASUNAME
  1881. ## --------- ##
  1882. ## Platform. ##
  1883. ## --------- ##
  1884. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1885. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1886. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1887. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1888. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1889. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1890. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1891. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1892. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1893. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1894. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1895. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1896. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1897. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1898. _ASUNAME
  1899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1900. for as_dir in $PATH
  1901. do
  1902. IFS=$as_save_IFS
  1903. test -z "$as_dir" && as_dir=.
  1904. $as_echo "PATH: $as_dir"
  1905. done
  1906. IFS=$as_save_IFS
  1907. } >&5
  1908. cat >&5 <<_ACEOF
  1909. ## ----------- ##
  1910. ## Core tests. ##
  1911. ## ----------- ##
  1912. _ACEOF
  1913. # Keep a trace of the command line.
  1914. # Strip out --no-create and --no-recursion so they do not pile up.
  1915. # Strip out --silent because we don't want to record it for future runs.
  1916. # Also quote any args containing shell meta-characters.
  1917. # Make two passes to allow for proper duplicate-argument suppression.
  1918. ac_configure_args=
  1919. ac_configure_args0=
  1920. ac_configure_args1=
  1921. ac_must_keep_next=false
  1922. for ac_pass in 1 2
  1923. do
  1924. for ac_arg
  1925. do
  1926. case $ac_arg in
  1927. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1928. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1929. | -silent | --silent | --silen | --sile | --sil)
  1930. continue ;;
  1931. *\'*)
  1932. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1933. esac
  1934. case $ac_pass in
  1935. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1936. 2)
  1937. as_fn_append ac_configure_args1 " '$ac_arg'"
  1938. if test $ac_must_keep_next = true; then
  1939. ac_must_keep_next=false # Got value, back to normal.
  1940. else
  1941. case $ac_arg in
  1942. *=* | --config-cache | -C | -disable-* | --disable-* \
  1943. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1944. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1945. | -with-* | --with-* | -without-* | --without-* | --x)
  1946. case "$ac_configure_args0 " in
  1947. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1948. esac
  1949. ;;
  1950. -* ) ac_must_keep_next=true ;;
  1951. esac
  1952. fi
  1953. as_fn_append ac_configure_args " '$ac_arg'"
  1954. ;;
  1955. esac
  1956. done
  1957. done
  1958. { ac_configure_args0=; unset ac_configure_args0;}
  1959. { ac_configure_args1=; unset ac_configure_args1;}
  1960. # When interrupted or exit'd, cleanup temporary files, and complete
  1961. # config.log. We remove comments because anyway the quotes in there
  1962. # would cause problems or look ugly.
  1963. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1964. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1965. trap 'exit_status=$?
  1966. # Save into config.log some information that might help in debugging.
  1967. {
  1968. echo
  1969. $as_echo "## ---------------- ##
  1970. ## Cache variables. ##
  1971. ## ---------------- ##"
  1972. echo
  1973. # The following way of writing the cache mishandles newlines in values,
  1974. (
  1975. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1976. eval ac_val=\$$ac_var
  1977. case $ac_val in #(
  1978. *${as_nl}*)
  1979. case $ac_var in #(
  1980. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1981. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1982. esac
  1983. case $ac_var in #(
  1984. _ | IFS | as_nl) ;; #(
  1985. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1986. *) { eval $ac_var=; unset $ac_var;} ;;
  1987. esac ;;
  1988. esac
  1989. done
  1990. (set) 2>&1 |
  1991. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1992. *${as_nl}ac_space=\ *)
  1993. sed -n \
  1994. "s/'\''/'\''\\\\'\'''\''/g;
  1995. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1996. ;; #(
  1997. *)
  1998. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1999. ;;
  2000. esac |
  2001. sort
  2002. )
  2003. echo
  2004. $as_echo "## ----------------- ##
  2005. ## Output variables. ##
  2006. ## ----------------- ##"
  2007. echo
  2008. for ac_var in $ac_subst_vars
  2009. do
  2010. eval ac_val=\$$ac_var
  2011. case $ac_val in
  2012. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2013. esac
  2014. $as_echo "$ac_var='\''$ac_val'\''"
  2015. done | sort
  2016. echo
  2017. if test -n "$ac_subst_files"; then
  2018. $as_echo "## ------------------- ##
  2019. ## File substitutions. ##
  2020. ## ------------------- ##"
  2021. echo
  2022. for ac_var in $ac_subst_files
  2023. do
  2024. eval ac_val=\$$ac_var
  2025. case $ac_val in
  2026. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2027. esac
  2028. $as_echo "$ac_var='\''$ac_val'\''"
  2029. done | sort
  2030. echo
  2031. fi
  2032. if test -s confdefs.h; then
  2033. $as_echo "## ----------- ##
  2034. ## confdefs.h. ##
  2035. ## ----------- ##"
  2036. echo
  2037. cat confdefs.h
  2038. echo
  2039. fi
  2040. test "$ac_signal" != 0 &&
  2041. $as_echo "$as_me: caught signal $ac_signal"
  2042. $as_echo "$as_me: exit $exit_status"
  2043. } >&5
  2044. rm -f core *.core core.conftest.* &&
  2045. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2046. exit $exit_status
  2047. ' 0
  2048. for ac_signal in 1 2 13 15; do
  2049. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2050. done
  2051. ac_signal=0
  2052. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2053. rm -f -r conftest* confdefs.h
  2054. $as_echo "/* confdefs.h */" > confdefs.h
  2055. # Predefined preprocessor variables.
  2056. cat >>confdefs.h <<_ACEOF
  2057. #define PACKAGE_NAME "$PACKAGE_NAME"
  2058. _ACEOF
  2059. cat >>confdefs.h <<_ACEOF
  2060. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2061. _ACEOF
  2062. cat >>confdefs.h <<_ACEOF
  2063. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2064. _ACEOF
  2065. cat >>confdefs.h <<_ACEOF
  2066. #define PACKAGE_STRING "$PACKAGE_STRING"
  2067. _ACEOF
  2068. cat >>confdefs.h <<_ACEOF
  2069. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2070. _ACEOF
  2071. cat >>confdefs.h <<_ACEOF
  2072. #define PACKAGE_URL "$PACKAGE_URL"
  2073. _ACEOF
  2074. # Let the site file select an alternate cache file if it wants to.
  2075. # Prefer an explicitly selected file to automatically selected ones.
  2076. ac_site_file1=NONE
  2077. ac_site_file2=NONE
  2078. if test -n "$CONFIG_SITE"; then
  2079. # We do not want a PATH search for config.site.
  2080. case $CONFIG_SITE in #((
  2081. -*) ac_site_file1=./$CONFIG_SITE;;
  2082. */*) ac_site_file1=$CONFIG_SITE;;
  2083. *) ac_site_file1=./$CONFIG_SITE;;
  2084. esac
  2085. elif test "x$prefix" != xNONE; then
  2086. ac_site_file1=$prefix/share/config.site
  2087. ac_site_file2=$prefix/etc/config.site
  2088. else
  2089. ac_site_file1=$ac_default_prefix/share/config.site
  2090. ac_site_file2=$ac_default_prefix/etc/config.site
  2091. fi
  2092. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2093. do
  2094. test "x$ac_site_file" = xNONE && continue
  2095. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2097. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2098. sed 's/^/| /' "$ac_site_file" >&5
  2099. . "$ac_site_file" \
  2100. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2102. as_fn_error $? "failed to load site script $ac_site_file
  2103. See \`config.log' for more details" "$LINENO" 5; }
  2104. fi
  2105. done
  2106. if test -r "$cache_file"; then
  2107. # Some versions of bash will fail to source /dev/null (special files
  2108. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2109. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2111. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2112. case $cache_file in
  2113. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2114. *) . "./$cache_file";;
  2115. esac
  2116. fi
  2117. else
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2119. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2120. >$cache_file
  2121. fi
  2122. # Check that the precious variables saved in the cache have kept the same
  2123. # value.
  2124. ac_cache_corrupted=false
  2125. for ac_var in $ac_precious_vars; do
  2126. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2127. eval ac_new_set=\$ac_env_${ac_var}_set
  2128. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2129. eval ac_new_val=\$ac_env_${ac_var}_value
  2130. case $ac_old_set,$ac_new_set in
  2131. set,)
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2133. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2134. ac_cache_corrupted=: ;;
  2135. ,set)
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2137. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2138. ac_cache_corrupted=: ;;
  2139. ,);;
  2140. *)
  2141. if test "x$ac_old_val" != "x$ac_new_val"; then
  2142. # differences in whitespace do not lead to failure.
  2143. ac_old_val_w=`echo x $ac_old_val`
  2144. ac_new_val_w=`echo x $ac_new_val`
  2145. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2147. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2148. ac_cache_corrupted=:
  2149. else
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2151. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2152. eval $ac_var=\$ac_old_val
  2153. fi
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2155. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2157. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2158. fi;;
  2159. esac
  2160. # Pass precious variables to config.status.
  2161. if test "$ac_new_set" = set; then
  2162. case $ac_new_val in
  2163. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2164. *) ac_arg=$ac_var=$ac_new_val ;;
  2165. esac
  2166. case " $ac_configure_args " in
  2167. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2168. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2169. esac
  2170. fi
  2171. done
  2172. if $ac_cache_corrupted; then
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2174. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2176. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2177. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2178. fi
  2179. ## -------------------- ##
  2180. ## Main body of script. ##
  2181. ## -------------------- ##
  2182. ac_ext=c
  2183. ac_cpp='$CPP $CPPFLAGS'
  2184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2187. ac_aux_dir=
  2188. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2189. if test -f "$ac_dir/install-sh"; then
  2190. ac_aux_dir=$ac_dir
  2191. ac_install_sh="$ac_aux_dir/install-sh -c"
  2192. break
  2193. elif test -f "$ac_dir/install.sh"; then
  2194. ac_aux_dir=$ac_dir
  2195. ac_install_sh="$ac_aux_dir/install.sh -c"
  2196. break
  2197. elif test -f "$ac_dir/shtool"; then
  2198. ac_aux_dir=$ac_dir
  2199. ac_install_sh="$ac_aux_dir/shtool install -c"
  2200. break
  2201. fi
  2202. done
  2203. if test -z "$ac_aux_dir"; then
  2204. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2205. fi
  2206. # These three variables are undocumented and unsupported,
  2207. # and are intended to be withdrawn in a future Autoconf release.
  2208. # They can cause serious problems if a builder's source tree is in a directory
  2209. # whose full name contains unusual characters.
  2210. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2211. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2212. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2213. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2214. ac_ext=c
  2215. ac_cpp='$CPP $CPPFLAGS'
  2216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2219. if test -n "$ac_tool_prefix"; then
  2220. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2221. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2223. $as_echo_n "checking for $ac_word... " >&6; }
  2224. if ${ac_cv_prog_CC+:} false; then :
  2225. $as_echo_n "(cached) " >&6
  2226. else
  2227. if test -n "$CC"; then
  2228. ac_cv_prog_CC="$CC" # Let the user override the test.
  2229. else
  2230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2231. for as_dir in $PATH
  2232. do
  2233. IFS=$as_save_IFS
  2234. test -z "$as_dir" && as_dir=.
  2235. for ac_exec_ext in '' $ac_executable_extensions; do
  2236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2237. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2239. break 2
  2240. fi
  2241. done
  2242. done
  2243. IFS=$as_save_IFS
  2244. fi
  2245. fi
  2246. CC=$ac_cv_prog_CC
  2247. if test -n "$CC"; then
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2249. $as_echo "$CC" >&6; }
  2250. else
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2252. $as_echo "no" >&6; }
  2253. fi
  2254. fi
  2255. if test -z "$ac_cv_prog_CC"; then
  2256. ac_ct_CC=$CC
  2257. # Extract the first word of "gcc", so it can be a program name with args.
  2258. set dummy gcc; ac_word=$2
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2260. $as_echo_n "checking for $ac_word... " >&6; }
  2261. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2262. $as_echo_n "(cached) " >&6
  2263. else
  2264. if test -n "$ac_ct_CC"; then
  2265. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2266. else
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. for ac_exec_ext in '' $ac_executable_extensions; do
  2273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2274. ac_cv_prog_ac_ct_CC="gcc"
  2275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2276. break 2
  2277. fi
  2278. done
  2279. done
  2280. IFS=$as_save_IFS
  2281. fi
  2282. fi
  2283. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2284. if test -n "$ac_ct_CC"; then
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2286. $as_echo "$ac_ct_CC" >&6; }
  2287. else
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2289. $as_echo "no" >&6; }
  2290. fi
  2291. if test "x$ac_ct_CC" = x; then
  2292. CC=""
  2293. else
  2294. case $cross_compiling:$ac_tool_warned in
  2295. yes:)
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2297. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2298. ac_tool_warned=yes ;;
  2299. esac
  2300. CC=$ac_ct_CC
  2301. fi
  2302. else
  2303. CC="$ac_cv_prog_CC"
  2304. fi
  2305. if test -z "$CC"; then
  2306. if test -n "$ac_tool_prefix"; then
  2307. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2308. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2310. $as_echo_n "checking for $ac_word... " >&6; }
  2311. if ${ac_cv_prog_CC+:} false; then :
  2312. $as_echo_n "(cached) " >&6
  2313. else
  2314. if test -n "$CC"; then
  2315. ac_cv_prog_CC="$CC" # Let the user override the test.
  2316. else
  2317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2318. for as_dir in $PATH
  2319. do
  2320. IFS=$as_save_IFS
  2321. test -z "$as_dir" && as_dir=.
  2322. for ac_exec_ext in '' $ac_executable_extensions; do
  2323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2324. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2326. break 2
  2327. fi
  2328. done
  2329. done
  2330. IFS=$as_save_IFS
  2331. fi
  2332. fi
  2333. CC=$ac_cv_prog_CC
  2334. if test -n "$CC"; then
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2336. $as_echo "$CC" >&6; }
  2337. else
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2339. $as_echo "no" >&6; }
  2340. fi
  2341. fi
  2342. fi
  2343. if test -z "$CC"; then
  2344. # Extract the first word of "cc", so it can be a program name with args.
  2345. set dummy cc; ac_word=$2
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2347. $as_echo_n "checking for $ac_word... " >&6; }
  2348. if ${ac_cv_prog_CC+:} false; then :
  2349. $as_echo_n "(cached) " >&6
  2350. else
  2351. if test -n "$CC"; then
  2352. ac_cv_prog_CC="$CC" # Let the user override the test.
  2353. else
  2354. ac_prog_rejected=no
  2355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2356. for as_dir in $PATH
  2357. do
  2358. IFS=$as_save_IFS
  2359. test -z "$as_dir" && as_dir=.
  2360. for ac_exec_ext in '' $ac_executable_extensions; do
  2361. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2362. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2363. ac_prog_rejected=yes
  2364. continue
  2365. fi
  2366. ac_cv_prog_CC="cc"
  2367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2368. break 2
  2369. fi
  2370. done
  2371. done
  2372. IFS=$as_save_IFS
  2373. if test $ac_prog_rejected = yes; then
  2374. # We found a bogon in the path, so make sure we never use it.
  2375. set dummy $ac_cv_prog_CC
  2376. shift
  2377. if test $# != 0; then
  2378. # We chose a different compiler from the bogus one.
  2379. # However, it has the same basename, so the bogon will be chosen
  2380. # first if we set CC to just the basename; use the full file name.
  2381. shift
  2382. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2383. fi
  2384. fi
  2385. fi
  2386. fi
  2387. CC=$ac_cv_prog_CC
  2388. if test -n "$CC"; then
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2390. $as_echo "$CC" >&6; }
  2391. else
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2393. $as_echo "no" >&6; }
  2394. fi
  2395. fi
  2396. if test -z "$CC"; then
  2397. if test -n "$ac_tool_prefix"; then
  2398. for ac_prog in cl.exe
  2399. do
  2400. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2401. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2403. $as_echo_n "checking for $ac_word... " >&6; }
  2404. if ${ac_cv_prog_CC+:} false; then :
  2405. $as_echo_n "(cached) " >&6
  2406. else
  2407. if test -n "$CC"; then
  2408. ac_cv_prog_CC="$CC" # Let the user override the test.
  2409. else
  2410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2411. for as_dir in $PATH
  2412. do
  2413. IFS=$as_save_IFS
  2414. test -z "$as_dir" && as_dir=.
  2415. for ac_exec_ext in '' $ac_executable_extensions; do
  2416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2417. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. IFS=$as_save_IFS
  2424. fi
  2425. fi
  2426. CC=$ac_cv_prog_CC
  2427. if test -n "$CC"; then
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2429. $as_echo "$CC" >&6; }
  2430. else
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2432. $as_echo "no" >&6; }
  2433. fi
  2434. test -n "$CC" && break
  2435. done
  2436. fi
  2437. if test -z "$CC"; then
  2438. ac_ct_CC=$CC
  2439. for ac_prog in cl.exe
  2440. do
  2441. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2442. set dummy $ac_prog; ac_word=$2
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2444. $as_echo_n "checking for $ac_word... " >&6; }
  2445. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2446. $as_echo_n "(cached) " >&6
  2447. else
  2448. if test -n "$ac_ct_CC"; then
  2449. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2450. else
  2451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2452. for as_dir in $PATH
  2453. do
  2454. IFS=$as_save_IFS
  2455. test -z "$as_dir" && as_dir=.
  2456. for ac_exec_ext in '' $ac_executable_extensions; do
  2457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2458. ac_cv_prog_ac_ct_CC="$ac_prog"
  2459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. IFS=$as_save_IFS
  2465. fi
  2466. fi
  2467. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2468. if test -n "$ac_ct_CC"; then
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2470. $as_echo "$ac_ct_CC" >&6; }
  2471. else
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2473. $as_echo "no" >&6; }
  2474. fi
  2475. test -n "$ac_ct_CC" && break
  2476. done
  2477. if test "x$ac_ct_CC" = x; then
  2478. CC=""
  2479. else
  2480. case $cross_compiling:$ac_tool_warned in
  2481. yes:)
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2483. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2484. ac_tool_warned=yes ;;
  2485. esac
  2486. CC=$ac_ct_CC
  2487. fi
  2488. fi
  2489. fi
  2490. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2492. as_fn_error $? "no acceptable C compiler found in \$PATH
  2493. See \`config.log' for more details" "$LINENO" 5; }
  2494. # Provide some information about the compiler.
  2495. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2496. set X $ac_compile
  2497. ac_compiler=$2
  2498. for ac_option in --version -v -V -qversion; do
  2499. { { ac_try="$ac_compiler $ac_option >&5"
  2500. case "(($ac_try" in
  2501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2502. *) ac_try_echo=$ac_try;;
  2503. esac
  2504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2505. $as_echo "$ac_try_echo"; } >&5
  2506. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2507. ac_status=$?
  2508. if test -s conftest.err; then
  2509. sed '10a\
  2510. ... rest of stderr output deleted ...
  2511. 10q' conftest.err >conftest.er1
  2512. cat conftest.er1 >&5
  2513. fi
  2514. rm -f conftest.er1 conftest.err
  2515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2516. test $ac_status = 0; }
  2517. done
  2518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2519. /* end confdefs.h. */
  2520. int
  2521. main ()
  2522. {
  2523. ;
  2524. return 0;
  2525. }
  2526. _ACEOF
  2527. ac_clean_files_save=$ac_clean_files
  2528. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2529. # Try to create an executable without -o first, disregard a.out.
  2530. # It will help us diagnose broken compilers, and finding out an intuition
  2531. # of exeext.
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2533. $as_echo_n "checking whether the C compiler works... " >&6; }
  2534. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2535. # The possible output files:
  2536. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2537. ac_rmfiles=
  2538. for ac_file in $ac_files
  2539. do
  2540. case $ac_file in
  2541. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2542. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2543. esac
  2544. done
  2545. rm -f $ac_rmfiles
  2546. if { { ac_try="$ac_link_default"
  2547. case "(($ac_try" in
  2548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2549. *) ac_try_echo=$ac_try;;
  2550. esac
  2551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2552. $as_echo "$ac_try_echo"; } >&5
  2553. (eval "$ac_link_default") 2>&5
  2554. ac_status=$?
  2555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2556. test $ac_status = 0; }; then :
  2557. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2558. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2559. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2560. # so that the user can short-circuit this test for compilers unknown to
  2561. # Autoconf.
  2562. for ac_file in $ac_files ''
  2563. do
  2564. test -f "$ac_file" || continue
  2565. case $ac_file in
  2566. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2567. ;;
  2568. [ab].out )
  2569. # We found the default executable, but exeext='' is most
  2570. # certainly right.
  2571. break;;
  2572. *.* )
  2573. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2574. then :; else
  2575. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2576. fi
  2577. # We set ac_cv_exeext here because the later test for it is not
  2578. # safe: cross compilers may not add the suffix if given an `-o'
  2579. # argument, so we may need to know it at that point already.
  2580. # Even if this section looks crufty: it has the advantage of
  2581. # actually working.
  2582. break;;
  2583. * )
  2584. break;;
  2585. esac
  2586. done
  2587. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2588. else
  2589. ac_file=''
  2590. fi
  2591. if test -z "$ac_file"; then :
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2593. $as_echo "no" >&6; }
  2594. $as_echo "$as_me: failed program was:" >&5
  2595. sed 's/^/| /' conftest.$ac_ext >&5
  2596. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2597. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2598. as_fn_error 77 "C compiler cannot create executables
  2599. See \`config.log' for more details" "$LINENO" 5; }
  2600. else
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2602. $as_echo "yes" >&6; }
  2603. fi
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2605. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2607. $as_echo "$ac_file" >&6; }
  2608. ac_exeext=$ac_cv_exeext
  2609. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2610. ac_clean_files=$ac_clean_files_save
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2612. $as_echo_n "checking for suffix of executables... " >&6; }
  2613. if { { ac_try="$ac_link"
  2614. case "(($ac_try" in
  2615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2616. *) ac_try_echo=$ac_try;;
  2617. esac
  2618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2619. $as_echo "$ac_try_echo"; } >&5
  2620. (eval "$ac_link") 2>&5
  2621. ac_status=$?
  2622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2623. test $ac_status = 0; }; then :
  2624. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2625. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2626. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2627. # `rm'.
  2628. for ac_file in conftest.exe conftest conftest.*; do
  2629. test -f "$ac_file" || continue
  2630. case $ac_file in
  2631. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2632. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2633. break;;
  2634. * ) break;;
  2635. esac
  2636. done
  2637. else
  2638. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2639. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2640. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2641. See \`config.log' for more details" "$LINENO" 5; }
  2642. fi
  2643. rm -f conftest conftest$ac_cv_exeext
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2645. $as_echo "$ac_cv_exeext" >&6; }
  2646. rm -f conftest.$ac_ext
  2647. EXEEXT=$ac_cv_exeext
  2648. ac_exeext=$EXEEXT
  2649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2650. /* end confdefs.h. */
  2651. #include <stdio.h>
  2652. int
  2653. main ()
  2654. {
  2655. FILE *f = fopen ("conftest.out", "w");
  2656. return ferror (f) || fclose (f) != 0;
  2657. ;
  2658. return 0;
  2659. }
  2660. _ACEOF
  2661. ac_clean_files="$ac_clean_files conftest.out"
  2662. # Check that the compiler produces executables we can run. If not, either
  2663. # the compiler is broken, or we cross compile.
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2665. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2666. if test "$cross_compiling" != yes; then
  2667. { { ac_try="$ac_link"
  2668. case "(($ac_try" in
  2669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2670. *) ac_try_echo=$ac_try;;
  2671. esac
  2672. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2673. $as_echo "$ac_try_echo"; } >&5
  2674. (eval "$ac_link") 2>&5
  2675. ac_status=$?
  2676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2677. test $ac_status = 0; }
  2678. if { ac_try='./conftest$ac_cv_exeext'
  2679. { { case "(($ac_try" in
  2680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2681. *) ac_try_echo=$ac_try;;
  2682. esac
  2683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2684. $as_echo "$ac_try_echo"; } >&5
  2685. (eval "$ac_try") 2>&5
  2686. ac_status=$?
  2687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2688. test $ac_status = 0; }; }; then
  2689. cross_compiling=no
  2690. else
  2691. if test "$cross_compiling" = maybe; then
  2692. cross_compiling=yes
  2693. else
  2694. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2695. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2696. as_fn_error $? "cannot run C compiled programs.
  2697. If you meant to cross compile, use \`--host'.
  2698. See \`config.log' for more details" "$LINENO" 5; }
  2699. fi
  2700. fi
  2701. fi
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2703. $as_echo "$cross_compiling" >&6; }
  2704. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2705. ac_clean_files=$ac_clean_files_save
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2707. $as_echo_n "checking for suffix of object files... " >&6; }
  2708. if ${ac_cv_objext+:} false; then :
  2709. $as_echo_n "(cached) " >&6
  2710. else
  2711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2712. /* end confdefs.h. */
  2713. int
  2714. main ()
  2715. {
  2716. ;
  2717. return 0;
  2718. }
  2719. _ACEOF
  2720. rm -f conftest.o conftest.obj
  2721. if { { ac_try="$ac_compile"
  2722. case "(($ac_try" in
  2723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2724. *) ac_try_echo=$ac_try;;
  2725. esac
  2726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2727. $as_echo "$ac_try_echo"; } >&5
  2728. (eval "$ac_compile") 2>&5
  2729. ac_status=$?
  2730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2731. test $ac_status = 0; }; then :
  2732. for ac_file in conftest.o conftest.obj conftest.*; do
  2733. test -f "$ac_file" || continue;
  2734. case $ac_file in
  2735. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2736. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2737. break;;
  2738. esac
  2739. done
  2740. else
  2741. $as_echo "$as_me: failed program was:" >&5
  2742. sed 's/^/| /' conftest.$ac_ext >&5
  2743. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2744. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2745. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2746. See \`config.log' for more details" "$LINENO" 5; }
  2747. fi
  2748. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2749. fi
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2751. $as_echo "$ac_cv_objext" >&6; }
  2752. OBJEXT=$ac_cv_objext
  2753. ac_objext=$OBJEXT
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2755. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2756. if ${ac_cv_c_compiler_gnu+:} false; then :
  2757. $as_echo_n "(cached) " >&6
  2758. else
  2759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2760. /* end confdefs.h. */
  2761. int
  2762. main ()
  2763. {
  2764. #ifndef __GNUC__
  2765. choke me
  2766. #endif
  2767. ;
  2768. return 0;
  2769. }
  2770. _ACEOF
  2771. if ac_fn_c_try_compile "$LINENO"; then :
  2772. ac_compiler_gnu=yes
  2773. else
  2774. ac_compiler_gnu=no
  2775. fi
  2776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2777. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2778. fi
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2780. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2781. if test $ac_compiler_gnu = yes; then
  2782. GCC=yes
  2783. else
  2784. GCC=
  2785. fi
  2786. ac_test_CFLAGS=${CFLAGS+set}
  2787. ac_save_CFLAGS=$CFLAGS
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2789. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2790. if ${ac_cv_prog_cc_g+:} false; then :
  2791. $as_echo_n "(cached) " >&6
  2792. else
  2793. ac_save_c_werror_flag=$ac_c_werror_flag
  2794. ac_c_werror_flag=yes
  2795. ac_cv_prog_cc_g=no
  2796. CFLAGS="-g"
  2797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2798. /* end confdefs.h. */
  2799. int
  2800. main ()
  2801. {
  2802. ;
  2803. return 0;
  2804. }
  2805. _ACEOF
  2806. if ac_fn_c_try_compile "$LINENO"; then :
  2807. ac_cv_prog_cc_g=yes
  2808. else
  2809. CFLAGS=""
  2810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2811. /* end confdefs.h. */
  2812. int
  2813. main ()
  2814. {
  2815. ;
  2816. return 0;
  2817. }
  2818. _ACEOF
  2819. if ac_fn_c_try_compile "$LINENO"; then :
  2820. else
  2821. ac_c_werror_flag=$ac_save_c_werror_flag
  2822. CFLAGS="-g"
  2823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2824. /* end confdefs.h. */
  2825. int
  2826. main ()
  2827. {
  2828. ;
  2829. return 0;
  2830. }
  2831. _ACEOF
  2832. if ac_fn_c_try_compile "$LINENO"; then :
  2833. ac_cv_prog_cc_g=yes
  2834. fi
  2835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2836. fi
  2837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2838. fi
  2839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2840. ac_c_werror_flag=$ac_save_c_werror_flag
  2841. fi
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2843. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2844. if test "$ac_test_CFLAGS" = set; then
  2845. CFLAGS=$ac_save_CFLAGS
  2846. elif test $ac_cv_prog_cc_g = yes; then
  2847. if test "$GCC" = yes; then
  2848. CFLAGS="-g -O2"
  2849. else
  2850. CFLAGS="-g"
  2851. fi
  2852. else
  2853. if test "$GCC" = yes; then
  2854. CFLAGS="-O2"
  2855. else
  2856. CFLAGS=
  2857. fi
  2858. fi
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2860. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2861. if ${ac_cv_prog_cc_c89+:} false; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. ac_cv_prog_cc_c89=no
  2865. ac_save_CC=$CC
  2866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2867. /* end confdefs.h. */
  2868. #include <stdarg.h>
  2869. #include <stdio.h>
  2870. struct stat;
  2871. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2872. struct buf { int x; };
  2873. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2874. static char *e (p, i)
  2875. char **p;
  2876. int i;
  2877. {
  2878. return p[i];
  2879. }
  2880. static char *f (char * (*g) (char **, int), char **p, ...)
  2881. {
  2882. char *s;
  2883. va_list v;
  2884. va_start (v,p);
  2885. s = g (p, va_arg (v,int));
  2886. va_end (v);
  2887. return s;
  2888. }
  2889. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2890. function prototypes and stuff, but not '\xHH' hex character constants.
  2891. These don't provoke an error unfortunately, instead are silently treated
  2892. as 'x'. The following induces an error, until -std is added to get
  2893. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2894. array size at least. It's necessary to write '\x00'==0 to get something
  2895. that's true only with -std. */
  2896. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2897. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2898. inside strings and character constants. */
  2899. #define FOO(x) 'x'
  2900. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2901. int test (int i, double x);
  2902. struct s1 {int (*f) (int a);};
  2903. struct s2 {int (*f) (double a);};
  2904. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2905. int argc;
  2906. char **argv;
  2907. int
  2908. main ()
  2909. {
  2910. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2911. ;
  2912. return 0;
  2913. }
  2914. _ACEOF
  2915. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2916. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2917. do
  2918. CC="$ac_save_CC $ac_arg"
  2919. if ac_fn_c_try_compile "$LINENO"; then :
  2920. ac_cv_prog_cc_c89=$ac_arg
  2921. fi
  2922. rm -f core conftest.err conftest.$ac_objext
  2923. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2924. done
  2925. rm -f conftest.$ac_ext
  2926. CC=$ac_save_CC
  2927. fi
  2928. # AC_CACHE_VAL
  2929. case "x$ac_cv_prog_cc_c89" in
  2930. x)
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2932. $as_echo "none needed" >&6; } ;;
  2933. xno)
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2935. $as_echo "unsupported" >&6; } ;;
  2936. *)
  2937. CC="$CC $ac_cv_prog_cc_c89"
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2939. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2940. esac
  2941. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2942. fi
  2943. ac_ext=c
  2944. ac_cpp='$CPP $CPPFLAGS'
  2945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2948. ac_ext=c
  2949. ac_cpp='$CPP $CPPFLAGS'
  2950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2954. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2955. # On Suns, sometimes $CPP names a directory.
  2956. if test -n "$CPP" && test -d "$CPP"; then
  2957. CPP=
  2958. fi
  2959. if test -z "$CPP"; then
  2960. if ${ac_cv_prog_CPP+:} false; then :
  2961. $as_echo_n "(cached) " >&6
  2962. else
  2963. # Double quotes because CPP needs to be expanded
  2964. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2965. do
  2966. ac_preproc_ok=false
  2967. for ac_c_preproc_warn_flag in '' yes
  2968. do
  2969. # Use a header file that comes with gcc, so configuring glibc
  2970. # with a fresh cross-compiler works.
  2971. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2972. # <limits.h> exists even on freestanding compilers.
  2973. # On the NeXT, cc -E runs the code through the compiler's parser,
  2974. # not just through cpp. "Syntax error" is here to catch this case.
  2975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2976. /* end confdefs.h. */
  2977. #ifdef __STDC__
  2978. # include <limits.h>
  2979. #else
  2980. # include <assert.h>
  2981. #endif
  2982. Syntax error
  2983. _ACEOF
  2984. if ac_fn_c_try_cpp "$LINENO"; then :
  2985. else
  2986. # Broken: fails on valid input.
  2987. continue
  2988. fi
  2989. rm -f conftest.err conftest.i conftest.$ac_ext
  2990. # OK, works on sane cases. Now check whether nonexistent headers
  2991. # can be detected and how.
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. #include <ac_nonexistent.h>
  2995. _ACEOF
  2996. if ac_fn_c_try_cpp "$LINENO"; then :
  2997. # Broken: success on invalid input.
  2998. continue
  2999. else
  3000. # Passes both tests.
  3001. ac_preproc_ok=:
  3002. break
  3003. fi
  3004. rm -f conftest.err conftest.i conftest.$ac_ext
  3005. done
  3006. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3007. rm -f conftest.i conftest.err conftest.$ac_ext
  3008. if $ac_preproc_ok; then :
  3009. break
  3010. fi
  3011. done
  3012. ac_cv_prog_CPP=$CPP
  3013. fi
  3014. CPP=$ac_cv_prog_CPP
  3015. else
  3016. ac_cv_prog_CPP=$CPP
  3017. fi
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3019. $as_echo "$CPP" >&6; }
  3020. ac_preproc_ok=false
  3021. for ac_c_preproc_warn_flag in '' yes
  3022. do
  3023. # Use a header file that comes with gcc, so configuring glibc
  3024. # with a fresh cross-compiler works.
  3025. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3026. # <limits.h> exists even on freestanding compilers.
  3027. # On the NeXT, cc -E runs the code through the compiler's parser,
  3028. # not just through cpp. "Syntax error" is here to catch this case.
  3029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3030. /* end confdefs.h. */
  3031. #ifdef __STDC__
  3032. # include <limits.h>
  3033. #else
  3034. # include <assert.h>
  3035. #endif
  3036. Syntax error
  3037. _ACEOF
  3038. if ac_fn_c_try_cpp "$LINENO"; then :
  3039. else
  3040. # Broken: fails on valid input.
  3041. continue
  3042. fi
  3043. rm -f conftest.err conftest.i conftest.$ac_ext
  3044. # OK, works on sane cases. Now check whether nonexistent headers
  3045. # can be detected and how.
  3046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3047. /* end confdefs.h. */
  3048. #include <ac_nonexistent.h>
  3049. _ACEOF
  3050. if ac_fn_c_try_cpp "$LINENO"; then :
  3051. # Broken: success on invalid input.
  3052. continue
  3053. else
  3054. # Passes both tests.
  3055. ac_preproc_ok=:
  3056. break
  3057. fi
  3058. rm -f conftest.err conftest.i conftest.$ac_ext
  3059. done
  3060. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3061. rm -f conftest.i conftest.err conftest.$ac_ext
  3062. if $ac_preproc_ok; then :
  3063. else
  3064. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3065. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3066. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3067. See \`config.log' for more details" "$LINENO" 5; }
  3068. fi
  3069. ac_ext=c
  3070. ac_cpp='$CPP $CPPFLAGS'
  3071. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3072. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3073. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3075. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3076. if ${ac_cv_path_GREP+:} false; then :
  3077. $as_echo_n "(cached) " >&6
  3078. else
  3079. if test -z "$GREP"; then
  3080. ac_path_GREP_found=false
  3081. # Loop through the user's path and test for each of PROGNAME-LIST
  3082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3083. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3084. do
  3085. IFS=$as_save_IFS
  3086. test -z "$as_dir" && as_dir=.
  3087. for ac_prog in grep ggrep; do
  3088. for ac_exec_ext in '' $ac_executable_extensions; do
  3089. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3090. as_fn_executable_p "$ac_path_GREP" || continue
  3091. # Check for GNU ac_path_GREP and select it if it is found.
  3092. # Check for GNU $ac_path_GREP
  3093. case `"$ac_path_GREP" --version 2>&1` in
  3094. *GNU*)
  3095. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3096. *)
  3097. ac_count=0
  3098. $as_echo_n 0123456789 >"conftest.in"
  3099. while :
  3100. do
  3101. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3102. mv "conftest.tmp" "conftest.in"
  3103. cp "conftest.in" "conftest.nl"
  3104. $as_echo 'GREP' >> "conftest.nl"
  3105. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3106. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3107. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3108. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3109. # Best one so far, save it but keep looking for a better one
  3110. ac_cv_path_GREP="$ac_path_GREP"
  3111. ac_path_GREP_max=$ac_count
  3112. fi
  3113. # 10*(2^10) chars as input seems more than enough
  3114. test $ac_count -gt 10 && break
  3115. done
  3116. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3117. esac
  3118. $ac_path_GREP_found && break 3
  3119. done
  3120. done
  3121. done
  3122. IFS=$as_save_IFS
  3123. if test -z "$ac_cv_path_GREP"; then
  3124. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3125. fi
  3126. else
  3127. ac_cv_path_GREP=$GREP
  3128. fi
  3129. fi
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3131. $as_echo "$ac_cv_path_GREP" >&6; }
  3132. GREP="$ac_cv_path_GREP"
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3134. $as_echo_n "checking for egrep... " >&6; }
  3135. if ${ac_cv_path_EGREP+:} false; then :
  3136. $as_echo_n "(cached) " >&6
  3137. else
  3138. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3139. then ac_cv_path_EGREP="$GREP -E"
  3140. else
  3141. if test -z "$EGREP"; then
  3142. ac_path_EGREP_found=false
  3143. # Loop through the user's path and test for each of PROGNAME-LIST
  3144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3145. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3146. do
  3147. IFS=$as_save_IFS
  3148. test -z "$as_dir" && as_dir=.
  3149. for ac_prog in egrep; do
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3152. as_fn_executable_p "$ac_path_EGREP" || continue
  3153. # Check for GNU ac_path_EGREP and select it if it is found.
  3154. # Check for GNU $ac_path_EGREP
  3155. case `"$ac_path_EGREP" --version 2>&1` in
  3156. *GNU*)
  3157. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3158. *)
  3159. ac_count=0
  3160. $as_echo_n 0123456789 >"conftest.in"
  3161. while :
  3162. do
  3163. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3164. mv "conftest.tmp" "conftest.in"
  3165. cp "conftest.in" "conftest.nl"
  3166. $as_echo 'EGREP' >> "conftest.nl"
  3167. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3168. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3169. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3170. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3171. # Best one so far, save it but keep looking for a better one
  3172. ac_cv_path_EGREP="$ac_path_EGREP"
  3173. ac_path_EGREP_max=$ac_count
  3174. fi
  3175. # 10*(2^10) chars as input seems more than enough
  3176. test $ac_count -gt 10 && break
  3177. done
  3178. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3179. esac
  3180. $ac_path_EGREP_found && break 3
  3181. done
  3182. done
  3183. done
  3184. IFS=$as_save_IFS
  3185. if test -z "$ac_cv_path_EGREP"; then
  3186. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3187. fi
  3188. else
  3189. ac_cv_path_EGREP=$EGREP
  3190. fi
  3191. fi
  3192. fi
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3194. $as_echo "$ac_cv_path_EGREP" >&6; }
  3195. EGREP="$ac_cv_path_EGREP"
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3197. $as_echo_n "checking for ANSI C header files... " >&6; }
  3198. if ${ac_cv_header_stdc+:} false; then :
  3199. $as_echo_n "(cached) " >&6
  3200. else
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. #include <stdlib.h>
  3204. #include <stdarg.h>
  3205. #include <string.h>
  3206. #include <float.h>
  3207. int
  3208. main ()
  3209. {
  3210. ;
  3211. return 0;
  3212. }
  3213. _ACEOF
  3214. if ac_fn_c_try_compile "$LINENO"; then :
  3215. ac_cv_header_stdc=yes
  3216. else
  3217. ac_cv_header_stdc=no
  3218. fi
  3219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3220. if test $ac_cv_header_stdc = yes; then
  3221. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3223. /* end confdefs.h. */
  3224. #include <string.h>
  3225. _ACEOF
  3226. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3227. $EGREP "memchr" >/dev/null 2>&1; then :
  3228. else
  3229. ac_cv_header_stdc=no
  3230. fi
  3231. rm -f conftest*
  3232. fi
  3233. if test $ac_cv_header_stdc = yes; then
  3234. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h. */
  3237. #include <stdlib.h>
  3238. _ACEOF
  3239. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3240. $EGREP "free" >/dev/null 2>&1; then :
  3241. else
  3242. ac_cv_header_stdc=no
  3243. fi
  3244. rm -f conftest*
  3245. fi
  3246. if test $ac_cv_header_stdc = yes; then
  3247. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3248. if test "$cross_compiling" = yes; then :
  3249. :
  3250. else
  3251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3252. /* end confdefs.h. */
  3253. #include <ctype.h>
  3254. #include <stdlib.h>
  3255. #if ((' ' & 0x0FF) == 0x020)
  3256. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3257. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3258. #else
  3259. # define ISLOWER(c) \
  3260. (('a' <= (c) && (c) <= 'i') \
  3261. || ('j' <= (c) && (c) <= 'r') \
  3262. || ('s' <= (c) && (c) <= 'z'))
  3263. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3264. #endif
  3265. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3266. int
  3267. main ()
  3268. {
  3269. int i;
  3270. for (i = 0; i < 256; i++)
  3271. if (XOR (islower (i), ISLOWER (i))
  3272. || toupper (i) != TOUPPER (i))
  3273. return 2;
  3274. return 0;
  3275. }
  3276. _ACEOF
  3277. if ac_fn_c_try_run "$LINENO"; then :
  3278. else
  3279. ac_cv_header_stdc=no
  3280. fi
  3281. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3282. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3283. fi
  3284. fi
  3285. fi
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3287. $as_echo "$ac_cv_header_stdc" >&6; }
  3288. if test $ac_cv_header_stdc = yes; then
  3289. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3290. fi
  3291. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3292. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3293. inttypes.h stdint.h unistd.h
  3294. do :
  3295. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3296. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3297. "
  3298. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3299. cat >>confdefs.h <<_ACEOF
  3300. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3301. _ACEOF
  3302. fi
  3303. done
  3304. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3305. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3306. MINIX=yes
  3307. else
  3308. MINIX=
  3309. fi
  3310. if test "$MINIX" = yes; then
  3311. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3312. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3313. $as_echo "#define _MINIX 1" >>confdefs.h
  3314. fi
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3316. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3317. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3318. $as_echo_n "(cached) " >&6
  3319. else
  3320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3321. /* end confdefs.h. */
  3322. # define __EXTENSIONS__ 1
  3323. $ac_includes_default
  3324. int
  3325. main ()
  3326. {
  3327. ;
  3328. return 0;
  3329. }
  3330. _ACEOF
  3331. if ac_fn_c_try_compile "$LINENO"; then :
  3332. ac_cv_safe_to_define___extensions__=yes
  3333. else
  3334. ac_cv_safe_to_define___extensions__=no
  3335. fi
  3336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3337. fi
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3339. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3340. test $ac_cv_safe_to_define___extensions__ = yes &&
  3341. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3342. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3343. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3344. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3345. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3346. # Checks for programs.
  3347. ac_ext=c
  3348. ac_cpp='$CPP $CPPFLAGS'
  3349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3352. if test -n "$ac_tool_prefix"; then
  3353. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3354. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3356. $as_echo_n "checking for $ac_word... " >&6; }
  3357. if ${ac_cv_prog_CC+:} false; then :
  3358. $as_echo_n "(cached) " >&6
  3359. else
  3360. if test -n "$CC"; then
  3361. ac_cv_prog_CC="$CC" # Let the user override the test.
  3362. else
  3363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3364. for as_dir in $PATH
  3365. do
  3366. IFS=$as_save_IFS
  3367. test -z "$as_dir" && as_dir=.
  3368. for ac_exec_ext in '' $ac_executable_extensions; do
  3369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3370. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3372. break 2
  3373. fi
  3374. done
  3375. done
  3376. IFS=$as_save_IFS
  3377. fi
  3378. fi
  3379. CC=$ac_cv_prog_CC
  3380. if test -n "$CC"; then
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3382. $as_echo "$CC" >&6; }
  3383. else
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3385. $as_echo "no" >&6; }
  3386. fi
  3387. fi
  3388. if test -z "$ac_cv_prog_CC"; then
  3389. ac_ct_CC=$CC
  3390. # Extract the first word of "gcc", so it can be a program name with args.
  3391. set dummy gcc; ac_word=$2
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3393. $as_echo_n "checking for $ac_word... " >&6; }
  3394. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. if test -n "$ac_ct_CC"; then
  3398. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. test -z "$as_dir" && as_dir=.
  3405. for ac_exec_ext in '' $ac_executable_extensions; do
  3406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3407. ac_cv_prog_ac_ct_CC="gcc"
  3408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3409. break 2
  3410. fi
  3411. done
  3412. done
  3413. IFS=$as_save_IFS
  3414. fi
  3415. fi
  3416. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3417. if test -n "$ac_ct_CC"; then
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3419. $as_echo "$ac_ct_CC" >&6; }
  3420. else
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3422. $as_echo "no" >&6; }
  3423. fi
  3424. if test "x$ac_ct_CC" = x; then
  3425. CC=""
  3426. else
  3427. case $cross_compiling:$ac_tool_warned in
  3428. yes:)
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3430. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3431. ac_tool_warned=yes ;;
  3432. esac
  3433. CC=$ac_ct_CC
  3434. fi
  3435. else
  3436. CC="$ac_cv_prog_CC"
  3437. fi
  3438. if test -z "$CC"; then
  3439. if test -n "$ac_tool_prefix"; then
  3440. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3441. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3443. $as_echo_n "checking for $ac_word... " >&6; }
  3444. if ${ac_cv_prog_CC+:} false; then :
  3445. $as_echo_n "(cached) " >&6
  3446. else
  3447. if test -n "$CC"; then
  3448. ac_cv_prog_CC="$CC" # Let the user override the test.
  3449. else
  3450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3451. for as_dir in $PATH
  3452. do
  3453. IFS=$as_save_IFS
  3454. test -z "$as_dir" && as_dir=.
  3455. for ac_exec_ext in '' $ac_executable_extensions; do
  3456. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3457. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3459. break 2
  3460. fi
  3461. done
  3462. done
  3463. IFS=$as_save_IFS
  3464. fi
  3465. fi
  3466. CC=$ac_cv_prog_CC
  3467. if test -n "$CC"; then
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3469. $as_echo "$CC" >&6; }
  3470. else
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3472. $as_echo "no" >&6; }
  3473. fi
  3474. fi
  3475. fi
  3476. if test -z "$CC"; then
  3477. # Extract the first word of "cc", so it can be a program name with args.
  3478. set dummy cc; ac_word=$2
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3480. $as_echo_n "checking for $ac_word... " >&6; }
  3481. if ${ac_cv_prog_CC+:} false; then :
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. if test -n "$CC"; then
  3485. ac_cv_prog_CC="$CC" # Let the user override the test.
  3486. else
  3487. ac_prog_rejected=no
  3488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3489. for as_dir in $PATH
  3490. do
  3491. IFS=$as_save_IFS
  3492. test -z "$as_dir" && as_dir=.
  3493. for ac_exec_ext in '' $ac_executable_extensions; do
  3494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3495. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3496. ac_prog_rejected=yes
  3497. continue
  3498. fi
  3499. ac_cv_prog_CC="cc"
  3500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3501. break 2
  3502. fi
  3503. done
  3504. done
  3505. IFS=$as_save_IFS
  3506. if test $ac_prog_rejected = yes; then
  3507. # We found a bogon in the path, so make sure we never use it.
  3508. set dummy $ac_cv_prog_CC
  3509. shift
  3510. if test $# != 0; then
  3511. # We chose a different compiler from the bogus one.
  3512. # However, it has the same basename, so the bogon will be chosen
  3513. # first if we set CC to just the basename; use the full file name.
  3514. shift
  3515. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3516. fi
  3517. fi
  3518. fi
  3519. fi
  3520. CC=$ac_cv_prog_CC
  3521. if test -n "$CC"; then
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3523. $as_echo "$CC" >&6; }
  3524. else
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3526. $as_echo "no" >&6; }
  3527. fi
  3528. fi
  3529. if test -z "$CC"; then
  3530. if test -n "$ac_tool_prefix"; then
  3531. for ac_prog in cl.exe
  3532. do
  3533. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3534. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3536. $as_echo_n "checking for $ac_word... " >&6; }
  3537. if ${ac_cv_prog_CC+:} false; then :
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. if test -n "$CC"; then
  3541. ac_cv_prog_CC="$CC" # Let the user override the test.
  3542. else
  3543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3544. for as_dir in $PATH
  3545. do
  3546. IFS=$as_save_IFS
  3547. test -z "$as_dir" && as_dir=.
  3548. for ac_exec_ext in '' $ac_executable_extensions; do
  3549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3550. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3552. break 2
  3553. fi
  3554. done
  3555. done
  3556. IFS=$as_save_IFS
  3557. fi
  3558. fi
  3559. CC=$ac_cv_prog_CC
  3560. if test -n "$CC"; then
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3562. $as_echo "$CC" >&6; }
  3563. else
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3565. $as_echo "no" >&6; }
  3566. fi
  3567. test -n "$CC" && break
  3568. done
  3569. fi
  3570. if test -z "$CC"; then
  3571. ac_ct_CC=$CC
  3572. for ac_prog in cl.exe
  3573. do
  3574. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3575. set dummy $ac_prog; ac_word=$2
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3577. $as_echo_n "checking for $ac_word... " >&6; }
  3578. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. if test -n "$ac_ct_CC"; then
  3582. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3583. else
  3584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3585. for as_dir in $PATH
  3586. do
  3587. IFS=$as_save_IFS
  3588. test -z "$as_dir" && as_dir=.
  3589. for ac_exec_ext in '' $ac_executable_extensions; do
  3590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3591. ac_cv_prog_ac_ct_CC="$ac_prog"
  3592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3593. break 2
  3594. fi
  3595. done
  3596. done
  3597. IFS=$as_save_IFS
  3598. fi
  3599. fi
  3600. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3601. if test -n "$ac_ct_CC"; then
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3603. $as_echo "$ac_ct_CC" >&6; }
  3604. else
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3606. $as_echo "no" >&6; }
  3607. fi
  3608. test -n "$ac_ct_CC" && break
  3609. done
  3610. if test "x$ac_ct_CC" = x; then
  3611. CC=""
  3612. else
  3613. case $cross_compiling:$ac_tool_warned in
  3614. yes:)
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3616. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3617. ac_tool_warned=yes ;;
  3618. esac
  3619. CC=$ac_ct_CC
  3620. fi
  3621. fi
  3622. fi
  3623. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3625. as_fn_error $? "no acceptable C compiler found in \$PATH
  3626. See \`config.log' for more details" "$LINENO" 5; }
  3627. # Provide some information about the compiler.
  3628. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3629. set X $ac_compile
  3630. ac_compiler=$2
  3631. for ac_option in --version -v -V -qversion; do
  3632. { { ac_try="$ac_compiler $ac_option >&5"
  3633. case "(($ac_try" in
  3634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3635. *) ac_try_echo=$ac_try;;
  3636. esac
  3637. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3638. $as_echo "$ac_try_echo"; } >&5
  3639. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3640. ac_status=$?
  3641. if test -s conftest.err; then
  3642. sed '10a\
  3643. ... rest of stderr output deleted ...
  3644. 10q' conftest.err >conftest.er1
  3645. cat conftest.er1 >&5
  3646. fi
  3647. rm -f conftest.er1 conftest.err
  3648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3649. test $ac_status = 0; }
  3650. done
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3652. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3653. if ${ac_cv_c_compiler_gnu+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3657. /* end confdefs.h. */
  3658. int
  3659. main ()
  3660. {
  3661. #ifndef __GNUC__
  3662. choke me
  3663. #endif
  3664. ;
  3665. return 0;
  3666. }
  3667. _ACEOF
  3668. if ac_fn_c_try_compile "$LINENO"; then :
  3669. ac_compiler_gnu=yes
  3670. else
  3671. ac_compiler_gnu=no
  3672. fi
  3673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3674. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3675. fi
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3677. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3678. if test $ac_compiler_gnu = yes; then
  3679. GCC=yes
  3680. else
  3681. GCC=
  3682. fi
  3683. ac_test_CFLAGS=${CFLAGS+set}
  3684. ac_save_CFLAGS=$CFLAGS
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3686. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3687. if ${ac_cv_prog_cc_g+:} false; then :
  3688. $as_echo_n "(cached) " >&6
  3689. else
  3690. ac_save_c_werror_flag=$ac_c_werror_flag
  3691. ac_c_werror_flag=yes
  3692. ac_cv_prog_cc_g=no
  3693. CFLAGS="-g"
  3694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3695. /* end confdefs.h. */
  3696. int
  3697. main ()
  3698. {
  3699. ;
  3700. return 0;
  3701. }
  3702. _ACEOF
  3703. if ac_fn_c_try_compile "$LINENO"; then :
  3704. ac_cv_prog_cc_g=yes
  3705. else
  3706. CFLAGS=""
  3707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3708. /* end confdefs.h. */
  3709. int
  3710. main ()
  3711. {
  3712. ;
  3713. return 0;
  3714. }
  3715. _ACEOF
  3716. if ac_fn_c_try_compile "$LINENO"; then :
  3717. else
  3718. ac_c_werror_flag=$ac_save_c_werror_flag
  3719. CFLAGS="-g"
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722. int
  3723. main ()
  3724. {
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. if ac_fn_c_try_compile "$LINENO"; then :
  3730. ac_cv_prog_cc_g=yes
  3731. fi
  3732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3733. fi
  3734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3735. fi
  3736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3737. ac_c_werror_flag=$ac_save_c_werror_flag
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3740. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3741. if test "$ac_test_CFLAGS" = set; then
  3742. CFLAGS=$ac_save_CFLAGS
  3743. elif test $ac_cv_prog_cc_g = yes; then
  3744. if test "$GCC" = yes; then
  3745. CFLAGS="-g -O2"
  3746. else
  3747. CFLAGS="-g"
  3748. fi
  3749. else
  3750. if test "$GCC" = yes; then
  3751. CFLAGS="-O2"
  3752. else
  3753. CFLAGS=
  3754. fi
  3755. fi
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3757. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3758. if ${ac_cv_prog_cc_c89+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. ac_cv_prog_cc_c89=no
  3762. ac_save_CC=$CC
  3763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3764. /* end confdefs.h. */
  3765. #include <stdarg.h>
  3766. #include <stdio.h>
  3767. struct stat;
  3768. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3769. struct buf { int x; };
  3770. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3771. static char *e (p, i)
  3772. char **p;
  3773. int i;
  3774. {
  3775. return p[i];
  3776. }
  3777. static char *f (char * (*g) (char **, int), char **p, ...)
  3778. {
  3779. char *s;
  3780. va_list v;
  3781. va_start (v,p);
  3782. s = g (p, va_arg (v,int));
  3783. va_end (v);
  3784. return s;
  3785. }
  3786. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3787. function prototypes and stuff, but not '\xHH' hex character constants.
  3788. These don't provoke an error unfortunately, instead are silently treated
  3789. as 'x'. The following induces an error, until -std is added to get
  3790. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3791. array size at least. It's necessary to write '\x00'==0 to get something
  3792. that's true only with -std. */
  3793. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3794. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3795. inside strings and character constants. */
  3796. #define FOO(x) 'x'
  3797. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3798. int test (int i, double x);
  3799. struct s1 {int (*f) (int a);};
  3800. struct s2 {int (*f) (double a);};
  3801. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3802. int argc;
  3803. char **argv;
  3804. int
  3805. main ()
  3806. {
  3807. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3808. ;
  3809. return 0;
  3810. }
  3811. _ACEOF
  3812. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3813. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3814. do
  3815. CC="$ac_save_CC $ac_arg"
  3816. if ac_fn_c_try_compile "$LINENO"; then :
  3817. ac_cv_prog_cc_c89=$ac_arg
  3818. fi
  3819. rm -f core conftest.err conftest.$ac_objext
  3820. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3821. done
  3822. rm -f conftest.$ac_ext
  3823. CC=$ac_save_CC
  3824. fi
  3825. # AC_CACHE_VAL
  3826. case "x$ac_cv_prog_cc_c89" in
  3827. x)
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3829. $as_echo "none needed" >&6; } ;;
  3830. xno)
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3832. $as_echo "unsupported" >&6; } ;;
  3833. *)
  3834. CC="$CC $ac_cv_prog_cc_c89"
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3836. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3837. esac
  3838. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3839. fi
  3840. ac_ext=c
  3841. ac_cpp='$CPP $CPPFLAGS'
  3842. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3843. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3844. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3845. # Make sure we can run config.sub.
  3846. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3847. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3849. $as_echo_n "checking build system type... " >&6; }
  3850. if ${ac_cv_build+:} false; then :
  3851. $as_echo_n "(cached) " >&6
  3852. else
  3853. ac_build_alias=$build_alias
  3854. test "x$ac_build_alias" = x &&
  3855. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3856. test "x$ac_build_alias" = x &&
  3857. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3858. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3859. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3860. fi
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3862. $as_echo "$ac_cv_build" >&6; }
  3863. case $ac_cv_build in
  3864. *-*-*) ;;
  3865. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3866. esac
  3867. build=$ac_cv_build
  3868. ac_save_IFS=$IFS; IFS='-'
  3869. set x $ac_cv_build
  3870. shift
  3871. build_cpu=$1
  3872. build_vendor=$2
  3873. shift; shift
  3874. # Remember, the first character of IFS is used to create $*,
  3875. # except with old shells:
  3876. build_os=$*
  3877. IFS=$ac_save_IFS
  3878. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3880. $as_echo_n "checking host system type... " >&6; }
  3881. if ${ac_cv_host+:} false; then :
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. if test "x$host_alias" = x; then
  3885. ac_cv_host=$ac_cv_build
  3886. else
  3887. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3888. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3889. fi
  3890. fi
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3892. $as_echo "$ac_cv_host" >&6; }
  3893. case $ac_cv_host in
  3894. *-*-*) ;;
  3895. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3896. esac
  3897. host=$ac_cv_host
  3898. ac_save_IFS=$IFS; IFS='-'
  3899. set x $ac_cv_host
  3900. shift
  3901. host_cpu=$1
  3902. host_vendor=$2
  3903. shift; shift
  3904. # Remember, the first character of IFS is used to create $*,
  3905. # except with old shells:
  3906. host_os=$*
  3907. IFS=$ac_save_IFS
  3908. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3909. enable_win32_dll=yes
  3910. case $host in
  3911. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3912. if test -n "$ac_tool_prefix"; then
  3913. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3914. set dummy ${ac_tool_prefix}as; ac_word=$2
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3916. $as_echo_n "checking for $ac_word... " >&6; }
  3917. if ${ac_cv_prog_AS+:} false; then :
  3918. $as_echo_n "(cached) " >&6
  3919. else
  3920. if test -n "$AS"; then
  3921. ac_cv_prog_AS="$AS" # Let the user override the test.
  3922. else
  3923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. for ac_exec_ext in '' $ac_executable_extensions; do
  3929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3930. ac_cv_prog_AS="${ac_tool_prefix}as"
  3931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3932. break 2
  3933. fi
  3934. done
  3935. done
  3936. IFS=$as_save_IFS
  3937. fi
  3938. fi
  3939. AS=$ac_cv_prog_AS
  3940. if test -n "$AS"; then
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3942. $as_echo "$AS" >&6; }
  3943. else
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3945. $as_echo "no" >&6; }
  3946. fi
  3947. fi
  3948. if test -z "$ac_cv_prog_AS"; then
  3949. ac_ct_AS=$AS
  3950. # Extract the first word of "as", so it can be a program name with args.
  3951. set dummy as; ac_word=$2
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3953. $as_echo_n "checking for $ac_word... " >&6; }
  3954. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3955. $as_echo_n "(cached) " >&6
  3956. else
  3957. if test -n "$ac_ct_AS"; then
  3958. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3959. else
  3960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3961. for as_dir in $PATH
  3962. do
  3963. IFS=$as_save_IFS
  3964. test -z "$as_dir" && as_dir=.
  3965. for ac_exec_ext in '' $ac_executable_extensions; do
  3966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3967. ac_cv_prog_ac_ct_AS="as"
  3968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3969. break 2
  3970. fi
  3971. done
  3972. done
  3973. IFS=$as_save_IFS
  3974. fi
  3975. fi
  3976. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3977. if test -n "$ac_ct_AS"; then
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3979. $as_echo "$ac_ct_AS" >&6; }
  3980. else
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3982. $as_echo "no" >&6; }
  3983. fi
  3984. if test "x$ac_ct_AS" = x; then
  3985. AS="false"
  3986. else
  3987. case $cross_compiling:$ac_tool_warned in
  3988. yes:)
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3991. ac_tool_warned=yes ;;
  3992. esac
  3993. AS=$ac_ct_AS
  3994. fi
  3995. else
  3996. AS="$ac_cv_prog_AS"
  3997. fi
  3998. if test -n "$ac_tool_prefix"; then
  3999. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4000. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4002. $as_echo_n "checking for $ac_word... " >&6; }
  4003. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. if test -n "$DLLTOOL"; then
  4007. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4008. else
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4016. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4018. break 2
  4019. fi
  4020. done
  4021. done
  4022. IFS=$as_save_IFS
  4023. fi
  4024. fi
  4025. DLLTOOL=$ac_cv_prog_DLLTOOL
  4026. if test -n "$DLLTOOL"; then
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4028. $as_echo "$DLLTOOL" >&6; }
  4029. else
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4031. $as_echo "no" >&6; }
  4032. fi
  4033. fi
  4034. if test -z "$ac_cv_prog_DLLTOOL"; then
  4035. ac_ct_DLLTOOL=$DLLTOOL
  4036. # Extract the first word of "dlltool", so it can be a program name with args.
  4037. set dummy dlltool; ac_word=$2
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4039. $as_echo_n "checking for $ac_word... " >&6; }
  4040. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4041. $as_echo_n "(cached) " >&6
  4042. else
  4043. if test -n "$ac_ct_DLLTOOL"; then
  4044. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4045. else
  4046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4047. for as_dir in $PATH
  4048. do
  4049. IFS=$as_save_IFS
  4050. test -z "$as_dir" && as_dir=.
  4051. for ac_exec_ext in '' $ac_executable_extensions; do
  4052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4053. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4055. break 2
  4056. fi
  4057. done
  4058. done
  4059. IFS=$as_save_IFS
  4060. fi
  4061. fi
  4062. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4063. if test -n "$ac_ct_DLLTOOL"; then
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4065. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4066. else
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4068. $as_echo "no" >&6; }
  4069. fi
  4070. if test "x$ac_ct_DLLTOOL" = x; then
  4071. DLLTOOL="false"
  4072. else
  4073. case $cross_compiling:$ac_tool_warned in
  4074. yes:)
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4077. ac_tool_warned=yes ;;
  4078. esac
  4079. DLLTOOL=$ac_ct_DLLTOOL
  4080. fi
  4081. else
  4082. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4083. fi
  4084. if test -n "$ac_tool_prefix"; then
  4085. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4086. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4088. $as_echo_n "checking for $ac_word... " >&6; }
  4089. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4090. $as_echo_n "(cached) " >&6
  4091. else
  4092. if test -n "$OBJDUMP"; then
  4093. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4094. else
  4095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4096. for as_dir in $PATH
  4097. do
  4098. IFS=$as_save_IFS
  4099. test -z "$as_dir" && as_dir=.
  4100. for ac_exec_ext in '' $ac_executable_extensions; do
  4101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4102. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4104. break 2
  4105. fi
  4106. done
  4107. done
  4108. IFS=$as_save_IFS
  4109. fi
  4110. fi
  4111. OBJDUMP=$ac_cv_prog_OBJDUMP
  4112. if test -n "$OBJDUMP"; then
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4114. $as_echo "$OBJDUMP" >&6; }
  4115. else
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4117. $as_echo "no" >&6; }
  4118. fi
  4119. fi
  4120. if test -z "$ac_cv_prog_OBJDUMP"; then
  4121. ac_ct_OBJDUMP=$OBJDUMP
  4122. # Extract the first word of "objdump", so it can be a program name with args.
  4123. set dummy objdump; ac_word=$2
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4125. $as_echo_n "checking for $ac_word... " >&6; }
  4126. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4127. $as_echo_n "(cached) " >&6
  4128. else
  4129. if test -n "$ac_ct_OBJDUMP"; then
  4130. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4131. else
  4132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4133. for as_dir in $PATH
  4134. do
  4135. IFS=$as_save_IFS
  4136. test -z "$as_dir" && as_dir=.
  4137. for ac_exec_ext in '' $ac_executable_extensions; do
  4138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4139. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4141. break 2
  4142. fi
  4143. done
  4144. done
  4145. IFS=$as_save_IFS
  4146. fi
  4147. fi
  4148. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4149. if test -n "$ac_ct_OBJDUMP"; then
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4151. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4152. else
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4154. $as_echo "no" >&6; }
  4155. fi
  4156. if test "x$ac_ct_OBJDUMP" = x; then
  4157. OBJDUMP="false"
  4158. else
  4159. case $cross_compiling:$ac_tool_warned in
  4160. yes:)
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4163. ac_tool_warned=yes ;;
  4164. esac
  4165. OBJDUMP=$ac_ct_OBJDUMP
  4166. fi
  4167. else
  4168. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4169. fi
  4170. ;;
  4171. esac
  4172. test -z "$AS" && AS=as
  4173. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4174. test -z "$OBJDUMP" && OBJDUMP=objdump
  4175. case `pwd` in
  4176. *\ * | *\ *)
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4178. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4179. esac
  4180. macro_version='2.4.2'
  4181. macro_revision='1.3337'
  4182. ltmain="$ac_aux_dir/ltmain.sh"
  4183. # Backslashify metacharacters that are still active within
  4184. # double-quoted strings.
  4185. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4186. # Same as above, but do not quote variable references.
  4187. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4188. # Sed substitution to delay expansion of an escaped shell variable in a
  4189. # double_quote_subst'ed string.
  4190. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4191. # Sed substitution to delay expansion of an escaped single quote.
  4192. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4193. # Sed substitution to avoid accidental globbing in evaled expressions
  4194. no_glob_subst='s/\*/\\\*/g'
  4195. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4196. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4197. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4199. $as_echo_n "checking how to print strings... " >&6; }
  4200. # Test print first, because it will be a builtin if present.
  4201. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4202. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4203. ECHO='print -r --'
  4204. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4205. ECHO='printf %s\n'
  4206. else
  4207. # Use this function as a fallback that always works.
  4208. func_fallback_echo ()
  4209. {
  4210. eval 'cat <<_LTECHO_EOF
  4211. $1
  4212. _LTECHO_EOF'
  4213. }
  4214. ECHO='func_fallback_echo'
  4215. fi
  4216. # func_echo_all arg...
  4217. # Invoke $ECHO with all args, space-separated.
  4218. func_echo_all ()
  4219. {
  4220. $ECHO ""
  4221. }
  4222. case "$ECHO" in
  4223. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4224. $as_echo "printf" >&6; } ;;
  4225. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4226. $as_echo "print -r" >&6; } ;;
  4227. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4228. $as_echo "cat" >&6; } ;;
  4229. esac
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4231. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4232. if ${ac_cv_path_SED+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4236. for ac_i in 1 2 3 4 5 6 7; do
  4237. ac_script="$ac_script$as_nl$ac_script"
  4238. done
  4239. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4240. { ac_script=; unset ac_script;}
  4241. if test -z "$SED"; then
  4242. ac_path_SED_found=false
  4243. # Loop through the user's path and test for each of PROGNAME-LIST
  4244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4245. for as_dir in $PATH
  4246. do
  4247. IFS=$as_save_IFS
  4248. test -z "$as_dir" && as_dir=.
  4249. for ac_prog in sed gsed; do
  4250. for ac_exec_ext in '' $ac_executable_extensions; do
  4251. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4252. as_fn_executable_p "$ac_path_SED" || continue
  4253. # Check for GNU ac_path_SED and select it if it is found.
  4254. # Check for GNU $ac_path_SED
  4255. case `"$ac_path_SED" --version 2>&1` in
  4256. *GNU*)
  4257. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4258. *)
  4259. ac_count=0
  4260. $as_echo_n 0123456789 >"conftest.in"
  4261. while :
  4262. do
  4263. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4264. mv "conftest.tmp" "conftest.in"
  4265. cp "conftest.in" "conftest.nl"
  4266. $as_echo '' >> "conftest.nl"
  4267. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4268. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4269. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4270. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4271. # Best one so far, save it but keep looking for a better one
  4272. ac_cv_path_SED="$ac_path_SED"
  4273. ac_path_SED_max=$ac_count
  4274. fi
  4275. # 10*(2^10) chars as input seems more than enough
  4276. test $ac_count -gt 10 && break
  4277. done
  4278. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4279. esac
  4280. $ac_path_SED_found && break 3
  4281. done
  4282. done
  4283. done
  4284. IFS=$as_save_IFS
  4285. if test -z "$ac_cv_path_SED"; then
  4286. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4287. fi
  4288. else
  4289. ac_cv_path_SED=$SED
  4290. fi
  4291. fi
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4293. $as_echo "$ac_cv_path_SED" >&6; }
  4294. SED="$ac_cv_path_SED"
  4295. rm -f conftest.sed
  4296. test -z "$SED" && SED=sed
  4297. Xsed="$SED -e 1s/^X//"
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4299. $as_echo_n "checking for fgrep... " >&6; }
  4300. if ${ac_cv_path_FGREP+:} false; then :
  4301. $as_echo_n "(cached) " >&6
  4302. else
  4303. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4304. then ac_cv_path_FGREP="$GREP -F"
  4305. else
  4306. if test -z "$FGREP"; then
  4307. ac_path_FGREP_found=false
  4308. # Loop through the user's path and test for each of PROGNAME-LIST
  4309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4310. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4311. do
  4312. IFS=$as_save_IFS
  4313. test -z "$as_dir" && as_dir=.
  4314. for ac_prog in fgrep; do
  4315. for ac_exec_ext in '' $ac_executable_extensions; do
  4316. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4317. as_fn_executable_p "$ac_path_FGREP" || continue
  4318. # Check for GNU ac_path_FGREP and select it if it is found.
  4319. # Check for GNU $ac_path_FGREP
  4320. case `"$ac_path_FGREP" --version 2>&1` in
  4321. *GNU*)
  4322. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4323. *)
  4324. ac_count=0
  4325. $as_echo_n 0123456789 >"conftest.in"
  4326. while :
  4327. do
  4328. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4329. mv "conftest.tmp" "conftest.in"
  4330. cp "conftest.in" "conftest.nl"
  4331. $as_echo 'FGREP' >> "conftest.nl"
  4332. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4333. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4334. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4335. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4336. # Best one so far, save it but keep looking for a better one
  4337. ac_cv_path_FGREP="$ac_path_FGREP"
  4338. ac_path_FGREP_max=$ac_count
  4339. fi
  4340. # 10*(2^10) chars as input seems more than enough
  4341. test $ac_count -gt 10 && break
  4342. done
  4343. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4344. esac
  4345. $ac_path_FGREP_found && break 3
  4346. done
  4347. done
  4348. done
  4349. IFS=$as_save_IFS
  4350. if test -z "$ac_cv_path_FGREP"; then
  4351. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4352. fi
  4353. else
  4354. ac_cv_path_FGREP=$FGREP
  4355. fi
  4356. fi
  4357. fi
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4359. $as_echo "$ac_cv_path_FGREP" >&6; }
  4360. FGREP="$ac_cv_path_FGREP"
  4361. test -z "$GREP" && GREP=grep
  4362. # Check whether --with-gnu-ld was given.
  4363. if test "${with_gnu_ld+set}" = set; then :
  4364. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4365. else
  4366. with_gnu_ld=no
  4367. fi
  4368. ac_prog=ld
  4369. if test "$GCC" = yes; then
  4370. # Check if gcc -print-prog-name=ld gives a path.
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4372. $as_echo_n "checking for ld used by $CC... " >&6; }
  4373. case $host in
  4374. *-*-mingw*)
  4375. # gcc leaves a trailing carriage return which upsets mingw
  4376. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4377. *)
  4378. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4379. esac
  4380. case $ac_prog in
  4381. # Accept absolute paths.
  4382. [\\/]* | ?:[\\/]*)
  4383. re_direlt='/[^/][^/]*/\.\./'
  4384. # Canonicalize the pathname of ld
  4385. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4386. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4387. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4388. done
  4389. test -z "$LD" && LD="$ac_prog"
  4390. ;;
  4391. "")
  4392. # If it fails, then pretend we aren't using GCC.
  4393. ac_prog=ld
  4394. ;;
  4395. *)
  4396. # If it is relative, then search for the first ld in PATH.
  4397. with_gnu_ld=unknown
  4398. ;;
  4399. esac
  4400. elif test "$with_gnu_ld" = yes; then
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4402. $as_echo_n "checking for GNU ld... " >&6; }
  4403. else
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4405. $as_echo_n "checking for non-GNU ld... " >&6; }
  4406. fi
  4407. if ${lt_cv_path_LD+:} false; then :
  4408. $as_echo_n "(cached) " >&6
  4409. else
  4410. if test -z "$LD"; then
  4411. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4412. for ac_dir in $PATH; do
  4413. IFS="$lt_save_ifs"
  4414. test -z "$ac_dir" && ac_dir=.
  4415. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4416. lt_cv_path_LD="$ac_dir/$ac_prog"
  4417. # Check to see if the program is GNU ld. I'd rather use --version,
  4418. # but apparently some variants of GNU ld only accept -v.
  4419. # Break only if it was the GNU/non-GNU ld that we prefer.
  4420. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4421. *GNU* | *'with BFD'*)
  4422. test "$with_gnu_ld" != no && break
  4423. ;;
  4424. *)
  4425. test "$with_gnu_ld" != yes && break
  4426. ;;
  4427. esac
  4428. fi
  4429. done
  4430. IFS="$lt_save_ifs"
  4431. else
  4432. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4433. fi
  4434. fi
  4435. LD="$lt_cv_path_LD"
  4436. if test -n "$LD"; then
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4438. $as_echo "$LD" >&6; }
  4439. else
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4441. $as_echo "no" >&6; }
  4442. fi
  4443. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4445. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4446. if ${lt_cv_prog_gnu_ld+:} false; then :
  4447. $as_echo_n "(cached) " >&6
  4448. else
  4449. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4450. case `$LD -v 2>&1 </dev/null` in
  4451. *GNU* | *'with BFD'*)
  4452. lt_cv_prog_gnu_ld=yes
  4453. ;;
  4454. *)
  4455. lt_cv_prog_gnu_ld=no
  4456. ;;
  4457. esac
  4458. fi
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4460. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4461. with_gnu_ld=$lt_cv_prog_gnu_ld
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4463. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4464. if ${lt_cv_path_NM+:} false; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. if test -n "$NM"; then
  4468. # Let the user override the test.
  4469. lt_cv_path_NM="$NM"
  4470. else
  4471. lt_nm_to_check="${ac_tool_prefix}nm"
  4472. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4473. lt_nm_to_check="$lt_nm_to_check nm"
  4474. fi
  4475. for lt_tmp_nm in $lt_nm_to_check; do
  4476. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4477. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4478. IFS="$lt_save_ifs"
  4479. test -z "$ac_dir" && ac_dir=.
  4480. tmp_nm="$ac_dir/$lt_tmp_nm"
  4481. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4482. # Check to see if the nm accepts a BSD-compat flag.
  4483. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4484. # nm: unknown option "B" ignored
  4485. # Tru64's nm complains that /dev/null is an invalid object file
  4486. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4487. */dev/null* | *'Invalid file or object type'*)
  4488. lt_cv_path_NM="$tmp_nm -B"
  4489. break
  4490. ;;
  4491. *)
  4492. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4493. */dev/null*)
  4494. lt_cv_path_NM="$tmp_nm -p"
  4495. break
  4496. ;;
  4497. *)
  4498. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4499. continue # so that we can try to find one that supports BSD flags
  4500. ;;
  4501. esac
  4502. ;;
  4503. esac
  4504. fi
  4505. done
  4506. IFS="$lt_save_ifs"
  4507. done
  4508. : ${lt_cv_path_NM=no}
  4509. fi
  4510. fi
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4512. $as_echo "$lt_cv_path_NM" >&6; }
  4513. if test "$lt_cv_path_NM" != "no"; then
  4514. NM="$lt_cv_path_NM"
  4515. else
  4516. # Didn't find any BSD compatible name lister, look for dumpbin.
  4517. if test -n "$DUMPBIN"; then :
  4518. # Let the user override the test.
  4519. else
  4520. if test -n "$ac_tool_prefix"; then
  4521. for ac_prog in dumpbin "link -dump"
  4522. do
  4523. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4524. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4526. $as_echo_n "checking for $ac_word... " >&6; }
  4527. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. if test -n "$DUMPBIN"; then
  4531. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4532. else
  4533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534. for as_dir in $PATH
  4535. do
  4536. IFS=$as_save_IFS
  4537. test -z "$as_dir" && as_dir=.
  4538. for ac_exec_ext in '' $ac_executable_extensions; do
  4539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4540. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4542. break 2
  4543. fi
  4544. done
  4545. done
  4546. IFS=$as_save_IFS
  4547. fi
  4548. fi
  4549. DUMPBIN=$ac_cv_prog_DUMPBIN
  4550. if test -n "$DUMPBIN"; then
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4552. $as_echo "$DUMPBIN" >&6; }
  4553. else
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4555. $as_echo "no" >&6; }
  4556. fi
  4557. test -n "$DUMPBIN" && break
  4558. done
  4559. fi
  4560. if test -z "$DUMPBIN"; then
  4561. ac_ct_DUMPBIN=$DUMPBIN
  4562. for ac_prog in dumpbin "link -dump"
  4563. do
  4564. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4565. set dummy $ac_prog; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$ac_ct_DUMPBIN"; then
  4572. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4581. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4591. if test -n "$ac_ct_DUMPBIN"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4593. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. test -n "$ac_ct_DUMPBIN" && break
  4599. done
  4600. if test "x$ac_ct_DUMPBIN" = x; then
  4601. DUMPBIN=":"
  4602. else
  4603. case $cross_compiling:$ac_tool_warned in
  4604. yes:)
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4607. ac_tool_warned=yes ;;
  4608. esac
  4609. DUMPBIN=$ac_ct_DUMPBIN
  4610. fi
  4611. fi
  4612. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4613. *COFF*)
  4614. DUMPBIN="$DUMPBIN -symbols"
  4615. ;;
  4616. *)
  4617. DUMPBIN=:
  4618. ;;
  4619. esac
  4620. fi
  4621. if test "$DUMPBIN" != ":"; then
  4622. NM="$DUMPBIN"
  4623. fi
  4624. fi
  4625. test -z "$NM" && NM=nm
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4627. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4628. if ${lt_cv_nm_interface+:} false; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. lt_cv_nm_interface="BSD nm"
  4632. echo "int some_variable = 0;" > conftest.$ac_ext
  4633. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4634. (eval "$ac_compile" 2>conftest.err)
  4635. cat conftest.err >&5
  4636. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4637. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4638. cat conftest.err >&5
  4639. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4640. cat conftest.out >&5
  4641. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4642. lt_cv_nm_interface="MS dumpbin"
  4643. fi
  4644. rm -f conftest*
  4645. fi
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4647. $as_echo "$lt_cv_nm_interface" >&6; }
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4649. $as_echo_n "checking whether ln -s works... " >&6; }
  4650. LN_S=$as_ln_s
  4651. if test "$LN_S" = "ln -s"; then
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4653. $as_echo "yes" >&6; }
  4654. else
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4656. $as_echo "no, using $LN_S" >&6; }
  4657. fi
  4658. # find the maximum length of command line arguments
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4660. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4661. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4662. $as_echo_n "(cached) " >&6
  4663. else
  4664. i=0
  4665. teststring="ABCD"
  4666. case $build_os in
  4667. msdosdjgpp*)
  4668. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4669. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4670. # during glob expansion). Even if it were fixed, the result of this
  4671. # check would be larger than it should be.
  4672. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4673. ;;
  4674. gnu*)
  4675. # Under GNU Hurd, this test is not required because there is
  4676. # no limit to the length of command line arguments.
  4677. # Libtool will interpret -1 as no limit whatsoever
  4678. lt_cv_sys_max_cmd_len=-1;
  4679. ;;
  4680. cygwin* | mingw* | cegcc*)
  4681. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4682. # about 5 minutes as the teststring grows exponentially.
  4683. # Worse, since 9x/ME are not pre-emptively multitasking,
  4684. # you end up with a "frozen" computer, even though with patience
  4685. # the test eventually succeeds (with a max line length of 256k).
  4686. # Instead, let's just punt: use the minimum linelength reported by
  4687. # all of the supported platforms: 8192 (on NT/2K/XP).
  4688. lt_cv_sys_max_cmd_len=8192;
  4689. ;;
  4690. mint*)
  4691. # On MiNT this can take a long time and run out of memory.
  4692. lt_cv_sys_max_cmd_len=8192;
  4693. ;;
  4694. amigaos*)
  4695. # On AmigaOS with pdksh, this test takes hours, literally.
  4696. # So we just punt and use a minimum line length of 8192.
  4697. lt_cv_sys_max_cmd_len=8192;
  4698. ;;
  4699. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4700. # This has been around since 386BSD, at least. Likely further.
  4701. if test -x /sbin/sysctl; then
  4702. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4703. elif test -x /usr/sbin/sysctl; then
  4704. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4705. else
  4706. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4707. fi
  4708. # And add a safety zone
  4709. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4710. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4711. ;;
  4712. interix*)
  4713. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4714. lt_cv_sys_max_cmd_len=196608
  4715. ;;
  4716. os2*)
  4717. # The test takes a long time on OS/2.
  4718. lt_cv_sys_max_cmd_len=8192
  4719. ;;
  4720. osf*)
  4721. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4722. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4723. # nice to cause kernel panics so lets avoid the loop below.
  4724. # First set a reasonable default.
  4725. lt_cv_sys_max_cmd_len=16384
  4726. #
  4727. if test -x /sbin/sysconfig; then
  4728. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4729. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4730. esac
  4731. fi
  4732. ;;
  4733. sco3.2v5*)
  4734. lt_cv_sys_max_cmd_len=102400
  4735. ;;
  4736. sysv5* | sco5v6* | sysv4.2uw2*)
  4737. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4738. if test -n "$kargmax"; then
  4739. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4740. else
  4741. lt_cv_sys_max_cmd_len=32768
  4742. fi
  4743. ;;
  4744. *)
  4745. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4746. if test -n "$lt_cv_sys_max_cmd_len"; then
  4747. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4748. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4749. else
  4750. # Make teststring a little bigger before we do anything with it.
  4751. # a 1K string should be a reasonable start.
  4752. for i in 1 2 3 4 5 6 7 8 ; do
  4753. teststring=$teststring$teststring
  4754. done
  4755. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4756. # If test is not a shell built-in, we'll probably end up computing a
  4757. # maximum length that is only half of the actual maximum length, but
  4758. # we can't tell.
  4759. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4760. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4761. test $i != 17 # 1/2 MB should be enough
  4762. do
  4763. i=`expr $i + 1`
  4764. teststring=$teststring$teststring
  4765. done
  4766. # Only check the string length outside the loop.
  4767. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4768. teststring=
  4769. # Add a significant safety factor because C++ compilers can tack on
  4770. # massive amounts of additional arguments before passing them to the
  4771. # linker. It appears as though 1/2 is a usable value.
  4772. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4773. fi
  4774. ;;
  4775. esac
  4776. fi
  4777. if test -n $lt_cv_sys_max_cmd_len ; then
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4779. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4780. else
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4782. $as_echo "none" >&6; }
  4783. fi
  4784. max_cmd_len=$lt_cv_sys_max_cmd_len
  4785. : ${CP="cp -f"}
  4786. : ${MV="mv -f"}
  4787. : ${RM="rm -f"}
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4789. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4790. # Try some XSI features
  4791. xsi_shell=no
  4792. ( _lt_dummy="a/b/c"
  4793. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4794. = c,a/b,b/c, \
  4795. && eval 'test $(( 1 + 1 )) -eq 2 \
  4796. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4797. && xsi_shell=yes
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4799. $as_echo "$xsi_shell" >&6; }
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4801. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4802. lt_shell_append=no
  4803. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4804. >/dev/null 2>&1 \
  4805. && lt_shell_append=yes
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4807. $as_echo "$lt_shell_append" >&6; }
  4808. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4809. lt_unset=unset
  4810. else
  4811. lt_unset=false
  4812. fi
  4813. # test EBCDIC or ASCII
  4814. case `echo X|tr X '\101'` in
  4815. A) # ASCII based system
  4816. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4817. lt_SP2NL='tr \040 \012'
  4818. lt_NL2SP='tr \015\012 \040\040'
  4819. ;;
  4820. *) # EBCDIC based system
  4821. lt_SP2NL='tr \100 \n'
  4822. lt_NL2SP='tr \r\n \100\100'
  4823. ;;
  4824. esac
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4826. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4827. if ${lt_cv_to_host_file_cmd+:} false; then :
  4828. $as_echo_n "(cached) " >&6
  4829. else
  4830. case $host in
  4831. *-*-mingw* )
  4832. case $build in
  4833. *-*-mingw* ) # actually msys
  4834. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4835. ;;
  4836. *-*-cygwin* )
  4837. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4838. ;;
  4839. * ) # otherwise, assume *nix
  4840. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4841. ;;
  4842. esac
  4843. ;;
  4844. *-*-cygwin* )
  4845. case $build in
  4846. *-*-mingw* ) # actually msys
  4847. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4848. ;;
  4849. *-*-cygwin* )
  4850. lt_cv_to_host_file_cmd=func_convert_file_noop
  4851. ;;
  4852. * ) # otherwise, assume *nix
  4853. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4854. ;;
  4855. esac
  4856. ;;
  4857. * ) # unhandled hosts (and "normal" native builds)
  4858. lt_cv_to_host_file_cmd=func_convert_file_noop
  4859. ;;
  4860. esac
  4861. fi
  4862. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4864. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4866. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4867. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4868. $as_echo_n "(cached) " >&6
  4869. else
  4870. #assume ordinary cross tools, or native build.
  4871. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4872. case $host in
  4873. *-*-mingw* )
  4874. case $build in
  4875. *-*-mingw* ) # actually msys
  4876. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4877. ;;
  4878. esac
  4879. ;;
  4880. esac
  4881. fi
  4882. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4884. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4886. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4887. if ${lt_cv_ld_reload_flag+:} false; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. lt_cv_ld_reload_flag='-r'
  4891. fi
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4893. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4894. reload_flag=$lt_cv_ld_reload_flag
  4895. case $reload_flag in
  4896. "" | " "*) ;;
  4897. *) reload_flag=" $reload_flag" ;;
  4898. esac
  4899. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4900. case $host_os in
  4901. cygwin* | mingw* | pw32* | cegcc*)
  4902. if test "$GCC" != yes; then
  4903. reload_cmds=false
  4904. fi
  4905. ;;
  4906. darwin*)
  4907. if test "$GCC" = yes; then
  4908. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4909. else
  4910. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4911. fi
  4912. ;;
  4913. esac
  4914. if test -n "$ac_tool_prefix"; then
  4915. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4916. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4918. $as_echo_n "checking for $ac_word... " >&6; }
  4919. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -n "$OBJDUMP"; then
  4923. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4932. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. IFS=$as_save_IFS
  4939. fi
  4940. fi
  4941. OBJDUMP=$ac_cv_prog_OBJDUMP
  4942. if test -n "$OBJDUMP"; then
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4944. $as_echo "$OBJDUMP" >&6; }
  4945. else
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4947. $as_echo "no" >&6; }
  4948. fi
  4949. fi
  4950. if test -z "$ac_cv_prog_OBJDUMP"; then
  4951. ac_ct_OBJDUMP=$OBJDUMP
  4952. # Extract the first word of "objdump", so it can be a program name with args.
  4953. set dummy objdump; ac_word=$2
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4955. $as_echo_n "checking for $ac_word... " >&6; }
  4956. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4957. $as_echo_n "(cached) " >&6
  4958. else
  4959. if test -n "$ac_ct_OBJDUMP"; then
  4960. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4961. else
  4962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4963. for as_dir in $PATH
  4964. do
  4965. IFS=$as_save_IFS
  4966. test -z "$as_dir" && as_dir=.
  4967. for ac_exec_ext in '' $ac_executable_extensions; do
  4968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4969. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4971. break 2
  4972. fi
  4973. done
  4974. done
  4975. IFS=$as_save_IFS
  4976. fi
  4977. fi
  4978. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4979. if test -n "$ac_ct_OBJDUMP"; then
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4981. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4982. else
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4984. $as_echo "no" >&6; }
  4985. fi
  4986. if test "x$ac_ct_OBJDUMP" = x; then
  4987. OBJDUMP="false"
  4988. else
  4989. case $cross_compiling:$ac_tool_warned in
  4990. yes:)
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4992. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4993. ac_tool_warned=yes ;;
  4994. esac
  4995. OBJDUMP=$ac_ct_OBJDUMP
  4996. fi
  4997. else
  4998. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4999. fi
  5000. test -z "$OBJDUMP" && OBJDUMP=objdump
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5002. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5003. if ${lt_cv_deplibs_check_method+:} false; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5007. lt_cv_file_magic_test_file=
  5008. lt_cv_deplibs_check_method='unknown'
  5009. # Need to set the preceding variable on all platforms that support
  5010. # interlibrary dependencies.
  5011. # 'none' -- dependencies not supported.
  5012. # `unknown' -- same as none, but documents that we really don't know.
  5013. # 'pass_all' -- all dependencies passed with no checks.
  5014. # 'test_compile' -- check by making test program.
  5015. # 'file_magic [[regex]]' -- check by looking for files in library path
  5016. # which responds to the $file_magic_cmd with a given extended regex.
  5017. # If you have `file' or equivalent on your system and you're not sure
  5018. # whether `pass_all' will *always* work, you probably want this one.
  5019. case $host_os in
  5020. aix[4-9]*)
  5021. lt_cv_deplibs_check_method=pass_all
  5022. ;;
  5023. beos*)
  5024. lt_cv_deplibs_check_method=pass_all
  5025. ;;
  5026. bsdi[45]*)
  5027. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5028. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5029. lt_cv_file_magic_test_file=/shlib/libc.so
  5030. ;;
  5031. cygwin*)
  5032. # func_win32_libid is a shell function defined in ltmain.sh
  5033. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5034. lt_cv_file_magic_cmd='func_win32_libid'
  5035. ;;
  5036. mingw* | pw32*)
  5037. # Base MSYS/MinGW do not provide the 'file' command needed by
  5038. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5039. # unless we find 'file', for example because we are cross-compiling.
  5040. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5041. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5042. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5043. lt_cv_file_magic_cmd='func_win32_libid'
  5044. else
  5045. # Keep this pattern in sync with the one in func_win32_libid.
  5046. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5047. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5048. fi
  5049. ;;
  5050. cegcc*)
  5051. # use the weaker test based on 'objdump'. See mingw*.
  5052. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5053. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5054. ;;
  5055. darwin* | rhapsody*)
  5056. lt_cv_deplibs_check_method=pass_all
  5057. ;;
  5058. freebsd* | dragonfly*)
  5059. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5060. case $host_cpu in
  5061. i*86 )
  5062. # Not sure whether the presence of OpenBSD here was a mistake.
  5063. # Let's accept both of them until this is cleared up.
  5064. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5065. lt_cv_file_magic_cmd=/usr/bin/file
  5066. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5067. ;;
  5068. esac
  5069. else
  5070. lt_cv_deplibs_check_method=pass_all
  5071. fi
  5072. ;;
  5073. gnu*)
  5074. lt_cv_deplibs_check_method=pass_all
  5075. ;;
  5076. haiku*)
  5077. lt_cv_deplibs_check_method=pass_all
  5078. ;;
  5079. hpux10.20* | hpux11*)
  5080. lt_cv_file_magic_cmd=/usr/bin/file
  5081. case $host_cpu in
  5082. ia64*)
  5083. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5084. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5085. ;;
  5086. hppa*64*)
  5087. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5088. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5089. ;;
  5090. *)
  5091. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5092. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5093. ;;
  5094. esac
  5095. ;;
  5096. interix[3-9]*)
  5097. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5098. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5099. ;;
  5100. irix5* | irix6* | nonstopux*)
  5101. case $LD in
  5102. *-32|*"-32 ") libmagic=32-bit;;
  5103. *-n32|*"-n32 ") libmagic=N32;;
  5104. *-64|*"-64 ") libmagic=64-bit;;
  5105. *) libmagic=never-match;;
  5106. esac
  5107. lt_cv_deplibs_check_method=pass_all
  5108. ;;
  5109. # This must be glibc/ELF.
  5110. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5111. lt_cv_deplibs_check_method=pass_all
  5112. ;;
  5113. netbsd*)
  5114. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5115. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5116. else
  5117. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5118. fi
  5119. ;;
  5120. newos6*)
  5121. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5122. lt_cv_file_magic_cmd=/usr/bin/file
  5123. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5124. ;;
  5125. *nto* | *qnx*)
  5126. lt_cv_deplibs_check_method=pass_all
  5127. ;;
  5128. openbsd*)
  5129. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5130. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5131. else
  5132. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5133. fi
  5134. ;;
  5135. osf3* | osf4* | osf5*)
  5136. lt_cv_deplibs_check_method=pass_all
  5137. ;;
  5138. rdos*)
  5139. lt_cv_deplibs_check_method=pass_all
  5140. ;;
  5141. solaris*)
  5142. lt_cv_deplibs_check_method=pass_all
  5143. ;;
  5144. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. sysv4 | sysv4.3*)
  5148. case $host_vendor in
  5149. motorola)
  5150. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5151. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5152. ;;
  5153. ncr)
  5154. lt_cv_deplibs_check_method=pass_all
  5155. ;;
  5156. sequent)
  5157. lt_cv_file_magic_cmd='/bin/file'
  5158. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5159. ;;
  5160. sni)
  5161. lt_cv_file_magic_cmd='/bin/file'
  5162. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5163. lt_cv_file_magic_test_file=/lib/libc.so
  5164. ;;
  5165. siemens)
  5166. lt_cv_deplibs_check_method=pass_all
  5167. ;;
  5168. pc)
  5169. lt_cv_deplibs_check_method=pass_all
  5170. ;;
  5171. esac
  5172. ;;
  5173. tpf*)
  5174. lt_cv_deplibs_check_method=pass_all
  5175. ;;
  5176. esac
  5177. fi
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5179. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5180. file_magic_glob=
  5181. want_nocaseglob=no
  5182. if test "$build" = "$host"; then
  5183. case $host_os in
  5184. mingw* | pw32*)
  5185. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5186. want_nocaseglob=yes
  5187. else
  5188. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5189. fi
  5190. ;;
  5191. esac
  5192. fi
  5193. file_magic_cmd=$lt_cv_file_magic_cmd
  5194. deplibs_check_method=$lt_cv_deplibs_check_method
  5195. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5196. if test -n "$ac_tool_prefix"; then
  5197. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5198. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5200. $as_echo_n "checking for $ac_word... " >&6; }
  5201. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5202. $as_echo_n "(cached) " >&6
  5203. else
  5204. if test -n "$DLLTOOL"; then
  5205. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5206. else
  5207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5208. for as_dir in $PATH
  5209. do
  5210. IFS=$as_save_IFS
  5211. test -z "$as_dir" && as_dir=.
  5212. for ac_exec_ext in '' $ac_executable_extensions; do
  5213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5214. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5216. break 2
  5217. fi
  5218. done
  5219. done
  5220. IFS=$as_save_IFS
  5221. fi
  5222. fi
  5223. DLLTOOL=$ac_cv_prog_DLLTOOL
  5224. if test -n "$DLLTOOL"; then
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5226. $as_echo "$DLLTOOL" >&6; }
  5227. else
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5229. $as_echo "no" >&6; }
  5230. fi
  5231. fi
  5232. if test -z "$ac_cv_prog_DLLTOOL"; then
  5233. ac_ct_DLLTOOL=$DLLTOOL
  5234. # Extract the first word of "dlltool", so it can be a program name with args.
  5235. set dummy dlltool; ac_word=$2
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5237. $as_echo_n "checking for $ac_word... " >&6; }
  5238. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5239. $as_echo_n "(cached) " >&6
  5240. else
  5241. if test -n "$ac_ct_DLLTOOL"; then
  5242. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5243. else
  5244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5245. for as_dir in $PATH
  5246. do
  5247. IFS=$as_save_IFS
  5248. test -z "$as_dir" && as_dir=.
  5249. for ac_exec_ext in '' $ac_executable_extensions; do
  5250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5251. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5253. break 2
  5254. fi
  5255. done
  5256. done
  5257. IFS=$as_save_IFS
  5258. fi
  5259. fi
  5260. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5261. if test -n "$ac_ct_DLLTOOL"; then
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5263. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5264. else
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5266. $as_echo "no" >&6; }
  5267. fi
  5268. if test "x$ac_ct_DLLTOOL" = x; then
  5269. DLLTOOL="false"
  5270. else
  5271. case $cross_compiling:$ac_tool_warned in
  5272. yes:)
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5275. ac_tool_warned=yes ;;
  5276. esac
  5277. DLLTOOL=$ac_ct_DLLTOOL
  5278. fi
  5279. else
  5280. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5281. fi
  5282. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5284. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5285. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5286. $as_echo_n "(cached) " >&6
  5287. else
  5288. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5289. case $host_os in
  5290. cygwin* | mingw* | pw32* | cegcc*)
  5291. # two different shell functions defined in ltmain.sh
  5292. # decide which to use based on capabilities of $DLLTOOL
  5293. case `$DLLTOOL --help 2>&1` in
  5294. *--identify-strict*)
  5295. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5296. ;;
  5297. *)
  5298. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5299. ;;
  5300. esac
  5301. ;;
  5302. *)
  5303. # fallback: assume linklib IS sharedlib
  5304. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5305. ;;
  5306. esac
  5307. fi
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5309. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5310. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5311. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5312. if test -n "$ac_tool_prefix"; then
  5313. for ac_prog in ar
  5314. do
  5315. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5316. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5318. $as_echo_n "checking for $ac_word... " >&6; }
  5319. if ${ac_cv_prog_AR+:} false; then :
  5320. $as_echo_n "(cached) " >&6
  5321. else
  5322. if test -n "$AR"; then
  5323. ac_cv_prog_AR="$AR" # Let the user override the test.
  5324. else
  5325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5326. for as_dir in $PATH
  5327. do
  5328. IFS=$as_save_IFS
  5329. test -z "$as_dir" && as_dir=.
  5330. for ac_exec_ext in '' $ac_executable_extensions; do
  5331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5332. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5334. break 2
  5335. fi
  5336. done
  5337. done
  5338. IFS=$as_save_IFS
  5339. fi
  5340. fi
  5341. AR=$ac_cv_prog_AR
  5342. if test -n "$AR"; then
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5344. $as_echo "$AR" >&6; }
  5345. else
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5347. $as_echo "no" >&6; }
  5348. fi
  5349. test -n "$AR" && break
  5350. done
  5351. fi
  5352. if test -z "$AR"; then
  5353. ac_ct_AR=$AR
  5354. for ac_prog in ar
  5355. do
  5356. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5357. set dummy $ac_prog; ac_word=$2
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5359. $as_echo_n "checking for $ac_word... " >&6; }
  5360. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5361. $as_echo_n "(cached) " >&6
  5362. else
  5363. if test -n "$ac_ct_AR"; then
  5364. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5365. else
  5366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5367. for as_dir in $PATH
  5368. do
  5369. IFS=$as_save_IFS
  5370. test -z "$as_dir" && as_dir=.
  5371. for ac_exec_ext in '' $ac_executable_extensions; do
  5372. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5373. ac_cv_prog_ac_ct_AR="$ac_prog"
  5374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5375. break 2
  5376. fi
  5377. done
  5378. done
  5379. IFS=$as_save_IFS
  5380. fi
  5381. fi
  5382. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5383. if test -n "$ac_ct_AR"; then
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5385. $as_echo "$ac_ct_AR" >&6; }
  5386. else
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5388. $as_echo "no" >&6; }
  5389. fi
  5390. test -n "$ac_ct_AR" && break
  5391. done
  5392. if test "x$ac_ct_AR" = x; then
  5393. AR="false"
  5394. else
  5395. case $cross_compiling:$ac_tool_warned in
  5396. yes:)
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5398. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5399. ac_tool_warned=yes ;;
  5400. esac
  5401. AR=$ac_ct_AR
  5402. fi
  5403. fi
  5404. : ${AR=ar}
  5405. : ${AR_FLAGS=cru}
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5407. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5408. if ${lt_cv_ar_at_file+:} false; then :
  5409. $as_echo_n "(cached) " >&6
  5410. else
  5411. lt_cv_ar_at_file=no
  5412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5413. /* end confdefs.h. */
  5414. int
  5415. main ()
  5416. {
  5417. ;
  5418. return 0;
  5419. }
  5420. _ACEOF
  5421. if ac_fn_c_try_compile "$LINENO"; then :
  5422. echo conftest.$ac_objext > conftest.lst
  5423. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5424. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5425. (eval $lt_ar_try) 2>&5
  5426. ac_status=$?
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5428. test $ac_status = 0; }
  5429. if test "$ac_status" -eq 0; then
  5430. # Ensure the archiver fails upon bogus file names.
  5431. rm -f conftest.$ac_objext libconftest.a
  5432. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5433. (eval $lt_ar_try) 2>&5
  5434. ac_status=$?
  5435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5436. test $ac_status = 0; }
  5437. if test "$ac_status" -ne 0; then
  5438. lt_cv_ar_at_file=@
  5439. fi
  5440. fi
  5441. rm -f conftest.* libconftest.a
  5442. fi
  5443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5444. fi
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5446. $as_echo "$lt_cv_ar_at_file" >&6; }
  5447. if test "x$lt_cv_ar_at_file" = xno; then
  5448. archiver_list_spec=
  5449. else
  5450. archiver_list_spec=$lt_cv_ar_at_file
  5451. fi
  5452. if test -n "$ac_tool_prefix"; then
  5453. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5454. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5456. $as_echo_n "checking for $ac_word... " >&6; }
  5457. if ${ac_cv_prog_STRIP+:} false; then :
  5458. $as_echo_n "(cached) " >&6
  5459. else
  5460. if test -n "$STRIP"; then
  5461. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5462. else
  5463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5464. for as_dir in $PATH
  5465. do
  5466. IFS=$as_save_IFS
  5467. test -z "$as_dir" && as_dir=.
  5468. for ac_exec_ext in '' $ac_executable_extensions; do
  5469. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5470. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5472. break 2
  5473. fi
  5474. done
  5475. done
  5476. IFS=$as_save_IFS
  5477. fi
  5478. fi
  5479. STRIP=$ac_cv_prog_STRIP
  5480. if test -n "$STRIP"; then
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5482. $as_echo "$STRIP" >&6; }
  5483. else
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5485. $as_echo "no" >&6; }
  5486. fi
  5487. fi
  5488. if test -z "$ac_cv_prog_STRIP"; then
  5489. ac_ct_STRIP=$STRIP
  5490. # Extract the first word of "strip", so it can be a program name with args.
  5491. set dummy strip; ac_word=$2
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5493. $as_echo_n "checking for $ac_word... " >&6; }
  5494. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5495. $as_echo_n "(cached) " >&6
  5496. else
  5497. if test -n "$ac_ct_STRIP"; then
  5498. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5499. else
  5500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5501. for as_dir in $PATH
  5502. do
  5503. IFS=$as_save_IFS
  5504. test -z "$as_dir" && as_dir=.
  5505. for ac_exec_ext in '' $ac_executable_extensions; do
  5506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5507. ac_cv_prog_ac_ct_STRIP="strip"
  5508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5509. break 2
  5510. fi
  5511. done
  5512. done
  5513. IFS=$as_save_IFS
  5514. fi
  5515. fi
  5516. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5517. if test -n "$ac_ct_STRIP"; then
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5519. $as_echo "$ac_ct_STRIP" >&6; }
  5520. else
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5522. $as_echo "no" >&6; }
  5523. fi
  5524. if test "x$ac_ct_STRIP" = x; then
  5525. STRIP=":"
  5526. else
  5527. case $cross_compiling:$ac_tool_warned in
  5528. yes:)
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5530. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5531. ac_tool_warned=yes ;;
  5532. esac
  5533. STRIP=$ac_ct_STRIP
  5534. fi
  5535. else
  5536. STRIP="$ac_cv_prog_STRIP"
  5537. fi
  5538. test -z "$STRIP" && STRIP=:
  5539. if test -n "$ac_tool_prefix"; then
  5540. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5541. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5543. $as_echo_n "checking for $ac_word... " >&6; }
  5544. if ${ac_cv_prog_RANLIB+:} false; then :
  5545. $as_echo_n "(cached) " >&6
  5546. else
  5547. if test -n "$RANLIB"; then
  5548. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5549. else
  5550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5551. for as_dir in $PATH
  5552. do
  5553. IFS=$as_save_IFS
  5554. test -z "$as_dir" && as_dir=.
  5555. for ac_exec_ext in '' $ac_executable_extensions; do
  5556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5557. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5559. break 2
  5560. fi
  5561. done
  5562. done
  5563. IFS=$as_save_IFS
  5564. fi
  5565. fi
  5566. RANLIB=$ac_cv_prog_RANLIB
  5567. if test -n "$RANLIB"; then
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5569. $as_echo "$RANLIB" >&6; }
  5570. else
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5572. $as_echo "no" >&6; }
  5573. fi
  5574. fi
  5575. if test -z "$ac_cv_prog_RANLIB"; then
  5576. ac_ct_RANLIB=$RANLIB
  5577. # Extract the first word of "ranlib", so it can be a program name with args.
  5578. set dummy ranlib; ac_word=$2
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5580. $as_echo_n "checking for $ac_word... " >&6; }
  5581. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5582. $as_echo_n "(cached) " >&6
  5583. else
  5584. if test -n "$ac_ct_RANLIB"; then
  5585. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5586. else
  5587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5588. for as_dir in $PATH
  5589. do
  5590. IFS=$as_save_IFS
  5591. test -z "$as_dir" && as_dir=.
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5594. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. IFS=$as_save_IFS
  5601. fi
  5602. fi
  5603. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5604. if test -n "$ac_ct_RANLIB"; then
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5606. $as_echo "$ac_ct_RANLIB" >&6; }
  5607. else
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5609. $as_echo "no" >&6; }
  5610. fi
  5611. if test "x$ac_ct_RANLIB" = x; then
  5612. RANLIB=":"
  5613. else
  5614. case $cross_compiling:$ac_tool_warned in
  5615. yes:)
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5617. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5618. ac_tool_warned=yes ;;
  5619. esac
  5620. RANLIB=$ac_ct_RANLIB
  5621. fi
  5622. else
  5623. RANLIB="$ac_cv_prog_RANLIB"
  5624. fi
  5625. test -z "$RANLIB" && RANLIB=:
  5626. # Determine commands to create old-style static archives.
  5627. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5628. old_postinstall_cmds='chmod 644 $oldlib'
  5629. old_postuninstall_cmds=
  5630. if test -n "$RANLIB"; then
  5631. case $host_os in
  5632. openbsd*)
  5633. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5634. ;;
  5635. *)
  5636. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5637. ;;
  5638. esac
  5639. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5640. fi
  5641. case $host_os in
  5642. darwin*)
  5643. lock_old_archive_extraction=yes ;;
  5644. *)
  5645. lock_old_archive_extraction=no ;;
  5646. esac
  5647. for ac_prog in gawk mawk nawk awk
  5648. do
  5649. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5650. set dummy $ac_prog; ac_word=$2
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5652. $as_echo_n "checking for $ac_word... " >&6; }
  5653. if ${ac_cv_prog_AWK+:} false; then :
  5654. $as_echo_n "(cached) " >&6
  5655. else
  5656. if test -n "$AWK"; then
  5657. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5658. else
  5659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5660. for as_dir in $PATH
  5661. do
  5662. IFS=$as_save_IFS
  5663. test -z "$as_dir" && as_dir=.
  5664. for ac_exec_ext in '' $ac_executable_extensions; do
  5665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5666. ac_cv_prog_AWK="$ac_prog"
  5667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5668. break 2
  5669. fi
  5670. done
  5671. done
  5672. IFS=$as_save_IFS
  5673. fi
  5674. fi
  5675. AWK=$ac_cv_prog_AWK
  5676. if test -n "$AWK"; then
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5678. $as_echo "$AWK" >&6; }
  5679. else
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5681. $as_echo "no" >&6; }
  5682. fi
  5683. test -n "$AWK" && break
  5684. done
  5685. # If no C compiler was specified, use CC.
  5686. LTCC=${LTCC-"$CC"}
  5687. # If no C compiler flags were specified, use CFLAGS.
  5688. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5689. # Allow CC to be a program name with arguments.
  5690. compiler=$CC
  5691. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5693. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5694. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5695. $as_echo_n "(cached) " >&6
  5696. else
  5697. # These are sane defaults that work on at least a few old systems.
  5698. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5699. # Character class describing NM global symbol codes.
  5700. symcode='[BCDEGRST]'
  5701. # Regexp to match symbols that can be accessed directly from C.
  5702. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5703. # Define system-specific variables.
  5704. case $host_os in
  5705. aix*)
  5706. symcode='[BCDT]'
  5707. ;;
  5708. cygwin* | mingw* | pw32* | cegcc*)
  5709. symcode='[ABCDGISTW]'
  5710. ;;
  5711. hpux*)
  5712. if test "$host_cpu" = ia64; then
  5713. symcode='[ABCDEGRST]'
  5714. fi
  5715. ;;
  5716. irix* | nonstopux*)
  5717. symcode='[BCDEGRST]'
  5718. ;;
  5719. osf*)
  5720. symcode='[BCDEGQRST]'
  5721. ;;
  5722. solaris*)
  5723. symcode='[BDRT]'
  5724. ;;
  5725. sco3.2v5*)
  5726. symcode='[DT]'
  5727. ;;
  5728. sysv4.2uw2*)
  5729. symcode='[DT]'
  5730. ;;
  5731. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5732. symcode='[ABDT]'
  5733. ;;
  5734. sysv4)
  5735. symcode='[DFNSTU]'
  5736. ;;
  5737. esac
  5738. # If we're using GNU nm, then use its standard symbol codes.
  5739. case `$NM -V 2>&1` in
  5740. *GNU* | *'with BFD'*)
  5741. symcode='[ABCDGIRSTW]' ;;
  5742. esac
  5743. # Transform an extracted symbol line into a proper C declaration.
  5744. # Some systems (esp. on ia64) link data and code symbols differently,
  5745. # so use this general approach.
  5746. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5747. # Transform an extracted symbol line into symbol name and symbol address
  5748. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5749. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5750. # Handle CRLF in mingw tool chain
  5751. opt_cr=
  5752. case $build_os in
  5753. mingw*)
  5754. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5755. ;;
  5756. esac
  5757. # Try without a prefix underscore, then with it.
  5758. for ac_symprfx in "" "_"; do
  5759. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5760. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5761. # Write the raw and C identifiers.
  5762. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5763. # Fake it for dumpbin and say T for any non-static function
  5764. # and D for any global variable.
  5765. # Also find C++ and __fastcall symbols from MSVC++,
  5766. # which start with @ or ?.
  5767. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5768. " {last_section=section; section=\$ 3};"\
  5769. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5770. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5771. " \$ 0!~/External *\|/{next};"\
  5772. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5773. " {if(hide[section]) next};"\
  5774. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5775. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5776. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5777. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5778. " ' prfx=^$ac_symprfx"
  5779. else
  5780. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5781. fi
  5782. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5783. # Check to see that the pipe works correctly.
  5784. pipe_works=no
  5785. rm -f conftest*
  5786. cat > conftest.$ac_ext <<_LT_EOF
  5787. #ifdef __cplusplus
  5788. extern "C" {
  5789. #endif
  5790. char nm_test_var;
  5791. void nm_test_func(void);
  5792. void nm_test_func(void){}
  5793. #ifdef __cplusplus
  5794. }
  5795. #endif
  5796. int main(){nm_test_var='a';nm_test_func();return(0);}
  5797. _LT_EOF
  5798. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5799. (eval $ac_compile) 2>&5
  5800. ac_status=$?
  5801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5802. test $ac_status = 0; }; then
  5803. # Now try to grab the symbols.
  5804. nlist=conftest.nm
  5805. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5806. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5807. ac_status=$?
  5808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5809. test $ac_status = 0; } && test -s "$nlist"; then
  5810. # Try sorting and uniquifying the output.
  5811. if sort "$nlist" | uniq > "$nlist"T; then
  5812. mv -f "$nlist"T "$nlist"
  5813. else
  5814. rm -f "$nlist"T
  5815. fi
  5816. # Make sure that we snagged all the symbols we need.
  5817. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5818. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5819. cat <<_LT_EOF > conftest.$ac_ext
  5820. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5821. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5822. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5823. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5824. # define LT_DLSYM_CONST
  5825. #elif defined(__osf__)
  5826. /* This system does not cope well with relocations in const data. */
  5827. # define LT_DLSYM_CONST
  5828. #else
  5829. # define LT_DLSYM_CONST const
  5830. #endif
  5831. #ifdef __cplusplus
  5832. extern "C" {
  5833. #endif
  5834. _LT_EOF
  5835. # Now generate the symbol file.
  5836. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5837. cat <<_LT_EOF >> conftest.$ac_ext
  5838. /* The mapping between symbol names and symbols. */
  5839. LT_DLSYM_CONST struct {
  5840. const char *name;
  5841. void *address;
  5842. }
  5843. lt__PROGRAM__LTX_preloaded_symbols[] =
  5844. {
  5845. { "@PROGRAM@", (void *) 0 },
  5846. _LT_EOF
  5847. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5848. cat <<\_LT_EOF >> conftest.$ac_ext
  5849. {0, (void *) 0}
  5850. };
  5851. /* This works around a problem in FreeBSD linker */
  5852. #ifdef FREEBSD_WORKAROUND
  5853. static const void *lt_preloaded_setup() {
  5854. return lt__PROGRAM__LTX_preloaded_symbols;
  5855. }
  5856. #endif
  5857. #ifdef __cplusplus
  5858. }
  5859. #endif
  5860. _LT_EOF
  5861. # Now try linking the two files.
  5862. mv conftest.$ac_objext conftstm.$ac_objext
  5863. lt_globsym_save_LIBS=$LIBS
  5864. lt_globsym_save_CFLAGS=$CFLAGS
  5865. LIBS="conftstm.$ac_objext"
  5866. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5867. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5868. (eval $ac_link) 2>&5
  5869. ac_status=$?
  5870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5871. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5872. pipe_works=yes
  5873. fi
  5874. LIBS=$lt_globsym_save_LIBS
  5875. CFLAGS=$lt_globsym_save_CFLAGS
  5876. else
  5877. echo "cannot find nm_test_func in $nlist" >&5
  5878. fi
  5879. else
  5880. echo "cannot find nm_test_var in $nlist" >&5
  5881. fi
  5882. else
  5883. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5884. fi
  5885. else
  5886. echo "$progname: failed program was:" >&5
  5887. cat conftest.$ac_ext >&5
  5888. fi
  5889. rm -rf conftest* conftst*
  5890. # Do not use the global_symbol_pipe unless it works.
  5891. if test "$pipe_works" = yes; then
  5892. break
  5893. else
  5894. lt_cv_sys_global_symbol_pipe=
  5895. fi
  5896. done
  5897. fi
  5898. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5899. lt_cv_sys_global_symbol_to_cdecl=
  5900. fi
  5901. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5903. $as_echo "failed" >&6; }
  5904. else
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5906. $as_echo "ok" >&6; }
  5907. fi
  5908. # Response file support.
  5909. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5910. nm_file_list_spec='@'
  5911. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5912. nm_file_list_spec='@'
  5913. fi
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5915. $as_echo_n "checking for sysroot... " >&6; }
  5916. # Check whether --with-sysroot was given.
  5917. if test "${with_sysroot+set}" = set; then :
  5918. withval=$with_sysroot;
  5919. else
  5920. with_sysroot=no
  5921. fi
  5922. lt_sysroot=
  5923. case ${with_sysroot} in #(
  5924. yes)
  5925. if test "$GCC" = yes; then
  5926. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5927. fi
  5928. ;; #(
  5929. /*)
  5930. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5931. ;; #(
  5932. no|'')
  5933. ;; #(
  5934. *)
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5936. $as_echo "${with_sysroot}" >&6; }
  5937. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5938. ;;
  5939. esac
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5941. $as_echo "${lt_sysroot:-no}" >&6; }
  5942. # Check whether --enable-libtool-lock was given.
  5943. if test "${enable_libtool_lock+set}" = set; then :
  5944. enableval=$enable_libtool_lock;
  5945. fi
  5946. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5947. # Some flags need to be propagated to the compiler or linker for good
  5948. # libtool support.
  5949. case $host in
  5950. ia64-*-hpux*)
  5951. # Find out which ABI we are using.
  5952. echo 'int i;' > conftest.$ac_ext
  5953. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5954. (eval $ac_compile) 2>&5
  5955. ac_status=$?
  5956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5957. test $ac_status = 0; }; then
  5958. case `/usr/bin/file conftest.$ac_objext` in
  5959. *ELF-32*)
  5960. HPUX_IA64_MODE="32"
  5961. ;;
  5962. *ELF-64*)
  5963. HPUX_IA64_MODE="64"
  5964. ;;
  5965. esac
  5966. fi
  5967. rm -rf conftest*
  5968. ;;
  5969. *-*-irix6*)
  5970. # Find out which ABI we are using.
  5971. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5972. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5973. (eval $ac_compile) 2>&5
  5974. ac_status=$?
  5975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5976. test $ac_status = 0; }; then
  5977. if test "$lt_cv_prog_gnu_ld" = yes; then
  5978. case `/usr/bin/file conftest.$ac_objext` in
  5979. *32-bit*)
  5980. LD="${LD-ld} -melf32bsmip"
  5981. ;;
  5982. *N32*)
  5983. LD="${LD-ld} -melf32bmipn32"
  5984. ;;
  5985. *64-bit*)
  5986. LD="${LD-ld} -melf64bmip"
  5987. ;;
  5988. esac
  5989. else
  5990. case `/usr/bin/file conftest.$ac_objext` in
  5991. *32-bit*)
  5992. LD="${LD-ld} -32"
  5993. ;;
  5994. *N32*)
  5995. LD="${LD-ld} -n32"
  5996. ;;
  5997. *64-bit*)
  5998. LD="${LD-ld} -64"
  5999. ;;
  6000. esac
  6001. fi
  6002. fi
  6003. rm -rf conftest*
  6004. ;;
  6005. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6006. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6007. # Find out which ABI we are using.
  6008. echo 'int i;' > conftest.$ac_ext
  6009. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6010. (eval $ac_compile) 2>&5
  6011. ac_status=$?
  6012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6013. test $ac_status = 0; }; then
  6014. case `/usr/bin/file conftest.o` in
  6015. *32-bit*)
  6016. case $host in
  6017. x86_64-*kfreebsd*-gnu)
  6018. LD="${LD-ld} -m elf_i386_fbsd"
  6019. ;;
  6020. x86_64-*linux*)
  6021. LD="${LD-ld} -m elf_i386"
  6022. ;;
  6023. ppc64-*linux*|powerpc64-*linux*)
  6024. LD="${LD-ld} -m elf32ppclinux"
  6025. ;;
  6026. s390x-*linux*)
  6027. LD="${LD-ld} -m elf_s390"
  6028. ;;
  6029. sparc64-*linux*)
  6030. LD="${LD-ld} -m elf32_sparc"
  6031. ;;
  6032. esac
  6033. ;;
  6034. *64-bit*)
  6035. case $host in
  6036. x86_64-*kfreebsd*-gnu)
  6037. LD="${LD-ld} -m elf_x86_64_fbsd"
  6038. ;;
  6039. x86_64-*linux*)
  6040. LD="${LD-ld} -m elf_x86_64"
  6041. ;;
  6042. ppc*-*linux*|powerpc*-*linux*)
  6043. LD="${LD-ld} -m elf64ppc"
  6044. ;;
  6045. s390*-*linux*|s390*-*tpf*)
  6046. LD="${LD-ld} -m elf64_s390"
  6047. ;;
  6048. sparc*-*linux*)
  6049. LD="${LD-ld} -m elf64_sparc"
  6050. ;;
  6051. esac
  6052. ;;
  6053. esac
  6054. fi
  6055. rm -rf conftest*
  6056. ;;
  6057. *-*-sco3.2v5*)
  6058. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6059. SAVE_CFLAGS="$CFLAGS"
  6060. CFLAGS="$CFLAGS -belf"
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6062. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6063. if ${lt_cv_cc_needs_belf+:} false; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. ac_ext=c
  6067. ac_cpp='$CPP $CPPFLAGS'
  6068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6072. /* end confdefs.h. */
  6073. int
  6074. main ()
  6075. {
  6076. ;
  6077. return 0;
  6078. }
  6079. _ACEOF
  6080. if ac_fn_c_try_link "$LINENO"; then :
  6081. lt_cv_cc_needs_belf=yes
  6082. else
  6083. lt_cv_cc_needs_belf=no
  6084. fi
  6085. rm -f core conftest.err conftest.$ac_objext \
  6086. conftest$ac_exeext conftest.$ac_ext
  6087. ac_ext=c
  6088. ac_cpp='$CPP $CPPFLAGS'
  6089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6094. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6095. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6096. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6097. CFLAGS="$SAVE_CFLAGS"
  6098. fi
  6099. ;;
  6100. *-*solaris*)
  6101. # Find out which ABI we are using.
  6102. echo 'int i;' > conftest.$ac_ext
  6103. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6104. (eval $ac_compile) 2>&5
  6105. ac_status=$?
  6106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6107. test $ac_status = 0; }; then
  6108. case `/usr/bin/file conftest.o` in
  6109. *64-bit*)
  6110. case $lt_cv_prog_gnu_ld in
  6111. yes*)
  6112. case $host in
  6113. i?86-*-solaris*)
  6114. LD="${LD-ld} -m elf_x86_64"
  6115. ;;
  6116. sparc*-*-solaris*)
  6117. LD="${LD-ld} -m elf64_sparc"
  6118. ;;
  6119. esac
  6120. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6121. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6122. LD="${LD-ld}_sol2"
  6123. fi
  6124. ;;
  6125. *)
  6126. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6127. LD="${LD-ld} -64"
  6128. fi
  6129. ;;
  6130. esac
  6131. ;;
  6132. esac
  6133. fi
  6134. rm -rf conftest*
  6135. ;;
  6136. esac
  6137. need_locks="$enable_libtool_lock"
  6138. if test -n "$ac_tool_prefix"; then
  6139. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6140. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6142. $as_echo_n "checking for $ac_word... " >&6; }
  6143. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. if test -n "$MANIFEST_TOOL"; then
  6147. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6148. else
  6149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6150. for as_dir in $PATH
  6151. do
  6152. IFS=$as_save_IFS
  6153. test -z "$as_dir" && as_dir=.
  6154. for ac_exec_ext in '' $ac_executable_extensions; do
  6155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6156. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6158. break 2
  6159. fi
  6160. done
  6161. done
  6162. IFS=$as_save_IFS
  6163. fi
  6164. fi
  6165. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6166. if test -n "$MANIFEST_TOOL"; then
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6168. $as_echo "$MANIFEST_TOOL" >&6; }
  6169. else
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6171. $as_echo "no" >&6; }
  6172. fi
  6173. fi
  6174. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6175. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6176. # Extract the first word of "mt", so it can be a program name with args.
  6177. set dummy mt; ac_word=$2
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6179. $as_echo_n "checking for $ac_word... " >&6; }
  6180. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6184. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6185. else
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6193. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. fi
  6201. fi
  6202. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6203. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6205. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6206. else
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6208. $as_echo "no" >&6; }
  6209. fi
  6210. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6211. MANIFEST_TOOL=":"
  6212. else
  6213. case $cross_compiling:$ac_tool_warned in
  6214. yes:)
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6216. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6217. ac_tool_warned=yes ;;
  6218. esac
  6219. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6220. fi
  6221. else
  6222. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6223. fi
  6224. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6226. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6227. if ${lt_cv_path_mainfest_tool+:} false; then :
  6228. $as_echo_n "(cached) " >&6
  6229. else
  6230. lt_cv_path_mainfest_tool=no
  6231. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6232. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6233. cat conftest.err >&5
  6234. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6235. lt_cv_path_mainfest_tool=yes
  6236. fi
  6237. rm -f conftest*
  6238. fi
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6240. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6241. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6242. MANIFEST_TOOL=:
  6243. fi
  6244. case $host_os in
  6245. rhapsody* | darwin*)
  6246. if test -n "$ac_tool_prefix"; then
  6247. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6248. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6250. $as_echo_n "checking for $ac_word... " >&6; }
  6251. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6252. $as_echo_n "(cached) " >&6
  6253. else
  6254. if test -n "$DSYMUTIL"; then
  6255. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6256. else
  6257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6258. for as_dir in $PATH
  6259. do
  6260. IFS=$as_save_IFS
  6261. test -z "$as_dir" && as_dir=.
  6262. for ac_exec_ext in '' $ac_executable_extensions; do
  6263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6264. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6266. break 2
  6267. fi
  6268. done
  6269. done
  6270. IFS=$as_save_IFS
  6271. fi
  6272. fi
  6273. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6274. if test -n "$DSYMUTIL"; then
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6276. $as_echo "$DSYMUTIL" >&6; }
  6277. else
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6279. $as_echo "no" >&6; }
  6280. fi
  6281. fi
  6282. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6283. ac_ct_DSYMUTIL=$DSYMUTIL
  6284. # Extract the first word of "dsymutil", so it can be a program name with args.
  6285. set dummy dsymutil; ac_word=$2
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6287. $as_echo_n "checking for $ac_word... " >&6; }
  6288. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. if test -n "$ac_ct_DSYMUTIL"; then
  6292. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6293. else
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6301. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. fi
  6309. fi
  6310. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6311. if test -n "$ac_ct_DSYMUTIL"; then
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6313. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6314. else
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. $as_echo "no" >&6; }
  6317. fi
  6318. if test "x$ac_ct_DSYMUTIL" = x; then
  6319. DSYMUTIL=":"
  6320. else
  6321. case $cross_compiling:$ac_tool_warned in
  6322. yes:)
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6324. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6325. ac_tool_warned=yes ;;
  6326. esac
  6327. DSYMUTIL=$ac_ct_DSYMUTIL
  6328. fi
  6329. else
  6330. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6331. fi
  6332. if test -n "$ac_tool_prefix"; then
  6333. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6334. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6336. $as_echo_n "checking for $ac_word... " >&6; }
  6337. if ${ac_cv_prog_NMEDIT+:} false; then :
  6338. $as_echo_n "(cached) " >&6
  6339. else
  6340. if test -n "$NMEDIT"; then
  6341. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6342. else
  6343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6344. for as_dir in $PATH
  6345. do
  6346. IFS=$as_save_IFS
  6347. test -z "$as_dir" && as_dir=.
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6350. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6352. break 2
  6353. fi
  6354. done
  6355. done
  6356. IFS=$as_save_IFS
  6357. fi
  6358. fi
  6359. NMEDIT=$ac_cv_prog_NMEDIT
  6360. if test -n "$NMEDIT"; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6362. $as_echo "$NMEDIT" >&6; }
  6363. else
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6365. $as_echo "no" >&6; }
  6366. fi
  6367. fi
  6368. if test -z "$ac_cv_prog_NMEDIT"; then
  6369. ac_ct_NMEDIT=$NMEDIT
  6370. # Extract the first word of "nmedit", so it can be a program name with args.
  6371. set dummy nmedit; ac_word=$2
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6373. $as_echo_n "checking for $ac_word... " >&6; }
  6374. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. if test -n "$ac_ct_NMEDIT"; then
  6378. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6379. else
  6380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6381. for as_dir in $PATH
  6382. do
  6383. IFS=$as_save_IFS
  6384. test -z "$as_dir" && as_dir=.
  6385. for ac_exec_ext in '' $ac_executable_extensions; do
  6386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6387. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6389. break 2
  6390. fi
  6391. done
  6392. done
  6393. IFS=$as_save_IFS
  6394. fi
  6395. fi
  6396. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6397. if test -n "$ac_ct_NMEDIT"; then
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6399. $as_echo "$ac_ct_NMEDIT" >&6; }
  6400. else
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6402. $as_echo "no" >&6; }
  6403. fi
  6404. if test "x$ac_ct_NMEDIT" = x; then
  6405. NMEDIT=":"
  6406. else
  6407. case $cross_compiling:$ac_tool_warned in
  6408. yes:)
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6411. ac_tool_warned=yes ;;
  6412. esac
  6413. NMEDIT=$ac_ct_NMEDIT
  6414. fi
  6415. else
  6416. NMEDIT="$ac_cv_prog_NMEDIT"
  6417. fi
  6418. if test -n "$ac_tool_prefix"; then
  6419. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6420. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6422. $as_echo_n "checking for $ac_word... " >&6; }
  6423. if ${ac_cv_prog_LIPO+:} false; then :
  6424. $as_echo_n "(cached) " >&6
  6425. else
  6426. if test -n "$LIPO"; then
  6427. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6428. else
  6429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6430. for as_dir in $PATH
  6431. do
  6432. IFS=$as_save_IFS
  6433. test -z "$as_dir" && as_dir=.
  6434. for ac_exec_ext in '' $ac_executable_extensions; do
  6435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6436. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6438. break 2
  6439. fi
  6440. done
  6441. done
  6442. IFS=$as_save_IFS
  6443. fi
  6444. fi
  6445. LIPO=$ac_cv_prog_LIPO
  6446. if test -n "$LIPO"; then
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6448. $as_echo "$LIPO" >&6; }
  6449. else
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6451. $as_echo "no" >&6; }
  6452. fi
  6453. fi
  6454. if test -z "$ac_cv_prog_LIPO"; then
  6455. ac_ct_LIPO=$LIPO
  6456. # Extract the first word of "lipo", so it can be a program name with args.
  6457. set dummy lipo; ac_word=$2
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6459. $as_echo_n "checking for $ac_word... " >&6; }
  6460. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6461. $as_echo_n "(cached) " >&6
  6462. else
  6463. if test -n "$ac_ct_LIPO"; then
  6464. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6465. else
  6466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6467. for as_dir in $PATH
  6468. do
  6469. IFS=$as_save_IFS
  6470. test -z "$as_dir" && as_dir=.
  6471. for ac_exec_ext in '' $ac_executable_extensions; do
  6472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6473. ac_cv_prog_ac_ct_LIPO="lipo"
  6474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6475. break 2
  6476. fi
  6477. done
  6478. done
  6479. IFS=$as_save_IFS
  6480. fi
  6481. fi
  6482. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6483. if test -n "$ac_ct_LIPO"; then
  6484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6485. $as_echo "$ac_ct_LIPO" >&6; }
  6486. else
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6488. $as_echo "no" >&6; }
  6489. fi
  6490. if test "x$ac_ct_LIPO" = x; then
  6491. LIPO=":"
  6492. else
  6493. case $cross_compiling:$ac_tool_warned in
  6494. yes:)
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6497. ac_tool_warned=yes ;;
  6498. esac
  6499. LIPO=$ac_ct_LIPO
  6500. fi
  6501. else
  6502. LIPO="$ac_cv_prog_LIPO"
  6503. fi
  6504. if test -n "$ac_tool_prefix"; then
  6505. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6506. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6508. $as_echo_n "checking for $ac_word... " >&6; }
  6509. if ${ac_cv_prog_OTOOL+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. if test -n "$OTOOL"; then
  6513. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6514. else
  6515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6516. for as_dir in $PATH
  6517. do
  6518. IFS=$as_save_IFS
  6519. test -z "$as_dir" && as_dir=.
  6520. for ac_exec_ext in '' $ac_executable_extensions; do
  6521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6522. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6524. break 2
  6525. fi
  6526. done
  6527. done
  6528. IFS=$as_save_IFS
  6529. fi
  6530. fi
  6531. OTOOL=$ac_cv_prog_OTOOL
  6532. if test -n "$OTOOL"; then
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6534. $as_echo "$OTOOL" >&6; }
  6535. else
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6537. $as_echo "no" >&6; }
  6538. fi
  6539. fi
  6540. if test -z "$ac_cv_prog_OTOOL"; then
  6541. ac_ct_OTOOL=$OTOOL
  6542. # Extract the first word of "otool", so it can be a program name with args.
  6543. set dummy otool; ac_word=$2
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6545. $as_echo_n "checking for $ac_word... " >&6; }
  6546. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. if test -n "$ac_ct_OTOOL"; then
  6550. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6551. else
  6552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6553. for as_dir in $PATH
  6554. do
  6555. IFS=$as_save_IFS
  6556. test -z "$as_dir" && as_dir=.
  6557. for ac_exec_ext in '' $ac_executable_extensions; do
  6558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6559. ac_cv_prog_ac_ct_OTOOL="otool"
  6560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6561. break 2
  6562. fi
  6563. done
  6564. done
  6565. IFS=$as_save_IFS
  6566. fi
  6567. fi
  6568. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6569. if test -n "$ac_ct_OTOOL"; then
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6571. $as_echo "$ac_ct_OTOOL" >&6; }
  6572. else
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6574. $as_echo "no" >&6; }
  6575. fi
  6576. if test "x$ac_ct_OTOOL" = x; then
  6577. OTOOL=":"
  6578. else
  6579. case $cross_compiling:$ac_tool_warned in
  6580. yes:)
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6583. ac_tool_warned=yes ;;
  6584. esac
  6585. OTOOL=$ac_ct_OTOOL
  6586. fi
  6587. else
  6588. OTOOL="$ac_cv_prog_OTOOL"
  6589. fi
  6590. if test -n "$ac_tool_prefix"; then
  6591. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6592. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. $as_echo_n "checking for $ac_word... " >&6; }
  6595. if ${ac_cv_prog_OTOOL64+:} false; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. if test -n "$OTOOL64"; then
  6599. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6608. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. fi
  6616. fi
  6617. OTOOL64=$ac_cv_prog_OTOOL64
  6618. if test -n "$OTOOL64"; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6620. $as_echo "$OTOOL64" >&6; }
  6621. else
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6623. $as_echo "no" >&6; }
  6624. fi
  6625. fi
  6626. if test -z "$ac_cv_prog_OTOOL64"; then
  6627. ac_ct_OTOOL64=$OTOOL64
  6628. # Extract the first word of "otool64", so it can be a program name with args.
  6629. set dummy otool64; ac_word=$2
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6631. $as_echo_n "checking for $ac_word... " >&6; }
  6632. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6633. $as_echo_n "(cached) " >&6
  6634. else
  6635. if test -n "$ac_ct_OTOOL64"; then
  6636. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6637. else
  6638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6639. for as_dir in $PATH
  6640. do
  6641. IFS=$as_save_IFS
  6642. test -z "$as_dir" && as_dir=.
  6643. for ac_exec_ext in '' $ac_executable_extensions; do
  6644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6645. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6647. break 2
  6648. fi
  6649. done
  6650. done
  6651. IFS=$as_save_IFS
  6652. fi
  6653. fi
  6654. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6655. if test -n "$ac_ct_OTOOL64"; then
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6657. $as_echo "$ac_ct_OTOOL64" >&6; }
  6658. else
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6660. $as_echo "no" >&6; }
  6661. fi
  6662. if test "x$ac_ct_OTOOL64" = x; then
  6663. OTOOL64=":"
  6664. else
  6665. case $cross_compiling:$ac_tool_warned in
  6666. yes:)
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6669. ac_tool_warned=yes ;;
  6670. esac
  6671. OTOOL64=$ac_ct_OTOOL64
  6672. fi
  6673. else
  6674. OTOOL64="$ac_cv_prog_OTOOL64"
  6675. fi
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6677. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6678. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6679. $as_echo_n "(cached) " >&6
  6680. else
  6681. lt_cv_apple_cc_single_mod=no
  6682. if test -z "${LT_MULTI_MODULE}"; then
  6683. # By default we will add the -single_module flag. You can override
  6684. # by either setting the environment variable LT_MULTI_MODULE
  6685. # non-empty at configure time, or by adding -multi_module to the
  6686. # link flags.
  6687. rm -rf libconftest.dylib*
  6688. echo "int foo(void){return 1;}" > conftest.c
  6689. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6690. -dynamiclib -Wl,-single_module conftest.c" >&5
  6691. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6692. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6693. _lt_result=$?
  6694. # If there is a non-empty error log, and "single_module"
  6695. # appears in it, assume the flag caused a linker warning
  6696. if test -s conftest.err && $GREP single_module conftest.err; then
  6697. cat conftest.err >&5
  6698. # Otherwise, if the output was created with a 0 exit code from
  6699. # the compiler, it worked.
  6700. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6701. lt_cv_apple_cc_single_mod=yes
  6702. else
  6703. cat conftest.err >&5
  6704. fi
  6705. rm -rf libconftest.dylib*
  6706. rm -f conftest.*
  6707. fi
  6708. fi
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6710. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6712. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6713. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6714. $as_echo_n "(cached) " >&6
  6715. else
  6716. lt_cv_ld_exported_symbols_list=no
  6717. save_LDFLAGS=$LDFLAGS
  6718. echo "_main" > conftest.sym
  6719. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6721. /* end confdefs.h. */
  6722. int
  6723. main ()
  6724. {
  6725. ;
  6726. return 0;
  6727. }
  6728. _ACEOF
  6729. if ac_fn_c_try_link "$LINENO"; then :
  6730. lt_cv_ld_exported_symbols_list=yes
  6731. else
  6732. lt_cv_ld_exported_symbols_list=no
  6733. fi
  6734. rm -f core conftest.err conftest.$ac_objext \
  6735. conftest$ac_exeext conftest.$ac_ext
  6736. LDFLAGS="$save_LDFLAGS"
  6737. fi
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6739. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6741. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6742. if ${lt_cv_ld_force_load+:} false; then :
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. lt_cv_ld_force_load=no
  6746. cat > conftest.c << _LT_EOF
  6747. int forced_loaded() { return 2;}
  6748. _LT_EOF
  6749. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6750. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6751. echo "$AR cru libconftest.a conftest.o" >&5
  6752. $AR cru libconftest.a conftest.o 2>&5
  6753. echo "$RANLIB libconftest.a" >&5
  6754. $RANLIB libconftest.a 2>&5
  6755. cat > conftest.c << _LT_EOF
  6756. int main() { return 0;}
  6757. _LT_EOF
  6758. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6759. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6760. _lt_result=$?
  6761. if test -s conftest.err && $GREP force_load conftest.err; then
  6762. cat conftest.err >&5
  6763. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6764. lt_cv_ld_force_load=yes
  6765. else
  6766. cat conftest.err >&5
  6767. fi
  6768. rm -f conftest.err libconftest.a conftest conftest.c
  6769. rm -rf conftest.dSYM
  6770. fi
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6772. $as_echo "$lt_cv_ld_force_load" >&6; }
  6773. case $host_os in
  6774. rhapsody* | darwin1.[012])
  6775. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6776. darwin1.*)
  6777. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6778. darwin*) # darwin 5.x on
  6779. # if running on 10.5 or later, the deployment target defaults
  6780. # to the OS version, if on x86, and 10.4, the deployment
  6781. # target defaults to 10.4. Don't you love it?
  6782. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6783. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6784. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6785. 10.[012]*)
  6786. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6787. 10.*)
  6788. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6789. esac
  6790. ;;
  6791. esac
  6792. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6793. _lt_dar_single_mod='$single_module'
  6794. fi
  6795. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6796. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6797. else
  6798. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6799. fi
  6800. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6801. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6802. else
  6803. _lt_dsymutil=
  6804. fi
  6805. ;;
  6806. esac
  6807. for ac_header in dlfcn.h
  6808. do :
  6809. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6810. "
  6811. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6812. cat >>confdefs.h <<_ACEOF
  6813. #define HAVE_DLFCN_H 1
  6814. _ACEOF
  6815. fi
  6816. done
  6817. # Set options
  6818. enable_dlopen=no
  6819. # Check whether --enable-shared was given.
  6820. if test "${enable_shared+set}" = set; then :
  6821. enableval=$enable_shared; p=${PACKAGE-default}
  6822. case $enableval in
  6823. yes) enable_shared=yes ;;
  6824. no) enable_shared=no ;;
  6825. *)
  6826. enable_shared=no
  6827. # Look at the argument we got. We use all the common list separators.
  6828. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6829. for pkg in $enableval; do
  6830. IFS="$lt_save_ifs"
  6831. if test "X$pkg" = "X$p"; then
  6832. enable_shared=yes
  6833. fi
  6834. done
  6835. IFS="$lt_save_ifs"
  6836. ;;
  6837. esac
  6838. else
  6839. enable_shared=yes
  6840. fi
  6841. # Check whether --enable-static was given.
  6842. if test "${enable_static+set}" = set; then :
  6843. enableval=$enable_static; p=${PACKAGE-default}
  6844. case $enableval in
  6845. yes) enable_static=yes ;;
  6846. no) enable_static=no ;;
  6847. *)
  6848. enable_static=no
  6849. # Look at the argument we got. We use all the common list separators.
  6850. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6851. for pkg in $enableval; do
  6852. IFS="$lt_save_ifs"
  6853. if test "X$pkg" = "X$p"; then
  6854. enable_static=yes
  6855. fi
  6856. done
  6857. IFS="$lt_save_ifs"
  6858. ;;
  6859. esac
  6860. else
  6861. enable_static=yes
  6862. fi
  6863. # Check whether --with-pic was given.
  6864. if test "${with_pic+set}" = set; then :
  6865. withval=$with_pic; lt_p=${PACKAGE-default}
  6866. case $withval in
  6867. yes|no) pic_mode=$withval ;;
  6868. *)
  6869. pic_mode=default
  6870. # Look at the argument we got. We use all the common list separators.
  6871. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6872. for lt_pkg in $withval; do
  6873. IFS="$lt_save_ifs"
  6874. if test "X$lt_pkg" = "X$lt_p"; then
  6875. pic_mode=yes
  6876. fi
  6877. done
  6878. IFS="$lt_save_ifs"
  6879. ;;
  6880. esac
  6881. else
  6882. pic_mode=default
  6883. fi
  6884. test -z "$pic_mode" && pic_mode=default
  6885. # Check whether --enable-fast-install was given.
  6886. if test "${enable_fast_install+set}" = set; then :
  6887. enableval=$enable_fast_install; p=${PACKAGE-default}
  6888. case $enableval in
  6889. yes) enable_fast_install=yes ;;
  6890. no) enable_fast_install=no ;;
  6891. *)
  6892. enable_fast_install=no
  6893. # Look at the argument we got. We use all the common list separators.
  6894. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6895. for pkg in $enableval; do
  6896. IFS="$lt_save_ifs"
  6897. if test "X$pkg" = "X$p"; then
  6898. enable_fast_install=yes
  6899. fi
  6900. done
  6901. IFS="$lt_save_ifs"
  6902. ;;
  6903. esac
  6904. else
  6905. enable_fast_install=yes
  6906. fi
  6907. # This can be used to rebuild libtool when needed
  6908. LIBTOOL_DEPS="$ltmain"
  6909. # Always use our own libtool.
  6910. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6911. test -z "$LN_S" && LN_S="ln -s"
  6912. if test -n "${ZSH_VERSION+set}" ; then
  6913. setopt NO_GLOB_SUBST
  6914. fi
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6916. $as_echo_n "checking for objdir... " >&6; }
  6917. if ${lt_cv_objdir+:} false; then :
  6918. $as_echo_n "(cached) " >&6
  6919. else
  6920. rm -f .libs 2>/dev/null
  6921. mkdir .libs 2>/dev/null
  6922. if test -d .libs; then
  6923. lt_cv_objdir=.libs
  6924. else
  6925. # MS-DOS does not allow filenames that begin with a dot.
  6926. lt_cv_objdir=_libs
  6927. fi
  6928. rmdir .libs 2>/dev/null
  6929. fi
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6931. $as_echo "$lt_cv_objdir" >&6; }
  6932. objdir=$lt_cv_objdir
  6933. cat >>confdefs.h <<_ACEOF
  6934. #define LT_OBJDIR "$lt_cv_objdir/"
  6935. _ACEOF
  6936. case $host_os in
  6937. aix3*)
  6938. # AIX sometimes has problems with the GCC collect2 program. For some
  6939. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6940. # vanish in a puff of smoke.
  6941. if test "X${COLLECT_NAMES+set}" != Xset; then
  6942. COLLECT_NAMES=
  6943. export COLLECT_NAMES
  6944. fi
  6945. ;;
  6946. esac
  6947. # Global variables:
  6948. ofile=libtool
  6949. can_build_shared=yes
  6950. # All known linkers require a `.a' archive for static linking (except MSVC,
  6951. # which needs '.lib').
  6952. libext=a
  6953. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6954. old_CC="$CC"
  6955. old_CFLAGS="$CFLAGS"
  6956. # Set sane defaults for various variables
  6957. test -z "$CC" && CC=cc
  6958. test -z "$LTCC" && LTCC=$CC
  6959. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6960. test -z "$LD" && LD=ld
  6961. test -z "$ac_objext" && ac_objext=o
  6962. for cc_temp in $compiler""; do
  6963. case $cc_temp in
  6964. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6965. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6966. \-*) ;;
  6967. *) break;;
  6968. esac
  6969. done
  6970. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6971. # Only perform the check for file, if the check method requires it
  6972. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6973. case $deplibs_check_method in
  6974. file_magic*)
  6975. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6977. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6978. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6979. $as_echo_n "(cached) " >&6
  6980. else
  6981. case $MAGIC_CMD in
  6982. [\\/*] | ?:[\\/]*)
  6983. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6984. ;;
  6985. *)
  6986. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6987. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6988. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6989. for ac_dir in $ac_dummy; do
  6990. IFS="$lt_save_ifs"
  6991. test -z "$ac_dir" && ac_dir=.
  6992. if test -f $ac_dir/${ac_tool_prefix}file; then
  6993. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6994. if test -n "$file_magic_test_file"; then
  6995. case $deplibs_check_method in
  6996. "file_magic "*)
  6997. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6998. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6999. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7000. $EGREP "$file_magic_regex" > /dev/null; then
  7001. :
  7002. else
  7003. cat <<_LT_EOF 1>&2
  7004. *** Warning: the command libtool uses to detect shared libraries,
  7005. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7006. *** The result is that libtool may fail to recognize shared libraries
  7007. *** as such. This will affect the creation of libtool libraries that
  7008. *** depend on shared libraries, but programs linked with such libtool
  7009. *** libraries will work regardless of this problem. Nevertheless, you
  7010. *** may want to report the problem to your system manager and/or to
  7011. *** bug-libtool@gnu.org
  7012. _LT_EOF
  7013. fi ;;
  7014. esac
  7015. fi
  7016. break
  7017. fi
  7018. done
  7019. IFS="$lt_save_ifs"
  7020. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7021. ;;
  7022. esac
  7023. fi
  7024. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7025. if test -n "$MAGIC_CMD"; then
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7027. $as_echo "$MAGIC_CMD" >&6; }
  7028. else
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7030. $as_echo "no" >&6; }
  7031. fi
  7032. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7033. if test -n "$ac_tool_prefix"; then
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7035. $as_echo_n "checking for file... " >&6; }
  7036. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7037. $as_echo_n "(cached) " >&6
  7038. else
  7039. case $MAGIC_CMD in
  7040. [\\/*] | ?:[\\/]*)
  7041. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7042. ;;
  7043. *)
  7044. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7045. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7046. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7047. for ac_dir in $ac_dummy; do
  7048. IFS="$lt_save_ifs"
  7049. test -z "$ac_dir" && ac_dir=.
  7050. if test -f $ac_dir/file; then
  7051. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7052. if test -n "$file_magic_test_file"; then
  7053. case $deplibs_check_method in
  7054. "file_magic "*)
  7055. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7056. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7057. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7058. $EGREP "$file_magic_regex" > /dev/null; then
  7059. :
  7060. else
  7061. cat <<_LT_EOF 1>&2
  7062. *** Warning: the command libtool uses to detect shared libraries,
  7063. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7064. *** The result is that libtool may fail to recognize shared libraries
  7065. *** as such. This will affect the creation of libtool libraries that
  7066. *** depend on shared libraries, but programs linked with such libtool
  7067. *** libraries will work regardless of this problem. Nevertheless, you
  7068. *** may want to report the problem to your system manager and/or to
  7069. *** bug-libtool@gnu.org
  7070. _LT_EOF
  7071. fi ;;
  7072. esac
  7073. fi
  7074. break
  7075. fi
  7076. done
  7077. IFS="$lt_save_ifs"
  7078. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7079. ;;
  7080. esac
  7081. fi
  7082. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7083. if test -n "$MAGIC_CMD"; then
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7085. $as_echo "$MAGIC_CMD" >&6; }
  7086. else
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7088. $as_echo "no" >&6; }
  7089. fi
  7090. else
  7091. MAGIC_CMD=:
  7092. fi
  7093. fi
  7094. fi
  7095. ;;
  7096. esac
  7097. # Use C for the default configuration in the libtool script
  7098. lt_save_CC="$CC"
  7099. ac_ext=c
  7100. ac_cpp='$CPP $CPPFLAGS'
  7101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7104. # Source file extension for C test sources.
  7105. ac_ext=c
  7106. # Object file extension for compiled C test sources.
  7107. objext=o
  7108. objext=$objext
  7109. # Code to be used in simple compile tests
  7110. lt_simple_compile_test_code="int some_variable = 0;"
  7111. # Code to be used in simple link tests
  7112. lt_simple_link_test_code='int main(){return(0);}'
  7113. # If no C compiler was specified, use CC.
  7114. LTCC=${LTCC-"$CC"}
  7115. # If no C compiler flags were specified, use CFLAGS.
  7116. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7117. # Allow CC to be a program name with arguments.
  7118. compiler=$CC
  7119. # Save the default compiler, since it gets overwritten when the other
  7120. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7121. compiler_DEFAULT=$CC
  7122. # save warnings/boilerplate of simple test code
  7123. ac_outfile=conftest.$ac_objext
  7124. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7125. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7126. _lt_compiler_boilerplate=`cat conftest.err`
  7127. $RM conftest*
  7128. ac_outfile=conftest.$ac_objext
  7129. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7130. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7131. _lt_linker_boilerplate=`cat conftest.err`
  7132. $RM -r conftest*
  7133. if test -n "$compiler"; then
  7134. lt_prog_compiler_no_builtin_flag=
  7135. if test "$GCC" = yes; then
  7136. case $cc_basename in
  7137. nvcc*)
  7138. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7139. *)
  7140. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7141. esac
  7142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7143. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7144. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7145. $as_echo_n "(cached) " >&6
  7146. else
  7147. lt_cv_prog_compiler_rtti_exceptions=no
  7148. ac_outfile=conftest.$ac_objext
  7149. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7150. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7151. # Insert the option either (1) after the last *FLAGS variable, or
  7152. # (2) before a word containing "conftest.", or (3) at the end.
  7153. # Note that $ac_compile itself does not contain backslashes and begins
  7154. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7155. # The option is referenced via a variable to avoid confusing sed.
  7156. lt_compile=`echo "$ac_compile" | $SED \
  7157. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7158. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7159. -e 's:$: $lt_compiler_flag:'`
  7160. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7161. (eval "$lt_compile" 2>conftest.err)
  7162. ac_status=$?
  7163. cat conftest.err >&5
  7164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7165. if (exit $ac_status) && test -s "$ac_outfile"; then
  7166. # The compiler can only warn and ignore the option if not recognized
  7167. # So say no if there are warnings other than the usual output.
  7168. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7169. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7170. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7171. lt_cv_prog_compiler_rtti_exceptions=yes
  7172. fi
  7173. fi
  7174. $RM conftest*
  7175. fi
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7177. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7178. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7179. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7180. else
  7181. :
  7182. fi
  7183. fi
  7184. lt_prog_compiler_wl=
  7185. lt_prog_compiler_pic=
  7186. lt_prog_compiler_static=
  7187. if test "$GCC" = yes; then
  7188. lt_prog_compiler_wl='-Wl,'
  7189. lt_prog_compiler_static='-static'
  7190. case $host_os in
  7191. aix*)
  7192. # All AIX code is PIC.
  7193. if test "$host_cpu" = ia64; then
  7194. # AIX 5 now supports IA64 processor
  7195. lt_prog_compiler_static='-Bstatic'
  7196. fi
  7197. ;;
  7198. amigaos*)
  7199. case $host_cpu in
  7200. powerpc)
  7201. # see comment about AmigaOS4 .so support
  7202. lt_prog_compiler_pic='-fPIC'
  7203. ;;
  7204. m68k)
  7205. # FIXME: we need at least 68020 code to build shared libraries, but
  7206. # adding the `-m68020' flag to GCC prevents building anything better,
  7207. # like `-m68040'.
  7208. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7209. ;;
  7210. esac
  7211. ;;
  7212. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7213. # PIC is the default for these OSes.
  7214. ;;
  7215. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7216. # This hack is so that the source file can tell whether it is being
  7217. # built for inclusion in a dll (and should export symbols for example).
  7218. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7219. # (--disable-auto-import) libraries
  7220. lt_prog_compiler_pic='-DDLL_EXPORT'
  7221. ;;
  7222. darwin* | rhapsody*)
  7223. # PIC is the default on this platform
  7224. # Common symbols not allowed in MH_DYLIB files
  7225. lt_prog_compiler_pic='-fno-common'
  7226. ;;
  7227. haiku*)
  7228. # PIC is the default for Haiku.
  7229. # The "-static" flag exists, but is broken.
  7230. lt_prog_compiler_static=
  7231. ;;
  7232. hpux*)
  7233. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7234. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7235. # sets the default TLS model and affects inlining.
  7236. case $host_cpu in
  7237. hppa*64*)
  7238. # +Z the default
  7239. ;;
  7240. *)
  7241. lt_prog_compiler_pic='-fPIC'
  7242. ;;
  7243. esac
  7244. ;;
  7245. interix[3-9]*)
  7246. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7247. # Instead, we relocate shared libraries at runtime.
  7248. ;;
  7249. msdosdjgpp*)
  7250. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7251. # on systems that don't support them.
  7252. lt_prog_compiler_can_build_shared=no
  7253. enable_shared=no
  7254. ;;
  7255. *nto* | *qnx*)
  7256. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7257. # it will coredump.
  7258. lt_prog_compiler_pic='-fPIC -shared'
  7259. ;;
  7260. sysv4*MP*)
  7261. if test -d /usr/nec; then
  7262. lt_prog_compiler_pic=-Kconform_pic
  7263. fi
  7264. ;;
  7265. *)
  7266. lt_prog_compiler_pic='-fPIC'
  7267. ;;
  7268. esac
  7269. case $cc_basename in
  7270. nvcc*) # Cuda Compiler Driver 2.2
  7271. lt_prog_compiler_wl='-Xlinker '
  7272. if test -n "$lt_prog_compiler_pic"; then
  7273. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7274. fi
  7275. ;;
  7276. esac
  7277. else
  7278. # PORTME Check for flag to pass linker flags through the system compiler.
  7279. case $host_os in
  7280. aix*)
  7281. lt_prog_compiler_wl='-Wl,'
  7282. if test "$host_cpu" = ia64; then
  7283. # AIX 5 now supports IA64 processor
  7284. lt_prog_compiler_static='-Bstatic'
  7285. else
  7286. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7287. fi
  7288. ;;
  7289. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7290. # This hack is so that the source file can tell whether it is being
  7291. # built for inclusion in a dll (and should export symbols for example).
  7292. lt_prog_compiler_pic='-DDLL_EXPORT'
  7293. ;;
  7294. hpux9* | hpux10* | hpux11*)
  7295. lt_prog_compiler_wl='-Wl,'
  7296. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7297. # not for PA HP-UX.
  7298. case $host_cpu in
  7299. hppa*64*|ia64*)
  7300. # +Z the default
  7301. ;;
  7302. *)
  7303. lt_prog_compiler_pic='+Z'
  7304. ;;
  7305. esac
  7306. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7307. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7308. ;;
  7309. irix5* | irix6* | nonstopux*)
  7310. lt_prog_compiler_wl='-Wl,'
  7311. # PIC (with -KPIC) is the default.
  7312. lt_prog_compiler_static='-non_shared'
  7313. ;;
  7314. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7315. case $cc_basename in
  7316. # old Intel for x86_64 which still supported -KPIC.
  7317. ecc*)
  7318. lt_prog_compiler_wl='-Wl,'
  7319. lt_prog_compiler_pic='-KPIC'
  7320. lt_prog_compiler_static='-static'
  7321. ;;
  7322. # icc used to be incompatible with GCC.
  7323. # ICC 10 doesn't accept -KPIC any more.
  7324. icc* | ifort*)
  7325. lt_prog_compiler_wl='-Wl,'
  7326. lt_prog_compiler_pic='-fPIC'
  7327. lt_prog_compiler_static='-static'
  7328. ;;
  7329. # Lahey Fortran 8.1.
  7330. lf95*)
  7331. lt_prog_compiler_wl='-Wl,'
  7332. lt_prog_compiler_pic='--shared'
  7333. lt_prog_compiler_static='--static'
  7334. ;;
  7335. nagfor*)
  7336. # NAG Fortran compiler
  7337. lt_prog_compiler_wl='-Wl,-Wl,,'
  7338. lt_prog_compiler_pic='-PIC'
  7339. lt_prog_compiler_static='-Bstatic'
  7340. ;;
  7341. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7342. # Portland Group compilers (*not* the Pentium gcc compiler,
  7343. # which looks to be a dead project)
  7344. lt_prog_compiler_wl='-Wl,'
  7345. lt_prog_compiler_pic='-fpic'
  7346. lt_prog_compiler_static='-Bstatic'
  7347. ;;
  7348. ccc*)
  7349. lt_prog_compiler_wl='-Wl,'
  7350. # All Alpha code is PIC.
  7351. lt_prog_compiler_static='-non_shared'
  7352. ;;
  7353. xl* | bgxl* | bgf* | mpixl*)
  7354. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7355. lt_prog_compiler_wl='-Wl,'
  7356. lt_prog_compiler_pic='-qpic'
  7357. lt_prog_compiler_static='-qstaticlink'
  7358. ;;
  7359. *)
  7360. case `$CC -V 2>&1 | sed 5q` in
  7361. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7362. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7363. lt_prog_compiler_pic='-KPIC'
  7364. lt_prog_compiler_static='-Bstatic'
  7365. lt_prog_compiler_wl=''
  7366. ;;
  7367. *Sun\ F* | *Sun*Fortran*)
  7368. lt_prog_compiler_pic='-KPIC'
  7369. lt_prog_compiler_static='-Bstatic'
  7370. lt_prog_compiler_wl='-Qoption ld '
  7371. ;;
  7372. *Sun\ C*)
  7373. # Sun C 5.9
  7374. lt_prog_compiler_pic='-KPIC'
  7375. lt_prog_compiler_static='-Bstatic'
  7376. lt_prog_compiler_wl='-Wl,'
  7377. ;;
  7378. *Intel*\ [CF]*Compiler*)
  7379. lt_prog_compiler_wl='-Wl,'
  7380. lt_prog_compiler_pic='-fPIC'
  7381. lt_prog_compiler_static='-static'
  7382. ;;
  7383. *Portland\ Group*)
  7384. lt_prog_compiler_wl='-Wl,'
  7385. lt_prog_compiler_pic='-fpic'
  7386. lt_prog_compiler_static='-Bstatic'
  7387. ;;
  7388. esac
  7389. ;;
  7390. esac
  7391. ;;
  7392. newsos6)
  7393. lt_prog_compiler_pic='-KPIC'
  7394. lt_prog_compiler_static='-Bstatic'
  7395. ;;
  7396. *nto* | *qnx*)
  7397. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7398. # it will coredump.
  7399. lt_prog_compiler_pic='-fPIC -shared'
  7400. ;;
  7401. osf3* | osf4* | osf5*)
  7402. lt_prog_compiler_wl='-Wl,'
  7403. # All OSF/1 code is PIC.
  7404. lt_prog_compiler_static='-non_shared'
  7405. ;;
  7406. rdos*)
  7407. lt_prog_compiler_static='-non_shared'
  7408. ;;
  7409. solaris*)
  7410. lt_prog_compiler_pic='-KPIC'
  7411. lt_prog_compiler_static='-Bstatic'
  7412. case $cc_basename in
  7413. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7414. lt_prog_compiler_wl='-Qoption ld ';;
  7415. *)
  7416. lt_prog_compiler_wl='-Wl,';;
  7417. esac
  7418. ;;
  7419. sunos4*)
  7420. lt_prog_compiler_wl='-Qoption ld '
  7421. lt_prog_compiler_pic='-PIC'
  7422. lt_prog_compiler_static='-Bstatic'
  7423. ;;
  7424. sysv4 | sysv4.2uw2* | sysv4.3*)
  7425. lt_prog_compiler_wl='-Wl,'
  7426. lt_prog_compiler_pic='-KPIC'
  7427. lt_prog_compiler_static='-Bstatic'
  7428. ;;
  7429. sysv4*MP*)
  7430. if test -d /usr/nec ;then
  7431. lt_prog_compiler_pic='-Kconform_pic'
  7432. lt_prog_compiler_static='-Bstatic'
  7433. fi
  7434. ;;
  7435. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7436. lt_prog_compiler_wl='-Wl,'
  7437. lt_prog_compiler_pic='-KPIC'
  7438. lt_prog_compiler_static='-Bstatic'
  7439. ;;
  7440. unicos*)
  7441. lt_prog_compiler_wl='-Wl,'
  7442. lt_prog_compiler_can_build_shared=no
  7443. ;;
  7444. uts4*)
  7445. lt_prog_compiler_pic='-pic'
  7446. lt_prog_compiler_static='-Bstatic'
  7447. ;;
  7448. *)
  7449. lt_prog_compiler_can_build_shared=no
  7450. ;;
  7451. esac
  7452. fi
  7453. case $host_os in
  7454. # For platforms which do not support PIC, -DPIC is meaningless:
  7455. *djgpp*)
  7456. lt_prog_compiler_pic=
  7457. ;;
  7458. *)
  7459. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7460. ;;
  7461. esac
  7462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7463. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7464. if ${lt_cv_prog_compiler_pic+:} false; then :
  7465. $as_echo_n "(cached) " >&6
  7466. else
  7467. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7468. fi
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7470. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7471. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7472. #
  7473. # Check to make sure the PIC flag actually works.
  7474. #
  7475. if test -n "$lt_prog_compiler_pic"; then
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7477. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7478. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7479. $as_echo_n "(cached) " >&6
  7480. else
  7481. lt_cv_prog_compiler_pic_works=no
  7482. ac_outfile=conftest.$ac_objext
  7483. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7484. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7485. # Insert the option either (1) after the last *FLAGS variable, or
  7486. # (2) before a word containing "conftest.", or (3) at the end.
  7487. # Note that $ac_compile itself does not contain backslashes and begins
  7488. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7489. # The option is referenced via a variable to avoid confusing sed.
  7490. lt_compile=`echo "$ac_compile" | $SED \
  7491. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7492. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7493. -e 's:$: $lt_compiler_flag:'`
  7494. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7495. (eval "$lt_compile" 2>conftest.err)
  7496. ac_status=$?
  7497. cat conftest.err >&5
  7498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7499. if (exit $ac_status) && test -s "$ac_outfile"; then
  7500. # The compiler can only warn and ignore the option if not recognized
  7501. # So say no if there are warnings other than the usual output.
  7502. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7503. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7504. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7505. lt_cv_prog_compiler_pic_works=yes
  7506. fi
  7507. fi
  7508. $RM conftest*
  7509. fi
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7511. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7512. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7513. case $lt_prog_compiler_pic in
  7514. "" | " "*) ;;
  7515. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7516. esac
  7517. else
  7518. lt_prog_compiler_pic=
  7519. lt_prog_compiler_can_build_shared=no
  7520. fi
  7521. fi
  7522. #
  7523. # Check to make sure the static flag actually works.
  7524. #
  7525. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7527. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7528. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7529. $as_echo_n "(cached) " >&6
  7530. else
  7531. lt_cv_prog_compiler_static_works=no
  7532. save_LDFLAGS="$LDFLAGS"
  7533. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7534. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7535. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7536. # The linker can only warn and ignore the option if not recognized
  7537. # So say no if there are warnings
  7538. if test -s conftest.err; then
  7539. # Append any errors to the config.log.
  7540. cat conftest.err 1>&5
  7541. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7542. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7543. if diff conftest.exp conftest.er2 >/dev/null; then
  7544. lt_cv_prog_compiler_static_works=yes
  7545. fi
  7546. else
  7547. lt_cv_prog_compiler_static_works=yes
  7548. fi
  7549. fi
  7550. $RM -r conftest*
  7551. LDFLAGS="$save_LDFLAGS"
  7552. fi
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7554. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7555. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7556. :
  7557. else
  7558. lt_prog_compiler_static=
  7559. fi
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7561. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7562. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7563. $as_echo_n "(cached) " >&6
  7564. else
  7565. lt_cv_prog_compiler_c_o=no
  7566. $RM -r conftest 2>/dev/null
  7567. mkdir conftest
  7568. cd conftest
  7569. mkdir out
  7570. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7571. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7572. # Insert the option either (1) after the last *FLAGS variable, or
  7573. # (2) before a word containing "conftest.", or (3) at the end.
  7574. # Note that $ac_compile itself does not contain backslashes and begins
  7575. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7576. lt_compile=`echo "$ac_compile" | $SED \
  7577. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7578. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7579. -e 's:$: $lt_compiler_flag:'`
  7580. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7581. (eval "$lt_compile" 2>out/conftest.err)
  7582. ac_status=$?
  7583. cat out/conftest.err >&5
  7584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7585. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7586. then
  7587. # The compiler can only warn and ignore the option if not recognized
  7588. # So say no if there are warnings
  7589. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7590. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7591. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7592. lt_cv_prog_compiler_c_o=yes
  7593. fi
  7594. fi
  7595. chmod u+w . 2>&5
  7596. $RM conftest*
  7597. # SGI C++ compiler will create directory out/ii_files/ for
  7598. # template instantiation
  7599. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7600. $RM out/* && rmdir out
  7601. cd ..
  7602. $RM -r conftest
  7603. $RM conftest*
  7604. fi
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7606. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7608. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7609. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7610. $as_echo_n "(cached) " >&6
  7611. else
  7612. lt_cv_prog_compiler_c_o=no
  7613. $RM -r conftest 2>/dev/null
  7614. mkdir conftest
  7615. cd conftest
  7616. mkdir out
  7617. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7618. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7619. # Insert the option either (1) after the last *FLAGS variable, or
  7620. # (2) before a word containing "conftest.", or (3) at the end.
  7621. # Note that $ac_compile itself does not contain backslashes and begins
  7622. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7623. lt_compile=`echo "$ac_compile" | $SED \
  7624. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7625. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7626. -e 's:$: $lt_compiler_flag:'`
  7627. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7628. (eval "$lt_compile" 2>out/conftest.err)
  7629. ac_status=$?
  7630. cat out/conftest.err >&5
  7631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7632. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7633. then
  7634. # The compiler can only warn and ignore the option if not recognized
  7635. # So say no if there are warnings
  7636. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7637. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7638. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7639. lt_cv_prog_compiler_c_o=yes
  7640. fi
  7641. fi
  7642. chmod u+w . 2>&5
  7643. $RM conftest*
  7644. # SGI C++ compiler will create directory out/ii_files/ for
  7645. # template instantiation
  7646. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7647. $RM out/* && rmdir out
  7648. cd ..
  7649. $RM -r conftest
  7650. $RM conftest*
  7651. fi
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7653. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7654. hard_links="nottested"
  7655. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7656. # do not overwrite the value of need_locks provided by the user
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7658. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7659. hard_links=yes
  7660. $RM conftest*
  7661. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7662. touch conftest.a
  7663. ln conftest.a conftest.b 2>&5 || hard_links=no
  7664. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7666. $as_echo "$hard_links" >&6; }
  7667. if test "$hard_links" = no; then
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7669. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7670. need_locks=warn
  7671. fi
  7672. else
  7673. need_locks=no
  7674. fi
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7676. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7677. runpath_var=
  7678. allow_undefined_flag=
  7679. always_export_symbols=no
  7680. archive_cmds=
  7681. archive_expsym_cmds=
  7682. compiler_needs_object=no
  7683. enable_shared_with_static_runtimes=no
  7684. export_dynamic_flag_spec=
  7685. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7686. hardcode_automatic=no
  7687. hardcode_direct=no
  7688. hardcode_direct_absolute=no
  7689. hardcode_libdir_flag_spec=
  7690. hardcode_libdir_separator=
  7691. hardcode_minus_L=no
  7692. hardcode_shlibpath_var=unsupported
  7693. inherit_rpath=no
  7694. link_all_deplibs=unknown
  7695. module_cmds=
  7696. module_expsym_cmds=
  7697. old_archive_from_new_cmds=
  7698. old_archive_from_expsyms_cmds=
  7699. thread_safe_flag_spec=
  7700. whole_archive_flag_spec=
  7701. # include_expsyms should be a list of space-separated symbols to be *always*
  7702. # included in the symbol list
  7703. include_expsyms=
  7704. # exclude_expsyms can be an extended regexp of symbols to exclude
  7705. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7706. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7707. # as well as any symbol that contains `d'.
  7708. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7709. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7710. # platforms (ab)use it in PIC code, but their linkers get confused if
  7711. # the symbol is explicitly referenced. Since portable code cannot
  7712. # rely on this symbol name, it's probably fine to never include it in
  7713. # preloaded symbol tables.
  7714. # Exclude shared library initialization/finalization symbols.
  7715. extract_expsyms_cmds=
  7716. case $host_os in
  7717. cygwin* | mingw* | pw32* | cegcc*)
  7718. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7719. # When not using gcc, we currently assume that we are using
  7720. # Microsoft Visual C++.
  7721. if test "$GCC" != yes; then
  7722. with_gnu_ld=no
  7723. fi
  7724. ;;
  7725. interix*)
  7726. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7727. with_gnu_ld=yes
  7728. ;;
  7729. openbsd*)
  7730. with_gnu_ld=no
  7731. ;;
  7732. esac
  7733. ld_shlibs=yes
  7734. # On some targets, GNU ld is compatible enough with the native linker
  7735. # that we're better off using the native interface for both.
  7736. lt_use_gnu_ld_interface=no
  7737. if test "$with_gnu_ld" = yes; then
  7738. case $host_os in
  7739. aix*)
  7740. # The AIX port of GNU ld has always aspired to compatibility
  7741. # with the native linker. However, as the warning in the GNU ld
  7742. # block says, versions before 2.19.5* couldn't really create working
  7743. # shared libraries, regardless of the interface used.
  7744. case `$LD -v 2>&1` in
  7745. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7746. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7747. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7748. *)
  7749. lt_use_gnu_ld_interface=yes
  7750. ;;
  7751. esac
  7752. ;;
  7753. *)
  7754. lt_use_gnu_ld_interface=yes
  7755. ;;
  7756. esac
  7757. fi
  7758. if test "$lt_use_gnu_ld_interface" = yes; then
  7759. # If archive_cmds runs LD, not CC, wlarc should be empty
  7760. wlarc='${wl}'
  7761. # Set some defaults for GNU ld with shared library support. These
  7762. # are reset later if shared libraries are not supported. Putting them
  7763. # here allows them to be overridden if necessary.
  7764. runpath_var=LD_RUN_PATH
  7765. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7766. export_dynamic_flag_spec='${wl}--export-dynamic'
  7767. # ancient GNU ld didn't support --whole-archive et. al.
  7768. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7769. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7770. else
  7771. whole_archive_flag_spec=
  7772. fi
  7773. supports_anon_versioning=no
  7774. case `$LD -v 2>&1` in
  7775. *GNU\ gold*) supports_anon_versioning=yes ;;
  7776. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7777. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7778. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7779. *\ 2.11.*) ;; # other 2.11 versions
  7780. *) supports_anon_versioning=yes ;;
  7781. esac
  7782. # See if GNU ld supports shared libraries.
  7783. case $host_os in
  7784. aix[3-9]*)
  7785. # On AIX/PPC, the GNU linker is very broken
  7786. if test "$host_cpu" != ia64; then
  7787. ld_shlibs=no
  7788. cat <<_LT_EOF 1>&2
  7789. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7790. *** to be unable to reliably create shared libraries on AIX.
  7791. *** Therefore, libtool is disabling shared libraries support. If you
  7792. *** really care for shared libraries, you may want to install binutils
  7793. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7794. *** You will then need to restart the configuration process.
  7795. _LT_EOF
  7796. fi
  7797. ;;
  7798. amigaos*)
  7799. case $host_cpu in
  7800. powerpc)
  7801. # see comment about AmigaOS4 .so support
  7802. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7803. archive_expsym_cmds=''
  7804. ;;
  7805. m68k)
  7806. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7807. hardcode_libdir_flag_spec='-L$libdir'
  7808. hardcode_minus_L=yes
  7809. ;;
  7810. esac
  7811. ;;
  7812. beos*)
  7813. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7814. allow_undefined_flag=unsupported
  7815. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7816. # support --undefined. This deserves some investigation. FIXME
  7817. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7818. else
  7819. ld_shlibs=no
  7820. fi
  7821. ;;
  7822. cygwin* | mingw* | pw32* | cegcc*)
  7823. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7824. # as there is no search path for DLLs.
  7825. hardcode_libdir_flag_spec='-L$libdir'
  7826. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7827. allow_undefined_flag=unsupported
  7828. always_export_symbols=no
  7829. enable_shared_with_static_runtimes=yes
  7830. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7831. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7832. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7833. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7834. # If the export-symbols file already is a .def file (1st line
  7835. # is EXPORTS), use it as is; otherwise, prepend...
  7836. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7837. cp $export_symbols $output_objdir/$soname.def;
  7838. else
  7839. echo EXPORTS > $output_objdir/$soname.def;
  7840. cat $export_symbols >> $output_objdir/$soname.def;
  7841. fi~
  7842. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7843. else
  7844. ld_shlibs=no
  7845. fi
  7846. ;;
  7847. haiku*)
  7848. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7849. link_all_deplibs=yes
  7850. ;;
  7851. interix[3-9]*)
  7852. hardcode_direct=no
  7853. hardcode_shlibpath_var=no
  7854. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7855. export_dynamic_flag_spec='${wl}-E'
  7856. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7857. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7858. # default) and relocated if they conflict, which is a slow very memory
  7859. # consuming and fragmenting process. To avoid this, we pick a random,
  7860. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7861. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7862. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7863. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7864. ;;
  7865. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7866. tmp_diet=no
  7867. if test "$host_os" = linux-dietlibc; then
  7868. case $cc_basename in
  7869. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7870. esac
  7871. fi
  7872. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7873. && test "$tmp_diet" = no
  7874. then
  7875. tmp_addflag=' $pic_flag'
  7876. tmp_sharedflag='-shared'
  7877. case $cc_basename,$host_cpu in
  7878. pgcc*) # Portland Group C compiler
  7879. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7880. tmp_addflag=' $pic_flag'
  7881. ;;
  7882. pgf77* | pgf90* | pgf95* | pgfortran*)
  7883. # Portland Group f77 and f90 compilers
  7884. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7885. tmp_addflag=' $pic_flag -Mnomain' ;;
  7886. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7887. tmp_addflag=' -i_dynamic' ;;
  7888. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7889. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7890. ifc* | ifort*) # Intel Fortran compiler
  7891. tmp_addflag=' -nofor_main' ;;
  7892. lf95*) # Lahey Fortran 8.1
  7893. whole_archive_flag_spec=
  7894. tmp_sharedflag='--shared' ;;
  7895. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7896. tmp_sharedflag='-qmkshrobj'
  7897. tmp_addflag= ;;
  7898. nvcc*) # Cuda Compiler Driver 2.2
  7899. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7900. compiler_needs_object=yes
  7901. ;;
  7902. esac
  7903. case `$CC -V 2>&1 | sed 5q` in
  7904. *Sun\ C*) # Sun C 5.9
  7905. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7906. compiler_needs_object=yes
  7907. tmp_sharedflag='-G' ;;
  7908. *Sun\ F*) # Sun Fortran 8.3
  7909. tmp_sharedflag='-G' ;;
  7910. esac
  7911. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7912. if test "x$supports_anon_versioning" = xyes; then
  7913. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7914. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7915. echo "local: *; };" >> $output_objdir/$libname.ver~
  7916. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7917. fi
  7918. case $cc_basename in
  7919. xlf* | bgf* | bgxlf* | mpixlf*)
  7920. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7921. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7922. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7923. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7924. if test "x$supports_anon_versioning" = xyes; then
  7925. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7926. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7927. echo "local: *; };" >> $output_objdir/$libname.ver~
  7928. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7929. fi
  7930. ;;
  7931. esac
  7932. else
  7933. ld_shlibs=no
  7934. fi
  7935. ;;
  7936. netbsd*)
  7937. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7938. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7939. wlarc=
  7940. else
  7941. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7942. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7943. fi
  7944. ;;
  7945. solaris*)
  7946. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7947. ld_shlibs=no
  7948. cat <<_LT_EOF 1>&2
  7949. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7950. *** create shared libraries on Solaris systems. Therefore, libtool
  7951. *** is disabling shared libraries support. We urge you to upgrade GNU
  7952. *** binutils to release 2.9.1 or newer. Another option is to modify
  7953. *** your PATH or compiler configuration so that the native linker is
  7954. *** used, and then restart.
  7955. _LT_EOF
  7956. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7957. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7958. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7959. else
  7960. ld_shlibs=no
  7961. fi
  7962. ;;
  7963. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7964. case `$LD -v 2>&1` in
  7965. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7966. ld_shlibs=no
  7967. cat <<_LT_EOF 1>&2
  7968. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7969. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7970. *** is disabling shared libraries support. We urge you to upgrade GNU
  7971. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7972. *** your PATH or compiler configuration so that the native linker is
  7973. *** used, and then restart.
  7974. _LT_EOF
  7975. ;;
  7976. *)
  7977. # For security reasons, it is highly recommended that you always
  7978. # use absolute paths for naming shared libraries, and exclude the
  7979. # DT_RUNPATH tag from executables and libraries. But doing so
  7980. # requires that you compile everything twice, which is a pain.
  7981. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7982. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7983. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7984. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7985. else
  7986. ld_shlibs=no
  7987. fi
  7988. ;;
  7989. esac
  7990. ;;
  7991. sunos4*)
  7992. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7993. wlarc=
  7994. hardcode_direct=yes
  7995. hardcode_shlibpath_var=no
  7996. ;;
  7997. *)
  7998. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7999. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8000. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8001. else
  8002. ld_shlibs=no
  8003. fi
  8004. ;;
  8005. esac
  8006. if test "$ld_shlibs" = no; then
  8007. runpath_var=
  8008. hardcode_libdir_flag_spec=
  8009. export_dynamic_flag_spec=
  8010. whole_archive_flag_spec=
  8011. fi
  8012. else
  8013. # PORTME fill in a description of your system's linker (not GNU ld)
  8014. case $host_os in
  8015. aix3*)
  8016. allow_undefined_flag=unsupported
  8017. always_export_symbols=yes
  8018. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8019. # Note: this linker hardcodes the directories in LIBPATH if there
  8020. # are no directories specified by -L.
  8021. hardcode_minus_L=yes
  8022. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8023. # Neither direct hardcoding nor static linking is supported with a
  8024. # broken collect2.
  8025. hardcode_direct=unsupported
  8026. fi
  8027. ;;
  8028. aix[4-9]*)
  8029. if test "$host_cpu" = ia64; then
  8030. # On IA64, the linker does run time linking by default, so we don't
  8031. # have to do anything special.
  8032. aix_use_runtimelinking=no
  8033. exp_sym_flag='-Bexport'
  8034. no_entry_flag=""
  8035. else
  8036. # If we're using GNU nm, then we don't want the "-C" option.
  8037. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8038. # Also, AIX nm treats weak defined symbols like other global
  8039. # defined symbols, whereas GNU nm marks them as "W".
  8040. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8041. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8042. else
  8043. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8044. fi
  8045. aix_use_runtimelinking=no
  8046. # Test if we are trying to use run time linking or normal
  8047. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8048. # need to do runtime linking.
  8049. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8050. for ld_flag in $LDFLAGS; do
  8051. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8052. aix_use_runtimelinking=yes
  8053. break
  8054. fi
  8055. done
  8056. ;;
  8057. esac
  8058. exp_sym_flag='-bexport'
  8059. no_entry_flag='-bnoentry'
  8060. fi
  8061. # When large executables or shared objects are built, AIX ld can
  8062. # have problems creating the table of contents. If linking a library
  8063. # or program results in "error TOC overflow" add -mminimal-toc to
  8064. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8065. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8066. archive_cmds=''
  8067. hardcode_direct=yes
  8068. hardcode_direct_absolute=yes
  8069. hardcode_libdir_separator=':'
  8070. link_all_deplibs=yes
  8071. file_list_spec='${wl}-f,'
  8072. if test "$GCC" = yes; then
  8073. case $host_os in aix4.[012]|aix4.[012].*)
  8074. # We only want to do this on AIX 4.2 and lower, the check
  8075. # below for broken collect2 doesn't work under 4.3+
  8076. collect2name=`${CC} -print-prog-name=collect2`
  8077. if test -f "$collect2name" &&
  8078. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8079. then
  8080. # We have reworked collect2
  8081. :
  8082. else
  8083. # We have old collect2
  8084. hardcode_direct=unsupported
  8085. # It fails to find uninstalled libraries when the uninstalled
  8086. # path is not listed in the libpath. Setting hardcode_minus_L
  8087. # to unsupported forces relinking
  8088. hardcode_minus_L=yes
  8089. hardcode_libdir_flag_spec='-L$libdir'
  8090. hardcode_libdir_separator=
  8091. fi
  8092. ;;
  8093. esac
  8094. shared_flag='-shared'
  8095. if test "$aix_use_runtimelinking" = yes; then
  8096. shared_flag="$shared_flag "'${wl}-G'
  8097. fi
  8098. else
  8099. # not using gcc
  8100. if test "$host_cpu" = ia64; then
  8101. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8102. # chokes on -Wl,-G. The following line is correct:
  8103. shared_flag='-G'
  8104. else
  8105. if test "$aix_use_runtimelinking" = yes; then
  8106. shared_flag='${wl}-G'
  8107. else
  8108. shared_flag='${wl}-bM:SRE'
  8109. fi
  8110. fi
  8111. fi
  8112. export_dynamic_flag_spec='${wl}-bexpall'
  8113. # It seems that -bexpall does not export symbols beginning with
  8114. # underscore (_), so it is better to generate a list of symbols to export.
  8115. always_export_symbols=yes
  8116. if test "$aix_use_runtimelinking" = yes; then
  8117. # Warning - without using the other runtime loading flags (-brtl),
  8118. # -berok will link without error, but may produce a broken library.
  8119. allow_undefined_flag='-berok'
  8120. # Determine the default libpath from the value encoded in an
  8121. # empty executable.
  8122. if test "${lt_cv_aix_libpath+set}" = set; then
  8123. aix_libpath=$lt_cv_aix_libpath
  8124. else
  8125. if ${lt_cv_aix_libpath_+:} false; then :
  8126. $as_echo_n "(cached) " >&6
  8127. else
  8128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8129. /* end confdefs.h. */
  8130. int
  8131. main ()
  8132. {
  8133. ;
  8134. return 0;
  8135. }
  8136. _ACEOF
  8137. if ac_fn_c_try_link "$LINENO"; then :
  8138. lt_aix_libpath_sed='
  8139. /Import File Strings/,/^$/ {
  8140. /^0/ {
  8141. s/^0 *\([^ ]*\) *$/\1/
  8142. p
  8143. }
  8144. }'
  8145. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8146. # Check for a 64-bit object if we didn't find anything.
  8147. if test -z "$lt_cv_aix_libpath_"; then
  8148. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8149. fi
  8150. fi
  8151. rm -f core conftest.err conftest.$ac_objext \
  8152. conftest$ac_exeext conftest.$ac_ext
  8153. if test -z "$lt_cv_aix_libpath_"; then
  8154. lt_cv_aix_libpath_="/usr/lib:/lib"
  8155. fi
  8156. fi
  8157. aix_libpath=$lt_cv_aix_libpath_
  8158. fi
  8159. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8160. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8161. else
  8162. if test "$host_cpu" = ia64; then
  8163. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8164. allow_undefined_flag="-z nodefs"
  8165. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8166. else
  8167. # Determine the default libpath from the value encoded in an
  8168. # empty executable.
  8169. if test "${lt_cv_aix_libpath+set}" = set; then
  8170. aix_libpath=$lt_cv_aix_libpath
  8171. else
  8172. if ${lt_cv_aix_libpath_+:} false; then :
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8176. /* end confdefs.h. */
  8177. int
  8178. main ()
  8179. {
  8180. ;
  8181. return 0;
  8182. }
  8183. _ACEOF
  8184. if ac_fn_c_try_link "$LINENO"; then :
  8185. lt_aix_libpath_sed='
  8186. /Import File Strings/,/^$/ {
  8187. /^0/ {
  8188. s/^0 *\([^ ]*\) *$/\1/
  8189. p
  8190. }
  8191. }'
  8192. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8193. # Check for a 64-bit object if we didn't find anything.
  8194. if test -z "$lt_cv_aix_libpath_"; then
  8195. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8196. fi
  8197. fi
  8198. rm -f core conftest.err conftest.$ac_objext \
  8199. conftest$ac_exeext conftest.$ac_ext
  8200. if test -z "$lt_cv_aix_libpath_"; then
  8201. lt_cv_aix_libpath_="/usr/lib:/lib"
  8202. fi
  8203. fi
  8204. aix_libpath=$lt_cv_aix_libpath_
  8205. fi
  8206. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8207. # Warning - without using the other run time loading flags,
  8208. # -berok will link without error, but may produce a broken library.
  8209. no_undefined_flag=' ${wl}-bernotok'
  8210. allow_undefined_flag=' ${wl}-berok'
  8211. if test "$with_gnu_ld" = yes; then
  8212. # We only use this code for GNU lds that support --whole-archive.
  8213. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8214. else
  8215. # Exported symbols can be pulled into shared objects from archives
  8216. whole_archive_flag_spec='$convenience'
  8217. fi
  8218. archive_cmds_need_lc=yes
  8219. # This is similar to how AIX traditionally builds its shared libraries.
  8220. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8221. fi
  8222. fi
  8223. ;;
  8224. amigaos*)
  8225. case $host_cpu in
  8226. powerpc)
  8227. # see comment about AmigaOS4 .so support
  8228. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8229. archive_expsym_cmds=''
  8230. ;;
  8231. m68k)
  8232. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8233. hardcode_libdir_flag_spec='-L$libdir'
  8234. hardcode_minus_L=yes
  8235. ;;
  8236. esac
  8237. ;;
  8238. bsdi[45]*)
  8239. export_dynamic_flag_spec=-rdynamic
  8240. ;;
  8241. cygwin* | mingw* | pw32* | cegcc*)
  8242. # When not using gcc, we currently assume that we are using
  8243. # Microsoft Visual C++.
  8244. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8245. # no search path for DLLs.
  8246. case $cc_basename in
  8247. cl*)
  8248. # Native MSVC
  8249. hardcode_libdir_flag_spec=' '
  8250. allow_undefined_flag=unsupported
  8251. always_export_symbols=yes
  8252. file_list_spec='@'
  8253. # Tell ltmain to make .lib files, not .a files.
  8254. libext=lib
  8255. # Tell ltmain to make .dll files, not .so files.
  8256. shrext_cmds=".dll"
  8257. # FIXME: Setting linknames here is a bad hack.
  8258. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8259. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8260. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8261. else
  8262. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8263. fi~
  8264. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8265. linknames='
  8266. # The linker will not automatically build a static lib if we build a DLL.
  8267. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8268. enable_shared_with_static_runtimes=yes
  8269. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8270. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8271. # Don't use ranlib
  8272. old_postinstall_cmds='chmod 644 $oldlib'
  8273. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8274. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8275. case $lt_outputfile in
  8276. *.exe|*.EXE) ;;
  8277. *)
  8278. lt_outputfile="$lt_outputfile.exe"
  8279. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8280. ;;
  8281. esac~
  8282. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8283. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8284. $RM "$lt_outputfile.manifest";
  8285. fi'
  8286. ;;
  8287. *)
  8288. # Assume MSVC wrapper
  8289. hardcode_libdir_flag_spec=' '
  8290. allow_undefined_flag=unsupported
  8291. # Tell ltmain to make .lib files, not .a files.
  8292. libext=lib
  8293. # Tell ltmain to make .dll files, not .so files.
  8294. shrext_cmds=".dll"
  8295. # FIXME: Setting linknames here is a bad hack.
  8296. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8297. # The linker will automatically build a .lib file if we build a DLL.
  8298. old_archive_from_new_cmds='true'
  8299. # FIXME: Should let the user specify the lib program.
  8300. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8301. enable_shared_with_static_runtimes=yes
  8302. ;;
  8303. esac
  8304. ;;
  8305. darwin* | rhapsody*)
  8306. archive_cmds_need_lc=no
  8307. hardcode_direct=no
  8308. hardcode_automatic=yes
  8309. hardcode_shlibpath_var=unsupported
  8310. if test "$lt_cv_ld_force_load" = "yes"; then
  8311. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8312. else
  8313. whole_archive_flag_spec=''
  8314. fi
  8315. link_all_deplibs=yes
  8316. allow_undefined_flag="$_lt_dar_allow_undefined"
  8317. case $cc_basename in
  8318. ifort*) _lt_dar_can_shared=yes ;;
  8319. *) _lt_dar_can_shared=$GCC ;;
  8320. esac
  8321. if test "$_lt_dar_can_shared" = "yes"; then
  8322. output_verbose_link_cmd=func_echo_all
  8323. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8324. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8325. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8326. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8327. else
  8328. ld_shlibs=no
  8329. fi
  8330. ;;
  8331. dgux*)
  8332. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8333. hardcode_libdir_flag_spec='-L$libdir'
  8334. hardcode_shlibpath_var=no
  8335. ;;
  8336. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8337. # support. Future versions do this automatically, but an explicit c++rt0.o
  8338. # does not break anything, and helps significantly (at the cost of a little
  8339. # extra space).
  8340. freebsd2.2*)
  8341. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8342. hardcode_libdir_flag_spec='-R$libdir'
  8343. hardcode_direct=yes
  8344. hardcode_shlibpath_var=no
  8345. ;;
  8346. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8347. freebsd2.*)
  8348. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8349. hardcode_direct=yes
  8350. hardcode_minus_L=yes
  8351. hardcode_shlibpath_var=no
  8352. ;;
  8353. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8354. freebsd* | dragonfly*)
  8355. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8356. hardcode_libdir_flag_spec='-R$libdir'
  8357. hardcode_direct=yes
  8358. hardcode_shlibpath_var=no
  8359. ;;
  8360. hpux9*)
  8361. if test "$GCC" = yes; then
  8362. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8363. else
  8364. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8365. fi
  8366. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8367. hardcode_libdir_separator=:
  8368. hardcode_direct=yes
  8369. # hardcode_minus_L: Not really in the search PATH,
  8370. # but as the default location of the library.
  8371. hardcode_minus_L=yes
  8372. export_dynamic_flag_spec='${wl}-E'
  8373. ;;
  8374. hpux10*)
  8375. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8376. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8377. else
  8378. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8379. fi
  8380. if test "$with_gnu_ld" = no; then
  8381. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8382. hardcode_libdir_separator=:
  8383. hardcode_direct=yes
  8384. hardcode_direct_absolute=yes
  8385. export_dynamic_flag_spec='${wl}-E'
  8386. # hardcode_minus_L: Not really in the search PATH,
  8387. # but as the default location of the library.
  8388. hardcode_minus_L=yes
  8389. fi
  8390. ;;
  8391. hpux11*)
  8392. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8393. case $host_cpu in
  8394. hppa*64*)
  8395. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8396. ;;
  8397. ia64*)
  8398. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8399. ;;
  8400. *)
  8401. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8402. ;;
  8403. esac
  8404. else
  8405. case $host_cpu in
  8406. hppa*64*)
  8407. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8408. ;;
  8409. ia64*)
  8410. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8411. ;;
  8412. *)
  8413. # Older versions of the 11.00 compiler do not understand -b yet
  8414. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8416. $as_echo_n "checking if $CC understands -b... " >&6; }
  8417. if ${lt_cv_prog_compiler__b+:} false; then :
  8418. $as_echo_n "(cached) " >&6
  8419. else
  8420. lt_cv_prog_compiler__b=no
  8421. save_LDFLAGS="$LDFLAGS"
  8422. LDFLAGS="$LDFLAGS -b"
  8423. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8424. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8425. # The linker can only warn and ignore the option if not recognized
  8426. # So say no if there are warnings
  8427. if test -s conftest.err; then
  8428. # Append any errors to the config.log.
  8429. cat conftest.err 1>&5
  8430. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8431. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8432. if diff conftest.exp conftest.er2 >/dev/null; then
  8433. lt_cv_prog_compiler__b=yes
  8434. fi
  8435. else
  8436. lt_cv_prog_compiler__b=yes
  8437. fi
  8438. fi
  8439. $RM -r conftest*
  8440. LDFLAGS="$save_LDFLAGS"
  8441. fi
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8443. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8444. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8445. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8446. else
  8447. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8448. fi
  8449. ;;
  8450. esac
  8451. fi
  8452. if test "$with_gnu_ld" = no; then
  8453. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8454. hardcode_libdir_separator=:
  8455. case $host_cpu in
  8456. hppa*64*|ia64*)
  8457. hardcode_direct=no
  8458. hardcode_shlibpath_var=no
  8459. ;;
  8460. *)
  8461. hardcode_direct=yes
  8462. hardcode_direct_absolute=yes
  8463. export_dynamic_flag_spec='${wl}-E'
  8464. # hardcode_minus_L: Not really in the search PATH,
  8465. # but as the default location of the library.
  8466. hardcode_minus_L=yes
  8467. ;;
  8468. esac
  8469. fi
  8470. ;;
  8471. irix5* | irix6* | nonstopux*)
  8472. if test "$GCC" = yes; then
  8473. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8474. # Try to use the -exported_symbol ld option, if it does not
  8475. # work, assume that -exports_file does not work either and
  8476. # implicitly export all symbols.
  8477. # This should be the same for all languages, so no per-tag cache variable.
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8479. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8480. if ${lt_cv_irix_exported_symbol+:} false; then :
  8481. $as_echo_n "(cached) " >&6
  8482. else
  8483. save_LDFLAGS="$LDFLAGS"
  8484. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8486. /* end confdefs.h. */
  8487. int foo (void) { return 0; }
  8488. _ACEOF
  8489. if ac_fn_c_try_link "$LINENO"; then :
  8490. lt_cv_irix_exported_symbol=yes
  8491. else
  8492. lt_cv_irix_exported_symbol=no
  8493. fi
  8494. rm -f core conftest.err conftest.$ac_objext \
  8495. conftest$ac_exeext conftest.$ac_ext
  8496. LDFLAGS="$save_LDFLAGS"
  8497. fi
  8498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8499. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8500. if test "$lt_cv_irix_exported_symbol" = yes; then
  8501. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8502. fi
  8503. else
  8504. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8505. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8506. fi
  8507. archive_cmds_need_lc='no'
  8508. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8509. hardcode_libdir_separator=:
  8510. inherit_rpath=yes
  8511. link_all_deplibs=yes
  8512. ;;
  8513. netbsd*)
  8514. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8515. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8516. else
  8517. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8518. fi
  8519. hardcode_libdir_flag_spec='-R$libdir'
  8520. hardcode_direct=yes
  8521. hardcode_shlibpath_var=no
  8522. ;;
  8523. newsos6)
  8524. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8525. hardcode_direct=yes
  8526. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8527. hardcode_libdir_separator=:
  8528. hardcode_shlibpath_var=no
  8529. ;;
  8530. *nto* | *qnx*)
  8531. ;;
  8532. openbsd*)
  8533. if test -f /usr/libexec/ld.so; then
  8534. hardcode_direct=yes
  8535. hardcode_shlibpath_var=no
  8536. hardcode_direct_absolute=yes
  8537. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8538. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8539. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8540. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8541. export_dynamic_flag_spec='${wl}-E'
  8542. else
  8543. case $host_os in
  8544. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8545. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8546. hardcode_libdir_flag_spec='-R$libdir'
  8547. ;;
  8548. *)
  8549. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8550. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8551. ;;
  8552. esac
  8553. fi
  8554. else
  8555. ld_shlibs=no
  8556. fi
  8557. ;;
  8558. os2*)
  8559. hardcode_libdir_flag_spec='-L$libdir'
  8560. hardcode_minus_L=yes
  8561. allow_undefined_flag=unsupported
  8562. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8563. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8564. ;;
  8565. osf3*)
  8566. if test "$GCC" = yes; then
  8567. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8568. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8569. else
  8570. allow_undefined_flag=' -expect_unresolved \*'
  8571. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8572. fi
  8573. archive_cmds_need_lc='no'
  8574. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8575. hardcode_libdir_separator=:
  8576. ;;
  8577. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8578. if test "$GCC" = yes; then
  8579. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8580. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8581. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8582. else
  8583. allow_undefined_flag=' -expect_unresolved \*'
  8584. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8585. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8586. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8587. # Both c and cxx compiler support -rpath directly
  8588. hardcode_libdir_flag_spec='-rpath $libdir'
  8589. fi
  8590. archive_cmds_need_lc='no'
  8591. hardcode_libdir_separator=:
  8592. ;;
  8593. solaris*)
  8594. no_undefined_flag=' -z defs'
  8595. if test "$GCC" = yes; then
  8596. wlarc='${wl}'
  8597. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8598. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8599. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8600. else
  8601. case `$CC -V 2>&1` in
  8602. *"Compilers 5.0"*)
  8603. wlarc=''
  8604. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8605. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8606. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8607. ;;
  8608. *)
  8609. wlarc='${wl}'
  8610. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8611. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8612. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8613. ;;
  8614. esac
  8615. fi
  8616. hardcode_libdir_flag_spec='-R$libdir'
  8617. hardcode_shlibpath_var=no
  8618. case $host_os in
  8619. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8620. *)
  8621. # The compiler driver will combine and reorder linker options,
  8622. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8623. # but is careful enough not to reorder.
  8624. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8625. if test "$GCC" = yes; then
  8626. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8627. else
  8628. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8629. fi
  8630. ;;
  8631. esac
  8632. link_all_deplibs=yes
  8633. ;;
  8634. sunos4*)
  8635. if test "x$host_vendor" = xsequent; then
  8636. # Use $CC to link under sequent, because it throws in some extra .o
  8637. # files that make .init and .fini sections work.
  8638. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8639. else
  8640. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8641. fi
  8642. hardcode_libdir_flag_spec='-L$libdir'
  8643. hardcode_direct=yes
  8644. hardcode_minus_L=yes
  8645. hardcode_shlibpath_var=no
  8646. ;;
  8647. sysv4)
  8648. case $host_vendor in
  8649. sni)
  8650. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8651. hardcode_direct=yes # is this really true???
  8652. ;;
  8653. siemens)
  8654. ## LD is ld it makes a PLAMLIB
  8655. ## CC just makes a GrossModule.
  8656. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8657. reload_cmds='$CC -r -o $output$reload_objs'
  8658. hardcode_direct=no
  8659. ;;
  8660. motorola)
  8661. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8662. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8663. ;;
  8664. esac
  8665. runpath_var='LD_RUN_PATH'
  8666. hardcode_shlibpath_var=no
  8667. ;;
  8668. sysv4.3*)
  8669. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8670. hardcode_shlibpath_var=no
  8671. export_dynamic_flag_spec='-Bexport'
  8672. ;;
  8673. sysv4*MP*)
  8674. if test -d /usr/nec; then
  8675. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8676. hardcode_shlibpath_var=no
  8677. runpath_var=LD_RUN_PATH
  8678. hardcode_runpath_var=yes
  8679. ld_shlibs=yes
  8680. fi
  8681. ;;
  8682. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8683. no_undefined_flag='${wl}-z,text'
  8684. archive_cmds_need_lc=no
  8685. hardcode_shlibpath_var=no
  8686. runpath_var='LD_RUN_PATH'
  8687. if test "$GCC" = yes; then
  8688. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8689. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8690. else
  8691. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8692. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8693. fi
  8694. ;;
  8695. sysv5* | sco3.2v5* | sco5v6*)
  8696. # Note: We can NOT use -z defs as we might desire, because we do not
  8697. # link with -lc, and that would cause any symbols used from libc to
  8698. # always be unresolved, which means just about no library would
  8699. # ever link correctly. If we're not using GNU ld we use -z text
  8700. # though, which does catch some bad symbols but isn't as heavy-handed
  8701. # as -z defs.
  8702. no_undefined_flag='${wl}-z,text'
  8703. allow_undefined_flag='${wl}-z,nodefs'
  8704. archive_cmds_need_lc=no
  8705. hardcode_shlibpath_var=no
  8706. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8707. hardcode_libdir_separator=':'
  8708. link_all_deplibs=yes
  8709. export_dynamic_flag_spec='${wl}-Bexport'
  8710. runpath_var='LD_RUN_PATH'
  8711. if test "$GCC" = yes; then
  8712. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8713. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8714. else
  8715. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8716. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8717. fi
  8718. ;;
  8719. uts4*)
  8720. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8721. hardcode_libdir_flag_spec='-L$libdir'
  8722. hardcode_shlibpath_var=no
  8723. ;;
  8724. *)
  8725. ld_shlibs=no
  8726. ;;
  8727. esac
  8728. if test x$host_vendor = xsni; then
  8729. case $host in
  8730. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8731. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8732. ;;
  8733. esac
  8734. fi
  8735. fi
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8737. $as_echo "$ld_shlibs" >&6; }
  8738. test "$ld_shlibs" = no && can_build_shared=no
  8739. with_gnu_ld=$with_gnu_ld
  8740. #
  8741. # Do we need to explicitly link libc?
  8742. #
  8743. case "x$archive_cmds_need_lc" in
  8744. x|xyes)
  8745. # Assume -lc should be added
  8746. archive_cmds_need_lc=yes
  8747. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8748. case $archive_cmds in
  8749. *'~'*)
  8750. # FIXME: we may have to deal with multi-command sequences.
  8751. ;;
  8752. '$CC '*)
  8753. # Test whether the compiler implicitly links with -lc since on some
  8754. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8755. # to ld, don't add -lc before -lgcc.
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8757. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8758. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8759. $as_echo_n "(cached) " >&6
  8760. else
  8761. $RM conftest*
  8762. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8763. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8764. (eval $ac_compile) 2>&5
  8765. ac_status=$?
  8766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8767. test $ac_status = 0; } 2>conftest.err; then
  8768. soname=conftest
  8769. lib=conftest
  8770. libobjs=conftest.$ac_objext
  8771. deplibs=
  8772. wl=$lt_prog_compiler_wl
  8773. pic_flag=$lt_prog_compiler_pic
  8774. compiler_flags=-v
  8775. linker_flags=-v
  8776. verstring=
  8777. output_objdir=.
  8778. libname=conftest
  8779. lt_save_allow_undefined_flag=$allow_undefined_flag
  8780. allow_undefined_flag=
  8781. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8782. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8783. ac_status=$?
  8784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8785. test $ac_status = 0; }
  8786. then
  8787. lt_cv_archive_cmds_need_lc=no
  8788. else
  8789. lt_cv_archive_cmds_need_lc=yes
  8790. fi
  8791. allow_undefined_flag=$lt_save_allow_undefined_flag
  8792. else
  8793. cat conftest.err 1>&5
  8794. fi
  8795. $RM conftest*
  8796. fi
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8798. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8799. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8800. ;;
  8801. esac
  8802. fi
  8803. ;;
  8804. esac
  8805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8806. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8807. if test "$GCC" = yes; then
  8808. case $host_os in
  8809. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8810. *) lt_awk_arg="/^libraries:/" ;;
  8811. esac
  8812. case $host_os in
  8813. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8814. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8815. esac
  8816. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8817. case $lt_search_path_spec in
  8818. *\;*)
  8819. # if the path contains ";" then we assume it to be the separator
  8820. # otherwise default to the standard path separator (i.e. ":") - it is
  8821. # assumed that no part of a normal pathname contains ";" but that should
  8822. # okay in the real world where ";" in dirpaths is itself problematic.
  8823. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8824. ;;
  8825. *)
  8826. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8827. ;;
  8828. esac
  8829. # Ok, now we have the path, separated by spaces, we can step through it
  8830. # and add multilib dir if necessary.
  8831. lt_tmp_lt_search_path_spec=
  8832. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8833. for lt_sys_path in $lt_search_path_spec; do
  8834. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8835. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8836. else
  8837. test -d "$lt_sys_path" && \
  8838. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8839. fi
  8840. done
  8841. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8842. BEGIN {RS=" "; FS="/|\n";} {
  8843. lt_foo="";
  8844. lt_count=0;
  8845. for (lt_i = NF; lt_i > 0; lt_i--) {
  8846. if ($lt_i != "" && $lt_i != ".") {
  8847. if ($lt_i == "..") {
  8848. lt_count++;
  8849. } else {
  8850. if (lt_count == 0) {
  8851. lt_foo="/" $lt_i lt_foo;
  8852. } else {
  8853. lt_count--;
  8854. }
  8855. }
  8856. }
  8857. }
  8858. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8859. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8860. }'`
  8861. # AWK program above erroneously prepends '/' to C:/dos/paths
  8862. # for these hosts.
  8863. case $host_os in
  8864. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8865. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8866. esac
  8867. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8868. else
  8869. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8870. fi
  8871. library_names_spec=
  8872. libname_spec='lib$name'
  8873. soname_spec=
  8874. shrext_cmds=".so"
  8875. postinstall_cmds=
  8876. postuninstall_cmds=
  8877. finish_cmds=
  8878. finish_eval=
  8879. shlibpath_var=
  8880. shlibpath_overrides_runpath=unknown
  8881. version_type=none
  8882. dynamic_linker="$host_os ld.so"
  8883. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8884. need_lib_prefix=unknown
  8885. hardcode_into_libs=no
  8886. # when you set need_version to no, make sure it does not cause -set_version
  8887. # flags to be left without arguments
  8888. need_version=unknown
  8889. case $host_os in
  8890. aix3*)
  8891. version_type=linux # correct to gnu/linux during the next big refactor
  8892. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8893. shlibpath_var=LIBPATH
  8894. # AIX 3 has no versioning support, so we append a major version to the name.
  8895. soname_spec='${libname}${release}${shared_ext}$major'
  8896. ;;
  8897. aix[4-9]*)
  8898. version_type=linux # correct to gnu/linux during the next big refactor
  8899. need_lib_prefix=no
  8900. need_version=no
  8901. hardcode_into_libs=yes
  8902. if test "$host_cpu" = ia64; then
  8903. # AIX 5 supports IA64
  8904. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8905. shlibpath_var=LD_LIBRARY_PATH
  8906. else
  8907. # With GCC up to 2.95.x, collect2 would create an import file
  8908. # for dependence libraries. The import file would start with
  8909. # the line `#! .'. This would cause the generated library to
  8910. # depend on `.', always an invalid library. This was fixed in
  8911. # development snapshots of GCC prior to 3.0.
  8912. case $host_os in
  8913. aix4 | aix4.[01] | aix4.[01].*)
  8914. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8915. echo ' yes '
  8916. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8917. :
  8918. else
  8919. can_build_shared=no
  8920. fi
  8921. ;;
  8922. esac
  8923. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8924. # soname into executable. Probably we can add versioning support to
  8925. # collect2, so additional links can be useful in future.
  8926. if test "$aix_use_runtimelinking" = yes; then
  8927. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8928. # instead of lib<name>.a to let people know that these are not
  8929. # typical AIX shared libraries.
  8930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8931. else
  8932. # We preserve .a as extension for shared libraries through AIX4.2
  8933. # and later when we are not doing run time linking.
  8934. library_names_spec='${libname}${release}.a $libname.a'
  8935. soname_spec='${libname}${release}${shared_ext}$major'
  8936. fi
  8937. shlibpath_var=LIBPATH
  8938. fi
  8939. ;;
  8940. amigaos*)
  8941. case $host_cpu in
  8942. powerpc)
  8943. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8944. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8946. ;;
  8947. m68k)
  8948. library_names_spec='$libname.ixlibrary $libname.a'
  8949. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8950. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8951. ;;
  8952. esac
  8953. ;;
  8954. beos*)
  8955. library_names_spec='${libname}${shared_ext}'
  8956. dynamic_linker="$host_os ld.so"
  8957. shlibpath_var=LIBRARY_PATH
  8958. ;;
  8959. bsdi[45]*)
  8960. version_type=linux # correct to gnu/linux during the next big refactor
  8961. need_version=no
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8965. shlibpath_var=LD_LIBRARY_PATH
  8966. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8967. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8968. # the default ld.so.conf also contains /usr/contrib/lib and
  8969. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8970. # libtool to hard-code these into programs
  8971. ;;
  8972. cygwin* | mingw* | pw32* | cegcc*)
  8973. version_type=windows
  8974. shrext_cmds=".dll"
  8975. need_version=no
  8976. need_lib_prefix=no
  8977. case $GCC,$cc_basename in
  8978. yes,*)
  8979. # gcc
  8980. library_names_spec='$libname.dll.a'
  8981. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8982. postinstall_cmds='base_file=`basename \${file}`~
  8983. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8984. dldir=$destdir/`dirname \$dlpath`~
  8985. test -d \$dldir || mkdir -p \$dldir~
  8986. $install_prog $dir/$dlname \$dldir/$dlname~
  8987. chmod a+x \$dldir/$dlname~
  8988. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8989. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8990. fi'
  8991. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8992. dlpath=$dir/\$dldll~
  8993. $RM \$dlpath'
  8994. shlibpath_overrides_runpath=yes
  8995. case $host_os in
  8996. cygwin*)
  8997. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8998. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8999. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9000. ;;
  9001. mingw* | cegcc*)
  9002. # MinGW DLLs use traditional 'lib' prefix
  9003. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9004. ;;
  9005. pw32*)
  9006. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9007. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9008. ;;
  9009. esac
  9010. dynamic_linker='Win32 ld.exe'
  9011. ;;
  9012. *,cl*)
  9013. # Native MSVC
  9014. libname_spec='$name'
  9015. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9016. library_names_spec='${libname}.dll.lib'
  9017. case $build_os in
  9018. mingw*)
  9019. sys_lib_search_path_spec=
  9020. lt_save_ifs=$IFS
  9021. IFS=';'
  9022. for lt_path in $LIB
  9023. do
  9024. IFS=$lt_save_ifs
  9025. # Let DOS variable expansion print the short 8.3 style file name.
  9026. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9027. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9028. done
  9029. IFS=$lt_save_ifs
  9030. # Convert to MSYS style.
  9031. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9032. ;;
  9033. cygwin*)
  9034. # Convert to unix form, then to dos form, then back to unix form
  9035. # but this time dos style (no spaces!) so that the unix form looks
  9036. # like /cygdrive/c/PROGRA~1:/cygdr...
  9037. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9038. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9039. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9040. ;;
  9041. *)
  9042. sys_lib_search_path_spec="$LIB"
  9043. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9044. # It is most probably a Windows format PATH.
  9045. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9046. else
  9047. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9048. fi
  9049. # FIXME: find the short name or the path components, as spaces are
  9050. # common. (e.g. "Program Files" -> "PROGRA~1")
  9051. ;;
  9052. esac
  9053. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9054. postinstall_cmds='base_file=`basename \${file}`~
  9055. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9056. dldir=$destdir/`dirname \$dlpath`~
  9057. test -d \$dldir || mkdir -p \$dldir~
  9058. $install_prog $dir/$dlname \$dldir/$dlname'
  9059. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9060. dlpath=$dir/\$dldll~
  9061. $RM \$dlpath'
  9062. shlibpath_overrides_runpath=yes
  9063. dynamic_linker='Win32 link.exe'
  9064. ;;
  9065. *)
  9066. # Assume MSVC wrapper
  9067. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9068. dynamic_linker='Win32 ld.exe'
  9069. ;;
  9070. esac
  9071. # FIXME: first we should search . and the directory the executable is in
  9072. shlibpath_var=PATH
  9073. ;;
  9074. darwin* | rhapsody*)
  9075. dynamic_linker="$host_os dyld"
  9076. version_type=darwin
  9077. need_lib_prefix=no
  9078. need_version=no
  9079. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9080. soname_spec='${libname}${release}${major}$shared_ext'
  9081. shlibpath_overrides_runpath=yes
  9082. shlibpath_var=DYLD_LIBRARY_PATH
  9083. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9084. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9085. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9086. ;;
  9087. dgux*)
  9088. version_type=linux # correct to gnu/linux during the next big refactor
  9089. need_lib_prefix=no
  9090. need_version=no
  9091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9092. soname_spec='${libname}${release}${shared_ext}$major'
  9093. shlibpath_var=LD_LIBRARY_PATH
  9094. ;;
  9095. freebsd* | dragonfly*)
  9096. # DragonFly does not have aout. When/if they implement a new
  9097. # versioning mechanism, adjust this.
  9098. if test -x /usr/bin/objformat; then
  9099. objformat=`/usr/bin/objformat`
  9100. else
  9101. case $host_os in
  9102. freebsd[23].*) objformat=aout ;;
  9103. *) objformat=elf ;;
  9104. esac
  9105. fi
  9106. version_type=freebsd-$objformat
  9107. case $version_type in
  9108. freebsd-elf*)
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9110. need_version=no
  9111. need_lib_prefix=no
  9112. ;;
  9113. freebsd-*)
  9114. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9115. need_version=yes
  9116. ;;
  9117. esac
  9118. shlibpath_var=LD_LIBRARY_PATH
  9119. case $host_os in
  9120. freebsd2.*)
  9121. shlibpath_overrides_runpath=yes
  9122. ;;
  9123. freebsd3.[01]* | freebsdelf3.[01]*)
  9124. shlibpath_overrides_runpath=yes
  9125. hardcode_into_libs=yes
  9126. ;;
  9127. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9128. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9129. shlibpath_overrides_runpath=no
  9130. hardcode_into_libs=yes
  9131. ;;
  9132. *) # from 4.6 on, and DragonFly
  9133. shlibpath_overrides_runpath=yes
  9134. hardcode_into_libs=yes
  9135. ;;
  9136. esac
  9137. ;;
  9138. gnu*)
  9139. version_type=linux # correct to gnu/linux during the next big refactor
  9140. need_lib_prefix=no
  9141. need_version=no
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. shlibpath_var=LD_LIBRARY_PATH
  9145. shlibpath_overrides_runpath=no
  9146. hardcode_into_libs=yes
  9147. ;;
  9148. haiku*)
  9149. version_type=linux # correct to gnu/linux during the next big refactor
  9150. need_lib_prefix=no
  9151. need_version=no
  9152. dynamic_linker="$host_os runtime_loader"
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9154. soname_spec='${libname}${release}${shared_ext}$major'
  9155. shlibpath_var=LIBRARY_PATH
  9156. shlibpath_overrides_runpath=yes
  9157. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9158. hardcode_into_libs=yes
  9159. ;;
  9160. hpux9* | hpux10* | hpux11*)
  9161. # Give a soname corresponding to the major version so that dld.sl refuses to
  9162. # link against other versions.
  9163. version_type=sunos
  9164. need_lib_prefix=no
  9165. need_version=no
  9166. case $host_cpu in
  9167. ia64*)
  9168. shrext_cmds='.so'
  9169. hardcode_into_libs=yes
  9170. dynamic_linker="$host_os dld.so"
  9171. shlibpath_var=LD_LIBRARY_PATH
  9172. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9174. soname_spec='${libname}${release}${shared_ext}$major'
  9175. if test "X$HPUX_IA64_MODE" = X32; then
  9176. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9177. else
  9178. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9179. fi
  9180. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9181. ;;
  9182. hppa*64*)
  9183. shrext_cmds='.sl'
  9184. hardcode_into_libs=yes
  9185. dynamic_linker="$host_os dld.sl"
  9186. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9187. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9189. soname_spec='${libname}${release}${shared_ext}$major'
  9190. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9191. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9192. ;;
  9193. *)
  9194. shrext_cmds='.sl'
  9195. dynamic_linker="$host_os dld.sl"
  9196. shlibpath_var=SHLIB_PATH
  9197. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9199. soname_spec='${libname}${release}${shared_ext}$major'
  9200. ;;
  9201. esac
  9202. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9203. postinstall_cmds='chmod 555 $lib'
  9204. # or fails outright, so override atomically:
  9205. install_override_mode=555
  9206. ;;
  9207. interix[3-9]*)
  9208. version_type=linux # correct to gnu/linux during the next big refactor
  9209. need_lib_prefix=no
  9210. need_version=no
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9212. soname_spec='${libname}${release}${shared_ext}$major'
  9213. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9214. shlibpath_var=LD_LIBRARY_PATH
  9215. shlibpath_overrides_runpath=no
  9216. hardcode_into_libs=yes
  9217. ;;
  9218. irix5* | irix6* | nonstopux*)
  9219. case $host_os in
  9220. nonstopux*) version_type=nonstopux ;;
  9221. *)
  9222. if test "$lt_cv_prog_gnu_ld" = yes; then
  9223. version_type=linux # correct to gnu/linux during the next big refactor
  9224. else
  9225. version_type=irix
  9226. fi ;;
  9227. esac
  9228. need_lib_prefix=no
  9229. need_version=no
  9230. soname_spec='${libname}${release}${shared_ext}$major'
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9232. case $host_os in
  9233. irix5* | nonstopux*)
  9234. libsuff= shlibsuff=
  9235. ;;
  9236. *)
  9237. case $LD in # libtool.m4 will add one of these switches to LD
  9238. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9239. libsuff= shlibsuff= libmagic=32-bit;;
  9240. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9241. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9242. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9243. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9244. *) libsuff= shlibsuff= libmagic=never-match;;
  9245. esac
  9246. ;;
  9247. esac
  9248. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9249. shlibpath_overrides_runpath=no
  9250. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9251. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9252. hardcode_into_libs=yes
  9253. ;;
  9254. # No shared lib support for Linux oldld, aout, or coff.
  9255. linux*oldld* | linux*aout* | linux*coff*)
  9256. dynamic_linker=no
  9257. ;;
  9258. # This must be glibc/ELF.
  9259. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9260. version_type=linux # correct to gnu/linux during the next big refactor
  9261. need_lib_prefix=no
  9262. need_version=no
  9263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9264. soname_spec='${libname}${release}${shared_ext}$major'
  9265. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9266. shlibpath_var=LD_LIBRARY_PATH
  9267. shlibpath_overrides_runpath=no
  9268. # Some binutils ld are patched to set DT_RUNPATH
  9269. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9270. $as_echo_n "(cached) " >&6
  9271. else
  9272. lt_cv_shlibpath_overrides_runpath=no
  9273. save_LDFLAGS=$LDFLAGS
  9274. save_libdir=$libdir
  9275. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9276. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9278. /* end confdefs.h. */
  9279. int
  9280. main ()
  9281. {
  9282. ;
  9283. return 0;
  9284. }
  9285. _ACEOF
  9286. if ac_fn_c_try_link "$LINENO"; then :
  9287. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9288. lt_cv_shlibpath_overrides_runpath=yes
  9289. fi
  9290. fi
  9291. rm -f core conftest.err conftest.$ac_objext \
  9292. conftest$ac_exeext conftest.$ac_ext
  9293. LDFLAGS=$save_LDFLAGS
  9294. libdir=$save_libdir
  9295. fi
  9296. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9297. # This implies no fast_install, which is unacceptable.
  9298. # Some rework will be needed to allow for fast_install
  9299. # before this can be enabled.
  9300. hardcode_into_libs=yes
  9301. # Append ld.so.conf contents to the search path
  9302. if test -f /etc/ld.so.conf; then
  9303. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9304. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9305. fi
  9306. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9307. # powerpc, because MkLinux only supported shared libraries with the
  9308. # GNU dynamic linker. Since this was broken with cross compilers,
  9309. # most powerpc-linux boxes support dynamic linking these days and
  9310. # people can always --disable-shared, the test was removed, and we
  9311. # assume the GNU/Linux dynamic linker is in use.
  9312. dynamic_linker='GNU/Linux ld.so'
  9313. ;;
  9314. netbsd*)
  9315. version_type=sunos
  9316. need_lib_prefix=no
  9317. need_version=no
  9318. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9320. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9321. dynamic_linker='NetBSD (a.out) ld.so'
  9322. else
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9324. soname_spec='${libname}${release}${shared_ext}$major'
  9325. dynamic_linker='NetBSD ld.elf_so'
  9326. fi
  9327. shlibpath_var=LD_LIBRARY_PATH
  9328. shlibpath_overrides_runpath=yes
  9329. hardcode_into_libs=yes
  9330. ;;
  9331. newsos6)
  9332. version_type=linux # correct to gnu/linux during the next big refactor
  9333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9334. shlibpath_var=LD_LIBRARY_PATH
  9335. shlibpath_overrides_runpath=yes
  9336. ;;
  9337. *nto* | *qnx*)
  9338. version_type=qnx
  9339. need_lib_prefix=no
  9340. need_version=no
  9341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. shlibpath_overrides_runpath=no
  9345. hardcode_into_libs=yes
  9346. dynamic_linker='ldqnx.so'
  9347. ;;
  9348. openbsd*)
  9349. version_type=sunos
  9350. sys_lib_dlsearch_path_spec="/usr/lib"
  9351. need_lib_prefix=no
  9352. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9353. case $host_os in
  9354. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9355. *) need_version=no ;;
  9356. esac
  9357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9358. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9359. shlibpath_var=LD_LIBRARY_PATH
  9360. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9361. case $host_os in
  9362. openbsd2.[89] | openbsd2.[89].*)
  9363. shlibpath_overrides_runpath=no
  9364. ;;
  9365. *)
  9366. shlibpath_overrides_runpath=yes
  9367. ;;
  9368. esac
  9369. else
  9370. shlibpath_overrides_runpath=yes
  9371. fi
  9372. ;;
  9373. os2*)
  9374. libname_spec='$name'
  9375. shrext_cmds=".dll"
  9376. need_lib_prefix=no
  9377. library_names_spec='$libname${shared_ext} $libname.a'
  9378. dynamic_linker='OS/2 ld.exe'
  9379. shlibpath_var=LIBPATH
  9380. ;;
  9381. osf3* | osf4* | osf5*)
  9382. version_type=osf
  9383. need_lib_prefix=no
  9384. need_version=no
  9385. soname_spec='${libname}${release}${shared_ext}$major'
  9386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9387. shlibpath_var=LD_LIBRARY_PATH
  9388. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9389. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9390. ;;
  9391. rdos*)
  9392. dynamic_linker=no
  9393. ;;
  9394. solaris*)
  9395. version_type=linux # correct to gnu/linux during the next big refactor
  9396. need_lib_prefix=no
  9397. need_version=no
  9398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9399. soname_spec='${libname}${release}${shared_ext}$major'
  9400. shlibpath_var=LD_LIBRARY_PATH
  9401. shlibpath_overrides_runpath=yes
  9402. hardcode_into_libs=yes
  9403. # ldd complains unless libraries are executable
  9404. postinstall_cmds='chmod +x $lib'
  9405. ;;
  9406. sunos4*)
  9407. version_type=sunos
  9408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9409. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9410. shlibpath_var=LD_LIBRARY_PATH
  9411. shlibpath_overrides_runpath=yes
  9412. if test "$with_gnu_ld" = yes; then
  9413. need_lib_prefix=no
  9414. fi
  9415. need_version=yes
  9416. ;;
  9417. sysv4 | sysv4.3*)
  9418. version_type=linux # correct to gnu/linux during the next big refactor
  9419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9420. soname_spec='${libname}${release}${shared_ext}$major'
  9421. shlibpath_var=LD_LIBRARY_PATH
  9422. case $host_vendor in
  9423. sni)
  9424. shlibpath_overrides_runpath=no
  9425. need_lib_prefix=no
  9426. runpath_var=LD_RUN_PATH
  9427. ;;
  9428. siemens)
  9429. need_lib_prefix=no
  9430. ;;
  9431. motorola)
  9432. need_lib_prefix=no
  9433. need_version=no
  9434. shlibpath_overrides_runpath=no
  9435. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9436. ;;
  9437. esac
  9438. ;;
  9439. sysv4*MP*)
  9440. if test -d /usr/nec ;then
  9441. version_type=linux # correct to gnu/linux during the next big refactor
  9442. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9443. soname_spec='$libname${shared_ext}.$major'
  9444. shlibpath_var=LD_LIBRARY_PATH
  9445. fi
  9446. ;;
  9447. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9448. version_type=freebsd-elf
  9449. need_lib_prefix=no
  9450. need_version=no
  9451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9452. soname_spec='${libname}${release}${shared_ext}$major'
  9453. shlibpath_var=LD_LIBRARY_PATH
  9454. shlibpath_overrides_runpath=yes
  9455. hardcode_into_libs=yes
  9456. if test "$with_gnu_ld" = yes; then
  9457. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9458. else
  9459. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9460. case $host_os in
  9461. sco3.2v5*)
  9462. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9463. ;;
  9464. esac
  9465. fi
  9466. sys_lib_dlsearch_path_spec='/usr/lib'
  9467. ;;
  9468. tpf*)
  9469. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9470. version_type=linux # correct to gnu/linux during the next big refactor
  9471. need_lib_prefix=no
  9472. need_version=no
  9473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9474. shlibpath_var=LD_LIBRARY_PATH
  9475. shlibpath_overrides_runpath=no
  9476. hardcode_into_libs=yes
  9477. ;;
  9478. uts4*)
  9479. version_type=linux # correct to gnu/linux during the next big refactor
  9480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9481. soname_spec='${libname}${release}${shared_ext}$major'
  9482. shlibpath_var=LD_LIBRARY_PATH
  9483. ;;
  9484. *)
  9485. dynamic_linker=no
  9486. ;;
  9487. esac
  9488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9489. $as_echo "$dynamic_linker" >&6; }
  9490. test "$dynamic_linker" = no && can_build_shared=no
  9491. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9492. if test "$GCC" = yes; then
  9493. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9494. fi
  9495. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9496. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9497. fi
  9498. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9499. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9500. fi
  9501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9502. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9503. hardcode_action=
  9504. if test -n "$hardcode_libdir_flag_spec" ||
  9505. test -n "$runpath_var" ||
  9506. test "X$hardcode_automatic" = "Xyes" ; then
  9507. # We can hardcode non-existent directories.
  9508. if test "$hardcode_direct" != no &&
  9509. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9510. # have to relink, otherwise we might link with an installed library
  9511. # when we should be linking with a yet-to-be-installed one
  9512. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9513. test "$hardcode_minus_L" != no; then
  9514. # Linking always hardcodes the temporary library directory.
  9515. hardcode_action=relink
  9516. else
  9517. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9518. hardcode_action=immediate
  9519. fi
  9520. else
  9521. # We cannot hardcode anything, or else we can only hardcode existing
  9522. # directories.
  9523. hardcode_action=unsupported
  9524. fi
  9525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9526. $as_echo "$hardcode_action" >&6; }
  9527. if test "$hardcode_action" = relink ||
  9528. test "$inherit_rpath" = yes; then
  9529. # Fast installation is not supported
  9530. enable_fast_install=no
  9531. elif test "$shlibpath_overrides_runpath" = yes ||
  9532. test "$enable_shared" = no; then
  9533. # Fast installation is not necessary
  9534. enable_fast_install=needless
  9535. fi
  9536. if test "x$enable_dlopen" != xyes; then
  9537. enable_dlopen=unknown
  9538. enable_dlopen_self=unknown
  9539. enable_dlopen_self_static=unknown
  9540. else
  9541. lt_cv_dlopen=no
  9542. lt_cv_dlopen_libs=
  9543. case $host_os in
  9544. beos*)
  9545. lt_cv_dlopen="load_add_on"
  9546. lt_cv_dlopen_libs=
  9547. lt_cv_dlopen_self=yes
  9548. ;;
  9549. mingw* | pw32* | cegcc*)
  9550. lt_cv_dlopen="LoadLibrary"
  9551. lt_cv_dlopen_libs=
  9552. ;;
  9553. cygwin*)
  9554. lt_cv_dlopen="dlopen"
  9555. lt_cv_dlopen_libs=
  9556. ;;
  9557. darwin*)
  9558. # if libdl is installed we need to link against it
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9560. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9561. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9562. $as_echo_n "(cached) " >&6
  9563. else
  9564. ac_check_lib_save_LIBS=$LIBS
  9565. LIBS="-ldl $LIBS"
  9566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9567. /* end confdefs.h. */
  9568. /* Override any GCC internal prototype to avoid an error.
  9569. Use char because int might match the return type of a GCC
  9570. builtin and then its argument prototype would still apply. */
  9571. #ifdef __cplusplus
  9572. extern "C"
  9573. #endif
  9574. char dlopen ();
  9575. int
  9576. main ()
  9577. {
  9578. return dlopen ();
  9579. ;
  9580. return 0;
  9581. }
  9582. _ACEOF
  9583. if ac_fn_c_try_link "$LINENO"; then :
  9584. ac_cv_lib_dl_dlopen=yes
  9585. else
  9586. ac_cv_lib_dl_dlopen=no
  9587. fi
  9588. rm -f core conftest.err conftest.$ac_objext \
  9589. conftest$ac_exeext conftest.$ac_ext
  9590. LIBS=$ac_check_lib_save_LIBS
  9591. fi
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9593. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9594. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9595. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9596. else
  9597. lt_cv_dlopen="dyld"
  9598. lt_cv_dlopen_libs=
  9599. lt_cv_dlopen_self=yes
  9600. fi
  9601. ;;
  9602. *)
  9603. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9604. if test "x$ac_cv_func_shl_load" = xyes; then :
  9605. lt_cv_dlopen="shl_load"
  9606. else
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9608. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9609. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9610. $as_echo_n "(cached) " >&6
  9611. else
  9612. ac_check_lib_save_LIBS=$LIBS
  9613. LIBS="-ldld $LIBS"
  9614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9615. /* end confdefs.h. */
  9616. /* Override any GCC internal prototype to avoid an error.
  9617. Use char because int might match the return type of a GCC
  9618. builtin and then its argument prototype would still apply. */
  9619. #ifdef __cplusplus
  9620. extern "C"
  9621. #endif
  9622. char shl_load ();
  9623. int
  9624. main ()
  9625. {
  9626. return shl_load ();
  9627. ;
  9628. return 0;
  9629. }
  9630. _ACEOF
  9631. if ac_fn_c_try_link "$LINENO"; then :
  9632. ac_cv_lib_dld_shl_load=yes
  9633. else
  9634. ac_cv_lib_dld_shl_load=no
  9635. fi
  9636. rm -f core conftest.err conftest.$ac_objext \
  9637. conftest$ac_exeext conftest.$ac_ext
  9638. LIBS=$ac_check_lib_save_LIBS
  9639. fi
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9641. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9642. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9643. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9644. else
  9645. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9646. if test "x$ac_cv_func_dlopen" = xyes; then :
  9647. lt_cv_dlopen="dlopen"
  9648. else
  9649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9650. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9651. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9652. $as_echo_n "(cached) " >&6
  9653. else
  9654. ac_check_lib_save_LIBS=$LIBS
  9655. LIBS="-ldl $LIBS"
  9656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9657. /* end confdefs.h. */
  9658. /* Override any GCC internal prototype to avoid an error.
  9659. Use char because int might match the return type of a GCC
  9660. builtin and then its argument prototype would still apply. */
  9661. #ifdef __cplusplus
  9662. extern "C"
  9663. #endif
  9664. char dlopen ();
  9665. int
  9666. main ()
  9667. {
  9668. return dlopen ();
  9669. ;
  9670. return 0;
  9671. }
  9672. _ACEOF
  9673. if ac_fn_c_try_link "$LINENO"; then :
  9674. ac_cv_lib_dl_dlopen=yes
  9675. else
  9676. ac_cv_lib_dl_dlopen=no
  9677. fi
  9678. rm -f core conftest.err conftest.$ac_objext \
  9679. conftest$ac_exeext conftest.$ac_ext
  9680. LIBS=$ac_check_lib_save_LIBS
  9681. fi
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9683. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9684. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9685. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9686. else
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9688. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9689. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9690. $as_echo_n "(cached) " >&6
  9691. else
  9692. ac_check_lib_save_LIBS=$LIBS
  9693. LIBS="-lsvld $LIBS"
  9694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9695. /* end confdefs.h. */
  9696. /* Override any GCC internal prototype to avoid an error.
  9697. Use char because int might match the return type of a GCC
  9698. builtin and then its argument prototype would still apply. */
  9699. #ifdef __cplusplus
  9700. extern "C"
  9701. #endif
  9702. char dlopen ();
  9703. int
  9704. main ()
  9705. {
  9706. return dlopen ();
  9707. ;
  9708. return 0;
  9709. }
  9710. _ACEOF
  9711. if ac_fn_c_try_link "$LINENO"; then :
  9712. ac_cv_lib_svld_dlopen=yes
  9713. else
  9714. ac_cv_lib_svld_dlopen=no
  9715. fi
  9716. rm -f core conftest.err conftest.$ac_objext \
  9717. conftest$ac_exeext conftest.$ac_ext
  9718. LIBS=$ac_check_lib_save_LIBS
  9719. fi
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9721. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9722. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9723. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9724. else
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9726. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9727. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9728. $as_echo_n "(cached) " >&6
  9729. else
  9730. ac_check_lib_save_LIBS=$LIBS
  9731. LIBS="-ldld $LIBS"
  9732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9733. /* end confdefs.h. */
  9734. /* Override any GCC internal prototype to avoid an error.
  9735. Use char because int might match the return type of a GCC
  9736. builtin and then its argument prototype would still apply. */
  9737. #ifdef __cplusplus
  9738. extern "C"
  9739. #endif
  9740. char dld_link ();
  9741. int
  9742. main ()
  9743. {
  9744. return dld_link ();
  9745. ;
  9746. return 0;
  9747. }
  9748. _ACEOF
  9749. if ac_fn_c_try_link "$LINENO"; then :
  9750. ac_cv_lib_dld_dld_link=yes
  9751. else
  9752. ac_cv_lib_dld_dld_link=no
  9753. fi
  9754. rm -f core conftest.err conftest.$ac_objext \
  9755. conftest$ac_exeext conftest.$ac_ext
  9756. LIBS=$ac_check_lib_save_LIBS
  9757. fi
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9759. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9760. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9761. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9762. fi
  9763. fi
  9764. fi
  9765. fi
  9766. fi
  9767. fi
  9768. ;;
  9769. esac
  9770. if test "x$lt_cv_dlopen" != xno; then
  9771. enable_dlopen=yes
  9772. else
  9773. enable_dlopen=no
  9774. fi
  9775. case $lt_cv_dlopen in
  9776. dlopen)
  9777. save_CPPFLAGS="$CPPFLAGS"
  9778. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9779. save_LDFLAGS="$LDFLAGS"
  9780. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9781. save_LIBS="$LIBS"
  9782. LIBS="$lt_cv_dlopen_libs $LIBS"
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9784. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9785. if ${lt_cv_dlopen_self+:} false; then :
  9786. $as_echo_n "(cached) " >&6
  9787. else
  9788. if test "$cross_compiling" = yes; then :
  9789. lt_cv_dlopen_self=cross
  9790. else
  9791. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9792. lt_status=$lt_dlunknown
  9793. cat > conftest.$ac_ext <<_LT_EOF
  9794. #line $LINENO "configure"
  9795. #include "confdefs.h"
  9796. #if HAVE_DLFCN_H
  9797. #include <dlfcn.h>
  9798. #endif
  9799. #include <stdio.h>
  9800. #ifdef RTLD_GLOBAL
  9801. # define LT_DLGLOBAL RTLD_GLOBAL
  9802. #else
  9803. # ifdef DL_GLOBAL
  9804. # define LT_DLGLOBAL DL_GLOBAL
  9805. # else
  9806. # define LT_DLGLOBAL 0
  9807. # endif
  9808. #endif
  9809. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9810. find out it does not work in some platform. */
  9811. #ifndef LT_DLLAZY_OR_NOW
  9812. # ifdef RTLD_LAZY
  9813. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9814. # else
  9815. # ifdef DL_LAZY
  9816. # define LT_DLLAZY_OR_NOW DL_LAZY
  9817. # else
  9818. # ifdef RTLD_NOW
  9819. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9820. # else
  9821. # ifdef DL_NOW
  9822. # define LT_DLLAZY_OR_NOW DL_NOW
  9823. # else
  9824. # define LT_DLLAZY_OR_NOW 0
  9825. # endif
  9826. # endif
  9827. # endif
  9828. # endif
  9829. #endif
  9830. /* When -fvisbility=hidden is used, assume the code has been annotated
  9831. correspondingly for the symbols needed. */
  9832. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9833. int fnord () __attribute__((visibility("default")));
  9834. #endif
  9835. int fnord () { return 42; }
  9836. int main ()
  9837. {
  9838. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9839. int status = $lt_dlunknown;
  9840. if (self)
  9841. {
  9842. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9843. else
  9844. {
  9845. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9846. else puts (dlerror ());
  9847. }
  9848. /* dlclose (self); */
  9849. }
  9850. else
  9851. puts (dlerror ());
  9852. return status;
  9853. }
  9854. _LT_EOF
  9855. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9856. (eval $ac_link) 2>&5
  9857. ac_status=$?
  9858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9859. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9860. (./conftest; exit; ) >&5 2>/dev/null
  9861. lt_status=$?
  9862. case x$lt_status in
  9863. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9864. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9865. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9866. esac
  9867. else :
  9868. # compilation failed
  9869. lt_cv_dlopen_self=no
  9870. fi
  9871. fi
  9872. rm -fr conftest*
  9873. fi
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9875. $as_echo "$lt_cv_dlopen_self" >&6; }
  9876. if test "x$lt_cv_dlopen_self" = xyes; then
  9877. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9879. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9880. if ${lt_cv_dlopen_self_static+:} false; then :
  9881. $as_echo_n "(cached) " >&6
  9882. else
  9883. if test "$cross_compiling" = yes; then :
  9884. lt_cv_dlopen_self_static=cross
  9885. else
  9886. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9887. lt_status=$lt_dlunknown
  9888. cat > conftest.$ac_ext <<_LT_EOF
  9889. #line $LINENO "configure"
  9890. #include "confdefs.h"
  9891. #if HAVE_DLFCN_H
  9892. #include <dlfcn.h>
  9893. #endif
  9894. #include <stdio.h>
  9895. #ifdef RTLD_GLOBAL
  9896. # define LT_DLGLOBAL RTLD_GLOBAL
  9897. #else
  9898. # ifdef DL_GLOBAL
  9899. # define LT_DLGLOBAL DL_GLOBAL
  9900. # else
  9901. # define LT_DLGLOBAL 0
  9902. # endif
  9903. #endif
  9904. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9905. find out it does not work in some platform. */
  9906. #ifndef LT_DLLAZY_OR_NOW
  9907. # ifdef RTLD_LAZY
  9908. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9909. # else
  9910. # ifdef DL_LAZY
  9911. # define LT_DLLAZY_OR_NOW DL_LAZY
  9912. # else
  9913. # ifdef RTLD_NOW
  9914. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9915. # else
  9916. # ifdef DL_NOW
  9917. # define LT_DLLAZY_OR_NOW DL_NOW
  9918. # else
  9919. # define LT_DLLAZY_OR_NOW 0
  9920. # endif
  9921. # endif
  9922. # endif
  9923. # endif
  9924. #endif
  9925. /* When -fvisbility=hidden is used, assume the code has been annotated
  9926. correspondingly for the symbols needed. */
  9927. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9928. int fnord () __attribute__((visibility("default")));
  9929. #endif
  9930. int fnord () { return 42; }
  9931. int main ()
  9932. {
  9933. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9934. int status = $lt_dlunknown;
  9935. if (self)
  9936. {
  9937. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9938. else
  9939. {
  9940. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9941. else puts (dlerror ());
  9942. }
  9943. /* dlclose (self); */
  9944. }
  9945. else
  9946. puts (dlerror ());
  9947. return status;
  9948. }
  9949. _LT_EOF
  9950. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9951. (eval $ac_link) 2>&5
  9952. ac_status=$?
  9953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9954. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9955. (./conftest; exit; ) >&5 2>/dev/null
  9956. lt_status=$?
  9957. case x$lt_status in
  9958. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9959. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9960. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9961. esac
  9962. else :
  9963. # compilation failed
  9964. lt_cv_dlopen_self_static=no
  9965. fi
  9966. fi
  9967. rm -fr conftest*
  9968. fi
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9970. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9971. fi
  9972. CPPFLAGS="$save_CPPFLAGS"
  9973. LDFLAGS="$save_LDFLAGS"
  9974. LIBS="$save_LIBS"
  9975. ;;
  9976. esac
  9977. case $lt_cv_dlopen_self in
  9978. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9979. *) enable_dlopen_self=unknown ;;
  9980. esac
  9981. case $lt_cv_dlopen_self_static in
  9982. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9983. *) enable_dlopen_self_static=unknown ;;
  9984. esac
  9985. fi
  9986. striplib=
  9987. old_striplib=
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9989. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9990. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9991. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9992. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9994. $as_echo "yes" >&6; }
  9995. else
  9996. # FIXME - insert some real tests, host_os isn't really good enough
  9997. case $host_os in
  9998. darwin*)
  9999. if test -n "$STRIP" ; then
  10000. striplib="$STRIP -x"
  10001. old_striplib="$STRIP -S"
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10003. $as_echo "yes" >&6; }
  10004. else
  10005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10006. $as_echo "no" >&6; }
  10007. fi
  10008. ;;
  10009. *)
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10011. $as_echo "no" >&6; }
  10012. ;;
  10013. esac
  10014. fi
  10015. # Report which library types will actually be built
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10017. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10019. $as_echo "$can_build_shared" >&6; }
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10021. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10022. test "$can_build_shared" = "no" && enable_shared=no
  10023. # On AIX, shared libraries and static libraries use the same namespace, and
  10024. # are all built from PIC.
  10025. case $host_os in
  10026. aix3*)
  10027. test "$enable_shared" = yes && enable_static=no
  10028. if test -n "$RANLIB"; then
  10029. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10030. postinstall_cmds='$RANLIB $lib'
  10031. fi
  10032. ;;
  10033. aix[4-9]*)
  10034. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10035. test "$enable_shared" = yes && enable_static=no
  10036. fi
  10037. ;;
  10038. esac
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10040. $as_echo "$enable_shared" >&6; }
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10042. $as_echo_n "checking whether to build static libraries... " >&6; }
  10043. # Make sure either enable_shared or enable_static is yes.
  10044. test "$enable_shared" = yes || enable_static=yes
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10046. $as_echo "$enable_static" >&6; }
  10047. fi
  10048. ac_ext=c
  10049. ac_cpp='$CPP $CPPFLAGS'
  10050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10053. CC="$lt_save_CC"
  10054. ac_config_commands="$ac_config_commands libtool"
  10055. # Only expand once:
  10056. ac_config_headers="$ac_config_headers config.h"
  10057. am__api_version='1.12'
  10058. # Find a good install program. We prefer a C program (faster),
  10059. # so one script is as good as another. But avoid the broken or
  10060. # incompatible versions:
  10061. # SysV /etc/install, /usr/sbin/install
  10062. # SunOS /usr/etc/install
  10063. # IRIX /sbin/install
  10064. # AIX /bin/install
  10065. # AmigaOS /C/install, which installs bootblocks on floppy discs
  10066. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10067. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10068. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10069. # OS/2's system install, which has a completely different semantic
  10070. # ./install, which can be erroneously created by make from ./install.sh.
  10071. # Reject install programs that cannot install multiple files.
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  10073. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  10074. if test -z "$INSTALL"; then
  10075. if ${ac_cv_path_install+:} false; then :
  10076. $as_echo_n "(cached) " >&6
  10077. else
  10078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10079. for as_dir in $PATH
  10080. do
  10081. IFS=$as_save_IFS
  10082. test -z "$as_dir" && as_dir=.
  10083. # Account for people who put trailing slashes in PATH elements.
  10084. case $as_dir/ in #((
  10085. ./ | .// | /[cC]/* | \
  10086. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10087. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  10088. /usr/ucb/* ) ;;
  10089. *)
  10090. # OSF1 and SCO ODT 3.0 have their own names for install.
  10091. # Don't use installbsd from OSF since it installs stuff as root
  10092. # by default.
  10093. for ac_prog in ginstall scoinst install; do
  10094. for ac_exec_ext in '' $ac_executable_extensions; do
  10095. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  10096. if test $ac_prog = install &&
  10097. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10098. # AIX install. It has an incompatible calling convention.
  10099. :
  10100. elif test $ac_prog = install &&
  10101. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10102. # program-specific install script used by HP pwplus--don't use.
  10103. :
  10104. else
  10105. rm -rf conftest.one conftest.two conftest.dir
  10106. echo one > conftest.one
  10107. echo two > conftest.two
  10108. mkdir conftest.dir
  10109. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  10110. test -s conftest.one && test -s conftest.two &&
  10111. test -s conftest.dir/conftest.one &&
  10112. test -s conftest.dir/conftest.two
  10113. then
  10114. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10115. break 3
  10116. fi
  10117. fi
  10118. fi
  10119. done
  10120. done
  10121. ;;
  10122. esac
  10123. done
  10124. IFS=$as_save_IFS
  10125. rm -rf conftest.one conftest.two conftest.dir
  10126. fi
  10127. if test "${ac_cv_path_install+set}" = set; then
  10128. INSTALL=$ac_cv_path_install
  10129. else
  10130. # As a last resort, use the slow shell script. Don't cache a
  10131. # value for INSTALL within a source directory, because that will
  10132. # break other packages using the cache if that directory is
  10133. # removed, or if the value is a relative name.
  10134. INSTALL=$ac_install_sh
  10135. fi
  10136. fi
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  10138. $as_echo "$INSTALL" >&6; }
  10139. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10140. # It thinks the first close brace ends the variable substitution.
  10141. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10142. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  10143. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  10145. $as_echo_n "checking whether build environment is sane... " >&6; }
  10146. # Reject unsafe characters in $srcdir or the absolute working directory
  10147. # name. Accept space and tab only in the latter.
  10148. am_lf='
  10149. '
  10150. case `pwd` in
  10151. *[\\\"\#\$\&\'\`$am_lf]*)
  10152. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  10153. esac
  10154. case $srcdir in
  10155. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  10156. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  10157. esac
  10158. # Do 'set' in a subshell so we don't clobber the current shell's
  10159. # arguments. Must try -L first in case configure is actually a
  10160. # symlink; some systems play weird games with the mod time of symlinks
  10161. # (eg FreeBSD returns the mod time of the symlink's containing
  10162. # directory).
  10163. if (
  10164. am_has_slept=no
  10165. for am_try in 1 2; do
  10166. echo "timestamp, slept: $am_has_slept" > conftest.file
  10167. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  10168. if test "$*" = "X"; then
  10169. # -L didn't work.
  10170. set X `ls -t "$srcdir/configure" conftest.file`
  10171. fi
  10172. if test "$*" != "X $srcdir/configure conftest.file" \
  10173. && test "$*" != "X conftest.file $srcdir/configure"; then
  10174. # If neither matched, then we have a broken ls. This can happen
  10175. # if, for instance, CONFIG_SHELL is bash and it inherits a
  10176. # broken ls alias from the environment. This has actually
  10177. # happened. Such a system could not be considered "sane".
  10178. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  10179. alias in your environment" "$LINENO" 5
  10180. fi
  10181. if test "$2" = conftest.file || test $am_try -eq 2; then
  10182. break
  10183. fi
  10184. # Just in case.
  10185. sleep 1
  10186. am_has_slept=yes
  10187. done
  10188. test "$2" = conftest.file
  10189. )
  10190. then
  10191. # Ok.
  10192. :
  10193. else
  10194. as_fn_error $? "newly created file is older than distributed files!
  10195. Check your system clock" "$LINENO" 5
  10196. fi
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10198. $as_echo "yes" >&6; }
  10199. # If we didn't sleep, we still need to ensure time stamps of config.status and
  10200. # generated files are strictly newer.
  10201. am_sleep_pid=
  10202. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  10203. ( sleep 1 ) &
  10204. am_sleep_pid=$!
  10205. fi
  10206. rm -f conftest.file
  10207. test "$program_prefix" != NONE &&
  10208. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  10209. # Use a double $ so make ignores it.
  10210. test "$program_suffix" != NONE &&
  10211. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  10212. # Double any \ or $.
  10213. # By default was `s,x,x', remove it if useless.
  10214. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  10215. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  10216. # expand $ac_aux_dir to an absolute path
  10217. am_aux_dir=`cd $ac_aux_dir && pwd`
  10218. if test x"${MISSING+set}" != xset; then
  10219. case $am_aux_dir in
  10220. *\ * | *\ *)
  10221. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  10222. *)
  10223. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  10224. esac
  10225. fi
  10226. # Use eval to expand $SHELL
  10227. if eval "$MISSING --run true"; then
  10228. am_missing_run="$MISSING --run "
  10229. else
  10230. am_missing_run=
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  10232. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  10233. fi
  10234. if test x"${install_sh}" != xset; then
  10235. case $am_aux_dir in
  10236. *\ * | *\ *)
  10237. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  10238. *)
  10239. install_sh="\${SHELL} $am_aux_dir/install-sh"
  10240. esac
  10241. fi
  10242. # Installed binaries are usually stripped using 'strip' when the user
  10243. # run "make install-strip". However 'strip' might not be the right
  10244. # tool to use in cross-compilation environments, therefore Automake
  10245. # will honor the 'STRIP' environment variable to overrule this program.
  10246. if test "$cross_compiling" != no; then
  10247. if test -n "$ac_tool_prefix"; then
  10248. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10249. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10251. $as_echo_n "checking for $ac_word... " >&6; }
  10252. if ${ac_cv_prog_STRIP+:} false; then :
  10253. $as_echo_n "(cached) " >&6
  10254. else
  10255. if test -n "$STRIP"; then
  10256. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10257. else
  10258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10259. for as_dir in $PATH
  10260. do
  10261. IFS=$as_save_IFS
  10262. test -z "$as_dir" && as_dir=.
  10263. for ac_exec_ext in '' $ac_executable_extensions; do
  10264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10265. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10267. break 2
  10268. fi
  10269. done
  10270. done
  10271. IFS=$as_save_IFS
  10272. fi
  10273. fi
  10274. STRIP=$ac_cv_prog_STRIP
  10275. if test -n "$STRIP"; then
  10276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10277. $as_echo "$STRIP" >&6; }
  10278. else
  10279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10280. $as_echo "no" >&6; }
  10281. fi
  10282. fi
  10283. if test -z "$ac_cv_prog_STRIP"; then
  10284. ac_ct_STRIP=$STRIP
  10285. # Extract the first word of "strip", so it can be a program name with args.
  10286. set dummy strip; ac_word=$2
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10288. $as_echo_n "checking for $ac_word... " >&6; }
  10289. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10290. $as_echo_n "(cached) " >&6
  10291. else
  10292. if test -n "$ac_ct_STRIP"; then
  10293. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10294. else
  10295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10296. for as_dir in $PATH
  10297. do
  10298. IFS=$as_save_IFS
  10299. test -z "$as_dir" && as_dir=.
  10300. for ac_exec_ext in '' $ac_executable_extensions; do
  10301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10302. ac_cv_prog_ac_ct_STRIP="strip"
  10303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10304. break 2
  10305. fi
  10306. done
  10307. done
  10308. IFS=$as_save_IFS
  10309. fi
  10310. fi
  10311. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10312. if test -n "$ac_ct_STRIP"; then
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10314. $as_echo "$ac_ct_STRIP" >&6; }
  10315. else
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10317. $as_echo "no" >&6; }
  10318. fi
  10319. if test "x$ac_ct_STRIP" = x; then
  10320. STRIP=":"
  10321. else
  10322. case $cross_compiling:$ac_tool_warned in
  10323. yes:)
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10325. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10326. ac_tool_warned=yes ;;
  10327. esac
  10328. STRIP=$ac_ct_STRIP
  10329. fi
  10330. else
  10331. STRIP="$ac_cv_prog_STRIP"
  10332. fi
  10333. fi
  10334. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10336. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10337. if test -z "$MKDIR_P"; then
  10338. if ${ac_cv_path_mkdir+:} false; then :
  10339. $as_echo_n "(cached) " >&6
  10340. else
  10341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10342. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10343. do
  10344. IFS=$as_save_IFS
  10345. test -z "$as_dir" && as_dir=.
  10346. for ac_prog in mkdir gmkdir; do
  10347. for ac_exec_ext in '' $ac_executable_extensions; do
  10348. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  10349. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10350. 'mkdir (GNU coreutils) '* | \
  10351. 'mkdir (coreutils) '* | \
  10352. 'mkdir (fileutils) '4.1*)
  10353. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  10354. break 3;;
  10355. esac
  10356. done
  10357. done
  10358. done
  10359. IFS=$as_save_IFS
  10360. fi
  10361. test -d ./--version && rmdir ./--version
  10362. if test "${ac_cv_path_mkdir+set}" = set; then
  10363. MKDIR_P="$ac_cv_path_mkdir -p"
  10364. else
  10365. # As a last resort, use the slow shell script. Don't cache a
  10366. # value for MKDIR_P within a source directory, because that will
  10367. # break other packages using the cache if that directory is
  10368. # removed, or if the value is a relative name.
  10369. MKDIR_P="$ac_install_sh -d"
  10370. fi
  10371. fi
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  10373. $as_echo "$MKDIR_P" >&6; }
  10374. mkdir_p="$MKDIR_P"
  10375. case $mkdir_p in
  10376. [\\/$]* | ?:[\\/]*) ;;
  10377. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  10378. esac
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10380. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10381. set x ${MAKE-make}
  10382. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10383. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  10384. $as_echo_n "(cached) " >&6
  10385. else
  10386. cat >conftest.make <<\_ACEOF
  10387. SHELL = /bin/sh
  10388. all:
  10389. @echo '@@@%%%=$(MAKE)=@@@%%%'
  10390. _ACEOF
  10391. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  10392. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  10393. *@@@%%%=?*=@@@%%%*)
  10394. eval ac_cv_prog_make_${ac_make}_set=yes;;
  10395. *)
  10396. eval ac_cv_prog_make_${ac_make}_set=no;;
  10397. esac
  10398. rm -f conftest.make
  10399. fi
  10400. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10402. $as_echo "yes" >&6; }
  10403. SET_MAKE=
  10404. else
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10406. $as_echo "no" >&6; }
  10407. SET_MAKE="MAKE=${MAKE-make}"
  10408. fi
  10409. rm -rf .tst 2>/dev/null
  10410. mkdir .tst 2>/dev/null
  10411. if test -d .tst; then
  10412. am__leading_dot=.
  10413. else
  10414. am__leading_dot=_
  10415. fi
  10416. rmdir .tst 2>/dev/null
  10417. DEPDIR="${am__leading_dot}deps"
  10418. ac_config_commands="$ac_config_commands depfiles"
  10419. am_make=${MAKE-make}
  10420. cat > confinc << 'END'
  10421. am__doit:
  10422. @echo this is the am__doit target
  10423. .PHONY: am__doit
  10424. END
  10425. # If we don't find an include directive, just comment out the code.
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  10427. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  10428. am__include="#"
  10429. am__quote=
  10430. _am_result=none
  10431. # First try GNU make style include.
  10432. echo "include confinc" > confmf
  10433. # Ignore all kinds of additional output from 'make'.
  10434. case `$am_make -s -f confmf 2> /dev/null` in #(
  10435. *the\ am__doit\ target*)
  10436. am__include=include
  10437. am__quote=
  10438. _am_result=GNU
  10439. ;;
  10440. esac
  10441. # Now try BSD make style include.
  10442. if test "$am__include" = "#"; then
  10443. echo '.include "confinc"' > confmf
  10444. case `$am_make -s -f confmf 2> /dev/null` in #(
  10445. *the\ am__doit\ target*)
  10446. am__include=.include
  10447. am__quote="\""
  10448. _am_result=BSD
  10449. ;;
  10450. esac
  10451. fi
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  10453. $as_echo "$_am_result" >&6; }
  10454. rm -f confinc confmf
  10455. # Check whether --enable-dependency-tracking was given.
  10456. if test "${enable_dependency_tracking+set}" = set; then :
  10457. enableval=$enable_dependency_tracking;
  10458. fi
  10459. if test "x$enable_dependency_tracking" != xno; then
  10460. am_depcomp="$ac_aux_dir/depcomp"
  10461. AMDEPBACKSLASH='\'
  10462. am__nodep='_no'
  10463. fi
  10464. if test "x$enable_dependency_tracking" != xno; then
  10465. AMDEP_TRUE=
  10466. AMDEP_FALSE='#'
  10467. else
  10468. AMDEP_TRUE='#'
  10469. AMDEP_FALSE=
  10470. fi
  10471. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  10472. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  10473. # is not polluted with repeated "-I."
  10474. am__isrc=' -I$(srcdir)'
  10475. # test to see if srcdir already configured
  10476. if test -f $srcdir/config.status; then
  10477. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  10478. fi
  10479. fi
  10480. # test whether we have cygpath
  10481. if test -z "$CYGPATH_W"; then
  10482. if (cygpath --version) >/dev/null 2>/dev/null; then
  10483. CYGPATH_W='cygpath -w'
  10484. else
  10485. CYGPATH_W=echo
  10486. fi
  10487. fi
  10488. # Define the identity of the package.
  10489. PACKAGE='klish'
  10490. VERSION='1.6.0'
  10491. cat >>confdefs.h <<_ACEOF
  10492. #define PACKAGE "$PACKAGE"
  10493. _ACEOF
  10494. cat >>confdefs.h <<_ACEOF
  10495. #define VERSION "$VERSION"
  10496. _ACEOF
  10497. # Some tools Automake needs.
  10498. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  10499. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  10500. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  10501. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  10502. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  10503. # We need awk for the "check" target. The system "awk" is bad on
  10504. # some platforms.
  10505. # Always define AMTAR for backward compatibility. Yes, it's still used
  10506. # in the wild :-( We should find a proper way to deprecate it ...
  10507. AMTAR='$${TAR-tar}'
  10508. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  10509. depcc="$CC" am_compiler_list=
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10511. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10512. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  10513. $as_echo_n "(cached) " >&6
  10514. else
  10515. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10516. # We make a subdir and do the tests there. Otherwise we can end up
  10517. # making bogus files that we don't know about and never remove. For
  10518. # instance it was reported that on HP-UX the gcc test will end up
  10519. # making a dummy file named 'D' -- because '-MD' means "put the output
  10520. # in D".
  10521. rm -rf conftest.dir
  10522. mkdir conftest.dir
  10523. # Copy depcomp to subdir because otherwise we won't find it if we're
  10524. # using a relative directory.
  10525. cp "$am_depcomp" conftest.dir
  10526. cd conftest.dir
  10527. # We will build objects and dependencies in a subdirectory because
  10528. # it helps to detect inapplicable dependency modes. For instance
  10529. # both Tru64's cc and ICC support -MD to output dependencies as a
  10530. # side effect of compilation, but ICC will put the dependencies in
  10531. # the current directory while Tru64 will put them in the object
  10532. # directory.
  10533. mkdir sub
  10534. am_cv_CC_dependencies_compiler_type=none
  10535. if test "$am_compiler_list" = ""; then
  10536. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10537. fi
  10538. am__universal=false
  10539. case " $depcc " in #(
  10540. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10541. esac
  10542. for depmode in $am_compiler_list; do
  10543. # Setup a source with many dependencies, because some compilers
  10544. # like to wrap large dependency lists on column 80 (with \), and
  10545. # we should not choose a depcomp mode which is confused by this.
  10546. #
  10547. # We need to recreate these files for each test, as the compiler may
  10548. # overwrite some of them when testing with obscure command lines.
  10549. # This happens at least with the AIX C compiler.
  10550. : > sub/conftest.c
  10551. for i in 1 2 3 4 5 6; do
  10552. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10553. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10554. # Solaris 10 /bin/sh.
  10555. echo '/* dummy */' > sub/conftst$i.h
  10556. done
  10557. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10558. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10559. # mode. It turns out that the SunPro C++ compiler does not properly
  10560. # handle '-M -o', and we need to detect this. Also, some Intel
  10561. # versions had trouble with output in subdirs.
  10562. am__obj=sub/conftest.${OBJEXT-o}
  10563. am__minus_obj="-o $am__obj"
  10564. case $depmode in
  10565. gcc)
  10566. # This depmode causes a compiler race in universal mode.
  10567. test "$am__universal" = false || continue
  10568. ;;
  10569. nosideeffect)
  10570. # After this tag, mechanisms are not by side-effect, so they'll
  10571. # only be used when explicitly requested.
  10572. if test "x$enable_dependency_tracking" = xyes; then
  10573. continue
  10574. else
  10575. break
  10576. fi
  10577. ;;
  10578. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10579. # This compiler won't grok '-c -o', but also, the minuso test has
  10580. # not run yet. These depmodes are late enough in the game, and
  10581. # so weak that their functioning should not be impacted.
  10582. am__obj=conftest.${OBJEXT-o}
  10583. am__minus_obj=
  10584. ;;
  10585. none) break ;;
  10586. esac
  10587. if depmode=$depmode \
  10588. source=sub/conftest.c object=$am__obj \
  10589. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10590. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10591. >/dev/null 2>conftest.err &&
  10592. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10593. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10594. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10595. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10596. # icc doesn't choke on unknown options, it will just issue warnings
  10597. # or remarks (even with -Werror). So we grep stderr for any message
  10598. # that says an option was ignored or not supported.
  10599. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10600. # icc: Command line warning: ignoring option '-M'; no argument required
  10601. # The diagnosis changed in icc 8.0:
  10602. # icc: Command line remark: option '-MP' not supported
  10603. if (grep 'ignoring option' conftest.err ||
  10604. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10605. am_cv_CC_dependencies_compiler_type=$depmode
  10606. break
  10607. fi
  10608. fi
  10609. done
  10610. cd ..
  10611. rm -rf conftest.dir
  10612. else
  10613. am_cv_CC_dependencies_compiler_type=none
  10614. fi
  10615. fi
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  10617. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  10618. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10619. if
  10620. test "x$enable_dependency_tracking" != xno \
  10621. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10622. am__fastdepCC_TRUE=
  10623. am__fastdepCC_FALSE='#'
  10624. else
  10625. am__fastdepCC_TRUE='#'
  10626. am__fastdepCC_FALSE=
  10627. fi
  10628. if test "x$CC" != xcc; then
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  10630. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  10631. else
  10632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  10633. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  10634. fi
  10635. set dummy $CC; ac_cc=`$as_echo "$2" |
  10636. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10637. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  10638. $as_echo_n "(cached) " >&6
  10639. else
  10640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10641. /* end confdefs.h. */
  10642. int
  10643. main ()
  10644. {
  10645. ;
  10646. return 0;
  10647. }
  10648. _ACEOF
  10649. # Make sure it works both with $CC and with simple cc.
  10650. # We do the test twice because some compilers refuse to overwrite an
  10651. # existing .o file with -o, though they will create one.
  10652. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  10653. rm -f conftest2.*
  10654. if { { case "(($ac_try" in
  10655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10656. *) ac_try_echo=$ac_try;;
  10657. esac
  10658. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10659. $as_echo "$ac_try_echo"; } >&5
  10660. (eval "$ac_try") 2>&5
  10661. ac_status=$?
  10662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10663. test $ac_status = 0; } &&
  10664. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  10665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10666. *) ac_try_echo=$ac_try;;
  10667. esac
  10668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10669. $as_echo "$ac_try_echo"; } >&5
  10670. (eval "$ac_try") 2>&5
  10671. ac_status=$?
  10672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10673. test $ac_status = 0; };
  10674. then
  10675. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  10676. if test "x$CC" != xcc; then
  10677. # Test first that cc exists at all.
  10678. if { ac_try='cc -c conftest.$ac_ext >&5'
  10679. { { case "(($ac_try" in
  10680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10681. *) ac_try_echo=$ac_try;;
  10682. esac
  10683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10684. $as_echo "$ac_try_echo"; } >&5
  10685. (eval "$ac_try") 2>&5
  10686. ac_status=$?
  10687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10688. test $ac_status = 0; }; }; then
  10689. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  10690. rm -f conftest2.*
  10691. if { { case "(($ac_try" in
  10692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10693. *) ac_try_echo=$ac_try;;
  10694. esac
  10695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10696. $as_echo "$ac_try_echo"; } >&5
  10697. (eval "$ac_try") 2>&5
  10698. ac_status=$?
  10699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10700. test $ac_status = 0; } &&
  10701. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  10702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10703. *) ac_try_echo=$ac_try;;
  10704. esac
  10705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10706. $as_echo "$ac_try_echo"; } >&5
  10707. (eval "$ac_try") 2>&5
  10708. ac_status=$?
  10709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10710. test $ac_status = 0; };
  10711. then
  10712. # cc works too.
  10713. :
  10714. else
  10715. # cc exists but doesn't like -o.
  10716. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  10717. fi
  10718. fi
  10719. fi
  10720. else
  10721. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  10722. fi
  10723. rm -f core conftest*
  10724. fi
  10725. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10727. $as_echo "yes" >&6; }
  10728. else
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10730. $as_echo "no" >&6; }
  10731. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  10732. fi
  10733. # FIXME: we rely on the cache variable name because
  10734. # there is no other way.
  10735. set dummy $CC
  10736. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  10737. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  10738. if test "$am_t" != yes; then
  10739. # Losing compiler, so override with the script.
  10740. # FIXME: It is wrong to rewrite CC.
  10741. # But if we don't then we get into trouble of one sort or another.
  10742. # A longer-term fix would be to have automake use am__CC in this case,
  10743. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  10744. CC="$am_aux_dir/compile $CC"
  10745. fi
  10746. # needed to handle 64-bit architecture
  10747. # The cast to long int works around a bug in the HP C Compiler
  10748. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10749. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10750. # This bug is HP SR number 8606223364.
  10751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10752. $as_echo_n "checking size of int... " >&6; }
  10753. if ${ac_cv_sizeof_int+:} false; then :
  10754. $as_echo_n "(cached) " >&6
  10755. else
  10756. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10757. else
  10758. if test "$ac_cv_type_int" = yes; then
  10759. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10760. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10761. as_fn_error 77 "cannot compute sizeof (int)
  10762. See \`config.log' for more details" "$LINENO" 5; }
  10763. else
  10764. ac_cv_sizeof_int=0
  10765. fi
  10766. fi
  10767. fi
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10769. $as_echo "$ac_cv_sizeof_int" >&6; }
  10770. cat >>confdefs.h <<_ACEOF
  10771. #define SIZEOF_INT $ac_cv_sizeof_int
  10772. _ACEOF
  10773. # The cast to long int works around a bug in the HP C Compiler
  10774. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10775. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10776. # This bug is HP SR number 8606223364.
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10778. $as_echo_n "checking size of long... " >&6; }
  10779. if ${ac_cv_sizeof_long+:} false; then :
  10780. $as_echo_n "(cached) " >&6
  10781. else
  10782. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10783. else
  10784. if test "$ac_cv_type_long" = yes; then
  10785. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10786. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10787. as_fn_error 77 "cannot compute sizeof (long)
  10788. See \`config.log' for more details" "$LINENO" 5; }
  10789. else
  10790. ac_cv_sizeof_long=0
  10791. fi
  10792. fi
  10793. fi
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10795. $as_echo "$ac_cv_sizeof_long" >&6; }
  10796. cat >>confdefs.h <<_ACEOF
  10797. #define SIZEOF_LONG $ac_cv_sizeof_long
  10798. _ACEOF
  10799. # The cast to long int works around a bug in the HP C Compiler
  10800. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10801. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10802. # This bug is HP SR number 8606223364.
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  10804. $as_echo_n "checking size of size_t... " >&6; }
  10805. if ${ac_cv_sizeof_size_t+:} false; then :
  10806. $as_echo_n "(cached) " >&6
  10807. else
  10808. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  10809. else
  10810. if test "$ac_cv_type_size_t" = yes; then
  10811. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10812. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10813. as_fn_error 77 "cannot compute sizeof (size_t)
  10814. See \`config.log' for more details" "$LINENO" 5; }
  10815. else
  10816. ac_cv_sizeof_size_t=0
  10817. fi
  10818. fi
  10819. fi
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  10821. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  10822. cat >>confdefs.h <<_ACEOF
  10823. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  10824. _ACEOF
  10825. #------------------------------------------------------------------------
  10826. # Handle the --prefix=... option
  10827. #------------------------------------------------------------------------
  10828. if test "${prefix}" = "NONE"; then
  10829. prefix=/usr/local
  10830. fi
  10831. if test "${exec_prefix}" = "NONE"; then
  10832. exec_prefix=$prefix
  10833. fi
  10834. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  10835. eval libdir="$libdir"
  10836. ################################
  10837. # Deal with debugging options
  10838. ################################
  10839. # Check whether --enable-debug was given.
  10840. if test "${enable_debug+set}" = set; then :
  10841. enableval=$enable_debug;
  10842. else
  10843. enable_debug=no
  10844. fi
  10845. if test x$enable_debug = xyes; then
  10846. DEBUG_TRUE=
  10847. DEBUG_FALSE='#'
  10848. else
  10849. DEBUG_TRUE='#'
  10850. DEBUG_FALSE=
  10851. fi
  10852. ################################
  10853. # Check for the roxml library
  10854. ################################
  10855. # Check whether --with-libroxml was given.
  10856. if test "${with_libroxml+set}" = set; then :
  10857. withval=$with_libroxml; use_roxml=$withval
  10858. else
  10859. use_roxml=no
  10860. fi
  10861. # Check whether --with-libexpat was given.
  10862. if test "${with_libexpat+set}" = set; then :
  10863. withval=$with_libexpat; use_expat=$withval
  10864. else
  10865. use_expat=no
  10866. fi
  10867. # Check whether --with-libxml2 was given.
  10868. if test "${with_libxml2+set}" = set; then :
  10869. withval=$with_libxml2; use_libxml2=$withval
  10870. else
  10871. use_libxml2=no
  10872. fi
  10873. # select the default xml backend
  10874. sel_xml_backends=""
  10875. xml_backend=""
  10876. found_xml_backend=""
  10877. count_xml_backends=0
  10878. if test "x$use_libxml2" != "xno"; then
  10879. sel_xml_backends="$sel_xml_backends libxml2"
  10880. xml_backend="libxml2"
  10881. count_xml_backends=$((count_xml_backends + 1))
  10882. fi
  10883. if test "x$use_roxml" != "xno"; then
  10884. sel_xml_backends="$sel_xml_backends roxml"
  10885. xml_backend="roxml"
  10886. count_xml_backends=$((count_xml_backends + 1))
  10887. fi
  10888. if test "x$use_expat" != "xno"; then
  10889. sel_xml_backends="$sel_xml_backends expat"
  10890. xml_backend="expat"
  10891. count_xml_backends=$((count_xml_backends + 1))
  10892. fi
  10893. if test $count_xml_backends -gt 1; then
  10894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multiple XML backend has been selected ($sel_xml_backends). I choose $xml_backend" >&5
  10895. $as_echo "$as_me: WARNING: Multiple XML backend has been selected ($sel_xml_backends). I choose $xml_backend" >&2;}
  10896. fi
  10897. if test "x$xml_backend" = "x"; then
  10898. xml_backend="auto"
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No XML backend has been selected: auto check" >&5
  10900. $as_echo "$as_me: WARNING: No XML backend has been selected: auto check" >&2;}
  10901. fi
  10902. case x$xml_backend in
  10903. xroxml)
  10904. use_libxml2="no"
  10905. use_expat="no"
  10906. ;;
  10907. xlibxml2)
  10908. use_roxml="no"
  10909. use_expat="no"
  10910. ;;
  10911. xexpat)
  10912. use_libxml2="no"
  10913. use_roxml="no"
  10914. ;;
  10915. esac
  10916. XML_LDFLAGS=""
  10917. XML_CFLAGS=""
  10918. XML_LIBS=""
  10919. if test "$xml_backend" = "expat" -o "$xml_backend" = "auto"; then
  10920. if test "$xml_backend" = "auto"; then
  10921. # on auto select, we try to detect the library
  10922. use_expat="yes"
  10923. fi
  10924. case x$use_expat in
  10925. xyes)
  10926. # we choose to NOT rely on pkg-config on this one. Instead, we
  10927. # check for the library and the header file - that should be
  10928. # enough.
  10929. ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "/* force include check */
  10930. "
  10931. if test "x$ac_cv_header_expat_h" = xyes; then :
  10932. expat_h_found=yes
  10933. else
  10934. expat_h_found=no
  10935. fi
  10936. if test "x$expat_h_found" != "xyes"; then
  10937. if test "$xml_backend" = "auto"; then
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find <expat.h> header file" >&5
  10939. $as_echo "$as_me: WARNING: cannot find <expat.h> header file" >&2;}
  10940. else
  10941. as_fn_error $? "cannot find <expat.h> header file" "$LINENO" 5
  10942. fi
  10943. fi
  10944. XML_CFLAGS=""
  10945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  10946. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  10947. if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
  10948. $as_echo_n "(cached) " >&6
  10949. else
  10950. ac_check_lib_save_LIBS=$LIBS
  10951. LIBS="-lexpat $LIBS"
  10952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10953. /* end confdefs.h. */
  10954. /* Override any GCC internal prototype to avoid an error.
  10955. Use char because int might match the return type of a GCC
  10956. builtin and then its argument prototype would still apply. */
  10957. #ifdef __cplusplus
  10958. extern "C"
  10959. #endif
  10960. char XML_ParserCreate ();
  10961. int
  10962. main ()
  10963. {
  10964. return XML_ParserCreate ();
  10965. ;
  10966. return 0;
  10967. }
  10968. _ACEOF
  10969. if ac_fn_c_try_link "$LINENO"; then :
  10970. ac_cv_lib_expat_XML_ParserCreate=yes
  10971. else
  10972. ac_cv_lib_expat_XML_ParserCreate=no
  10973. fi
  10974. rm -f core conftest.err conftest.$ac_objext \
  10975. conftest$ac_exeext conftest.$ac_ext
  10976. LIBS=$ac_check_lib_save_LIBS
  10977. fi
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  10979. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  10980. if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
  10981. expat_lib_found=yes
  10982. else
  10983. expat_lib_found=no
  10984. fi
  10985. if test "x$expat_lib_found" != "xyes"; then
  10986. if test "$xml_backend" = "auto"; then
  10987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find expat library" >&5
  10988. $as_echo "$as_me: WARNING: cannot find expat library" >&2;}
  10989. else
  10990. as_fn_error $? "cannot find expat library" "$LINENO" 5
  10991. fi
  10992. fi
  10993. XML_LDFLAGS=""
  10994. XML_LIBS="-lexpat"
  10995. $as_echo "#define HAVE_LIB_EXPAT /**/" >>confdefs.h
  10996. xml_backend="found"
  10997. found_xml_backend="expat"
  10998. ;;
  10999. *)
  11000. # this is probably broken. We consider that the user supplied path is
  11001. # a non-standard path. But we're not going to check anything.
  11002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-expat=DIR is probably broken, just trying" >&5
  11003. $as_echo "$as_me: WARNING: --with-expat=DIR is probably broken, just trying" >&2;}
  11004. XML_LDFLAGS="-L${use_expat}/include"
  11005. XML_CFLAGS="-I${use_expat}/lib"
  11006. XML_LIBS="-lxml2"
  11007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat support" >&5
  11008. $as_echo_n "checking for expat support... " >&6; }
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11010. $as_echo "yes" >&6; }
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: headers for expat hopefully in ${use_expat}/include" >&5
  11012. $as_echo "$as_me: headers for expat hopefully in ${use_expat}/include" >&6;}
  11013. { $as_echo "$as_me:${as_lineno-$LINENO}: library expat hopefully in ${use_expat}/lib" >&5
  11014. $as_echo "$as_me: library expat hopefully in ${use_expat}/lib" >&6;}
  11015. $as_echo "#define HAVE_LIB_EXPAT /**/" >>confdefs.h
  11016. xml_backend="found"
  11017. found_xml_backend="expat"
  11018. ;;
  11019. esac
  11020. else
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat support" >&5
  11022. $as_echo_n "checking for libexpat support... " >&6; }
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11024. $as_echo "no" >&6; }
  11025. fi
  11026. if test "$xml_backend" = "roxml" -o "$xml_backend" = "auto"; then
  11027. if test "$xml_backend" = "auto"; then
  11028. # on auto select, we try to detect the library
  11029. use_roxml="yes"
  11030. fi
  11031. case x$use_roxml in
  11032. xyes)
  11033. # we choose to NOT rely on pkg-config on this one. We may do it as
  11034. # libroxml provides a .pc file but some environment (both cross-compile
  11035. # or native environment) may lack this support. The good thing is that
  11036. # it doesn't add much complexity to the configure.ac file (and we
  11037. # may move these tests to another m4 file later).
  11038. # the header is installed in the standard path
  11039. ac_fn_c_check_header_compile "$LINENO" "roxml.h" "ac_cv_header_roxml_h" "/* force include check */
  11040. "
  11041. if test "x$ac_cv_header_roxml_h" = xyes; then :
  11042. roxml_h_found=yes
  11043. else
  11044. roxml_h_found=no
  11045. fi
  11046. if test "x$roxml_h_found" != "xyes"; then
  11047. if test "$xml_backend" = "auto"; then
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find <roxml.h> header file" >&5
  11049. $as_echo "$as_me: WARNING: cannot find <roxml.h> header file" >&2;}
  11050. else
  11051. as_fn_error $? "cannot find <roxml.h> header file" "$LINENO" 5
  11052. fi
  11053. fi
  11054. XML_CFLAGS=""
  11055. # the library is installed in the standard path
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_load_doc in -lroxml" >&5
  11057. $as_echo_n "checking for roxml_load_doc in -lroxml... " >&6; }
  11058. if ${ac_cv_lib_roxml_roxml_load_doc+:} false; then :
  11059. $as_echo_n "(cached) " >&6
  11060. else
  11061. ac_check_lib_save_LIBS=$LIBS
  11062. LIBS="-lroxml $LIBS"
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. /* Override any GCC internal prototype to avoid an error.
  11066. Use char because int might match the return type of a GCC
  11067. builtin and then its argument prototype would still apply. */
  11068. #ifdef __cplusplus
  11069. extern "C"
  11070. #endif
  11071. char roxml_load_doc ();
  11072. int
  11073. main ()
  11074. {
  11075. return roxml_load_doc ();
  11076. ;
  11077. return 0;
  11078. }
  11079. _ACEOF
  11080. if ac_fn_c_try_link "$LINENO"; then :
  11081. ac_cv_lib_roxml_roxml_load_doc=yes
  11082. else
  11083. ac_cv_lib_roxml_roxml_load_doc=no
  11084. fi
  11085. rm -f core conftest.err conftest.$ac_objext \
  11086. conftest$ac_exeext conftest.$ac_ext
  11087. LIBS=$ac_check_lib_save_LIBS
  11088. fi
  11089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_load_doc" >&5
  11090. $as_echo "$ac_cv_lib_roxml_roxml_load_doc" >&6; }
  11091. if test "x$ac_cv_lib_roxml_roxml_load_doc" = xyes; then :
  11092. roxml_lib_found=yes
  11093. else
  11094. roxml_lib_found=no
  11095. fi
  11096. if test "x$roxml_lib_found" != "xyes"; then
  11097. if test "$xml_backend" = "auto"; then
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find roxml library" >&5
  11099. $as_echo "$as_me: WARNING: cannot find roxml library" >&2;}
  11100. else
  11101. as_fn_error $? "cannot find roxml library" "$LINENO" 5
  11102. fi
  11103. fi
  11104. XML_LDFLAGS=""
  11105. XML_LIBS="-lroxml"
  11106. $as_echo "#define HAVE_LIB_ROXML /**/" >>confdefs.h
  11107. xml_backend="found"
  11108. found_xml_backend="roxml"
  11109. ;;
  11110. *)
  11111. # first, we check if we're not looking for an alternate include
  11112. # directory -for example, if the user feeds the script with the
  11113. # option --with-roxml=/usr/local
  11114. # NOTE: we search for include/roxml.h and inc/roxml.h to defeat
  11115. # the caching algorithm of the configure script. If someone knows
  11116. # a better way, please do not hesitate
  11117. roxml_CFLAGS="$CFLAGS"
  11118. CFLAGS="$CFLAGS -I${use_roxml}"
  11119. ac_fn_c_check_header_compile "$LINENO" "include/roxml.h" "ac_cv_header_include_roxml_h" "/* force include check */
  11120. "
  11121. if test "x$ac_cv_header_include_roxml_h" = xyes; then :
  11122. roxml_h_found=yes
  11123. else
  11124. roxml_h_found=no
  11125. fi
  11126. if test "x$roxml_h_found" = "xno"; then
  11127. # the directory might be a source directory, so check
  11128. # if the include file is to be found here
  11129. ac_fn_c_check_header_compile "$LINENO" "inc/roxml.h" "ac_cv_header_inc_roxml_h" "/* force include check */
  11130. "
  11131. if test "x$ac_cv_header_inc_roxml_h" = xyes; then :
  11132. roxml_h_found=yes
  11133. else
  11134. roxml_h_found=no
  11135. fi
  11136. if test "x$roxml_h_found" = "xno"; then
  11137. if test "$xml_backend" = "auto"; then
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find <roxml.h> header file" >&5
  11139. $as_echo "$as_me: WARNING: cannot find <roxml.h> header file" >&2;}
  11140. else
  11141. as_fn_error $? "cannot find <roxml.h> header file" "$LINENO" 5
  11142. fi
  11143. fi
  11144. XML_CFLAGS="-I${use_roxml}/inc"
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: header file <roxml.h> found in ${use_roxml}/inc" >&5
  11146. $as_echo "$as_me: header file <roxml.h> found in ${use_roxml}/inc" >&6;}
  11147. else
  11148. XML_CFLAGS="-I${use_roxml}/include"
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: header file <roxml.h> found in ${use_roxml}/include" >&5
  11150. $as_echo "$as_me: header file <roxml.h> found in ${use_roxml}/include" >&6;}
  11151. fi
  11152. CFLAGS="$roxml_CFLAGS"
  11153. # we're doing both previous checks, but we are trying to find a library
  11154. # now, so the check themselves are a bit different
  11155. # NOTE: we search for roxml_load_doc and roxml_close to defeat
  11156. # the caching algorithm of the configure script. If someone knows
  11157. # a better way, please do not hesitate.
  11158. roxml_LDFLAGS="$LDFLAGS"
  11159. LDFLAGS="$LDFLAGS -L${use_roxml}/lib"
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_load_doc in -lroxml" >&5
  11161. $as_echo_n "checking for roxml_load_doc in -lroxml... " >&6; }
  11162. if ${ac_cv_lib_roxml_roxml_load_doc+:} false; then :
  11163. $as_echo_n "(cached) " >&6
  11164. else
  11165. ac_check_lib_save_LIBS=$LIBS
  11166. LIBS="-lroxml $LIBS"
  11167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11168. /* end confdefs.h. */
  11169. /* Override any GCC internal prototype to avoid an error.
  11170. Use char because int might match the return type of a GCC
  11171. builtin and then its argument prototype would still apply. */
  11172. #ifdef __cplusplus
  11173. extern "C"
  11174. #endif
  11175. char roxml_load_doc ();
  11176. int
  11177. main ()
  11178. {
  11179. return roxml_load_doc ();
  11180. ;
  11181. return 0;
  11182. }
  11183. _ACEOF
  11184. if ac_fn_c_try_link "$LINENO"; then :
  11185. ac_cv_lib_roxml_roxml_load_doc=yes
  11186. else
  11187. ac_cv_lib_roxml_roxml_load_doc=no
  11188. fi
  11189. rm -f core conftest.err conftest.$ac_objext \
  11190. conftest$ac_exeext conftest.$ac_ext
  11191. LIBS=$ac_check_lib_save_LIBS
  11192. fi
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_load_doc" >&5
  11194. $as_echo "$ac_cv_lib_roxml_roxml_load_doc" >&6; }
  11195. if test "x$ac_cv_lib_roxml_roxml_load_doc" = xyes; then :
  11196. roxml_lib_found=yes
  11197. else
  11198. roxml_lib_found=no
  11199. fi
  11200. LDFLAGS=$roxml_LDFLAGS
  11201. if test "x$roxml_lib_found" = "xno"; then
  11202. LDFLAGS="$LDFLAGS -L${use_roxml}"
  11203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roxml_close in -lroxml" >&5
  11204. $as_echo_n "checking for roxml_close in -lroxml... " >&6; }
  11205. if ${ac_cv_lib_roxml_roxml_close+:} false; then :
  11206. $as_echo_n "(cached) " >&6
  11207. else
  11208. ac_check_lib_save_LIBS=$LIBS
  11209. LIBS="-lroxml $LIBS"
  11210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11211. /* end confdefs.h. */
  11212. /* Override any GCC internal prototype to avoid an error.
  11213. Use char because int might match the return type of a GCC
  11214. builtin and then its argument prototype would still apply. */
  11215. #ifdef __cplusplus
  11216. extern "C"
  11217. #endif
  11218. char roxml_close ();
  11219. int
  11220. main ()
  11221. {
  11222. return roxml_close ();
  11223. ;
  11224. return 0;
  11225. }
  11226. _ACEOF
  11227. if ac_fn_c_try_link "$LINENO"; then :
  11228. ac_cv_lib_roxml_roxml_close=yes
  11229. else
  11230. ac_cv_lib_roxml_roxml_close=no
  11231. fi
  11232. rm -f core conftest.err conftest.$ac_objext \
  11233. conftest$ac_exeext conftest.$ac_ext
  11234. LIBS=$ac_check_lib_save_LIBS
  11235. fi
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roxml_roxml_close" >&5
  11237. $as_echo "$ac_cv_lib_roxml_roxml_close" >&6; }
  11238. if test "x$ac_cv_lib_roxml_roxml_close" = xyes; then :
  11239. roxml_lib_found=yes
  11240. else
  11241. roxml_lib_found=no
  11242. fi
  11243. LDFLAGS=$roxml_LDFLAGS
  11244. if test "x$roxml_lib_found" = "xno"; then
  11245. if test "$xml_backend" = "auto"; then
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find roxml library" >&5
  11247. $as_echo "$as_me: WARNING: cannot find roxml library" >&2;}
  11248. else
  11249. as_fn_error $? "cannot find roxml library" "$LINENO" 5
  11250. fi
  11251. fi
  11252. XML_LDFLAGS="-L${use_roxml}"
  11253. XML_LIBS="-lroxml"
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: library libroxml found in ${use_roxml}" >&5
  11255. $as_echo "$as_me: library libroxml found in ${use_roxml}" >&6;}
  11256. else
  11257. XML_LDFLAGS="-L${use_roxml}/lib"
  11258. XML_LIBS="-lroxml"
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: library libroxml found in ${use_roxml}/lib" >&5
  11260. $as_echo "$as_me: library libroxml found in ${use_roxml}/lib" >&6;}
  11261. fi
  11262. $as_echo "#define HAVE_LIB_ROXML /**/" >>confdefs.h
  11263. xml_backend="found"
  11264. found_xml_backend="roxml"
  11265. ;;
  11266. esac
  11267. else
  11268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libroxml support" >&5
  11269. $as_echo_n "checking for libroxml support... " >&6; }
  11270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11271. $as_echo "no" >&6; }
  11272. fi
  11273. if test "$xml_backend" = "libxml2" -o "$xml_backend" = "auto"; then
  11274. if test "$xml_backend" = "auto"; then
  11275. # on auto select, we try to detect the library
  11276. use_libxml2="yes"
  11277. fi
  11278. case x$use_libxml2 in
  11279. xyes)
  11280. # I would love to avoid using pkg-config (which may not be available on
  11281. # some compilation environment) but doing so really add a lot of
  11282. # complexity to the system, as the headers don't lie in a standard
  11283. # directory (they lie in a subdirectory of a standard include directory;
  11284. # not the same thing for configure scripts).
  11285. XML_CFLAGS="`pkg-config libxml-2.0 --cflags`"
  11286. XML_LDFLAGS="`pkg-config libxml-2.0 --libs-only-L`"
  11287. XML_LIBS="`pkg-config libxml-2.0 --libs-only-l`"
  11288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDoc in -lxml2" >&5
  11289. $as_echo_n "checking for xmlNewDoc in -lxml2... " >&6; }
  11290. if ${ac_cv_lib_xml2_xmlNewDoc+:} false; then :
  11291. $as_echo_n "(cached) " >&6
  11292. else
  11293. ac_check_lib_save_LIBS=$LIBS
  11294. LIBS="-lxml2 -lz $LIBS"
  11295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11296. /* end confdefs.h. */
  11297. /* Override any GCC internal prototype to avoid an error.
  11298. Use char because int might match the return type of a GCC
  11299. builtin and then its argument prototype would still apply. */
  11300. #ifdef __cplusplus
  11301. extern "C"
  11302. #endif
  11303. char xmlNewDoc ();
  11304. int
  11305. main ()
  11306. {
  11307. return xmlNewDoc ();
  11308. ;
  11309. return 0;
  11310. }
  11311. _ACEOF
  11312. if ac_fn_c_try_link "$LINENO"; then :
  11313. ac_cv_lib_xml2_xmlNewDoc=yes
  11314. else
  11315. ac_cv_lib_xml2_xmlNewDoc=no
  11316. fi
  11317. rm -f core conftest.err conftest.$ac_objext \
  11318. conftest$ac_exeext conftest.$ac_ext
  11319. LIBS=$ac_check_lib_save_LIBS
  11320. fi
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDoc" >&5
  11322. $as_echo "$ac_cv_lib_xml2_xmlNewDoc" >&6; }
  11323. if test "x$ac_cv_lib_xml2_xmlNewDoc" = xyes; then :
  11324. libxml2_lib_found=yes
  11325. else
  11326. libxml2_lib_found=no
  11327. fi
  11328. if test "x$libxml2_lib_found" != "xyes"; then
  11329. if test "$xml_backend" = "auto"; then
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find libxml2 library" >&5
  11331. $as_echo "$as_me: WARNING: cannot find libxml2 library" >&2;}
  11332. else
  11333. as_fn_error $? "cannot find libxml2 library" "$LINENO" 5
  11334. fi
  11335. fi
  11336. # the header file is installed in a subdirectory of one of the standard
  11337. # include directory. This might prove to be a problem if the cross-
  11338. # compile environment is not complete enough (i.e. if it misses
  11339. # pkg-config, or if pkg-config returns wrong values). In most cases, the
  11340. # environment is likely to be OK so we will never hit any issue.
  11341. xml2_CFLAGS="$CFLAGS"
  11342. CFLAGS="$CFLAGS $XML_CFLAGS"
  11343. ac_fn_c_check_header_compile "$LINENO" "libxml/tree.h" "ac_cv_header_libxml_tree_h" "/* force include check */
  11344. "
  11345. if test "x$ac_cv_header_libxml_tree_h" = xyes; then :
  11346. libxml2_h_found=yes
  11347. else
  11348. libxml2_h_found=no
  11349. fi
  11350. CFLAGS="$xml2_CFLAGS"
  11351. if test "x$libxml2_h_found" != "xyes"; then
  11352. if test "$xml_backend" = "auto"; then
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find libxml2 headers" >&5
  11354. $as_echo "$as_me: WARNING: cannot find libxml2 headers" >&2;}
  11355. else
  11356. as_fn_error $? "cannot find libxml2 headers" "$LINENO" 5
  11357. fi
  11358. fi
  11359. $as_echo "#define HAVE_LIB_LIBXML2 /**/" >>confdefs.h
  11360. xml_backend="found"
  11361. found_xml_backend="libxml2"
  11362. ;;
  11363. *)
  11364. # this is probably broken. We consider that the user supplied path is
  11365. # a non-standard path. But we're not going to check anything.
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libxml2=DIR is probably broken, just trying" >&5
  11367. $as_echo "$as_me: WARNING: --with-libxml2=DIR is probably broken, just trying" >&2;}
  11368. XML_LDFLAGS="-L${use_libxml2}/include/libxml2"
  11369. XML_CFLAGS="-I${use_libxml2}/lib"
  11370. XML_LIBS="-lxml2"
  11371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
  11372. $as_echo_n "checking for libxml2 support... " >&6; }
  11373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11374. $as_echo "yes" >&6; }
  11375. { $as_echo "$as_me:${as_lineno-$LINENO}: headers for libxml2 hopefully in ${use_libxml2}/include/libxml2" >&5
  11376. $as_echo "$as_me: headers for libxml2 hopefully in ${use_libxml2}/include/libxml2" >&6;}
  11377. { $as_echo "$as_me:${as_lineno-$LINENO}: library libxml2 hopefully in ${use_libxml2}/lib" >&5
  11378. $as_echo "$as_me: library libxml2 hopefully in ${use_libxml2}/lib" >&6;}
  11379. $as_echo "#define HAVE_LIB_LIBXML2 /**/" >>confdefs.h
  11380. xml_backend="found"
  11381. found_xml_backend="libxml2"
  11382. ;;
  11383. esac
  11384. else
  11385. # not selected? We print a small message
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2 support" >&5
  11387. $as_echo_n "checking for libxml2 support... " >&6; }
  11388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11389. $as_echo "no" >&6; }
  11390. fi
  11391. if test "$xml_backend" != "found"; then
  11392. as_fn_error $? "Failed to find a suitable XML backend" "$LINENO" 5
  11393. fi
  11394. if test $count_xml_backends -eq 0; then
  11395. { $as_echo "$as_me:${as_lineno-$LINENO}: I found a suitable XML backend: $found_xml_backend" >&5
  11396. $as_echo "$as_me: I found a suitable XML backend: $found_xml_backend" >&6;}
  11397. fi
  11398. ################################
  11399. # Check for the LUB library
  11400. ################################
  11401. LUB_LIBS="-llub"
  11402. LUB_CFLAGS=""
  11403. if test "x$LUB_LIBS" = "x"; then
  11404. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  11405. fi
  11406. ################################
  11407. # Check for the KONF library
  11408. ################################
  11409. KONF_LIBS="-lkonf"
  11410. KONF_CFLAGS=""
  11411. if test "x$KONF_LIBS" = "x"; then
  11412. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  11413. fi
  11414. ################################
  11415. # Check for the TINYRL library
  11416. ################################
  11417. TINYRL_LIBS="-ltinyrl"
  11418. TINYRL_CFLAGS=""
  11419. if test "x$TINYRL_LIBS" = "x"; then
  11420. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  11421. fi
  11422. ################################
  11423. # Search for network functions (like connect())
  11424. ################################
  11425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  11426. $as_echo_n "checking for library containing socket... " >&6; }
  11427. if ${ac_cv_search_socket+:} false; then :
  11428. $as_echo_n "(cached) " >&6
  11429. else
  11430. ac_func_search_save_LIBS=$LIBS
  11431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11432. /* end confdefs.h. */
  11433. /* Override any GCC internal prototype to avoid an error.
  11434. Use char because int might match the return type of a GCC
  11435. builtin and then its argument prototype would still apply. */
  11436. #ifdef __cplusplus
  11437. extern "C"
  11438. #endif
  11439. char socket ();
  11440. int
  11441. main ()
  11442. {
  11443. return socket ();
  11444. ;
  11445. return 0;
  11446. }
  11447. _ACEOF
  11448. for ac_lib in '' socket; do
  11449. if test -z "$ac_lib"; then
  11450. ac_res="none required"
  11451. else
  11452. ac_res=-l$ac_lib
  11453. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11454. fi
  11455. if ac_fn_c_try_link "$LINENO"; then :
  11456. ac_cv_search_socket=$ac_res
  11457. fi
  11458. rm -f core conftest.err conftest.$ac_objext \
  11459. conftest$ac_exeext
  11460. if ${ac_cv_search_socket+:} false; then :
  11461. break
  11462. fi
  11463. done
  11464. if ${ac_cv_search_socket+:} false; then :
  11465. else
  11466. ac_cv_search_socket=no
  11467. fi
  11468. rm conftest.$ac_ext
  11469. LIBS=$ac_func_search_save_LIBS
  11470. fi
  11471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  11472. $as_echo "$ac_cv_search_socket" >&6; }
  11473. ac_res=$ac_cv_search_socket
  11474. if test "$ac_res" != no; then :
  11475. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11476. fi
  11477. ################################
  11478. # Check for regex.h
  11479. ################################
  11480. for ac_header in regex.h
  11481. do :
  11482. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  11483. if test "x$ac_cv_header_regex_h" = xyes; then :
  11484. cat >>confdefs.h <<_ACEOF
  11485. #define HAVE_REGEX_H 1
  11486. _ACEOF
  11487. else
  11488. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  11489. fi
  11490. done
  11491. ################################
  11492. # Check for getopt_long()
  11493. ################################
  11494. for ac_header in getopt.h
  11495. do :
  11496. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  11497. if test "x$ac_cv_header_getopt_h" = xyes; then :
  11498. cat >>confdefs.h <<_ACEOF
  11499. #define HAVE_GETOPT_H 1
  11500. _ACEOF
  11501. else
  11502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  11503. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  11504. fi
  11505. done
  11506. ################################
  11507. # Check for locale.h
  11508. ################################
  11509. for ac_header in locale.h
  11510. do :
  11511. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  11512. if test "x$ac_cv_header_locale_h" = xyes; then :
  11513. cat >>confdefs.h <<_ACEOF
  11514. #define HAVE_LOCALE_H 1
  11515. _ACEOF
  11516. else
  11517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  11518. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  11519. fi
  11520. done
  11521. ################################
  11522. # Check for CODESET within nl_langinfo
  11523. ################################
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11525. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11526. if ${am_cv_langinfo_codeset+:} false; then :
  11527. $as_echo_n "(cached) " >&6
  11528. else
  11529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11530. /* end confdefs.h. */
  11531. #include <langinfo.h>
  11532. int
  11533. main ()
  11534. {
  11535. char* cs = nl_langinfo(CODESET); return !cs;
  11536. ;
  11537. return 0;
  11538. }
  11539. _ACEOF
  11540. if ac_fn_c_try_link "$LINENO"; then :
  11541. am_cv_langinfo_codeset=yes
  11542. else
  11543. am_cv_langinfo_codeset=no
  11544. fi
  11545. rm -f core conftest.err conftest.$ac_objext \
  11546. conftest$ac_exeext conftest.$ac_ext
  11547. fi
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11549. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11550. if test $am_cv_langinfo_codeset = yes; then
  11551. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11552. fi
  11553. ################################
  11554. # Check for pwd.h and grp.h
  11555. ################################
  11556. for ac_header in pwd.h
  11557. do :
  11558. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  11559. if test "x$ac_cv_header_pwd_h" = xyes; then :
  11560. cat >>confdefs.h <<_ACEOF
  11561. #define HAVE_PWD_H 1
  11562. _ACEOF
  11563. else
  11564. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  11565. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  11566. fi
  11567. done
  11568. for ac_header in grp.h
  11569. do :
  11570. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  11571. if test "x$ac_cv_header_grp_h" = xyes; then :
  11572. cat >>confdefs.h <<_ACEOF
  11573. #define HAVE_GRP_H 1
  11574. _ACEOF
  11575. else
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  11577. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  11578. fi
  11579. done
  11580. ################################
  11581. # Check for chroot
  11582. ################################
  11583. for ac_func in chroot
  11584. do :
  11585. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  11586. if test "x$ac_cv_func_chroot" = xyes; then :
  11587. cat >>confdefs.h <<_ACEOF
  11588. #define HAVE_CHROOT 1
  11589. _ACEOF
  11590. else
  11591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  11592. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  11593. fi
  11594. done
  11595. ac_config_files="$ac_config_files Makefile"
  11596. cat >confcache <<\_ACEOF
  11597. # This file is a shell script that caches the results of configure
  11598. # tests run on this system so they can be shared between configure
  11599. # scripts and configure runs, see configure's option --config-cache.
  11600. # It is not useful on other systems. If it contains results you don't
  11601. # want to keep, you may remove or edit it.
  11602. #
  11603. # config.status only pays attention to the cache file if you give it
  11604. # the --recheck option to rerun configure.
  11605. #
  11606. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11607. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11608. # following values.
  11609. _ACEOF
  11610. # The following way of writing the cache mishandles newlines in values,
  11611. # but we know of no workaround that is simple, portable, and efficient.
  11612. # So, we kill variables containing newlines.
  11613. # Ultrix sh set writes to stderr and can't be redirected directly,
  11614. # and sets the high bit in the cache file unless we assign to the vars.
  11615. (
  11616. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11617. eval ac_val=\$$ac_var
  11618. case $ac_val in #(
  11619. *${as_nl}*)
  11620. case $ac_var in #(
  11621. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11622. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11623. esac
  11624. case $ac_var in #(
  11625. _ | IFS | as_nl) ;; #(
  11626. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11627. *) { eval $ac_var=; unset $ac_var;} ;;
  11628. esac ;;
  11629. esac
  11630. done
  11631. (set) 2>&1 |
  11632. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11633. *${as_nl}ac_space=\ *)
  11634. # `set' does not quote correctly, so add quotes: double-quote
  11635. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11636. sed -n \
  11637. "s/'/'\\\\''/g;
  11638. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11639. ;; #(
  11640. *)
  11641. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11642. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11643. ;;
  11644. esac |
  11645. sort
  11646. ) |
  11647. sed '
  11648. /^ac_cv_env_/b end
  11649. t clear
  11650. :clear
  11651. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11652. t end
  11653. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11654. :end' >>confcache
  11655. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11656. if test -w "$cache_file"; then
  11657. if test "x$cache_file" != "x/dev/null"; then
  11658. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11659. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11660. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11661. cat confcache >"$cache_file"
  11662. else
  11663. case $cache_file in #(
  11664. */* | ?:*)
  11665. mv -f confcache "$cache_file"$$ &&
  11666. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11667. *)
  11668. mv -f confcache "$cache_file" ;;
  11669. esac
  11670. fi
  11671. fi
  11672. else
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11674. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11675. fi
  11676. fi
  11677. rm -f confcache
  11678. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11679. # Let make expand exec_prefix.
  11680. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11681. DEFS=-DHAVE_CONFIG_H
  11682. ac_libobjs=
  11683. ac_ltlibobjs=
  11684. U=
  11685. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11686. # 1. Remove the extension, and $U if already installed.
  11687. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11688. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11689. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11690. # will be set to the directory where LIBOBJS objects are built.
  11691. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11692. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11693. done
  11694. LIBOBJS=$ac_libobjs
  11695. LTLIBOBJS=$ac_ltlibobjs
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11697. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11698. if test -n "$am_sleep_pid"; then
  11699. # Hide warnings about reused PIDs.
  11700. wait $am_sleep_pid 2>/dev/null
  11701. fi
  11702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11703. $as_echo "done" >&6; }
  11704. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11705. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11706. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11707. fi
  11708. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11709. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11710. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11711. fi
  11712. if test -n "$EXEEXT"; then
  11713. am__EXEEXT_TRUE=
  11714. am__EXEEXT_FALSE='#'
  11715. else
  11716. am__EXEEXT_TRUE='#'
  11717. am__EXEEXT_FALSE=
  11718. fi
  11719. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  11720. as_fn_error $? "conditional \"DEBUG\" was never defined.
  11721. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11722. fi
  11723. : "${CONFIG_STATUS=./config.status}"
  11724. ac_write_fail=0
  11725. ac_clean_files_save=$ac_clean_files
  11726. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11727. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11728. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11729. as_write_fail=0
  11730. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11731. #! $SHELL
  11732. # Generated by $as_me.
  11733. # Run this file to recreate the current configuration.
  11734. # Compiler output produced by configure, useful for debugging
  11735. # configure, is in config.log if it exists.
  11736. debug=false
  11737. ac_cs_recheck=false
  11738. ac_cs_silent=false
  11739. SHELL=\${CONFIG_SHELL-$SHELL}
  11740. export SHELL
  11741. _ASEOF
  11742. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11743. ## -------------------- ##
  11744. ## M4sh Initialization. ##
  11745. ## -------------------- ##
  11746. # Be more Bourne compatible
  11747. DUALCASE=1; export DUALCASE # for MKS sh
  11748. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11749. emulate sh
  11750. NULLCMD=:
  11751. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11752. # is contrary to our usage. Disable this feature.
  11753. alias -g '${1+"$@"}'='"$@"'
  11754. setopt NO_GLOB_SUBST
  11755. else
  11756. case `(set -o) 2>/dev/null` in #(
  11757. *posix*) :
  11758. set -o posix ;; #(
  11759. *) :
  11760. ;;
  11761. esac
  11762. fi
  11763. as_nl='
  11764. '
  11765. export as_nl
  11766. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11767. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11768. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11769. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11770. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11771. # but without wasting forks for bash or zsh.
  11772. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11773. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11774. as_echo='print -r --'
  11775. as_echo_n='print -rn --'
  11776. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11777. as_echo='printf %s\n'
  11778. as_echo_n='printf %s'
  11779. else
  11780. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11781. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11782. as_echo_n='/usr/ucb/echo -n'
  11783. else
  11784. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11785. as_echo_n_body='eval
  11786. arg=$1;
  11787. case $arg in #(
  11788. *"$as_nl"*)
  11789. expr "X$arg" : "X\\(.*\\)$as_nl";
  11790. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11791. esac;
  11792. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11793. '
  11794. export as_echo_n_body
  11795. as_echo_n='sh -c $as_echo_n_body as_echo'
  11796. fi
  11797. export as_echo_body
  11798. as_echo='sh -c $as_echo_body as_echo'
  11799. fi
  11800. # The user is always right.
  11801. if test "${PATH_SEPARATOR+set}" != set; then
  11802. PATH_SEPARATOR=:
  11803. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11804. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11805. PATH_SEPARATOR=';'
  11806. }
  11807. fi
  11808. # IFS
  11809. # We need space, tab and new line, in precisely that order. Quoting is
  11810. # there to prevent editors from complaining about space-tab.
  11811. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11812. # splitting by setting IFS to empty value.)
  11813. IFS=" "" $as_nl"
  11814. # Find who we are. Look in the path if we contain no directory separator.
  11815. as_myself=
  11816. case $0 in #((
  11817. *[\\/]* ) as_myself=$0 ;;
  11818. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11819. for as_dir in $PATH
  11820. do
  11821. IFS=$as_save_IFS
  11822. test -z "$as_dir" && as_dir=.
  11823. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11824. done
  11825. IFS=$as_save_IFS
  11826. ;;
  11827. esac
  11828. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11829. # in which case we are not to be found in the path.
  11830. if test "x$as_myself" = x; then
  11831. as_myself=$0
  11832. fi
  11833. if test ! -f "$as_myself"; then
  11834. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11835. exit 1
  11836. fi
  11837. # Unset variables that we do not need and which cause bugs (e.g. in
  11838. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11839. # suppresses any "Segmentation fault" message there. '((' could
  11840. # trigger a bug in pdksh 5.2.14.
  11841. for as_var in BASH_ENV ENV MAIL MAILPATH
  11842. do eval test x\${$as_var+set} = xset \
  11843. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11844. done
  11845. PS1='$ '
  11846. PS2='> '
  11847. PS4='+ '
  11848. # NLS nuisances.
  11849. LC_ALL=C
  11850. export LC_ALL
  11851. LANGUAGE=C
  11852. export LANGUAGE
  11853. # CDPATH.
  11854. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11855. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11856. # ----------------------------------------
  11857. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11858. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11859. # script with STATUS, using 1 if that was 0.
  11860. as_fn_error ()
  11861. {
  11862. as_status=$1; test $as_status -eq 0 && as_status=1
  11863. if test "$4"; then
  11864. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11865. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11866. fi
  11867. $as_echo "$as_me: error: $2" >&2
  11868. as_fn_exit $as_status
  11869. } # as_fn_error
  11870. # as_fn_set_status STATUS
  11871. # -----------------------
  11872. # Set $? to STATUS, without forking.
  11873. as_fn_set_status ()
  11874. {
  11875. return $1
  11876. } # as_fn_set_status
  11877. # as_fn_exit STATUS
  11878. # -----------------
  11879. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11880. as_fn_exit ()
  11881. {
  11882. set +e
  11883. as_fn_set_status $1
  11884. exit $1
  11885. } # as_fn_exit
  11886. # as_fn_unset VAR
  11887. # ---------------
  11888. # Portably unset VAR.
  11889. as_fn_unset ()
  11890. {
  11891. { eval $1=; unset $1;}
  11892. }
  11893. as_unset=as_fn_unset
  11894. # as_fn_append VAR VALUE
  11895. # ----------------------
  11896. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11897. # advantage of any shell optimizations that allow amortized linear growth over
  11898. # repeated appends, instead of the typical quadratic growth present in naive
  11899. # implementations.
  11900. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11901. eval 'as_fn_append ()
  11902. {
  11903. eval $1+=\$2
  11904. }'
  11905. else
  11906. as_fn_append ()
  11907. {
  11908. eval $1=\$$1\$2
  11909. }
  11910. fi # as_fn_append
  11911. # as_fn_arith ARG...
  11912. # ------------------
  11913. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11914. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11915. # must be portable across $(()) and expr.
  11916. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11917. eval 'as_fn_arith ()
  11918. {
  11919. as_val=$(( $* ))
  11920. }'
  11921. else
  11922. as_fn_arith ()
  11923. {
  11924. as_val=`expr "$@" || test $? -eq 1`
  11925. }
  11926. fi # as_fn_arith
  11927. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11928. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11929. as_expr=expr
  11930. else
  11931. as_expr=false
  11932. fi
  11933. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11934. as_basename=basename
  11935. else
  11936. as_basename=false
  11937. fi
  11938. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11939. as_dirname=dirname
  11940. else
  11941. as_dirname=false
  11942. fi
  11943. as_me=`$as_basename -- "$0" ||
  11944. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11945. X"$0" : 'X\(//\)$' \| \
  11946. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11947. $as_echo X/"$0" |
  11948. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11949. s//\1/
  11950. q
  11951. }
  11952. /^X\/\(\/\/\)$/{
  11953. s//\1/
  11954. q
  11955. }
  11956. /^X\/\(\/\).*/{
  11957. s//\1/
  11958. q
  11959. }
  11960. s/.*/./; q'`
  11961. # Avoid depending upon Character Ranges.
  11962. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11963. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11964. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11965. as_cr_digits='0123456789'
  11966. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11967. ECHO_C= ECHO_N= ECHO_T=
  11968. case `echo -n x` in #(((((
  11969. -n*)
  11970. case `echo 'xy\c'` in
  11971. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11972. xy) ECHO_C='\c';;
  11973. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11974. ECHO_T=' ';;
  11975. esac;;
  11976. *)
  11977. ECHO_N='-n';;
  11978. esac
  11979. rm -f conf$$ conf$$.exe conf$$.file
  11980. if test -d conf$$.dir; then
  11981. rm -f conf$$.dir/conf$$.file
  11982. else
  11983. rm -f conf$$.dir
  11984. mkdir conf$$.dir 2>/dev/null
  11985. fi
  11986. if (echo >conf$$.file) 2>/dev/null; then
  11987. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11988. as_ln_s='ln -s'
  11989. # ... but there are two gotchas:
  11990. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11991. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11992. # In both cases, we have to default to `cp -pR'.
  11993. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11994. as_ln_s='cp -pR'
  11995. elif ln conf$$.file conf$$ 2>/dev/null; then
  11996. as_ln_s=ln
  11997. else
  11998. as_ln_s='cp -pR'
  11999. fi
  12000. else
  12001. as_ln_s='cp -pR'
  12002. fi
  12003. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12004. rmdir conf$$.dir 2>/dev/null
  12005. # as_fn_mkdir_p
  12006. # -------------
  12007. # Create "$as_dir" as a directory, including parents if necessary.
  12008. as_fn_mkdir_p ()
  12009. {
  12010. case $as_dir in #(
  12011. -*) as_dir=./$as_dir;;
  12012. esac
  12013. test -d "$as_dir" || eval $as_mkdir_p || {
  12014. as_dirs=
  12015. while :; do
  12016. case $as_dir in #(
  12017. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12018. *) as_qdir=$as_dir;;
  12019. esac
  12020. as_dirs="'$as_qdir' $as_dirs"
  12021. as_dir=`$as_dirname -- "$as_dir" ||
  12022. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12023. X"$as_dir" : 'X\(//\)[^/]' \| \
  12024. X"$as_dir" : 'X\(//\)$' \| \
  12025. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12026. $as_echo X"$as_dir" |
  12027. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12028. s//\1/
  12029. q
  12030. }
  12031. /^X\(\/\/\)[^/].*/{
  12032. s//\1/
  12033. q
  12034. }
  12035. /^X\(\/\/\)$/{
  12036. s//\1/
  12037. q
  12038. }
  12039. /^X\(\/\).*/{
  12040. s//\1/
  12041. q
  12042. }
  12043. s/.*/./; q'`
  12044. test -d "$as_dir" && break
  12045. done
  12046. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12047. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12048. } # as_fn_mkdir_p
  12049. if mkdir -p . 2>/dev/null; then
  12050. as_mkdir_p='mkdir -p "$as_dir"'
  12051. else
  12052. test -d ./-p && rmdir ./-p
  12053. as_mkdir_p=false
  12054. fi
  12055. # as_fn_executable_p FILE
  12056. # -----------------------
  12057. # Test if FILE is an executable regular file.
  12058. as_fn_executable_p ()
  12059. {
  12060. test -f "$1" && test -x "$1"
  12061. } # as_fn_executable_p
  12062. as_test_x='test -x'
  12063. as_executable_p=as_fn_executable_p
  12064. # Sed expression to map a string onto a valid CPP name.
  12065. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12066. # Sed expression to map a string onto a valid variable name.
  12067. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12068. exec 6>&1
  12069. ## ----------------------------------- ##
  12070. ## Main body of $CONFIG_STATUS script. ##
  12071. ## ----------------------------------- ##
  12072. _ASEOF
  12073. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12074. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12075. # Save the log message, to keep $0 and so on meaningful, and to
  12076. # report actual input values of CONFIG_FILES etc. instead of their
  12077. # values after options handling.
  12078. ac_log="
  12079. This file was extended by klish $as_me 1.6.0, which was
  12080. generated by GNU Autoconf 2.69. Invocation command line was
  12081. CONFIG_FILES = $CONFIG_FILES
  12082. CONFIG_HEADERS = $CONFIG_HEADERS
  12083. CONFIG_LINKS = $CONFIG_LINKS
  12084. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12085. $ $0 $@
  12086. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12087. "
  12088. _ACEOF
  12089. case $ac_config_files in *"
  12090. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12091. esac
  12092. case $ac_config_headers in *"
  12093. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12094. esac
  12095. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12096. # Files that config.status was made for.
  12097. config_files="$ac_config_files"
  12098. config_headers="$ac_config_headers"
  12099. config_commands="$ac_config_commands"
  12100. _ACEOF
  12101. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12102. ac_cs_usage="\
  12103. \`$as_me' instantiates files and other configuration actions
  12104. from templates according to the current configuration. Unless the files
  12105. and actions are specified as TAGs, all are instantiated by default.
  12106. Usage: $0 [OPTION]... [TAG]...
  12107. -h, --help print this help, then exit
  12108. -V, --version print version number and configuration settings, then exit
  12109. --config print configuration, then exit
  12110. -q, --quiet, --silent
  12111. do not print progress messages
  12112. -d, --debug don't remove temporary files
  12113. --recheck update $as_me by reconfiguring in the same conditions
  12114. --file=FILE[:TEMPLATE]
  12115. instantiate the configuration file FILE
  12116. --header=FILE[:TEMPLATE]
  12117. instantiate the configuration header FILE
  12118. Configuration files:
  12119. $config_files
  12120. Configuration headers:
  12121. $config_headers
  12122. Configuration commands:
  12123. $config_commands
  12124. Report bugs to <serj.kalichev at gmail dot com>."
  12125. _ACEOF
  12126. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12127. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12128. ac_cs_version="\\
  12129. klish config.status 1.6.0
  12130. configured by $0, generated by GNU Autoconf 2.69,
  12131. with options \\"\$ac_cs_config\\"
  12132. Copyright (C) 2012 Free Software Foundation, Inc.
  12133. This config.status script is free software; the Free Software Foundation
  12134. gives unlimited permission to copy, distribute and modify it."
  12135. ac_pwd='$ac_pwd'
  12136. srcdir='$srcdir'
  12137. INSTALL='$INSTALL'
  12138. MKDIR_P='$MKDIR_P'
  12139. AWK='$AWK'
  12140. test -n "\$AWK" || AWK=awk
  12141. _ACEOF
  12142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12143. # The default lists apply if the user does not specify any file.
  12144. ac_need_defaults=:
  12145. while test $# != 0
  12146. do
  12147. case $1 in
  12148. --*=?*)
  12149. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12150. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12151. ac_shift=:
  12152. ;;
  12153. --*=)
  12154. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12155. ac_optarg=
  12156. ac_shift=:
  12157. ;;
  12158. *)
  12159. ac_option=$1
  12160. ac_optarg=$2
  12161. ac_shift=shift
  12162. ;;
  12163. esac
  12164. case $ac_option in
  12165. # Handling of the options.
  12166. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12167. ac_cs_recheck=: ;;
  12168. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12169. $as_echo "$ac_cs_version"; exit ;;
  12170. --config | --confi | --conf | --con | --co | --c )
  12171. $as_echo "$ac_cs_config"; exit ;;
  12172. --debug | --debu | --deb | --de | --d | -d )
  12173. debug=: ;;
  12174. --file | --fil | --fi | --f )
  12175. $ac_shift
  12176. case $ac_optarg in
  12177. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12178. '') as_fn_error $? "missing file argument" ;;
  12179. esac
  12180. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12181. ac_need_defaults=false;;
  12182. --header | --heade | --head | --hea )
  12183. $ac_shift
  12184. case $ac_optarg in
  12185. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12186. esac
  12187. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12188. ac_need_defaults=false;;
  12189. --he | --h)
  12190. # Conflict between --help and --header
  12191. as_fn_error $? "ambiguous option: \`$1'
  12192. Try \`$0 --help' for more information.";;
  12193. --help | --hel | -h )
  12194. $as_echo "$ac_cs_usage"; exit ;;
  12195. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12196. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12197. ac_cs_silent=: ;;
  12198. # This is an error.
  12199. -*) as_fn_error $? "unrecognized option: \`$1'
  12200. Try \`$0 --help' for more information." ;;
  12201. *) as_fn_append ac_config_targets " $1"
  12202. ac_need_defaults=false ;;
  12203. esac
  12204. shift
  12205. done
  12206. ac_configure_extra_args=
  12207. if $ac_cs_silent; then
  12208. exec 6>/dev/null
  12209. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12210. fi
  12211. _ACEOF
  12212. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12213. if \$ac_cs_recheck; then
  12214. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12215. shift
  12216. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12217. CONFIG_SHELL='$SHELL'
  12218. export CONFIG_SHELL
  12219. exec "\$@"
  12220. fi
  12221. _ACEOF
  12222. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12223. exec 5>>config.log
  12224. {
  12225. echo
  12226. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12227. ## Running $as_me. ##
  12228. _ASBOX
  12229. $as_echo "$ac_log"
  12230. } >&5
  12231. _ACEOF
  12232. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12233. #
  12234. # INIT-COMMANDS
  12235. #
  12236. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12237. # if CDPATH is set.
  12238. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12239. sed_quote_subst='$sed_quote_subst'
  12240. double_quote_subst='$double_quote_subst'
  12241. delay_variable_subst='$delay_variable_subst'
  12242. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  12243. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12244. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12245. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12246. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12247. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12248. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12249. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12250. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12251. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12252. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12253. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12254. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12255. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12256. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12257. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12258. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12259. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12260. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12261. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12262. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12263. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12264. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12265. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12266. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12267. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12268. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12269. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12270. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12271. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12272. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12273. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12274. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12275. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12276. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12277. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12278. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12279. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12280. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12281. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12282. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12283. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12284. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12285. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12286. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12287. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12288. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12289. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12290. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12291. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12292. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12293. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12294. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12295. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12296. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12297. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12298. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12299. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12300. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12301. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12302. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12303. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12304. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12305. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12306. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12307. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12308. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12309. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12310. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12311. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12312. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12313. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12314. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12315. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12316. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12317. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12318. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12319. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12320. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12321. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12322. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12323. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12324. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12325. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12326. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12327. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12328. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12329. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12330. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12331. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12332. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12333. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12334. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12335. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12336. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12337. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12338. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12339. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12340. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12341. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12342. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12343. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12344. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12345. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12346. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12347. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12348. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12349. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12350. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12351. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12352. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12353. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12354. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12355. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12356. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12357. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12358. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12359. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12360. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12361. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12362. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12363. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12364. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12365. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12366. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12367. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12368. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12369. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12370. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12371. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12372. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12373. LTCC='$LTCC'
  12374. LTCFLAGS='$LTCFLAGS'
  12375. compiler='$compiler_DEFAULT'
  12376. # A function that is used when there is no print builtin or printf.
  12377. func_fallback_echo ()
  12378. {
  12379. eval 'cat <<_LTECHO_EOF
  12380. \$1
  12381. _LTECHO_EOF'
  12382. }
  12383. # Quote evaled strings.
  12384. for var in AS \
  12385. DLLTOOL \
  12386. OBJDUMP \
  12387. SHELL \
  12388. ECHO \
  12389. PATH_SEPARATOR \
  12390. SED \
  12391. GREP \
  12392. EGREP \
  12393. FGREP \
  12394. LD \
  12395. NM \
  12396. LN_S \
  12397. lt_SP2NL \
  12398. lt_NL2SP \
  12399. reload_flag \
  12400. deplibs_check_method \
  12401. file_magic_cmd \
  12402. file_magic_glob \
  12403. want_nocaseglob \
  12404. sharedlib_from_linklib_cmd \
  12405. AR \
  12406. AR_FLAGS \
  12407. archiver_list_spec \
  12408. STRIP \
  12409. RANLIB \
  12410. CC \
  12411. CFLAGS \
  12412. compiler \
  12413. lt_cv_sys_global_symbol_pipe \
  12414. lt_cv_sys_global_symbol_to_cdecl \
  12415. lt_cv_sys_global_symbol_to_c_name_address \
  12416. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12417. nm_file_list_spec \
  12418. lt_prog_compiler_no_builtin_flag \
  12419. lt_prog_compiler_pic \
  12420. lt_prog_compiler_wl \
  12421. lt_prog_compiler_static \
  12422. lt_cv_prog_compiler_c_o \
  12423. need_locks \
  12424. MANIFEST_TOOL \
  12425. DSYMUTIL \
  12426. NMEDIT \
  12427. LIPO \
  12428. OTOOL \
  12429. OTOOL64 \
  12430. shrext_cmds \
  12431. export_dynamic_flag_spec \
  12432. whole_archive_flag_spec \
  12433. compiler_needs_object \
  12434. with_gnu_ld \
  12435. allow_undefined_flag \
  12436. no_undefined_flag \
  12437. hardcode_libdir_flag_spec \
  12438. hardcode_libdir_separator \
  12439. exclude_expsyms \
  12440. include_expsyms \
  12441. file_list_spec \
  12442. variables_saved_for_relink \
  12443. libname_spec \
  12444. library_names_spec \
  12445. soname_spec \
  12446. install_override_mode \
  12447. finish_eval \
  12448. old_striplib \
  12449. striplib; do
  12450. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12451. *[\\\\\\\`\\"\\\$]*)
  12452. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12453. ;;
  12454. *)
  12455. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12456. ;;
  12457. esac
  12458. done
  12459. # Double-quote double-evaled strings.
  12460. for var in reload_cmds \
  12461. old_postinstall_cmds \
  12462. old_postuninstall_cmds \
  12463. old_archive_cmds \
  12464. extract_expsyms_cmds \
  12465. old_archive_from_new_cmds \
  12466. old_archive_from_expsyms_cmds \
  12467. archive_cmds \
  12468. archive_expsym_cmds \
  12469. module_cmds \
  12470. module_expsym_cmds \
  12471. export_symbols_cmds \
  12472. prelink_cmds \
  12473. postlink_cmds \
  12474. postinstall_cmds \
  12475. postuninstall_cmds \
  12476. finish_cmds \
  12477. sys_lib_search_path_spec \
  12478. sys_lib_dlsearch_path_spec; do
  12479. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12480. *[\\\\\\\`\\"\\\$]*)
  12481. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12482. ;;
  12483. *)
  12484. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12485. ;;
  12486. esac
  12487. done
  12488. ac_aux_dir='$ac_aux_dir'
  12489. xsi_shell='$xsi_shell'
  12490. lt_shell_append='$lt_shell_append'
  12491. # See if we are running on zsh, and set the options which allow our
  12492. # commands through without removal of \ escapes INIT.
  12493. if test -n "\${ZSH_VERSION+set}" ; then
  12494. setopt NO_GLOB_SUBST
  12495. fi
  12496. PACKAGE='$PACKAGE'
  12497. VERSION='$VERSION'
  12498. TIMESTAMP='$TIMESTAMP'
  12499. RM='$RM'
  12500. ofile='$ofile'
  12501. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12502. _ACEOF
  12503. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12504. # Handling of arguments.
  12505. for ac_config_target in $ac_config_targets
  12506. do
  12507. case $ac_config_target in
  12508. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12509. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12510. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12511. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12512. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12513. esac
  12514. done
  12515. # If the user did not use the arguments to specify the items to instantiate,
  12516. # then the envvar interface is used. Set only those that are not.
  12517. # We use the long form for the default assignment because of an extremely
  12518. # bizarre bug on SunOS 4.1.3.
  12519. if $ac_need_defaults; then
  12520. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12521. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12522. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12523. fi
  12524. # Have a temporary directory for convenience. Make it in the build tree
  12525. # simply because there is no reason against having it here, and in addition,
  12526. # creating and moving files from /tmp can sometimes cause problems.
  12527. # Hook for its removal unless debugging.
  12528. # Note that there is a small window in which the directory will not be cleaned:
  12529. # after its creation but before its name has been assigned to `$tmp'.
  12530. $debug ||
  12531. {
  12532. tmp= ac_tmp=
  12533. trap 'exit_status=$?
  12534. : "${ac_tmp:=$tmp}"
  12535. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12536. ' 0
  12537. trap 'as_fn_exit 1' 1 2 13 15
  12538. }
  12539. # Create a (secure) tmp directory for tmp files.
  12540. {
  12541. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12542. test -d "$tmp"
  12543. } ||
  12544. {
  12545. tmp=./conf$$-$RANDOM
  12546. (umask 077 && mkdir "$tmp")
  12547. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12548. ac_tmp=$tmp
  12549. # Set up the scripts for CONFIG_FILES section.
  12550. # No need to generate them if there are no CONFIG_FILES.
  12551. # This happens for instance with `./config.status config.h'.
  12552. if test -n "$CONFIG_FILES"; then
  12553. ac_cr=`echo X | tr X '\015'`
  12554. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12555. # But we know of no other shell where ac_cr would be empty at this
  12556. # point, so we can use a bashism as a fallback.
  12557. if test "x$ac_cr" = x; then
  12558. eval ac_cr=\$\'\\r\'
  12559. fi
  12560. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12561. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12562. ac_cs_awk_cr='\\r'
  12563. else
  12564. ac_cs_awk_cr=$ac_cr
  12565. fi
  12566. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12567. _ACEOF
  12568. {
  12569. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12570. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12571. echo "_ACEOF"
  12572. } >conf$$subs.sh ||
  12573. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12574. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12575. ac_delim='%!_!# '
  12576. for ac_last_try in false false false false false :; do
  12577. . ./conf$$subs.sh ||
  12578. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12579. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12580. if test $ac_delim_n = $ac_delim_num; then
  12581. break
  12582. elif $ac_last_try; then
  12583. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12584. else
  12585. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12586. fi
  12587. done
  12588. rm -f conf$$subs.sh
  12589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12590. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12591. _ACEOF
  12592. sed -n '
  12593. h
  12594. s/^/S["/; s/!.*/"]=/
  12595. p
  12596. g
  12597. s/^[^!]*!//
  12598. :repl
  12599. t repl
  12600. s/'"$ac_delim"'$//
  12601. t delim
  12602. :nl
  12603. h
  12604. s/\(.\{148\}\)..*/\1/
  12605. t more1
  12606. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12607. p
  12608. n
  12609. b repl
  12610. :more1
  12611. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12612. p
  12613. g
  12614. s/.\{148\}//
  12615. t nl
  12616. :delim
  12617. h
  12618. s/\(.\{148\}\)..*/\1/
  12619. t more2
  12620. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12621. p
  12622. b
  12623. :more2
  12624. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12625. p
  12626. g
  12627. s/.\{148\}//
  12628. t delim
  12629. ' <conf$$subs.awk | sed '
  12630. /^[^""]/{
  12631. N
  12632. s/\n//
  12633. }
  12634. ' >>$CONFIG_STATUS || ac_write_fail=1
  12635. rm -f conf$$subs.awk
  12636. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12637. _ACAWK
  12638. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12639. for (key in S) S_is_set[key] = 1
  12640. FS = ""
  12641. }
  12642. {
  12643. line = $ 0
  12644. nfields = split(line, field, "@")
  12645. substed = 0
  12646. len = length(field[1])
  12647. for (i = 2; i < nfields; i++) {
  12648. key = field[i]
  12649. keylen = length(key)
  12650. if (S_is_set[key]) {
  12651. value = S[key]
  12652. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12653. len += length(value) + length(field[++i])
  12654. substed = 1
  12655. } else
  12656. len += 1 + keylen
  12657. }
  12658. print line
  12659. }
  12660. _ACAWK
  12661. _ACEOF
  12662. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12663. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12664. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12665. else
  12666. cat
  12667. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12668. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12669. _ACEOF
  12670. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12671. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12672. # trailing colons and then remove the whole line if VPATH becomes empty
  12673. # (actually we leave an empty line to preserve line numbers).
  12674. if test "x$srcdir" = x.; then
  12675. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12676. h
  12677. s///
  12678. s/^/:/
  12679. s/[ ]*$/:/
  12680. s/:\$(srcdir):/:/g
  12681. s/:\${srcdir}:/:/g
  12682. s/:@srcdir@:/:/g
  12683. s/^:*//
  12684. s/:*$//
  12685. x
  12686. s/\(=[ ]*\).*/\1/
  12687. G
  12688. s/\n//
  12689. s/^[^=]*=[ ]*$//
  12690. }'
  12691. fi
  12692. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12693. fi # test -n "$CONFIG_FILES"
  12694. # Set up the scripts for CONFIG_HEADERS section.
  12695. # No need to generate them if there are no CONFIG_HEADERS.
  12696. # This happens for instance with `./config.status Makefile'.
  12697. if test -n "$CONFIG_HEADERS"; then
  12698. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12699. BEGIN {
  12700. _ACEOF
  12701. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12702. # here-document in config.status, that substitutes the proper values into
  12703. # config.h.in to produce config.h.
  12704. # Create a delimiter string that does not exist in confdefs.h, to ease
  12705. # handling of long lines.
  12706. ac_delim='%!_!# '
  12707. for ac_last_try in false false :; do
  12708. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12709. if test -z "$ac_tt"; then
  12710. break
  12711. elif $ac_last_try; then
  12712. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12713. else
  12714. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12715. fi
  12716. done
  12717. # For the awk script, D is an array of macro values keyed by name,
  12718. # likewise P contains macro parameters if any. Preserve backslash
  12719. # newline sequences.
  12720. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12721. sed -n '
  12722. s/.\{148\}/&'"$ac_delim"'/g
  12723. t rset
  12724. :rset
  12725. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12726. t def
  12727. d
  12728. :def
  12729. s/\\$//
  12730. t bsnl
  12731. s/["\\]/\\&/g
  12732. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12733. D["\1"]=" \3"/p
  12734. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12735. d
  12736. :bsnl
  12737. s/["\\]/\\&/g
  12738. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12739. D["\1"]=" \3\\\\\\n"\\/p
  12740. t cont
  12741. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12742. t cont
  12743. d
  12744. :cont
  12745. n
  12746. s/.\{148\}/&'"$ac_delim"'/g
  12747. t clear
  12748. :clear
  12749. s/\\$//
  12750. t bsnlc
  12751. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12752. d
  12753. :bsnlc
  12754. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12755. b cont
  12756. ' <confdefs.h | sed '
  12757. s/'"$ac_delim"'/"\\\
  12758. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12759. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12760. for (key in D) D_is_set[key] = 1
  12761. FS = ""
  12762. }
  12763. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12764. line = \$ 0
  12765. split(line, arg, " ")
  12766. if (arg[1] == "#") {
  12767. defundef = arg[2]
  12768. mac1 = arg[3]
  12769. } else {
  12770. defundef = substr(arg[1], 2)
  12771. mac1 = arg[2]
  12772. }
  12773. split(mac1, mac2, "(") #)
  12774. macro = mac2[1]
  12775. prefix = substr(line, 1, index(line, defundef) - 1)
  12776. if (D_is_set[macro]) {
  12777. # Preserve the white space surrounding the "#".
  12778. print prefix "define", macro P[macro] D[macro]
  12779. next
  12780. } else {
  12781. # Replace #undef with comments. This is necessary, for example,
  12782. # in the case of _POSIX_SOURCE, which is predefined and required
  12783. # on some systems where configure will not decide to define it.
  12784. if (defundef == "undef") {
  12785. print "/*", prefix defundef, macro, "*/"
  12786. next
  12787. }
  12788. }
  12789. }
  12790. { print }
  12791. _ACAWK
  12792. _ACEOF
  12793. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12794. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12795. fi # test -n "$CONFIG_HEADERS"
  12796. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12797. shift
  12798. for ac_tag
  12799. do
  12800. case $ac_tag in
  12801. :[FHLC]) ac_mode=$ac_tag; continue;;
  12802. esac
  12803. case $ac_mode$ac_tag in
  12804. :[FHL]*:*);;
  12805. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12806. :[FH]-) ac_tag=-:-;;
  12807. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12808. esac
  12809. ac_save_IFS=$IFS
  12810. IFS=:
  12811. set x $ac_tag
  12812. IFS=$ac_save_IFS
  12813. shift
  12814. ac_file=$1
  12815. shift
  12816. case $ac_mode in
  12817. :L) ac_source=$1;;
  12818. :[FH])
  12819. ac_file_inputs=
  12820. for ac_f
  12821. do
  12822. case $ac_f in
  12823. -) ac_f="$ac_tmp/stdin";;
  12824. *) # Look for the file first in the build tree, then in the source tree
  12825. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12826. # because $ac_f cannot contain `:'.
  12827. test -f "$ac_f" ||
  12828. case $ac_f in
  12829. [\\/$]*) false;;
  12830. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12831. esac ||
  12832. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12833. esac
  12834. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12835. as_fn_append ac_file_inputs " '$ac_f'"
  12836. done
  12837. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12838. # use $as_me), people would be surprised to read:
  12839. # /* config.h. Generated by config.status. */
  12840. configure_input='Generated from '`
  12841. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12842. `' by configure.'
  12843. if test x"$ac_file" != x-; then
  12844. configure_input="$ac_file. $configure_input"
  12845. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12846. $as_echo "$as_me: creating $ac_file" >&6;}
  12847. fi
  12848. # Neutralize special characters interpreted by sed in replacement strings.
  12849. case $configure_input in #(
  12850. *\&* | *\|* | *\\* )
  12851. ac_sed_conf_input=`$as_echo "$configure_input" |
  12852. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12853. *) ac_sed_conf_input=$configure_input;;
  12854. esac
  12855. case $ac_tag in
  12856. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12857. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12858. esac
  12859. ;;
  12860. esac
  12861. ac_dir=`$as_dirname -- "$ac_file" ||
  12862. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12863. X"$ac_file" : 'X\(//\)[^/]' \| \
  12864. X"$ac_file" : 'X\(//\)$' \| \
  12865. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12866. $as_echo X"$ac_file" |
  12867. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12868. s//\1/
  12869. q
  12870. }
  12871. /^X\(\/\/\)[^/].*/{
  12872. s//\1/
  12873. q
  12874. }
  12875. /^X\(\/\/\)$/{
  12876. s//\1/
  12877. q
  12878. }
  12879. /^X\(\/\).*/{
  12880. s//\1/
  12881. q
  12882. }
  12883. s/.*/./; q'`
  12884. as_dir="$ac_dir"; as_fn_mkdir_p
  12885. ac_builddir=.
  12886. case "$ac_dir" in
  12887. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12888. *)
  12889. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12890. # A ".." for each directory in $ac_dir_suffix.
  12891. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12892. case $ac_top_builddir_sub in
  12893. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12894. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12895. esac ;;
  12896. esac
  12897. ac_abs_top_builddir=$ac_pwd
  12898. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12899. # for backward compatibility:
  12900. ac_top_builddir=$ac_top_build_prefix
  12901. case $srcdir in
  12902. .) # We are building in place.
  12903. ac_srcdir=.
  12904. ac_top_srcdir=$ac_top_builddir_sub
  12905. ac_abs_top_srcdir=$ac_pwd ;;
  12906. [\\/]* | ?:[\\/]* ) # Absolute name.
  12907. ac_srcdir=$srcdir$ac_dir_suffix;
  12908. ac_top_srcdir=$srcdir
  12909. ac_abs_top_srcdir=$srcdir ;;
  12910. *) # Relative name.
  12911. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12912. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12913. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12914. esac
  12915. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12916. case $ac_mode in
  12917. :F)
  12918. #
  12919. # CONFIG_FILE
  12920. #
  12921. case $INSTALL in
  12922. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12923. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12924. esac
  12925. ac_MKDIR_P=$MKDIR_P
  12926. case $MKDIR_P in
  12927. [\\/$]* | ?:[\\/]* ) ;;
  12928. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12929. esac
  12930. _ACEOF
  12931. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12932. # If the template does not know about datarootdir, expand it.
  12933. # FIXME: This hack should be removed a few years after 2.60.
  12934. ac_datarootdir_hack=; ac_datarootdir_seen=
  12935. ac_sed_dataroot='
  12936. /datarootdir/ {
  12937. p
  12938. q
  12939. }
  12940. /@datadir@/p
  12941. /@docdir@/p
  12942. /@infodir@/p
  12943. /@localedir@/p
  12944. /@mandir@/p'
  12945. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12946. *datarootdir*) ac_datarootdir_seen=yes;;
  12947. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12949. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12950. _ACEOF
  12951. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12952. ac_datarootdir_hack='
  12953. s&@datadir@&$datadir&g
  12954. s&@docdir@&$docdir&g
  12955. s&@infodir@&$infodir&g
  12956. s&@localedir@&$localedir&g
  12957. s&@mandir@&$mandir&g
  12958. s&\\\${datarootdir}&$datarootdir&g' ;;
  12959. esac
  12960. _ACEOF
  12961. # Neutralize VPATH when `$srcdir' = `.'.
  12962. # Shell code in configure.ac might set extrasub.
  12963. # FIXME: do we really want to maintain this feature?
  12964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12965. ac_sed_extra="$ac_vpsub
  12966. $extrasub
  12967. _ACEOF
  12968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12969. :t
  12970. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12971. s|@configure_input@|$ac_sed_conf_input|;t t
  12972. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12973. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12974. s&@srcdir@&$ac_srcdir&;t t
  12975. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12976. s&@top_srcdir@&$ac_top_srcdir&;t t
  12977. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12978. s&@builddir@&$ac_builddir&;t t
  12979. s&@abs_builddir@&$ac_abs_builddir&;t t
  12980. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12981. s&@INSTALL@&$ac_INSTALL&;t t
  12982. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12983. $ac_datarootdir_hack
  12984. "
  12985. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12986. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12987. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12988. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12989. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12990. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12992. which seems to be undefined. Please make sure it is defined" >&5
  12993. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12994. which seems to be undefined. Please make sure it is defined" >&2;}
  12995. rm -f "$ac_tmp/stdin"
  12996. case $ac_file in
  12997. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12998. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12999. esac \
  13000. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13001. ;;
  13002. :H)
  13003. #
  13004. # CONFIG_HEADER
  13005. #
  13006. if test x"$ac_file" != x-; then
  13007. {
  13008. $as_echo "/* $configure_input */" \
  13009. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13010. } >"$ac_tmp/config.h" \
  13011. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13012. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13013. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13014. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13015. else
  13016. rm -f "$ac_file"
  13017. mv "$ac_tmp/config.h" "$ac_file" \
  13018. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13019. fi
  13020. else
  13021. $as_echo "/* $configure_input */" \
  13022. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13023. || as_fn_error $? "could not create -" "$LINENO" 5
  13024. fi
  13025. # Compute "$ac_file"'s index in $config_headers.
  13026. _am_arg="$ac_file"
  13027. _am_stamp_count=1
  13028. for _am_header in $config_headers :; do
  13029. case $_am_header in
  13030. $_am_arg | $_am_arg:* )
  13031. break ;;
  13032. * )
  13033. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13034. esac
  13035. done
  13036. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13037. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13038. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13039. X"$_am_arg" : 'X\(//\)$' \| \
  13040. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13041. $as_echo X"$_am_arg" |
  13042. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13043. s//\1/
  13044. q
  13045. }
  13046. /^X\(\/\/\)[^/].*/{
  13047. s//\1/
  13048. q
  13049. }
  13050. /^X\(\/\/\)$/{
  13051. s//\1/
  13052. q
  13053. }
  13054. /^X\(\/\).*/{
  13055. s//\1/
  13056. q
  13057. }
  13058. s/.*/./; q'`/stamp-h$_am_stamp_count
  13059. ;;
  13060. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13061. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13062. ;;
  13063. esac
  13064. case $ac_file$ac_mode in
  13065. "libtool":C)
  13066. # See if we are running on zsh, and set the options which allow our
  13067. # commands through without removal of \ escapes.
  13068. if test -n "${ZSH_VERSION+set}" ; then
  13069. setopt NO_GLOB_SUBST
  13070. fi
  13071. cfgfile="${ofile}T"
  13072. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13073. $RM "$cfgfile"
  13074. cat <<_LT_EOF >> "$cfgfile"
  13075. #! $SHELL
  13076. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13077. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13078. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13079. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13080. #
  13081. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13082. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  13083. # Foundation, Inc.
  13084. # Written by Gordon Matzigkeit, 1996
  13085. #
  13086. # This file is part of GNU Libtool.
  13087. #
  13088. # GNU Libtool is free software; you can redistribute it and/or
  13089. # modify it under the terms of the GNU General Public License as
  13090. # published by the Free Software Foundation; either version 2 of
  13091. # the License, or (at your option) any later version.
  13092. #
  13093. # As a special exception to the GNU General Public License,
  13094. # if you distribute this file as part of a program or library that
  13095. # is built using GNU Libtool, you may include this file under the
  13096. # same distribution terms that you use for the rest of that program.
  13097. #
  13098. # GNU Libtool is distributed in the hope that it will be useful,
  13099. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13100. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13101. # GNU General Public License for more details.
  13102. #
  13103. # You should have received a copy of the GNU General Public License
  13104. # along with GNU Libtool; see the file COPYING. If not, a copy
  13105. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13106. # obtained by writing to the Free Software Foundation, Inc.,
  13107. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13108. # The names of the tagged configurations supported by this script.
  13109. available_tags=""
  13110. # ### BEGIN LIBTOOL CONFIG
  13111. # Assembler program.
  13112. AS=$lt_AS
  13113. # DLL creation program.
  13114. DLLTOOL=$lt_DLLTOOL
  13115. # Object dumper program.
  13116. OBJDUMP=$lt_OBJDUMP
  13117. # Which release of libtool.m4 was used?
  13118. macro_version=$macro_version
  13119. macro_revision=$macro_revision
  13120. # Whether or not to build shared libraries.
  13121. build_libtool_libs=$enable_shared
  13122. # Whether or not to build static libraries.
  13123. build_old_libs=$enable_static
  13124. # What type of objects to build.
  13125. pic_mode=$pic_mode
  13126. # Whether or not to optimize for fast installation.
  13127. fast_install=$enable_fast_install
  13128. # Shell to use when invoking shell scripts.
  13129. SHELL=$lt_SHELL
  13130. # An echo program that protects backslashes.
  13131. ECHO=$lt_ECHO
  13132. # The PATH separator for the build system.
  13133. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  13134. # The host system.
  13135. host_alias=$host_alias
  13136. host=$host
  13137. host_os=$host_os
  13138. # The build system.
  13139. build_alias=$build_alias
  13140. build=$build
  13141. build_os=$build_os
  13142. # A sed program that does not truncate output.
  13143. SED=$lt_SED
  13144. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13145. Xsed="\$SED -e 1s/^X//"
  13146. # A grep program that handles long lines.
  13147. GREP=$lt_GREP
  13148. # An ERE matcher.
  13149. EGREP=$lt_EGREP
  13150. # A literal string matcher.
  13151. FGREP=$lt_FGREP
  13152. # A BSD- or MS-compatible name lister.
  13153. NM=$lt_NM
  13154. # Whether we need soft or hard links.
  13155. LN_S=$lt_LN_S
  13156. # What is the maximum length of a command?
  13157. max_cmd_len=$max_cmd_len
  13158. # Object file suffix (normally "o").
  13159. objext=$ac_objext
  13160. # Executable file suffix (normally "").
  13161. exeext=$exeext
  13162. # whether the shell understands "unset".
  13163. lt_unset=$lt_unset
  13164. # turn spaces into newlines.
  13165. SP2NL=$lt_lt_SP2NL
  13166. # turn newlines into spaces.
  13167. NL2SP=$lt_lt_NL2SP
  13168. # convert \$build file names to \$host format.
  13169. to_host_file_cmd=$lt_cv_to_host_file_cmd
  13170. # convert \$build files to toolchain format.
  13171. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  13172. # Method to check whether dependent libraries are shared objects.
  13173. deplibs_check_method=$lt_deplibs_check_method
  13174. # Command to use when deplibs_check_method = "file_magic".
  13175. file_magic_cmd=$lt_file_magic_cmd
  13176. # How to find potential files when deplibs_check_method = "file_magic".
  13177. file_magic_glob=$lt_file_magic_glob
  13178. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13179. want_nocaseglob=$lt_want_nocaseglob
  13180. # Command to associate shared and link libraries.
  13181. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13182. # The archiver.
  13183. AR=$lt_AR
  13184. # Flags to create an archive.
  13185. AR_FLAGS=$lt_AR_FLAGS
  13186. # How to feed a file listing to the archiver.
  13187. archiver_list_spec=$lt_archiver_list_spec
  13188. # A symbol stripping program.
  13189. STRIP=$lt_STRIP
  13190. # Commands used to install an old-style archive.
  13191. RANLIB=$lt_RANLIB
  13192. old_postinstall_cmds=$lt_old_postinstall_cmds
  13193. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13194. # Whether to use a lock for old archive extraction.
  13195. lock_old_archive_extraction=$lock_old_archive_extraction
  13196. # A C compiler.
  13197. LTCC=$lt_CC
  13198. # LTCC compiler flags.
  13199. LTCFLAGS=$lt_CFLAGS
  13200. # Take the output of nm and produce a listing of raw symbols and C names.
  13201. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13202. # Transform the output of nm in a proper C declaration.
  13203. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13204. # Transform the output of nm in a C name address pair.
  13205. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13206. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13207. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13208. # Specify filename containing input files for \$NM.
  13209. nm_file_list_spec=$lt_nm_file_list_spec
  13210. # The root where to search for dependent libraries,and in which our libraries should be installed.
  13211. lt_sysroot=$lt_sysroot
  13212. # The name of the directory that contains temporary libtool files.
  13213. objdir=$objdir
  13214. # Used to examine libraries when file_magic_cmd begins with "file".
  13215. MAGIC_CMD=$MAGIC_CMD
  13216. # Must we lock files when doing compilation?
  13217. need_locks=$lt_need_locks
  13218. # Manifest tool.
  13219. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13220. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13221. DSYMUTIL=$lt_DSYMUTIL
  13222. # Tool to change global to local symbols on Mac OS X.
  13223. NMEDIT=$lt_NMEDIT
  13224. # Tool to manipulate fat objects and archives on Mac OS X.
  13225. LIPO=$lt_LIPO
  13226. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13227. OTOOL=$lt_OTOOL
  13228. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13229. OTOOL64=$lt_OTOOL64
  13230. # Old archive suffix (normally "a").
  13231. libext=$libext
  13232. # Shared library suffix (normally ".so").
  13233. shrext_cmds=$lt_shrext_cmds
  13234. # The commands to extract the exported symbol list from a shared archive.
  13235. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13236. # Variables whose values should be saved in libtool wrapper scripts and
  13237. # restored at link time.
  13238. variables_saved_for_relink=$lt_variables_saved_for_relink
  13239. # Do we need the "lib" prefix for modules?
  13240. need_lib_prefix=$need_lib_prefix
  13241. # Do we need a version for libraries?
  13242. need_version=$need_version
  13243. # Library versioning type.
  13244. version_type=$version_type
  13245. # Shared library runtime path variable.
  13246. runpath_var=$runpath_var
  13247. # Shared library path variable.
  13248. shlibpath_var=$shlibpath_var
  13249. # Is shlibpath searched before the hard-coded library search path?
  13250. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13251. # Format of library name prefix.
  13252. libname_spec=$lt_libname_spec
  13253. # List of archive names. First name is the real one, the rest are links.
  13254. # The last name is the one that the linker finds with -lNAME
  13255. library_names_spec=$lt_library_names_spec
  13256. # The coded name of the library, if different from the real name.
  13257. soname_spec=$lt_soname_spec
  13258. # Permission mode override for installation of shared libraries.
  13259. install_override_mode=$lt_install_override_mode
  13260. # Command to use after installation of a shared archive.
  13261. postinstall_cmds=$lt_postinstall_cmds
  13262. # Command to use after uninstallation of a shared archive.
  13263. postuninstall_cmds=$lt_postuninstall_cmds
  13264. # Commands used to finish a libtool library installation in a directory.
  13265. finish_cmds=$lt_finish_cmds
  13266. # As "finish_cmds", except a single script fragment to be evaled but
  13267. # not shown.
  13268. finish_eval=$lt_finish_eval
  13269. # Whether we should hardcode library paths into libraries.
  13270. hardcode_into_libs=$hardcode_into_libs
  13271. # Compile-time system search path for libraries.
  13272. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13273. # Run-time system search path for libraries.
  13274. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13275. # Whether dlopen is supported.
  13276. dlopen_support=$enable_dlopen
  13277. # Whether dlopen of programs is supported.
  13278. dlopen_self=$enable_dlopen_self
  13279. # Whether dlopen of statically linked programs is supported.
  13280. dlopen_self_static=$enable_dlopen_self_static
  13281. # Commands to strip libraries.
  13282. old_striplib=$lt_old_striplib
  13283. striplib=$lt_striplib
  13284. # The linker used to build libraries.
  13285. LD=$lt_LD
  13286. # How to create reloadable object files.
  13287. reload_flag=$lt_reload_flag
  13288. reload_cmds=$lt_reload_cmds
  13289. # Commands used to build an old-style archive.
  13290. old_archive_cmds=$lt_old_archive_cmds
  13291. # A language specific compiler.
  13292. CC=$lt_compiler
  13293. # Is the compiler the GNU compiler?
  13294. with_gcc=$GCC
  13295. # Compiler flag to turn off builtin functions.
  13296. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13297. # Additional compiler flags for building library objects.
  13298. pic_flag=$lt_lt_prog_compiler_pic
  13299. # How to pass a linker flag through the compiler.
  13300. wl=$lt_lt_prog_compiler_wl
  13301. # Compiler flag to prevent dynamic linking.
  13302. link_static_flag=$lt_lt_prog_compiler_static
  13303. # Does compiler simultaneously support -c and -o options?
  13304. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13305. # Whether or not to add -lc for building shared libraries.
  13306. build_libtool_need_lc=$archive_cmds_need_lc
  13307. # Whether or not to disallow shared libs when runtime libs are static.
  13308. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13309. # Compiler flag to allow reflexive dlopens.
  13310. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13311. # Compiler flag to generate shared objects directly from archives.
  13312. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13313. # Whether the compiler copes with passing no objects directly.
  13314. compiler_needs_object=$lt_compiler_needs_object
  13315. # Create an old-style archive from a shared archive.
  13316. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13317. # Create a temporary old-style archive to link instead of a shared archive.
  13318. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13319. # Commands used to build a shared archive.
  13320. archive_cmds=$lt_archive_cmds
  13321. archive_expsym_cmds=$lt_archive_expsym_cmds
  13322. # Commands used to build a loadable module if different from building
  13323. # a shared archive.
  13324. module_cmds=$lt_module_cmds
  13325. module_expsym_cmds=$lt_module_expsym_cmds
  13326. # Whether we are building with GNU ld or not.
  13327. with_gnu_ld=$lt_with_gnu_ld
  13328. # Flag that allows shared libraries with undefined symbols to be built.
  13329. allow_undefined_flag=$lt_allow_undefined_flag
  13330. # Flag that enforces no undefined symbols.
  13331. no_undefined_flag=$lt_no_undefined_flag
  13332. # Flag to hardcode \$libdir into a binary during linking.
  13333. # This must work even if \$libdir does not exist
  13334. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13335. # Whether we need a single "-rpath" flag with a separated argument.
  13336. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13337. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13338. # DIR into the resulting binary.
  13339. hardcode_direct=$hardcode_direct
  13340. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13341. # DIR into the resulting binary and the resulting library dependency is
  13342. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13343. # library is relocated.
  13344. hardcode_direct_absolute=$hardcode_direct_absolute
  13345. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13346. # into the resulting binary.
  13347. hardcode_minus_L=$hardcode_minus_L
  13348. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13349. # into the resulting binary.
  13350. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13351. # Set to "yes" if building a shared library automatically hardcodes DIR
  13352. # into the library and all subsequent libraries and executables linked
  13353. # against it.
  13354. hardcode_automatic=$hardcode_automatic
  13355. # Set to yes if linker adds runtime paths of dependent libraries
  13356. # to runtime path list.
  13357. inherit_rpath=$inherit_rpath
  13358. # Whether libtool must link a program against all its dependency libraries.
  13359. link_all_deplibs=$link_all_deplibs
  13360. # Set to "yes" if exported symbols are required.
  13361. always_export_symbols=$always_export_symbols
  13362. # The commands to list exported symbols.
  13363. export_symbols_cmds=$lt_export_symbols_cmds
  13364. # Symbols that should not be listed in the preloaded symbols.
  13365. exclude_expsyms=$lt_exclude_expsyms
  13366. # Symbols that must always be exported.
  13367. include_expsyms=$lt_include_expsyms
  13368. # Commands necessary for linking programs (against libraries) with templates.
  13369. prelink_cmds=$lt_prelink_cmds
  13370. # Commands necessary for finishing linking programs.
  13371. postlink_cmds=$lt_postlink_cmds
  13372. # Specify filename containing input files.
  13373. file_list_spec=$lt_file_list_spec
  13374. # How to hardcode a shared library path into an executable.
  13375. hardcode_action=$hardcode_action
  13376. # ### END LIBTOOL CONFIG
  13377. _LT_EOF
  13378. case $host_os in
  13379. aix3*)
  13380. cat <<\_LT_EOF >> "$cfgfile"
  13381. # AIX sometimes has problems with the GCC collect2 program. For some
  13382. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13383. # vanish in a puff of smoke.
  13384. if test "X${COLLECT_NAMES+set}" != Xset; then
  13385. COLLECT_NAMES=
  13386. export COLLECT_NAMES
  13387. fi
  13388. _LT_EOF
  13389. ;;
  13390. esac
  13391. ltmain="$ac_aux_dir/ltmain.sh"
  13392. # We use sed instead of cat because bash on DJGPP gets confused if
  13393. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13394. # text mode, it properly converts lines to CR/LF. This bash problem
  13395. # is reportedly fixed, but why not run on old versions too?
  13396. sed '$q' "$ltmain" >> "$cfgfile" \
  13397. || (rm -f "$cfgfile"; exit 1)
  13398. if test x"$xsi_shell" = xyes; then
  13399. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  13400. func_dirname ()\
  13401. {\
  13402. \ case ${1} in\
  13403. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13404. \ * ) func_dirname_result="${3}" ;;\
  13405. \ esac\
  13406. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  13407. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13408. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13409. test 0 -eq $? || _lt_function_replace_fail=:
  13410. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  13411. func_basename ()\
  13412. {\
  13413. \ func_basename_result="${1##*/}"\
  13414. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13415. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13416. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13417. test 0 -eq $? || _lt_function_replace_fail=:
  13418. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  13419. func_dirname_and_basename ()\
  13420. {\
  13421. \ case ${1} in\
  13422. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13423. \ * ) func_dirname_result="${3}" ;;\
  13424. \ esac\
  13425. \ func_basename_result="${1##*/}"\
  13426. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13427. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13428. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13429. test 0 -eq $? || _lt_function_replace_fail=:
  13430. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  13431. func_stripname ()\
  13432. {\
  13433. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  13434. \ # positional parameters, so assign one to ordinary parameter first.\
  13435. \ func_stripname_result=${3}\
  13436. \ func_stripname_result=${func_stripname_result#"${1}"}\
  13437. \ func_stripname_result=${func_stripname_result%"${2}"}\
  13438. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  13439. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13440. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13441. test 0 -eq $? || _lt_function_replace_fail=:
  13442. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  13443. func_split_long_opt ()\
  13444. {\
  13445. \ func_split_long_opt_name=${1%%=*}\
  13446. \ func_split_long_opt_arg=${1#*=}\
  13447. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13448. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13449. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13450. test 0 -eq $? || _lt_function_replace_fail=:
  13451. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  13452. func_split_short_opt ()\
  13453. {\
  13454. \ func_split_short_opt_arg=${1#??}\
  13455. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  13456. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13457. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13458. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13459. test 0 -eq $? || _lt_function_replace_fail=:
  13460. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  13461. func_lo2o ()\
  13462. {\
  13463. \ case ${1} in\
  13464. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  13465. \ *) func_lo2o_result=${1} ;;\
  13466. \ esac\
  13467. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  13468. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13469. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13470. test 0 -eq $? || _lt_function_replace_fail=:
  13471. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  13472. func_xform ()\
  13473. {\
  13474. func_xform_result=${1%.*}.lo\
  13475. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  13476. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13477. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13478. test 0 -eq $? || _lt_function_replace_fail=:
  13479. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  13480. func_arith ()\
  13481. {\
  13482. func_arith_result=$(( $* ))\
  13483. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  13484. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13485. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13486. test 0 -eq $? || _lt_function_replace_fail=:
  13487. sed -e '/^func_len ()$/,/^} # func_len /c\
  13488. func_len ()\
  13489. {\
  13490. func_len_result=${#1}\
  13491. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  13492. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13493. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13494. test 0 -eq $? || _lt_function_replace_fail=:
  13495. fi
  13496. if test x"$lt_shell_append" = xyes; then
  13497. sed -e '/^func_append ()$/,/^} # func_append /c\
  13498. func_append ()\
  13499. {\
  13500. eval "${1}+=\\${2}"\
  13501. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  13502. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13503. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13504. test 0 -eq $? || _lt_function_replace_fail=:
  13505. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  13506. func_append_quoted ()\
  13507. {\
  13508. \ func_quote_for_eval "${2}"\
  13509. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  13510. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  13511. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13512. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13513. test 0 -eq $? || _lt_function_replace_fail=:
  13514. # Save a `func_append' function call where possible by direct use of '+='
  13515. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  13516. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13517. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13518. test 0 -eq $? || _lt_function_replace_fail=:
  13519. else
  13520. # Save a `func_append' function call even when '+=' is not available
  13521. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  13522. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13523. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13524. test 0 -eq $? || _lt_function_replace_fail=:
  13525. fi
  13526. if test x"$_lt_function_replace_fail" = x":"; then
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  13528. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  13529. fi
  13530. mv -f "$cfgfile" "$ofile" ||
  13531. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13532. chmod +x "$ofile"
  13533. ;;
  13534. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13535. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13536. # are listed without --file. Let's play safe and only enable the eval
  13537. # if we detect the quoting.
  13538. case $CONFIG_FILES in
  13539. *\'*) eval set x "$CONFIG_FILES" ;;
  13540. *) set x $CONFIG_FILES ;;
  13541. esac
  13542. shift
  13543. for mf
  13544. do
  13545. # Strip MF so we end up with the name of the file.
  13546. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13547. # Check whether this is an Automake generated Makefile or not.
  13548. # We used to match only the files named 'Makefile.in', but
  13549. # some people rename them; so instead we look at the file content.
  13550. # Grep'ing the first line is not enough: some people post-process
  13551. # each Makefile.in and add a new line on top of each file to say so.
  13552. # Grep'ing the whole file is not good either: AIX grep has a line
  13553. # limit of 2048, but all sed's we know have understand at least 4000.
  13554. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13555. dirpart=`$as_dirname -- "$mf" ||
  13556. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13557. X"$mf" : 'X\(//\)[^/]' \| \
  13558. X"$mf" : 'X\(//\)$' \| \
  13559. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13560. $as_echo X"$mf" |
  13561. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13562. s//\1/
  13563. q
  13564. }
  13565. /^X\(\/\/\)[^/].*/{
  13566. s//\1/
  13567. q
  13568. }
  13569. /^X\(\/\/\)$/{
  13570. s//\1/
  13571. q
  13572. }
  13573. /^X\(\/\).*/{
  13574. s//\1/
  13575. q
  13576. }
  13577. s/.*/./; q'`
  13578. else
  13579. continue
  13580. fi
  13581. # Extract the definition of DEPDIR, am__include, and am__quote
  13582. # from the Makefile without running 'make'.
  13583. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13584. test -z "$DEPDIR" && continue
  13585. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13586. test -z "am__include" && continue
  13587. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13588. # Find all dependency output files, they are included files with
  13589. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13590. # simplest approach to changing $(DEPDIR) to its actual value in the
  13591. # expansion.
  13592. for file in `sed -n "
  13593. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13594. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13595. # Make sure the directory exists.
  13596. test -f "$dirpart/$file" && continue
  13597. fdir=`$as_dirname -- "$file" ||
  13598. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13599. X"$file" : 'X\(//\)[^/]' \| \
  13600. X"$file" : 'X\(//\)$' \| \
  13601. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13602. $as_echo X"$file" |
  13603. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13604. s//\1/
  13605. q
  13606. }
  13607. /^X\(\/\/\)[^/].*/{
  13608. s//\1/
  13609. q
  13610. }
  13611. /^X\(\/\/\)$/{
  13612. s//\1/
  13613. q
  13614. }
  13615. /^X\(\/\).*/{
  13616. s//\1/
  13617. q
  13618. }
  13619. s/.*/./; q'`
  13620. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13621. # echo "creating $dirpart/$file"
  13622. echo '# dummy' > "$dirpart/$file"
  13623. done
  13624. done
  13625. }
  13626. ;;
  13627. esac
  13628. done # for ac_tag
  13629. as_fn_exit 0
  13630. _ACEOF
  13631. ac_clean_files=$ac_clean_files_save
  13632. test $ac_write_fail = 0 ||
  13633. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13634. # configure is writing to config.log, and then calls config.status.
  13635. # config.status does its own redirection, appending to config.log.
  13636. # Unfortunately, on DOS this fails, as config.log is still kept open
  13637. # by configure, so config.status won't be able to write to it; its
  13638. # output is simply discarded. So we exec the FD to /dev/null,
  13639. # effectively closing config.log, so it can be properly (re)opened and
  13640. # appended to by config.status. When coming back to configure, we
  13641. # need to make the FD available again.
  13642. if test "$no_create" != yes; then
  13643. ac_cs_success=:
  13644. ac_config_status_args=
  13645. test "$silent" = yes &&
  13646. ac_config_status_args="$ac_config_status_args --quiet"
  13647. exec 5>/dev/null
  13648. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13649. exec 5>>config.log
  13650. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13651. # would make configure fail if this is the last instruction.
  13652. $ac_cs_success || as_fn_exit 1
  13653. fi
  13654. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13656. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13657. fi