configure 635 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for expat 2.2.10.
  4. #
  5. # Report bugs to <[email protected]>.
  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 -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || 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 [email protected] and
  259. $0: [email protected] about your system, including
  260. $0: any error possibly output before this message. Then
  261. $0: install a modern shell, or manually run the script
  262. $0: under such a 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='expat'
  542. PACKAGE_TARNAME='expat'
  543. PACKAGE_VERSION='2.2.10'
  544. PACKAGE_STRING='expat 2.2.10'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="Makefile.in"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. LIBOBJS
  588. _EXPAT_OUTPUT_NAME
  589. AM_LDFLAGS
  590. AM_CXXFLAGS
  591. AM_CFLAGS
  592. AM_CPPFLAGS
  593. WITH_DOCBOOK_FALSE
  594. WITH_DOCBOOK_TRUE
  595. DOCBOOK_TO_MAN
  596. FILEMAP
  597. UNICODE_FALSE
  598. UNICODE_TRUE
  599. MINGW_FALSE
  600. MINGW_TRUE
  601. WITH_TESTS_FALSE
  602. WITH_TESTS_TRUE
  603. WITH_EXAMPLES_FALSE
  604. WITH_EXAMPLES_TRUE
  605. WITH_XMLWF_FALSE
  606. WITH_XMLWF_TRUE
  607. CXXCPP
  608. am__fastdepCXX_FALSE
  609. am__fastdepCXX_TRUE
  610. CXXDEPMODE
  611. ac_ct_CXX
  612. CXXFLAGS
  613. CXX
  614. LIBAGE
  615. LIBREVISION
  616. LIBCURRENT
  617. CPP
  618. LT_SYS_LIBRARY_PATH
  619. OTOOL64
  620. OTOOL
  621. LIPO
  622. NMEDIT
  623. DSYMUTIL
  624. MANIFEST_TOOL
  625. RANLIB
  626. NM
  627. ac_ct_DUMPBIN
  628. DUMPBIN
  629. LD
  630. FGREP
  631. EGREP
  632. GREP
  633. SED
  634. LIBTOOL
  635. OBJDUMP
  636. DLLTOOL
  637. AS
  638. LN_S
  639. am__fastdepCC_FALSE
  640. am__fastdepCC_TRUE
  641. CCDEPMODE
  642. am__nodep
  643. AMDEPBACKSLASH
  644. AMDEP_FALSE
  645. AMDEP_TRUE
  646. am__include
  647. DEPDIR
  648. OBJEXT
  649. EXEEXT
  650. ac_ct_CC
  651. CPPFLAGS
  652. LDFLAGS
  653. CFLAGS
  654. CC
  655. ac_ct_AR
  656. AR
  657. AM_BACKSLASH
  658. AM_DEFAULT_VERBOSITY
  659. AM_DEFAULT_V
  660. AM_V
  661. am__untar
  662. am__tar
  663. AMTAR
  664. am__leading_dot
  665. SET_MAKE
  666. AWK
  667. mkdir_p
  668. MKDIR_P
  669. INSTALL_STRIP_PROGRAM
  670. STRIP
  671. install_sh
  672. MAKEINFO
  673. AUTOHEADER
  674. AUTOMAKE
  675. AUTOCONF
  676. ACLOCAL
  677. VERSION
  678. PACKAGE
  679. CYGPATH_W
  680. am__isrc
  681. INSTALL_DATA
  682. INSTALL_SCRIPT
  683. INSTALL_PROGRAM
  684. host_os
  685. host_vendor
  686. host_cpu
  687. host
  688. build_os
  689. build_vendor
  690. build_cpu
  691. build
  692. target_alias
  693. host_alias
  694. build_alias
  695. LIBS
  696. ECHO_T
  697. ECHO_N
  698. ECHO_C
  699. DEFS
  700. mandir
  701. localedir
  702. libdir
  703. psdir
  704. pdfdir
  705. dvidir
  706. htmldir
  707. infodir
  708. docdir
  709. oldincludedir
  710. includedir
  711. runstatedir
  712. localstatedir
  713. sharedstatedir
  714. sysconfdir
  715. datadir
  716. datarootdir
  717. libexecdir
  718. sbindir
  719. bindir
  720. program_transform_name
  721. prefix
  722. exec_prefix
  723. PACKAGE_URL
  724. PACKAGE_BUGREPORT
  725. PACKAGE_STRING
  726. PACKAGE_VERSION
  727. PACKAGE_TARNAME
  728. PACKAGE_NAME
  729. PATH_SEPARATOR
  730. SHELL
  731. am__quote'
  732. ac_subst_files=''
  733. ac_user_opts='
  734. enable_option_checking
  735. enable_silent_rules
  736. enable_dependency_tracking
  737. enable_shared
  738. enable_static
  739. with_pic
  740. enable_fast_install
  741. with_aix_soname
  742. with_gnu_ld
  743. with_sysroot
  744. enable_libtool_lock
  745. with_xmlwf
  746. with_examples
  747. with_tests
  748. with_libbsd
  749. with_getrandom
  750. with_sys_getrandom
  751. enable_xml_attr_info
  752. enable_xml_context
  753. with_docbook
  754. '
  755. ac_precious_vars='build_alias
  756. host_alias
  757. target_alias
  758. CC
  759. CFLAGS
  760. LDFLAGS
  761. LIBS
  762. CPPFLAGS
  763. LT_SYS_LIBRARY_PATH
  764. CPP
  765. CXX
  766. CXXFLAGS
  767. CCC
  768. CXXCPP
  769. DOCBOOK_TO_MAN'
  770. # Initialize some variables set by options.
  771. ac_init_help=
  772. ac_init_version=false
  773. ac_unrecognized_opts=
  774. ac_unrecognized_sep=
  775. # The variables have the same names as the options, with
  776. # dashes changed to underlines.
  777. cache_file=/dev/null
  778. exec_prefix=NONE
  779. no_create=
  780. no_recursion=
  781. prefix=NONE
  782. program_prefix=NONE
  783. program_suffix=NONE
  784. program_transform_name=s,x,x,
  785. silent=
  786. site=
  787. srcdir=
  788. verbose=
  789. x_includes=NONE
  790. x_libraries=NONE
  791. # Installation directory options.
  792. # These are left unexpanded so users can "make install exec_prefix=/foo"
  793. # and all the variables that are supposed to be based on exec_prefix
  794. # by default will actually change.
  795. # Use braces instead of parens because sh, perl, etc. also accept them.
  796. # (The list follows the same order as the GNU Coding Standards.)
  797. bindir='${exec_prefix}/bin'
  798. sbindir='${exec_prefix}/sbin'
  799. libexecdir='${exec_prefix}/libexec'
  800. datarootdir='${prefix}/share'
  801. datadir='${datarootdir}'
  802. sysconfdir='${prefix}/etc'
  803. sharedstatedir='${prefix}/com'
  804. localstatedir='${prefix}/var'
  805. runstatedir='${localstatedir}/run'
  806. includedir='${prefix}/include'
  807. oldincludedir='/usr/include'
  808. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  809. infodir='${datarootdir}/info'
  810. htmldir='${docdir}'
  811. dvidir='${docdir}'
  812. pdfdir='${docdir}'
  813. psdir='${docdir}'
  814. libdir='${exec_prefix}/lib'
  815. localedir='${datarootdir}/locale'
  816. mandir='${datarootdir}/man'
  817. ac_prev=
  818. ac_dashdash=
  819. for ac_option
  820. do
  821. # If the previous option needs an argument, assign it.
  822. if test -n "$ac_prev"; then
  823. eval $ac_prev=\$ac_option
  824. ac_prev=
  825. continue
  826. fi
  827. case $ac_option in
  828. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  829. *=) ac_optarg= ;;
  830. *) ac_optarg=yes ;;
  831. esac
  832. # Accept the important Cygnus configure options, so we can diagnose typos.
  833. case $ac_dashdash$ac_option in
  834. --)
  835. ac_dashdash=yes ;;
  836. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  837. ac_prev=bindir ;;
  838. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  839. bindir=$ac_optarg ;;
  840. -build | --build | --buil | --bui | --bu)
  841. ac_prev=build_alias ;;
  842. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  843. build_alias=$ac_optarg ;;
  844. -cache-file | --cache-file | --cache-fil | --cache-fi \
  845. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  846. ac_prev=cache_file ;;
  847. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  848. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  849. cache_file=$ac_optarg ;;
  850. --config-cache | -C)
  851. cache_file=config.cache ;;
  852. -datadir | --datadir | --datadi | --datad)
  853. ac_prev=datadir ;;
  854. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  855. datadir=$ac_optarg ;;
  856. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  857. | --dataroo | --dataro | --datar)
  858. ac_prev=datarootdir ;;
  859. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  860. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  861. datarootdir=$ac_optarg ;;
  862. -disable-* | --disable-*)
  863. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  864. # Reject names that are not valid shell variable names.
  865. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  866. as_fn_error $? "invalid feature name: $ac_useropt"
  867. ac_useropt_orig=$ac_useropt
  868. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  869. case $ac_user_opts in
  870. *"
  871. "enable_$ac_useropt"
  872. "*) ;;
  873. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  874. ac_unrecognized_sep=', ';;
  875. esac
  876. eval enable_$ac_useropt=no ;;
  877. -docdir | --docdir | --docdi | --doc | --do)
  878. ac_prev=docdir ;;
  879. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  880. docdir=$ac_optarg ;;
  881. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  882. ac_prev=dvidir ;;
  883. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  884. dvidir=$ac_optarg ;;
  885. -enable-* | --enable-*)
  886. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  887. # Reject names that are not valid shell variable names.
  888. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  889. as_fn_error $? "invalid feature name: $ac_useropt"
  890. ac_useropt_orig=$ac_useropt
  891. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  892. case $ac_user_opts in
  893. *"
  894. "enable_$ac_useropt"
  895. "*) ;;
  896. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  897. ac_unrecognized_sep=', ';;
  898. esac
  899. eval enable_$ac_useropt=\$ac_optarg ;;
  900. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  901. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  902. | --exec | --exe | --ex)
  903. ac_prev=exec_prefix ;;
  904. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  905. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  906. | --exec=* | --exe=* | --ex=*)
  907. exec_prefix=$ac_optarg ;;
  908. -gas | --gas | --ga | --g)
  909. # Obsolete; use --with-gas.
  910. with_gas=yes ;;
  911. -help | --help | --hel | --he | -h)
  912. ac_init_help=long ;;
  913. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  914. ac_init_help=recursive ;;
  915. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  916. ac_init_help=short ;;
  917. -host | --host | --hos | --ho)
  918. ac_prev=host_alias ;;
  919. -host=* | --host=* | --hos=* | --ho=*)
  920. host_alias=$ac_optarg ;;
  921. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  922. ac_prev=htmldir ;;
  923. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  924. | --ht=*)
  925. htmldir=$ac_optarg ;;
  926. -includedir | --includedir | --includedi | --included | --include \
  927. | --includ | --inclu | --incl | --inc)
  928. ac_prev=includedir ;;
  929. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  930. | --includ=* | --inclu=* | --incl=* | --inc=*)
  931. includedir=$ac_optarg ;;
  932. -infodir | --infodir | --infodi | --infod | --info | --inf)
  933. ac_prev=infodir ;;
  934. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  935. infodir=$ac_optarg ;;
  936. -libdir | --libdir | --libdi | --libd)
  937. ac_prev=libdir ;;
  938. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  939. libdir=$ac_optarg ;;
  940. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  941. | --libexe | --libex | --libe)
  942. ac_prev=libexecdir ;;
  943. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  944. | --libexe=* | --libex=* | --libe=*)
  945. libexecdir=$ac_optarg ;;
  946. -localedir | --localedir | --localedi | --localed | --locale)
  947. ac_prev=localedir ;;
  948. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  949. localedir=$ac_optarg ;;
  950. -localstatedir | --localstatedir | --localstatedi | --localstated \
  951. | --localstate | --localstat | --localsta | --localst | --locals)
  952. ac_prev=localstatedir ;;
  953. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  954. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  955. localstatedir=$ac_optarg ;;
  956. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  957. ac_prev=mandir ;;
  958. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  959. mandir=$ac_optarg ;;
  960. -nfp | --nfp | --nf)
  961. # Obsolete; use --without-fp.
  962. with_fp=no ;;
  963. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  964. | --no-cr | --no-c | -n)
  965. no_create=yes ;;
  966. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  967. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  968. no_recursion=yes ;;
  969. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  970. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  971. | --oldin | --oldi | --old | --ol | --o)
  972. ac_prev=oldincludedir ;;
  973. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  974. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  975. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  976. oldincludedir=$ac_optarg ;;
  977. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  978. ac_prev=prefix ;;
  979. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  980. prefix=$ac_optarg ;;
  981. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  982. | --program-pre | --program-pr | --program-p)
  983. ac_prev=program_prefix ;;
  984. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  985. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  986. program_prefix=$ac_optarg ;;
  987. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  988. | --program-suf | --program-su | --program-s)
  989. ac_prev=program_suffix ;;
  990. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  991. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  992. program_suffix=$ac_optarg ;;
  993. -program-transform-name | --program-transform-name \
  994. | --program-transform-nam | --program-transform-na \
  995. | --program-transform-n | --program-transform- \
  996. | --program-transform | --program-transfor \
  997. | --program-transfo | --program-transf \
  998. | --program-trans | --program-tran \
  999. | --progr-tra | --program-tr | --program-t)
  1000. ac_prev=program_transform_name ;;
  1001. -program-transform-name=* | --program-transform-name=* \
  1002. | --program-transform-nam=* | --program-transform-na=* \
  1003. | --program-transform-n=* | --program-transform-=* \
  1004. | --program-transform=* | --program-transfor=* \
  1005. | --program-transfo=* | --program-transf=* \
  1006. | --program-trans=* | --program-tran=* \
  1007. | --progr-tra=* | --program-tr=* | --program-t=*)
  1008. program_transform_name=$ac_optarg ;;
  1009. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1010. ac_prev=pdfdir ;;
  1011. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1012. pdfdir=$ac_optarg ;;
  1013. -psdir | --psdir | --psdi | --psd | --ps)
  1014. ac_prev=psdir ;;
  1015. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1016. psdir=$ac_optarg ;;
  1017. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1018. | -silent | --silent | --silen | --sile | --sil)
  1019. silent=yes ;;
  1020. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1021. | --runstate | --runstat | --runsta | --runst | --runs \
  1022. | --run | --ru | --r)
  1023. ac_prev=runstatedir ;;
  1024. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1025. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1026. | --run=* | --ru=* | --r=*)
  1027. runstatedir=$ac_optarg ;;
  1028. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1029. ac_prev=sbindir ;;
  1030. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1031. | --sbi=* | --sb=*)
  1032. sbindir=$ac_optarg ;;
  1033. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1034. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1035. | --sharedst | --shareds | --shared | --share | --shar \
  1036. | --sha | --sh)
  1037. ac_prev=sharedstatedir ;;
  1038. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1039. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1040. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1041. | --sha=* | --sh=*)
  1042. sharedstatedir=$ac_optarg ;;
  1043. -site | --site | --sit)
  1044. ac_prev=site ;;
  1045. -site=* | --site=* | --sit=*)
  1046. site=$ac_optarg ;;
  1047. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1048. ac_prev=srcdir ;;
  1049. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1050. srcdir=$ac_optarg ;;
  1051. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1052. | --syscon | --sysco | --sysc | --sys | --sy)
  1053. ac_prev=sysconfdir ;;
  1054. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1055. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1056. sysconfdir=$ac_optarg ;;
  1057. -target | --target | --targe | --targ | --tar | --ta | --t)
  1058. ac_prev=target_alias ;;
  1059. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1060. target_alias=$ac_optarg ;;
  1061. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1062. verbose=yes ;;
  1063. -version | --version | --versio | --versi | --vers | -V)
  1064. ac_init_version=: ;;
  1065. -with-* | --with-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid package name: $ac_useropt"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "with_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval with_$ac_useropt=\$ac_optarg ;;
  1080. -without-* | --without-*)
  1081. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1082. # Reject names that are not valid shell variable names.
  1083. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1084. as_fn_error $? "invalid package name: $ac_useropt"
  1085. ac_useropt_orig=$ac_useropt
  1086. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1087. case $ac_user_opts in
  1088. *"
  1089. "with_$ac_useropt"
  1090. "*) ;;
  1091. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1092. ac_unrecognized_sep=', ';;
  1093. esac
  1094. eval with_$ac_useropt=no ;;
  1095. --x)
  1096. # Obsolete; use --with-x.
  1097. with_x=yes ;;
  1098. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1099. | --x-incl | --x-inc | --x-in | --x-i)
  1100. ac_prev=x_includes ;;
  1101. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1102. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1103. x_includes=$ac_optarg ;;
  1104. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1105. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1106. ac_prev=x_libraries ;;
  1107. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1108. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1109. x_libraries=$ac_optarg ;;
  1110. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1111. Try \`$0 --help' for more information"
  1112. ;;
  1113. *=*)
  1114. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1115. # Reject names that are not valid shell variable names.
  1116. case $ac_envvar in #(
  1117. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1118. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1119. esac
  1120. eval $ac_envvar=\$ac_optarg
  1121. export $ac_envvar ;;
  1122. *)
  1123. # FIXME: should be removed in autoconf 3.0.
  1124. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1125. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1126. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1127. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1128. ;;
  1129. esac
  1130. done
  1131. if test -n "$ac_prev"; then
  1132. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1133. as_fn_error $? "missing argument to $ac_option"
  1134. fi
  1135. if test -n "$ac_unrecognized_opts"; then
  1136. case $enable_option_checking in
  1137. no) ;;
  1138. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1139. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1140. esac
  1141. fi
  1142. # Check all directory arguments for consistency.
  1143. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1144. datadir sysconfdir sharedstatedir localstatedir includedir \
  1145. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1146. libdir localedir mandir runstatedir
  1147. do
  1148. eval ac_val=\$$ac_var
  1149. # Remove trailing slashes.
  1150. case $ac_val in
  1151. */ )
  1152. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1153. eval $ac_var=\$ac_val;;
  1154. esac
  1155. # Be sure to have absolute directory names.
  1156. case $ac_val in
  1157. [\\/$]* | ?:[\\/]* ) continue;;
  1158. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1159. esac
  1160. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1161. done
  1162. # There might be people who depend on the old broken behavior: `$host'
  1163. # used to hold the argument of --host etc.
  1164. # FIXME: To remove some day.
  1165. build=$build_alias
  1166. host=$host_alias
  1167. target=$target_alias
  1168. # FIXME: To remove some day.
  1169. if test "x$host_alias" != x; then
  1170. if test "x$build_alias" = x; then
  1171. cross_compiling=maybe
  1172. elif test "x$build_alias" != "x$host_alias"; then
  1173. cross_compiling=yes
  1174. fi
  1175. fi
  1176. ac_tool_prefix=
  1177. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1178. test "$silent" = yes && exec 6>/dev/null
  1179. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1180. ac_ls_di=`ls -di .` &&
  1181. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1182. as_fn_error $? "working directory cannot be determined"
  1183. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1184. as_fn_error $? "pwd does not report name of working directory"
  1185. # Find the source files, if location was not specified.
  1186. if test -z "$srcdir"; then
  1187. ac_srcdir_defaulted=yes
  1188. # Try the directory containing this script, then the parent directory.
  1189. ac_confdir=`$as_dirname -- "$as_myself" ||
  1190. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1191. X"$as_myself" : 'X\(//\)[^/]' \| \
  1192. X"$as_myself" : 'X\(//\)$' \| \
  1193. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1194. $as_echo X"$as_myself" |
  1195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1196. s//\1/
  1197. q
  1198. }
  1199. /^X\(\/\/\)[^/].*/{
  1200. s//\1/
  1201. q
  1202. }
  1203. /^X\(\/\/\)$/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\).*/{
  1208. s//\1/
  1209. q
  1210. }
  1211. s/.*/./; q'`
  1212. srcdir=$ac_confdir
  1213. if test ! -r "$srcdir/$ac_unique_file"; then
  1214. srcdir=..
  1215. fi
  1216. else
  1217. ac_srcdir_defaulted=no
  1218. fi
  1219. if test ! -r "$srcdir/$ac_unique_file"; then
  1220. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1221. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1222. fi
  1223. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1224. ac_abs_confdir=`(
  1225. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1226. pwd)`
  1227. # When building in place, set srcdir=.
  1228. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1229. srcdir=.
  1230. fi
  1231. # Remove unnecessary trailing slashes from srcdir.
  1232. # Double slashes in file names in object file debugging info
  1233. # mess up M-x gdb in Emacs.
  1234. case $srcdir in
  1235. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1236. esac
  1237. for ac_var in $ac_precious_vars; do
  1238. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1239. eval ac_env_${ac_var}_value=\$${ac_var}
  1240. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1241. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1242. done
  1243. #
  1244. # Report the --help message.
  1245. #
  1246. if test "$ac_init_help" = "long"; then
  1247. # Omit some internal or obsolete options to make the list less imposing.
  1248. # This message is too long to be a string in the A/UX 3.1 sh.
  1249. cat <<_ACEOF
  1250. \`configure' configures expat 2.2.10 to adapt to many kinds of systems.
  1251. Usage: $0 [OPTION]... [VAR=VALUE]...
  1252. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1253. VAR=VALUE. See below for descriptions of some of the useful variables.
  1254. Defaults for the options are specified in brackets.
  1255. Configuration:
  1256. -h, --help display this help and exit
  1257. --help=short display options specific to this package
  1258. --help=recursive display the short help of all the included packages
  1259. -V, --version display version information and exit
  1260. -q, --quiet, --silent do not print \`checking ...' messages
  1261. --cache-file=FILE cache test results in FILE [disabled]
  1262. -C, --config-cache alias for \`--cache-file=config.cache'
  1263. -n, --no-create do not create output files
  1264. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1265. Installation directories:
  1266. --prefix=PREFIX install architecture-independent files in PREFIX
  1267. [$ac_default_prefix]
  1268. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1269. [PREFIX]
  1270. By default, \`make install' will install all the files in
  1271. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1272. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1273. for instance \`--prefix=\$HOME'.
  1274. For better control, use the options below.
  1275. Fine tuning of the installation directories:
  1276. --bindir=DIR user executables [EPREFIX/bin]
  1277. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1278. --libexecdir=DIR program executables [EPREFIX/libexec]
  1279. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1280. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1281. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1282. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1283. --libdir=DIR object code libraries [EPREFIX/lib]
  1284. --includedir=DIR C header files [PREFIX/include]
  1285. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1286. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1287. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1288. --infodir=DIR info documentation [DATAROOTDIR/info]
  1289. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1290. --mandir=DIR man documentation [DATAROOTDIR/man]
  1291. --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
  1292. --htmldir=DIR html documentation [DOCDIR]
  1293. --dvidir=DIR dvi documentation [DOCDIR]
  1294. --pdfdir=DIR pdf documentation [DOCDIR]
  1295. --psdir=DIR ps documentation [DOCDIR]
  1296. _ACEOF
  1297. cat <<\_ACEOF
  1298. Program names:
  1299. --program-prefix=PREFIX prepend PREFIX to installed program names
  1300. --program-suffix=SUFFIX append SUFFIX to installed program names
  1301. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1302. System types:
  1303. --build=BUILD configure for building on BUILD [guessed]
  1304. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1305. _ACEOF
  1306. fi
  1307. if test -n "$ac_init_help"; then
  1308. case $ac_init_help in
  1309. short | recursive ) echo "Configuration of expat 2.2.10:";;
  1310. esac
  1311. cat <<\_ACEOF
  1312. Optional Features:
  1313. --disable-option-checking ignore unrecognized --enable/--with options
  1314. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1315. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1316. --enable-silent-rules less verbose build output (undo: "make V=1")
  1317. --disable-silent-rules verbose build output (undo: "make V=0")
  1318. --enable-dependency-tracking
  1319. do not reject slow dependency extractors
  1320. --disable-dependency-tracking
  1321. speeds up one-time build
  1322. --enable-shared[=PKGS] build shared libraries [default=yes]
  1323. --enable-static[=PKGS] build static libraries [default=yes]
  1324. --enable-fast-install[=PKGS]
  1325. optimize for fast installation [default=yes]
  1326. --disable-libtool-lock avoid locking (might break parallel builds)
  1327. --enable-xml-attr-info Enable retrieving the byte offsets for attribute
  1328. names and values [default=no]
  1329. --enable-xml-context [COUNT]
  1330. Retain context around the current parse point;
  1331. default is enabled and a size of 1024 bytes
  1332. --disable-xml-context Do not retain context around the current parse point
  1333. Optional Packages:
  1334. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1335. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1336. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1337. both]
  1338. --with-aix-soname=aix|svr4|both
  1339. shared library versioning (aka "SONAME") variant to
  1340. provide on AIX, [default=aix].
  1341. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1342. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1343. compiler's sysroot if not specified).
  1344. --without-xmlwf do not build xmlwf
  1345. --without-examples do not build examples [default=included]
  1346. --without-tests do not build tests [default=included]
  1347. --with-libbsd utilize libbsd (for arc4random_buf)
  1348. --with-getrandom enforce the use of getrandom function in the system
  1349. [default=check]
  1350. --without-getrandom skip auto detect of getrandom [default=check]
  1351. --with-sys-getrandom enforce the use of syscall SYS_getrandom function in
  1352. the system [default=check]
  1353. --without-sys-getrandom skip auto detect of syscall SYS_getrandom
  1354. [default=check]
  1355. --with-docbook enforce XML to man page compilation [default=check]
  1356. --without-docbook skip XML to man page compilation [default=check]
  1357. Some influential environment variables:
  1358. CC C compiler command
  1359. CFLAGS C compiler flags
  1360. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1361. nonstandard directory <lib dir>
  1362. LIBS libraries to pass to the linker, e.g. -l<library>
  1363. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1364. you have headers in a nonstandard directory <include dir>
  1365. LT_SYS_LIBRARY_PATH
  1366. User-defined run-time library search path.
  1367. CPP C preprocessor
  1368. CXX C++ compiler command
  1369. CXXFLAGS C++ compiler flags
  1370. CXXCPP C++ preprocessor
  1371. DOCBOOK_TO_MAN
  1372. docbook2x-man command
  1373. Use these variables to override the choices made by `configure' or to help
  1374. it to find libraries and programs with nonstandard names/locations.
  1375. Report bugs to <[email protected]>.
  1376. _ACEOF
  1377. ac_status=$?
  1378. fi
  1379. if test "$ac_init_help" = "recursive"; then
  1380. # If there are subdirs, report their specific --help.
  1381. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1382. test -d "$ac_dir" ||
  1383. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1384. continue
  1385. ac_builddir=.
  1386. case "$ac_dir" in
  1387. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1388. *)
  1389. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1390. # A ".." for each directory in $ac_dir_suffix.
  1391. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1392. case $ac_top_builddir_sub in
  1393. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1394. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1395. esac ;;
  1396. esac
  1397. ac_abs_top_builddir=$ac_pwd
  1398. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1399. # for backward compatibility:
  1400. ac_top_builddir=$ac_top_build_prefix
  1401. case $srcdir in
  1402. .) # We are building in place.
  1403. ac_srcdir=.
  1404. ac_top_srcdir=$ac_top_builddir_sub
  1405. ac_abs_top_srcdir=$ac_pwd ;;
  1406. [\\/]* | ?:[\\/]* ) # Absolute name.
  1407. ac_srcdir=$srcdir$ac_dir_suffix;
  1408. ac_top_srcdir=$srcdir
  1409. ac_abs_top_srcdir=$srcdir ;;
  1410. *) # Relative name.
  1411. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1412. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1413. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1414. esac
  1415. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1416. cd "$ac_dir" || { ac_status=$?; continue; }
  1417. # Check for guested configure.
  1418. if test -f "$ac_srcdir/configure.gnu"; then
  1419. echo &&
  1420. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1421. elif test -f "$ac_srcdir/configure"; then
  1422. echo &&
  1423. $SHELL "$ac_srcdir/configure" --help=recursive
  1424. else
  1425. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1426. fi || ac_status=$?
  1427. cd "$ac_pwd" || { ac_status=$?; break; }
  1428. done
  1429. fi
  1430. test -n "$ac_init_help" && exit $ac_status
  1431. if $ac_init_version; then
  1432. cat <<\_ACEOF
  1433. expat configure 2.2.10
  1434. generated by GNU Autoconf 2.69
  1435. Copyright (C) 2012 Free Software Foundation, Inc.
  1436. This configure script is free software; the Free Software Foundation
  1437. gives unlimited permission to copy, distribute and modify it.
  1438. _ACEOF
  1439. exit
  1440. fi
  1441. ## ------------------------ ##
  1442. ## Autoconf initialization. ##
  1443. ## ------------------------ ##
  1444. # ac_fn_c_try_compile LINENO
  1445. # --------------------------
  1446. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1447. ac_fn_c_try_compile ()
  1448. {
  1449. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1450. rm -f conftest.$ac_objext
  1451. if { { ac_try="$ac_compile"
  1452. case "(($ac_try" in
  1453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1454. *) ac_try_echo=$ac_try;;
  1455. esac
  1456. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1457. $as_echo "$ac_try_echo"; } >&5
  1458. (eval "$ac_compile") 2>conftest.err
  1459. ac_status=$?
  1460. if test -s conftest.err; then
  1461. grep -v '^ *+' conftest.err >conftest.er1
  1462. cat conftest.er1 >&5
  1463. mv -f conftest.er1 conftest.err
  1464. fi
  1465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1466. test $ac_status = 0; } && {
  1467. test -z "$ac_c_werror_flag" ||
  1468. test ! -s conftest.err
  1469. } && test -s conftest.$ac_objext; then :
  1470. ac_retval=0
  1471. else
  1472. $as_echo "$as_me: failed program was:" >&5
  1473. sed 's/^/| /' conftest.$ac_ext >&5
  1474. ac_retval=1
  1475. fi
  1476. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1477. as_fn_set_status $ac_retval
  1478. } # ac_fn_c_try_compile
  1479. # ac_fn_c_try_link LINENO
  1480. # -----------------------
  1481. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1482. ac_fn_c_try_link ()
  1483. {
  1484. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1485. rm -f conftest.$ac_objext conftest$ac_exeext
  1486. if { { ac_try="$ac_link"
  1487. case "(($ac_try" in
  1488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1489. *) ac_try_echo=$ac_try;;
  1490. esac
  1491. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1492. $as_echo "$ac_try_echo"; } >&5
  1493. (eval "$ac_link") 2>conftest.err
  1494. ac_status=$?
  1495. if test -s conftest.err; then
  1496. grep -v '^ *+' conftest.err >conftest.er1
  1497. cat conftest.er1 >&5
  1498. mv -f conftest.er1 conftest.err
  1499. fi
  1500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1501. test $ac_status = 0; } && {
  1502. test -z "$ac_c_werror_flag" ||
  1503. test ! -s conftest.err
  1504. } && test -s conftest$ac_exeext && {
  1505. test "$cross_compiling" = yes ||
  1506. test -x conftest$ac_exeext
  1507. }; then :
  1508. ac_retval=0
  1509. else
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=1
  1513. fi
  1514. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1515. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1516. # interfere with the next link command; also delete a directory that is
  1517. # left behind by Apple's compiler. We do this before executing the actions.
  1518. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1519. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1520. as_fn_set_status $ac_retval
  1521. } # ac_fn_c_try_link
  1522. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1523. # -------------------------------------------------------
  1524. # Tests whether HEADER exists and can be compiled using the include files in
  1525. # INCLUDES, setting the cache variable VAR accordingly.
  1526. ac_fn_c_check_header_compile ()
  1527. {
  1528. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1530. $as_echo_n "checking for $2... " >&6; }
  1531. if eval \${$3+:} false; then :
  1532. $as_echo_n "(cached) " >&6
  1533. else
  1534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1535. /* end confdefs.h. */
  1536. $4
  1537. #include <$2>
  1538. _ACEOF
  1539. if ac_fn_c_try_compile "$LINENO"; then :
  1540. eval "$3=yes"
  1541. else
  1542. eval "$3=no"
  1543. fi
  1544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1545. fi
  1546. eval ac_res=\$$3
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1548. $as_echo "$ac_res" >&6; }
  1549. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1550. } # ac_fn_c_check_header_compile
  1551. # ac_fn_c_try_cpp LINENO
  1552. # ----------------------
  1553. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1554. ac_fn_c_try_cpp ()
  1555. {
  1556. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1557. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1558. case "(($ac_try" in
  1559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1560. *) ac_try_echo=$ac_try;;
  1561. esac
  1562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1563. $as_echo "$ac_try_echo"; } >&5
  1564. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1565. ac_status=$?
  1566. if test -s conftest.err; then
  1567. grep -v '^ *+' conftest.err >conftest.er1
  1568. cat conftest.er1 >&5
  1569. mv -f conftest.er1 conftest.err
  1570. fi
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; } > conftest.i && {
  1573. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1574. test ! -s conftest.err
  1575. }; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: failed program was:" >&5
  1579. sed 's/^/| /' conftest.$ac_ext >&5
  1580. ac_retval=1
  1581. fi
  1582. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1583. as_fn_set_status $ac_retval
  1584. } # ac_fn_c_try_cpp
  1585. # ac_fn_c_try_run LINENO
  1586. # ----------------------
  1587. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1588. # that executables *can* be run.
  1589. ac_fn_c_try_run ()
  1590. {
  1591. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1592. if { { ac_try="$ac_link"
  1593. case "(($ac_try" in
  1594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1595. *) ac_try_echo=$ac_try;;
  1596. esac
  1597. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1598. $as_echo "$ac_try_echo"; } >&5
  1599. (eval "$ac_link") 2>&5
  1600. ac_status=$?
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1610. ac_status=$?
  1611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1612. test $ac_status = 0; }; }; then :
  1613. ac_retval=0
  1614. else
  1615. $as_echo "$as_me: program exited with status $ac_status" >&5
  1616. $as_echo "$as_me: failed program was:" >&5
  1617. sed 's/^/| /' conftest.$ac_ext >&5
  1618. ac_retval=$ac_status
  1619. fi
  1620. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1621. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1622. as_fn_set_status $ac_retval
  1623. } # ac_fn_c_try_run
  1624. # ac_fn_c_check_func LINENO FUNC VAR
  1625. # ----------------------------------
  1626. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1627. ac_fn_c_check_func ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1631. $as_echo_n "checking for $2... " >&6; }
  1632. if eval \${$3+:} false; then :
  1633. $as_echo_n "(cached) " >&6
  1634. else
  1635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1636. /* end confdefs.h. */
  1637. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1638. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1639. #define $2 innocuous_$2
  1640. /* System header to define __stub macros and hopefully few prototypes,
  1641. which can conflict with char $2 (); below.
  1642. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1643. <limits.h> exists even on freestanding compilers. */
  1644. #ifdef __STDC__
  1645. # include <limits.h>
  1646. #else
  1647. # include <assert.h>
  1648. #endif
  1649. #undef $2
  1650. /* Override any GCC internal prototype to avoid an error.
  1651. Use char because int might match the return type of a GCC
  1652. builtin and then its argument prototype would still apply. */
  1653. #ifdef __cplusplus
  1654. extern "C"
  1655. #endif
  1656. char $2 ();
  1657. /* The GNU C library defines this for functions which it implements
  1658. to always fail with ENOSYS. Some functions are actually named
  1659. something starting with __ and the normal name is an alias. */
  1660. #if defined __stub_$2 || defined __stub___$2
  1661. choke me
  1662. #endif
  1663. int
  1664. main ()
  1665. {
  1666. return $2 ();
  1667. ;
  1668. return 0;
  1669. }
  1670. _ACEOF
  1671. if ac_fn_c_try_link "$LINENO"; then :
  1672. eval "$3=yes"
  1673. else
  1674. eval "$3=no"
  1675. fi
  1676. rm -f core conftest.err conftest.$ac_objext \
  1677. conftest$ac_exeext conftest.$ac_ext
  1678. fi
  1679. eval ac_res=\$$3
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1681. $as_echo "$ac_res" >&6; }
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. } # ac_fn_c_check_func
  1684. # ac_fn_cxx_try_compile LINENO
  1685. # ----------------------------
  1686. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1687. ac_fn_cxx_try_compile ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. rm -f conftest.$ac_objext
  1691. if { { ac_try="$ac_compile"
  1692. case "(($ac_try" in
  1693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1694. *) ac_try_echo=$ac_try;;
  1695. esac
  1696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1697. $as_echo "$ac_try_echo"; } >&5
  1698. (eval "$ac_compile") 2>conftest.err
  1699. ac_status=$?
  1700. if test -s conftest.err; then
  1701. grep -v '^ *+' conftest.err >conftest.er1
  1702. cat conftest.er1 >&5
  1703. mv -f conftest.er1 conftest.err
  1704. fi
  1705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1706. test $ac_status = 0; } && {
  1707. test -z "$ac_cxx_werror_flag" ||
  1708. test ! -s conftest.err
  1709. } && test -s conftest.$ac_objext; then :
  1710. ac_retval=0
  1711. else
  1712. $as_echo "$as_me: failed program was:" >&5
  1713. sed 's/^/| /' conftest.$ac_ext >&5
  1714. ac_retval=1
  1715. fi
  1716. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1717. as_fn_set_status $ac_retval
  1718. } # ac_fn_cxx_try_compile
  1719. # ac_fn_cxx_try_cpp LINENO
  1720. # ------------------------
  1721. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1722. ac_fn_cxx_try_cpp ()
  1723. {
  1724. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1725. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1726. case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo"; } >&5
  1732. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1733. ac_status=$?
  1734. if test -s conftest.err; then
  1735. grep -v '^ *+' conftest.err >conftest.er1
  1736. cat conftest.er1 >&5
  1737. mv -f conftest.er1 conftest.err
  1738. fi
  1739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1740. test $ac_status = 0; } > conftest.i && {
  1741. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1742. test ! -s conftest.err
  1743. }; then :
  1744. ac_retval=0
  1745. else
  1746. $as_echo "$as_me: failed program was:" >&5
  1747. sed 's/^/| /' conftest.$ac_ext >&5
  1748. ac_retval=1
  1749. fi
  1750. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1751. as_fn_set_status $ac_retval
  1752. } # ac_fn_cxx_try_cpp
  1753. # ac_fn_cxx_try_link LINENO
  1754. # -------------------------
  1755. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1756. ac_fn_cxx_try_link ()
  1757. {
  1758. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1759. rm -f conftest.$ac_objext conftest$ac_exeext
  1760. if { { ac_try="$ac_link"
  1761. case "(($ac_try" in
  1762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1763. *) ac_try_echo=$ac_try;;
  1764. esac
  1765. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1766. $as_echo "$ac_try_echo"; } >&5
  1767. (eval "$ac_link") 2>conftest.err
  1768. ac_status=$?
  1769. if test -s conftest.err; then
  1770. grep -v '^ *+' conftest.err >conftest.er1
  1771. cat conftest.er1 >&5
  1772. mv -f conftest.er1 conftest.err
  1773. fi
  1774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1775. test $ac_status = 0; } && {
  1776. test -z "$ac_cxx_werror_flag" ||
  1777. test ! -s conftest.err
  1778. } && test -s conftest$ac_exeext && {
  1779. test "$cross_compiling" = yes ||
  1780. test -x conftest$ac_exeext
  1781. }; then :
  1782. ac_retval=0
  1783. else
  1784. $as_echo "$as_me: failed program was:" >&5
  1785. sed 's/^/| /' conftest.$ac_ext >&5
  1786. ac_retval=1
  1787. fi
  1788. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1789. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1790. # interfere with the next link command; also delete a directory that is
  1791. # left behind by Apple's compiler. We do this before executing the actions.
  1792. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1793. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1794. as_fn_set_status $ac_retval
  1795. } # ac_fn_cxx_try_link
  1796. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1797. # -------------------------------------------
  1798. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1799. # variable VAR accordingly.
  1800. ac_fn_c_check_type ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1804. $as_echo_n "checking for $2... " >&6; }
  1805. if eval \${$3+:} false; then :
  1806. $as_echo_n "(cached) " >&6
  1807. else
  1808. eval "$3=no"
  1809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1810. /* end confdefs.h. */
  1811. $4
  1812. int
  1813. main ()
  1814. {
  1815. if (sizeof ($2))
  1816. return 0;
  1817. ;
  1818. return 0;
  1819. }
  1820. _ACEOF
  1821. if ac_fn_c_try_compile "$LINENO"; then :
  1822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1823. /* end confdefs.h. */
  1824. $4
  1825. int
  1826. main ()
  1827. {
  1828. if (sizeof (($2)))
  1829. return 0;
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. if ac_fn_c_try_compile "$LINENO"; then :
  1835. else
  1836. eval "$3=yes"
  1837. fi
  1838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1839. fi
  1840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1841. fi
  1842. eval ac_res=\$$3
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1844. $as_echo "$ac_res" >&6; }
  1845. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1846. } # ac_fn_c_check_type
  1847. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1848. # -------------------------------------------------------
  1849. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1850. # the include files in INCLUDES and setting the cache variable VAR
  1851. # accordingly.
  1852. ac_fn_c_check_header_mongrel ()
  1853. {
  1854. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1855. if eval \${$3+:} false; then :
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1857. $as_echo_n "checking for $2... " >&6; }
  1858. if eval \${$3+:} false; then :
  1859. $as_echo_n "(cached) " >&6
  1860. fi
  1861. eval ac_res=\$$3
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1863. $as_echo "$ac_res" >&6; }
  1864. else
  1865. # Is the header compilable?
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1867. $as_echo_n "checking $2 usability... " >&6; }
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. $4
  1871. #include <$2>
  1872. _ACEOF
  1873. if ac_fn_c_try_compile "$LINENO"; then :
  1874. ac_header_compiler=yes
  1875. else
  1876. ac_header_compiler=no
  1877. fi
  1878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1880. $as_echo "$ac_header_compiler" >&6; }
  1881. # Is the header present?
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1883. $as_echo_n "checking $2 presence... " >&6; }
  1884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1885. /* end confdefs.h. */
  1886. #include <$2>
  1887. _ACEOF
  1888. if ac_fn_c_try_cpp "$LINENO"; then :
  1889. ac_header_preproc=yes
  1890. else
  1891. ac_header_preproc=no
  1892. fi
  1893. rm -f conftest.err conftest.i conftest.$ac_ext
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1895. $as_echo "$ac_header_preproc" >&6; }
  1896. # So? What about this header?
  1897. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1898. yes:no: )
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1900. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1902. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1903. ;;
  1904. no:yes:* )
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1906. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1908. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1910. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1912. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1914. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1915. ( $as_echo "## -------------------------------------- ##
  1916. ## Report this to [email protected] ##
  1917. ## -------------------------------------- ##"
  1918. ) | sed "s/^/$as_me: WARNING: /" >&2
  1919. ;;
  1920. esac
  1921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1922. $as_echo_n "checking for $2... " >&6; }
  1923. if eval \${$3+:} false; then :
  1924. $as_echo_n "(cached) " >&6
  1925. else
  1926. eval "$3=\$ac_header_compiler"
  1927. fi
  1928. eval ac_res=\$$3
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1930. $as_echo "$ac_res" >&6; }
  1931. fi
  1932. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1933. } # ac_fn_c_check_header_mongrel
  1934. cat >config.log <<_ACEOF
  1935. This file contains any messages produced by compilers while
  1936. running configure, to aid debugging if configure makes a mistake.
  1937. It was created by expat $as_me 2.2.10, which was
  1938. generated by GNU Autoconf 2.69. Invocation command line was
  1939. $ $0 $@
  1940. _ACEOF
  1941. exec 5>>config.log
  1942. {
  1943. cat <<_ASUNAME
  1944. ## --------- ##
  1945. ## Platform. ##
  1946. ## --------- ##
  1947. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1948. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1949. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1950. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1951. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1952. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1953. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1954. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1955. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1956. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1957. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1958. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1959. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1960. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1961. _ASUNAME
  1962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1963. for as_dir in $PATH
  1964. do
  1965. IFS=$as_save_IFS
  1966. test -z "$as_dir" && as_dir=.
  1967. $as_echo "PATH: $as_dir"
  1968. done
  1969. IFS=$as_save_IFS
  1970. } >&5
  1971. cat >&5 <<_ACEOF
  1972. ## ----------- ##
  1973. ## Core tests. ##
  1974. ## ----------- ##
  1975. _ACEOF
  1976. # Keep a trace of the command line.
  1977. # Strip out --no-create and --no-recursion so they do not pile up.
  1978. # Strip out --silent because we don't want to record it for future runs.
  1979. # Also quote any args containing shell meta-characters.
  1980. # Make two passes to allow for proper duplicate-argument suppression.
  1981. ac_configure_args=
  1982. ac_configure_args0=
  1983. ac_configure_args1=
  1984. ac_must_keep_next=false
  1985. for ac_pass in 1 2
  1986. do
  1987. for ac_arg
  1988. do
  1989. case $ac_arg in
  1990. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1991. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1992. | -silent | --silent | --silen | --sile | --sil)
  1993. continue ;;
  1994. *\'*)
  1995. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1996. esac
  1997. case $ac_pass in
  1998. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1999. 2)
  2000. as_fn_append ac_configure_args1 " '$ac_arg'"
  2001. if test $ac_must_keep_next = true; then
  2002. ac_must_keep_next=false # Got value, back to normal.
  2003. else
  2004. case $ac_arg in
  2005. *=* | --config-cache | -C | -disable-* | --disable-* \
  2006. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2007. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2008. | -with-* | --with-* | -without-* | --without-* | --x)
  2009. case "$ac_configure_args0 " in
  2010. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2011. esac
  2012. ;;
  2013. -* ) ac_must_keep_next=true ;;
  2014. esac
  2015. fi
  2016. as_fn_append ac_configure_args " '$ac_arg'"
  2017. ;;
  2018. esac
  2019. done
  2020. done
  2021. { ac_configure_args0=; unset ac_configure_args0;}
  2022. { ac_configure_args1=; unset ac_configure_args1;}
  2023. # When interrupted or exit'd, cleanup temporary files, and complete
  2024. # config.log. We remove comments because anyway the quotes in there
  2025. # would cause problems or look ugly.
  2026. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2027. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2028. trap 'exit_status=$?
  2029. # Save into config.log some information that might help in debugging.
  2030. {
  2031. echo
  2032. $as_echo "## ---------------- ##
  2033. ## Cache variables. ##
  2034. ## ---------------- ##"
  2035. echo
  2036. # The following way of writing the cache mishandles newlines in values,
  2037. (
  2038. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2039. eval ac_val=\$$ac_var
  2040. case $ac_val in #(
  2041. *${as_nl}*)
  2042. case $ac_var in #(
  2043. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2044. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2045. esac
  2046. case $ac_var in #(
  2047. _ | IFS | as_nl) ;; #(
  2048. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2049. *) { eval $ac_var=; unset $ac_var;} ;;
  2050. esac ;;
  2051. esac
  2052. done
  2053. (set) 2>&1 |
  2054. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2055. *${as_nl}ac_space=\ *)
  2056. sed -n \
  2057. "s/'\''/'\''\\\\'\'''\''/g;
  2058. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2059. ;; #(
  2060. *)
  2061. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2062. ;;
  2063. esac |
  2064. sort
  2065. )
  2066. echo
  2067. $as_echo "## ----------------- ##
  2068. ## Output variables. ##
  2069. ## ----------------- ##"
  2070. echo
  2071. for ac_var in $ac_subst_vars
  2072. do
  2073. eval ac_val=\$$ac_var
  2074. case $ac_val in
  2075. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2076. esac
  2077. $as_echo "$ac_var='\''$ac_val'\''"
  2078. done | sort
  2079. echo
  2080. if test -n "$ac_subst_files"; then
  2081. $as_echo "## ------------------- ##
  2082. ## File substitutions. ##
  2083. ## ------------------- ##"
  2084. echo
  2085. for ac_var in $ac_subst_files
  2086. do
  2087. eval ac_val=\$$ac_var
  2088. case $ac_val in
  2089. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2090. esac
  2091. $as_echo "$ac_var='\''$ac_val'\''"
  2092. done | sort
  2093. echo
  2094. fi
  2095. if test -s confdefs.h; then
  2096. $as_echo "## ----------- ##
  2097. ## confdefs.h. ##
  2098. ## ----------- ##"
  2099. echo
  2100. cat confdefs.h
  2101. echo
  2102. fi
  2103. test "$ac_signal" != 0 &&
  2104. $as_echo "$as_me: caught signal $ac_signal"
  2105. $as_echo "$as_me: exit $exit_status"
  2106. } >&5
  2107. rm -f core *.core core.conftest.* &&
  2108. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2109. exit $exit_status
  2110. ' 0
  2111. for ac_signal in 1 2 13 15; do
  2112. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2113. done
  2114. ac_signal=0
  2115. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2116. rm -f -r conftest* confdefs.h
  2117. $as_echo "/* confdefs.h */" > confdefs.h
  2118. # Predefined preprocessor variables.
  2119. cat >>confdefs.h <<_ACEOF
  2120. #define PACKAGE_NAME "$PACKAGE_NAME"
  2121. _ACEOF
  2122. cat >>confdefs.h <<_ACEOF
  2123. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2124. _ACEOF
  2125. cat >>confdefs.h <<_ACEOF
  2126. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2127. _ACEOF
  2128. cat >>confdefs.h <<_ACEOF
  2129. #define PACKAGE_STRING "$PACKAGE_STRING"
  2130. _ACEOF
  2131. cat >>confdefs.h <<_ACEOF
  2132. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2133. _ACEOF
  2134. cat >>confdefs.h <<_ACEOF
  2135. #define PACKAGE_URL "$PACKAGE_URL"
  2136. _ACEOF
  2137. # Let the site file select an alternate cache file if it wants to.
  2138. # Prefer an explicitly selected file to automatically selected ones.
  2139. ac_site_file1=NONE
  2140. ac_site_file2=NONE
  2141. if test -n "$CONFIG_SITE"; then
  2142. # We do not want a PATH search for config.site.
  2143. case $CONFIG_SITE in #((
  2144. -*) ac_site_file1=./$CONFIG_SITE;;
  2145. */*) ac_site_file1=$CONFIG_SITE;;
  2146. *) ac_site_file1=./$CONFIG_SITE;;
  2147. esac
  2148. elif test "x$prefix" != xNONE; then
  2149. ac_site_file1=$prefix/share/config.site
  2150. ac_site_file2=$prefix/etc/config.site
  2151. else
  2152. ac_site_file1=$ac_default_prefix/share/config.site
  2153. ac_site_file2=$ac_default_prefix/etc/config.site
  2154. fi
  2155. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2156. do
  2157. test "x$ac_site_file" = xNONE && continue
  2158. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2160. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2161. sed 's/^/| /' "$ac_site_file" >&5
  2162. . "$ac_site_file" \
  2163. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2165. as_fn_error $? "failed to load site script $ac_site_file
  2166. See \`config.log' for more details" "$LINENO" 5; }
  2167. fi
  2168. done
  2169. if test -r "$cache_file"; then
  2170. # Some versions of bash will fail to source /dev/null (special files
  2171. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2172. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2174. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2175. case $cache_file in
  2176. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2177. *) . "./$cache_file";;
  2178. esac
  2179. fi
  2180. else
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2182. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2183. >$cache_file
  2184. fi
  2185. as_fn_append ac_header_list " stdlib.h"
  2186. as_fn_append ac_header_list " unistd.h"
  2187. as_fn_append ac_header_list " sys/param.h"
  2188. # Check that the precious variables saved in the cache have kept the same
  2189. # value.
  2190. ac_cache_corrupted=false
  2191. for ac_var in $ac_precious_vars; do
  2192. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2193. eval ac_new_set=\$ac_env_${ac_var}_set
  2194. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2195. eval ac_new_val=\$ac_env_${ac_var}_value
  2196. case $ac_old_set,$ac_new_set in
  2197. set,)
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2199. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2200. ac_cache_corrupted=: ;;
  2201. ,set)
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2203. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2204. ac_cache_corrupted=: ;;
  2205. ,);;
  2206. *)
  2207. if test "x$ac_old_val" != "x$ac_new_val"; then
  2208. # differences in whitespace do not lead to failure.
  2209. ac_old_val_w=`echo x $ac_old_val`
  2210. ac_new_val_w=`echo x $ac_new_val`
  2211. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2213. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2214. ac_cache_corrupted=:
  2215. else
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2217. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2218. eval $ac_var=\$ac_old_val
  2219. fi
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2221. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2223. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2224. fi;;
  2225. esac
  2226. # Pass precious variables to config.status.
  2227. if test "$ac_new_set" = set; then
  2228. case $ac_new_val in
  2229. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2230. *) ac_arg=$ac_var=$ac_new_val ;;
  2231. esac
  2232. case " $ac_configure_args " in
  2233. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2234. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2235. esac
  2236. fi
  2237. done
  2238. if $ac_cache_corrupted; then
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2242. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2243. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2244. fi
  2245. ## -------------------- ##
  2246. ## Main body of script. ##
  2247. ## -------------------- ##
  2248. ac_ext=c
  2249. ac_cpp='$CPP $CPPFLAGS'
  2250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2253. ac_aux_dir=
  2254. for ac_dir in conftools "$srcdir"/conftools; do
  2255. if test -f "$ac_dir/install-sh"; then
  2256. ac_aux_dir=$ac_dir
  2257. ac_install_sh="$ac_aux_dir/install-sh -c"
  2258. break
  2259. elif test -f "$ac_dir/install.sh"; then
  2260. ac_aux_dir=$ac_dir
  2261. ac_install_sh="$ac_aux_dir/install.sh -c"
  2262. break
  2263. elif test -f "$ac_dir/shtool"; then
  2264. ac_aux_dir=$ac_dir
  2265. ac_install_sh="$ac_aux_dir/shtool install -c"
  2266. break
  2267. fi
  2268. done
  2269. if test -z "$ac_aux_dir"; then
  2270. as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
  2271. fi
  2272. # These three variables are undocumented and unsupported,
  2273. # and are intended to be withdrawn in a future Autoconf release.
  2274. # They can cause serious problems if a builder's source tree is in a directory
  2275. # whose full name contains unusual characters.
  2276. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2277. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2278. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2279. # Make sure we can run config.sub.
  2280. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2281. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2283. $as_echo_n "checking build system type... " >&6; }
  2284. if ${ac_cv_build+:} false; then :
  2285. $as_echo_n "(cached) " >&6
  2286. else
  2287. ac_build_alias=$build_alias
  2288. test "x$ac_build_alias" = x &&
  2289. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2290. test "x$ac_build_alias" = x &&
  2291. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2292. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2293. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2294. fi
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2296. $as_echo "$ac_cv_build" >&6; }
  2297. case $ac_cv_build in
  2298. *-*-*) ;;
  2299. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2300. esac
  2301. build=$ac_cv_build
  2302. ac_save_IFS=$IFS; IFS='-'
  2303. set x $ac_cv_build
  2304. shift
  2305. build_cpu=$1
  2306. build_vendor=$2
  2307. shift; shift
  2308. # Remember, the first character of IFS is used to create $*,
  2309. # except with old shells:
  2310. build_os=$*
  2311. IFS=$ac_save_IFS
  2312. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2314. $as_echo_n "checking host system type... " >&6; }
  2315. if ${ac_cv_host+:} false; then :
  2316. $as_echo_n "(cached) " >&6
  2317. else
  2318. if test "x$host_alias" = x; then
  2319. ac_cv_host=$ac_cv_build
  2320. else
  2321. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2322. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2323. fi
  2324. fi
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2326. $as_echo "$ac_cv_host" >&6; }
  2327. case $ac_cv_host in
  2328. *-*-*) ;;
  2329. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2330. esac
  2331. host=$ac_cv_host
  2332. ac_save_IFS=$IFS; IFS='-'
  2333. set x $ac_cv_host
  2334. shift
  2335. host_cpu=$1
  2336. host_vendor=$2
  2337. shift; shift
  2338. # Remember, the first character of IFS is used to create $*,
  2339. # except with old shells:
  2340. host_os=$*
  2341. IFS=$ac_save_IFS
  2342. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2343. am__api_version='1.16'
  2344. # Find a good install program. We prefer a C program (faster),
  2345. # so one script is as good as another. But avoid the broken or
  2346. # incompatible versions:
  2347. # SysV /etc/install, /usr/sbin/install
  2348. # SunOS /usr/etc/install
  2349. # IRIX /sbin/install
  2350. # AIX /bin/install
  2351. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2352. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2353. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2354. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2355. # OS/2's system install, which has a completely different semantic
  2356. # ./install, which can be erroneously created by make from ./install.sh.
  2357. # Reject install programs that cannot install multiple files.
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2359. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2360. if test -z "$INSTALL"; then
  2361. if ${ac_cv_path_install+:} false; then :
  2362. $as_echo_n "(cached) " >&6
  2363. else
  2364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2365. for as_dir in $PATH
  2366. do
  2367. IFS=$as_save_IFS
  2368. test -z "$as_dir" && as_dir=.
  2369. # Account for people who put trailing slashes in PATH elements.
  2370. case $as_dir/ in #((
  2371. ./ | .// | /[cC]/* | \
  2372. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2373. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2374. /usr/ucb/* ) ;;
  2375. *)
  2376. # OSF1 and SCO ODT 3.0 have their own names for install.
  2377. # Don't use installbsd from OSF since it installs stuff as root
  2378. # by default.
  2379. for ac_prog in ginstall scoinst install; do
  2380. for ac_exec_ext in '' $ac_executable_extensions; do
  2381. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2382. if test $ac_prog = install &&
  2383. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2384. # AIX install. It has an incompatible calling convention.
  2385. :
  2386. elif test $ac_prog = install &&
  2387. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2388. # program-specific install script used by HP pwplus--don't use.
  2389. :
  2390. else
  2391. rm -rf conftest.one conftest.two conftest.dir
  2392. echo one > conftest.one
  2393. echo two > conftest.two
  2394. mkdir conftest.dir
  2395. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2396. test -s conftest.one && test -s conftest.two &&
  2397. test -s conftest.dir/conftest.one &&
  2398. test -s conftest.dir/conftest.two
  2399. then
  2400. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2401. break 3
  2402. fi
  2403. fi
  2404. fi
  2405. done
  2406. done
  2407. ;;
  2408. esac
  2409. done
  2410. IFS=$as_save_IFS
  2411. rm -rf conftest.one conftest.two conftest.dir
  2412. fi
  2413. if test "${ac_cv_path_install+set}" = set; then
  2414. INSTALL=$ac_cv_path_install
  2415. else
  2416. # As a last resort, use the slow shell script. Don't cache a
  2417. # value for INSTALL within a source directory, because that will
  2418. # break other packages using the cache if that directory is
  2419. # removed, or if the value is a relative name.
  2420. INSTALL=$ac_install_sh
  2421. fi
  2422. fi
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2424. $as_echo "$INSTALL" >&6; }
  2425. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2426. # It thinks the first close brace ends the variable substitution.
  2427. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2428. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2429. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2431. $as_echo_n "checking whether build environment is sane... " >&6; }
  2432. # Reject unsafe characters in $srcdir or the absolute working directory
  2433. # name. Accept space and tab only in the latter.
  2434. am_lf='
  2435. '
  2436. case `pwd` in
  2437. *[\\\"\#\$\&\'\`$am_lf]*)
  2438. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2439. esac
  2440. case $srcdir in
  2441. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2442. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2443. esac
  2444. # Do 'set' in a subshell so we don't clobber the current shell's
  2445. # arguments. Must try -L first in case configure is actually a
  2446. # symlink; some systems play weird games with the mod time of symlinks
  2447. # (eg FreeBSD returns the mod time of the symlink's containing
  2448. # directory).
  2449. if (
  2450. am_has_slept=no
  2451. for am_try in 1 2; do
  2452. echo "timestamp, slept: $am_has_slept" > conftest.file
  2453. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2454. if test "$*" = "X"; then
  2455. # -L didn't work.
  2456. set X `ls -t "$srcdir/configure" conftest.file`
  2457. fi
  2458. if test "$*" != "X $srcdir/configure conftest.file" \
  2459. && test "$*" != "X conftest.file $srcdir/configure"; then
  2460. # If neither matched, then we have a broken ls. This can happen
  2461. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2462. # broken ls alias from the environment. This has actually
  2463. # happened. Such a system could not be considered "sane".
  2464. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2465. alias in your environment" "$LINENO" 5
  2466. fi
  2467. if test "$2" = conftest.file || test $am_try -eq 2; then
  2468. break
  2469. fi
  2470. # Just in case.
  2471. sleep 1
  2472. am_has_slept=yes
  2473. done
  2474. test "$2" = conftest.file
  2475. )
  2476. then
  2477. # Ok.
  2478. :
  2479. else
  2480. as_fn_error $? "newly created file is older than distributed files!
  2481. Check your system clock" "$LINENO" 5
  2482. fi
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2484. $as_echo "yes" >&6; }
  2485. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2486. # generated files are strictly newer.
  2487. am_sleep_pid=
  2488. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2489. ( sleep 1 ) &
  2490. am_sleep_pid=$!
  2491. fi
  2492. rm -f conftest.file
  2493. test "$program_prefix" != NONE &&
  2494. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2495. # Use a double $ so make ignores it.
  2496. test "$program_suffix" != NONE &&
  2497. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2498. # Double any \ or $.
  2499. # By default was `s,x,x', remove it if useless.
  2500. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2501. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2502. # Expand $ac_aux_dir to an absolute path.
  2503. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2504. if test x"${MISSING+set}" != xset; then
  2505. case $am_aux_dir in
  2506. *\ * | *\ *)
  2507. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2508. *)
  2509. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2510. esac
  2511. fi
  2512. # Use eval to expand $SHELL
  2513. if eval "$MISSING --is-lightweight"; then
  2514. am_missing_run="$MISSING "
  2515. else
  2516. am_missing_run=
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2518. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2519. fi
  2520. if test x"${install_sh+set}" != xset; then
  2521. case $am_aux_dir in
  2522. *\ * | *\ *)
  2523. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2524. *)
  2525. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2526. esac
  2527. fi
  2528. # Installed binaries are usually stripped using 'strip' when the user
  2529. # run "make install-strip". However 'strip' might not be the right
  2530. # tool to use in cross-compilation environments, therefore Automake
  2531. # will honor the 'STRIP' environment variable to overrule this program.
  2532. if test "$cross_compiling" != no; then
  2533. if test -n "$ac_tool_prefix"; then
  2534. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2535. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2537. $as_echo_n "checking for $ac_word... " >&6; }
  2538. if ${ac_cv_prog_STRIP+:} false; then :
  2539. $as_echo_n "(cached) " >&6
  2540. else
  2541. if test -n "$STRIP"; then
  2542. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2543. else
  2544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2545. for as_dir in $PATH
  2546. do
  2547. IFS=$as_save_IFS
  2548. test -z "$as_dir" && as_dir=.
  2549. for ac_exec_ext in '' $ac_executable_extensions; do
  2550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2551. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2553. break 2
  2554. fi
  2555. done
  2556. done
  2557. IFS=$as_save_IFS
  2558. fi
  2559. fi
  2560. STRIP=$ac_cv_prog_STRIP
  2561. if test -n "$STRIP"; then
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2563. $as_echo "$STRIP" >&6; }
  2564. else
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2566. $as_echo "no" >&6; }
  2567. fi
  2568. fi
  2569. if test -z "$ac_cv_prog_STRIP"; then
  2570. ac_ct_STRIP=$STRIP
  2571. # Extract the first word of "strip", so it can be a program name with args.
  2572. set dummy strip; ac_word=$2
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2574. $as_echo_n "checking for $ac_word... " >&6; }
  2575. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2576. $as_echo_n "(cached) " >&6
  2577. else
  2578. if test -n "$ac_ct_STRIP"; then
  2579. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2580. else
  2581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2582. for as_dir in $PATH
  2583. do
  2584. IFS=$as_save_IFS
  2585. test -z "$as_dir" && as_dir=.
  2586. for ac_exec_ext in '' $ac_executable_extensions; do
  2587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2588. ac_cv_prog_ac_ct_STRIP="strip"
  2589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2590. break 2
  2591. fi
  2592. done
  2593. done
  2594. IFS=$as_save_IFS
  2595. fi
  2596. fi
  2597. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2598. if test -n "$ac_ct_STRIP"; then
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2600. $as_echo "$ac_ct_STRIP" >&6; }
  2601. else
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2603. $as_echo "no" >&6; }
  2604. fi
  2605. if test "x$ac_ct_STRIP" = x; then
  2606. STRIP=":"
  2607. else
  2608. case $cross_compiling:$ac_tool_warned in
  2609. yes:)
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2612. ac_tool_warned=yes ;;
  2613. esac
  2614. STRIP=$ac_ct_STRIP
  2615. fi
  2616. else
  2617. STRIP="$ac_cv_prog_STRIP"
  2618. fi
  2619. fi
  2620. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2622. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2623. if test -z "$MKDIR_P"; then
  2624. if ${ac_cv_path_mkdir+:} false; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2628. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2629. do
  2630. IFS=$as_save_IFS
  2631. test -z "$as_dir" && as_dir=.
  2632. for ac_prog in mkdir gmkdir; do
  2633. for ac_exec_ext in '' $ac_executable_extensions; do
  2634. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2635. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2636. 'mkdir (GNU coreutils) '* | \
  2637. 'mkdir (coreutils) '* | \
  2638. 'mkdir (fileutils) '4.1*)
  2639. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2640. break 3;;
  2641. esac
  2642. done
  2643. done
  2644. done
  2645. IFS=$as_save_IFS
  2646. fi
  2647. test -d ./--version && rmdir ./--version
  2648. if test "${ac_cv_path_mkdir+set}" = set; then
  2649. MKDIR_P="$ac_cv_path_mkdir -p"
  2650. else
  2651. # As a last resort, use the slow shell script. Don't cache a
  2652. # value for MKDIR_P within a source directory, because that will
  2653. # break other packages using the cache if that directory is
  2654. # removed, or if the value is a relative name.
  2655. MKDIR_P="$ac_install_sh -d"
  2656. fi
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2659. $as_echo "$MKDIR_P" >&6; }
  2660. for ac_prog in gawk mawk nawk awk
  2661. do
  2662. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2663. set dummy $ac_prog; ac_word=$2
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2665. $as_echo_n "checking for $ac_word... " >&6; }
  2666. if ${ac_cv_prog_AWK+:} false; then :
  2667. $as_echo_n "(cached) " >&6
  2668. else
  2669. if test -n "$AWK"; then
  2670. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2671. else
  2672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2673. for as_dir in $PATH
  2674. do
  2675. IFS=$as_save_IFS
  2676. test -z "$as_dir" && as_dir=.
  2677. for ac_exec_ext in '' $ac_executable_extensions; do
  2678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2679. ac_cv_prog_AWK="$ac_prog"
  2680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2681. break 2
  2682. fi
  2683. done
  2684. done
  2685. IFS=$as_save_IFS
  2686. fi
  2687. fi
  2688. AWK=$ac_cv_prog_AWK
  2689. if test -n "$AWK"; then
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2691. $as_echo "$AWK" >&6; }
  2692. else
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2694. $as_echo "no" >&6; }
  2695. fi
  2696. test -n "$AWK" && break
  2697. done
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2699. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2700. set x ${MAKE-make}
  2701. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2702. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2703. $as_echo_n "(cached) " >&6
  2704. else
  2705. cat >conftest.make <<\_ACEOF
  2706. SHELL = /bin/sh
  2707. all:
  2708. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2709. _ACEOF
  2710. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2711. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2712. *@@@%%%=?*=@@@%%%*)
  2713. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2714. *)
  2715. eval ac_cv_prog_make_${ac_make}_set=no;;
  2716. esac
  2717. rm -f conftest.make
  2718. fi
  2719. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2721. $as_echo "yes" >&6; }
  2722. SET_MAKE=
  2723. else
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2725. $as_echo "no" >&6; }
  2726. SET_MAKE="MAKE=${MAKE-make}"
  2727. fi
  2728. rm -rf .tst 2>/dev/null
  2729. mkdir .tst 2>/dev/null
  2730. if test -d .tst; then
  2731. am__leading_dot=.
  2732. else
  2733. am__leading_dot=_
  2734. fi
  2735. rmdir .tst 2>/dev/null
  2736. # Check whether --enable-silent-rules was given.
  2737. if test "${enable_silent_rules+set}" = set; then :
  2738. enableval=$enable_silent_rules;
  2739. fi
  2740. case $enable_silent_rules in # (((
  2741. yes) AM_DEFAULT_VERBOSITY=0;;
  2742. no) AM_DEFAULT_VERBOSITY=1;;
  2743. *) AM_DEFAULT_VERBOSITY=1;;
  2744. esac
  2745. am_make=${MAKE-make}
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2747. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2748. if ${am_cv_make_support_nested_variables+:} false; then :
  2749. $as_echo_n "(cached) " >&6
  2750. else
  2751. if $as_echo 'TRUE=$(BAR$(V))
  2752. BAR0=false
  2753. BAR1=true
  2754. V=1
  2755. am__doit:
  2756. @$(TRUE)
  2757. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2758. am_cv_make_support_nested_variables=yes
  2759. else
  2760. am_cv_make_support_nested_variables=no
  2761. fi
  2762. fi
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2764. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2765. if test $am_cv_make_support_nested_variables = yes; then
  2766. AM_V='$(V)'
  2767. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2768. else
  2769. AM_V=$AM_DEFAULT_VERBOSITY
  2770. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2771. fi
  2772. AM_BACKSLASH='\'
  2773. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2774. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2775. # is not polluted with repeated "-I."
  2776. am__isrc=' -I$(srcdir)'
  2777. # test to see if srcdir already configured
  2778. if test -f $srcdir/config.status; then
  2779. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2780. fi
  2781. fi
  2782. # test whether we have cygpath
  2783. if test -z "$CYGPATH_W"; then
  2784. if (cygpath --version) >/dev/null 2>/dev/null; then
  2785. CYGPATH_W='cygpath -w'
  2786. else
  2787. CYGPATH_W=echo
  2788. fi
  2789. fi
  2790. # Define the identity of the package.
  2791. PACKAGE='expat'
  2792. VERSION='2.2.10'
  2793. cat >>confdefs.h <<_ACEOF
  2794. #define PACKAGE "$PACKAGE"
  2795. _ACEOF
  2796. cat >>confdefs.h <<_ACEOF
  2797. #define VERSION "$VERSION"
  2798. _ACEOF
  2799. # Some tools Automake needs.
  2800. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2801. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2802. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2803. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2804. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2805. # For better backward compatibility. To be removed once Automake 1.9.x
  2806. # dies out for good. For more background, see:
  2807. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2808. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2809. mkdir_p='$(MKDIR_P)'
  2810. # We need awk for the "check" target (and possibly the TAP driver). The
  2811. # system "awk" is bad on some platforms.
  2812. # Always define AMTAR for backward compatibility. Yes, it's still used
  2813. # in the wild :-( We should find a proper way to deprecate it ...
  2814. AMTAR='$${TAR-tar}'
  2815. # We'll loop over all known methods to create a tar archive until one works.
  2816. _am_tools='gnutar pax cpio none'
  2817. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2818. # POSIX will say in a future version that running "rm -f" with no argument
  2819. # is OK; and we want to be able to make that assumption in our Makefile
  2820. # recipes. So use an aggressive probe to check that the usage we want is
  2821. # actually supported "in the wild" to an acceptable degree.
  2822. # See automake bug#10828.
  2823. # To make any issue more visible, cause the running configure to be aborted
  2824. # by default if the 'rm' program in use doesn't match our expectations; the
  2825. # user can still override this though.
  2826. if rm -f && rm -fr && rm -rf; then : OK; else
  2827. cat >&2 <<'END'
  2828. Oops!
  2829. Your 'rm' program seems unable to run without file operands specified
  2830. on the command line, even when the '-f' option is present. This is contrary
  2831. to the behaviour of most rm programs out there, and not conforming with
  2832. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2833. Please tell [email protected] about your system, including the value
  2834. of your $PATH and any error possibly output before this message. This
  2835. can help us improve future automake versions.
  2836. END
  2837. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2838. echo 'Configuration will proceed anyway, since you have set the' >&2
  2839. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2840. echo >&2
  2841. else
  2842. cat >&2 <<'END'
  2843. Aborting the configuration process, to ensure you take notice of the issue.
  2844. You can download and install GNU coreutils to get an 'rm' implementation
  2845. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2846. If you want to complete the configuration process using your problematic
  2847. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2848. to "yes", and re-run configure.
  2849. END
  2850. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2851. fi
  2852. fi
  2853. LIBCURRENT=7 # sync
  2854. LIBREVISION=12 # with
  2855. LIBAGE=6 # CMakeLists.txt!
  2856. if ${AM_CPPFLAGS+:} false; then :
  2857. case " $AM_CPPFLAGS " in #(
  2858. *" -DHAVE_EXPAT_CONFIG_H "*) :
  2859. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DHAVE_EXPAT_CONFIG_H"; } >&5
  2860. (: AM_CPPFLAGS already contains -DHAVE_EXPAT_CONFIG_H) 2>&5
  2861. ac_status=$?
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2863. test $ac_status = 0; } ;; #(
  2864. *) :
  2865. as_fn_append AM_CPPFLAGS " -DHAVE_EXPAT_CONFIG_H"
  2866. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  2867. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  2868. ac_status=$?
  2869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2870. test $ac_status = 0; }
  2871. ;;
  2872. esac
  2873. else
  2874. AM_CPPFLAGS=-DHAVE_EXPAT_CONFIG_H
  2875. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  2876. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  2877. ac_status=$?
  2878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2879. test $ac_status = 0; }
  2880. fi
  2881. ac_config_headers="$ac_config_headers expat_config.h"
  2882. DEPDIR="${am__leading_dot}deps"
  2883. ac_config_commands="$ac_config_commands depfiles"
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  2885. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  2886. cat > confinc.mk << 'END'
  2887. am__doit:
  2888. @echo this is the am__doit target >confinc.out
  2889. .PHONY: am__doit
  2890. END
  2891. am__include="#"
  2892. am__quote=
  2893. # BSD make does it like this.
  2894. echo '.include "confinc.mk" # ignored' > confmf.BSD
  2895. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  2896. echo 'include confinc.mk # ignored' > confmf.GNU
  2897. _am_result=no
  2898. for s in GNU BSD; do
  2899. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  2900. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  2901. ac_status=$?
  2902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2903. (exit $ac_status); }
  2904. case $?:`cat confinc.out 2>/dev/null` in #(
  2905. '0:this is the am__doit target') :
  2906. case $s in #(
  2907. BSD) :
  2908. am__include='.include' am__quote='"' ;; #(
  2909. *) :
  2910. am__include='include' am__quote='' ;;
  2911. esac ;; #(
  2912. *) :
  2913. ;;
  2914. esac
  2915. if test "$am__include" != "#"; then
  2916. _am_result="yes ($s style)"
  2917. break
  2918. fi
  2919. done
  2920. rm -f confinc.* confmf.*
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  2922. $as_echo "${_am_result}" >&6; }
  2923. # Check whether --enable-dependency-tracking was given.
  2924. if test "${enable_dependency_tracking+set}" = set; then :
  2925. enableval=$enable_dependency_tracking;
  2926. fi
  2927. if test "x$enable_dependency_tracking" != xno; then
  2928. am_depcomp="$ac_aux_dir/depcomp"
  2929. AMDEPBACKSLASH='\'
  2930. am__nodep='_no'
  2931. fi
  2932. if test "x$enable_dependency_tracking" != xno; then
  2933. AMDEP_TRUE=
  2934. AMDEP_FALSE='#'
  2935. else
  2936. AMDEP_TRUE='#'
  2937. AMDEP_FALSE=
  2938. fi
  2939. ac_ext=c
  2940. ac_cpp='$CPP $CPPFLAGS'
  2941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2944. if test -n "$ac_tool_prefix"; then
  2945. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2946. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if ${ac_cv_prog_CC+:} false; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. if test -n "$CC"; then
  2953. ac_cv_prog_CC="$CC" # Let the user override the test.
  2954. else
  2955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2956. for as_dir in $PATH
  2957. do
  2958. IFS=$as_save_IFS
  2959. test -z "$as_dir" && as_dir=.
  2960. for ac_exec_ext in '' $ac_executable_extensions; do
  2961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2962. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2964. break 2
  2965. fi
  2966. done
  2967. done
  2968. IFS=$as_save_IFS
  2969. fi
  2970. fi
  2971. CC=$ac_cv_prog_CC
  2972. if test -n "$CC"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2974. $as_echo "$CC" >&6; }
  2975. else
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2977. $as_echo "no" >&6; }
  2978. fi
  2979. fi
  2980. if test -z "$ac_cv_prog_CC"; then
  2981. ac_ct_CC=$CC
  2982. # Extract the first word of "gcc", so it can be a program name with args.
  2983. set dummy gcc; ac_word=$2
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2985. $as_echo_n "checking for $ac_word... " >&6; }
  2986. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2987. $as_echo_n "(cached) " >&6
  2988. else
  2989. if test -n "$ac_ct_CC"; then
  2990. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2991. else
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. test -z "$as_dir" && as_dir=.
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2999. ac_cv_prog_ac_ct_CC="gcc"
  3000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3001. break 2
  3002. fi
  3003. done
  3004. done
  3005. IFS=$as_save_IFS
  3006. fi
  3007. fi
  3008. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3009. if test -n "$ac_ct_CC"; then
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3011. $as_echo "$ac_ct_CC" >&6; }
  3012. else
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3014. $as_echo "no" >&6; }
  3015. fi
  3016. if test "x$ac_ct_CC" = x; then
  3017. CC=""
  3018. else
  3019. case $cross_compiling:$ac_tool_warned in
  3020. yes:)
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3023. ac_tool_warned=yes ;;
  3024. esac
  3025. CC=$ac_ct_CC
  3026. fi
  3027. else
  3028. CC="$ac_cv_prog_CC"
  3029. fi
  3030. if test -z "$CC"; then
  3031. if test -n "$ac_tool_prefix"; then
  3032. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3033. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3035. $as_echo_n "checking for $ac_word... " >&6; }
  3036. if ${ac_cv_prog_CC+:} false; then :
  3037. $as_echo_n "(cached) " >&6
  3038. else
  3039. if test -n "$CC"; then
  3040. ac_cv_prog_CC="$CC" # Let the user override the test.
  3041. else
  3042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3043. for as_dir in $PATH
  3044. do
  3045. IFS=$as_save_IFS
  3046. test -z "$as_dir" && as_dir=.
  3047. for ac_exec_ext in '' $ac_executable_extensions; do
  3048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3049. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3051. break 2
  3052. fi
  3053. done
  3054. done
  3055. IFS=$as_save_IFS
  3056. fi
  3057. fi
  3058. CC=$ac_cv_prog_CC
  3059. if test -n "$CC"; then
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3061. $as_echo "$CC" >&6; }
  3062. else
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3064. $as_echo "no" >&6; }
  3065. fi
  3066. fi
  3067. fi
  3068. if test -z "$CC"; then
  3069. # Extract the first word of "cc", so it can be a program name with args.
  3070. set dummy cc; ac_word=$2
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3072. $as_echo_n "checking for $ac_word... " >&6; }
  3073. if ${ac_cv_prog_CC+:} false; then :
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. if test -n "$CC"; then
  3077. ac_cv_prog_CC="$CC" # Let the user override the test.
  3078. else
  3079. ac_prog_rejected=no
  3080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3081. for as_dir in $PATH
  3082. do
  3083. IFS=$as_save_IFS
  3084. test -z "$as_dir" && as_dir=.
  3085. for ac_exec_ext in '' $ac_executable_extensions; do
  3086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3087. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3088. ac_prog_rejected=yes
  3089. continue
  3090. fi
  3091. ac_cv_prog_CC="cc"
  3092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3093. break 2
  3094. fi
  3095. done
  3096. done
  3097. IFS=$as_save_IFS
  3098. if test $ac_prog_rejected = yes; then
  3099. # We found a bogon in the path, so make sure we never use it.
  3100. set dummy $ac_cv_prog_CC
  3101. shift
  3102. if test $# != 0; then
  3103. # We chose a different compiler from the bogus one.
  3104. # However, it has the same basename, so the bogon will be chosen
  3105. # first if we set CC to just the basename; use the full file name.
  3106. shift
  3107. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3108. fi
  3109. fi
  3110. fi
  3111. fi
  3112. CC=$ac_cv_prog_CC
  3113. if test -n "$CC"; then
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3115. $as_echo "$CC" >&6; }
  3116. else
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3118. $as_echo "no" >&6; }
  3119. fi
  3120. fi
  3121. if test -z "$CC"; then
  3122. if test -n "$ac_tool_prefix"; then
  3123. for ac_prog in cl.exe
  3124. do
  3125. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3126. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3128. $as_echo_n "checking for $ac_word... " >&6; }
  3129. if ${ac_cv_prog_CC+:} false; then :
  3130. $as_echo_n "(cached) " >&6
  3131. else
  3132. if test -n "$CC"; then
  3133. ac_cv_prog_CC="$CC" # Let the user override the test.
  3134. else
  3135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3136. for as_dir in $PATH
  3137. do
  3138. IFS=$as_save_IFS
  3139. test -z "$as_dir" && as_dir=.
  3140. for ac_exec_ext in '' $ac_executable_extensions; do
  3141. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3142. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3144. break 2
  3145. fi
  3146. done
  3147. done
  3148. IFS=$as_save_IFS
  3149. fi
  3150. fi
  3151. CC=$ac_cv_prog_CC
  3152. if test -n "$CC"; then
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3154. $as_echo "$CC" >&6; }
  3155. else
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3157. $as_echo "no" >&6; }
  3158. fi
  3159. test -n "$CC" && break
  3160. done
  3161. fi
  3162. if test -z "$CC"; then
  3163. ac_ct_CC=$CC
  3164. for ac_prog in cl.exe
  3165. do
  3166. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3167. set dummy $ac_prog; ac_word=$2
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3169. $as_echo_n "checking for $ac_word... " >&6; }
  3170. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3171. $as_echo_n "(cached) " >&6
  3172. else
  3173. if test -n "$ac_ct_CC"; then
  3174. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3175. else
  3176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3177. for as_dir in $PATH
  3178. do
  3179. IFS=$as_save_IFS
  3180. test -z "$as_dir" && as_dir=.
  3181. for ac_exec_ext in '' $ac_executable_extensions; do
  3182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3183. ac_cv_prog_ac_ct_CC="$ac_prog"
  3184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3185. break 2
  3186. fi
  3187. done
  3188. done
  3189. IFS=$as_save_IFS
  3190. fi
  3191. fi
  3192. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3193. if test -n "$ac_ct_CC"; then
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3195. $as_echo "$ac_ct_CC" >&6; }
  3196. else
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3198. $as_echo "no" >&6; }
  3199. fi
  3200. test -n "$ac_ct_CC" && break
  3201. done
  3202. if test "x$ac_ct_CC" = x; then
  3203. CC=""
  3204. else
  3205. case $cross_compiling:$ac_tool_warned in
  3206. yes:)
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3209. ac_tool_warned=yes ;;
  3210. esac
  3211. CC=$ac_ct_CC
  3212. fi
  3213. fi
  3214. fi
  3215. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3216. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3217. as_fn_error $? "no acceptable C compiler found in \$PATH
  3218. See \`config.log' for more details" "$LINENO" 5; }
  3219. # Provide some information about the compiler.
  3220. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3221. set X $ac_compile
  3222. ac_compiler=$2
  3223. for ac_option in --version -v -V -qversion; do
  3224. { { ac_try="$ac_compiler $ac_option >&5"
  3225. case "(($ac_try" in
  3226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3227. *) ac_try_echo=$ac_try;;
  3228. esac
  3229. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3230. $as_echo "$ac_try_echo"; } >&5
  3231. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3232. ac_status=$?
  3233. if test -s conftest.err; then
  3234. sed '10a\
  3235. ... rest of stderr output deleted ...
  3236. 10q' conftest.err >conftest.er1
  3237. cat conftest.er1 >&5
  3238. fi
  3239. rm -f conftest.er1 conftest.err
  3240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3241. test $ac_status = 0; }
  3242. done
  3243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. /* end confdefs.h. */
  3245. int
  3246. main ()
  3247. {
  3248. ;
  3249. return 0;
  3250. }
  3251. _ACEOF
  3252. ac_clean_files_save=$ac_clean_files
  3253. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3254. # Try to create an executable without -o first, disregard a.out.
  3255. # It will help us diagnose broken compilers, and finding out an intuition
  3256. # of exeext.
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3258. $as_echo_n "checking whether the C compiler works... " >&6; }
  3259. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3260. # The possible output files:
  3261. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3262. ac_rmfiles=
  3263. for ac_file in $ac_files
  3264. do
  3265. case $ac_file in
  3266. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3267. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3268. esac
  3269. done
  3270. rm -f $ac_rmfiles
  3271. if { { ac_try="$ac_link_default"
  3272. case "(($ac_try" in
  3273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3274. *) ac_try_echo=$ac_try;;
  3275. esac
  3276. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3277. $as_echo "$ac_try_echo"; } >&5
  3278. (eval "$ac_link_default") 2>&5
  3279. ac_status=$?
  3280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3281. test $ac_status = 0; }; then :
  3282. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3283. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3284. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3285. # so that the user can short-circuit this test for compilers unknown to
  3286. # Autoconf.
  3287. for ac_file in $ac_files ''
  3288. do
  3289. test -f "$ac_file" || continue
  3290. case $ac_file in
  3291. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3292. ;;
  3293. [ab].out )
  3294. # We found the default executable, but exeext='' is most
  3295. # certainly right.
  3296. break;;
  3297. *.* )
  3298. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3299. then :; else
  3300. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3301. fi
  3302. # We set ac_cv_exeext here because the later test for it is not
  3303. # safe: cross compilers may not add the suffix if given an `-o'
  3304. # argument, so we may need to know it at that point already.
  3305. # Even if this section looks crufty: it has the advantage of
  3306. # actually working.
  3307. break;;
  3308. * )
  3309. break;;
  3310. esac
  3311. done
  3312. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3313. else
  3314. ac_file=''
  3315. fi
  3316. if test -z "$ac_file"; then :
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3318. $as_echo "no" >&6; }
  3319. $as_echo "$as_me: failed program was:" >&5
  3320. sed 's/^/| /' conftest.$ac_ext >&5
  3321. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3323. as_fn_error 77 "C compiler cannot create executables
  3324. See \`config.log' for more details" "$LINENO" 5; }
  3325. else
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3327. $as_echo "yes" >&6; }
  3328. fi
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3330. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3332. $as_echo "$ac_file" >&6; }
  3333. ac_exeext=$ac_cv_exeext
  3334. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3335. ac_clean_files=$ac_clean_files_save
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3337. $as_echo_n "checking for suffix of executables... " >&6; }
  3338. if { { ac_try="$ac_link"
  3339. case "(($ac_try" in
  3340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3341. *) ac_try_echo=$ac_try;;
  3342. esac
  3343. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3344. $as_echo "$ac_try_echo"; } >&5
  3345. (eval "$ac_link") 2>&5
  3346. ac_status=$?
  3347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3348. test $ac_status = 0; }; then :
  3349. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3350. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3351. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3352. # `rm'.
  3353. for ac_file in conftest.exe conftest conftest.*; do
  3354. test -f "$ac_file" || continue
  3355. case $ac_file in
  3356. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3357. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3358. break;;
  3359. * ) break;;
  3360. esac
  3361. done
  3362. else
  3363. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3365. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3366. See \`config.log' for more details" "$LINENO" 5; }
  3367. fi
  3368. rm -f conftest conftest$ac_cv_exeext
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3370. $as_echo "$ac_cv_exeext" >&6; }
  3371. rm -f conftest.$ac_ext
  3372. EXEEXT=$ac_cv_exeext
  3373. ac_exeext=$EXEEXT
  3374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3375. /* end confdefs.h. */
  3376. #include <stdio.h>
  3377. int
  3378. main ()
  3379. {
  3380. FILE *f = fopen ("conftest.out", "w");
  3381. return ferror (f) || fclose (f) != 0;
  3382. ;
  3383. return 0;
  3384. }
  3385. _ACEOF
  3386. ac_clean_files="$ac_clean_files conftest.out"
  3387. # Check that the compiler produces executables we can run. If not, either
  3388. # the compiler is broken, or we cross compile.
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3390. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3391. if test "$cross_compiling" != yes; then
  3392. { { ac_try="$ac_link"
  3393. case "(($ac_try" in
  3394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3395. *) ac_try_echo=$ac_try;;
  3396. esac
  3397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3398. $as_echo "$ac_try_echo"; } >&5
  3399. (eval "$ac_link") 2>&5
  3400. ac_status=$?
  3401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3402. test $ac_status = 0; }
  3403. if { ac_try='./conftest$ac_cv_exeext'
  3404. { { case "(($ac_try" in
  3405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3406. *) ac_try_echo=$ac_try;;
  3407. esac
  3408. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3409. $as_echo "$ac_try_echo"; } >&5
  3410. (eval "$ac_try") 2>&5
  3411. ac_status=$?
  3412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3413. test $ac_status = 0; }; }; then
  3414. cross_compiling=no
  3415. else
  3416. if test "$cross_compiling" = maybe; then
  3417. cross_compiling=yes
  3418. else
  3419. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3420. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3421. as_fn_error $? "cannot run C compiled programs.
  3422. If you meant to cross compile, use \`--host'.
  3423. See \`config.log' for more details" "$LINENO" 5; }
  3424. fi
  3425. fi
  3426. fi
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3428. $as_echo "$cross_compiling" >&6; }
  3429. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3430. ac_clean_files=$ac_clean_files_save
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3432. $as_echo_n "checking for suffix of object files... " >&6; }
  3433. if ${ac_cv_objext+:} false; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3437. /* end confdefs.h. */
  3438. int
  3439. main ()
  3440. {
  3441. ;
  3442. return 0;
  3443. }
  3444. _ACEOF
  3445. rm -f conftest.o conftest.obj
  3446. if { { ac_try="$ac_compile"
  3447. case "(($ac_try" in
  3448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3449. *) ac_try_echo=$ac_try;;
  3450. esac
  3451. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3452. $as_echo "$ac_try_echo"; } >&5
  3453. (eval "$ac_compile") 2>&5
  3454. ac_status=$?
  3455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3456. test $ac_status = 0; }; then :
  3457. for ac_file in conftest.o conftest.obj conftest.*; do
  3458. test -f "$ac_file" || continue;
  3459. case $ac_file in
  3460. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3461. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3462. break;;
  3463. esac
  3464. done
  3465. else
  3466. $as_echo "$as_me: failed program was:" >&5
  3467. sed 's/^/| /' conftest.$ac_ext >&5
  3468. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3470. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3471. See \`config.log' for more details" "$LINENO" 5; }
  3472. fi
  3473. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3474. fi
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3476. $as_echo "$ac_cv_objext" >&6; }
  3477. OBJEXT=$ac_cv_objext
  3478. ac_objext=$OBJEXT
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3480. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3481. if ${ac_cv_c_compiler_gnu+:} false; then :
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3485. /* end confdefs.h. */
  3486. int
  3487. main ()
  3488. {
  3489. #ifndef __GNUC__
  3490. choke me
  3491. #endif
  3492. ;
  3493. return 0;
  3494. }
  3495. _ACEOF
  3496. if ac_fn_c_try_compile "$LINENO"; then :
  3497. ac_compiler_gnu=yes
  3498. else
  3499. ac_compiler_gnu=no
  3500. fi
  3501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3502. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3503. fi
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3505. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3506. if test $ac_compiler_gnu = yes; then
  3507. GCC=yes
  3508. else
  3509. GCC=
  3510. fi
  3511. ac_test_CFLAGS=${CFLAGS+set}
  3512. ac_save_CFLAGS=$CFLAGS
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3514. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3515. if ${ac_cv_prog_cc_g+:} false; then :
  3516. $as_echo_n "(cached) " >&6
  3517. else
  3518. ac_save_c_werror_flag=$ac_c_werror_flag
  3519. ac_c_werror_flag=yes
  3520. ac_cv_prog_cc_g=no
  3521. CFLAGS="-g"
  3522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3523. /* end confdefs.h. */
  3524. int
  3525. main ()
  3526. {
  3527. ;
  3528. return 0;
  3529. }
  3530. _ACEOF
  3531. if ac_fn_c_try_compile "$LINENO"; then :
  3532. ac_cv_prog_cc_g=yes
  3533. else
  3534. CFLAGS=""
  3535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3536. /* end confdefs.h. */
  3537. int
  3538. main ()
  3539. {
  3540. ;
  3541. return 0;
  3542. }
  3543. _ACEOF
  3544. if ac_fn_c_try_compile "$LINENO"; then :
  3545. else
  3546. ac_c_werror_flag=$ac_save_c_werror_flag
  3547. CFLAGS="-g"
  3548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3549. /* end confdefs.h. */
  3550. int
  3551. main ()
  3552. {
  3553. ;
  3554. return 0;
  3555. }
  3556. _ACEOF
  3557. if ac_fn_c_try_compile "$LINENO"; then :
  3558. ac_cv_prog_cc_g=yes
  3559. fi
  3560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3561. fi
  3562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3563. fi
  3564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3565. ac_c_werror_flag=$ac_save_c_werror_flag
  3566. fi
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3568. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3569. if test "$ac_test_CFLAGS" = set; then
  3570. CFLAGS=$ac_save_CFLAGS
  3571. elif test $ac_cv_prog_cc_g = yes; then
  3572. if test "$GCC" = yes; then
  3573. CFLAGS="-g -O2"
  3574. else
  3575. CFLAGS="-g"
  3576. fi
  3577. else
  3578. if test "$GCC" = yes; then
  3579. CFLAGS="-O2"
  3580. else
  3581. CFLAGS=
  3582. fi
  3583. fi
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3585. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3586. if ${ac_cv_prog_cc_c89+:} false; then :
  3587. $as_echo_n "(cached) " >&6
  3588. else
  3589. ac_cv_prog_cc_c89=no
  3590. ac_save_CC=$CC
  3591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. #include <stdarg.h>
  3594. #include <stdio.h>
  3595. struct stat;
  3596. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3597. struct buf { int x; };
  3598. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3599. static char *e (p, i)
  3600. char **p;
  3601. int i;
  3602. {
  3603. return p[i];
  3604. }
  3605. static char *f (char * (*g) (char **, int), char **p, ...)
  3606. {
  3607. char *s;
  3608. va_list v;
  3609. va_start (v,p);
  3610. s = g (p, va_arg (v,int));
  3611. va_end (v);
  3612. return s;
  3613. }
  3614. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3615. function prototypes and stuff, but not '\xHH' hex character constants.
  3616. These don't provoke an error unfortunately, instead are silently treated
  3617. as 'x'. The following induces an error, until -std is added to get
  3618. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3619. array size at least. It's necessary to write '\x00'==0 to get something
  3620. that's true only with -std. */
  3621. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3622. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3623. inside strings and character constants. */
  3624. #define FOO(x) 'x'
  3625. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3626. int test (int i, double x);
  3627. struct s1 {int (*f) (int a);};
  3628. struct s2 {int (*f) (double a);};
  3629. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3630. int argc;
  3631. char **argv;
  3632. int
  3633. main ()
  3634. {
  3635. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3636. ;
  3637. return 0;
  3638. }
  3639. _ACEOF
  3640. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3641. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3642. do
  3643. CC="$ac_save_CC $ac_arg"
  3644. if ac_fn_c_try_compile "$LINENO"; then :
  3645. ac_cv_prog_cc_c89=$ac_arg
  3646. fi
  3647. rm -f core conftest.err conftest.$ac_objext
  3648. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3649. done
  3650. rm -f conftest.$ac_ext
  3651. CC=$ac_save_CC
  3652. fi
  3653. # AC_CACHE_VAL
  3654. case "x$ac_cv_prog_cc_c89" in
  3655. x)
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3657. $as_echo "none needed" >&6; } ;;
  3658. xno)
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3660. $as_echo "unsupported" >&6; } ;;
  3661. *)
  3662. CC="$CC $ac_cv_prog_cc_c89"
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3664. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3665. esac
  3666. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3667. fi
  3668. ac_ext=c
  3669. ac_cpp='$CPP $CPPFLAGS'
  3670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3673. ac_ext=c
  3674. ac_cpp='$CPP $CPPFLAGS'
  3675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3679. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3680. if ${am_cv_prog_cc_c_o+:} false; then :
  3681. $as_echo_n "(cached) " >&6
  3682. else
  3683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3684. /* end confdefs.h. */
  3685. int
  3686. main ()
  3687. {
  3688. ;
  3689. return 0;
  3690. }
  3691. _ACEOF
  3692. # Make sure it works both with $CC and with simple cc.
  3693. # Following AC_PROG_CC_C_O, we do the test twice because some
  3694. # compilers refuse to overwrite an existing .o file with -o,
  3695. # though they will create one.
  3696. am_cv_prog_cc_c_o=yes
  3697. for am_i in 1 2; do
  3698. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3699. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3700. ac_status=$?
  3701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3702. (exit $ac_status); } \
  3703. && test -f conftest2.$ac_objext; then
  3704. : OK
  3705. else
  3706. am_cv_prog_cc_c_o=no
  3707. break
  3708. fi
  3709. done
  3710. rm -f core conftest*
  3711. unset am_i
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3714. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3715. if test "$am_cv_prog_cc_c_o" != yes; then
  3716. # Losing compiler, so override with the script.
  3717. # FIXME: It is wrong to rewrite CC.
  3718. # But if we don't then we get into trouble of one sort or another.
  3719. # A longer-term fix would be to have automake use am__CC in this case,
  3720. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3721. CC="$am_aux_dir/compile $CC"
  3722. fi
  3723. ac_ext=c
  3724. ac_cpp='$CPP $CPPFLAGS'
  3725. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3726. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3727. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3728. depcc="$CC" am_compiler_list=
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3730. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3731. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3732. $as_echo_n "(cached) " >&6
  3733. else
  3734. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3735. # We make a subdir and do the tests there. Otherwise we can end up
  3736. # making bogus files that we don't know about and never remove. For
  3737. # instance it was reported that on HP-UX the gcc test will end up
  3738. # making a dummy file named 'D' -- because '-MD' means "put the output
  3739. # in D".
  3740. rm -rf conftest.dir
  3741. mkdir conftest.dir
  3742. # Copy depcomp to subdir because otherwise we won't find it if we're
  3743. # using a relative directory.
  3744. cp "$am_depcomp" conftest.dir
  3745. cd conftest.dir
  3746. # We will build objects and dependencies in a subdirectory because
  3747. # it helps to detect inapplicable dependency modes. For instance
  3748. # both Tru64's cc and ICC support -MD to output dependencies as a
  3749. # side effect of compilation, but ICC will put the dependencies in
  3750. # the current directory while Tru64 will put them in the object
  3751. # directory.
  3752. mkdir sub
  3753. am_cv_CC_dependencies_compiler_type=none
  3754. if test "$am_compiler_list" = ""; then
  3755. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3756. fi
  3757. am__universal=false
  3758. case " $depcc " in #(
  3759. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3760. esac
  3761. for depmode in $am_compiler_list; do
  3762. # Setup a source with many dependencies, because some compilers
  3763. # like to wrap large dependency lists on column 80 (with \), and
  3764. # we should not choose a depcomp mode which is confused by this.
  3765. #
  3766. # We need to recreate these files for each test, as the compiler may
  3767. # overwrite some of them when testing with obscure command lines.
  3768. # This happens at least with the AIX C compiler.
  3769. : > sub/conftest.c
  3770. for i in 1 2 3 4 5 6; do
  3771. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3772. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3773. # Solaris 10 /bin/sh.
  3774. echo '/* dummy */' > sub/conftst$i.h
  3775. done
  3776. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3777. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3778. # mode. It turns out that the SunPro C++ compiler does not properly
  3779. # handle '-M -o', and we need to detect this. Also, some Intel
  3780. # versions had trouble with output in subdirs.
  3781. am__obj=sub/conftest.${OBJEXT-o}
  3782. am__minus_obj="-o $am__obj"
  3783. case $depmode in
  3784. gcc)
  3785. # This depmode causes a compiler race in universal mode.
  3786. test "$am__universal" = false || continue
  3787. ;;
  3788. nosideeffect)
  3789. # After this tag, mechanisms are not by side-effect, so they'll
  3790. # only be used when explicitly requested.
  3791. if test "x$enable_dependency_tracking" = xyes; then
  3792. continue
  3793. else
  3794. break
  3795. fi
  3796. ;;
  3797. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3798. # This compiler won't grok '-c -o', but also, the minuso test has
  3799. # not run yet. These depmodes are late enough in the game, and
  3800. # so weak that their functioning should not be impacted.
  3801. am__obj=conftest.${OBJEXT-o}
  3802. am__minus_obj=
  3803. ;;
  3804. none) break ;;
  3805. esac
  3806. if depmode=$depmode \
  3807. source=sub/conftest.c object=$am__obj \
  3808. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3809. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3810. >/dev/null 2>conftest.err &&
  3811. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3812. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3813. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3814. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3815. # icc doesn't choke on unknown options, it will just issue warnings
  3816. # or remarks (even with -Werror). So we grep stderr for any message
  3817. # that says an option was ignored or not supported.
  3818. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3819. # icc: Command line warning: ignoring option '-M'; no argument required
  3820. # The diagnosis changed in icc 8.0:
  3821. # icc: Command line remark: option '-MP' not supported
  3822. if (grep 'ignoring option' conftest.err ||
  3823. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3824. am_cv_CC_dependencies_compiler_type=$depmode
  3825. break
  3826. fi
  3827. fi
  3828. done
  3829. cd ..
  3830. rm -rf conftest.dir
  3831. else
  3832. am_cv_CC_dependencies_compiler_type=none
  3833. fi
  3834. fi
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3836. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3837. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3838. if
  3839. test "x$enable_dependency_tracking" != xno \
  3840. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3841. am__fastdepCC_TRUE=
  3842. am__fastdepCC_FALSE='#'
  3843. else
  3844. am__fastdepCC_TRUE='#'
  3845. am__fastdepCC_FALSE=
  3846. fi
  3847. if test -n "$ac_tool_prefix"; then
  3848. for ac_prog in ar lib "link -lib"
  3849. do
  3850. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3851. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3853. $as_echo_n "checking for $ac_word... " >&6; }
  3854. if ${ac_cv_prog_AR+:} false; then :
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. if test -n "$AR"; then
  3858. ac_cv_prog_AR="$AR" # Let the user override the test.
  3859. else
  3860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861. for as_dir in $PATH
  3862. do
  3863. IFS=$as_save_IFS
  3864. test -z "$as_dir" && as_dir=.
  3865. for ac_exec_ext in '' $ac_executable_extensions; do
  3866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3867. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3869. break 2
  3870. fi
  3871. done
  3872. done
  3873. IFS=$as_save_IFS
  3874. fi
  3875. fi
  3876. AR=$ac_cv_prog_AR
  3877. if test -n "$AR"; then
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3879. $as_echo "$AR" >&6; }
  3880. else
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3882. $as_echo "no" >&6; }
  3883. fi
  3884. test -n "$AR" && break
  3885. done
  3886. fi
  3887. if test -z "$AR"; then
  3888. ac_ct_AR=$AR
  3889. for ac_prog in ar lib "link -lib"
  3890. do
  3891. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3892. set dummy $ac_prog; ac_word=$2
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3894. $as_echo_n "checking for $ac_word... " >&6; }
  3895. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. if test -n "$ac_ct_AR"; then
  3899. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3900. else
  3901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3902. for as_dir in $PATH
  3903. do
  3904. IFS=$as_save_IFS
  3905. test -z "$as_dir" && as_dir=.
  3906. for ac_exec_ext in '' $ac_executable_extensions; do
  3907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3908. ac_cv_prog_ac_ct_AR="$ac_prog"
  3909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3910. break 2
  3911. fi
  3912. done
  3913. done
  3914. IFS=$as_save_IFS
  3915. fi
  3916. fi
  3917. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3918. if test -n "$ac_ct_AR"; then
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3920. $as_echo "$ac_ct_AR" >&6; }
  3921. else
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3923. $as_echo "no" >&6; }
  3924. fi
  3925. test -n "$ac_ct_AR" && break
  3926. done
  3927. if test "x$ac_ct_AR" = x; then
  3928. AR="false"
  3929. else
  3930. case $cross_compiling:$ac_tool_warned in
  3931. yes:)
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3933. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3934. ac_tool_warned=yes ;;
  3935. esac
  3936. AR=$ac_ct_AR
  3937. fi
  3938. fi
  3939. : ${AR=ar}
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  3941. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  3942. if ${am_cv_ar_interface+:} false; then :
  3943. $as_echo_n "(cached) " >&6
  3944. else
  3945. ac_ext=c
  3946. ac_cpp='$CPP $CPPFLAGS'
  3947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3950. am_cv_ar_interface=ar
  3951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3952. /* end confdefs.h. */
  3953. int some_variable = 0;
  3954. _ACEOF
  3955. if ac_fn_c_try_compile "$LINENO"; then :
  3956. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  3957. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3958. (eval $am_ar_try) 2>&5
  3959. ac_status=$?
  3960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3961. test $ac_status = 0; }
  3962. if test "$ac_status" -eq 0; then
  3963. am_cv_ar_interface=ar
  3964. else
  3965. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  3966. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3967. (eval $am_ar_try) 2>&5
  3968. ac_status=$?
  3969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3970. test $ac_status = 0; }
  3971. if test "$ac_status" -eq 0; then
  3972. am_cv_ar_interface=lib
  3973. else
  3974. am_cv_ar_interface=unknown
  3975. fi
  3976. fi
  3977. rm -f conftest.lib libconftest.a
  3978. fi
  3979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3980. ac_ext=c
  3981. ac_cpp='$CPP $CPPFLAGS'
  3982. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3983. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3984. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3985. fi
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  3987. $as_echo "$am_cv_ar_interface" >&6; }
  3988. case $am_cv_ar_interface in
  3989. ar)
  3990. ;;
  3991. lib)
  3992. # Microsoft lib, so override with the ar-lib wrapper script.
  3993. # FIXME: It is wrong to rewrite AR.
  3994. # But if we don't then we get into trouble of one sort or another.
  3995. # A longer-term fix would be to have automake use am__AR in this case,
  3996. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  3997. # similar.
  3998. AR="$am_aux_dir/ar-lib $AR"
  3999. ;;
  4000. unknown)
  4001. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4002. ;;
  4003. esac
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4005. $as_echo_n "checking whether ln -s works... " >&6; }
  4006. LN_S=$as_ln_s
  4007. if test "$LN_S" = "ln -s"; then
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4009. $as_echo "yes" >&6; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4012. $as_echo "no, using $LN_S" >&6; }
  4013. fi
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4015. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4016. set x ${MAKE-make}
  4017. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4018. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. cat >conftest.make <<\_ACEOF
  4022. SHELL = /bin/sh
  4023. all:
  4024. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4025. _ACEOF
  4026. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4027. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4028. *@@@%%%=?*=@@@%%%*)
  4029. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4030. *)
  4031. eval ac_cv_prog_make_${ac_make}_set=no;;
  4032. esac
  4033. rm -f conftest.make
  4034. fi
  4035. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4037. $as_echo "yes" >&6; }
  4038. SET_MAKE=
  4039. else
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4041. $as_echo "no" >&6; }
  4042. SET_MAKE="MAKE=${MAKE-make}"
  4043. fi
  4044. case `pwd` in
  4045. *\ * | *\ *)
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4047. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4048. esac
  4049. macro_version='2.4.6'
  4050. macro_revision='2.4.6'
  4051. ltmain=$ac_aux_dir/ltmain.sh
  4052. # Backslashify metacharacters that are still active within
  4053. # double-quoted strings.
  4054. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4055. # Same as above, but do not quote variable references.
  4056. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4057. # Sed substitution to delay expansion of an escaped shell variable in a
  4058. # double_quote_subst'ed string.
  4059. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4060. # Sed substitution to delay expansion of an escaped single quote.
  4061. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4062. # Sed substitution to avoid accidental globbing in evaled expressions
  4063. no_glob_subst='s/\*/\\\*/g'
  4064. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4065. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4066. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4068. $as_echo_n "checking how to print strings... " >&6; }
  4069. # Test print first, because it will be a builtin if present.
  4070. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4071. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4072. ECHO='print -r --'
  4073. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4074. ECHO='printf %s\n'
  4075. else
  4076. # Use this function as a fallback that always works.
  4077. func_fallback_echo ()
  4078. {
  4079. eval 'cat <<_LTECHO_EOF
  4080. $1
  4081. _LTECHO_EOF'
  4082. }
  4083. ECHO='func_fallback_echo'
  4084. fi
  4085. # func_echo_all arg...
  4086. # Invoke $ECHO with all args, space-separated.
  4087. func_echo_all ()
  4088. {
  4089. $ECHO ""
  4090. }
  4091. case $ECHO in
  4092. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4093. $as_echo "printf" >&6; } ;;
  4094. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4095. $as_echo "print -r" >&6; } ;;
  4096. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4097. $as_echo "cat" >&6; } ;;
  4098. esac
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4100. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4101. if ${ac_cv_path_SED+:} false; then :
  4102. $as_echo_n "(cached) " >&6
  4103. else
  4104. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4105. for ac_i in 1 2 3 4 5 6 7; do
  4106. ac_script="$ac_script$as_nl$ac_script"
  4107. done
  4108. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4109. { ac_script=; unset ac_script;}
  4110. if test -z "$SED"; then
  4111. ac_path_SED_found=false
  4112. # Loop through the user's path and test for each of PROGNAME-LIST
  4113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4114. for as_dir in $PATH
  4115. do
  4116. IFS=$as_save_IFS
  4117. test -z "$as_dir" && as_dir=.
  4118. for ac_prog in sed gsed; do
  4119. for ac_exec_ext in '' $ac_executable_extensions; do
  4120. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4121. as_fn_executable_p "$ac_path_SED" || continue
  4122. # Check for GNU ac_path_SED and select it if it is found.
  4123. # Check for GNU $ac_path_SED
  4124. case `"$ac_path_SED" --version 2>&1` in
  4125. *GNU*)
  4126. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4127. *)
  4128. ac_count=0
  4129. $as_echo_n 0123456789 >"conftest.in"
  4130. while :
  4131. do
  4132. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4133. mv "conftest.tmp" "conftest.in"
  4134. cp "conftest.in" "conftest.nl"
  4135. $as_echo '' >> "conftest.nl"
  4136. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4137. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4138. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4139. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4140. # Best one so far, save it but keep looking for a better one
  4141. ac_cv_path_SED="$ac_path_SED"
  4142. ac_path_SED_max=$ac_count
  4143. fi
  4144. # 10*(2^10) chars as input seems more than enough
  4145. test $ac_count -gt 10 && break
  4146. done
  4147. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4148. esac
  4149. $ac_path_SED_found && break 3
  4150. done
  4151. done
  4152. done
  4153. IFS=$as_save_IFS
  4154. if test -z "$ac_cv_path_SED"; then
  4155. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4156. fi
  4157. else
  4158. ac_cv_path_SED=$SED
  4159. fi
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4162. $as_echo "$ac_cv_path_SED" >&6; }
  4163. SED="$ac_cv_path_SED"
  4164. rm -f conftest.sed
  4165. test -z "$SED" && SED=sed
  4166. Xsed="$SED -e 1s/^X//"
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4168. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4169. if ${ac_cv_path_GREP+:} false; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. if test -z "$GREP"; then
  4173. ac_path_GREP_found=false
  4174. # Loop through the user's path and test for each of PROGNAME-LIST
  4175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4176. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4177. do
  4178. IFS=$as_save_IFS
  4179. test -z "$as_dir" && as_dir=.
  4180. for ac_prog in grep ggrep; do
  4181. for ac_exec_ext in '' $ac_executable_extensions; do
  4182. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4183. as_fn_executable_p "$ac_path_GREP" || continue
  4184. # Check for GNU ac_path_GREP and select it if it is found.
  4185. # Check for GNU $ac_path_GREP
  4186. case `"$ac_path_GREP" --version 2>&1` in
  4187. *GNU*)
  4188. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4189. *)
  4190. ac_count=0
  4191. $as_echo_n 0123456789 >"conftest.in"
  4192. while :
  4193. do
  4194. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4195. mv "conftest.tmp" "conftest.in"
  4196. cp "conftest.in" "conftest.nl"
  4197. $as_echo 'GREP' >> "conftest.nl"
  4198. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4199. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4200. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4201. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4202. # Best one so far, save it but keep looking for a better one
  4203. ac_cv_path_GREP="$ac_path_GREP"
  4204. ac_path_GREP_max=$ac_count
  4205. fi
  4206. # 10*(2^10) chars as input seems more than enough
  4207. test $ac_count -gt 10 && break
  4208. done
  4209. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4210. esac
  4211. $ac_path_GREP_found && break 3
  4212. done
  4213. done
  4214. done
  4215. IFS=$as_save_IFS
  4216. if test -z "$ac_cv_path_GREP"; then
  4217. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4218. fi
  4219. else
  4220. ac_cv_path_GREP=$GREP
  4221. fi
  4222. fi
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4224. $as_echo "$ac_cv_path_GREP" >&6; }
  4225. GREP="$ac_cv_path_GREP"
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4227. $as_echo_n "checking for egrep... " >&6; }
  4228. if ${ac_cv_path_EGREP+:} false; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4232. then ac_cv_path_EGREP="$GREP -E"
  4233. else
  4234. if test -z "$EGREP"; then
  4235. ac_path_EGREP_found=false
  4236. # Loop through the user's path and test for each of PROGNAME-LIST
  4237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4238. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4239. do
  4240. IFS=$as_save_IFS
  4241. test -z "$as_dir" && as_dir=.
  4242. for ac_prog in egrep; do
  4243. for ac_exec_ext in '' $ac_executable_extensions; do
  4244. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4245. as_fn_executable_p "$ac_path_EGREP" || continue
  4246. # Check for GNU ac_path_EGREP and select it if it is found.
  4247. # Check for GNU $ac_path_EGREP
  4248. case `"$ac_path_EGREP" --version 2>&1` in
  4249. *GNU*)
  4250. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4251. *)
  4252. ac_count=0
  4253. $as_echo_n 0123456789 >"conftest.in"
  4254. while :
  4255. do
  4256. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4257. mv "conftest.tmp" "conftest.in"
  4258. cp "conftest.in" "conftest.nl"
  4259. $as_echo 'EGREP' >> "conftest.nl"
  4260. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4261. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4262. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4263. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4264. # Best one so far, save it but keep looking for a better one
  4265. ac_cv_path_EGREP="$ac_path_EGREP"
  4266. ac_path_EGREP_max=$ac_count
  4267. fi
  4268. # 10*(2^10) chars as input seems more than enough
  4269. test $ac_count -gt 10 && break
  4270. done
  4271. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4272. esac
  4273. $ac_path_EGREP_found && break 3
  4274. done
  4275. done
  4276. done
  4277. IFS=$as_save_IFS
  4278. if test -z "$ac_cv_path_EGREP"; then
  4279. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4280. fi
  4281. else
  4282. ac_cv_path_EGREP=$EGREP
  4283. fi
  4284. fi
  4285. fi
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4287. $as_echo "$ac_cv_path_EGREP" >&6; }
  4288. EGREP="$ac_cv_path_EGREP"
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4290. $as_echo_n "checking for fgrep... " >&6; }
  4291. if ${ac_cv_path_FGREP+:} false; then :
  4292. $as_echo_n "(cached) " >&6
  4293. else
  4294. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4295. then ac_cv_path_FGREP="$GREP -F"
  4296. else
  4297. if test -z "$FGREP"; then
  4298. ac_path_FGREP_found=false
  4299. # Loop through the user's path and test for each of PROGNAME-LIST
  4300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4301. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4302. do
  4303. IFS=$as_save_IFS
  4304. test -z "$as_dir" && as_dir=.
  4305. for ac_prog in fgrep; do
  4306. for ac_exec_ext in '' $ac_executable_extensions; do
  4307. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4308. as_fn_executable_p "$ac_path_FGREP" || continue
  4309. # Check for GNU ac_path_FGREP and select it if it is found.
  4310. # Check for GNU $ac_path_FGREP
  4311. case `"$ac_path_FGREP" --version 2>&1` in
  4312. *GNU*)
  4313. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4314. *)
  4315. ac_count=0
  4316. $as_echo_n 0123456789 >"conftest.in"
  4317. while :
  4318. do
  4319. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4320. mv "conftest.tmp" "conftest.in"
  4321. cp "conftest.in" "conftest.nl"
  4322. $as_echo 'FGREP' >> "conftest.nl"
  4323. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4324. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4325. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4326. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4327. # Best one so far, save it but keep looking for a better one
  4328. ac_cv_path_FGREP="$ac_path_FGREP"
  4329. ac_path_FGREP_max=$ac_count
  4330. fi
  4331. # 10*(2^10) chars as input seems more than enough
  4332. test $ac_count -gt 10 && break
  4333. done
  4334. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4335. esac
  4336. $ac_path_FGREP_found && break 3
  4337. done
  4338. done
  4339. done
  4340. IFS=$as_save_IFS
  4341. if test -z "$ac_cv_path_FGREP"; then
  4342. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4343. fi
  4344. else
  4345. ac_cv_path_FGREP=$FGREP
  4346. fi
  4347. fi
  4348. fi
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4350. $as_echo "$ac_cv_path_FGREP" >&6; }
  4351. FGREP="$ac_cv_path_FGREP"
  4352. test -z "$GREP" && GREP=grep
  4353. # Check whether --with-gnu-ld was given.
  4354. if test "${with_gnu_ld+set}" = set; then :
  4355. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4356. else
  4357. with_gnu_ld=no
  4358. fi
  4359. ac_prog=ld
  4360. if test yes = "$GCC"; then
  4361. # Check if gcc -print-prog-name=ld gives a path.
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4363. $as_echo_n "checking for ld used by $CC... " >&6; }
  4364. case $host in
  4365. *-*-mingw*)
  4366. # gcc leaves a trailing carriage return, which upsets mingw
  4367. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4368. *)
  4369. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4370. esac
  4371. case $ac_prog in
  4372. # Accept absolute paths.
  4373. [\\/]* | ?:[\\/]*)
  4374. re_direlt='/[^/][^/]*/\.\./'
  4375. # Canonicalize the pathname of ld
  4376. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4377. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4378. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4379. done
  4380. test -z "$LD" && LD=$ac_prog
  4381. ;;
  4382. "")
  4383. # If it fails, then pretend we aren't using GCC.
  4384. ac_prog=ld
  4385. ;;
  4386. *)
  4387. # If it is relative, then search for the first ld in PATH.
  4388. with_gnu_ld=unknown
  4389. ;;
  4390. esac
  4391. elif test yes = "$with_gnu_ld"; then
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4393. $as_echo_n "checking for GNU ld... " >&6; }
  4394. else
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4396. $as_echo_n "checking for non-GNU ld... " >&6; }
  4397. fi
  4398. if ${lt_cv_path_LD+:} false; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. if test -z "$LD"; then
  4402. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4403. for ac_dir in $PATH; do
  4404. IFS=$lt_save_ifs
  4405. test -z "$ac_dir" && ac_dir=.
  4406. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4407. lt_cv_path_LD=$ac_dir/$ac_prog
  4408. # Check to see if the program is GNU ld. I'd rather use --version,
  4409. # but apparently some variants of GNU ld only accept -v.
  4410. # Break only if it was the GNU/non-GNU ld that we prefer.
  4411. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4412. *GNU* | *'with BFD'*)
  4413. test no != "$with_gnu_ld" && break
  4414. ;;
  4415. *)
  4416. test yes != "$with_gnu_ld" && break
  4417. ;;
  4418. esac
  4419. fi
  4420. done
  4421. IFS=$lt_save_ifs
  4422. else
  4423. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4424. fi
  4425. fi
  4426. LD=$lt_cv_path_LD
  4427. if test -n "$LD"; then
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4429. $as_echo "$LD" >&6; }
  4430. else
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4432. $as_echo "no" >&6; }
  4433. fi
  4434. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4436. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4437. if ${lt_cv_prog_gnu_ld+:} false; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4441. case `$LD -v 2>&1 </dev/null` in
  4442. *GNU* | *'with BFD'*)
  4443. lt_cv_prog_gnu_ld=yes
  4444. ;;
  4445. *)
  4446. lt_cv_prog_gnu_ld=no
  4447. ;;
  4448. esac
  4449. fi
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4451. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4452. with_gnu_ld=$lt_cv_prog_gnu_ld
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4454. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4455. if ${lt_cv_path_NM+:} false; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. if test -n "$NM"; then
  4459. # Let the user override the test.
  4460. lt_cv_path_NM=$NM
  4461. else
  4462. lt_nm_to_check=${ac_tool_prefix}nm
  4463. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4464. lt_nm_to_check="$lt_nm_to_check nm"
  4465. fi
  4466. for lt_tmp_nm in $lt_nm_to_check; do
  4467. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4468. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4469. IFS=$lt_save_ifs
  4470. test -z "$ac_dir" && ac_dir=.
  4471. tmp_nm=$ac_dir/$lt_tmp_nm
  4472. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4473. # Check to see if the nm accepts a BSD-compat flag.
  4474. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4475. # nm: unknown option "B" ignored
  4476. # Tru64's nm complains that /dev/null is an invalid object file
  4477. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4478. case $build_os in
  4479. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4480. *) lt_bad_file=/dev/null ;;
  4481. esac
  4482. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4483. *$lt_bad_file* | *'Invalid file or object type'*)
  4484. lt_cv_path_NM="$tmp_nm -B"
  4485. break 2
  4486. ;;
  4487. *)
  4488. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4489. */dev/null*)
  4490. lt_cv_path_NM="$tmp_nm -p"
  4491. break 2
  4492. ;;
  4493. *)
  4494. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4495. continue # so that we can try to find one that supports BSD flags
  4496. ;;
  4497. esac
  4498. ;;
  4499. esac
  4500. fi
  4501. done
  4502. IFS=$lt_save_ifs
  4503. done
  4504. : ${lt_cv_path_NM=no}
  4505. fi
  4506. fi
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4508. $as_echo "$lt_cv_path_NM" >&6; }
  4509. if test no != "$lt_cv_path_NM"; then
  4510. NM=$lt_cv_path_NM
  4511. else
  4512. # Didn't find any BSD compatible name lister, look for dumpbin.
  4513. if test -n "$DUMPBIN"; then :
  4514. # Let the user override the test.
  4515. else
  4516. if test -n "$ac_tool_prefix"; then
  4517. for ac_prog in dumpbin "link -dump"
  4518. do
  4519. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4520. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4522. $as_echo_n "checking for $ac_word... " >&6; }
  4523. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4524. $as_echo_n "(cached) " >&6
  4525. else
  4526. if test -n "$DUMPBIN"; then
  4527. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4528. else
  4529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4530. for as_dir in $PATH
  4531. do
  4532. IFS=$as_save_IFS
  4533. test -z "$as_dir" && as_dir=.
  4534. for ac_exec_ext in '' $ac_executable_extensions; do
  4535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4536. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4538. break 2
  4539. fi
  4540. done
  4541. done
  4542. IFS=$as_save_IFS
  4543. fi
  4544. fi
  4545. DUMPBIN=$ac_cv_prog_DUMPBIN
  4546. if test -n "$DUMPBIN"; then
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4548. $as_echo "$DUMPBIN" >&6; }
  4549. else
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4551. $as_echo "no" >&6; }
  4552. fi
  4553. test -n "$DUMPBIN" && break
  4554. done
  4555. fi
  4556. if test -z "$DUMPBIN"; then
  4557. ac_ct_DUMPBIN=$DUMPBIN
  4558. for ac_prog in dumpbin "link -dump"
  4559. do
  4560. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4561. set dummy $ac_prog; ac_word=$2
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4563. $as_echo_n "checking for $ac_word... " >&6; }
  4564. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4565. $as_echo_n "(cached) " >&6
  4566. else
  4567. if test -n "$ac_ct_DUMPBIN"; then
  4568. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4569. else
  4570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4571. for as_dir in $PATH
  4572. do
  4573. IFS=$as_save_IFS
  4574. test -z "$as_dir" && as_dir=.
  4575. for ac_exec_ext in '' $ac_executable_extensions; do
  4576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4577. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4579. break 2
  4580. fi
  4581. done
  4582. done
  4583. IFS=$as_save_IFS
  4584. fi
  4585. fi
  4586. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4587. if test -n "$ac_ct_DUMPBIN"; then
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4589. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4590. else
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4592. $as_echo "no" >&6; }
  4593. fi
  4594. test -n "$ac_ct_DUMPBIN" && break
  4595. done
  4596. if test "x$ac_ct_DUMPBIN" = x; then
  4597. DUMPBIN=":"
  4598. else
  4599. case $cross_compiling:$ac_tool_warned in
  4600. yes:)
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4602. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4603. ac_tool_warned=yes ;;
  4604. esac
  4605. DUMPBIN=$ac_ct_DUMPBIN
  4606. fi
  4607. fi
  4608. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4609. *COFF*)
  4610. DUMPBIN="$DUMPBIN -symbols -headers"
  4611. ;;
  4612. *)
  4613. DUMPBIN=:
  4614. ;;
  4615. esac
  4616. fi
  4617. if test : != "$DUMPBIN"; then
  4618. NM=$DUMPBIN
  4619. fi
  4620. fi
  4621. test -z "$NM" && NM=nm
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4623. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4624. if ${lt_cv_nm_interface+:} false; then :
  4625. $as_echo_n "(cached) " >&6
  4626. else
  4627. lt_cv_nm_interface="BSD nm"
  4628. echo "int some_variable = 0;" > conftest.$ac_ext
  4629. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4630. (eval "$ac_compile" 2>conftest.err)
  4631. cat conftest.err >&5
  4632. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4633. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4634. cat conftest.err >&5
  4635. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4636. cat conftest.out >&5
  4637. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4638. lt_cv_nm_interface="MS dumpbin"
  4639. fi
  4640. rm -f conftest*
  4641. fi
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4643. $as_echo "$lt_cv_nm_interface" >&6; }
  4644. # find the maximum length of command line arguments
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4646. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4647. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4648. $as_echo_n "(cached) " >&6
  4649. else
  4650. i=0
  4651. teststring=ABCD
  4652. case $build_os in
  4653. msdosdjgpp*)
  4654. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4655. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4656. # during glob expansion). Even if it were fixed, the result of this
  4657. # check would be larger than it should be.
  4658. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4659. ;;
  4660. gnu*)
  4661. # Under GNU Hurd, this test is not required because there is
  4662. # no limit to the length of command line arguments.
  4663. # Libtool will interpret -1 as no limit whatsoever
  4664. lt_cv_sys_max_cmd_len=-1;
  4665. ;;
  4666. cygwin* | mingw* | cegcc*)
  4667. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4668. # about 5 minutes as the teststring grows exponentially.
  4669. # Worse, since 9x/ME are not pre-emptively multitasking,
  4670. # you end up with a "frozen" computer, even though with patience
  4671. # the test eventually succeeds (with a max line length of 256k).
  4672. # Instead, let's just punt: use the minimum linelength reported by
  4673. # all of the supported platforms: 8192 (on NT/2K/XP).
  4674. lt_cv_sys_max_cmd_len=8192;
  4675. ;;
  4676. mint*)
  4677. # On MiNT this can take a long time and run out of memory.
  4678. lt_cv_sys_max_cmd_len=8192;
  4679. ;;
  4680. mint*)
  4681. # On MiNT this can take a long time and run out of memory.
  4682. lt_cv_sys_max_cmd_len=8192;
  4683. ;;
  4684. amigaos*)
  4685. # On AmigaOS with pdksh, this test takes hours, literally.
  4686. # So we just punt and use a minimum line length of 8192.
  4687. lt_cv_sys_max_cmd_len=8192;
  4688. ;;
  4689. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4690. # This has been around since 386BSD, at least. Likely further.
  4691. if test -x /sbin/sysctl; then
  4692. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4693. elif test -x /usr/sbin/sysctl; then
  4694. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4695. else
  4696. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4697. fi
  4698. # And add a safety zone
  4699. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4700. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4701. ;;
  4702. interix*)
  4703. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4704. lt_cv_sys_max_cmd_len=196608
  4705. ;;
  4706. os2*)
  4707. # The test takes a long time on OS/2.
  4708. lt_cv_sys_max_cmd_len=8192
  4709. ;;
  4710. osf*)
  4711. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4712. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4713. # nice to cause kernel panics so lets avoid the loop below.
  4714. # First set a reasonable default.
  4715. lt_cv_sys_max_cmd_len=16384
  4716. #
  4717. if test -x /sbin/sysconfig; then
  4718. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4719. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4720. esac
  4721. fi
  4722. ;;
  4723. sco3.2v5*)
  4724. lt_cv_sys_max_cmd_len=102400
  4725. ;;
  4726. sysv5* | sco5v6* | sysv4.2uw2*)
  4727. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4728. if test -n "$kargmax"; then
  4729. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4730. else
  4731. lt_cv_sys_max_cmd_len=32768
  4732. fi
  4733. ;;
  4734. *)
  4735. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4736. if test -n "$lt_cv_sys_max_cmd_len" && \
  4737. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4738. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4739. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4740. else
  4741. # Make teststring a little bigger before we do anything with it.
  4742. # a 1K string should be a reasonable start.
  4743. for i in 1 2 3 4 5 6 7 8; do
  4744. teststring=$teststring$teststring
  4745. done
  4746. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4747. # If test is not a shell built-in, we'll probably end up computing a
  4748. # maximum length that is only half of the actual maximum length, but
  4749. # we can't tell.
  4750. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4751. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4752. test 17 != "$i" # 1/2 MB should be enough
  4753. do
  4754. i=`expr $i + 1`
  4755. teststring=$teststring$teststring
  4756. done
  4757. # Only check the string length outside the loop.
  4758. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4759. teststring=
  4760. # Add a significant safety factor because C++ compilers can tack on
  4761. # massive amounts of additional arguments before passing them to the
  4762. # linker. It appears as though 1/2 is a usable value.
  4763. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4764. fi
  4765. ;;
  4766. esac
  4767. fi
  4768. if test -n "$lt_cv_sys_max_cmd_len"; then
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4770. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4771. else
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4773. $as_echo "none" >&6; }
  4774. fi
  4775. max_cmd_len=$lt_cv_sys_max_cmd_len
  4776. : ${CP="cp -f"}
  4777. : ${MV="mv -f"}
  4778. : ${RM="rm -f"}
  4779. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4780. lt_unset=unset
  4781. else
  4782. lt_unset=false
  4783. fi
  4784. # test EBCDIC or ASCII
  4785. case `echo X|tr X '\101'` in
  4786. A) # ASCII based system
  4787. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4788. lt_SP2NL='tr \040 \012'
  4789. lt_NL2SP='tr \015\012 \040\040'
  4790. ;;
  4791. *) # EBCDIC based system
  4792. lt_SP2NL='tr \100 \n'
  4793. lt_NL2SP='tr \r\n \100\100'
  4794. ;;
  4795. esac
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4797. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4798. if ${lt_cv_to_host_file_cmd+:} false; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. case $host in
  4802. *-*-mingw* )
  4803. case $build in
  4804. *-*-mingw* ) # actually msys
  4805. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4806. ;;
  4807. *-*-cygwin* )
  4808. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4809. ;;
  4810. * ) # otherwise, assume *nix
  4811. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4812. ;;
  4813. esac
  4814. ;;
  4815. *-*-cygwin* )
  4816. case $build in
  4817. *-*-mingw* ) # actually msys
  4818. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4819. ;;
  4820. *-*-cygwin* )
  4821. lt_cv_to_host_file_cmd=func_convert_file_noop
  4822. ;;
  4823. * ) # otherwise, assume *nix
  4824. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4825. ;;
  4826. esac
  4827. ;;
  4828. * ) # unhandled hosts (and "normal" native builds)
  4829. lt_cv_to_host_file_cmd=func_convert_file_noop
  4830. ;;
  4831. esac
  4832. fi
  4833. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4835. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4837. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4838. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. #assume ordinary cross tools, or native build.
  4842. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4843. case $host in
  4844. *-*-mingw* )
  4845. case $build in
  4846. *-*-mingw* ) # actually msys
  4847. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4848. ;;
  4849. esac
  4850. ;;
  4851. esac
  4852. fi
  4853. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4855. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4857. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4858. if ${lt_cv_ld_reload_flag+:} false; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. lt_cv_ld_reload_flag='-r'
  4862. fi
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4864. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4865. reload_flag=$lt_cv_ld_reload_flag
  4866. case $reload_flag in
  4867. "" | " "*) ;;
  4868. *) reload_flag=" $reload_flag" ;;
  4869. esac
  4870. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4871. case $host_os in
  4872. cygwin* | mingw* | pw32* | cegcc*)
  4873. if test yes != "$GCC"; then
  4874. reload_cmds=false
  4875. fi
  4876. ;;
  4877. darwin*)
  4878. if test yes = "$GCC"; then
  4879. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4880. else
  4881. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4882. fi
  4883. ;;
  4884. esac
  4885. if test -n "$ac_tool_prefix"; then
  4886. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4887. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4889. $as_echo_n "checking for $ac_word... " >&6; }
  4890. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. if test -n "$OBJDUMP"; then
  4894. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4895. else
  4896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4897. for as_dir in $PATH
  4898. do
  4899. IFS=$as_save_IFS
  4900. test -z "$as_dir" && as_dir=.
  4901. for ac_exec_ext in '' $ac_executable_extensions; do
  4902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4903. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4905. break 2
  4906. fi
  4907. done
  4908. done
  4909. IFS=$as_save_IFS
  4910. fi
  4911. fi
  4912. OBJDUMP=$ac_cv_prog_OBJDUMP
  4913. if test -n "$OBJDUMP"; then
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4915. $as_echo "$OBJDUMP" >&6; }
  4916. else
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4918. $as_echo "no" >&6; }
  4919. fi
  4920. fi
  4921. if test -z "$ac_cv_prog_OBJDUMP"; then
  4922. ac_ct_OBJDUMP=$OBJDUMP
  4923. # Extract the first word of "objdump", so it can be a program name with args.
  4924. set dummy objdump; ac_word=$2
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4926. $as_echo_n "checking for $ac_word... " >&6; }
  4927. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. if test -n "$ac_ct_OBJDUMP"; then
  4931. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4932. else
  4933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4934. for as_dir in $PATH
  4935. do
  4936. IFS=$as_save_IFS
  4937. test -z "$as_dir" && as_dir=.
  4938. for ac_exec_ext in '' $ac_executable_extensions; do
  4939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4940. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4942. break 2
  4943. fi
  4944. done
  4945. done
  4946. IFS=$as_save_IFS
  4947. fi
  4948. fi
  4949. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4950. if test -n "$ac_ct_OBJDUMP"; then
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4952. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4953. else
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4955. $as_echo "no" >&6; }
  4956. fi
  4957. if test "x$ac_ct_OBJDUMP" = x; then
  4958. OBJDUMP="false"
  4959. else
  4960. case $cross_compiling:$ac_tool_warned in
  4961. yes:)
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4964. ac_tool_warned=yes ;;
  4965. esac
  4966. OBJDUMP=$ac_ct_OBJDUMP
  4967. fi
  4968. else
  4969. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4970. fi
  4971. test -z "$OBJDUMP" && OBJDUMP=objdump
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4973. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4974. if ${lt_cv_deplibs_check_method+:} false; then :
  4975. $as_echo_n "(cached) " >&6
  4976. else
  4977. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4978. lt_cv_file_magic_test_file=
  4979. lt_cv_deplibs_check_method='unknown'
  4980. # Need to set the preceding variable on all platforms that support
  4981. # interlibrary dependencies.
  4982. # 'none' -- dependencies not supported.
  4983. # 'unknown' -- same as none, but documents that we really don't know.
  4984. # 'pass_all' -- all dependencies passed with no checks.
  4985. # 'test_compile' -- check by making test program.
  4986. # 'file_magic [[regex]]' -- check by looking for files in library path
  4987. # that responds to the $file_magic_cmd with a given extended regex.
  4988. # If you have 'file' or equivalent on your system and you're not sure
  4989. # whether 'pass_all' will *always* work, you probably want this one.
  4990. case $host_os in
  4991. aix[4-9]*)
  4992. lt_cv_deplibs_check_method=pass_all
  4993. ;;
  4994. beos*)
  4995. lt_cv_deplibs_check_method=pass_all
  4996. ;;
  4997. bsdi[45]*)
  4998. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4999. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5000. lt_cv_file_magic_test_file=/shlib/libc.so
  5001. ;;
  5002. cygwin*)
  5003. # func_win32_libid is a shell function defined in ltmain.sh
  5004. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5005. lt_cv_file_magic_cmd='func_win32_libid'
  5006. ;;
  5007. mingw* | pw32*)
  5008. # Base MSYS/MinGW do not provide the 'file' command needed by
  5009. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5010. # unless we find 'file', for example because we are cross-compiling.
  5011. if ( file / ) >/dev/null 2>&1; then
  5012. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5013. lt_cv_file_magic_cmd='func_win32_libid'
  5014. else
  5015. # Keep this pattern in sync with the one in func_win32_libid.
  5016. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5017. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5018. fi
  5019. ;;
  5020. cegcc*)
  5021. # use the weaker test based on 'objdump'. See mingw*.
  5022. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5023. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5024. ;;
  5025. darwin* | rhapsody*)
  5026. lt_cv_deplibs_check_method=pass_all
  5027. ;;
  5028. freebsd* | dragonfly*)
  5029. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5030. case $host_cpu in
  5031. i*86 )
  5032. # Not sure whether the presence of OpenBSD here was a mistake.
  5033. # Let's accept both of them until this is cleared up.
  5034. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5035. lt_cv_file_magic_cmd=/usr/bin/file
  5036. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5037. ;;
  5038. esac
  5039. else
  5040. lt_cv_deplibs_check_method=pass_all
  5041. fi
  5042. ;;
  5043. haiku*)
  5044. lt_cv_deplibs_check_method=pass_all
  5045. ;;
  5046. hpux10.20* | hpux11*)
  5047. lt_cv_file_magic_cmd=/usr/bin/file
  5048. case $host_cpu in
  5049. ia64*)
  5050. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5051. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5052. ;;
  5053. hppa*64*)
  5054. 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]'
  5055. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5056. ;;
  5057. *)
  5058. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5059. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5060. ;;
  5061. esac
  5062. ;;
  5063. interix[3-9]*)
  5064. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5065. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5066. ;;
  5067. irix5* | irix6* | nonstopux*)
  5068. case $LD in
  5069. *-32|*"-32 ") libmagic=32-bit;;
  5070. *-n32|*"-n32 ") libmagic=N32;;
  5071. *-64|*"-64 ") libmagic=64-bit;;
  5072. *) libmagic=never-match;;
  5073. esac
  5074. lt_cv_deplibs_check_method=pass_all
  5075. ;;
  5076. # This must be glibc/ELF.
  5077. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5078. lt_cv_deplibs_check_method=pass_all
  5079. ;;
  5080. netbsd*)
  5081. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5082. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5083. else
  5084. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5085. fi
  5086. ;;
  5087. newos6*)
  5088. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5089. lt_cv_file_magic_cmd=/usr/bin/file
  5090. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5091. ;;
  5092. *nto* | *qnx*)
  5093. lt_cv_deplibs_check_method=pass_all
  5094. ;;
  5095. openbsd* | bitrig*)
  5096. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5097. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5098. else
  5099. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5100. fi
  5101. ;;
  5102. osf3* | osf4* | osf5*)
  5103. lt_cv_deplibs_check_method=pass_all
  5104. ;;
  5105. rdos*)
  5106. lt_cv_deplibs_check_method=pass_all
  5107. ;;
  5108. solaris*)
  5109. lt_cv_deplibs_check_method=pass_all
  5110. ;;
  5111. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5112. lt_cv_deplibs_check_method=pass_all
  5113. ;;
  5114. sysv4 | sysv4.3*)
  5115. case $host_vendor in
  5116. motorola)
  5117. 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]'
  5118. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5119. ;;
  5120. ncr)
  5121. lt_cv_deplibs_check_method=pass_all
  5122. ;;
  5123. sequent)
  5124. lt_cv_file_magic_cmd='/bin/file'
  5125. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5126. ;;
  5127. sni)
  5128. lt_cv_file_magic_cmd='/bin/file'
  5129. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5130. lt_cv_file_magic_test_file=/lib/libc.so
  5131. ;;
  5132. siemens)
  5133. lt_cv_deplibs_check_method=pass_all
  5134. ;;
  5135. pc)
  5136. lt_cv_deplibs_check_method=pass_all
  5137. ;;
  5138. esac
  5139. ;;
  5140. tpf*)
  5141. lt_cv_deplibs_check_method=pass_all
  5142. ;;
  5143. os2*)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. esac
  5147. fi
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5149. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5150. file_magic_glob=
  5151. want_nocaseglob=no
  5152. if test "$build" = "$host"; then
  5153. case $host_os in
  5154. mingw* | pw32*)
  5155. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5156. want_nocaseglob=yes
  5157. else
  5158. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5159. fi
  5160. ;;
  5161. esac
  5162. fi
  5163. file_magic_cmd=$lt_cv_file_magic_cmd
  5164. deplibs_check_method=$lt_cv_deplibs_check_method
  5165. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5166. if test -n "$ac_tool_prefix"; then
  5167. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5168. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5170. $as_echo_n "checking for $ac_word... " >&6; }
  5171. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5172. $as_echo_n "(cached) " >&6
  5173. else
  5174. if test -n "$DLLTOOL"; then
  5175. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5176. else
  5177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5178. for as_dir in $PATH
  5179. do
  5180. IFS=$as_save_IFS
  5181. test -z "$as_dir" && as_dir=.
  5182. for ac_exec_ext in '' $ac_executable_extensions; do
  5183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5184. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5186. break 2
  5187. fi
  5188. done
  5189. done
  5190. IFS=$as_save_IFS
  5191. fi
  5192. fi
  5193. DLLTOOL=$ac_cv_prog_DLLTOOL
  5194. if test -n "$DLLTOOL"; then
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5196. $as_echo "$DLLTOOL" >&6; }
  5197. else
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5199. $as_echo "no" >&6; }
  5200. fi
  5201. fi
  5202. if test -z "$ac_cv_prog_DLLTOOL"; then
  5203. ac_ct_DLLTOOL=$DLLTOOL
  5204. # Extract the first word of "dlltool", so it can be a program name with args.
  5205. set dummy dlltool; ac_word=$2
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5207. $as_echo_n "checking for $ac_word... " >&6; }
  5208. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5209. $as_echo_n "(cached) " >&6
  5210. else
  5211. if test -n "$ac_ct_DLLTOOL"; then
  5212. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5213. else
  5214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5215. for as_dir in $PATH
  5216. do
  5217. IFS=$as_save_IFS
  5218. test -z "$as_dir" && as_dir=.
  5219. for ac_exec_ext in '' $ac_executable_extensions; do
  5220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5221. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5223. break 2
  5224. fi
  5225. done
  5226. done
  5227. IFS=$as_save_IFS
  5228. fi
  5229. fi
  5230. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5231. if test -n "$ac_ct_DLLTOOL"; then
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5233. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5234. else
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5236. $as_echo "no" >&6; }
  5237. fi
  5238. if test "x$ac_ct_DLLTOOL" = x; then
  5239. DLLTOOL="false"
  5240. else
  5241. case $cross_compiling:$ac_tool_warned in
  5242. yes:)
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5244. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5245. ac_tool_warned=yes ;;
  5246. esac
  5247. DLLTOOL=$ac_ct_DLLTOOL
  5248. fi
  5249. else
  5250. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5251. fi
  5252. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5254. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5255. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5256. $as_echo_n "(cached) " >&6
  5257. else
  5258. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5259. case $host_os in
  5260. cygwin* | mingw* | pw32* | cegcc*)
  5261. # two different shell functions defined in ltmain.sh;
  5262. # decide which one to use based on capabilities of $DLLTOOL
  5263. case `$DLLTOOL --help 2>&1` in
  5264. *--identify-strict*)
  5265. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5266. ;;
  5267. *)
  5268. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5269. ;;
  5270. esac
  5271. ;;
  5272. *)
  5273. # fallback: assume linklib IS sharedlib
  5274. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5275. ;;
  5276. esac
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5279. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5280. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5281. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5282. if test -n "$ac_tool_prefix"; then
  5283. for ac_prog in ar
  5284. do
  5285. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5286. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5288. $as_echo_n "checking for $ac_word... " >&6; }
  5289. if ${ac_cv_prog_AR+:} false; then :
  5290. $as_echo_n "(cached) " >&6
  5291. else
  5292. if test -n "$AR"; then
  5293. ac_cv_prog_AR="$AR" # Let the user override the test.
  5294. else
  5295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5296. for as_dir in $PATH
  5297. do
  5298. IFS=$as_save_IFS
  5299. test -z "$as_dir" && as_dir=.
  5300. for ac_exec_ext in '' $ac_executable_extensions; do
  5301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5302. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5304. break 2
  5305. fi
  5306. done
  5307. done
  5308. IFS=$as_save_IFS
  5309. fi
  5310. fi
  5311. AR=$ac_cv_prog_AR
  5312. if test -n "$AR"; then
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5314. $as_echo "$AR" >&6; }
  5315. else
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5317. $as_echo "no" >&6; }
  5318. fi
  5319. test -n "$AR" && break
  5320. done
  5321. fi
  5322. if test -z "$AR"; then
  5323. ac_ct_AR=$AR
  5324. for ac_prog in ar
  5325. do
  5326. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5327. set dummy $ac_prog; ac_word=$2
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5329. $as_echo_n "checking for $ac_word... " >&6; }
  5330. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. if test -n "$ac_ct_AR"; then
  5334. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5335. else
  5336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5337. for as_dir in $PATH
  5338. do
  5339. IFS=$as_save_IFS
  5340. test -z "$as_dir" && as_dir=.
  5341. for ac_exec_ext in '' $ac_executable_extensions; do
  5342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5343. ac_cv_prog_ac_ct_AR="$ac_prog"
  5344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5345. break 2
  5346. fi
  5347. done
  5348. done
  5349. IFS=$as_save_IFS
  5350. fi
  5351. fi
  5352. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5353. if test -n "$ac_ct_AR"; then
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5355. $as_echo "$ac_ct_AR" >&6; }
  5356. else
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5358. $as_echo "no" >&6; }
  5359. fi
  5360. test -n "$ac_ct_AR" && break
  5361. done
  5362. if test "x$ac_ct_AR" = x; then
  5363. AR="false"
  5364. else
  5365. case $cross_compiling:$ac_tool_warned in
  5366. yes:)
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5368. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5369. ac_tool_warned=yes ;;
  5370. esac
  5371. AR=$ac_ct_AR
  5372. fi
  5373. fi
  5374. : ${AR=ar}
  5375. : ${AR_FLAGS=cru}
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5377. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5378. if ${lt_cv_ar_at_file+:} false; then :
  5379. $as_echo_n "(cached) " >&6
  5380. else
  5381. lt_cv_ar_at_file=no
  5382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5383. /* end confdefs.h. */
  5384. int
  5385. main ()
  5386. {
  5387. ;
  5388. return 0;
  5389. }
  5390. _ACEOF
  5391. if ac_fn_c_try_compile "$LINENO"; then :
  5392. echo conftest.$ac_objext > conftest.lst
  5393. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5394. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5395. (eval $lt_ar_try) 2>&5
  5396. ac_status=$?
  5397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5398. test $ac_status = 0; }
  5399. if test 0 -eq "$ac_status"; then
  5400. # Ensure the archiver fails upon bogus file names.
  5401. rm -f conftest.$ac_objext libconftest.a
  5402. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5403. (eval $lt_ar_try) 2>&5
  5404. ac_status=$?
  5405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5406. test $ac_status = 0; }
  5407. if test 0 -ne "$ac_status"; then
  5408. lt_cv_ar_at_file=@
  5409. fi
  5410. fi
  5411. rm -f conftest.* libconftest.a
  5412. fi
  5413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5414. fi
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5416. $as_echo "$lt_cv_ar_at_file" >&6; }
  5417. if test no = "$lt_cv_ar_at_file"; then
  5418. archiver_list_spec=
  5419. else
  5420. archiver_list_spec=$lt_cv_ar_at_file
  5421. fi
  5422. if test -n "$ac_tool_prefix"; then
  5423. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5424. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5426. $as_echo_n "checking for $ac_word... " >&6; }
  5427. if ${ac_cv_prog_STRIP+:} false; then :
  5428. $as_echo_n "(cached) " >&6
  5429. else
  5430. if test -n "$STRIP"; then
  5431. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5432. else
  5433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5434. for as_dir in $PATH
  5435. do
  5436. IFS=$as_save_IFS
  5437. test -z "$as_dir" && as_dir=.
  5438. for ac_exec_ext in '' $ac_executable_extensions; do
  5439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5440. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5442. break 2
  5443. fi
  5444. done
  5445. done
  5446. IFS=$as_save_IFS
  5447. fi
  5448. fi
  5449. STRIP=$ac_cv_prog_STRIP
  5450. if test -n "$STRIP"; then
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5452. $as_echo "$STRIP" >&6; }
  5453. else
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5455. $as_echo "no" >&6; }
  5456. fi
  5457. fi
  5458. if test -z "$ac_cv_prog_STRIP"; then
  5459. ac_ct_STRIP=$STRIP
  5460. # Extract the first word of "strip", so it can be a program name with args.
  5461. set dummy strip; ac_word=$2
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5463. $as_echo_n "checking for $ac_word... " >&6; }
  5464. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. if test -n "$ac_ct_STRIP"; then
  5468. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5469. else
  5470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5471. for as_dir in $PATH
  5472. do
  5473. IFS=$as_save_IFS
  5474. test -z "$as_dir" && as_dir=.
  5475. for ac_exec_ext in '' $ac_executable_extensions; do
  5476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5477. ac_cv_prog_ac_ct_STRIP="strip"
  5478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5479. break 2
  5480. fi
  5481. done
  5482. done
  5483. IFS=$as_save_IFS
  5484. fi
  5485. fi
  5486. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5487. if test -n "$ac_ct_STRIP"; then
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5489. $as_echo "$ac_ct_STRIP" >&6; }
  5490. else
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5492. $as_echo "no" >&6; }
  5493. fi
  5494. if test "x$ac_ct_STRIP" = x; then
  5495. STRIP=":"
  5496. else
  5497. case $cross_compiling:$ac_tool_warned in
  5498. yes:)
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5500. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5501. ac_tool_warned=yes ;;
  5502. esac
  5503. STRIP=$ac_ct_STRIP
  5504. fi
  5505. else
  5506. STRIP="$ac_cv_prog_STRIP"
  5507. fi
  5508. test -z "$STRIP" && STRIP=:
  5509. if test -n "$ac_tool_prefix"; then
  5510. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5511. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5513. $as_echo_n "checking for $ac_word... " >&6; }
  5514. if ${ac_cv_prog_RANLIB+:} false; then :
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. if test -n "$RANLIB"; then
  5518. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5519. else
  5520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5521. for as_dir in $PATH
  5522. do
  5523. IFS=$as_save_IFS
  5524. test -z "$as_dir" && as_dir=.
  5525. for ac_exec_ext in '' $ac_executable_extensions; do
  5526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5527. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5529. break 2
  5530. fi
  5531. done
  5532. done
  5533. IFS=$as_save_IFS
  5534. fi
  5535. fi
  5536. RANLIB=$ac_cv_prog_RANLIB
  5537. if test -n "$RANLIB"; then
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5539. $as_echo "$RANLIB" >&6; }
  5540. else
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5542. $as_echo "no" >&6; }
  5543. fi
  5544. fi
  5545. if test -z "$ac_cv_prog_RANLIB"; then
  5546. ac_ct_RANLIB=$RANLIB
  5547. # Extract the first word of "ranlib", so it can be a program name with args.
  5548. set dummy ranlib; ac_word=$2
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5550. $as_echo_n "checking for $ac_word... " >&6; }
  5551. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5552. $as_echo_n "(cached) " >&6
  5553. else
  5554. if test -n "$ac_ct_RANLIB"; then
  5555. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5556. else
  5557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5558. for as_dir in $PATH
  5559. do
  5560. IFS=$as_save_IFS
  5561. test -z "$as_dir" && as_dir=.
  5562. for ac_exec_ext in '' $ac_executable_extensions; do
  5563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5564. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5566. break 2
  5567. fi
  5568. done
  5569. done
  5570. IFS=$as_save_IFS
  5571. fi
  5572. fi
  5573. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5574. if test -n "$ac_ct_RANLIB"; then
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5576. $as_echo "$ac_ct_RANLIB" >&6; }
  5577. else
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5579. $as_echo "no" >&6; }
  5580. fi
  5581. if test "x$ac_ct_RANLIB" = x; then
  5582. RANLIB=":"
  5583. else
  5584. case $cross_compiling:$ac_tool_warned in
  5585. yes:)
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5588. ac_tool_warned=yes ;;
  5589. esac
  5590. RANLIB=$ac_ct_RANLIB
  5591. fi
  5592. else
  5593. RANLIB="$ac_cv_prog_RANLIB"
  5594. fi
  5595. test -z "$RANLIB" && RANLIB=:
  5596. # Determine commands to create old-style static archives.
  5597. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5598. old_postinstall_cmds='chmod 644 $oldlib'
  5599. old_postuninstall_cmds=
  5600. if test -n "$RANLIB"; then
  5601. case $host_os in
  5602. bitrig* | openbsd*)
  5603. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5604. ;;
  5605. *)
  5606. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5607. ;;
  5608. esac
  5609. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5610. fi
  5611. case $host_os in
  5612. darwin*)
  5613. lock_old_archive_extraction=yes ;;
  5614. *)
  5615. lock_old_archive_extraction=no ;;
  5616. esac
  5617. # If no C compiler was specified, use CC.
  5618. LTCC=${LTCC-"$CC"}
  5619. # If no C compiler flags were specified, use CFLAGS.
  5620. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5621. # Allow CC to be a program name with arguments.
  5622. compiler=$CC
  5623. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5625. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5626. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5627. $as_echo_n "(cached) " >&6
  5628. else
  5629. # These are sane defaults that work on at least a few old systems.
  5630. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5631. # Character class describing NM global symbol codes.
  5632. symcode='[BCDEGRST]'
  5633. # Regexp to match symbols that can be accessed directly from C.
  5634. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5635. # Define system-specific variables.
  5636. case $host_os in
  5637. aix*)
  5638. symcode='[BCDT]'
  5639. ;;
  5640. cygwin* | mingw* | pw32* | cegcc*)
  5641. symcode='[ABCDGISTW]'
  5642. ;;
  5643. hpux*)
  5644. if test ia64 = "$host_cpu"; then
  5645. symcode='[ABCDEGRST]'
  5646. fi
  5647. ;;
  5648. irix* | nonstopux*)
  5649. symcode='[BCDEGRST]'
  5650. ;;
  5651. osf*)
  5652. symcode='[BCDEGQRST]'
  5653. ;;
  5654. solaris*)
  5655. symcode='[BDRT]'
  5656. ;;
  5657. sco3.2v5*)
  5658. symcode='[DT]'
  5659. ;;
  5660. sysv4.2uw2*)
  5661. symcode='[DT]'
  5662. ;;
  5663. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5664. symcode='[ABDT]'
  5665. ;;
  5666. sysv4)
  5667. symcode='[DFNSTU]'
  5668. ;;
  5669. esac
  5670. # If we're using GNU nm, then use its standard symbol codes.
  5671. case `$NM -V 2>&1` in
  5672. *GNU* | *'with BFD'*)
  5673. symcode='[ABCDGIRSTW]' ;;
  5674. esac
  5675. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5676. # Gets list of data symbols to import.
  5677. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5678. # Adjust the below global symbol transforms to fixup imported variables.
  5679. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5680. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5681. lt_c_name_lib_hook="\
  5682. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5683. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5684. else
  5685. # Disable hooks by default.
  5686. lt_cv_sys_global_symbol_to_import=
  5687. lt_cdecl_hook=
  5688. lt_c_name_hook=
  5689. lt_c_name_lib_hook=
  5690. fi
  5691. # Transform an extracted symbol line into a proper C declaration.
  5692. # Some systems (esp. on ia64) link data and code symbols differently,
  5693. # so use this general approach.
  5694. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5695. $lt_cdecl_hook\
  5696. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5697. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5698. # Transform an extracted symbol line into symbol name and symbol address
  5699. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5700. $lt_c_name_hook\
  5701. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5702. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5703. # Transform an extracted symbol line into symbol name with lib prefix and
  5704. # symbol address.
  5705. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5706. $lt_c_name_lib_hook\
  5707. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5708. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5709. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5710. # Handle CRLF in mingw tool chain
  5711. opt_cr=
  5712. case $build_os in
  5713. mingw*)
  5714. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5715. ;;
  5716. esac
  5717. # Try without a prefix underscore, then with it.
  5718. for ac_symprfx in "" "_"; do
  5719. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5720. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5721. # Write the raw and C identifiers.
  5722. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5723. # Fake it for dumpbin and say T for any non-static function,
  5724. # D for any global variable and I for any imported variable.
  5725. # Also find C++ and __fastcall symbols from MSVC++,
  5726. # which start with @ or ?.
  5727. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5728. " {last_section=section; section=\$ 3};"\
  5729. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5730. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5731. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5732. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5733. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5734. " \$ 0!~/External *\|/{next};"\
  5735. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5736. " {if(hide[section]) next};"\
  5737. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5738. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5739. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5740. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5741. " ' prfx=^$ac_symprfx"
  5742. else
  5743. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5744. fi
  5745. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5746. # Check to see that the pipe works correctly.
  5747. pipe_works=no
  5748. rm -f conftest*
  5749. cat > conftest.$ac_ext <<_LT_EOF
  5750. #ifdef __cplusplus
  5751. extern "C" {
  5752. #endif
  5753. char nm_test_var;
  5754. void nm_test_func(void);
  5755. void nm_test_func(void){}
  5756. #ifdef __cplusplus
  5757. }
  5758. #endif
  5759. int main(){nm_test_var='a';nm_test_func();return(0);}
  5760. _LT_EOF
  5761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5762. (eval $ac_compile) 2>&5
  5763. ac_status=$?
  5764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5765. test $ac_status = 0; }; then
  5766. # Now try to grab the symbols.
  5767. nlist=conftest.nm
  5768. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5769. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5770. ac_status=$?
  5771. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5772. test $ac_status = 0; } && test -s "$nlist"; then
  5773. # Try sorting and uniquifying the output.
  5774. if sort "$nlist" | uniq > "$nlist"T; then
  5775. mv -f "$nlist"T "$nlist"
  5776. else
  5777. rm -f "$nlist"T
  5778. fi
  5779. # Make sure that we snagged all the symbols we need.
  5780. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5781. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5782. cat <<_LT_EOF > conftest.$ac_ext
  5783. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5784. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5785. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5786. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5787. # define LT_DLSYM_CONST
  5788. #elif defined __osf__
  5789. /* This system does not cope well with relocations in const data. */
  5790. # define LT_DLSYM_CONST
  5791. #else
  5792. # define LT_DLSYM_CONST const
  5793. #endif
  5794. #ifdef __cplusplus
  5795. extern "C" {
  5796. #endif
  5797. _LT_EOF
  5798. # Now generate the symbol file.
  5799. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5800. cat <<_LT_EOF >> conftest.$ac_ext
  5801. /* The mapping between symbol names and symbols. */
  5802. LT_DLSYM_CONST struct {
  5803. const char *name;
  5804. void *address;
  5805. }
  5806. lt__PROGRAM__LTX_preloaded_symbols[] =
  5807. {
  5808. { "@PROGRAM@", (void *) 0 },
  5809. _LT_EOF
  5810. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5811. cat <<\_LT_EOF >> conftest.$ac_ext
  5812. {0, (void *) 0}
  5813. };
  5814. /* This works around a problem in FreeBSD linker */
  5815. #ifdef FREEBSD_WORKAROUND
  5816. static const void *lt_preloaded_setup() {
  5817. return lt__PROGRAM__LTX_preloaded_symbols;
  5818. }
  5819. #endif
  5820. #ifdef __cplusplus
  5821. }
  5822. #endif
  5823. _LT_EOF
  5824. # Now try linking the two files.
  5825. mv conftest.$ac_objext conftstm.$ac_objext
  5826. lt_globsym_save_LIBS=$LIBS
  5827. lt_globsym_save_CFLAGS=$CFLAGS
  5828. LIBS=conftstm.$ac_objext
  5829. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5831. (eval $ac_link) 2>&5
  5832. ac_status=$?
  5833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5834. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5835. pipe_works=yes
  5836. fi
  5837. LIBS=$lt_globsym_save_LIBS
  5838. CFLAGS=$lt_globsym_save_CFLAGS
  5839. else
  5840. echo "cannot find nm_test_func in $nlist" >&5
  5841. fi
  5842. else
  5843. echo "cannot find nm_test_var in $nlist" >&5
  5844. fi
  5845. else
  5846. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5847. fi
  5848. else
  5849. echo "$progname: failed program was:" >&5
  5850. cat conftest.$ac_ext >&5
  5851. fi
  5852. rm -rf conftest* conftst*
  5853. # Do not use the global_symbol_pipe unless it works.
  5854. if test yes = "$pipe_works"; then
  5855. break
  5856. else
  5857. lt_cv_sys_global_symbol_pipe=
  5858. fi
  5859. done
  5860. fi
  5861. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5862. lt_cv_sys_global_symbol_to_cdecl=
  5863. fi
  5864. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5866. $as_echo "failed" >&6; }
  5867. else
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5869. $as_echo "ok" >&6; }
  5870. fi
  5871. # Response file support.
  5872. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5873. nm_file_list_spec='@'
  5874. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5875. nm_file_list_spec='@'
  5876. fi
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5878. $as_echo_n "checking for sysroot... " >&6; }
  5879. # Check whether --with-sysroot was given.
  5880. if test "${with_sysroot+set}" = set; then :
  5881. withval=$with_sysroot;
  5882. else
  5883. with_sysroot=no
  5884. fi
  5885. lt_sysroot=
  5886. case $with_sysroot in #(
  5887. yes)
  5888. if test yes = "$GCC"; then
  5889. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5890. fi
  5891. ;; #(
  5892. /*)
  5893. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5894. ;; #(
  5895. no|'')
  5896. ;; #(
  5897. *)
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5899. $as_echo "$with_sysroot" >&6; }
  5900. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5901. ;;
  5902. esac
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5904. $as_echo "${lt_sysroot:-no}" >&6; }
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5906. $as_echo_n "checking for a working dd... " >&6; }
  5907. if ${ac_cv_path_lt_DD+:} false; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. printf 0123456789abcdef0123456789abcdef >conftest.i
  5911. cat conftest.i conftest.i >conftest2.i
  5912. : ${lt_DD:=$DD}
  5913. if test -z "$lt_DD"; then
  5914. ac_path_lt_DD_found=false
  5915. # Loop through the user's path and test for each of PROGNAME-LIST
  5916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5917. for as_dir in $PATH
  5918. do
  5919. IFS=$as_save_IFS
  5920. test -z "$as_dir" && as_dir=.
  5921. for ac_prog in dd; do
  5922. for ac_exec_ext in '' $ac_executable_extensions; do
  5923. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5924. as_fn_executable_p "$ac_path_lt_DD" || continue
  5925. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5926. cmp -s conftest.i conftest.out \
  5927. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5928. fi
  5929. $ac_path_lt_DD_found && break 3
  5930. done
  5931. done
  5932. done
  5933. IFS=$as_save_IFS
  5934. if test -z "$ac_cv_path_lt_DD"; then
  5935. :
  5936. fi
  5937. else
  5938. ac_cv_path_lt_DD=$lt_DD
  5939. fi
  5940. rm -f conftest.i conftest2.i conftest.out
  5941. fi
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5943. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5945. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5946. if ${lt_cv_truncate_bin+:} false; then :
  5947. $as_echo_n "(cached) " >&6
  5948. else
  5949. printf 0123456789abcdef0123456789abcdef >conftest.i
  5950. cat conftest.i conftest.i >conftest2.i
  5951. lt_cv_truncate_bin=
  5952. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5953. cmp -s conftest.i conftest.out \
  5954. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5955. fi
  5956. rm -f conftest.i conftest2.i conftest.out
  5957. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5958. fi
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5960. $as_echo "$lt_cv_truncate_bin" >&6; }
  5961. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5962. func_cc_basename ()
  5963. {
  5964. for cc_temp in $*""; do
  5965. case $cc_temp in
  5966. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5967. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5968. \-*) ;;
  5969. *) break;;
  5970. esac
  5971. done
  5972. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5973. }
  5974. # Check whether --enable-libtool-lock was given.
  5975. if test "${enable_libtool_lock+set}" = set; then :
  5976. enableval=$enable_libtool_lock;
  5977. fi
  5978. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5979. # Some flags need to be propagated to the compiler or linker for good
  5980. # libtool support.
  5981. case $host in
  5982. ia64-*-hpux*)
  5983. # Find out what ABI is being produced by ac_compile, and set mode
  5984. # options accordingly.
  5985. echo 'int i;' > conftest.$ac_ext
  5986. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5987. (eval $ac_compile) 2>&5
  5988. ac_status=$?
  5989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5990. test $ac_status = 0; }; then
  5991. case `/usr/bin/file conftest.$ac_objext` in
  5992. *ELF-32*)
  5993. HPUX_IA64_MODE=32
  5994. ;;
  5995. *ELF-64*)
  5996. HPUX_IA64_MODE=64
  5997. ;;
  5998. esac
  5999. fi
  6000. rm -rf conftest*
  6001. ;;
  6002. *-*-irix6*)
  6003. # Find out what ABI is being produced by ac_compile, and set linker
  6004. # options accordingly.
  6005. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6007. (eval $ac_compile) 2>&5
  6008. ac_status=$?
  6009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6010. test $ac_status = 0; }; then
  6011. if test yes = "$lt_cv_prog_gnu_ld"; then
  6012. case `/usr/bin/file conftest.$ac_objext` in
  6013. *32-bit*)
  6014. LD="${LD-ld} -melf32bsmip"
  6015. ;;
  6016. *N32*)
  6017. LD="${LD-ld} -melf32bmipn32"
  6018. ;;
  6019. *64-bit*)
  6020. LD="${LD-ld} -melf64bmip"
  6021. ;;
  6022. esac
  6023. else
  6024. case `/usr/bin/file conftest.$ac_objext` in
  6025. *32-bit*)
  6026. LD="${LD-ld} -32"
  6027. ;;
  6028. *N32*)
  6029. LD="${LD-ld} -n32"
  6030. ;;
  6031. *64-bit*)
  6032. LD="${LD-ld} -64"
  6033. ;;
  6034. esac
  6035. fi
  6036. fi
  6037. rm -rf conftest*
  6038. ;;
  6039. mips64*-*linux*)
  6040. # Find out what ABI is being produced by ac_compile, and set linker
  6041. # options accordingly.
  6042. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6043. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6044. (eval $ac_compile) 2>&5
  6045. ac_status=$?
  6046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6047. test $ac_status = 0; }; then
  6048. emul=elf
  6049. case `/usr/bin/file conftest.$ac_objext` in
  6050. *32-bit*)
  6051. emul="${emul}32"
  6052. ;;
  6053. *64-bit*)
  6054. emul="${emul}64"
  6055. ;;
  6056. esac
  6057. case `/usr/bin/file conftest.$ac_objext` in
  6058. *MSB*)
  6059. emul="${emul}btsmip"
  6060. ;;
  6061. *LSB*)
  6062. emul="${emul}ltsmip"
  6063. ;;
  6064. esac
  6065. case `/usr/bin/file conftest.$ac_objext` in
  6066. *N32*)
  6067. emul="${emul}n32"
  6068. ;;
  6069. esac
  6070. LD="${LD-ld} -m $emul"
  6071. fi
  6072. rm -rf conftest*
  6073. ;;
  6074. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6075. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6076. # Find out what ABI is being produced by ac_compile, and set linker
  6077. # options accordingly. Note that the listed cases only cover the
  6078. # situations where additional linker options are needed (such as when
  6079. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6080. # vice versa); the common cases where no linker options are needed do
  6081. # not appear in the list.
  6082. echo 'int i;' > conftest.$ac_ext
  6083. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6084. (eval $ac_compile) 2>&5
  6085. ac_status=$?
  6086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6087. test $ac_status = 0; }; then
  6088. case `/usr/bin/file conftest.o` in
  6089. *32-bit*)
  6090. case $host in
  6091. x86_64-*kfreebsd*-gnu)
  6092. LD="${LD-ld} -m elf_i386_fbsd"
  6093. ;;
  6094. x86_64-*linux*)
  6095. case `/usr/bin/file conftest.o` in
  6096. *x86-64*)
  6097. LD="${LD-ld} -m elf32_x86_64"
  6098. ;;
  6099. *)
  6100. LD="${LD-ld} -m elf_i386"
  6101. ;;
  6102. esac
  6103. ;;
  6104. powerpc64le-*linux*)
  6105. LD="${LD-ld} -m elf32lppclinux"
  6106. ;;
  6107. powerpc64-*linux*)
  6108. LD="${LD-ld} -m elf32ppclinux"
  6109. ;;
  6110. s390x-*linux*)
  6111. LD="${LD-ld} -m elf_s390"
  6112. ;;
  6113. sparc64-*linux*)
  6114. LD="${LD-ld} -m elf32_sparc"
  6115. ;;
  6116. esac
  6117. ;;
  6118. *64-bit*)
  6119. case $host in
  6120. x86_64-*kfreebsd*-gnu)
  6121. LD="${LD-ld} -m elf_x86_64_fbsd"
  6122. ;;
  6123. x86_64-*linux*)
  6124. LD="${LD-ld} -m elf_x86_64"
  6125. ;;
  6126. powerpcle-*linux*|powerpc64le-*linux*)
  6127. LD="${LD-ld} -m elf64lppc"
  6128. ;;
  6129. powerpc-*linux*|powerpc64-*linux*)
  6130. LD="${LD-ld} -m elf64ppc"
  6131. ;;
  6132. s390*-*linux*|s390*-*tpf*)
  6133. LD="${LD-ld} -m elf64_s390"
  6134. ;;
  6135. sparc*-*linux*)
  6136. LD="${LD-ld} -m elf64_sparc"
  6137. ;;
  6138. esac
  6139. ;;
  6140. esac
  6141. fi
  6142. rm -rf conftest*
  6143. ;;
  6144. *-*-sco3.2v5*)
  6145. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6146. SAVE_CFLAGS=$CFLAGS
  6147. CFLAGS="$CFLAGS -belf"
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6149. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6150. if ${lt_cv_cc_needs_belf+:} false; then :
  6151. $as_echo_n "(cached) " >&6
  6152. else
  6153. ac_ext=c
  6154. ac_cpp='$CPP $CPPFLAGS'
  6155. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6156. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6157. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6159. /* end confdefs.h. */
  6160. int
  6161. main ()
  6162. {
  6163. ;
  6164. return 0;
  6165. }
  6166. _ACEOF
  6167. if ac_fn_c_try_link "$LINENO"; then :
  6168. lt_cv_cc_needs_belf=yes
  6169. else
  6170. lt_cv_cc_needs_belf=no
  6171. fi
  6172. rm -f core conftest.err conftest.$ac_objext \
  6173. conftest$ac_exeext conftest.$ac_ext
  6174. ac_ext=c
  6175. ac_cpp='$CPP $CPPFLAGS'
  6176. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6177. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6178. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6179. fi
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6181. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6182. if test yes != "$lt_cv_cc_needs_belf"; then
  6183. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6184. CFLAGS=$SAVE_CFLAGS
  6185. fi
  6186. ;;
  6187. *-*solaris*)
  6188. # Find out what ABI is being produced by ac_compile, and set linker
  6189. # options accordingly.
  6190. echo 'int i;' > conftest.$ac_ext
  6191. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6192. (eval $ac_compile) 2>&5
  6193. ac_status=$?
  6194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6195. test $ac_status = 0; }; then
  6196. case `/usr/bin/file conftest.o` in
  6197. *64-bit*)
  6198. case $lt_cv_prog_gnu_ld in
  6199. yes*)
  6200. case $host in
  6201. i?86-*-solaris*|x86_64-*-solaris*)
  6202. LD="${LD-ld} -m elf_x86_64"
  6203. ;;
  6204. sparc*-*-solaris*)
  6205. LD="${LD-ld} -m elf64_sparc"
  6206. ;;
  6207. esac
  6208. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6209. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6210. LD=${LD-ld}_sol2
  6211. fi
  6212. ;;
  6213. *)
  6214. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6215. LD="${LD-ld} -64"
  6216. fi
  6217. ;;
  6218. esac
  6219. ;;
  6220. esac
  6221. fi
  6222. rm -rf conftest*
  6223. ;;
  6224. esac
  6225. need_locks=$enable_libtool_lock
  6226. if test -n "$ac_tool_prefix"; then
  6227. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6228. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6230. $as_echo_n "checking for $ac_word... " >&6; }
  6231. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6232. $as_echo_n "(cached) " >&6
  6233. else
  6234. if test -n "$MANIFEST_TOOL"; then
  6235. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6236. else
  6237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6238. for as_dir in $PATH
  6239. do
  6240. IFS=$as_save_IFS
  6241. test -z "$as_dir" && as_dir=.
  6242. for ac_exec_ext in '' $ac_executable_extensions; do
  6243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6244. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6246. break 2
  6247. fi
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. fi
  6252. fi
  6253. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6254. if test -n "$MANIFEST_TOOL"; then
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6256. $as_echo "$MANIFEST_TOOL" >&6; }
  6257. else
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6259. $as_echo "no" >&6; }
  6260. fi
  6261. fi
  6262. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6263. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6264. # Extract the first word of "mt", so it can be a program name with args.
  6265. set dummy mt; ac_word=$2
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6267. $as_echo_n "checking for $ac_word... " >&6; }
  6268. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6269. $as_echo_n "(cached) " >&6
  6270. else
  6271. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6272. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6273. else
  6274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6275. for as_dir in $PATH
  6276. do
  6277. IFS=$as_save_IFS
  6278. test -z "$as_dir" && as_dir=.
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6281. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi
  6289. fi
  6290. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6291. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6293. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6294. else
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6296. $as_echo "no" >&6; }
  6297. fi
  6298. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6299. MANIFEST_TOOL=":"
  6300. else
  6301. case $cross_compiling:$ac_tool_warned in
  6302. yes:)
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6304. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6305. ac_tool_warned=yes ;;
  6306. esac
  6307. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6308. fi
  6309. else
  6310. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6311. fi
  6312. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6314. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6315. if ${lt_cv_path_mainfest_tool+:} false; then :
  6316. $as_echo_n "(cached) " >&6
  6317. else
  6318. lt_cv_path_mainfest_tool=no
  6319. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6320. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6321. cat conftest.err >&5
  6322. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6323. lt_cv_path_mainfest_tool=yes
  6324. fi
  6325. rm -f conftest*
  6326. fi
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6328. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6329. if test yes != "$lt_cv_path_mainfest_tool"; then
  6330. MANIFEST_TOOL=:
  6331. fi
  6332. case $host_os in
  6333. rhapsody* | darwin*)
  6334. if test -n "$ac_tool_prefix"; then
  6335. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6336. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6338. $as_echo_n "checking for $ac_word... " >&6; }
  6339. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6340. $as_echo_n "(cached) " >&6
  6341. else
  6342. if test -n "$DSYMUTIL"; then
  6343. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6344. else
  6345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6346. for as_dir in $PATH
  6347. do
  6348. IFS=$as_save_IFS
  6349. test -z "$as_dir" && as_dir=.
  6350. for ac_exec_ext in '' $ac_executable_extensions; do
  6351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6352. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6354. break 2
  6355. fi
  6356. done
  6357. done
  6358. IFS=$as_save_IFS
  6359. fi
  6360. fi
  6361. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6362. if test -n "$DSYMUTIL"; then
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6364. $as_echo "$DSYMUTIL" >&6; }
  6365. else
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6367. $as_echo "no" >&6; }
  6368. fi
  6369. fi
  6370. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6371. ac_ct_DSYMUTIL=$DSYMUTIL
  6372. # Extract the first word of "dsymutil", so it can be a program name with args.
  6373. set dummy dsymutil; ac_word=$2
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6375. $as_echo_n "checking for $ac_word... " >&6; }
  6376. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. if test -n "$ac_ct_DSYMUTIL"; then
  6380. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6381. else
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. test -z "$as_dir" && as_dir=.
  6387. for ac_exec_ext in '' $ac_executable_extensions; do
  6388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6389. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6391. break 2
  6392. fi
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. fi
  6397. fi
  6398. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6399. if test -n "$ac_ct_DSYMUTIL"; then
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6401. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6402. else
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6404. $as_echo "no" >&6; }
  6405. fi
  6406. if test "x$ac_ct_DSYMUTIL" = x; then
  6407. DSYMUTIL=":"
  6408. else
  6409. case $cross_compiling:$ac_tool_warned in
  6410. yes:)
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6413. ac_tool_warned=yes ;;
  6414. esac
  6415. DSYMUTIL=$ac_ct_DSYMUTIL
  6416. fi
  6417. else
  6418. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6419. fi
  6420. if test -n "$ac_tool_prefix"; then
  6421. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6422. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6424. $as_echo_n "checking for $ac_word... " >&6; }
  6425. if ${ac_cv_prog_NMEDIT+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. if test -n "$NMEDIT"; then
  6429. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6430. else
  6431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6432. for as_dir in $PATH
  6433. do
  6434. IFS=$as_save_IFS
  6435. test -z "$as_dir" && as_dir=.
  6436. for ac_exec_ext in '' $ac_executable_extensions; do
  6437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6438. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6440. break 2
  6441. fi
  6442. done
  6443. done
  6444. IFS=$as_save_IFS
  6445. fi
  6446. fi
  6447. NMEDIT=$ac_cv_prog_NMEDIT
  6448. if test -n "$NMEDIT"; then
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6450. $as_echo "$NMEDIT" >&6; }
  6451. else
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6453. $as_echo "no" >&6; }
  6454. fi
  6455. fi
  6456. if test -z "$ac_cv_prog_NMEDIT"; then
  6457. ac_ct_NMEDIT=$NMEDIT
  6458. # Extract the first word of "nmedit", so it can be a program name with args.
  6459. set dummy nmedit; ac_word=$2
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6461. $as_echo_n "checking for $ac_word... " >&6; }
  6462. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6463. $as_echo_n "(cached) " >&6
  6464. else
  6465. if test -n "$ac_ct_NMEDIT"; then
  6466. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6467. else
  6468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6469. for as_dir in $PATH
  6470. do
  6471. IFS=$as_save_IFS
  6472. test -z "$as_dir" && as_dir=.
  6473. for ac_exec_ext in '' $ac_executable_extensions; do
  6474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6475. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6477. break 2
  6478. fi
  6479. done
  6480. done
  6481. IFS=$as_save_IFS
  6482. fi
  6483. fi
  6484. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6485. if test -n "$ac_ct_NMEDIT"; then
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6487. $as_echo "$ac_ct_NMEDIT" >&6; }
  6488. else
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6490. $as_echo "no" >&6; }
  6491. fi
  6492. if test "x$ac_ct_NMEDIT" = x; then
  6493. NMEDIT=":"
  6494. else
  6495. case $cross_compiling:$ac_tool_warned in
  6496. yes:)
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6499. ac_tool_warned=yes ;;
  6500. esac
  6501. NMEDIT=$ac_ct_NMEDIT
  6502. fi
  6503. else
  6504. NMEDIT="$ac_cv_prog_NMEDIT"
  6505. fi
  6506. if test -n "$ac_tool_prefix"; then
  6507. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6508. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6510. $as_echo_n "checking for $ac_word... " >&6; }
  6511. if ${ac_cv_prog_LIPO+:} false; then :
  6512. $as_echo_n "(cached) " >&6
  6513. else
  6514. if test -n "$LIPO"; then
  6515. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6516. else
  6517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6518. for as_dir in $PATH
  6519. do
  6520. IFS=$as_save_IFS
  6521. test -z "$as_dir" && as_dir=.
  6522. for ac_exec_ext in '' $ac_executable_extensions; do
  6523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6524. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6526. break 2
  6527. fi
  6528. done
  6529. done
  6530. IFS=$as_save_IFS
  6531. fi
  6532. fi
  6533. LIPO=$ac_cv_prog_LIPO
  6534. if test -n "$LIPO"; then
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6536. $as_echo "$LIPO" >&6; }
  6537. else
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. $as_echo "no" >&6; }
  6540. fi
  6541. fi
  6542. if test -z "$ac_cv_prog_LIPO"; then
  6543. ac_ct_LIPO=$LIPO
  6544. # Extract the first word of "lipo", so it can be a program name with args.
  6545. set dummy lipo; ac_word=$2
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6547. $as_echo_n "checking for $ac_word... " >&6; }
  6548. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6549. $as_echo_n "(cached) " >&6
  6550. else
  6551. if test -n "$ac_ct_LIPO"; then
  6552. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6553. else
  6554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6555. for as_dir in $PATH
  6556. do
  6557. IFS=$as_save_IFS
  6558. test -z "$as_dir" && as_dir=.
  6559. for ac_exec_ext in '' $ac_executable_extensions; do
  6560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6561. ac_cv_prog_ac_ct_LIPO="lipo"
  6562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6563. break 2
  6564. fi
  6565. done
  6566. done
  6567. IFS=$as_save_IFS
  6568. fi
  6569. fi
  6570. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6571. if test -n "$ac_ct_LIPO"; then
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6573. $as_echo "$ac_ct_LIPO" >&6; }
  6574. else
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6576. $as_echo "no" >&6; }
  6577. fi
  6578. if test "x$ac_ct_LIPO" = x; then
  6579. LIPO=":"
  6580. else
  6581. case $cross_compiling:$ac_tool_warned in
  6582. yes:)
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6584. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6585. ac_tool_warned=yes ;;
  6586. esac
  6587. LIPO=$ac_ct_LIPO
  6588. fi
  6589. else
  6590. LIPO="$ac_cv_prog_LIPO"
  6591. fi
  6592. if test -n "$ac_tool_prefix"; then
  6593. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6594. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6596. $as_echo_n "checking for $ac_word... " >&6; }
  6597. if ${ac_cv_prog_OTOOL+:} false; then :
  6598. $as_echo_n "(cached) " >&6
  6599. else
  6600. if test -n "$OTOOL"; then
  6601. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6602. else
  6603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6604. for as_dir in $PATH
  6605. do
  6606. IFS=$as_save_IFS
  6607. test -z "$as_dir" && as_dir=.
  6608. for ac_exec_ext in '' $ac_executable_extensions; do
  6609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6610. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6612. break 2
  6613. fi
  6614. done
  6615. done
  6616. IFS=$as_save_IFS
  6617. fi
  6618. fi
  6619. OTOOL=$ac_cv_prog_OTOOL
  6620. if test -n "$OTOOL"; then
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6622. $as_echo "$OTOOL" >&6; }
  6623. else
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6625. $as_echo "no" >&6; }
  6626. fi
  6627. fi
  6628. if test -z "$ac_cv_prog_OTOOL"; then
  6629. ac_ct_OTOOL=$OTOOL
  6630. # Extract the first word of "otool", so it can be a program name with args.
  6631. set dummy otool; ac_word=$2
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6633. $as_echo_n "checking for $ac_word... " >&6; }
  6634. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6635. $as_echo_n "(cached) " >&6
  6636. else
  6637. if test -n "$ac_ct_OTOOL"; then
  6638. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6639. else
  6640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6641. for as_dir in $PATH
  6642. do
  6643. IFS=$as_save_IFS
  6644. test -z "$as_dir" && as_dir=.
  6645. for ac_exec_ext in '' $ac_executable_extensions; do
  6646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6647. ac_cv_prog_ac_ct_OTOOL="otool"
  6648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6649. break 2
  6650. fi
  6651. done
  6652. done
  6653. IFS=$as_save_IFS
  6654. fi
  6655. fi
  6656. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6657. if test -n "$ac_ct_OTOOL"; then
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6659. $as_echo "$ac_ct_OTOOL" >&6; }
  6660. else
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6662. $as_echo "no" >&6; }
  6663. fi
  6664. if test "x$ac_ct_OTOOL" = x; then
  6665. OTOOL=":"
  6666. else
  6667. case $cross_compiling:$ac_tool_warned in
  6668. yes:)
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6670. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6671. ac_tool_warned=yes ;;
  6672. esac
  6673. OTOOL=$ac_ct_OTOOL
  6674. fi
  6675. else
  6676. OTOOL="$ac_cv_prog_OTOOL"
  6677. fi
  6678. if test -n "$ac_tool_prefix"; then
  6679. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6680. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6682. $as_echo_n "checking for $ac_word... " >&6; }
  6683. if ${ac_cv_prog_OTOOL64+:} false; then :
  6684. $as_echo_n "(cached) " >&6
  6685. else
  6686. if test -n "$OTOOL64"; then
  6687. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6688. else
  6689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6690. for as_dir in $PATH
  6691. do
  6692. IFS=$as_save_IFS
  6693. test -z "$as_dir" && as_dir=.
  6694. for ac_exec_ext in '' $ac_executable_extensions; do
  6695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6696. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6698. break 2
  6699. fi
  6700. done
  6701. done
  6702. IFS=$as_save_IFS
  6703. fi
  6704. fi
  6705. OTOOL64=$ac_cv_prog_OTOOL64
  6706. if test -n "$OTOOL64"; then
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6708. $as_echo "$OTOOL64" >&6; }
  6709. else
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6711. $as_echo "no" >&6; }
  6712. fi
  6713. fi
  6714. if test -z "$ac_cv_prog_OTOOL64"; then
  6715. ac_ct_OTOOL64=$OTOOL64
  6716. # Extract the first word of "otool64", so it can be a program name with args.
  6717. set dummy otool64; ac_word=$2
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6719. $as_echo_n "checking for $ac_word... " >&6; }
  6720. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. if test -n "$ac_ct_OTOOL64"; then
  6724. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6725. else
  6726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6727. for as_dir in $PATH
  6728. do
  6729. IFS=$as_save_IFS
  6730. test -z "$as_dir" && as_dir=.
  6731. for ac_exec_ext in '' $ac_executable_extensions; do
  6732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6733. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6735. break 2
  6736. fi
  6737. done
  6738. done
  6739. IFS=$as_save_IFS
  6740. fi
  6741. fi
  6742. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6743. if test -n "$ac_ct_OTOOL64"; then
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6745. $as_echo "$ac_ct_OTOOL64" >&6; }
  6746. else
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6748. $as_echo "no" >&6; }
  6749. fi
  6750. if test "x$ac_ct_OTOOL64" = x; then
  6751. OTOOL64=":"
  6752. else
  6753. case $cross_compiling:$ac_tool_warned in
  6754. yes:)
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6757. ac_tool_warned=yes ;;
  6758. esac
  6759. OTOOL64=$ac_ct_OTOOL64
  6760. fi
  6761. else
  6762. OTOOL64="$ac_cv_prog_OTOOL64"
  6763. fi
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6765. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6766. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6767. $as_echo_n "(cached) " >&6
  6768. else
  6769. lt_cv_apple_cc_single_mod=no
  6770. if test -z "$LT_MULTI_MODULE"; then
  6771. # By default we will add the -single_module flag. You can override
  6772. # by either setting the environment variable LT_MULTI_MODULE
  6773. # non-empty at configure time, or by adding -multi_module to the
  6774. # link flags.
  6775. rm -rf libconftest.dylib*
  6776. echo "int foo(void){return 1;}" > conftest.c
  6777. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6778. -dynamiclib -Wl,-single_module conftest.c" >&5
  6779. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6780. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6781. _lt_result=$?
  6782. # If there is a non-empty error log, and "single_module"
  6783. # appears in it, assume the flag caused a linker warning
  6784. if test -s conftest.err && $GREP single_module conftest.err; then
  6785. cat conftest.err >&5
  6786. # Otherwise, if the output was created with a 0 exit code from
  6787. # the compiler, it worked.
  6788. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6789. lt_cv_apple_cc_single_mod=yes
  6790. else
  6791. cat conftest.err >&5
  6792. fi
  6793. rm -rf libconftest.dylib*
  6794. rm -f conftest.*
  6795. fi
  6796. fi
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6798. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6800. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6801. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6802. $as_echo_n "(cached) " >&6
  6803. else
  6804. lt_cv_ld_exported_symbols_list=no
  6805. save_LDFLAGS=$LDFLAGS
  6806. echo "_main" > conftest.sym
  6807. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6809. /* end confdefs.h. */
  6810. int
  6811. main ()
  6812. {
  6813. ;
  6814. return 0;
  6815. }
  6816. _ACEOF
  6817. if ac_fn_c_try_link "$LINENO"; then :
  6818. lt_cv_ld_exported_symbols_list=yes
  6819. else
  6820. lt_cv_ld_exported_symbols_list=no
  6821. fi
  6822. rm -f core conftest.err conftest.$ac_objext \
  6823. conftest$ac_exeext conftest.$ac_ext
  6824. LDFLAGS=$save_LDFLAGS
  6825. fi
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6827. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6829. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6830. if ${lt_cv_ld_force_load+:} false; then :
  6831. $as_echo_n "(cached) " >&6
  6832. else
  6833. lt_cv_ld_force_load=no
  6834. cat > conftest.c << _LT_EOF
  6835. int forced_loaded() { return 2;}
  6836. _LT_EOF
  6837. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6838. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6839. echo "$AR cru libconftest.a conftest.o" >&5
  6840. $AR cru libconftest.a conftest.o 2>&5
  6841. echo "$RANLIB libconftest.a" >&5
  6842. $RANLIB libconftest.a 2>&5
  6843. cat > conftest.c << _LT_EOF
  6844. int main() { return 0;}
  6845. _LT_EOF
  6846. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6847. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6848. _lt_result=$?
  6849. if test -s conftest.err && $GREP force_load conftest.err; then
  6850. cat conftest.err >&5
  6851. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6852. lt_cv_ld_force_load=yes
  6853. else
  6854. cat conftest.err >&5
  6855. fi
  6856. rm -f conftest.err libconftest.a conftest conftest.c
  6857. rm -rf conftest.dSYM
  6858. fi
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6860. $as_echo "$lt_cv_ld_force_load" >&6; }
  6861. case $host_os in
  6862. rhapsody* | darwin1.[012])
  6863. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6864. darwin1.*)
  6865. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6866. darwin*) # darwin 5.x on
  6867. # if running on 10.5 or later, the deployment target defaults
  6868. # to the OS version, if on x86, and 10.4, the deployment
  6869. # target defaults to 10.4. Don't you love it?
  6870. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6871. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6872. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6873. 10.[012][,.]*)
  6874. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6875. 10.*)
  6876. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6877. esac
  6878. ;;
  6879. esac
  6880. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6881. _lt_dar_single_mod='$single_module'
  6882. fi
  6883. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6884. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6885. else
  6886. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6887. fi
  6888. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6889. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6890. else
  6891. _lt_dsymutil=
  6892. fi
  6893. ;;
  6894. esac
  6895. # func_munge_path_list VARIABLE PATH
  6896. # -----------------------------------
  6897. # VARIABLE is name of variable containing _space_ separated list of
  6898. # directories to be munged by the contents of PATH, which is string
  6899. # having a format:
  6900. # "DIR[:DIR]:"
  6901. # string "DIR[ DIR]" will be prepended to VARIABLE
  6902. # ":DIR[:DIR]"
  6903. # string "DIR[ DIR]" will be appended to VARIABLE
  6904. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6905. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6906. # "DIRA[ DIRA]" will be appended to VARIABLE
  6907. # "DIR[:DIR]"
  6908. # VARIABLE will be replaced by "DIR[ DIR]"
  6909. func_munge_path_list ()
  6910. {
  6911. case x$2 in
  6912. x)
  6913. ;;
  6914. *:)
  6915. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6916. ;;
  6917. x:*)
  6918. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6919. ;;
  6920. *::*)
  6921. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6922. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6923. ;;
  6924. *)
  6925. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6926. ;;
  6927. esac
  6928. }
  6929. ac_ext=c
  6930. ac_cpp='$CPP $CPPFLAGS'
  6931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6935. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6936. # On Suns, sometimes $CPP names a directory.
  6937. if test -n "$CPP" && test -d "$CPP"; then
  6938. CPP=
  6939. fi
  6940. if test -z "$CPP"; then
  6941. if ${ac_cv_prog_CPP+:} false; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. # Double quotes because CPP needs to be expanded
  6945. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6946. do
  6947. ac_preproc_ok=false
  6948. for ac_c_preproc_warn_flag in '' yes
  6949. do
  6950. # Use a header file that comes with gcc, so configuring glibc
  6951. # with a fresh cross-compiler works.
  6952. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6953. # <limits.h> exists even on freestanding compilers.
  6954. # On the NeXT, cc -E runs the code through the compiler's parser,
  6955. # not just through cpp. "Syntax error" is here to catch this case.
  6956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6957. /* end confdefs.h. */
  6958. #ifdef __STDC__
  6959. # include <limits.h>
  6960. #else
  6961. # include <assert.h>
  6962. #endif
  6963. Syntax error
  6964. _ACEOF
  6965. if ac_fn_c_try_cpp "$LINENO"; then :
  6966. else
  6967. # Broken: fails on valid input.
  6968. continue
  6969. fi
  6970. rm -f conftest.err conftest.i conftest.$ac_ext
  6971. # OK, works on sane cases. Now check whether nonexistent headers
  6972. # can be detected and how.
  6973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6974. /* end confdefs.h. */
  6975. #include <ac_nonexistent.h>
  6976. _ACEOF
  6977. if ac_fn_c_try_cpp "$LINENO"; then :
  6978. # Broken: success on invalid input.
  6979. continue
  6980. else
  6981. # Passes both tests.
  6982. ac_preproc_ok=:
  6983. break
  6984. fi
  6985. rm -f conftest.err conftest.i conftest.$ac_ext
  6986. done
  6987. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6988. rm -f conftest.i conftest.err conftest.$ac_ext
  6989. if $ac_preproc_ok; then :
  6990. break
  6991. fi
  6992. done
  6993. ac_cv_prog_CPP=$CPP
  6994. fi
  6995. CPP=$ac_cv_prog_CPP
  6996. else
  6997. ac_cv_prog_CPP=$CPP
  6998. fi
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7000. $as_echo "$CPP" >&6; }
  7001. ac_preproc_ok=false
  7002. for ac_c_preproc_warn_flag in '' yes
  7003. do
  7004. # Use a header file that comes with gcc, so configuring glibc
  7005. # with a fresh cross-compiler works.
  7006. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7007. # <limits.h> exists even on freestanding compilers.
  7008. # On the NeXT, cc -E runs the code through the compiler's parser,
  7009. # not just through cpp. "Syntax error" is here to catch this case.
  7010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7011. /* end confdefs.h. */
  7012. #ifdef __STDC__
  7013. # include <limits.h>
  7014. #else
  7015. # include <assert.h>
  7016. #endif
  7017. Syntax error
  7018. _ACEOF
  7019. if ac_fn_c_try_cpp "$LINENO"; then :
  7020. else
  7021. # Broken: fails on valid input.
  7022. continue
  7023. fi
  7024. rm -f conftest.err conftest.i conftest.$ac_ext
  7025. # OK, works on sane cases. Now check whether nonexistent headers
  7026. # can be detected and how.
  7027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7028. /* end confdefs.h. */
  7029. #include <ac_nonexistent.h>
  7030. _ACEOF
  7031. if ac_fn_c_try_cpp "$LINENO"; then :
  7032. # Broken: success on invalid input.
  7033. continue
  7034. else
  7035. # Passes both tests.
  7036. ac_preproc_ok=:
  7037. break
  7038. fi
  7039. rm -f conftest.err conftest.i conftest.$ac_ext
  7040. done
  7041. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7042. rm -f conftest.i conftest.err conftest.$ac_ext
  7043. if $ac_preproc_ok; then :
  7044. else
  7045. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7046. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7047. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7048. See \`config.log' for more details" "$LINENO" 5; }
  7049. fi
  7050. ac_ext=c
  7051. ac_cpp='$CPP $CPPFLAGS'
  7052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7056. $as_echo_n "checking for ANSI C header files... " >&6; }
  7057. if ${ac_cv_header_stdc+:} false; then :
  7058. $as_echo_n "(cached) " >&6
  7059. else
  7060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7061. /* end confdefs.h. */
  7062. #include <stdlib.h>
  7063. #include <stdarg.h>
  7064. #include <string.h>
  7065. #include <float.h>
  7066. int
  7067. main ()
  7068. {
  7069. ;
  7070. return 0;
  7071. }
  7072. _ACEOF
  7073. if ac_fn_c_try_compile "$LINENO"; then :
  7074. ac_cv_header_stdc=yes
  7075. else
  7076. ac_cv_header_stdc=no
  7077. fi
  7078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7079. if test $ac_cv_header_stdc = yes; then
  7080. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7082. /* end confdefs.h. */
  7083. #include <string.h>
  7084. _ACEOF
  7085. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7086. $EGREP "memchr" >/dev/null 2>&1; then :
  7087. else
  7088. ac_cv_header_stdc=no
  7089. fi
  7090. rm -f conftest*
  7091. fi
  7092. if test $ac_cv_header_stdc = yes; then
  7093. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7095. /* end confdefs.h. */
  7096. #include <stdlib.h>
  7097. _ACEOF
  7098. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7099. $EGREP "free" >/dev/null 2>&1; then :
  7100. else
  7101. ac_cv_header_stdc=no
  7102. fi
  7103. rm -f conftest*
  7104. fi
  7105. if test $ac_cv_header_stdc = yes; then
  7106. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7107. if test "$cross_compiling" = yes; then :
  7108. :
  7109. else
  7110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7111. /* end confdefs.h. */
  7112. #include <ctype.h>
  7113. #include <stdlib.h>
  7114. #if ((' ' & 0x0FF) == 0x020)
  7115. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7116. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7117. #else
  7118. # define ISLOWER(c) \
  7119. (('a' <= (c) && (c) <= 'i') \
  7120. || ('j' <= (c) && (c) <= 'r') \
  7121. || ('s' <= (c) && (c) <= 'z'))
  7122. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7123. #endif
  7124. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7125. int
  7126. main ()
  7127. {
  7128. int i;
  7129. for (i = 0; i < 256; i++)
  7130. if (XOR (islower (i), ISLOWER (i))
  7131. || toupper (i) != TOUPPER (i))
  7132. return 2;
  7133. return 0;
  7134. }
  7135. _ACEOF
  7136. if ac_fn_c_try_run "$LINENO"; then :
  7137. else
  7138. ac_cv_header_stdc=no
  7139. fi
  7140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7141. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7142. fi
  7143. fi
  7144. fi
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7146. $as_echo "$ac_cv_header_stdc" >&6; }
  7147. if test $ac_cv_header_stdc = yes; then
  7148. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7149. fi
  7150. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7151. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7152. inttypes.h stdint.h unistd.h
  7153. do :
  7154. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7155. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7156. "
  7157. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7158. cat >>confdefs.h <<_ACEOF
  7159. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7160. _ACEOF
  7161. fi
  7162. done
  7163. for ac_header in dlfcn.h
  7164. do :
  7165. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7166. "
  7167. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7168. cat >>confdefs.h <<_ACEOF
  7169. #define HAVE_DLFCN_H 1
  7170. _ACEOF
  7171. fi
  7172. done
  7173. # Set options
  7174. enable_win32_dll=yes
  7175. case $host in
  7176. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7177. if test -n "$ac_tool_prefix"; then
  7178. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7179. set dummy ${ac_tool_prefix}as; ac_word=$2
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7181. $as_echo_n "checking for $ac_word... " >&6; }
  7182. if ${ac_cv_prog_AS+:} false; then :
  7183. $as_echo_n "(cached) " >&6
  7184. else
  7185. if test -n "$AS"; then
  7186. ac_cv_prog_AS="$AS" # Let the user override the test.
  7187. else
  7188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7189. for as_dir in $PATH
  7190. do
  7191. IFS=$as_save_IFS
  7192. test -z "$as_dir" && as_dir=.
  7193. for ac_exec_ext in '' $ac_executable_extensions; do
  7194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7195. ac_cv_prog_AS="${ac_tool_prefix}as"
  7196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7197. break 2
  7198. fi
  7199. done
  7200. done
  7201. IFS=$as_save_IFS
  7202. fi
  7203. fi
  7204. AS=$ac_cv_prog_AS
  7205. if test -n "$AS"; then
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7207. $as_echo "$AS" >&6; }
  7208. else
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7210. $as_echo "no" >&6; }
  7211. fi
  7212. fi
  7213. if test -z "$ac_cv_prog_AS"; then
  7214. ac_ct_AS=$AS
  7215. # Extract the first word of "as", so it can be a program name with args.
  7216. set dummy as; ac_word=$2
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7218. $as_echo_n "checking for $ac_word... " >&6; }
  7219. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. if test -n "$ac_ct_AS"; then
  7223. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7224. else
  7225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7226. for as_dir in $PATH
  7227. do
  7228. IFS=$as_save_IFS
  7229. test -z "$as_dir" && as_dir=.
  7230. for ac_exec_ext in '' $ac_executable_extensions; do
  7231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7232. ac_cv_prog_ac_ct_AS="as"
  7233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7234. break 2
  7235. fi
  7236. done
  7237. done
  7238. IFS=$as_save_IFS
  7239. fi
  7240. fi
  7241. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7242. if test -n "$ac_ct_AS"; then
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7244. $as_echo "$ac_ct_AS" >&6; }
  7245. else
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7247. $as_echo "no" >&6; }
  7248. fi
  7249. if test "x$ac_ct_AS" = x; then
  7250. AS="false"
  7251. else
  7252. case $cross_compiling:$ac_tool_warned in
  7253. yes:)
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7255. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7256. ac_tool_warned=yes ;;
  7257. esac
  7258. AS=$ac_ct_AS
  7259. fi
  7260. else
  7261. AS="$ac_cv_prog_AS"
  7262. fi
  7263. if test -n "$ac_tool_prefix"; then
  7264. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7265. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7267. $as_echo_n "checking for $ac_word... " >&6; }
  7268. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7269. $as_echo_n "(cached) " >&6
  7270. else
  7271. if test -n "$DLLTOOL"; then
  7272. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7273. else
  7274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7275. for as_dir in $PATH
  7276. do
  7277. IFS=$as_save_IFS
  7278. test -z "$as_dir" && as_dir=.
  7279. for ac_exec_ext in '' $ac_executable_extensions; do
  7280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7281. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7283. break 2
  7284. fi
  7285. done
  7286. done
  7287. IFS=$as_save_IFS
  7288. fi
  7289. fi
  7290. DLLTOOL=$ac_cv_prog_DLLTOOL
  7291. if test -n "$DLLTOOL"; then
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7293. $as_echo "$DLLTOOL" >&6; }
  7294. else
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7296. $as_echo "no" >&6; }
  7297. fi
  7298. fi
  7299. if test -z "$ac_cv_prog_DLLTOOL"; then
  7300. ac_ct_DLLTOOL=$DLLTOOL
  7301. # Extract the first word of "dlltool", so it can be a program name with args.
  7302. set dummy dlltool; ac_word=$2
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7304. $as_echo_n "checking for $ac_word... " >&6; }
  7305. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7306. $as_echo_n "(cached) " >&6
  7307. else
  7308. if test -n "$ac_ct_DLLTOOL"; then
  7309. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7310. else
  7311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7312. for as_dir in $PATH
  7313. do
  7314. IFS=$as_save_IFS
  7315. test -z "$as_dir" && as_dir=.
  7316. for ac_exec_ext in '' $ac_executable_extensions; do
  7317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7318. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7320. break 2
  7321. fi
  7322. done
  7323. done
  7324. IFS=$as_save_IFS
  7325. fi
  7326. fi
  7327. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7328. if test -n "$ac_ct_DLLTOOL"; then
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7330. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7331. else
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7333. $as_echo "no" >&6; }
  7334. fi
  7335. if test "x$ac_ct_DLLTOOL" = x; then
  7336. DLLTOOL="false"
  7337. else
  7338. case $cross_compiling:$ac_tool_warned in
  7339. yes:)
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7342. ac_tool_warned=yes ;;
  7343. esac
  7344. DLLTOOL=$ac_ct_DLLTOOL
  7345. fi
  7346. else
  7347. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7348. fi
  7349. if test -n "$ac_tool_prefix"; then
  7350. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7351. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7353. $as_echo_n "checking for $ac_word... " >&6; }
  7354. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7355. $as_echo_n "(cached) " >&6
  7356. else
  7357. if test -n "$OBJDUMP"; then
  7358. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7359. else
  7360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7361. for as_dir in $PATH
  7362. do
  7363. IFS=$as_save_IFS
  7364. test -z "$as_dir" && as_dir=.
  7365. for ac_exec_ext in '' $ac_executable_extensions; do
  7366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7367. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7369. break 2
  7370. fi
  7371. done
  7372. done
  7373. IFS=$as_save_IFS
  7374. fi
  7375. fi
  7376. OBJDUMP=$ac_cv_prog_OBJDUMP
  7377. if test -n "$OBJDUMP"; then
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7379. $as_echo "$OBJDUMP" >&6; }
  7380. else
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7382. $as_echo "no" >&6; }
  7383. fi
  7384. fi
  7385. if test -z "$ac_cv_prog_OBJDUMP"; then
  7386. ac_ct_OBJDUMP=$OBJDUMP
  7387. # Extract the first word of "objdump", so it can be a program name with args.
  7388. set dummy objdump; ac_word=$2
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7390. $as_echo_n "checking for $ac_word... " >&6; }
  7391. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7392. $as_echo_n "(cached) " >&6
  7393. else
  7394. if test -n "$ac_ct_OBJDUMP"; then
  7395. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7396. else
  7397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7398. for as_dir in $PATH
  7399. do
  7400. IFS=$as_save_IFS
  7401. test -z "$as_dir" && as_dir=.
  7402. for ac_exec_ext in '' $ac_executable_extensions; do
  7403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7404. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7406. break 2
  7407. fi
  7408. done
  7409. done
  7410. IFS=$as_save_IFS
  7411. fi
  7412. fi
  7413. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7414. if test -n "$ac_ct_OBJDUMP"; then
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7416. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7417. else
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7419. $as_echo "no" >&6; }
  7420. fi
  7421. if test "x$ac_ct_OBJDUMP" = x; then
  7422. OBJDUMP="false"
  7423. else
  7424. case $cross_compiling:$ac_tool_warned in
  7425. yes:)
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7428. ac_tool_warned=yes ;;
  7429. esac
  7430. OBJDUMP=$ac_ct_OBJDUMP
  7431. fi
  7432. else
  7433. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7434. fi
  7435. ;;
  7436. esac
  7437. test -z "$AS" && AS=as
  7438. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7439. test -z "$OBJDUMP" && OBJDUMP=objdump
  7440. enable_dlopen=no
  7441. # Check whether --enable-shared was given.
  7442. if test "${enable_shared+set}" = set; then :
  7443. enableval=$enable_shared; p=${PACKAGE-default}
  7444. case $enableval in
  7445. yes) enable_shared=yes ;;
  7446. no) enable_shared=no ;;
  7447. *)
  7448. enable_shared=no
  7449. # Look at the argument we got. We use all the common list separators.
  7450. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7451. for pkg in $enableval; do
  7452. IFS=$lt_save_ifs
  7453. if test "X$pkg" = "X$p"; then
  7454. enable_shared=yes
  7455. fi
  7456. done
  7457. IFS=$lt_save_ifs
  7458. ;;
  7459. esac
  7460. else
  7461. enable_shared=yes
  7462. fi
  7463. # Check whether --enable-static was given.
  7464. if test "${enable_static+set}" = set; then :
  7465. enableval=$enable_static; p=${PACKAGE-default}
  7466. case $enableval in
  7467. yes) enable_static=yes ;;
  7468. no) enable_static=no ;;
  7469. *)
  7470. enable_static=no
  7471. # Look at the argument we got. We use all the common list separators.
  7472. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7473. for pkg in $enableval; do
  7474. IFS=$lt_save_ifs
  7475. if test "X$pkg" = "X$p"; then
  7476. enable_static=yes
  7477. fi
  7478. done
  7479. IFS=$lt_save_ifs
  7480. ;;
  7481. esac
  7482. else
  7483. enable_static=yes
  7484. fi
  7485. # Check whether --with-pic was given.
  7486. if test "${with_pic+set}" = set; then :
  7487. withval=$with_pic; lt_p=${PACKAGE-default}
  7488. case $withval in
  7489. yes|no) pic_mode=$withval ;;
  7490. *)
  7491. pic_mode=default
  7492. # Look at the argument we got. We use all the common list separators.
  7493. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7494. for lt_pkg in $withval; do
  7495. IFS=$lt_save_ifs
  7496. if test "X$lt_pkg" = "X$lt_p"; then
  7497. pic_mode=yes
  7498. fi
  7499. done
  7500. IFS=$lt_save_ifs
  7501. ;;
  7502. esac
  7503. else
  7504. pic_mode=default
  7505. fi
  7506. # Check whether --enable-fast-install was given.
  7507. if test "${enable_fast_install+set}" = set; then :
  7508. enableval=$enable_fast_install; p=${PACKAGE-default}
  7509. case $enableval in
  7510. yes) enable_fast_install=yes ;;
  7511. no) enable_fast_install=no ;;
  7512. *)
  7513. enable_fast_install=no
  7514. # Look at the argument we got. We use all the common list separators.
  7515. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7516. for pkg in $enableval; do
  7517. IFS=$lt_save_ifs
  7518. if test "X$pkg" = "X$p"; then
  7519. enable_fast_install=yes
  7520. fi
  7521. done
  7522. IFS=$lt_save_ifs
  7523. ;;
  7524. esac
  7525. else
  7526. enable_fast_install=yes
  7527. fi
  7528. shared_archive_member_spec=
  7529. case $host,$enable_shared in
  7530. power*-*-aix[5-9]*,yes)
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7532. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7533. # Check whether --with-aix-soname was given.
  7534. if test "${with_aix_soname+set}" = set; then :
  7535. withval=$with_aix_soname; case $withval in
  7536. aix|svr4|both)
  7537. ;;
  7538. *)
  7539. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7540. ;;
  7541. esac
  7542. lt_cv_with_aix_soname=$with_aix_soname
  7543. else
  7544. if ${lt_cv_with_aix_soname+:} false; then :
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. lt_cv_with_aix_soname=aix
  7548. fi
  7549. with_aix_soname=$lt_cv_with_aix_soname
  7550. fi
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7552. $as_echo "$with_aix_soname" >&6; }
  7553. if test aix != "$with_aix_soname"; then
  7554. # For the AIX way of multilib, we name the shared archive member
  7555. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7556. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7557. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7558. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7559. if test 64 = "${OBJECT_MODE-32}"; then
  7560. shared_archive_member_spec=shr_64
  7561. else
  7562. shared_archive_member_spec=shr
  7563. fi
  7564. fi
  7565. ;;
  7566. *)
  7567. with_aix_soname=aix
  7568. ;;
  7569. esac
  7570. # This can be used to rebuild libtool when needed
  7571. LIBTOOL_DEPS=$ltmain
  7572. # Always use our own libtool.
  7573. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7574. test -z "$LN_S" && LN_S="ln -s"
  7575. if test -n "${ZSH_VERSION+set}"; then
  7576. setopt NO_GLOB_SUBST
  7577. fi
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7579. $as_echo_n "checking for objdir... " >&6; }
  7580. if ${lt_cv_objdir+:} false; then :
  7581. $as_echo_n "(cached) " >&6
  7582. else
  7583. rm -f .libs 2>/dev/null
  7584. mkdir .libs 2>/dev/null
  7585. if test -d .libs; then
  7586. lt_cv_objdir=.libs
  7587. else
  7588. # MS-DOS does not allow filenames that begin with a dot.
  7589. lt_cv_objdir=_libs
  7590. fi
  7591. rmdir .libs 2>/dev/null
  7592. fi
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7594. $as_echo "$lt_cv_objdir" >&6; }
  7595. objdir=$lt_cv_objdir
  7596. cat >>confdefs.h <<_ACEOF
  7597. #define LT_OBJDIR "$lt_cv_objdir/"
  7598. _ACEOF
  7599. case $host_os in
  7600. aix3*)
  7601. # AIX sometimes has problems with the GCC collect2 program. For some
  7602. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7603. # vanish in a puff of smoke.
  7604. if test set != "${COLLECT_NAMES+set}"; then
  7605. COLLECT_NAMES=
  7606. export COLLECT_NAMES
  7607. fi
  7608. ;;
  7609. esac
  7610. # Global variables:
  7611. ofile=libtool
  7612. can_build_shared=yes
  7613. # All known linkers require a '.a' archive for static linking (except MSVC,
  7614. # which needs '.lib').
  7615. libext=a
  7616. with_gnu_ld=$lt_cv_prog_gnu_ld
  7617. old_CC=$CC
  7618. old_CFLAGS=$CFLAGS
  7619. # Set sane defaults for various variables
  7620. test -z "$CC" && CC=cc
  7621. test -z "$LTCC" && LTCC=$CC
  7622. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7623. test -z "$LD" && LD=ld
  7624. test -z "$ac_objext" && ac_objext=o
  7625. func_cc_basename $compiler
  7626. cc_basename=$func_cc_basename_result
  7627. # Only perform the check for file, if the check method requires it
  7628. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7629. case $deplibs_check_method in
  7630. file_magic*)
  7631. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7633. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7634. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7635. $as_echo_n "(cached) " >&6
  7636. else
  7637. case $MAGIC_CMD in
  7638. [\\/*] | ?:[\\/]*)
  7639. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7640. ;;
  7641. *)
  7642. lt_save_MAGIC_CMD=$MAGIC_CMD
  7643. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7644. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7645. for ac_dir in $ac_dummy; do
  7646. IFS=$lt_save_ifs
  7647. test -z "$ac_dir" && ac_dir=.
  7648. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7649. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7650. if test -n "$file_magic_test_file"; then
  7651. case $deplibs_check_method in
  7652. "file_magic "*)
  7653. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7654. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7655. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7656. $EGREP "$file_magic_regex" > /dev/null; then
  7657. :
  7658. else
  7659. cat <<_LT_EOF 1>&2
  7660. *** Warning: the command libtool uses to detect shared libraries,
  7661. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7662. *** The result is that libtool may fail to recognize shared libraries
  7663. *** as such. This will affect the creation of libtool libraries that
  7664. *** depend on shared libraries, but programs linked with such libtool
  7665. *** libraries will work regardless of this problem. Nevertheless, you
  7666. *** may want to report the problem to your system manager and/or to
  7667. *** [email protected]
  7668. _LT_EOF
  7669. fi ;;
  7670. esac
  7671. fi
  7672. break
  7673. fi
  7674. done
  7675. IFS=$lt_save_ifs
  7676. MAGIC_CMD=$lt_save_MAGIC_CMD
  7677. ;;
  7678. esac
  7679. fi
  7680. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7681. if test -n "$MAGIC_CMD"; then
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7683. $as_echo "$MAGIC_CMD" >&6; }
  7684. else
  7685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7686. $as_echo "no" >&6; }
  7687. fi
  7688. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7689. if test -n "$ac_tool_prefix"; then
  7690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7691. $as_echo_n "checking for file... " >&6; }
  7692. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7693. $as_echo_n "(cached) " >&6
  7694. else
  7695. case $MAGIC_CMD in
  7696. [\\/*] | ?:[\\/]*)
  7697. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7698. ;;
  7699. *)
  7700. lt_save_MAGIC_CMD=$MAGIC_CMD
  7701. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7702. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7703. for ac_dir in $ac_dummy; do
  7704. IFS=$lt_save_ifs
  7705. test -z "$ac_dir" && ac_dir=.
  7706. if test -f "$ac_dir/file"; then
  7707. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7708. if test -n "$file_magic_test_file"; then
  7709. case $deplibs_check_method in
  7710. "file_magic "*)
  7711. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7712. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7713. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7714. $EGREP "$file_magic_regex" > /dev/null; then
  7715. :
  7716. else
  7717. cat <<_LT_EOF 1>&2
  7718. *** Warning: the command libtool uses to detect shared libraries,
  7719. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7720. *** The result is that libtool may fail to recognize shared libraries
  7721. *** as such. This will affect the creation of libtool libraries that
  7722. *** depend on shared libraries, but programs linked with such libtool
  7723. *** libraries will work regardless of this problem. Nevertheless, you
  7724. *** may want to report the problem to your system manager and/or to
  7725. *** [email protected]
  7726. _LT_EOF
  7727. fi ;;
  7728. esac
  7729. fi
  7730. break
  7731. fi
  7732. done
  7733. IFS=$lt_save_ifs
  7734. MAGIC_CMD=$lt_save_MAGIC_CMD
  7735. ;;
  7736. esac
  7737. fi
  7738. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7739. if test -n "$MAGIC_CMD"; then
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7741. $as_echo "$MAGIC_CMD" >&6; }
  7742. else
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7744. $as_echo "no" >&6; }
  7745. fi
  7746. else
  7747. MAGIC_CMD=:
  7748. fi
  7749. fi
  7750. fi
  7751. ;;
  7752. esac
  7753. # Use C for the default configuration in the libtool script
  7754. lt_save_CC=$CC
  7755. ac_ext=c
  7756. ac_cpp='$CPP $CPPFLAGS'
  7757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7760. # Source file extension for C test sources.
  7761. ac_ext=c
  7762. # Object file extension for compiled C test sources.
  7763. objext=o
  7764. objext=$objext
  7765. # Code to be used in simple compile tests
  7766. lt_simple_compile_test_code="int some_variable = 0;"
  7767. # Code to be used in simple link tests
  7768. lt_simple_link_test_code='int main(){return(0);}'
  7769. # If no C compiler was specified, use CC.
  7770. LTCC=${LTCC-"$CC"}
  7771. # If no C compiler flags were specified, use CFLAGS.
  7772. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7773. # Allow CC to be a program name with arguments.
  7774. compiler=$CC
  7775. # Save the default compiler, since it gets overwritten when the other
  7776. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7777. compiler_DEFAULT=$CC
  7778. # save warnings/boilerplate of simple test code
  7779. ac_outfile=conftest.$ac_objext
  7780. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7781. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7782. _lt_compiler_boilerplate=`cat conftest.err`
  7783. $RM conftest*
  7784. ac_outfile=conftest.$ac_objext
  7785. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7786. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7787. _lt_linker_boilerplate=`cat conftest.err`
  7788. $RM -r conftest*
  7789. ## CAVEAT EMPTOR:
  7790. ## There is no encapsulation within the following macros, do not change
  7791. ## the running order or otherwise move them around unless you know exactly
  7792. ## what you are doing...
  7793. if test -n "$compiler"; then
  7794. lt_prog_compiler_no_builtin_flag=
  7795. if test yes = "$GCC"; then
  7796. case $cc_basename in
  7797. nvcc*)
  7798. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7799. *)
  7800. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7801. esac
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7803. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7804. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7805. $as_echo_n "(cached) " >&6
  7806. else
  7807. lt_cv_prog_compiler_rtti_exceptions=no
  7808. ac_outfile=conftest.$ac_objext
  7809. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7810. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7811. # Insert the option either (1) after the last *FLAGS variable, or
  7812. # (2) before a word containing "conftest.", or (3) at the end.
  7813. # Note that $ac_compile itself does not contain backslashes and begins
  7814. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7815. # The option is referenced via a variable to avoid confusing sed.
  7816. lt_compile=`echo "$ac_compile" | $SED \
  7817. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7818. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7819. -e 's:$: $lt_compiler_flag:'`
  7820. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7821. (eval "$lt_compile" 2>conftest.err)
  7822. ac_status=$?
  7823. cat conftest.err >&5
  7824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7825. if (exit $ac_status) && test -s "$ac_outfile"; then
  7826. # The compiler can only warn and ignore the option if not recognized
  7827. # So say no if there are warnings other than the usual output.
  7828. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7829. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7830. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7831. lt_cv_prog_compiler_rtti_exceptions=yes
  7832. fi
  7833. fi
  7834. $RM conftest*
  7835. fi
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7837. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7838. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7839. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7840. else
  7841. :
  7842. fi
  7843. fi
  7844. lt_prog_compiler_wl=
  7845. lt_prog_compiler_pic=
  7846. lt_prog_compiler_static=
  7847. if test yes = "$GCC"; then
  7848. lt_prog_compiler_wl='-Wl,'
  7849. lt_prog_compiler_static='-static'
  7850. case $host_os in
  7851. aix*)
  7852. # All AIX code is PIC.
  7853. if test ia64 = "$host_cpu"; then
  7854. # AIX 5 now supports IA64 processor
  7855. lt_prog_compiler_static='-Bstatic'
  7856. fi
  7857. lt_prog_compiler_pic='-fPIC'
  7858. ;;
  7859. amigaos*)
  7860. case $host_cpu in
  7861. powerpc)
  7862. # see comment about AmigaOS4 .so support
  7863. lt_prog_compiler_pic='-fPIC'
  7864. ;;
  7865. m68k)
  7866. # FIXME: we need at least 68020 code to build shared libraries, but
  7867. # adding the '-m68020' flag to GCC prevents building anything better,
  7868. # like '-m68040'.
  7869. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7870. ;;
  7871. esac
  7872. ;;
  7873. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7874. # PIC is the default for these OSes.
  7875. ;;
  7876. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7877. # This hack is so that the source file can tell whether it is being
  7878. # built for inclusion in a dll (and should export symbols for example).
  7879. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7880. # (--disable-auto-import) libraries
  7881. lt_prog_compiler_pic='-DDLL_EXPORT'
  7882. case $host_os in
  7883. os2*)
  7884. lt_prog_compiler_static='$wl-static'
  7885. ;;
  7886. esac
  7887. ;;
  7888. darwin* | rhapsody*)
  7889. # PIC is the default on this platform
  7890. # Common symbols not allowed in MH_DYLIB files
  7891. lt_prog_compiler_pic='-fno-common'
  7892. ;;
  7893. haiku*)
  7894. # PIC is the default for Haiku.
  7895. # The "-static" flag exists, but is broken.
  7896. lt_prog_compiler_static=
  7897. ;;
  7898. hpux*)
  7899. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7900. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7901. # sets the default TLS model and affects inlining.
  7902. case $host_cpu in
  7903. hppa*64*)
  7904. # +Z the default
  7905. ;;
  7906. *)
  7907. lt_prog_compiler_pic='-fPIC'
  7908. ;;
  7909. esac
  7910. ;;
  7911. interix[3-9]*)
  7912. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7913. # Instead, we relocate shared libraries at runtime.
  7914. ;;
  7915. msdosdjgpp*)
  7916. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7917. # on systems that don't support them.
  7918. lt_prog_compiler_can_build_shared=no
  7919. enable_shared=no
  7920. ;;
  7921. *nto* | *qnx*)
  7922. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7923. # it will coredump.
  7924. lt_prog_compiler_pic='-fPIC -shared'
  7925. ;;
  7926. sysv4*MP*)
  7927. if test -d /usr/nec; then
  7928. lt_prog_compiler_pic=-Kconform_pic
  7929. fi
  7930. ;;
  7931. *)
  7932. lt_prog_compiler_pic='-fPIC'
  7933. ;;
  7934. esac
  7935. case $cc_basename in
  7936. nvcc*) # Cuda Compiler Driver 2.2
  7937. lt_prog_compiler_wl='-Xlinker '
  7938. if test -n "$lt_prog_compiler_pic"; then
  7939. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7940. fi
  7941. ;;
  7942. esac
  7943. else
  7944. # PORTME Check for flag to pass linker flags through the system compiler.
  7945. case $host_os in
  7946. aix*)
  7947. lt_prog_compiler_wl='-Wl,'
  7948. if test ia64 = "$host_cpu"; then
  7949. # AIX 5 now supports IA64 processor
  7950. lt_prog_compiler_static='-Bstatic'
  7951. else
  7952. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7953. fi
  7954. ;;
  7955. darwin* | rhapsody*)
  7956. # PIC is the default on this platform
  7957. # Common symbols not allowed in MH_DYLIB files
  7958. lt_prog_compiler_pic='-fno-common'
  7959. case $cc_basename in
  7960. nagfor*)
  7961. # NAG Fortran compiler
  7962. lt_prog_compiler_wl='-Wl,-Wl,,'
  7963. lt_prog_compiler_pic='-PIC'
  7964. lt_prog_compiler_static='-Bstatic'
  7965. ;;
  7966. esac
  7967. ;;
  7968. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7969. # This hack is so that the source file can tell whether it is being
  7970. # built for inclusion in a dll (and should export symbols for example).
  7971. lt_prog_compiler_pic='-DDLL_EXPORT'
  7972. case $host_os in
  7973. os2*)
  7974. lt_prog_compiler_static='$wl-static'
  7975. ;;
  7976. esac
  7977. ;;
  7978. hpux9* | hpux10* | hpux11*)
  7979. lt_prog_compiler_wl='-Wl,'
  7980. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7981. # not for PA HP-UX.
  7982. case $host_cpu in
  7983. hppa*64*|ia64*)
  7984. # +Z the default
  7985. ;;
  7986. *)
  7987. lt_prog_compiler_pic='+Z'
  7988. ;;
  7989. esac
  7990. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7991. lt_prog_compiler_static='$wl-a ${wl}archive'
  7992. ;;
  7993. irix5* | irix6* | nonstopux*)
  7994. lt_prog_compiler_wl='-Wl,'
  7995. # PIC (with -KPIC) is the default.
  7996. lt_prog_compiler_static='-non_shared'
  7997. ;;
  7998. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7999. case $cc_basename in
  8000. # old Intel for x86_64, which still supported -KPIC.
  8001. ecc*)
  8002. lt_prog_compiler_wl='-Wl,'
  8003. lt_prog_compiler_pic='-KPIC'
  8004. lt_prog_compiler_static='-static'
  8005. ;;
  8006. # icc used to be incompatible with GCC.
  8007. # ICC 10 doesn't accept -KPIC any more.
  8008. icc* | ifort*)
  8009. lt_prog_compiler_wl='-Wl,'
  8010. lt_prog_compiler_pic='-fPIC'
  8011. lt_prog_compiler_static='-static'
  8012. ;;
  8013. # Lahey Fortran 8.1.
  8014. lf95*)
  8015. lt_prog_compiler_wl='-Wl,'
  8016. lt_prog_compiler_pic='--shared'
  8017. lt_prog_compiler_static='--static'
  8018. ;;
  8019. nagfor*)
  8020. # NAG Fortran compiler
  8021. lt_prog_compiler_wl='-Wl,-Wl,,'
  8022. lt_prog_compiler_pic='-PIC'
  8023. lt_prog_compiler_static='-Bstatic'
  8024. ;;
  8025. tcc*)
  8026. # Fabrice Bellard et al's Tiny C Compiler
  8027. lt_prog_compiler_wl='-Wl,'
  8028. lt_prog_compiler_pic='-fPIC'
  8029. lt_prog_compiler_static='-static'
  8030. ;;
  8031. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8032. # Portland Group compilers (*not* the Pentium gcc compiler,
  8033. # which looks to be a dead project)
  8034. lt_prog_compiler_wl='-Wl,'
  8035. lt_prog_compiler_pic='-fpic'
  8036. lt_prog_compiler_static='-Bstatic'
  8037. ;;
  8038. ccc*)
  8039. lt_prog_compiler_wl='-Wl,'
  8040. # All Alpha code is PIC.
  8041. lt_prog_compiler_static='-non_shared'
  8042. ;;
  8043. xl* | bgxl* | bgf* | mpixl*)
  8044. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8045. lt_prog_compiler_wl='-Wl,'
  8046. lt_prog_compiler_pic='-qpic'
  8047. lt_prog_compiler_static='-qstaticlink'
  8048. ;;
  8049. *)
  8050. case `$CC -V 2>&1 | sed 5q` in
  8051. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8052. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8053. lt_prog_compiler_pic='-KPIC'
  8054. lt_prog_compiler_static='-Bstatic'
  8055. lt_prog_compiler_wl=''
  8056. ;;
  8057. *Sun\ F* | *Sun*Fortran*)
  8058. lt_prog_compiler_pic='-KPIC'
  8059. lt_prog_compiler_static='-Bstatic'
  8060. lt_prog_compiler_wl='-Qoption ld '
  8061. ;;
  8062. *Sun\ C*)
  8063. # Sun C 5.9
  8064. lt_prog_compiler_pic='-KPIC'
  8065. lt_prog_compiler_static='-Bstatic'
  8066. lt_prog_compiler_wl='-Wl,'
  8067. ;;
  8068. *Intel*\ [CF]*Compiler*)
  8069. lt_prog_compiler_wl='-Wl,'
  8070. lt_prog_compiler_pic='-fPIC'
  8071. lt_prog_compiler_static='-static'
  8072. ;;
  8073. *Portland\ Group*)
  8074. lt_prog_compiler_wl='-Wl,'
  8075. lt_prog_compiler_pic='-fpic'
  8076. lt_prog_compiler_static='-Bstatic'
  8077. ;;
  8078. esac
  8079. ;;
  8080. esac
  8081. ;;
  8082. newsos6)
  8083. lt_prog_compiler_pic='-KPIC'
  8084. lt_prog_compiler_static='-Bstatic'
  8085. ;;
  8086. *nto* | *qnx*)
  8087. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8088. # it will coredump.
  8089. lt_prog_compiler_pic='-fPIC -shared'
  8090. ;;
  8091. osf3* | osf4* | osf5*)
  8092. lt_prog_compiler_wl='-Wl,'
  8093. # All OSF/1 code is PIC.
  8094. lt_prog_compiler_static='-non_shared'
  8095. ;;
  8096. rdos*)
  8097. lt_prog_compiler_static='-non_shared'
  8098. ;;
  8099. solaris*)
  8100. lt_prog_compiler_pic='-KPIC'
  8101. lt_prog_compiler_static='-Bstatic'
  8102. case $cc_basename in
  8103. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8104. lt_prog_compiler_wl='-Qoption ld ';;
  8105. *)
  8106. lt_prog_compiler_wl='-Wl,';;
  8107. esac
  8108. ;;
  8109. sunos4*)
  8110. lt_prog_compiler_wl='-Qoption ld '
  8111. lt_prog_compiler_pic='-PIC'
  8112. lt_prog_compiler_static='-Bstatic'
  8113. ;;
  8114. sysv4 | sysv4.2uw2* | sysv4.3*)
  8115. lt_prog_compiler_wl='-Wl,'
  8116. lt_prog_compiler_pic='-KPIC'
  8117. lt_prog_compiler_static='-Bstatic'
  8118. ;;
  8119. sysv4*MP*)
  8120. if test -d /usr/nec; then
  8121. lt_prog_compiler_pic='-Kconform_pic'
  8122. lt_prog_compiler_static='-Bstatic'
  8123. fi
  8124. ;;
  8125. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8126. lt_prog_compiler_wl='-Wl,'
  8127. lt_prog_compiler_pic='-KPIC'
  8128. lt_prog_compiler_static='-Bstatic'
  8129. ;;
  8130. unicos*)
  8131. lt_prog_compiler_wl='-Wl,'
  8132. lt_prog_compiler_can_build_shared=no
  8133. ;;
  8134. uts4*)
  8135. lt_prog_compiler_pic='-pic'
  8136. lt_prog_compiler_static='-Bstatic'
  8137. ;;
  8138. *)
  8139. lt_prog_compiler_can_build_shared=no
  8140. ;;
  8141. esac
  8142. fi
  8143. case $host_os in
  8144. # For platforms that do not support PIC, -DPIC is meaningless:
  8145. *djgpp*)
  8146. lt_prog_compiler_pic=
  8147. ;;
  8148. *)
  8149. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8150. ;;
  8151. esac
  8152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8153. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8154. if ${lt_cv_prog_compiler_pic+:} false; then :
  8155. $as_echo_n "(cached) " >&6
  8156. else
  8157. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8158. fi
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8160. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8161. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8162. #
  8163. # Check to make sure the PIC flag actually works.
  8164. #
  8165. if test -n "$lt_prog_compiler_pic"; then
  8166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8167. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8168. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8169. $as_echo_n "(cached) " >&6
  8170. else
  8171. lt_cv_prog_compiler_pic_works=no
  8172. ac_outfile=conftest.$ac_objext
  8173. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8174. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8175. # Insert the option either (1) after the last *FLAGS variable, or
  8176. # (2) before a word containing "conftest.", or (3) at the end.
  8177. # Note that $ac_compile itself does not contain backslashes and begins
  8178. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8179. # The option is referenced via a variable to avoid confusing sed.
  8180. lt_compile=`echo "$ac_compile" | $SED \
  8181. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8182. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8183. -e 's:$: $lt_compiler_flag:'`
  8184. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8185. (eval "$lt_compile" 2>conftest.err)
  8186. ac_status=$?
  8187. cat conftest.err >&5
  8188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8189. if (exit $ac_status) && test -s "$ac_outfile"; then
  8190. # The compiler can only warn and ignore the option if not recognized
  8191. # So say no if there are warnings other than the usual output.
  8192. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8193. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8194. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8195. lt_cv_prog_compiler_pic_works=yes
  8196. fi
  8197. fi
  8198. $RM conftest*
  8199. fi
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8201. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8202. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8203. case $lt_prog_compiler_pic in
  8204. "" | " "*) ;;
  8205. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8206. esac
  8207. else
  8208. lt_prog_compiler_pic=
  8209. lt_prog_compiler_can_build_shared=no
  8210. fi
  8211. fi
  8212. #
  8213. # Check to make sure the static flag actually works.
  8214. #
  8215. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8217. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8218. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8219. $as_echo_n "(cached) " >&6
  8220. else
  8221. lt_cv_prog_compiler_static_works=no
  8222. save_LDFLAGS=$LDFLAGS
  8223. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8224. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8225. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8226. # The linker can only warn and ignore the option if not recognized
  8227. # So say no if there are warnings
  8228. if test -s conftest.err; then
  8229. # Append any errors to the config.log.
  8230. cat conftest.err 1>&5
  8231. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8232. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8233. if diff conftest.exp conftest.er2 >/dev/null; then
  8234. lt_cv_prog_compiler_static_works=yes
  8235. fi
  8236. else
  8237. lt_cv_prog_compiler_static_works=yes
  8238. fi
  8239. fi
  8240. $RM -r conftest*
  8241. LDFLAGS=$save_LDFLAGS
  8242. fi
  8243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8244. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8245. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8246. :
  8247. else
  8248. lt_prog_compiler_static=
  8249. fi
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8251. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8252. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8253. $as_echo_n "(cached) " >&6
  8254. else
  8255. lt_cv_prog_compiler_c_o=no
  8256. $RM -r conftest 2>/dev/null
  8257. mkdir conftest
  8258. cd conftest
  8259. mkdir out
  8260. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8261. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8262. # Insert the option either (1) after the last *FLAGS variable, or
  8263. # (2) before a word containing "conftest.", or (3) at the end.
  8264. # Note that $ac_compile itself does not contain backslashes and begins
  8265. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8266. lt_compile=`echo "$ac_compile" | $SED \
  8267. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8268. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8269. -e 's:$: $lt_compiler_flag:'`
  8270. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8271. (eval "$lt_compile" 2>out/conftest.err)
  8272. ac_status=$?
  8273. cat out/conftest.err >&5
  8274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8275. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8276. then
  8277. # The compiler can only warn and ignore the option if not recognized
  8278. # So say no if there are warnings
  8279. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8280. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8281. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8282. lt_cv_prog_compiler_c_o=yes
  8283. fi
  8284. fi
  8285. chmod u+w . 2>&5
  8286. $RM conftest*
  8287. # SGI C++ compiler will create directory out/ii_files/ for
  8288. # template instantiation
  8289. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8290. $RM out/* && rmdir out
  8291. cd ..
  8292. $RM -r conftest
  8293. $RM conftest*
  8294. fi
  8295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8296. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8298. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8299. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8300. $as_echo_n "(cached) " >&6
  8301. else
  8302. lt_cv_prog_compiler_c_o=no
  8303. $RM -r conftest 2>/dev/null
  8304. mkdir conftest
  8305. cd conftest
  8306. mkdir out
  8307. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8308. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8309. # Insert the option either (1) after the last *FLAGS variable, or
  8310. # (2) before a word containing "conftest.", or (3) at the end.
  8311. # Note that $ac_compile itself does not contain backslashes and begins
  8312. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8313. lt_compile=`echo "$ac_compile" | $SED \
  8314. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8315. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8316. -e 's:$: $lt_compiler_flag:'`
  8317. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8318. (eval "$lt_compile" 2>out/conftest.err)
  8319. ac_status=$?
  8320. cat out/conftest.err >&5
  8321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8322. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8323. then
  8324. # The compiler can only warn and ignore the option if not recognized
  8325. # So say no if there are warnings
  8326. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8327. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8328. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8329. lt_cv_prog_compiler_c_o=yes
  8330. fi
  8331. fi
  8332. chmod u+w . 2>&5
  8333. $RM conftest*
  8334. # SGI C++ compiler will create directory out/ii_files/ for
  8335. # template instantiation
  8336. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8337. $RM out/* && rmdir out
  8338. cd ..
  8339. $RM -r conftest
  8340. $RM conftest*
  8341. fi
  8342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8343. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8344. hard_links=nottested
  8345. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8346. # do not overwrite the value of need_locks provided by the user
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8348. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8349. hard_links=yes
  8350. $RM conftest*
  8351. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8352. touch conftest.a
  8353. ln conftest.a conftest.b 2>&5 || hard_links=no
  8354. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8356. $as_echo "$hard_links" >&6; }
  8357. if test no = "$hard_links"; then
  8358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8359. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8360. need_locks=warn
  8361. fi
  8362. else
  8363. need_locks=no
  8364. fi
  8365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8366. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8367. runpath_var=
  8368. allow_undefined_flag=
  8369. always_export_symbols=no
  8370. archive_cmds=
  8371. archive_expsym_cmds=
  8372. compiler_needs_object=no
  8373. enable_shared_with_static_runtimes=no
  8374. export_dynamic_flag_spec=
  8375. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8376. hardcode_automatic=no
  8377. hardcode_direct=no
  8378. hardcode_direct_absolute=no
  8379. hardcode_libdir_flag_spec=
  8380. hardcode_libdir_separator=
  8381. hardcode_minus_L=no
  8382. hardcode_shlibpath_var=unsupported
  8383. inherit_rpath=no
  8384. link_all_deplibs=unknown
  8385. module_cmds=
  8386. module_expsym_cmds=
  8387. old_archive_from_new_cmds=
  8388. old_archive_from_expsyms_cmds=
  8389. thread_safe_flag_spec=
  8390. whole_archive_flag_spec=
  8391. # include_expsyms should be a list of space-separated symbols to be *always*
  8392. # included in the symbol list
  8393. include_expsyms=
  8394. # exclude_expsyms can be an extended regexp of symbols to exclude
  8395. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8396. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8397. # as well as any symbol that contains 'd'.
  8398. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8399. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8400. # platforms (ab)use it in PIC code, but their linkers get confused if
  8401. # the symbol is explicitly referenced. Since portable code cannot
  8402. # rely on this symbol name, it's probably fine to never include it in
  8403. # preloaded symbol tables.
  8404. # Exclude shared library initialization/finalization symbols.
  8405. extract_expsyms_cmds=
  8406. case $host_os in
  8407. cygwin* | mingw* | pw32* | cegcc*)
  8408. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8409. # When not using gcc, we currently assume that we are using
  8410. # Microsoft Visual C++.
  8411. if test yes != "$GCC"; then
  8412. with_gnu_ld=no
  8413. fi
  8414. ;;
  8415. interix*)
  8416. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8417. with_gnu_ld=yes
  8418. ;;
  8419. openbsd* | bitrig*)
  8420. with_gnu_ld=no
  8421. ;;
  8422. esac
  8423. ld_shlibs=yes
  8424. # On some targets, GNU ld is compatible enough with the native linker
  8425. # that we're better off using the native interface for both.
  8426. lt_use_gnu_ld_interface=no
  8427. if test yes = "$with_gnu_ld"; then
  8428. case $host_os in
  8429. aix*)
  8430. # The AIX port of GNU ld has always aspired to compatibility
  8431. # with the native linker. However, as the warning in the GNU ld
  8432. # block says, versions before 2.19.5* couldn't really create working
  8433. # shared libraries, regardless of the interface used.
  8434. case `$LD -v 2>&1` in
  8435. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8436. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8437. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8438. *)
  8439. lt_use_gnu_ld_interface=yes
  8440. ;;
  8441. esac
  8442. ;;
  8443. *)
  8444. lt_use_gnu_ld_interface=yes
  8445. ;;
  8446. esac
  8447. fi
  8448. if test yes = "$lt_use_gnu_ld_interface"; then
  8449. # If archive_cmds runs LD, not CC, wlarc should be empty
  8450. wlarc='$wl'
  8451. # Set some defaults for GNU ld with shared library support. These
  8452. # are reset later if shared libraries are not supported. Putting them
  8453. # here allows them to be overridden if necessary.
  8454. runpath_var=LD_RUN_PATH
  8455. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8456. export_dynamic_flag_spec='$wl--export-dynamic'
  8457. # ancient GNU ld didn't support --whole-archive et. al.
  8458. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8459. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8460. else
  8461. whole_archive_flag_spec=
  8462. fi
  8463. supports_anon_versioning=no
  8464. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8465. *GNU\ gold*) supports_anon_versioning=yes ;;
  8466. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8467. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8468. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8469. *\ 2.11.*) ;; # other 2.11 versions
  8470. *) supports_anon_versioning=yes ;;
  8471. esac
  8472. # See if GNU ld supports shared libraries.
  8473. case $host_os in
  8474. aix[3-9]*)
  8475. # On AIX/PPC, the GNU linker is very broken
  8476. if test ia64 != "$host_cpu"; then
  8477. ld_shlibs=no
  8478. cat <<_LT_EOF 1>&2
  8479. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8480. *** to be unable to reliably create shared libraries on AIX.
  8481. *** Therefore, libtool is disabling shared libraries support. If you
  8482. *** really care for shared libraries, you may want to install binutils
  8483. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8484. *** You will then need to restart the configuration process.
  8485. _LT_EOF
  8486. fi
  8487. ;;
  8488. amigaos*)
  8489. case $host_cpu in
  8490. powerpc)
  8491. # see comment about AmigaOS4 .so support
  8492. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8493. archive_expsym_cmds=''
  8494. ;;
  8495. m68k)
  8496. 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)'
  8497. hardcode_libdir_flag_spec='-L$libdir'
  8498. hardcode_minus_L=yes
  8499. ;;
  8500. esac
  8501. ;;
  8502. beos*)
  8503. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8504. allow_undefined_flag=unsupported
  8505. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8506. # support --undefined. This deserves some investigation. FIXME
  8507. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8508. else
  8509. ld_shlibs=no
  8510. fi
  8511. ;;
  8512. cygwin* | mingw* | pw32* | cegcc*)
  8513. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8514. # as there is no search path for DLLs.
  8515. hardcode_libdir_flag_spec='-L$libdir'
  8516. export_dynamic_flag_spec='$wl--export-all-symbols'
  8517. allow_undefined_flag=unsupported
  8518. always_export_symbols=no
  8519. enable_shared_with_static_runtimes=yes
  8520. 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'
  8521. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8522. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8523. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8524. # If the export-symbols file already is a .def file, use it as
  8525. # is; otherwise, prepend EXPORTS...
  8526. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8527. cp $export_symbols $output_objdir/$soname.def;
  8528. else
  8529. echo EXPORTS > $output_objdir/$soname.def;
  8530. cat $export_symbols >> $output_objdir/$soname.def;
  8531. fi~
  8532. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8533. else
  8534. ld_shlibs=no
  8535. fi
  8536. ;;
  8537. haiku*)
  8538. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8539. link_all_deplibs=yes
  8540. ;;
  8541. os2*)
  8542. hardcode_libdir_flag_spec='-L$libdir'
  8543. hardcode_minus_L=yes
  8544. allow_undefined_flag=unsupported
  8545. shrext_cmds=.dll
  8546. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8547. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8548. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8549. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8550. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8551. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8552. emximp -o $lib $output_objdir/$libname.def'
  8553. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8554. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8555. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8556. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8557. prefix_cmds="$SED"~
  8558. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8559. prefix_cmds="$prefix_cmds -e 1d";
  8560. fi~
  8561. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8562. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8563. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8564. emximp -o $lib $output_objdir/$libname.def'
  8565. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8566. enable_shared_with_static_runtimes=yes
  8567. ;;
  8568. interix[3-9]*)
  8569. hardcode_direct=no
  8570. hardcode_shlibpath_var=no
  8571. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8572. export_dynamic_flag_spec='$wl-E'
  8573. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8574. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8575. # default) and relocated if they conflict, which is a slow very memory
  8576. # consuming and fragmenting process. To avoid this, we pick a random,
  8577. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8578. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8579. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8580. 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'
  8581. ;;
  8582. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8583. tmp_diet=no
  8584. if test linux-dietlibc = "$host_os"; then
  8585. case $cc_basename in
  8586. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8587. esac
  8588. fi
  8589. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8590. && test no = "$tmp_diet"
  8591. then
  8592. tmp_addflag=' $pic_flag'
  8593. tmp_sharedflag='-shared'
  8594. case $cc_basename,$host_cpu in
  8595. pgcc*) # Portland Group C compiler
  8596. 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'
  8597. tmp_addflag=' $pic_flag'
  8598. ;;
  8599. pgf77* | pgf90* | pgf95* | pgfortran*)
  8600. # Portland Group f77 and f90 compilers
  8601. 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'
  8602. tmp_addflag=' $pic_flag -Mnomain' ;;
  8603. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8604. tmp_addflag=' -i_dynamic' ;;
  8605. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8606. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8607. ifc* | ifort*) # Intel Fortran compiler
  8608. tmp_addflag=' -nofor_main' ;;
  8609. lf95*) # Lahey Fortran 8.1
  8610. whole_archive_flag_spec=
  8611. tmp_sharedflag='--shared' ;;
  8612. nagfor*) # NAGFOR 5.3
  8613. tmp_sharedflag='-Wl,-shared' ;;
  8614. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8615. tmp_sharedflag='-qmkshrobj'
  8616. tmp_addflag= ;;
  8617. nvcc*) # Cuda Compiler Driver 2.2
  8618. 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'
  8619. compiler_needs_object=yes
  8620. ;;
  8621. esac
  8622. case `$CC -V 2>&1 | sed 5q` in
  8623. *Sun\ C*) # Sun C 5.9
  8624. 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'
  8625. compiler_needs_object=yes
  8626. tmp_sharedflag='-G' ;;
  8627. *Sun\ F*) # Sun Fortran 8.3
  8628. tmp_sharedflag='-G' ;;
  8629. esac
  8630. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8631. if test yes = "$supports_anon_versioning"; then
  8632. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8633. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8634. echo "local: *; };" >> $output_objdir/$libname.ver~
  8635. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8636. fi
  8637. case $cc_basename in
  8638. tcc*)
  8639. export_dynamic_flag_spec='-rdynamic'
  8640. ;;
  8641. xlf* | bgf* | bgxlf* | mpixlf*)
  8642. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8643. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8644. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8645. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8646. if test yes = "$supports_anon_versioning"; then
  8647. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8648. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8649. echo "local: *; };" >> $output_objdir/$libname.ver~
  8650. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8651. fi
  8652. ;;
  8653. esac
  8654. else
  8655. ld_shlibs=no
  8656. fi
  8657. ;;
  8658. netbsd*)
  8659. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8660. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8661. wlarc=
  8662. else
  8663. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8664. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8665. fi
  8666. ;;
  8667. solaris*)
  8668. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8669. ld_shlibs=no
  8670. cat <<_LT_EOF 1>&2
  8671. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8672. *** create shared libraries on Solaris systems. Therefore, libtool
  8673. *** is disabling shared libraries support. We urge you to upgrade GNU
  8674. *** binutils to release 2.9.1 or newer. Another option is to modify
  8675. *** your PATH or compiler configuration so that the native linker is
  8676. *** used, and then restart.
  8677. _LT_EOF
  8678. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8679. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8680. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8681. else
  8682. ld_shlibs=no
  8683. fi
  8684. ;;
  8685. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8686. case `$LD -v 2>&1` in
  8687. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8688. ld_shlibs=no
  8689. cat <<_LT_EOF 1>&2
  8690. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8691. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8692. *** is disabling shared libraries support. We urge you to upgrade GNU
  8693. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8694. *** your PATH or compiler configuration so that the native linker is
  8695. *** used, and then restart.
  8696. _LT_EOF
  8697. ;;
  8698. *)
  8699. # For security reasons, it is highly recommended that you always
  8700. # use absolute paths for naming shared libraries, and exclude the
  8701. # DT_RUNPATH tag from executables and libraries. But doing so
  8702. # requires that you compile everything twice, which is a pain.
  8703. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8704. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8705. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8706. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8707. else
  8708. ld_shlibs=no
  8709. fi
  8710. ;;
  8711. esac
  8712. ;;
  8713. sunos4*)
  8714. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8715. wlarc=
  8716. hardcode_direct=yes
  8717. hardcode_shlibpath_var=no
  8718. ;;
  8719. *)
  8720. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8721. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8722. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8723. else
  8724. ld_shlibs=no
  8725. fi
  8726. ;;
  8727. esac
  8728. if test no = "$ld_shlibs"; then
  8729. runpath_var=
  8730. hardcode_libdir_flag_spec=
  8731. export_dynamic_flag_spec=
  8732. whole_archive_flag_spec=
  8733. fi
  8734. else
  8735. # PORTME fill in a description of your system's linker (not GNU ld)
  8736. case $host_os in
  8737. aix3*)
  8738. allow_undefined_flag=unsupported
  8739. always_export_symbols=yes
  8740. 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'
  8741. # Note: this linker hardcodes the directories in LIBPATH if there
  8742. # are no directories specified by -L.
  8743. hardcode_minus_L=yes
  8744. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8745. # Neither direct hardcoding nor static linking is supported with a
  8746. # broken collect2.
  8747. hardcode_direct=unsupported
  8748. fi
  8749. ;;
  8750. aix[4-9]*)
  8751. if test ia64 = "$host_cpu"; then
  8752. # On IA64, the linker does run time linking by default, so we don't
  8753. # have to do anything special.
  8754. aix_use_runtimelinking=no
  8755. exp_sym_flag='-Bexport'
  8756. no_entry_flag=
  8757. else
  8758. # If we're using GNU nm, then we don't want the "-C" option.
  8759. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8760. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8761. # weak defined symbols like other global defined symbols, whereas
  8762. # GNU nm marks them as "W".
  8763. # While the 'weak' keyword is ignored in the Export File, we need
  8764. # it in the Import File for the 'aix-soname' feature, so we have
  8765. # to replace the "-B" option with "-P" for AIX nm.
  8766. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8767. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8768. else
  8769. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8770. fi
  8771. aix_use_runtimelinking=no
  8772. # Test if we are trying to use run time linking or normal
  8773. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8774. # have runtime linking enabled, and use it for executables.
  8775. # For shared libraries, we enable/disable runtime linking
  8776. # depending on the kind of the shared library created -
  8777. # when "with_aix_soname,aix_use_runtimelinking" is:
  8778. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8779. # "aix,yes" lib.so shared, rtl:yes, for executables
  8780. # lib.a static archive
  8781. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8782. # lib.a(lib.so.V) shared, rtl:no, for executables
  8783. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8784. # lib.a(lib.so.V) shared, rtl:no
  8785. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8786. # lib.a static archive
  8787. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8788. for ld_flag in $LDFLAGS; do
  8789. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8790. aix_use_runtimelinking=yes
  8791. break
  8792. fi
  8793. done
  8794. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8795. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8796. # so we don't have lib.a shared libs to link our executables.
  8797. # We have to force runtime linking in this case.
  8798. aix_use_runtimelinking=yes
  8799. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8800. fi
  8801. ;;
  8802. esac
  8803. exp_sym_flag='-bexport'
  8804. no_entry_flag='-bnoentry'
  8805. fi
  8806. # When large executables or shared objects are built, AIX ld can
  8807. # have problems creating the table of contents. If linking a library
  8808. # or program results in "error TOC overflow" add -mminimal-toc to
  8809. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8810. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8811. archive_cmds=''
  8812. hardcode_direct=yes
  8813. hardcode_direct_absolute=yes
  8814. hardcode_libdir_separator=':'
  8815. link_all_deplibs=yes
  8816. file_list_spec='$wl-f,'
  8817. case $with_aix_soname,$aix_use_runtimelinking in
  8818. aix,*) ;; # traditional, no import file
  8819. svr4,* | *,yes) # use import file
  8820. # The Import File defines what to hardcode.
  8821. hardcode_direct=no
  8822. hardcode_direct_absolute=no
  8823. ;;
  8824. esac
  8825. if test yes = "$GCC"; then
  8826. case $host_os in aix4.[012]|aix4.[012].*)
  8827. # We only want to do this on AIX 4.2 and lower, the check
  8828. # below for broken collect2 doesn't work under 4.3+
  8829. collect2name=`$CC -print-prog-name=collect2`
  8830. if test -f "$collect2name" &&
  8831. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8832. then
  8833. # We have reworked collect2
  8834. :
  8835. else
  8836. # We have old collect2
  8837. hardcode_direct=unsupported
  8838. # It fails to find uninstalled libraries when the uninstalled
  8839. # path is not listed in the libpath. Setting hardcode_minus_L
  8840. # to unsupported forces relinking
  8841. hardcode_minus_L=yes
  8842. hardcode_libdir_flag_spec='-L$libdir'
  8843. hardcode_libdir_separator=
  8844. fi
  8845. ;;
  8846. esac
  8847. shared_flag='-shared'
  8848. if test yes = "$aix_use_runtimelinking"; then
  8849. shared_flag="$shared_flag "'$wl-G'
  8850. fi
  8851. # Need to ensure runtime linking is disabled for the traditional
  8852. # shared library, or the linker may eventually find shared libraries
  8853. # /with/ Import File - we do not want to mix them.
  8854. shared_flag_aix='-shared'
  8855. shared_flag_svr4='-shared $wl-G'
  8856. else
  8857. # not using gcc
  8858. if test ia64 = "$host_cpu"; then
  8859. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8860. # chokes on -Wl,-G. The following line is correct:
  8861. shared_flag='-G'
  8862. else
  8863. if test yes = "$aix_use_runtimelinking"; then
  8864. shared_flag='$wl-G'
  8865. else
  8866. shared_flag='$wl-bM:SRE'
  8867. fi
  8868. shared_flag_aix='$wl-bM:SRE'
  8869. shared_flag_svr4='$wl-G'
  8870. fi
  8871. fi
  8872. export_dynamic_flag_spec='$wl-bexpall'
  8873. # It seems that -bexpall does not export symbols beginning with
  8874. # underscore (_), so it is better to generate a list of symbols to export.
  8875. always_export_symbols=yes
  8876. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8877. # Warning - without using the other runtime loading flags (-brtl),
  8878. # -berok will link without error, but may produce a broken library.
  8879. allow_undefined_flag='-berok'
  8880. # Determine the default libpath from the value encoded in an
  8881. # empty executable.
  8882. if test set = "${lt_cv_aix_libpath+set}"; then
  8883. aix_libpath=$lt_cv_aix_libpath
  8884. else
  8885. if ${lt_cv_aix_libpath_+:} false; then :
  8886. $as_echo_n "(cached) " >&6
  8887. else
  8888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8889. /* end confdefs.h. */
  8890. int
  8891. main ()
  8892. {
  8893. ;
  8894. return 0;
  8895. }
  8896. _ACEOF
  8897. if ac_fn_c_try_link "$LINENO"; then :
  8898. lt_aix_libpath_sed='
  8899. /Import File Strings/,/^$/ {
  8900. /^0/ {
  8901. s/^0 *\([^ ]*\) *$/\1/
  8902. p
  8903. }
  8904. }'
  8905. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8906. # Check for a 64-bit object if we didn't find anything.
  8907. if test -z "$lt_cv_aix_libpath_"; then
  8908. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8909. fi
  8910. fi
  8911. rm -f core conftest.err conftest.$ac_objext \
  8912. conftest$ac_exeext conftest.$ac_ext
  8913. if test -z "$lt_cv_aix_libpath_"; then
  8914. lt_cv_aix_libpath_=/usr/lib:/lib
  8915. fi
  8916. fi
  8917. aix_libpath=$lt_cv_aix_libpath_
  8918. fi
  8919. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8920. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8921. else
  8922. if test ia64 = "$host_cpu"; then
  8923. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8924. allow_undefined_flag="-z nodefs"
  8925. 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"
  8926. else
  8927. # Determine the default libpath from the value encoded in an
  8928. # empty executable.
  8929. if test set = "${lt_cv_aix_libpath+set}"; then
  8930. aix_libpath=$lt_cv_aix_libpath
  8931. else
  8932. if ${lt_cv_aix_libpath_+:} false; then :
  8933. $as_echo_n "(cached) " >&6
  8934. else
  8935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8936. /* end confdefs.h. */
  8937. int
  8938. main ()
  8939. {
  8940. ;
  8941. return 0;
  8942. }
  8943. _ACEOF
  8944. if ac_fn_c_try_link "$LINENO"; then :
  8945. lt_aix_libpath_sed='
  8946. /Import File Strings/,/^$/ {
  8947. /^0/ {
  8948. s/^0 *\([^ ]*\) *$/\1/
  8949. p
  8950. }
  8951. }'
  8952. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8953. # Check for a 64-bit object if we didn't find anything.
  8954. if test -z "$lt_cv_aix_libpath_"; then
  8955. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8956. fi
  8957. fi
  8958. rm -f core conftest.err conftest.$ac_objext \
  8959. conftest$ac_exeext conftest.$ac_ext
  8960. if test -z "$lt_cv_aix_libpath_"; then
  8961. lt_cv_aix_libpath_=/usr/lib:/lib
  8962. fi
  8963. fi
  8964. aix_libpath=$lt_cv_aix_libpath_
  8965. fi
  8966. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8967. # Warning - without using the other run time loading flags,
  8968. # -berok will link without error, but may produce a broken library.
  8969. no_undefined_flag=' $wl-bernotok'
  8970. allow_undefined_flag=' $wl-berok'
  8971. if test yes = "$with_gnu_ld"; then
  8972. # We only use this code for GNU lds that support --whole-archive.
  8973. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8974. else
  8975. # Exported symbols can be pulled into shared objects from archives
  8976. whole_archive_flag_spec='$convenience'
  8977. fi
  8978. archive_cmds_need_lc=yes
  8979. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8980. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8981. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8982. if test svr4 != "$with_aix_soname"; then
  8983. # This is similar to how AIX traditionally builds its shared libraries.
  8984. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8985. fi
  8986. if test aix != "$with_aix_soname"; then
  8987. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8988. else
  8989. # used by -dlpreopen to get the symbols
  8990. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8991. fi
  8992. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8993. fi
  8994. fi
  8995. ;;
  8996. amigaos*)
  8997. case $host_cpu in
  8998. powerpc)
  8999. # see comment about AmigaOS4 .so support
  9000. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9001. archive_expsym_cmds=''
  9002. ;;
  9003. m68k)
  9004. 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)'
  9005. hardcode_libdir_flag_spec='-L$libdir'
  9006. hardcode_minus_L=yes
  9007. ;;
  9008. esac
  9009. ;;
  9010. bsdi[45]*)
  9011. export_dynamic_flag_spec=-rdynamic
  9012. ;;
  9013. cygwin* | mingw* | pw32* | cegcc*)
  9014. # When not using gcc, we currently assume that we are using
  9015. # Microsoft Visual C++.
  9016. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9017. # no search path for DLLs.
  9018. case $cc_basename in
  9019. cl*)
  9020. # Native MSVC
  9021. hardcode_libdir_flag_spec=' '
  9022. allow_undefined_flag=unsupported
  9023. always_export_symbols=yes
  9024. file_list_spec='@'
  9025. # Tell ltmain to make .lib files, not .a files.
  9026. libext=lib
  9027. # Tell ltmain to make .dll files, not .so files.
  9028. shrext_cmds=.dll
  9029. # FIXME: Setting linknames here is a bad hack.
  9030. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9031. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9032. cp "$export_symbols" "$output_objdir/$soname.def";
  9033. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9034. else
  9035. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9036. fi~
  9037. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9038. linknames='
  9039. # The linker will not automatically build a static lib if we build a DLL.
  9040. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9041. enable_shared_with_static_runtimes=yes
  9042. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9043. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9044. # Don't use ranlib
  9045. old_postinstall_cmds='chmod 644 $oldlib'
  9046. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9047. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9048. case $lt_outputfile in
  9049. *.exe|*.EXE) ;;
  9050. *)
  9051. lt_outputfile=$lt_outputfile.exe
  9052. lt_tool_outputfile=$lt_tool_outputfile.exe
  9053. ;;
  9054. esac~
  9055. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9056. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9057. $RM "$lt_outputfile.manifest";
  9058. fi'
  9059. ;;
  9060. *)
  9061. # Assume MSVC wrapper
  9062. hardcode_libdir_flag_spec=' '
  9063. allow_undefined_flag=unsupported
  9064. # Tell ltmain to make .lib files, not .a files.
  9065. libext=lib
  9066. # Tell ltmain to make .dll files, not .so files.
  9067. shrext_cmds=.dll
  9068. # FIXME: Setting linknames here is a bad hack.
  9069. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9070. # The linker will automatically build a .lib file if we build a DLL.
  9071. old_archive_from_new_cmds='true'
  9072. # FIXME: Should let the user specify the lib program.
  9073. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9074. enable_shared_with_static_runtimes=yes
  9075. ;;
  9076. esac
  9077. ;;
  9078. darwin* | rhapsody*)
  9079. archive_cmds_need_lc=no
  9080. hardcode_direct=no
  9081. hardcode_automatic=yes
  9082. hardcode_shlibpath_var=unsupported
  9083. if test yes = "$lt_cv_ld_force_load"; then
  9084. 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\"`'
  9085. else
  9086. whole_archive_flag_spec=''
  9087. fi
  9088. link_all_deplibs=yes
  9089. allow_undefined_flag=$_lt_dar_allow_undefined
  9090. case $cc_basename in
  9091. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9092. *) _lt_dar_can_shared=$GCC ;;
  9093. esac
  9094. if test yes = "$_lt_dar_can_shared"; then
  9095. output_verbose_link_cmd=func_echo_all
  9096. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9097. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9098. 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"
  9099. 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"
  9100. else
  9101. ld_shlibs=no
  9102. fi
  9103. ;;
  9104. dgux*)
  9105. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9106. hardcode_libdir_flag_spec='-L$libdir'
  9107. hardcode_shlibpath_var=no
  9108. ;;
  9109. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9110. # support. Future versions do this automatically, but an explicit c++rt0.o
  9111. # does not break anything, and helps significantly (at the cost of a little
  9112. # extra space).
  9113. freebsd2.2*)
  9114. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9115. hardcode_libdir_flag_spec='-R$libdir'
  9116. hardcode_direct=yes
  9117. hardcode_shlibpath_var=no
  9118. ;;
  9119. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9120. freebsd2.*)
  9121. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9122. hardcode_direct=yes
  9123. hardcode_minus_L=yes
  9124. hardcode_shlibpath_var=no
  9125. ;;
  9126. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9127. freebsd* | dragonfly*)
  9128. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9129. hardcode_libdir_flag_spec='-R$libdir'
  9130. hardcode_direct=yes
  9131. hardcode_shlibpath_var=no
  9132. ;;
  9133. hpux9*)
  9134. if test yes = "$GCC"; then
  9135. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9136. else
  9137. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9138. fi
  9139. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9140. hardcode_libdir_separator=:
  9141. hardcode_direct=yes
  9142. # hardcode_minus_L: Not really in the search PATH,
  9143. # but as the default location of the library.
  9144. hardcode_minus_L=yes
  9145. export_dynamic_flag_spec='$wl-E'
  9146. ;;
  9147. hpux10*)
  9148. if test yes,no = "$GCC,$with_gnu_ld"; then
  9149. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9150. else
  9151. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9152. fi
  9153. if test no = "$with_gnu_ld"; then
  9154. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9155. hardcode_libdir_separator=:
  9156. hardcode_direct=yes
  9157. hardcode_direct_absolute=yes
  9158. export_dynamic_flag_spec='$wl-E'
  9159. # hardcode_minus_L: Not really in the search PATH,
  9160. # but as the default location of the library.
  9161. hardcode_minus_L=yes
  9162. fi
  9163. ;;
  9164. hpux11*)
  9165. if test yes,no = "$GCC,$with_gnu_ld"; then
  9166. case $host_cpu in
  9167. hppa*64*)
  9168. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9169. ;;
  9170. ia64*)
  9171. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9172. ;;
  9173. *)
  9174. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9175. ;;
  9176. esac
  9177. else
  9178. case $host_cpu in
  9179. hppa*64*)
  9180. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9181. ;;
  9182. ia64*)
  9183. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9184. ;;
  9185. *)
  9186. # Older versions of the 11.00 compiler do not understand -b yet
  9187. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9189. $as_echo_n "checking if $CC understands -b... " >&6; }
  9190. if ${lt_cv_prog_compiler__b+:} false; then :
  9191. $as_echo_n "(cached) " >&6
  9192. else
  9193. lt_cv_prog_compiler__b=no
  9194. save_LDFLAGS=$LDFLAGS
  9195. LDFLAGS="$LDFLAGS -b"
  9196. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9197. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9198. # The linker can only warn and ignore the option if not recognized
  9199. # So say no if there are warnings
  9200. if test -s conftest.err; then
  9201. # Append any errors to the config.log.
  9202. cat conftest.err 1>&5
  9203. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9204. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9205. if diff conftest.exp conftest.er2 >/dev/null; then
  9206. lt_cv_prog_compiler__b=yes
  9207. fi
  9208. else
  9209. lt_cv_prog_compiler__b=yes
  9210. fi
  9211. fi
  9212. $RM -r conftest*
  9213. LDFLAGS=$save_LDFLAGS
  9214. fi
  9215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9216. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9217. if test yes = "$lt_cv_prog_compiler__b"; then
  9218. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9219. else
  9220. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9221. fi
  9222. ;;
  9223. esac
  9224. fi
  9225. if test no = "$with_gnu_ld"; then
  9226. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9227. hardcode_libdir_separator=:
  9228. case $host_cpu in
  9229. hppa*64*|ia64*)
  9230. hardcode_direct=no
  9231. hardcode_shlibpath_var=no
  9232. ;;
  9233. *)
  9234. hardcode_direct=yes
  9235. hardcode_direct_absolute=yes
  9236. export_dynamic_flag_spec='$wl-E'
  9237. # hardcode_minus_L: Not really in the search PATH,
  9238. # but as the default location of the library.
  9239. hardcode_minus_L=yes
  9240. ;;
  9241. esac
  9242. fi
  9243. ;;
  9244. irix5* | irix6* | nonstopux*)
  9245. if test yes = "$GCC"; then
  9246. 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'
  9247. # Try to use the -exported_symbol ld option, if it does not
  9248. # work, assume that -exports_file does not work either and
  9249. # implicitly export all symbols.
  9250. # This should be the same for all languages, so no per-tag cache variable.
  9251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9252. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9253. if ${lt_cv_irix_exported_symbol+:} false; then :
  9254. $as_echo_n "(cached) " >&6
  9255. else
  9256. save_LDFLAGS=$LDFLAGS
  9257. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9259. /* end confdefs.h. */
  9260. int foo (void) { return 0; }
  9261. _ACEOF
  9262. if ac_fn_c_try_link "$LINENO"; then :
  9263. lt_cv_irix_exported_symbol=yes
  9264. else
  9265. lt_cv_irix_exported_symbol=no
  9266. fi
  9267. rm -f core conftest.err conftest.$ac_objext \
  9268. conftest$ac_exeext conftest.$ac_ext
  9269. LDFLAGS=$save_LDFLAGS
  9270. fi
  9271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9272. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9273. if test yes = "$lt_cv_irix_exported_symbol"; then
  9274. 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'
  9275. fi
  9276. else
  9277. 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'
  9278. 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'
  9279. fi
  9280. archive_cmds_need_lc='no'
  9281. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9282. hardcode_libdir_separator=:
  9283. inherit_rpath=yes
  9284. link_all_deplibs=yes
  9285. ;;
  9286. linux*)
  9287. case $cc_basename in
  9288. tcc*)
  9289. # Fabrice Bellard et al's Tiny C Compiler
  9290. ld_shlibs=yes
  9291. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9292. ;;
  9293. esac
  9294. ;;
  9295. netbsd*)
  9296. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9297. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9298. else
  9299. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9300. fi
  9301. hardcode_libdir_flag_spec='-R$libdir'
  9302. hardcode_direct=yes
  9303. hardcode_shlibpath_var=no
  9304. ;;
  9305. newsos6)
  9306. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9307. hardcode_direct=yes
  9308. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9309. hardcode_libdir_separator=:
  9310. hardcode_shlibpath_var=no
  9311. ;;
  9312. *nto* | *qnx*)
  9313. ;;
  9314. openbsd* | bitrig*)
  9315. if test -f /usr/libexec/ld.so; then
  9316. hardcode_direct=yes
  9317. hardcode_shlibpath_var=no
  9318. hardcode_direct_absolute=yes
  9319. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9320. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9321. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9322. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9323. export_dynamic_flag_spec='$wl-E'
  9324. else
  9325. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9326. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9327. fi
  9328. else
  9329. ld_shlibs=no
  9330. fi
  9331. ;;
  9332. os2*)
  9333. hardcode_libdir_flag_spec='-L$libdir'
  9334. hardcode_minus_L=yes
  9335. allow_undefined_flag=unsupported
  9336. shrext_cmds=.dll
  9337. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9338. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9339. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9340. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9341. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9342. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9343. emximp -o $lib $output_objdir/$libname.def'
  9344. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9345. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9346. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9347. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9348. prefix_cmds="$SED"~
  9349. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9350. prefix_cmds="$prefix_cmds -e 1d";
  9351. fi~
  9352. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9353. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9354. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9355. emximp -o $lib $output_objdir/$libname.def'
  9356. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9357. enable_shared_with_static_runtimes=yes
  9358. ;;
  9359. osf3*)
  9360. if test yes = "$GCC"; then
  9361. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9362. 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'
  9363. else
  9364. allow_undefined_flag=' -expect_unresolved \*'
  9365. 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'
  9366. fi
  9367. archive_cmds_need_lc='no'
  9368. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9369. hardcode_libdir_separator=:
  9370. ;;
  9371. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9372. if test yes = "$GCC"; then
  9373. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9374. 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'
  9375. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9376. else
  9377. allow_undefined_flag=' -expect_unresolved \*'
  9378. 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'
  9379. 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~
  9380. $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'
  9381. # Both c and cxx compiler support -rpath directly
  9382. hardcode_libdir_flag_spec='-rpath $libdir'
  9383. fi
  9384. archive_cmds_need_lc='no'
  9385. hardcode_libdir_separator=:
  9386. ;;
  9387. solaris*)
  9388. no_undefined_flag=' -z defs'
  9389. if test yes = "$GCC"; then
  9390. wlarc='$wl'
  9391. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9392. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9393. $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'
  9394. else
  9395. case `$CC -V 2>&1` in
  9396. *"Compilers 5.0"*)
  9397. wlarc=''
  9398. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9399. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9400. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9401. ;;
  9402. *)
  9403. wlarc='$wl'
  9404. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9405. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9406. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9407. ;;
  9408. esac
  9409. fi
  9410. hardcode_libdir_flag_spec='-R$libdir'
  9411. hardcode_shlibpath_var=no
  9412. case $host_os in
  9413. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9414. *)
  9415. # The compiler driver will combine and reorder linker options,
  9416. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9417. # but is careful enough not to reorder.
  9418. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9419. if test yes = "$GCC"; then
  9420. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9421. else
  9422. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9423. fi
  9424. ;;
  9425. esac
  9426. link_all_deplibs=yes
  9427. ;;
  9428. sunos4*)
  9429. if test sequent = "$host_vendor"; then
  9430. # Use $CC to link under sequent, because it throws in some extra .o
  9431. # files that make .init and .fini sections work.
  9432. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9433. else
  9434. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9435. fi
  9436. hardcode_libdir_flag_spec='-L$libdir'
  9437. hardcode_direct=yes
  9438. hardcode_minus_L=yes
  9439. hardcode_shlibpath_var=no
  9440. ;;
  9441. sysv4)
  9442. case $host_vendor in
  9443. sni)
  9444. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9445. hardcode_direct=yes # is this really true???
  9446. ;;
  9447. siemens)
  9448. ## LD is ld it makes a PLAMLIB
  9449. ## CC just makes a GrossModule.
  9450. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9451. reload_cmds='$CC -r -o $output$reload_objs'
  9452. hardcode_direct=no
  9453. ;;
  9454. motorola)
  9455. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9456. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9457. ;;
  9458. esac
  9459. runpath_var='LD_RUN_PATH'
  9460. hardcode_shlibpath_var=no
  9461. ;;
  9462. sysv4.3*)
  9463. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9464. hardcode_shlibpath_var=no
  9465. export_dynamic_flag_spec='-Bexport'
  9466. ;;
  9467. sysv4*MP*)
  9468. if test -d /usr/nec; then
  9469. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9470. hardcode_shlibpath_var=no
  9471. runpath_var=LD_RUN_PATH
  9472. hardcode_runpath_var=yes
  9473. ld_shlibs=yes
  9474. fi
  9475. ;;
  9476. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9477. no_undefined_flag='$wl-z,text'
  9478. archive_cmds_need_lc=no
  9479. hardcode_shlibpath_var=no
  9480. runpath_var='LD_RUN_PATH'
  9481. if test yes = "$GCC"; then
  9482. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9483. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9484. else
  9485. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9486. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9487. fi
  9488. ;;
  9489. sysv5* | sco3.2v5* | sco5v6*)
  9490. # Note: We CANNOT use -z defs as we might desire, because we do not
  9491. # link with -lc, and that would cause any symbols used from libc to
  9492. # always be unresolved, which means just about no library would
  9493. # ever link correctly. If we're not using GNU ld we use -z text
  9494. # though, which does catch some bad symbols but isn't as heavy-handed
  9495. # as -z defs.
  9496. no_undefined_flag='$wl-z,text'
  9497. allow_undefined_flag='$wl-z,nodefs'
  9498. archive_cmds_need_lc=no
  9499. hardcode_shlibpath_var=no
  9500. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9501. hardcode_libdir_separator=':'
  9502. link_all_deplibs=yes
  9503. export_dynamic_flag_spec='$wl-Bexport'
  9504. runpath_var='LD_RUN_PATH'
  9505. if test yes = "$GCC"; then
  9506. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9507. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9508. else
  9509. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9510. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9511. fi
  9512. ;;
  9513. uts4*)
  9514. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9515. hardcode_libdir_flag_spec='-L$libdir'
  9516. hardcode_shlibpath_var=no
  9517. ;;
  9518. *)
  9519. ld_shlibs=no
  9520. ;;
  9521. esac
  9522. if test sni = "$host_vendor"; then
  9523. case $host in
  9524. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9525. export_dynamic_flag_spec='$wl-Blargedynsym'
  9526. ;;
  9527. esac
  9528. fi
  9529. fi
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9531. $as_echo "$ld_shlibs" >&6; }
  9532. test no = "$ld_shlibs" && can_build_shared=no
  9533. with_gnu_ld=$with_gnu_ld
  9534. #
  9535. # Do we need to explicitly link libc?
  9536. #
  9537. case "x$archive_cmds_need_lc" in
  9538. x|xyes)
  9539. # Assume -lc should be added
  9540. archive_cmds_need_lc=yes
  9541. if test yes,yes = "$GCC,$enable_shared"; then
  9542. case $archive_cmds in
  9543. *'~'*)
  9544. # FIXME: we may have to deal with multi-command sequences.
  9545. ;;
  9546. '$CC '*)
  9547. # Test whether the compiler implicitly links with -lc since on some
  9548. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9549. # to ld, don't add -lc before -lgcc.
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9551. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9552. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9553. $as_echo_n "(cached) " >&6
  9554. else
  9555. $RM conftest*
  9556. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9557. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9558. (eval $ac_compile) 2>&5
  9559. ac_status=$?
  9560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9561. test $ac_status = 0; } 2>conftest.err; then
  9562. soname=conftest
  9563. lib=conftest
  9564. libobjs=conftest.$ac_objext
  9565. deplibs=
  9566. wl=$lt_prog_compiler_wl
  9567. pic_flag=$lt_prog_compiler_pic
  9568. compiler_flags=-v
  9569. linker_flags=-v
  9570. verstring=
  9571. output_objdir=.
  9572. libname=conftest
  9573. lt_save_allow_undefined_flag=$allow_undefined_flag
  9574. allow_undefined_flag=
  9575. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9576. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9577. ac_status=$?
  9578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9579. test $ac_status = 0; }
  9580. then
  9581. lt_cv_archive_cmds_need_lc=no
  9582. else
  9583. lt_cv_archive_cmds_need_lc=yes
  9584. fi
  9585. allow_undefined_flag=$lt_save_allow_undefined_flag
  9586. else
  9587. cat conftest.err 1>&5
  9588. fi
  9589. $RM conftest*
  9590. fi
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9592. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9593. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9594. ;;
  9595. esac
  9596. fi
  9597. ;;
  9598. esac
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9600. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9601. if test yes = "$GCC"; then
  9602. case $host_os in
  9603. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9604. *) lt_awk_arg='/^libraries:/' ;;
  9605. esac
  9606. case $host_os in
  9607. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9608. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9609. esac
  9610. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9611. case $lt_search_path_spec in
  9612. *\;*)
  9613. # if the path contains ";" then we assume it to be the separator
  9614. # otherwise default to the standard path separator (i.e. ":") - it is
  9615. # assumed that no part of a normal pathname contains ";" but that should
  9616. # okay in the real world where ";" in dirpaths is itself problematic.
  9617. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9618. ;;
  9619. *)
  9620. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9621. ;;
  9622. esac
  9623. # Ok, now we have the path, separated by spaces, we can step through it
  9624. # and add multilib dir if necessary...
  9625. lt_tmp_lt_search_path_spec=
  9626. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9627. # ...but if some path component already ends with the multilib dir we assume
  9628. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9629. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9630. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9631. lt_multi_os_dir=
  9632. ;;
  9633. esac
  9634. for lt_sys_path in $lt_search_path_spec; do
  9635. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9636. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9637. elif test -n "$lt_multi_os_dir"; then
  9638. test -d "$lt_sys_path" && \
  9639. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9640. fi
  9641. done
  9642. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9643. BEGIN {RS = " "; FS = "/|\n";} {
  9644. lt_foo = "";
  9645. lt_count = 0;
  9646. for (lt_i = NF; lt_i > 0; lt_i--) {
  9647. if ($lt_i != "" && $lt_i != ".") {
  9648. if ($lt_i == "..") {
  9649. lt_count++;
  9650. } else {
  9651. if (lt_count == 0) {
  9652. lt_foo = "/" $lt_i lt_foo;
  9653. } else {
  9654. lt_count--;
  9655. }
  9656. }
  9657. }
  9658. }
  9659. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9660. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9661. }'`
  9662. # AWK program above erroneously prepends '/' to C:/dos/paths
  9663. # for these hosts.
  9664. case $host_os in
  9665. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9666. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9667. esac
  9668. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9669. else
  9670. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9671. fi
  9672. library_names_spec=
  9673. libname_spec='lib$name'
  9674. soname_spec=
  9675. shrext_cmds=.so
  9676. postinstall_cmds=
  9677. postuninstall_cmds=
  9678. finish_cmds=
  9679. finish_eval=
  9680. shlibpath_var=
  9681. shlibpath_overrides_runpath=unknown
  9682. version_type=none
  9683. dynamic_linker="$host_os ld.so"
  9684. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9685. need_lib_prefix=unknown
  9686. hardcode_into_libs=no
  9687. # when you set need_version to no, make sure it does not cause -set_version
  9688. # flags to be left without arguments
  9689. need_version=unknown
  9690. case $host_os in
  9691. aix3*)
  9692. version_type=linux # correct to gnu/linux during the next big refactor
  9693. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9694. shlibpath_var=LIBPATH
  9695. # AIX 3 has no versioning support, so we append a major version to the name.
  9696. soname_spec='$libname$release$shared_ext$major'
  9697. ;;
  9698. aix[4-9]*)
  9699. version_type=linux # correct to gnu/linux during the next big refactor
  9700. need_lib_prefix=no
  9701. need_version=no
  9702. hardcode_into_libs=yes
  9703. if test ia64 = "$host_cpu"; then
  9704. # AIX 5 supports IA64
  9705. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9706. shlibpath_var=LD_LIBRARY_PATH
  9707. else
  9708. # With GCC up to 2.95.x, collect2 would create an import file
  9709. # for dependence libraries. The import file would start with
  9710. # the line '#! .'. This would cause the generated library to
  9711. # depend on '.', always an invalid library. This was fixed in
  9712. # development snapshots of GCC prior to 3.0.
  9713. case $host_os in
  9714. aix4 | aix4.[01] | aix4.[01].*)
  9715. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9716. echo ' yes '
  9717. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9718. :
  9719. else
  9720. can_build_shared=no
  9721. fi
  9722. ;;
  9723. esac
  9724. # Using Import Files as archive members, it is possible to support
  9725. # filename-based versioning of shared library archives on AIX. While
  9726. # this would work for both with and without runtime linking, it will
  9727. # prevent static linking of such archives. So we do filename-based
  9728. # shared library versioning with .so extension only, which is used
  9729. # when both runtime linking and shared linking is enabled.
  9730. # Unfortunately, runtime linking may impact performance, so we do
  9731. # not want this to be the default eventually. Also, we use the
  9732. # versioned .so libs for executables only if there is the -brtl
  9733. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9734. # To allow for filename-based versioning support, we need to create
  9735. # libNAME.so.V as an archive file, containing:
  9736. # *) an Import File, referring to the versioned filename of the
  9737. # archive as well as the shared archive member, telling the
  9738. # bitwidth (32 or 64) of that shared object, and providing the
  9739. # list of exported symbols of that shared object, eventually
  9740. # decorated with the 'weak' keyword
  9741. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9742. # it being seen by the linker.
  9743. # At run time we better use the real file rather than another symlink,
  9744. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9745. case $with_aix_soname,$aix_use_runtimelinking in
  9746. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9747. # soname into executable. Probably we can add versioning support to
  9748. # collect2, so additional links can be useful in future.
  9749. aix,yes) # traditional libtool
  9750. dynamic_linker='AIX unversionable lib.so'
  9751. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9752. # instead of lib<name>.a to let people know that these are not
  9753. # typical AIX shared libraries.
  9754. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9755. ;;
  9756. aix,no) # traditional AIX only
  9757. dynamic_linker='AIX lib.a(lib.so.V)'
  9758. # We preserve .a as extension for shared libraries through AIX4.2
  9759. # and later when we are not doing run time linking.
  9760. library_names_spec='$libname$release.a $libname.a'
  9761. soname_spec='$libname$release$shared_ext$major'
  9762. ;;
  9763. svr4,*) # full svr4 only
  9764. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9765. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9766. # We do not specify a path in Import Files, so LIBPATH fires.
  9767. shlibpath_overrides_runpath=yes
  9768. ;;
  9769. *,yes) # both, prefer svr4
  9770. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9771. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9772. # unpreferred sharedlib libNAME.a needs extra handling
  9773. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9774. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9775. # We do not specify a path in Import Files, so LIBPATH fires.
  9776. shlibpath_overrides_runpath=yes
  9777. ;;
  9778. *,no) # both, prefer aix
  9779. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9780. library_names_spec='$libname$release.a $libname.a'
  9781. soname_spec='$libname$release$shared_ext$major'
  9782. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9783. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9784. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9785. ;;
  9786. esac
  9787. shlibpath_var=LIBPATH
  9788. fi
  9789. ;;
  9790. amigaos*)
  9791. case $host_cpu in
  9792. powerpc)
  9793. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9794. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9796. ;;
  9797. m68k)
  9798. library_names_spec='$libname.ixlibrary $libname.a'
  9799. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9800. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9801. ;;
  9802. esac
  9803. ;;
  9804. beos*)
  9805. library_names_spec='$libname$shared_ext'
  9806. dynamic_linker="$host_os ld.so"
  9807. shlibpath_var=LIBRARY_PATH
  9808. ;;
  9809. bsdi[45]*)
  9810. version_type=linux # correct to gnu/linux during the next big refactor
  9811. need_version=no
  9812. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9813. soname_spec='$libname$release$shared_ext$major'
  9814. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9815. shlibpath_var=LD_LIBRARY_PATH
  9816. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9817. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9818. # the default ld.so.conf also contains /usr/contrib/lib and
  9819. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9820. # libtool to hard-code these into programs
  9821. ;;
  9822. cygwin* | mingw* | pw32* | cegcc*)
  9823. version_type=windows
  9824. shrext_cmds=.dll
  9825. need_version=no
  9826. need_lib_prefix=no
  9827. case $GCC,$cc_basename in
  9828. yes,*)
  9829. # gcc
  9830. library_names_spec='$libname.dll.a'
  9831. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9832. postinstall_cmds='base_file=`basename \$file`~
  9833. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9834. dldir=$destdir/`dirname \$dlpath`~
  9835. test -d \$dldir || mkdir -p \$dldir~
  9836. $install_prog $dir/$dlname \$dldir/$dlname~
  9837. chmod a+x \$dldir/$dlname~
  9838. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9839. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9840. fi'
  9841. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9842. dlpath=$dir/\$dldll~
  9843. $RM \$dlpath'
  9844. shlibpath_overrides_runpath=yes
  9845. case $host_os in
  9846. cygwin*)
  9847. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9848. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9849. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9850. ;;
  9851. mingw* | cegcc*)
  9852. # MinGW DLLs use traditional 'lib' prefix
  9853. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9854. ;;
  9855. pw32*)
  9856. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9857. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9858. ;;
  9859. esac
  9860. dynamic_linker='Win32 ld.exe'
  9861. ;;
  9862. *,cl*)
  9863. # Native MSVC
  9864. libname_spec='$name'
  9865. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9866. library_names_spec='$libname.dll.lib'
  9867. case $build_os in
  9868. mingw*)
  9869. sys_lib_search_path_spec=
  9870. lt_save_ifs=$IFS
  9871. IFS=';'
  9872. for lt_path in $LIB
  9873. do
  9874. IFS=$lt_save_ifs
  9875. # Let DOS variable expansion print the short 8.3 style file name.
  9876. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9877. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9878. done
  9879. IFS=$lt_save_ifs
  9880. # Convert to MSYS style.
  9881. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9882. ;;
  9883. cygwin*)
  9884. # Convert to unix form, then to dos form, then back to unix form
  9885. # but this time dos style (no spaces!) so that the unix form looks
  9886. # like /cygdrive/c/PROGRA~1:/cygdr...
  9887. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9888. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9889. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9890. ;;
  9891. *)
  9892. sys_lib_search_path_spec=$LIB
  9893. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9894. # It is most probably a Windows format PATH.
  9895. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9896. else
  9897. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9898. fi
  9899. # FIXME: find the short name or the path components, as spaces are
  9900. # common. (e.g. "Program Files" -> "PROGRA~1")
  9901. ;;
  9902. esac
  9903. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9904. postinstall_cmds='base_file=`basename \$file`~
  9905. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9906. dldir=$destdir/`dirname \$dlpath`~
  9907. test -d \$dldir || mkdir -p \$dldir~
  9908. $install_prog $dir/$dlname \$dldir/$dlname'
  9909. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9910. dlpath=$dir/\$dldll~
  9911. $RM \$dlpath'
  9912. shlibpath_overrides_runpath=yes
  9913. dynamic_linker='Win32 link.exe'
  9914. ;;
  9915. *)
  9916. # Assume MSVC wrapper
  9917. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9918. dynamic_linker='Win32 ld.exe'
  9919. ;;
  9920. esac
  9921. # FIXME: first we should search . and the directory the executable is in
  9922. shlibpath_var=PATH
  9923. ;;
  9924. darwin* | rhapsody*)
  9925. dynamic_linker="$host_os dyld"
  9926. version_type=darwin
  9927. need_lib_prefix=no
  9928. need_version=no
  9929. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  9930. soname_spec='$libname$release$major$shared_ext'
  9931. shlibpath_overrides_runpath=yes
  9932. shlibpath_var=DYLD_LIBRARY_PATH
  9933. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  9934. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9935. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9936. ;;
  9937. dgux*)
  9938. version_type=linux # correct to gnu/linux during the next big refactor
  9939. need_lib_prefix=no
  9940. need_version=no
  9941. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9942. soname_spec='$libname$release$shared_ext$major'
  9943. shlibpath_var=LD_LIBRARY_PATH
  9944. ;;
  9945. freebsd* | dragonfly*)
  9946. # DragonFly does not have aout. When/if they implement a new
  9947. # versioning mechanism, adjust this.
  9948. if test -x /usr/bin/objformat; then
  9949. objformat=`/usr/bin/objformat`
  9950. else
  9951. case $host_os in
  9952. freebsd[23].*) objformat=aout ;;
  9953. *) objformat=elf ;;
  9954. esac
  9955. fi
  9956. # Handle Gentoo/FreeBSD as it was Linux
  9957. case $host_vendor in
  9958. gentoo)
  9959. version_type=linux ;;
  9960. *)
  9961. version_type=freebsd-$objformat ;;
  9962. esac
  9963. case $version_type in
  9964. freebsd-elf*)
  9965. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9966. soname_spec='$libname$release$shared_ext$major'
  9967. need_version=no
  9968. need_lib_prefix=no
  9969. ;;
  9970. freebsd-*)
  9971. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9972. need_version=yes
  9973. ;;
  9974. linux)
  9975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9976. soname_spec='${libname}${release}${shared_ext}$major'
  9977. need_lib_prefix=no
  9978. need_version=no
  9979. ;;
  9980. esac
  9981. shlibpath_var=LD_LIBRARY_PATH
  9982. case $host_os in
  9983. freebsd2.*)
  9984. shlibpath_overrides_runpath=yes
  9985. ;;
  9986. freebsd3.[01]* | freebsdelf3.[01]*)
  9987. shlibpath_overrides_runpath=yes
  9988. hardcode_into_libs=yes
  9989. ;;
  9990. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9991. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9992. shlibpath_overrides_runpath=no
  9993. hardcode_into_libs=yes
  9994. ;;
  9995. *) # from 4.6 on, and DragonFly
  9996. shlibpath_overrides_runpath=yes
  9997. hardcode_into_libs=yes
  9998. ;;
  9999. esac
  10000. ;;
  10001. haiku*)
  10002. version_type=linux # correct to gnu/linux during the next big refactor
  10003. need_lib_prefix=no
  10004. need_version=no
  10005. dynamic_linker="$host_os runtime_loader"
  10006. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10007. soname_spec='$libname$release$shared_ext$major'
  10008. shlibpath_var=LIBRARY_PATH
  10009. shlibpath_overrides_runpath=no
  10010. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10011. hardcode_into_libs=yes
  10012. ;;
  10013. hpux9* | hpux10* | hpux11*)
  10014. # Give a soname corresponding to the major version so that dld.sl refuses to
  10015. # link against other versions.
  10016. version_type=sunos
  10017. need_lib_prefix=no
  10018. need_version=no
  10019. case $host_cpu in
  10020. ia64*)
  10021. shrext_cmds='.so'
  10022. hardcode_into_libs=yes
  10023. dynamic_linker="$host_os dld.so"
  10024. shlibpath_var=LD_LIBRARY_PATH
  10025. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10026. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10027. soname_spec='$libname$release$shared_ext$major'
  10028. if test 32 = "$HPUX_IA64_MODE"; then
  10029. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10030. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10031. else
  10032. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10033. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10034. fi
  10035. ;;
  10036. hppa*64*)
  10037. shrext_cmds='.sl'
  10038. hardcode_into_libs=yes
  10039. dynamic_linker="$host_os dld.sl"
  10040. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10041. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10042. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10043. soname_spec='$libname$release$shared_ext$major'
  10044. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10045. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10046. ;;
  10047. *)
  10048. shrext_cmds='.sl'
  10049. dynamic_linker="$host_os dld.sl"
  10050. shlibpath_var=SHLIB_PATH
  10051. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10052. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10053. soname_spec='$libname$release$shared_ext$major'
  10054. ;;
  10055. esac
  10056. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10057. postinstall_cmds='chmod 555 $lib'
  10058. # or fails outright, so override atomically:
  10059. install_override_mode=555
  10060. ;;
  10061. interix[3-9]*)
  10062. version_type=linux # correct to gnu/linux during the next big refactor
  10063. need_lib_prefix=no
  10064. need_version=no
  10065. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10066. soname_spec='$libname$release$shared_ext$major'
  10067. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10068. shlibpath_var=LD_LIBRARY_PATH
  10069. shlibpath_overrides_runpath=no
  10070. hardcode_into_libs=yes
  10071. ;;
  10072. irix5* | irix6* | nonstopux*)
  10073. case $host_os in
  10074. nonstopux*) version_type=nonstopux ;;
  10075. *)
  10076. if test yes = "$lt_cv_prog_gnu_ld"; then
  10077. version_type=linux # correct to gnu/linux during the next big refactor
  10078. else
  10079. version_type=irix
  10080. fi ;;
  10081. esac
  10082. need_lib_prefix=no
  10083. need_version=no
  10084. soname_spec='$libname$release$shared_ext$major'
  10085. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10086. case $host_os in
  10087. irix5* | nonstopux*)
  10088. libsuff= shlibsuff=
  10089. ;;
  10090. *)
  10091. case $LD in # libtool.m4 will add one of these switches to LD
  10092. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10093. libsuff= shlibsuff= libmagic=32-bit;;
  10094. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10095. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10096. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10097. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10098. *) libsuff= shlibsuff= libmagic=never-match;;
  10099. esac
  10100. ;;
  10101. esac
  10102. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10103. shlibpath_overrides_runpath=no
  10104. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10105. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10106. hardcode_into_libs=yes
  10107. ;;
  10108. # No shared lib support for Linux oldld, aout, or coff.
  10109. linux*oldld* | linux*aout* | linux*coff*)
  10110. dynamic_linker=no
  10111. ;;
  10112. linux*android*)
  10113. version_type=none # Android doesn't support versioned libraries.
  10114. need_lib_prefix=no
  10115. need_version=no
  10116. library_names_spec='$libname$release$shared_ext'
  10117. soname_spec='$libname$release$shared_ext'
  10118. finish_cmds=
  10119. shlibpath_var=LD_LIBRARY_PATH
  10120. shlibpath_overrides_runpath=yes
  10121. # This implies no fast_install, which is unacceptable.
  10122. # Some rework will be needed to allow for fast_install
  10123. # before this can be enabled.
  10124. hardcode_into_libs=yes
  10125. dynamic_linker='Android linker'
  10126. # Don't embed -rpath directories since the linker doesn't support them.
  10127. hardcode_libdir_flag_spec='-L$libdir'
  10128. ;;
  10129. # This must be glibc/ELF.
  10130. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10131. version_type=linux # correct to gnu/linux during the next big refactor
  10132. need_lib_prefix=no
  10133. need_version=no
  10134. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10135. soname_spec='$libname$release$shared_ext$major'
  10136. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10137. shlibpath_var=LD_LIBRARY_PATH
  10138. shlibpath_overrides_runpath=no
  10139. # Some binutils ld are patched to set DT_RUNPATH
  10140. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10141. $as_echo_n "(cached) " >&6
  10142. else
  10143. lt_cv_shlibpath_overrides_runpath=no
  10144. save_LDFLAGS=$LDFLAGS
  10145. save_libdir=$libdir
  10146. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10147. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10149. /* end confdefs.h. */
  10150. int
  10151. main ()
  10152. {
  10153. ;
  10154. return 0;
  10155. }
  10156. _ACEOF
  10157. if ac_fn_c_try_link "$LINENO"; then :
  10158. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10159. lt_cv_shlibpath_overrides_runpath=yes
  10160. fi
  10161. fi
  10162. rm -f core conftest.err conftest.$ac_objext \
  10163. conftest$ac_exeext conftest.$ac_ext
  10164. LDFLAGS=$save_LDFLAGS
  10165. libdir=$save_libdir
  10166. fi
  10167. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10168. # This implies no fast_install, which is unacceptable.
  10169. # Some rework will be needed to allow for fast_install
  10170. # before this can be enabled.
  10171. hardcode_into_libs=yes
  10172. # Ideally, we could use ldconfig to report *all* directores which are
  10173. # searched for libraries, however this is still not possible. Aside from not
  10174. # being certain /sbin/ldconfig is available, command
  10175. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10176. # even though it is searched at run-time. Try to do the best guess by
  10177. # appending ld.so.conf contents (and includes) to the search path.
  10178. if test -f /etc/ld.so.conf; then
  10179. 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' ' '`
  10180. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10181. fi
  10182. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10183. # powerpc, because MkLinux only supported shared libraries with the
  10184. # GNU dynamic linker. Since this was broken with cross compilers,
  10185. # most powerpc-linux boxes support dynamic linking these days and
  10186. # people can always --disable-shared, the test was removed, and we
  10187. # assume the GNU/Linux dynamic linker is in use.
  10188. dynamic_linker='GNU/Linux ld.so'
  10189. ;;
  10190. netbsd*)
  10191. version_type=sunos
  10192. need_lib_prefix=no
  10193. need_version=no
  10194. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10195. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10196. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10197. dynamic_linker='NetBSD (a.out) ld.so'
  10198. else
  10199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10200. soname_spec='$libname$release$shared_ext$major'
  10201. dynamic_linker='NetBSD ld.elf_so'
  10202. fi
  10203. shlibpath_var=LD_LIBRARY_PATH
  10204. shlibpath_overrides_runpath=yes
  10205. hardcode_into_libs=yes
  10206. ;;
  10207. newsos6)
  10208. version_type=linux # correct to gnu/linux during the next big refactor
  10209. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10210. shlibpath_var=LD_LIBRARY_PATH
  10211. shlibpath_overrides_runpath=yes
  10212. ;;
  10213. *nto* | *qnx*)
  10214. version_type=qnx
  10215. need_lib_prefix=no
  10216. need_version=no
  10217. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10218. soname_spec='$libname$release$shared_ext$major'
  10219. shlibpath_var=LD_LIBRARY_PATH
  10220. shlibpath_overrides_runpath=no
  10221. hardcode_into_libs=yes
  10222. dynamic_linker='ldqnx.so'
  10223. ;;
  10224. openbsd* | bitrig*)
  10225. version_type=sunos
  10226. sys_lib_dlsearch_path_spec=/usr/lib
  10227. need_lib_prefix=no
  10228. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10229. need_version=no
  10230. else
  10231. need_version=yes
  10232. fi
  10233. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10234. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10235. shlibpath_var=LD_LIBRARY_PATH
  10236. shlibpath_overrides_runpath=yes
  10237. ;;
  10238. os2*)
  10239. libname_spec='$name'
  10240. version_type=windows
  10241. shrext_cmds=.dll
  10242. need_version=no
  10243. need_lib_prefix=no
  10244. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10245. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10246. v=$($ECHO $release$versuffix | tr -d .-);
  10247. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10248. $ECHO $n$v`$shared_ext'
  10249. library_names_spec='${libname}_dll.$libext'
  10250. dynamic_linker='OS/2 ld.exe'
  10251. shlibpath_var=BEGINLIBPATH
  10252. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10253. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10254. postinstall_cmds='base_file=`basename \$file`~
  10255. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10256. dldir=$destdir/`dirname \$dlpath`~
  10257. test -d \$dldir || mkdir -p \$dldir~
  10258. $install_prog $dir/$dlname \$dldir/$dlname~
  10259. chmod a+x \$dldir/$dlname~
  10260. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10261. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10262. fi'
  10263. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10264. dlpath=$dir/\$dldll~
  10265. $RM \$dlpath'
  10266. ;;
  10267. osf3* | osf4* | osf5*)
  10268. version_type=osf
  10269. need_lib_prefix=no
  10270. need_version=no
  10271. soname_spec='$libname$release$shared_ext$major'
  10272. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10273. shlibpath_var=LD_LIBRARY_PATH
  10274. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10275. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10276. ;;
  10277. rdos*)
  10278. dynamic_linker=no
  10279. ;;
  10280. solaris*)
  10281. version_type=linux # correct to gnu/linux during the next big refactor
  10282. need_lib_prefix=no
  10283. need_version=no
  10284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10285. soname_spec='$libname$release$shared_ext$major'
  10286. shlibpath_var=LD_LIBRARY_PATH
  10287. shlibpath_overrides_runpath=yes
  10288. hardcode_into_libs=yes
  10289. # ldd complains unless libraries are executable
  10290. postinstall_cmds='chmod +x $lib'
  10291. ;;
  10292. sunos4*)
  10293. version_type=sunos
  10294. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10295. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10296. shlibpath_var=LD_LIBRARY_PATH
  10297. shlibpath_overrides_runpath=yes
  10298. if test yes = "$with_gnu_ld"; then
  10299. need_lib_prefix=no
  10300. fi
  10301. need_version=yes
  10302. ;;
  10303. sysv4 | sysv4.3*)
  10304. version_type=linux # correct to gnu/linux during the next big refactor
  10305. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10306. soname_spec='$libname$release$shared_ext$major'
  10307. shlibpath_var=LD_LIBRARY_PATH
  10308. case $host_vendor in
  10309. sni)
  10310. shlibpath_overrides_runpath=no
  10311. need_lib_prefix=no
  10312. runpath_var=LD_RUN_PATH
  10313. ;;
  10314. siemens)
  10315. need_lib_prefix=no
  10316. ;;
  10317. motorola)
  10318. need_lib_prefix=no
  10319. need_version=no
  10320. shlibpath_overrides_runpath=no
  10321. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10322. ;;
  10323. esac
  10324. ;;
  10325. sysv4*MP*)
  10326. if test -d /usr/nec; then
  10327. version_type=linux # correct to gnu/linux during the next big refactor
  10328. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10329. soname_spec='$libname$shared_ext.$major'
  10330. shlibpath_var=LD_LIBRARY_PATH
  10331. fi
  10332. ;;
  10333. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10334. version_type=sco
  10335. need_lib_prefix=no
  10336. need_version=no
  10337. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10338. soname_spec='$libname$release$shared_ext$major'
  10339. shlibpath_var=LD_LIBRARY_PATH
  10340. shlibpath_overrides_runpath=yes
  10341. hardcode_into_libs=yes
  10342. if test yes = "$with_gnu_ld"; then
  10343. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10344. else
  10345. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10346. case $host_os in
  10347. sco3.2v5*)
  10348. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10349. ;;
  10350. esac
  10351. fi
  10352. sys_lib_dlsearch_path_spec='/usr/lib'
  10353. ;;
  10354. tpf*)
  10355. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10356. version_type=linux # correct to gnu/linux during the next big refactor
  10357. need_lib_prefix=no
  10358. need_version=no
  10359. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10360. shlibpath_var=LD_LIBRARY_PATH
  10361. shlibpath_overrides_runpath=no
  10362. hardcode_into_libs=yes
  10363. ;;
  10364. uts4*)
  10365. version_type=linux # correct to gnu/linux during the next big refactor
  10366. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10367. soname_spec='$libname$release$shared_ext$major'
  10368. shlibpath_var=LD_LIBRARY_PATH
  10369. ;;
  10370. *)
  10371. dynamic_linker=no
  10372. ;;
  10373. esac
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10375. $as_echo "$dynamic_linker" >&6; }
  10376. test no = "$dynamic_linker" && can_build_shared=no
  10377. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10378. if test yes = "$GCC"; then
  10379. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10380. fi
  10381. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10382. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10383. fi
  10384. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10385. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10386. fi
  10387. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10388. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10389. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10390. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10391. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10392. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10394. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10395. hardcode_action=
  10396. if test -n "$hardcode_libdir_flag_spec" ||
  10397. test -n "$runpath_var" ||
  10398. test yes = "$hardcode_automatic"; then
  10399. # We can hardcode non-existent directories.
  10400. if test no != "$hardcode_direct" &&
  10401. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10402. # have to relink, otherwise we might link with an installed library
  10403. # when we should be linking with a yet-to-be-installed one
  10404. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10405. test no != "$hardcode_minus_L"; then
  10406. # Linking always hardcodes the temporary library directory.
  10407. hardcode_action=relink
  10408. else
  10409. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10410. hardcode_action=immediate
  10411. fi
  10412. else
  10413. # We cannot hardcode anything, or else we can only hardcode existing
  10414. # directories.
  10415. hardcode_action=unsupported
  10416. fi
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10418. $as_echo "$hardcode_action" >&6; }
  10419. if test relink = "$hardcode_action" ||
  10420. test yes = "$inherit_rpath"; then
  10421. # Fast installation is not supported
  10422. enable_fast_install=no
  10423. elif test yes = "$shlibpath_overrides_runpath" ||
  10424. test no = "$enable_shared"; then
  10425. # Fast installation is not necessary
  10426. enable_fast_install=needless
  10427. fi
  10428. if test yes != "$enable_dlopen"; then
  10429. enable_dlopen=unknown
  10430. enable_dlopen_self=unknown
  10431. enable_dlopen_self_static=unknown
  10432. else
  10433. lt_cv_dlopen=no
  10434. lt_cv_dlopen_libs=
  10435. case $host_os in
  10436. beos*)
  10437. lt_cv_dlopen=load_add_on
  10438. lt_cv_dlopen_libs=
  10439. lt_cv_dlopen_self=yes
  10440. ;;
  10441. mingw* | pw32* | cegcc*)
  10442. lt_cv_dlopen=LoadLibrary
  10443. lt_cv_dlopen_libs=
  10444. ;;
  10445. cygwin*)
  10446. lt_cv_dlopen=dlopen
  10447. lt_cv_dlopen_libs=
  10448. ;;
  10449. darwin*)
  10450. # if libdl is installed we need to link against it
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10452. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10453. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. ac_check_lib_save_LIBS=$LIBS
  10457. LIBS="-ldl $LIBS"
  10458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10459. /* end confdefs.h. */
  10460. /* Override any GCC internal prototype to avoid an error.
  10461. Use char because int might match the return type of a GCC
  10462. builtin and then its argument prototype would still apply. */
  10463. #ifdef __cplusplus
  10464. extern "C"
  10465. #endif
  10466. char dlopen ();
  10467. int
  10468. main ()
  10469. {
  10470. return dlopen ();
  10471. ;
  10472. return 0;
  10473. }
  10474. _ACEOF
  10475. if ac_fn_c_try_link "$LINENO"; then :
  10476. ac_cv_lib_dl_dlopen=yes
  10477. else
  10478. ac_cv_lib_dl_dlopen=no
  10479. fi
  10480. rm -f core conftest.err conftest.$ac_objext \
  10481. conftest$ac_exeext conftest.$ac_ext
  10482. LIBS=$ac_check_lib_save_LIBS
  10483. fi
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10485. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10486. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10487. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10488. else
  10489. lt_cv_dlopen=dyld
  10490. lt_cv_dlopen_libs=
  10491. lt_cv_dlopen_self=yes
  10492. fi
  10493. ;;
  10494. tpf*)
  10495. # Don't try to run any link tests for TPF. We know it's impossible
  10496. # because TPF is a cross-compiler, and we know how we open DSOs.
  10497. lt_cv_dlopen=dlopen
  10498. lt_cv_dlopen_libs=
  10499. lt_cv_dlopen_self=no
  10500. ;;
  10501. *)
  10502. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10503. if test "x$ac_cv_func_shl_load" = xyes; then :
  10504. lt_cv_dlopen=shl_load
  10505. else
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10507. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10508. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10509. $as_echo_n "(cached) " >&6
  10510. else
  10511. ac_check_lib_save_LIBS=$LIBS
  10512. LIBS="-ldld $LIBS"
  10513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10514. /* end confdefs.h. */
  10515. /* Override any GCC internal prototype to avoid an error.
  10516. Use char because int might match the return type of a GCC
  10517. builtin and then its argument prototype would still apply. */
  10518. #ifdef __cplusplus
  10519. extern "C"
  10520. #endif
  10521. char shl_load ();
  10522. int
  10523. main ()
  10524. {
  10525. return shl_load ();
  10526. ;
  10527. return 0;
  10528. }
  10529. _ACEOF
  10530. if ac_fn_c_try_link "$LINENO"; then :
  10531. ac_cv_lib_dld_shl_load=yes
  10532. else
  10533. ac_cv_lib_dld_shl_load=no
  10534. fi
  10535. rm -f core conftest.err conftest.$ac_objext \
  10536. conftest$ac_exeext conftest.$ac_ext
  10537. LIBS=$ac_check_lib_save_LIBS
  10538. fi
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10540. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10541. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10542. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10543. else
  10544. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10545. if test "x$ac_cv_func_dlopen" = xyes; then :
  10546. lt_cv_dlopen=dlopen
  10547. else
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10549. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10550. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10551. $as_echo_n "(cached) " >&6
  10552. else
  10553. ac_check_lib_save_LIBS=$LIBS
  10554. LIBS="-ldl $LIBS"
  10555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10556. /* end confdefs.h. */
  10557. /* Override any GCC internal prototype to avoid an error.
  10558. Use char because int might match the return type of a GCC
  10559. builtin and then its argument prototype would still apply. */
  10560. #ifdef __cplusplus
  10561. extern "C"
  10562. #endif
  10563. char dlopen ();
  10564. int
  10565. main ()
  10566. {
  10567. return dlopen ();
  10568. ;
  10569. return 0;
  10570. }
  10571. _ACEOF
  10572. if ac_fn_c_try_link "$LINENO"; then :
  10573. ac_cv_lib_dl_dlopen=yes
  10574. else
  10575. ac_cv_lib_dl_dlopen=no
  10576. fi
  10577. rm -f core conftest.err conftest.$ac_objext \
  10578. conftest$ac_exeext conftest.$ac_ext
  10579. LIBS=$ac_check_lib_save_LIBS
  10580. fi
  10581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10582. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10583. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10584. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10585. else
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10587. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10588. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10589. $as_echo_n "(cached) " >&6
  10590. else
  10591. ac_check_lib_save_LIBS=$LIBS
  10592. LIBS="-lsvld $LIBS"
  10593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10594. /* end confdefs.h. */
  10595. /* Override any GCC internal prototype to avoid an error.
  10596. Use char because int might match the return type of a GCC
  10597. builtin and then its argument prototype would still apply. */
  10598. #ifdef __cplusplus
  10599. extern "C"
  10600. #endif
  10601. char dlopen ();
  10602. int
  10603. main ()
  10604. {
  10605. return dlopen ();
  10606. ;
  10607. return 0;
  10608. }
  10609. _ACEOF
  10610. if ac_fn_c_try_link "$LINENO"; then :
  10611. ac_cv_lib_svld_dlopen=yes
  10612. else
  10613. ac_cv_lib_svld_dlopen=no
  10614. fi
  10615. rm -f core conftest.err conftest.$ac_objext \
  10616. conftest$ac_exeext conftest.$ac_ext
  10617. LIBS=$ac_check_lib_save_LIBS
  10618. fi
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10620. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10621. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10622. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10623. else
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10625. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10626. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. ac_check_lib_save_LIBS=$LIBS
  10630. LIBS="-ldld $LIBS"
  10631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10632. /* end confdefs.h. */
  10633. /* Override any GCC internal prototype to avoid an error.
  10634. Use char because int might match the return type of a GCC
  10635. builtin and then its argument prototype would still apply. */
  10636. #ifdef __cplusplus
  10637. extern "C"
  10638. #endif
  10639. char dld_link ();
  10640. int
  10641. main ()
  10642. {
  10643. return dld_link ();
  10644. ;
  10645. return 0;
  10646. }
  10647. _ACEOF
  10648. if ac_fn_c_try_link "$LINENO"; then :
  10649. ac_cv_lib_dld_dld_link=yes
  10650. else
  10651. ac_cv_lib_dld_dld_link=no
  10652. fi
  10653. rm -f core conftest.err conftest.$ac_objext \
  10654. conftest$ac_exeext conftest.$ac_ext
  10655. LIBS=$ac_check_lib_save_LIBS
  10656. fi
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10658. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10659. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10660. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10661. fi
  10662. fi
  10663. fi
  10664. fi
  10665. fi
  10666. fi
  10667. ;;
  10668. esac
  10669. if test no = "$lt_cv_dlopen"; then
  10670. enable_dlopen=no
  10671. else
  10672. enable_dlopen=yes
  10673. fi
  10674. case $lt_cv_dlopen in
  10675. dlopen)
  10676. save_CPPFLAGS=$CPPFLAGS
  10677. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10678. save_LDFLAGS=$LDFLAGS
  10679. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10680. save_LIBS=$LIBS
  10681. LIBS="$lt_cv_dlopen_libs $LIBS"
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10683. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10684. if ${lt_cv_dlopen_self+:} false; then :
  10685. $as_echo_n "(cached) " >&6
  10686. else
  10687. if test yes = "$cross_compiling"; then :
  10688. lt_cv_dlopen_self=cross
  10689. else
  10690. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10691. lt_status=$lt_dlunknown
  10692. cat > conftest.$ac_ext <<_LT_EOF
  10693. #line $LINENO "configure"
  10694. #include "confdefs.h"
  10695. #if HAVE_DLFCN_H
  10696. #include <dlfcn.h>
  10697. #endif
  10698. #include <stdio.h>
  10699. #ifdef RTLD_GLOBAL
  10700. # define LT_DLGLOBAL RTLD_GLOBAL
  10701. #else
  10702. # ifdef DL_GLOBAL
  10703. # define LT_DLGLOBAL DL_GLOBAL
  10704. # else
  10705. # define LT_DLGLOBAL 0
  10706. # endif
  10707. #endif
  10708. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10709. find out it does not work in some platform. */
  10710. #ifndef LT_DLLAZY_OR_NOW
  10711. # ifdef RTLD_LAZY
  10712. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10713. # else
  10714. # ifdef DL_LAZY
  10715. # define LT_DLLAZY_OR_NOW DL_LAZY
  10716. # else
  10717. # ifdef RTLD_NOW
  10718. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10719. # else
  10720. # ifdef DL_NOW
  10721. # define LT_DLLAZY_OR_NOW DL_NOW
  10722. # else
  10723. # define LT_DLLAZY_OR_NOW 0
  10724. # endif
  10725. # endif
  10726. # endif
  10727. # endif
  10728. #endif
  10729. /* When -fvisibility=hidden is used, assume the code has been annotated
  10730. correspondingly for the symbols needed. */
  10731. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10732. int fnord () __attribute__((visibility("default")));
  10733. #endif
  10734. int fnord () { return 42; }
  10735. int main ()
  10736. {
  10737. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10738. int status = $lt_dlunknown;
  10739. if (self)
  10740. {
  10741. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10742. else
  10743. {
  10744. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10745. else puts (dlerror ());
  10746. }
  10747. /* dlclose (self); */
  10748. }
  10749. else
  10750. puts (dlerror ());
  10751. return status;
  10752. }
  10753. _LT_EOF
  10754. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10755. (eval $ac_link) 2>&5
  10756. ac_status=$?
  10757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10758. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10759. (./conftest; exit; ) >&5 2>/dev/null
  10760. lt_status=$?
  10761. case x$lt_status in
  10762. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10763. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10764. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10765. esac
  10766. else :
  10767. # compilation failed
  10768. lt_cv_dlopen_self=no
  10769. fi
  10770. fi
  10771. rm -fr conftest*
  10772. fi
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10774. $as_echo "$lt_cv_dlopen_self" >&6; }
  10775. if test yes = "$lt_cv_dlopen_self"; then
  10776. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10778. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10779. if ${lt_cv_dlopen_self_static+:} false; then :
  10780. $as_echo_n "(cached) " >&6
  10781. else
  10782. if test yes = "$cross_compiling"; then :
  10783. lt_cv_dlopen_self_static=cross
  10784. else
  10785. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10786. lt_status=$lt_dlunknown
  10787. cat > conftest.$ac_ext <<_LT_EOF
  10788. #line $LINENO "configure"
  10789. #include "confdefs.h"
  10790. #if HAVE_DLFCN_H
  10791. #include <dlfcn.h>
  10792. #endif
  10793. #include <stdio.h>
  10794. #ifdef RTLD_GLOBAL
  10795. # define LT_DLGLOBAL RTLD_GLOBAL
  10796. #else
  10797. # ifdef DL_GLOBAL
  10798. # define LT_DLGLOBAL DL_GLOBAL
  10799. # else
  10800. # define LT_DLGLOBAL 0
  10801. # endif
  10802. #endif
  10803. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10804. find out it does not work in some platform. */
  10805. #ifndef LT_DLLAZY_OR_NOW
  10806. # ifdef RTLD_LAZY
  10807. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10808. # else
  10809. # ifdef DL_LAZY
  10810. # define LT_DLLAZY_OR_NOW DL_LAZY
  10811. # else
  10812. # ifdef RTLD_NOW
  10813. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10814. # else
  10815. # ifdef DL_NOW
  10816. # define LT_DLLAZY_OR_NOW DL_NOW
  10817. # else
  10818. # define LT_DLLAZY_OR_NOW 0
  10819. # endif
  10820. # endif
  10821. # endif
  10822. # endif
  10823. #endif
  10824. /* When -fvisibility=hidden is used, assume the code has been annotated
  10825. correspondingly for the symbols needed. */
  10826. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10827. int fnord () __attribute__((visibility("default")));
  10828. #endif
  10829. int fnord () { return 42; }
  10830. int main ()
  10831. {
  10832. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10833. int status = $lt_dlunknown;
  10834. if (self)
  10835. {
  10836. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10837. else
  10838. {
  10839. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10840. else puts (dlerror ());
  10841. }
  10842. /* dlclose (self); */
  10843. }
  10844. else
  10845. puts (dlerror ());
  10846. return status;
  10847. }
  10848. _LT_EOF
  10849. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10850. (eval $ac_link) 2>&5
  10851. ac_status=$?
  10852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10853. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10854. (./conftest; exit; ) >&5 2>/dev/null
  10855. lt_status=$?
  10856. case x$lt_status in
  10857. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10858. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10859. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10860. esac
  10861. else :
  10862. # compilation failed
  10863. lt_cv_dlopen_self_static=no
  10864. fi
  10865. fi
  10866. rm -fr conftest*
  10867. fi
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10869. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10870. fi
  10871. CPPFLAGS=$save_CPPFLAGS
  10872. LDFLAGS=$save_LDFLAGS
  10873. LIBS=$save_LIBS
  10874. ;;
  10875. esac
  10876. case $lt_cv_dlopen_self in
  10877. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10878. *) enable_dlopen_self=unknown ;;
  10879. esac
  10880. case $lt_cv_dlopen_self_static in
  10881. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10882. *) enable_dlopen_self_static=unknown ;;
  10883. esac
  10884. fi
  10885. striplib=
  10886. old_striplib=
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10888. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10889. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10890. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10891. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10893. $as_echo "yes" >&6; }
  10894. else
  10895. # FIXME - insert some real tests, host_os isn't really good enough
  10896. case $host_os in
  10897. darwin*)
  10898. if test -n "$STRIP"; then
  10899. striplib="$STRIP -x"
  10900. old_striplib="$STRIP -S"
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10902. $as_echo "yes" >&6; }
  10903. else
  10904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10905. $as_echo "no" >&6; }
  10906. fi
  10907. ;;
  10908. *)
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10910. $as_echo "no" >&6; }
  10911. ;;
  10912. esac
  10913. fi
  10914. # Report what library types will actually be built
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10916. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10918. $as_echo "$can_build_shared" >&6; }
  10919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10920. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10921. test no = "$can_build_shared" && enable_shared=no
  10922. # On AIX, shared libraries and static libraries use the same namespace, and
  10923. # are all built from PIC.
  10924. case $host_os in
  10925. aix3*)
  10926. test yes = "$enable_shared" && enable_static=no
  10927. if test -n "$RANLIB"; then
  10928. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10929. postinstall_cmds='$RANLIB $lib'
  10930. fi
  10931. ;;
  10932. aix[4-9]*)
  10933. if test ia64 != "$host_cpu"; then
  10934. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10935. yes,aix,yes) ;; # shared object as lib.so file only
  10936. yes,svr4,*) ;; # shared object as lib.so archive member only
  10937. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10938. esac
  10939. fi
  10940. ;;
  10941. esac
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10943. $as_echo "$enable_shared" >&6; }
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10945. $as_echo_n "checking whether to build static libraries... " >&6; }
  10946. # Make sure either enable_shared or enable_static is yes.
  10947. test yes = "$enable_shared" || enable_static=yes
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10949. $as_echo "$enable_static" >&6; }
  10950. fi
  10951. ac_ext=c
  10952. ac_cpp='$CPP $CPPFLAGS'
  10953. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10954. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10955. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10956. CC=$lt_save_CC
  10957. ac_config_commands="$ac_config_commands libtool"
  10958. # Only expand once:
  10959. ac_ext=c
  10960. ac_cpp='$CPP $CPPFLAGS'
  10961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10962. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10963. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  10965. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  10966. if ${ac_cv_prog_cc_c99+:} false; then :
  10967. $as_echo_n "(cached) " >&6
  10968. else
  10969. ac_cv_prog_cc_c99=no
  10970. ac_save_CC=$CC
  10971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10972. /* end confdefs.h. */
  10973. #include <stdarg.h>
  10974. #include <stdbool.h>
  10975. #include <stdlib.h>
  10976. #include <wchar.h>
  10977. #include <stdio.h>
  10978. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  10979. #define debug(...) fprintf (stderr, __VA_ARGS__)
  10980. #define showlist(...) puts (#__VA_ARGS__)
  10981. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  10982. static void
  10983. test_varargs_macros (void)
  10984. {
  10985. int x = 1234;
  10986. int y = 5678;
  10987. debug ("Flag");
  10988. debug ("X = %d\n", x);
  10989. showlist (The first, second, and third items.);
  10990. report (x>y, "x is %d but y is %d", x, y);
  10991. }
  10992. // Check long long types.
  10993. #define BIG64 18446744073709551615ull
  10994. #define BIG32 4294967295ul
  10995. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  10996. #if !BIG_OK
  10997. your preprocessor is broken;
  10998. #endif
  10999. #if BIG_OK
  11000. #else
  11001. your preprocessor is broken;
  11002. #endif
  11003. static long long int bignum = -9223372036854775807LL;
  11004. static unsigned long long int ubignum = BIG64;
  11005. struct incomplete_array
  11006. {
  11007. int datasize;
  11008. double data[];
  11009. };
  11010. struct named_init {
  11011. int number;
  11012. const wchar_t *name;
  11013. double average;
  11014. };
  11015. typedef const char *ccp;
  11016. static inline int
  11017. test_restrict (ccp restrict text)
  11018. {
  11019. // See if C++-style comments work.
  11020. // Iterate through items via the restricted pointer.
  11021. // Also check for declarations in for loops.
  11022. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  11023. continue;
  11024. return 0;
  11025. }
  11026. // Check varargs and va_copy.
  11027. static void
  11028. test_varargs (const char *format, ...)
  11029. {
  11030. va_list args;
  11031. va_start (args, format);
  11032. va_list args_copy;
  11033. va_copy (args_copy, args);
  11034. const char *str;
  11035. int number;
  11036. float fnumber;
  11037. while (*format)
  11038. {
  11039. switch (*format++)
  11040. {
  11041. case 's': // string
  11042. str = va_arg (args_copy, const char *);
  11043. break;
  11044. case 'd': // int
  11045. number = va_arg (args_copy, int);
  11046. break;
  11047. case 'f': // float
  11048. fnumber = va_arg (args_copy, double);
  11049. break;
  11050. default:
  11051. break;
  11052. }
  11053. }
  11054. va_end (args_copy);
  11055. va_end (args);
  11056. }
  11057. int
  11058. main ()
  11059. {
  11060. // Check bool.
  11061. _Bool success = false;
  11062. // Check restrict.
  11063. if (test_restrict ("String literal") == 0)
  11064. success = true;
  11065. char *restrict newvar = "Another string";
  11066. // Check varargs.
  11067. test_varargs ("s, d' f .", "string", 65, 34.234);
  11068. test_varargs_macros ();
  11069. // Check flexible array members.
  11070. struct incomplete_array *ia =
  11071. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  11072. ia->datasize = 10;
  11073. for (int i = 0; i < ia->datasize; ++i)
  11074. ia->data[i] = i * 1.234;
  11075. // Check named initializers.
  11076. struct named_init ni = {
  11077. .number = 34,
  11078. .name = L"Test wide string",
  11079. .average = 543.34343,
  11080. };
  11081. ni.number = 58;
  11082. int dynamic_array[ni.number];
  11083. dynamic_array[ni.number - 1] = 543;
  11084. // work around unused variable warnings
  11085. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  11086. || dynamic_array[ni.number - 1] != 543);
  11087. ;
  11088. return 0;
  11089. }
  11090. _ACEOF
  11091. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  11092. do
  11093. CC="$ac_save_CC $ac_arg"
  11094. if ac_fn_c_try_compile "$LINENO"; then :
  11095. ac_cv_prog_cc_c99=$ac_arg
  11096. fi
  11097. rm -f core conftest.err conftest.$ac_objext
  11098. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11099. done
  11100. rm -f conftest.$ac_ext
  11101. CC=$ac_save_CC
  11102. fi
  11103. # AC_CACHE_VAL
  11104. case "x$ac_cv_prog_cc_c99" in
  11105. x)
  11106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11107. $as_echo "none needed" >&6; } ;;
  11108. xno)
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11110. $as_echo "unsupported" >&6; } ;;
  11111. *)
  11112. CC="$CC $ac_cv_prog_cc_c99"
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11114. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  11115. esac
  11116. if test "x$ac_cv_prog_cc_c99" != xno; then :
  11117. fi
  11118. if test "$GCC" = yes; then :
  11119. for flag in -Wall -Wextra; do
  11120. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11122. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11123. if eval \${$as_CACHEVAR+:} false; then :
  11124. $as_echo_n "(cached) " >&6
  11125. else
  11126. ax_check_save_flags=$CFLAGS
  11127. CFLAGS="$CFLAGS -Werror $flag"
  11128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11129. /* end confdefs.h. */
  11130. int main(void) { return 0; }
  11131. _ACEOF
  11132. if ac_fn_c_try_compile "$LINENO"; then :
  11133. eval "$as_CACHEVAR=yes"
  11134. else
  11135. eval "$as_CACHEVAR=no"
  11136. fi
  11137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11138. CFLAGS=$ax_check_save_flags
  11139. fi
  11140. eval ac_res=\$$as_CACHEVAR
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11142. $as_echo "$ac_res" >&6; }
  11143. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11144. if ${AM_CFLAGS+:} false; then :
  11145. case " $AM_CFLAGS " in #(
  11146. *" $flag "*) :
  11147. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11148. (: AM_CFLAGS already contains $flag) 2>&5
  11149. ac_status=$?
  11150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11151. test $ac_status = 0; } ;; #(
  11152. *) :
  11153. as_fn_append AM_CFLAGS " $flag"
  11154. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11155. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11156. ac_status=$?
  11157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11158. test $ac_status = 0; }
  11159. ;;
  11160. esac
  11161. else
  11162. AM_CFLAGS=$flag
  11163. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11164. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11165. ac_status=$?
  11166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11167. test $ac_status = 0; }
  11168. fi
  11169. else
  11170. :
  11171. fi
  11172. done
  11173. for flag in -fexceptions; do
  11174. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11176. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11177. if eval \${$as_CACHEVAR+:} false; then :
  11178. $as_echo_n "(cached) " >&6
  11179. else
  11180. ax_check_save_flags=$CFLAGS
  11181. CFLAGS="$CFLAGS -Werror $flag"
  11182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11183. /* end confdefs.h. */
  11184. int main(void) { return 0; }
  11185. _ACEOF
  11186. if ac_fn_c_try_compile "$LINENO"; then :
  11187. eval "$as_CACHEVAR=yes"
  11188. else
  11189. eval "$as_CACHEVAR=no"
  11190. fi
  11191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11192. CFLAGS=$ax_check_save_flags
  11193. fi
  11194. eval ac_res=\$$as_CACHEVAR
  11195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11196. $as_echo "$ac_res" >&6; }
  11197. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11198. if ${AM_CFLAGS+:} false; then :
  11199. case " $AM_CFLAGS " in #(
  11200. *" $flag "*) :
  11201. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11202. (: AM_CFLAGS already contains $flag) 2>&5
  11203. ac_status=$?
  11204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11205. test $ac_status = 0; } ;; #(
  11206. *) :
  11207. as_fn_append AM_CFLAGS " $flag"
  11208. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11209. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11210. ac_status=$?
  11211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11212. test $ac_status = 0; }
  11213. ;;
  11214. esac
  11215. else
  11216. AM_CFLAGS=$flag
  11217. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11218. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11219. ac_status=$?
  11220. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11221. test $ac_status = 0; }
  11222. fi
  11223. else
  11224. :
  11225. fi
  11226. done
  11227. for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
  11228. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11230. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11231. if eval \${$as_CACHEVAR+:} false; then :
  11232. $as_echo_n "(cached) " >&6
  11233. else
  11234. ax_check_save_flags=$CFLAGS
  11235. CFLAGS="$CFLAGS -Werror $flag"
  11236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11237. /* end confdefs.h. */
  11238. int main(void) { return 0; }
  11239. _ACEOF
  11240. if ac_fn_c_try_compile "$LINENO"; then :
  11241. eval "$as_CACHEVAR=yes"
  11242. else
  11243. eval "$as_CACHEVAR=no"
  11244. fi
  11245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11246. CFLAGS=$ax_check_save_flags
  11247. fi
  11248. eval ac_res=\$$as_CACHEVAR
  11249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11250. $as_echo "$ac_res" >&6; }
  11251. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11252. if ${AM_CFLAGS+:} false; then :
  11253. case " $AM_CFLAGS " in #(
  11254. *" $flag "*) :
  11255. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11256. (: AM_CFLAGS already contains $flag) 2>&5
  11257. ac_status=$?
  11258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11259. test $ac_status = 0; } ;; #(
  11260. *) :
  11261. as_fn_append AM_CFLAGS " $flag"
  11262. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11263. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11264. ac_status=$?
  11265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11266. test $ac_status = 0; }
  11267. ;;
  11268. esac
  11269. else
  11270. AM_CFLAGS=$flag
  11271. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11272. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11273. ac_status=$?
  11274. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11275. test $ac_status = 0; }
  11276. fi
  11277. else
  11278. :
  11279. fi
  11280. done
  11281. for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
  11282. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11284. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11285. if eval \${$as_CACHEVAR+:} false; then :
  11286. $as_echo_n "(cached) " >&6
  11287. else
  11288. ax_check_save_flags=$CFLAGS
  11289. CFLAGS="$CFLAGS -Werror $flag"
  11290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11291. /* end confdefs.h. */
  11292. int main(void) { return 0; }
  11293. _ACEOF
  11294. if ac_fn_c_try_compile "$LINENO"; then :
  11295. eval "$as_CACHEVAR=yes"
  11296. else
  11297. eval "$as_CACHEVAR=no"
  11298. fi
  11299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11300. CFLAGS=$ax_check_save_flags
  11301. fi
  11302. eval ac_res=\$$as_CACHEVAR
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11304. $as_echo "$ac_res" >&6; }
  11305. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11306. if ${AM_CFLAGS+:} false; then :
  11307. case " $AM_CFLAGS " in #(
  11308. *" $flag "*) :
  11309. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11310. (: AM_CFLAGS already contains $flag) 2>&5
  11311. ac_status=$?
  11312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11313. test $ac_status = 0; } ;; #(
  11314. *) :
  11315. as_fn_append AM_CFLAGS " $flag"
  11316. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11317. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11318. ac_status=$?
  11319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11320. test $ac_status = 0; }
  11321. ;;
  11322. esac
  11323. else
  11324. AM_CFLAGS=$flag
  11325. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11326. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11327. ac_status=$?
  11328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11329. test $ac_status = 0; }
  11330. fi
  11331. else
  11332. :
  11333. fi
  11334. done
  11335. for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
  11336. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11338. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11339. if eval \${$as_CACHEVAR+:} false; then :
  11340. $as_echo_n "(cached) " >&6
  11341. else
  11342. ax_check_save_flags=$CFLAGS
  11343. CFLAGS="$CFLAGS -Werror $flag"
  11344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11345. /* end confdefs.h. */
  11346. int main(void) { return 0; }
  11347. _ACEOF
  11348. if ac_fn_c_try_compile "$LINENO"; then :
  11349. eval "$as_CACHEVAR=yes"
  11350. else
  11351. eval "$as_CACHEVAR=no"
  11352. fi
  11353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11354. CFLAGS=$ax_check_save_flags
  11355. fi
  11356. eval ac_res=\$$as_CACHEVAR
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11358. $as_echo "$ac_res" >&6; }
  11359. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11360. if ${AM_CFLAGS+:} false; then :
  11361. case " $AM_CFLAGS " in #(
  11362. *" $flag "*) :
  11363. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11364. (: AM_CFLAGS already contains $flag) 2>&5
  11365. ac_status=$?
  11366. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11367. test $ac_status = 0; } ;; #(
  11368. *) :
  11369. as_fn_append AM_CFLAGS " $flag"
  11370. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11371. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11372. ac_status=$?
  11373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11374. test $ac_status = 0; }
  11375. ;;
  11376. esac
  11377. else
  11378. AM_CFLAGS=$flag
  11379. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11380. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11381. ac_status=$?
  11382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11383. test $ac_status = 0; }
  11384. fi
  11385. else
  11386. :
  11387. fi
  11388. done
  11389. for flag in -Wshadow -Wformat=2 -Wmisleading-indentation; do
  11390. as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11392. $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
  11393. if eval \${$as_CACHEVAR+:} false; then :
  11394. $as_echo_n "(cached) " >&6
  11395. else
  11396. ax_check_save_flags=$CFLAGS
  11397. CFLAGS="$CFLAGS -Werror $flag"
  11398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11399. /* end confdefs.h. */
  11400. int main(void) { return 0; }
  11401. _ACEOF
  11402. if ac_fn_c_try_compile "$LINENO"; then :
  11403. eval "$as_CACHEVAR=yes"
  11404. else
  11405. eval "$as_CACHEVAR=no"
  11406. fi
  11407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11408. CFLAGS=$ax_check_save_flags
  11409. fi
  11410. eval ac_res=\$$as_CACHEVAR
  11411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11412. $as_echo "$ac_res" >&6; }
  11413. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  11414. if ${AM_CFLAGS+:} false; then :
  11415. case " $AM_CFLAGS " in #(
  11416. *" $flag "*) :
  11417. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11418. (: AM_CFLAGS already contains $flag) 2>&5
  11419. ac_status=$?
  11420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11421. test $ac_status = 0; } ;; #(
  11422. *) :
  11423. as_fn_append AM_CFLAGS " $flag"
  11424. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11425. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11426. ac_status=$?
  11427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11428. test $ac_status = 0; }
  11429. ;;
  11430. esac
  11431. else
  11432. AM_CFLAGS=$flag
  11433. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11434. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11435. ac_status=$?
  11436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11437. test $ac_status = 0; }
  11438. fi
  11439. else
  11440. :
  11441. fi
  11442. done
  11443. fi
  11444. ac_ext=cpp
  11445. ac_cpp='$CXXCPP $CPPFLAGS'
  11446. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11447. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11448. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11449. ac_ext=cpp
  11450. ac_cpp='$CXXCPP $CPPFLAGS'
  11451. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11452. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11453. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11454. if test -z "$CXX"; then
  11455. if test -n "$CCC"; then
  11456. CXX=$CCC
  11457. else
  11458. if test -n "$ac_tool_prefix"; then
  11459. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11460. do
  11461. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11462. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11464. $as_echo_n "checking for $ac_word... " >&6; }
  11465. if ${ac_cv_prog_CXX+:} false; then :
  11466. $as_echo_n "(cached) " >&6
  11467. else
  11468. if test -n "$CXX"; then
  11469. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11470. else
  11471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11472. for as_dir in $PATH
  11473. do
  11474. IFS=$as_save_IFS
  11475. test -z "$as_dir" && as_dir=.
  11476. for ac_exec_ext in '' $ac_executable_extensions; do
  11477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11478. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11480. break 2
  11481. fi
  11482. done
  11483. done
  11484. IFS=$as_save_IFS
  11485. fi
  11486. fi
  11487. CXX=$ac_cv_prog_CXX
  11488. if test -n "$CXX"; then
  11489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  11490. $as_echo "$CXX" >&6; }
  11491. else
  11492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11493. $as_echo "no" >&6; }
  11494. fi
  11495. test -n "$CXX" && break
  11496. done
  11497. fi
  11498. if test -z "$CXX"; then
  11499. ac_ct_CXX=$CXX
  11500. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  11501. do
  11502. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11503. set dummy $ac_prog; ac_word=$2
  11504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11505. $as_echo_n "checking for $ac_word... " >&6; }
  11506. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  11507. $as_echo_n "(cached) " >&6
  11508. else
  11509. if test -n "$ac_ct_CXX"; then
  11510. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  11511. else
  11512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11513. for as_dir in $PATH
  11514. do
  11515. IFS=$as_save_IFS
  11516. test -z "$as_dir" && as_dir=.
  11517. for ac_exec_ext in '' $ac_executable_extensions; do
  11518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11519. ac_cv_prog_ac_ct_CXX="$ac_prog"
  11520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11521. break 2
  11522. fi
  11523. done
  11524. done
  11525. IFS=$as_save_IFS
  11526. fi
  11527. fi
  11528. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  11529. if test -n "$ac_ct_CXX"; then
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  11531. $as_echo "$ac_ct_CXX" >&6; }
  11532. else
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11534. $as_echo "no" >&6; }
  11535. fi
  11536. test -n "$ac_ct_CXX" && break
  11537. done
  11538. if test "x$ac_ct_CXX" = x; then
  11539. CXX="g++"
  11540. else
  11541. case $cross_compiling:$ac_tool_warned in
  11542. yes:)
  11543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11545. ac_tool_warned=yes ;;
  11546. esac
  11547. CXX=$ac_ct_CXX
  11548. fi
  11549. fi
  11550. fi
  11551. fi
  11552. # Provide some information about the compiler.
  11553. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  11554. set X $ac_compile
  11555. ac_compiler=$2
  11556. for ac_option in --version -v -V -qversion; do
  11557. { { ac_try="$ac_compiler $ac_option >&5"
  11558. case "(($ac_try" in
  11559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11560. *) ac_try_echo=$ac_try;;
  11561. esac
  11562. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11563. $as_echo "$ac_try_echo"; } >&5
  11564. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11565. ac_status=$?
  11566. if test -s conftest.err; then
  11567. sed '10a\
  11568. ... rest of stderr output deleted ...
  11569. 10q' conftest.err >conftest.er1
  11570. cat conftest.er1 >&5
  11571. fi
  11572. rm -f conftest.er1 conftest.err
  11573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11574. test $ac_status = 0; }
  11575. done
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  11577. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  11578. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  11579. $as_echo_n "(cached) " >&6
  11580. else
  11581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11582. /* end confdefs.h. */
  11583. int
  11584. main ()
  11585. {
  11586. #ifndef __GNUC__
  11587. choke me
  11588. #endif
  11589. ;
  11590. return 0;
  11591. }
  11592. _ACEOF
  11593. if ac_fn_cxx_try_compile "$LINENO"; then :
  11594. ac_compiler_gnu=yes
  11595. else
  11596. ac_compiler_gnu=no
  11597. fi
  11598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11599. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  11600. fi
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  11602. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  11603. if test $ac_compiler_gnu = yes; then
  11604. GXX=yes
  11605. else
  11606. GXX=
  11607. fi
  11608. ac_test_CXXFLAGS=${CXXFLAGS+set}
  11609. ac_save_CXXFLAGS=$CXXFLAGS
  11610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  11611. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  11612. if ${ac_cv_prog_cxx_g+:} false; then :
  11613. $as_echo_n "(cached) " >&6
  11614. else
  11615. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  11616. ac_cxx_werror_flag=yes
  11617. ac_cv_prog_cxx_g=no
  11618. CXXFLAGS="-g"
  11619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11620. /* end confdefs.h. */
  11621. int
  11622. main ()
  11623. {
  11624. ;
  11625. return 0;
  11626. }
  11627. _ACEOF
  11628. if ac_fn_cxx_try_compile "$LINENO"; then :
  11629. ac_cv_prog_cxx_g=yes
  11630. else
  11631. CXXFLAGS=""
  11632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11633. /* end confdefs.h. */
  11634. int
  11635. main ()
  11636. {
  11637. ;
  11638. return 0;
  11639. }
  11640. _ACEOF
  11641. if ac_fn_cxx_try_compile "$LINENO"; then :
  11642. else
  11643. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11644. CXXFLAGS="-g"
  11645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11646. /* end confdefs.h. */
  11647. int
  11648. main ()
  11649. {
  11650. ;
  11651. return 0;
  11652. }
  11653. _ACEOF
  11654. if ac_fn_cxx_try_compile "$LINENO"; then :
  11655. ac_cv_prog_cxx_g=yes
  11656. fi
  11657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11658. fi
  11659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11660. fi
  11661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11662. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  11663. fi
  11664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  11665. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  11666. if test "$ac_test_CXXFLAGS" = set; then
  11667. CXXFLAGS=$ac_save_CXXFLAGS
  11668. elif test $ac_cv_prog_cxx_g = yes; then
  11669. if test "$GXX" = yes; then
  11670. CXXFLAGS="-g -O2"
  11671. else
  11672. CXXFLAGS="-g"
  11673. fi
  11674. else
  11675. if test "$GXX" = yes; then
  11676. CXXFLAGS="-O2"
  11677. else
  11678. CXXFLAGS=
  11679. fi
  11680. fi
  11681. ac_ext=cpp
  11682. ac_cpp='$CXXCPP $CPPFLAGS'
  11683. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11684. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11685. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11686. depcc="$CXX" am_compiler_list=
  11687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11688. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11689. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  11690. $as_echo_n "(cached) " >&6
  11691. else
  11692. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11693. # We make a subdir and do the tests there. Otherwise we can end up
  11694. # making bogus files that we don't know about and never remove. For
  11695. # instance it was reported that on HP-UX the gcc test will end up
  11696. # making a dummy file named 'D' -- because '-MD' means "put the output
  11697. # in D".
  11698. rm -rf conftest.dir
  11699. mkdir conftest.dir
  11700. # Copy depcomp to subdir because otherwise we won't find it if we're
  11701. # using a relative directory.
  11702. cp "$am_depcomp" conftest.dir
  11703. cd conftest.dir
  11704. # We will build objects and dependencies in a subdirectory because
  11705. # it helps to detect inapplicable dependency modes. For instance
  11706. # both Tru64's cc and ICC support -MD to output dependencies as a
  11707. # side effect of compilation, but ICC will put the dependencies in
  11708. # the current directory while Tru64 will put them in the object
  11709. # directory.
  11710. mkdir sub
  11711. am_cv_CXX_dependencies_compiler_type=none
  11712. if test "$am_compiler_list" = ""; then
  11713. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11714. fi
  11715. am__universal=false
  11716. case " $depcc " in #(
  11717. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11718. esac
  11719. for depmode in $am_compiler_list; do
  11720. # Setup a source with many dependencies, because some compilers
  11721. # like to wrap large dependency lists on column 80 (with \), and
  11722. # we should not choose a depcomp mode which is confused by this.
  11723. #
  11724. # We need to recreate these files for each test, as the compiler may
  11725. # overwrite some of them when testing with obscure command lines.
  11726. # This happens at least with the AIX C compiler.
  11727. : > sub/conftest.c
  11728. for i in 1 2 3 4 5 6; do
  11729. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11730. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11731. # Solaris 10 /bin/sh.
  11732. echo '/* dummy */' > sub/conftst$i.h
  11733. done
  11734. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11735. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11736. # mode. It turns out that the SunPro C++ compiler does not properly
  11737. # handle '-M -o', and we need to detect this. Also, some Intel
  11738. # versions had trouble with output in subdirs.
  11739. am__obj=sub/conftest.${OBJEXT-o}
  11740. am__minus_obj="-o $am__obj"
  11741. case $depmode in
  11742. gcc)
  11743. # This depmode causes a compiler race in universal mode.
  11744. test "$am__universal" = false || continue
  11745. ;;
  11746. nosideeffect)
  11747. # After this tag, mechanisms are not by side-effect, so they'll
  11748. # only be used when explicitly requested.
  11749. if test "x$enable_dependency_tracking" = xyes; then
  11750. continue
  11751. else
  11752. break
  11753. fi
  11754. ;;
  11755. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11756. # This compiler won't grok '-c -o', but also, the minuso test has
  11757. # not run yet. These depmodes are late enough in the game, and
  11758. # so weak that their functioning should not be impacted.
  11759. am__obj=conftest.${OBJEXT-o}
  11760. am__minus_obj=
  11761. ;;
  11762. none) break ;;
  11763. esac
  11764. if depmode=$depmode \
  11765. source=sub/conftest.c object=$am__obj \
  11766. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11767. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11768. >/dev/null 2>conftest.err &&
  11769. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11770. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11771. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11772. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11773. # icc doesn't choke on unknown options, it will just issue warnings
  11774. # or remarks (even with -Werror). So we grep stderr for any message
  11775. # that says an option was ignored or not supported.
  11776. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11777. # icc: Command line warning: ignoring option '-M'; no argument required
  11778. # The diagnosis changed in icc 8.0:
  11779. # icc: Command line remark: option '-MP' not supported
  11780. if (grep 'ignoring option' conftest.err ||
  11781. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11782. am_cv_CXX_dependencies_compiler_type=$depmode
  11783. break
  11784. fi
  11785. fi
  11786. done
  11787. cd ..
  11788. rm -rf conftest.dir
  11789. else
  11790. am_cv_CXX_dependencies_compiler_type=none
  11791. fi
  11792. fi
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  11794. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  11795. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  11796. if
  11797. test "x$enable_dependency_tracking" != xno \
  11798. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  11799. am__fastdepCXX_TRUE=
  11800. am__fastdepCXX_FALSE='#'
  11801. else
  11802. am__fastdepCXX_TRUE='#'
  11803. am__fastdepCXX_FALSE=
  11804. fi
  11805. func_stripname_cnf ()
  11806. {
  11807. case $2 in
  11808. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  11809. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  11810. esac
  11811. } # func_stripname_cnf
  11812. if test -n "$CXX" && ( test no != "$CXX" &&
  11813. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11814. (test g++ != "$CXX"))); then
  11815. ac_ext=cpp
  11816. ac_cpp='$CXXCPP $CPPFLAGS'
  11817. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11818. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11819. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11821. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11822. if test -z "$CXXCPP"; then
  11823. if ${ac_cv_prog_CXXCPP+:} false; then :
  11824. $as_echo_n "(cached) " >&6
  11825. else
  11826. # Double quotes because CXXCPP needs to be expanded
  11827. for CXXCPP in "$CXX -E" "/lib/cpp"
  11828. do
  11829. ac_preproc_ok=false
  11830. for ac_cxx_preproc_warn_flag in '' yes
  11831. do
  11832. # Use a header file that comes with gcc, so configuring glibc
  11833. # with a fresh cross-compiler works.
  11834. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11835. # <limits.h> exists even on freestanding compilers.
  11836. # On the NeXT, cc -E runs the code through the compiler's parser,
  11837. # not just through cpp. "Syntax error" is here to catch this case.
  11838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11839. /* end confdefs.h. */
  11840. #ifdef __STDC__
  11841. # include <limits.h>
  11842. #else
  11843. # include <assert.h>
  11844. #endif
  11845. Syntax error
  11846. _ACEOF
  11847. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11848. else
  11849. # Broken: fails on valid input.
  11850. continue
  11851. fi
  11852. rm -f conftest.err conftest.i conftest.$ac_ext
  11853. # OK, works on sane cases. Now check whether nonexistent headers
  11854. # can be detected and how.
  11855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11856. /* end confdefs.h. */
  11857. #include <ac_nonexistent.h>
  11858. _ACEOF
  11859. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11860. # Broken: success on invalid input.
  11861. continue
  11862. else
  11863. # Passes both tests.
  11864. ac_preproc_ok=:
  11865. break
  11866. fi
  11867. rm -f conftest.err conftest.i conftest.$ac_ext
  11868. done
  11869. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11870. rm -f conftest.i conftest.err conftest.$ac_ext
  11871. if $ac_preproc_ok; then :
  11872. break
  11873. fi
  11874. done
  11875. ac_cv_prog_CXXCPP=$CXXCPP
  11876. fi
  11877. CXXCPP=$ac_cv_prog_CXXCPP
  11878. else
  11879. ac_cv_prog_CXXCPP=$CXXCPP
  11880. fi
  11881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11882. $as_echo "$CXXCPP" >&6; }
  11883. ac_preproc_ok=false
  11884. for ac_cxx_preproc_warn_flag in '' yes
  11885. do
  11886. # Use a header file that comes with gcc, so configuring glibc
  11887. # with a fresh cross-compiler works.
  11888. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11889. # <limits.h> exists even on freestanding compilers.
  11890. # On the NeXT, cc -E runs the code through the compiler's parser,
  11891. # not just through cpp. "Syntax error" is here to catch this case.
  11892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11893. /* end confdefs.h. */
  11894. #ifdef __STDC__
  11895. # include <limits.h>
  11896. #else
  11897. # include <assert.h>
  11898. #endif
  11899. Syntax error
  11900. _ACEOF
  11901. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11902. else
  11903. # Broken: fails on valid input.
  11904. continue
  11905. fi
  11906. rm -f conftest.err conftest.i conftest.$ac_ext
  11907. # OK, works on sane cases. Now check whether nonexistent headers
  11908. # can be detected and how.
  11909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11910. /* end confdefs.h. */
  11911. #include <ac_nonexistent.h>
  11912. _ACEOF
  11913. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11914. # Broken: success on invalid input.
  11915. continue
  11916. else
  11917. # Passes both tests.
  11918. ac_preproc_ok=:
  11919. break
  11920. fi
  11921. rm -f conftest.err conftest.i conftest.$ac_ext
  11922. done
  11923. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11924. rm -f conftest.i conftest.err conftest.$ac_ext
  11925. if $ac_preproc_ok; then :
  11926. else
  11927. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11928. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11929. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11930. See \`config.log' for more details" "$LINENO" 5; }
  11931. fi
  11932. ac_ext=cpp
  11933. ac_cpp='$CXXCPP $CPPFLAGS'
  11934. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11935. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11936. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11937. else
  11938. _lt_caught_CXX_error=yes
  11939. fi
  11940. ac_ext=cpp
  11941. ac_cpp='$CXXCPP $CPPFLAGS'
  11942. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11943. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11944. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11945. archive_cmds_need_lc_CXX=no
  11946. allow_undefined_flag_CXX=
  11947. always_export_symbols_CXX=no
  11948. archive_expsym_cmds_CXX=
  11949. compiler_needs_object_CXX=no
  11950. export_dynamic_flag_spec_CXX=
  11951. hardcode_direct_CXX=no
  11952. hardcode_direct_absolute_CXX=no
  11953. hardcode_libdir_flag_spec_CXX=
  11954. hardcode_libdir_separator_CXX=
  11955. hardcode_minus_L_CXX=no
  11956. hardcode_shlibpath_var_CXX=unsupported
  11957. hardcode_automatic_CXX=no
  11958. inherit_rpath_CXX=no
  11959. module_cmds_CXX=
  11960. module_expsym_cmds_CXX=
  11961. link_all_deplibs_CXX=unknown
  11962. old_archive_cmds_CXX=$old_archive_cmds
  11963. reload_flag_CXX=$reload_flag
  11964. reload_cmds_CXX=$reload_cmds
  11965. no_undefined_flag_CXX=
  11966. whole_archive_flag_spec_CXX=
  11967. enable_shared_with_static_runtimes_CXX=no
  11968. # Source file extension for C++ test sources.
  11969. ac_ext=cpp
  11970. # Object file extension for compiled C++ test sources.
  11971. objext=o
  11972. objext_CXX=$objext
  11973. # No sense in running all these tests if we already determined that
  11974. # the CXX compiler isn't working. Some variables (like enable_shared)
  11975. # are currently assumed to apply to all compilers on this platform,
  11976. # and will be corrupted by setting them based on a non-working compiler.
  11977. if test yes != "$_lt_caught_CXX_error"; then
  11978. # Code to be used in simple compile tests
  11979. lt_simple_compile_test_code="int some_variable = 0;"
  11980. # Code to be used in simple link tests
  11981. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11982. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11983. # If no C compiler was specified, use CC.
  11984. LTCC=${LTCC-"$CC"}
  11985. # If no C compiler flags were specified, use CFLAGS.
  11986. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11987. # Allow CC to be a program name with arguments.
  11988. compiler=$CC
  11989. # save warnings/boilerplate of simple test code
  11990. ac_outfile=conftest.$ac_objext
  11991. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11992. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11993. _lt_compiler_boilerplate=`cat conftest.err`
  11994. $RM conftest*
  11995. ac_outfile=conftest.$ac_objext
  11996. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11997. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11998. _lt_linker_boilerplate=`cat conftest.err`
  11999. $RM -r conftest*
  12000. # Allow CC to be a program name with arguments.
  12001. lt_save_CC=$CC
  12002. lt_save_CFLAGS=$CFLAGS
  12003. lt_save_LD=$LD
  12004. lt_save_GCC=$GCC
  12005. GCC=$GXX
  12006. lt_save_with_gnu_ld=$with_gnu_ld
  12007. lt_save_path_LD=$lt_cv_path_LD
  12008. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12009. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12010. else
  12011. $as_unset lt_cv_prog_gnu_ld
  12012. fi
  12013. if test -n "${lt_cv_path_LDCXX+set}"; then
  12014. lt_cv_path_LD=$lt_cv_path_LDCXX
  12015. else
  12016. $as_unset lt_cv_path_LD
  12017. fi
  12018. test -z "${LDCXX+set}" || LD=$LDCXX
  12019. CC=${CXX-"c++"}
  12020. CFLAGS=$CXXFLAGS
  12021. compiler=$CC
  12022. compiler_CXX=$CC
  12023. func_cc_basename $compiler
  12024. cc_basename=$func_cc_basename_result
  12025. if test -n "$compiler"; then
  12026. # We don't want -fno-exception when compiling C++ code, so set the
  12027. # no_builtin_flag separately
  12028. if test yes = "$GXX"; then
  12029. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12030. else
  12031. lt_prog_compiler_no_builtin_flag_CXX=
  12032. fi
  12033. if test yes = "$GXX"; then
  12034. # Set up default GNU C++ configuration
  12035. # Check whether --with-gnu-ld was given.
  12036. if test "${with_gnu_ld+set}" = set; then :
  12037. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12038. else
  12039. with_gnu_ld=no
  12040. fi
  12041. ac_prog=ld
  12042. if test yes = "$GCC"; then
  12043. # Check if gcc -print-prog-name=ld gives a path.
  12044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12045. $as_echo_n "checking for ld used by $CC... " >&6; }
  12046. case $host in
  12047. *-*-mingw*)
  12048. # gcc leaves a trailing carriage return, which upsets mingw
  12049. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12050. *)
  12051. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12052. esac
  12053. case $ac_prog in
  12054. # Accept absolute paths.
  12055. [\\/]* | ?:[\\/]*)
  12056. re_direlt='/[^/][^/]*/\.\./'
  12057. # Canonicalize the pathname of ld
  12058. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12059. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12060. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12061. done
  12062. test -z "$LD" && LD=$ac_prog
  12063. ;;
  12064. "")
  12065. # If it fails, then pretend we aren't using GCC.
  12066. ac_prog=ld
  12067. ;;
  12068. *)
  12069. # If it is relative, then search for the first ld in PATH.
  12070. with_gnu_ld=unknown
  12071. ;;
  12072. esac
  12073. elif test yes = "$with_gnu_ld"; then
  12074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12075. $as_echo_n "checking for GNU ld... " >&6; }
  12076. else
  12077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12078. $as_echo_n "checking for non-GNU ld... " >&6; }
  12079. fi
  12080. if ${lt_cv_path_LD+:} false; then :
  12081. $as_echo_n "(cached) " >&6
  12082. else
  12083. if test -z "$LD"; then
  12084. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12085. for ac_dir in $PATH; do
  12086. IFS=$lt_save_ifs
  12087. test -z "$ac_dir" && ac_dir=.
  12088. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12089. lt_cv_path_LD=$ac_dir/$ac_prog
  12090. # Check to see if the program is GNU ld. I'd rather use --version,
  12091. # but apparently some variants of GNU ld only accept -v.
  12092. # Break only if it was the GNU/non-GNU ld that we prefer.
  12093. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12094. *GNU* | *'with BFD'*)
  12095. test no != "$with_gnu_ld" && break
  12096. ;;
  12097. *)
  12098. test yes != "$with_gnu_ld" && break
  12099. ;;
  12100. esac
  12101. fi
  12102. done
  12103. IFS=$lt_save_ifs
  12104. else
  12105. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12106. fi
  12107. fi
  12108. LD=$lt_cv_path_LD
  12109. if test -n "$LD"; then
  12110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12111. $as_echo "$LD" >&6; }
  12112. else
  12113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12114. $as_echo "no" >&6; }
  12115. fi
  12116. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12118. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12119. if ${lt_cv_prog_gnu_ld+:} false; then :
  12120. $as_echo_n "(cached) " >&6
  12121. else
  12122. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12123. case `$LD -v 2>&1 </dev/null` in
  12124. *GNU* | *'with BFD'*)
  12125. lt_cv_prog_gnu_ld=yes
  12126. ;;
  12127. *)
  12128. lt_cv_prog_gnu_ld=no
  12129. ;;
  12130. esac
  12131. fi
  12132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12133. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12134. with_gnu_ld=$lt_cv_prog_gnu_ld
  12135. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12136. # archiving commands below assume that GNU ld is being used.
  12137. if test yes = "$with_gnu_ld"; then
  12138. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12139. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12140. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12141. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12142. # If archive_cmds runs LD, not CC, wlarc should be empty
  12143. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12144. # investigate it a little bit more. (MM)
  12145. wlarc='$wl'
  12146. # ancient GNU ld didn't support --whole-archive et. al.
  12147. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12148. $GREP 'no-whole-archive' > /dev/null; then
  12149. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12150. else
  12151. whole_archive_flag_spec_CXX=
  12152. fi
  12153. else
  12154. with_gnu_ld=no
  12155. wlarc=
  12156. # A generic and very simple default shared library creation
  12157. # command for GNU C++ for the case where it uses the native
  12158. # linker, instead of GNU ld. If possible, this setting should
  12159. # overridden to take advantage of the native linker features on
  12160. # the platform it is being used on.
  12161. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12162. fi
  12163. # Commands to make compiler produce verbose output that lists
  12164. # what "hidden" libraries, object files and flags are used when
  12165. # linking a shared library.
  12166. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12167. else
  12168. GXX=no
  12169. with_gnu_ld=no
  12170. wlarc=
  12171. fi
  12172. # PORTME: fill in a description of your system's C++ link characteristics
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12174. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12175. ld_shlibs_CXX=yes
  12176. case $host_os in
  12177. aix3*)
  12178. # FIXME: insert proper C++ library support
  12179. ld_shlibs_CXX=no
  12180. ;;
  12181. aix[4-9]*)
  12182. if test ia64 = "$host_cpu"; then
  12183. # On IA64, the linker does run time linking by default, so we don't
  12184. # have to do anything special.
  12185. aix_use_runtimelinking=no
  12186. exp_sym_flag='-Bexport'
  12187. no_entry_flag=
  12188. else
  12189. aix_use_runtimelinking=no
  12190. # Test if we are trying to use run time linking or normal
  12191. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12192. # have runtime linking enabled, and use it for executables.
  12193. # For shared libraries, we enable/disable runtime linking
  12194. # depending on the kind of the shared library created -
  12195. # when "with_aix_soname,aix_use_runtimelinking" is:
  12196. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12197. # "aix,yes" lib.so shared, rtl:yes, for executables
  12198. # lib.a static archive
  12199. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12200. # lib.a(lib.so.V) shared, rtl:no, for executables
  12201. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12202. # lib.a(lib.so.V) shared, rtl:no
  12203. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12204. # lib.a static archive
  12205. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12206. for ld_flag in $LDFLAGS; do
  12207. case $ld_flag in
  12208. *-brtl*)
  12209. aix_use_runtimelinking=yes
  12210. break
  12211. ;;
  12212. esac
  12213. done
  12214. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12215. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12216. # so we don't have lib.a shared libs to link our executables.
  12217. # We have to force runtime linking in this case.
  12218. aix_use_runtimelinking=yes
  12219. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12220. fi
  12221. ;;
  12222. esac
  12223. exp_sym_flag='-bexport'
  12224. no_entry_flag='-bnoentry'
  12225. fi
  12226. # When large executables or shared objects are built, AIX ld can
  12227. # have problems creating the table of contents. If linking a library
  12228. # or program results in "error TOC overflow" add -mminimal-toc to
  12229. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12230. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12231. archive_cmds_CXX=''
  12232. hardcode_direct_CXX=yes
  12233. hardcode_direct_absolute_CXX=yes
  12234. hardcode_libdir_separator_CXX=':'
  12235. link_all_deplibs_CXX=yes
  12236. file_list_spec_CXX='$wl-f,'
  12237. case $with_aix_soname,$aix_use_runtimelinking in
  12238. aix,*) ;; # no import file
  12239. svr4,* | *,yes) # use import file
  12240. # The Import File defines what to hardcode.
  12241. hardcode_direct_CXX=no
  12242. hardcode_direct_absolute_CXX=no
  12243. ;;
  12244. esac
  12245. if test yes = "$GXX"; then
  12246. case $host_os in aix4.[012]|aix4.[012].*)
  12247. # We only want to do this on AIX 4.2 and lower, the check
  12248. # below for broken collect2 doesn't work under 4.3+
  12249. collect2name=`$CC -print-prog-name=collect2`
  12250. if test -f "$collect2name" &&
  12251. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12252. then
  12253. # We have reworked collect2
  12254. :
  12255. else
  12256. # We have old collect2
  12257. hardcode_direct_CXX=unsupported
  12258. # It fails to find uninstalled libraries when the uninstalled
  12259. # path is not listed in the libpath. Setting hardcode_minus_L
  12260. # to unsupported forces relinking
  12261. hardcode_minus_L_CXX=yes
  12262. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12263. hardcode_libdir_separator_CXX=
  12264. fi
  12265. esac
  12266. shared_flag='-shared'
  12267. if test yes = "$aix_use_runtimelinking"; then
  12268. shared_flag=$shared_flag' $wl-G'
  12269. fi
  12270. # Need to ensure runtime linking is disabled for the traditional
  12271. # shared library, or the linker may eventually find shared libraries
  12272. # /with/ Import File - we do not want to mix them.
  12273. shared_flag_aix='-shared'
  12274. shared_flag_svr4='-shared $wl-G'
  12275. else
  12276. # not using gcc
  12277. if test ia64 = "$host_cpu"; then
  12278. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12279. # chokes on -Wl,-G. The following line is correct:
  12280. shared_flag='-G'
  12281. else
  12282. if test yes = "$aix_use_runtimelinking"; then
  12283. shared_flag='$wl-G'
  12284. else
  12285. shared_flag='$wl-bM:SRE'
  12286. fi
  12287. shared_flag_aix='$wl-bM:SRE'
  12288. shared_flag_svr4='$wl-G'
  12289. fi
  12290. fi
  12291. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12292. # It seems that -bexpall does not export symbols beginning with
  12293. # underscore (_), so it is better to generate a list of symbols to
  12294. # export.
  12295. always_export_symbols_CXX=yes
  12296. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12297. # Warning - without using the other runtime loading flags (-brtl),
  12298. # -berok will link without error, but may produce a broken library.
  12299. # The "-G" linker flag allows undefined symbols.
  12300. no_undefined_flag_CXX='-bernotok'
  12301. # Determine the default libpath from the value encoded in an empty
  12302. # executable.
  12303. if test set = "${lt_cv_aix_libpath+set}"; then
  12304. aix_libpath=$lt_cv_aix_libpath
  12305. else
  12306. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12307. $as_echo_n "(cached) " >&6
  12308. else
  12309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12310. /* end confdefs.h. */
  12311. int
  12312. main ()
  12313. {
  12314. ;
  12315. return 0;
  12316. }
  12317. _ACEOF
  12318. if ac_fn_cxx_try_link "$LINENO"; then :
  12319. lt_aix_libpath_sed='
  12320. /Import File Strings/,/^$/ {
  12321. /^0/ {
  12322. s/^0 *\([^ ]*\) *$/\1/
  12323. p
  12324. }
  12325. }'
  12326. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12327. # Check for a 64-bit object if we didn't find anything.
  12328. if test -z "$lt_cv_aix_libpath__CXX"; then
  12329. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12330. fi
  12331. fi
  12332. rm -f core conftest.err conftest.$ac_objext \
  12333. conftest$ac_exeext conftest.$ac_ext
  12334. if test -z "$lt_cv_aix_libpath__CXX"; then
  12335. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12336. fi
  12337. fi
  12338. aix_libpath=$lt_cv_aix_libpath__CXX
  12339. fi
  12340. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12341. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12342. else
  12343. if test ia64 = "$host_cpu"; then
  12344. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12345. allow_undefined_flag_CXX="-z nodefs"
  12346. archive_expsym_cmds_CXX="\$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"
  12347. else
  12348. # Determine the default libpath from the value encoded in an
  12349. # empty executable.
  12350. if test set = "${lt_cv_aix_libpath+set}"; then
  12351. aix_libpath=$lt_cv_aix_libpath
  12352. else
  12353. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12354. $as_echo_n "(cached) " >&6
  12355. else
  12356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12357. /* end confdefs.h. */
  12358. int
  12359. main ()
  12360. {
  12361. ;
  12362. return 0;
  12363. }
  12364. _ACEOF
  12365. if ac_fn_cxx_try_link "$LINENO"; then :
  12366. lt_aix_libpath_sed='
  12367. /Import File Strings/,/^$/ {
  12368. /^0/ {
  12369. s/^0 *\([^ ]*\) *$/\1/
  12370. p
  12371. }
  12372. }'
  12373. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12374. # Check for a 64-bit object if we didn't find anything.
  12375. if test -z "$lt_cv_aix_libpath__CXX"; then
  12376. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12377. fi
  12378. fi
  12379. rm -f core conftest.err conftest.$ac_objext \
  12380. conftest$ac_exeext conftest.$ac_ext
  12381. if test -z "$lt_cv_aix_libpath__CXX"; then
  12382. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12383. fi
  12384. fi
  12385. aix_libpath=$lt_cv_aix_libpath__CXX
  12386. fi
  12387. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12388. # Warning - without using the other run time loading flags,
  12389. # -berok will link without error, but may produce a broken library.
  12390. no_undefined_flag_CXX=' $wl-bernotok'
  12391. allow_undefined_flag_CXX=' $wl-berok'
  12392. if test yes = "$with_gnu_ld"; then
  12393. # We only use this code for GNU lds that support --whole-archive.
  12394. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12395. else
  12396. # Exported symbols can be pulled into shared objects from archives
  12397. whole_archive_flag_spec_CXX='$convenience'
  12398. fi
  12399. archive_cmds_need_lc_CXX=yes
  12400. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12401. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12402. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12403. if test svr4 != "$with_aix_soname"; then
  12404. # This is similar to how AIX traditionally builds its shared
  12405. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12406. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12407. fi
  12408. if test aix != "$with_aix_soname"; then
  12409. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12410. else
  12411. # used by -dlpreopen to get the symbols
  12412. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12413. fi
  12414. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12415. fi
  12416. fi
  12417. ;;
  12418. beos*)
  12419. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12420. allow_undefined_flag_CXX=unsupported
  12421. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12422. # support --undefined. This deserves some investigation. FIXME
  12423. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12424. else
  12425. ld_shlibs_CXX=no
  12426. fi
  12427. ;;
  12428. chorus*)
  12429. case $cc_basename in
  12430. *)
  12431. # FIXME: insert proper C++ library support
  12432. ld_shlibs_CXX=no
  12433. ;;
  12434. esac
  12435. ;;
  12436. cygwin* | mingw* | pw32* | cegcc*)
  12437. case $GXX,$cc_basename in
  12438. ,cl* | no,cl*)
  12439. # Native MSVC
  12440. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12441. # no search path for DLLs.
  12442. hardcode_libdir_flag_spec_CXX=' '
  12443. allow_undefined_flag_CXX=unsupported
  12444. always_export_symbols_CXX=yes
  12445. file_list_spec_CXX='@'
  12446. # Tell ltmain to make .lib files, not .a files.
  12447. libext=lib
  12448. # Tell ltmain to make .dll files, not .so files.
  12449. shrext_cmds=.dll
  12450. # FIXME: Setting linknames here is a bad hack.
  12451. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12452. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12453. cp "$export_symbols" "$output_objdir/$soname.def";
  12454. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12455. else
  12456. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12457. fi~
  12458. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12459. linknames='
  12460. # The linker will not automatically build a static lib if we build a DLL.
  12461. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12462. enable_shared_with_static_runtimes_CXX=yes
  12463. # Don't use ranlib
  12464. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12465. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12466. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12467. case $lt_outputfile in
  12468. *.exe|*.EXE) ;;
  12469. *)
  12470. lt_outputfile=$lt_outputfile.exe
  12471. lt_tool_outputfile=$lt_tool_outputfile.exe
  12472. ;;
  12473. esac~
  12474. func_to_tool_file "$lt_outputfile"~
  12475. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12476. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12477. $RM "$lt_outputfile.manifest";
  12478. fi'
  12479. ;;
  12480. *)
  12481. # g++
  12482. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12483. # as there is no search path for DLLs.
  12484. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12485. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12486. allow_undefined_flag_CXX=unsupported
  12487. always_export_symbols_CXX=no
  12488. enable_shared_with_static_runtimes_CXX=yes
  12489. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12490. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12491. # If the export-symbols file already is a .def file, use it as
  12492. # is; otherwise, prepend EXPORTS...
  12493. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12494. cp $export_symbols $output_objdir/$soname.def;
  12495. else
  12496. echo EXPORTS > $output_objdir/$soname.def;
  12497. cat $export_symbols >> $output_objdir/$soname.def;
  12498. fi~
  12499. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12500. else
  12501. ld_shlibs_CXX=no
  12502. fi
  12503. ;;
  12504. esac
  12505. ;;
  12506. darwin* | rhapsody*)
  12507. archive_cmds_need_lc_CXX=no
  12508. hardcode_direct_CXX=no
  12509. hardcode_automatic_CXX=yes
  12510. hardcode_shlibpath_var_CXX=unsupported
  12511. if test yes = "$lt_cv_ld_force_load"; then
  12512. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  12513. else
  12514. whole_archive_flag_spec_CXX=''
  12515. fi
  12516. link_all_deplibs_CXX=yes
  12517. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12518. case $cc_basename in
  12519. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12520. *) _lt_dar_can_shared=$GCC ;;
  12521. esac
  12522. if test yes = "$_lt_dar_can_shared"; then
  12523. output_verbose_link_cmd=func_echo_all
  12524. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  12525. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12526. archive_expsym_cmds_CXX="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"
  12527. module_expsym_cmds_CXX="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"
  12528. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12529. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  12530. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  12531. fi
  12532. else
  12533. ld_shlibs_CXX=no
  12534. fi
  12535. ;;
  12536. os2*)
  12537. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12538. hardcode_minus_L_CXX=yes
  12539. allow_undefined_flag_CXX=unsupported
  12540. shrext_cmds=.dll
  12541. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12542. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12543. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12544. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12545. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12546. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12547. emximp -o $lib $output_objdir/$libname.def'
  12548. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12549. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12550. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12551. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12552. prefix_cmds="$SED"~
  12553. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12554. prefix_cmds="$prefix_cmds -e 1d";
  12555. fi~
  12556. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12557. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12558. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12559. emximp -o $lib $output_objdir/$libname.def'
  12560. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12561. enable_shared_with_static_runtimes_CXX=yes
  12562. ;;
  12563. dgux*)
  12564. case $cc_basename in
  12565. ec++*)
  12566. # FIXME: insert proper C++ library support
  12567. ld_shlibs_CXX=no
  12568. ;;
  12569. ghcx*)
  12570. # Green Hills C++ Compiler
  12571. # FIXME: insert proper C++ library support
  12572. ld_shlibs_CXX=no
  12573. ;;
  12574. *)
  12575. # FIXME: insert proper C++ library support
  12576. ld_shlibs_CXX=no
  12577. ;;
  12578. esac
  12579. ;;
  12580. freebsd2.*)
  12581. # C++ shared libraries reported to be fairly broken before
  12582. # switch to ELF
  12583. ld_shlibs_CXX=no
  12584. ;;
  12585. freebsd-elf*)
  12586. archive_cmds_need_lc_CXX=no
  12587. ;;
  12588. freebsd* | dragonfly*)
  12589. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12590. # conventions
  12591. ld_shlibs_CXX=yes
  12592. ;;
  12593. haiku*)
  12594. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12595. link_all_deplibs_CXX=yes
  12596. ;;
  12597. hpux9*)
  12598. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12599. hardcode_libdir_separator_CXX=:
  12600. export_dynamic_flag_spec_CXX='$wl-E'
  12601. hardcode_direct_CXX=yes
  12602. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12603. # but as the default
  12604. # location of the library.
  12605. case $cc_basename in
  12606. CC*)
  12607. # FIXME: insert proper C++ library support
  12608. ld_shlibs_CXX=no
  12609. ;;
  12610. aCC*)
  12611. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12612. # Commands to make compiler produce verbose output that lists
  12613. # what "hidden" libraries, object files and flags are used when
  12614. # linking a shared library.
  12615. #
  12616. # There doesn't appear to be a way to prevent this compiler from
  12617. # explicitly linking system object files so we need to strip them
  12618. # from the output so that they don't get included in the library
  12619. # dependencies.
  12620. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12621. ;;
  12622. *)
  12623. if test yes = "$GXX"; then
  12624. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12625. else
  12626. # FIXME: insert proper C++ library support
  12627. ld_shlibs_CXX=no
  12628. fi
  12629. ;;
  12630. esac
  12631. ;;
  12632. hpux10*|hpux11*)
  12633. if test no = "$with_gnu_ld"; then
  12634. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12635. hardcode_libdir_separator_CXX=:
  12636. case $host_cpu in
  12637. hppa*64*|ia64*)
  12638. ;;
  12639. *)
  12640. export_dynamic_flag_spec_CXX='$wl-E'
  12641. ;;
  12642. esac
  12643. fi
  12644. case $host_cpu in
  12645. hppa*64*|ia64*)
  12646. hardcode_direct_CXX=no
  12647. hardcode_shlibpath_var_CXX=no
  12648. ;;
  12649. *)
  12650. hardcode_direct_CXX=yes
  12651. hardcode_direct_absolute_CXX=yes
  12652. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12653. # but as the default
  12654. # location of the library.
  12655. ;;
  12656. esac
  12657. case $cc_basename in
  12658. CC*)
  12659. # FIXME: insert proper C++ library support
  12660. ld_shlibs_CXX=no
  12661. ;;
  12662. aCC*)
  12663. case $host_cpu in
  12664. hppa*64*)
  12665. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12666. ;;
  12667. ia64*)
  12668. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12669. ;;
  12670. *)
  12671. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12672. ;;
  12673. esac
  12674. # Commands to make compiler produce verbose output that lists
  12675. # what "hidden" libraries, object files and flags are used when
  12676. # linking a shared library.
  12677. #
  12678. # There doesn't appear to be a way to prevent this compiler from
  12679. # explicitly linking system object files so we need to strip them
  12680. # from the output so that they don't get included in the library
  12681. # dependencies.
  12682. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12683. ;;
  12684. *)
  12685. if test yes = "$GXX"; then
  12686. if test no = "$with_gnu_ld"; then
  12687. case $host_cpu in
  12688. hppa*64*)
  12689. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12690. ;;
  12691. ia64*)
  12692. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12693. ;;
  12694. *)
  12695. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12696. ;;
  12697. esac
  12698. fi
  12699. else
  12700. # FIXME: insert proper C++ library support
  12701. ld_shlibs_CXX=no
  12702. fi
  12703. ;;
  12704. esac
  12705. ;;
  12706. interix[3-9]*)
  12707. hardcode_direct_CXX=no
  12708. hardcode_shlibpath_var_CXX=no
  12709. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12710. export_dynamic_flag_spec_CXX='$wl-E'
  12711. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12712. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12713. # default) and relocated if they conflict, which is a slow very memory
  12714. # consuming and fragmenting process. To avoid this, we pick a random,
  12715. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12716. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12717. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12718. archive_expsym_cmds_CXX='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'
  12719. ;;
  12720. irix5* | irix6*)
  12721. case $cc_basename in
  12722. CC*)
  12723. # SGI C++
  12724. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12725. # Archives containing C++ object files must be created using
  12726. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12727. # necessary to make sure instantiated templates are included
  12728. # in the archive.
  12729. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12730. ;;
  12731. *)
  12732. if test yes = "$GXX"; then
  12733. if test no = "$with_gnu_ld"; then
  12734. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  12735. else
  12736. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  12737. fi
  12738. fi
  12739. link_all_deplibs_CXX=yes
  12740. ;;
  12741. esac
  12742. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12743. hardcode_libdir_separator_CXX=:
  12744. inherit_rpath_CXX=yes
  12745. ;;
  12746. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12747. case $cc_basename in
  12748. KCC*)
  12749. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12750. # KCC will only create a shared library if the output file
  12751. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12752. # to its proper name (with version) after linking.
  12753. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12754. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  12755. # Commands to make compiler produce verbose output that lists
  12756. # what "hidden" libraries, object files and flags are used when
  12757. # linking a shared library.
  12758. #
  12759. # There doesn't appear to be a way to prevent this compiler from
  12760. # explicitly linking system object files so we need to strip them
  12761. # from the output so that they don't get included in the library
  12762. # dependencies.
  12763. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12764. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12765. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12766. # Archives containing C++ object files must be created using
  12767. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12768. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12769. ;;
  12770. icpc* | ecpc* )
  12771. # Intel C++
  12772. with_gnu_ld=yes
  12773. # version 8.0 and above of icpc choke on multiply defined symbols
  12774. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12775. # earlier do not add the objects themselves.
  12776. case `$CC -V 2>&1` in
  12777. *"Version 7."*)
  12778. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12779. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12780. ;;
  12781. *) # Version 8.0 or newer
  12782. tmp_idyn=
  12783. case $host_cpu in
  12784. ia64*) tmp_idyn=' -i_dynamic';;
  12785. esac
  12786. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12787. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12788. ;;
  12789. esac
  12790. archive_cmds_need_lc_CXX=no
  12791. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12792. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12793. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12794. ;;
  12795. pgCC* | pgcpp*)
  12796. # Portland Group C++ compiler
  12797. case `$CC -V` in
  12798. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12799. prelink_cmds_CXX='tpldir=Template.dir~
  12800. rm -rf $tpldir~
  12801. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12802. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12803. old_archive_cmds_CXX='tpldir=Template.dir~
  12804. rm -rf $tpldir~
  12805. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12806. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12807. $RANLIB $oldlib'
  12808. archive_cmds_CXX='tpldir=Template.dir~
  12809. rm -rf $tpldir~
  12810. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12811. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12812. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12813. rm -rf $tpldir~
  12814. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12815. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12816. ;;
  12817. *) # Version 6 and above use weak symbols
  12818. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12819. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12820. ;;
  12821. esac
  12822. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12823. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12824. whole_archive_flag_spec_CXX='$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'
  12825. ;;
  12826. cxx*)
  12827. # Compaq C++
  12828. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12829. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  12830. runpath_var=LD_RUN_PATH
  12831. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12832. hardcode_libdir_separator_CXX=:
  12833. # Commands to make compiler produce verbose output that lists
  12834. # what "hidden" libraries, object files and flags are used when
  12835. # linking a shared library.
  12836. #
  12837. # There doesn't appear to be a way to prevent this compiler from
  12838. # explicitly linking system object files so we need to strip them
  12839. # from the output so that they don't get included in the library
  12840. # dependencies.
  12841. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  12842. ;;
  12843. xl* | mpixl* | bgxl*)
  12844. # IBM XL 8.0 on PPC, with GNU ld
  12845. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12846. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12847. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12848. if test yes = "$supports_anon_versioning"; then
  12849. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12850. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12851. echo "local: *; };" >> $output_objdir/$libname.ver~
  12852. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12853. fi
  12854. ;;
  12855. *)
  12856. case `$CC -V 2>&1 | sed 5q` in
  12857. *Sun\ C*)
  12858. # Sun C++ 5.9
  12859. no_undefined_flag_CXX=' -zdefs'
  12860. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12861. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  12862. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12863. whole_archive_flag_spec_CXX='$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'
  12864. compiler_needs_object_CXX=yes
  12865. # Not sure whether something based on
  12866. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12867. # would be better.
  12868. output_verbose_link_cmd='func_echo_all'
  12869. # Archives containing C++ object files must be created using
  12870. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12871. # necessary to make sure instantiated templates are included
  12872. # in the archive.
  12873. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12874. ;;
  12875. esac
  12876. ;;
  12877. esac
  12878. ;;
  12879. lynxos*)
  12880. # FIXME: insert proper C++ library support
  12881. ld_shlibs_CXX=no
  12882. ;;
  12883. m88k*)
  12884. # FIXME: insert proper C++ library support
  12885. ld_shlibs_CXX=no
  12886. ;;
  12887. mvs*)
  12888. case $cc_basename in
  12889. cxx*)
  12890. # FIXME: insert proper C++ library support
  12891. ld_shlibs_CXX=no
  12892. ;;
  12893. *)
  12894. # FIXME: insert proper C++ library support
  12895. ld_shlibs_CXX=no
  12896. ;;
  12897. esac
  12898. ;;
  12899. netbsd*)
  12900. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12901. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12902. wlarc=
  12903. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12904. hardcode_direct_CXX=yes
  12905. hardcode_shlibpath_var_CXX=no
  12906. fi
  12907. # Workaround some broken pre-1.5 toolchains
  12908. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12909. ;;
  12910. *nto* | *qnx*)
  12911. ld_shlibs_CXX=yes
  12912. ;;
  12913. openbsd* | bitrig*)
  12914. if test -f /usr/libexec/ld.so; then
  12915. hardcode_direct_CXX=yes
  12916. hardcode_shlibpath_var_CXX=no
  12917. hardcode_direct_absolute_CXX=yes
  12918. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12919. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12920. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12921. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12922. export_dynamic_flag_spec_CXX='$wl-E'
  12923. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12924. fi
  12925. output_verbose_link_cmd=func_echo_all
  12926. else
  12927. ld_shlibs_CXX=no
  12928. fi
  12929. ;;
  12930. osf3* | osf4* | osf5*)
  12931. case $cc_basename in
  12932. KCC*)
  12933. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12934. # KCC will only create a shared library if the output file
  12935. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12936. # to its proper name (with version) after linking.
  12937. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12938. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12939. hardcode_libdir_separator_CXX=:
  12940. # Archives containing C++ object files must be created using
  12941. # the KAI C++ compiler.
  12942. case $host in
  12943. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12944. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12945. esac
  12946. ;;
  12947. RCC*)
  12948. # Rational C++ 2.4.1
  12949. # FIXME: insert proper C++ library support
  12950. ld_shlibs_CXX=no
  12951. ;;
  12952. cxx*)
  12953. case $host in
  12954. osf3*)
  12955. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12956. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12957. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12958. ;;
  12959. *)
  12960. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12961. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12962. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12963. echo "-hidden">> $lib.exp~
  12964. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  12965. $RM $lib.exp'
  12966. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12967. ;;
  12968. esac
  12969. hardcode_libdir_separator_CXX=:
  12970. # Commands to make compiler produce verbose output that lists
  12971. # what "hidden" libraries, object files and flags are used when
  12972. # linking a shared library.
  12973. #
  12974. # There doesn't appear to be a way to prevent this compiler from
  12975. # explicitly linking system object files so we need to strip them
  12976. # from the output so that they don't get included in the library
  12977. # dependencies.
  12978. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12979. ;;
  12980. *)
  12981. if test yes,no = "$GXX,$with_gnu_ld"; then
  12982. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12983. case $host in
  12984. osf3*)
  12985. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
  12986. ;;
  12987. *)
  12988. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
  12989. ;;
  12990. esac
  12991. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12992. hardcode_libdir_separator_CXX=:
  12993. # Commands to make compiler produce verbose output that lists
  12994. # what "hidden" libraries, object files and flags are used when
  12995. # linking a shared library.
  12996. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12997. else
  12998. # FIXME: insert proper C++ library support
  12999. ld_shlibs_CXX=no
  13000. fi
  13001. ;;
  13002. esac
  13003. ;;
  13004. psos*)
  13005. # FIXME: insert proper C++ library support
  13006. ld_shlibs_CXX=no
  13007. ;;
  13008. sunos4*)
  13009. case $cc_basename in
  13010. CC*)
  13011. # Sun C++ 4.x
  13012. # FIXME: insert proper C++ library support
  13013. ld_shlibs_CXX=no
  13014. ;;
  13015. lcc*)
  13016. # Lucid
  13017. # FIXME: insert proper C++ library support
  13018. ld_shlibs_CXX=no
  13019. ;;
  13020. *)
  13021. # FIXME: insert proper C++ library support
  13022. ld_shlibs_CXX=no
  13023. ;;
  13024. esac
  13025. ;;
  13026. solaris*)
  13027. case $cc_basename in
  13028. CC* | sunCC*)
  13029. # Sun C++ 4.2, 5.x and Centerline C++
  13030. archive_cmds_need_lc_CXX=yes
  13031. no_undefined_flag_CXX=' -zdefs'
  13032. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13033. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13034. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13035. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13036. hardcode_shlibpath_var_CXX=no
  13037. case $host_os in
  13038. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13039. *)
  13040. # The compiler driver will combine and reorder linker options,
  13041. # but understands '-z linker_flag'.
  13042. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13043. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13044. ;;
  13045. esac
  13046. link_all_deplibs_CXX=yes
  13047. output_verbose_link_cmd='func_echo_all'
  13048. # Archives containing C++ object files must be created using
  13049. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13050. # necessary to make sure instantiated templates are included
  13051. # in the archive.
  13052. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13053. ;;
  13054. gcx*)
  13055. # Green Hills C++ Compiler
  13056. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13057. # The C++ compiler must be used to create the archive.
  13058. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13059. ;;
  13060. *)
  13061. # GNU C++ compiler with Solaris linker
  13062. if test yes,no = "$GXX,$with_gnu_ld"; then
  13063. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13064. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13065. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13066. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13067. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13068. # Commands to make compiler produce verbose output that lists
  13069. # what "hidden" libraries, object files and flags are used when
  13070. # linking a shared library.
  13071. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13072. else
  13073. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13074. # platform.
  13075. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13076. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13077. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13078. # Commands to make compiler produce verbose output that lists
  13079. # what "hidden" libraries, object files and flags are used when
  13080. # linking a shared library.
  13081. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13082. fi
  13083. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13084. case $host_os in
  13085. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13086. *)
  13087. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13088. ;;
  13089. esac
  13090. fi
  13091. ;;
  13092. esac
  13093. ;;
  13094. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13095. no_undefined_flag_CXX='$wl-z,text'
  13096. archive_cmds_need_lc_CXX=no
  13097. hardcode_shlibpath_var_CXX=no
  13098. runpath_var='LD_RUN_PATH'
  13099. case $cc_basename in
  13100. CC*)
  13101. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13102. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13103. ;;
  13104. *)
  13105. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13106. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13107. ;;
  13108. esac
  13109. ;;
  13110. sysv5* | sco3.2v5* | sco5v6*)
  13111. # Note: We CANNOT use -z defs as we might desire, because we do not
  13112. # link with -lc, and that would cause any symbols used from libc to
  13113. # always be unresolved, which means just about no library would
  13114. # ever link correctly. If we're not using GNU ld we use -z text
  13115. # though, which does catch some bad symbols but isn't as heavy-handed
  13116. # as -z defs.
  13117. no_undefined_flag_CXX='$wl-z,text'
  13118. allow_undefined_flag_CXX='$wl-z,nodefs'
  13119. archive_cmds_need_lc_CXX=no
  13120. hardcode_shlibpath_var_CXX=no
  13121. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13122. hardcode_libdir_separator_CXX=':'
  13123. link_all_deplibs_CXX=yes
  13124. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13125. runpath_var='LD_RUN_PATH'
  13126. case $cc_basename in
  13127. CC*)
  13128. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13129. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13130. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13131. '"$old_archive_cmds_CXX"
  13132. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13133. '"$reload_cmds_CXX"
  13134. ;;
  13135. *)
  13136. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13137. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13138. ;;
  13139. esac
  13140. ;;
  13141. tandem*)
  13142. case $cc_basename in
  13143. NCC*)
  13144. # NonStop-UX NCC 3.20
  13145. # FIXME: insert proper C++ library support
  13146. ld_shlibs_CXX=no
  13147. ;;
  13148. *)
  13149. # FIXME: insert proper C++ library support
  13150. ld_shlibs_CXX=no
  13151. ;;
  13152. esac
  13153. ;;
  13154. vxworks*)
  13155. # FIXME: insert proper C++ library support
  13156. ld_shlibs_CXX=no
  13157. ;;
  13158. *)
  13159. # FIXME: insert proper C++ library support
  13160. ld_shlibs_CXX=no
  13161. ;;
  13162. esac
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13164. $as_echo "$ld_shlibs_CXX" >&6; }
  13165. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13166. GCC_CXX=$GXX
  13167. LD_CXX=$LD
  13168. ## CAVEAT EMPTOR:
  13169. ## There is no encapsulation within the following macros, do not change
  13170. ## the running order or otherwise move them around unless you know exactly
  13171. ## what you are doing...
  13172. # Dependencies to place before and after the object being linked:
  13173. predep_objects_CXX=
  13174. postdep_objects_CXX=
  13175. predeps_CXX=
  13176. postdeps_CXX=
  13177. compiler_lib_search_path_CXX=
  13178. cat > conftest.$ac_ext <<_LT_EOF
  13179. class Foo
  13180. {
  13181. public:
  13182. Foo (void) { a = 0; }
  13183. private:
  13184. int a;
  13185. };
  13186. _LT_EOF
  13187. _lt_libdeps_save_CFLAGS=$CFLAGS
  13188. case "$CC $CFLAGS " in #(
  13189. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13190. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13191. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13192. esac
  13193. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13194. (eval $ac_compile) 2>&5
  13195. ac_status=$?
  13196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13197. test $ac_status = 0; }; then
  13198. # Parse the compiler output and extract the necessary
  13199. # objects, libraries and library flags.
  13200. # Sentinel used to keep track of whether or not we are before
  13201. # the conftest object file.
  13202. pre_test_object_deps_done=no
  13203. for p in `eval "$output_verbose_link_cmd"`; do
  13204. case $prev$p in
  13205. -L* | -R* | -l*)
  13206. # Some compilers place space between "-{L,R}" and the path.
  13207. # Remove the space.
  13208. if test x-L = "$p" ||
  13209. test x-R = "$p"; then
  13210. prev=$p
  13211. continue
  13212. fi
  13213. # Expand the sysroot to ease extracting the directories later.
  13214. if test -z "$prev"; then
  13215. case $p in
  13216. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13217. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13218. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13219. esac
  13220. fi
  13221. case $p in
  13222. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13223. esac
  13224. if test no = "$pre_test_object_deps_done"; then
  13225. case $prev in
  13226. -L | -R)
  13227. # Internal compiler library paths should come after those
  13228. # provided the user. The postdeps already come after the
  13229. # user supplied libs so there is no need to process them.
  13230. if test -z "$compiler_lib_search_path_CXX"; then
  13231. compiler_lib_search_path_CXX=$prev$p
  13232. else
  13233. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13234. fi
  13235. ;;
  13236. # The "-l" case would never come before the object being
  13237. # linked, so don't bother handling this case.
  13238. esac
  13239. else
  13240. if test -z "$postdeps_CXX"; then
  13241. postdeps_CXX=$prev$p
  13242. else
  13243. postdeps_CXX="${postdeps_CXX} $prev$p"
  13244. fi
  13245. fi
  13246. prev=
  13247. ;;
  13248. *.lto.$objext) ;; # Ignore GCC LTO objects
  13249. *.$objext)
  13250. # This assumes that the test object file only shows up
  13251. # once in the compiler output.
  13252. if test "$p" = "conftest.$objext"; then
  13253. pre_test_object_deps_done=yes
  13254. continue
  13255. fi
  13256. if test no = "$pre_test_object_deps_done"; then
  13257. if test -z "$predep_objects_CXX"; then
  13258. predep_objects_CXX=$p
  13259. else
  13260. predep_objects_CXX="$predep_objects_CXX $p"
  13261. fi
  13262. else
  13263. if test -z "$postdep_objects_CXX"; then
  13264. postdep_objects_CXX=$p
  13265. else
  13266. postdep_objects_CXX="$postdep_objects_CXX $p"
  13267. fi
  13268. fi
  13269. ;;
  13270. *) ;; # Ignore the rest.
  13271. esac
  13272. done
  13273. # Clean up.
  13274. rm -f a.out a.exe
  13275. else
  13276. echo "libtool.m4: error: problem compiling CXX test program"
  13277. fi
  13278. $RM -f confest.$objext
  13279. CFLAGS=$_lt_libdeps_save_CFLAGS
  13280. # PORTME: override above test on systems where it is broken
  13281. case $host_os in
  13282. interix[3-9]*)
  13283. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13284. # hack all around it, let's just trust "g++" to DTRT.
  13285. predep_objects_CXX=
  13286. postdep_objects_CXX=
  13287. postdeps_CXX=
  13288. ;;
  13289. esac
  13290. case " $postdeps_CXX " in
  13291. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13292. esac
  13293. compiler_lib_search_dirs_CXX=
  13294. if test -n "${compiler_lib_search_path_CXX}"; then
  13295. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13296. fi
  13297. lt_prog_compiler_wl_CXX=
  13298. lt_prog_compiler_pic_CXX=
  13299. lt_prog_compiler_static_CXX=
  13300. # C++ specific cases for pic, static, wl, etc.
  13301. if test yes = "$GXX"; then
  13302. lt_prog_compiler_wl_CXX='-Wl,'
  13303. lt_prog_compiler_static_CXX='-static'
  13304. case $host_os in
  13305. aix*)
  13306. # All AIX code is PIC.
  13307. if test ia64 = "$host_cpu"; then
  13308. # AIX 5 now supports IA64 processor
  13309. lt_prog_compiler_static_CXX='-Bstatic'
  13310. fi
  13311. lt_prog_compiler_pic_CXX='-fPIC'
  13312. ;;
  13313. amigaos*)
  13314. case $host_cpu in
  13315. powerpc)
  13316. # see comment about AmigaOS4 .so support
  13317. lt_prog_compiler_pic_CXX='-fPIC'
  13318. ;;
  13319. m68k)
  13320. # FIXME: we need at least 68020 code to build shared libraries, but
  13321. # adding the '-m68020' flag to GCC prevents building anything better,
  13322. # like '-m68040'.
  13323. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13324. ;;
  13325. esac
  13326. ;;
  13327. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13328. # PIC is the default for these OSes.
  13329. ;;
  13330. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13331. # This hack is so that the source file can tell whether it is being
  13332. # built for inclusion in a dll (and should export symbols for example).
  13333. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13334. # (--disable-auto-import) libraries
  13335. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13336. case $host_os in
  13337. os2*)
  13338. lt_prog_compiler_static_CXX='$wl-static'
  13339. ;;
  13340. esac
  13341. ;;
  13342. darwin* | rhapsody*)
  13343. # PIC is the default on this platform
  13344. # Common symbols not allowed in MH_DYLIB files
  13345. lt_prog_compiler_pic_CXX='-fno-common'
  13346. ;;
  13347. *djgpp*)
  13348. # DJGPP does not support shared libraries at all
  13349. lt_prog_compiler_pic_CXX=
  13350. ;;
  13351. haiku*)
  13352. # PIC is the default for Haiku.
  13353. # The "-static" flag exists, but is broken.
  13354. lt_prog_compiler_static_CXX=
  13355. ;;
  13356. interix[3-9]*)
  13357. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13358. # Instead, we relocate shared libraries at runtime.
  13359. ;;
  13360. sysv4*MP*)
  13361. if test -d /usr/nec; then
  13362. lt_prog_compiler_pic_CXX=-Kconform_pic
  13363. fi
  13364. ;;
  13365. hpux*)
  13366. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13367. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13368. # sets the default TLS model and affects inlining.
  13369. case $host_cpu in
  13370. hppa*64*)
  13371. ;;
  13372. *)
  13373. lt_prog_compiler_pic_CXX='-fPIC'
  13374. ;;
  13375. esac
  13376. ;;
  13377. *qnx* | *nto*)
  13378. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13379. # it will coredump.
  13380. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13381. ;;
  13382. *)
  13383. lt_prog_compiler_pic_CXX='-fPIC'
  13384. ;;
  13385. esac
  13386. else
  13387. case $host_os in
  13388. aix[4-9]*)
  13389. # All AIX code is PIC.
  13390. if test ia64 = "$host_cpu"; then
  13391. # AIX 5 now supports IA64 processor
  13392. lt_prog_compiler_static_CXX='-Bstatic'
  13393. else
  13394. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13395. fi
  13396. ;;
  13397. chorus*)
  13398. case $cc_basename in
  13399. cxch68*)
  13400. # Green Hills C++ Compiler
  13401. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  13402. ;;
  13403. esac
  13404. ;;
  13405. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13406. # This hack is so that the source file can tell whether it is being
  13407. # built for inclusion in a dll (and should export symbols for example).
  13408. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13409. ;;
  13410. dgux*)
  13411. case $cc_basename in
  13412. ec++*)
  13413. lt_prog_compiler_pic_CXX='-KPIC'
  13414. ;;
  13415. ghcx*)
  13416. # Green Hills C++ Compiler
  13417. lt_prog_compiler_pic_CXX='-pic'
  13418. ;;
  13419. *)
  13420. ;;
  13421. esac
  13422. ;;
  13423. freebsd* | dragonfly*)
  13424. # FreeBSD uses GNU C++
  13425. ;;
  13426. hpux9* | hpux10* | hpux11*)
  13427. case $cc_basename in
  13428. CC*)
  13429. lt_prog_compiler_wl_CXX='-Wl,'
  13430. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13431. if test ia64 != "$host_cpu"; then
  13432. lt_prog_compiler_pic_CXX='+Z'
  13433. fi
  13434. ;;
  13435. aCC*)
  13436. lt_prog_compiler_wl_CXX='-Wl,'
  13437. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13438. case $host_cpu in
  13439. hppa*64*|ia64*)
  13440. # +Z the default
  13441. ;;
  13442. *)
  13443. lt_prog_compiler_pic_CXX='+Z'
  13444. ;;
  13445. esac
  13446. ;;
  13447. *)
  13448. ;;
  13449. esac
  13450. ;;
  13451. interix*)
  13452. # This is c89, which is MS Visual C++ (no shared libs)
  13453. # Anyone wants to do a port?
  13454. ;;
  13455. irix5* | irix6* | nonstopux*)
  13456. case $cc_basename in
  13457. CC*)
  13458. lt_prog_compiler_wl_CXX='-Wl,'
  13459. lt_prog_compiler_static_CXX='-non_shared'
  13460. # CC pic flag -KPIC is the default.
  13461. ;;
  13462. *)
  13463. ;;
  13464. esac
  13465. ;;
  13466. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13467. case $cc_basename in
  13468. KCC*)
  13469. # KAI C++ Compiler
  13470. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13471. lt_prog_compiler_pic_CXX='-fPIC'
  13472. ;;
  13473. ecpc* )
  13474. # old Intel C++ for x86_64, which still supported -KPIC.
  13475. lt_prog_compiler_wl_CXX='-Wl,'
  13476. lt_prog_compiler_pic_CXX='-KPIC'
  13477. lt_prog_compiler_static_CXX='-static'
  13478. ;;
  13479. icpc* )
  13480. # Intel C++, used to be incompatible with GCC.
  13481. # ICC 10 doesn't accept -KPIC any more.
  13482. lt_prog_compiler_wl_CXX='-Wl,'
  13483. lt_prog_compiler_pic_CXX='-fPIC'
  13484. lt_prog_compiler_static_CXX='-static'
  13485. ;;
  13486. pgCC* | pgcpp*)
  13487. # Portland Group C++ compiler
  13488. lt_prog_compiler_wl_CXX='-Wl,'
  13489. lt_prog_compiler_pic_CXX='-fpic'
  13490. lt_prog_compiler_static_CXX='-Bstatic'
  13491. ;;
  13492. cxx*)
  13493. # Compaq C++
  13494. # Make sure the PIC flag is empty. It appears that all Alpha
  13495. # Linux and Compaq Tru64 Unix objects are PIC.
  13496. lt_prog_compiler_pic_CXX=
  13497. lt_prog_compiler_static_CXX='-non_shared'
  13498. ;;
  13499. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13500. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13501. lt_prog_compiler_wl_CXX='-Wl,'
  13502. lt_prog_compiler_pic_CXX='-qpic'
  13503. lt_prog_compiler_static_CXX='-qstaticlink'
  13504. ;;
  13505. *)
  13506. case `$CC -V 2>&1 | sed 5q` in
  13507. *Sun\ C*)
  13508. # Sun C++ 5.9
  13509. lt_prog_compiler_pic_CXX='-KPIC'
  13510. lt_prog_compiler_static_CXX='-Bstatic'
  13511. lt_prog_compiler_wl_CXX='-Qoption ld '
  13512. ;;
  13513. esac
  13514. ;;
  13515. esac
  13516. ;;
  13517. lynxos*)
  13518. ;;
  13519. m88k*)
  13520. ;;
  13521. mvs*)
  13522. case $cc_basename in
  13523. cxx*)
  13524. lt_prog_compiler_pic_CXX='-W c,exportall'
  13525. ;;
  13526. *)
  13527. ;;
  13528. esac
  13529. ;;
  13530. netbsd*)
  13531. ;;
  13532. *qnx* | *nto*)
  13533. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13534. # it will coredump.
  13535. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13536. ;;
  13537. osf3* | osf4* | osf5*)
  13538. case $cc_basename in
  13539. KCC*)
  13540. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13541. ;;
  13542. RCC*)
  13543. # Rational C++ 2.4.1
  13544. lt_prog_compiler_pic_CXX='-pic'
  13545. ;;
  13546. cxx*)
  13547. # Digital/Compaq C++
  13548. lt_prog_compiler_wl_CXX='-Wl,'
  13549. # Make sure the PIC flag is empty. It appears that all Alpha
  13550. # Linux and Compaq Tru64 Unix objects are PIC.
  13551. lt_prog_compiler_pic_CXX=
  13552. lt_prog_compiler_static_CXX='-non_shared'
  13553. ;;
  13554. *)
  13555. ;;
  13556. esac
  13557. ;;
  13558. psos*)
  13559. ;;
  13560. solaris*)
  13561. case $cc_basename in
  13562. CC* | sunCC*)
  13563. # Sun C++ 4.2, 5.x and Centerline C++
  13564. lt_prog_compiler_pic_CXX='-KPIC'
  13565. lt_prog_compiler_static_CXX='-Bstatic'
  13566. lt_prog_compiler_wl_CXX='-Qoption ld '
  13567. ;;
  13568. gcx*)
  13569. # Green Hills C++ Compiler
  13570. lt_prog_compiler_pic_CXX='-PIC'
  13571. ;;
  13572. *)
  13573. ;;
  13574. esac
  13575. ;;
  13576. sunos4*)
  13577. case $cc_basename in
  13578. CC*)
  13579. # Sun C++ 4.x
  13580. lt_prog_compiler_pic_CXX='-pic'
  13581. lt_prog_compiler_static_CXX='-Bstatic'
  13582. ;;
  13583. lcc*)
  13584. # Lucid
  13585. lt_prog_compiler_pic_CXX='-pic'
  13586. ;;
  13587. *)
  13588. ;;
  13589. esac
  13590. ;;
  13591. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13592. case $cc_basename in
  13593. CC*)
  13594. lt_prog_compiler_wl_CXX='-Wl,'
  13595. lt_prog_compiler_pic_CXX='-KPIC'
  13596. lt_prog_compiler_static_CXX='-Bstatic'
  13597. ;;
  13598. esac
  13599. ;;
  13600. tandem*)
  13601. case $cc_basename in
  13602. NCC*)
  13603. # NonStop-UX NCC 3.20
  13604. lt_prog_compiler_pic_CXX='-KPIC'
  13605. ;;
  13606. *)
  13607. ;;
  13608. esac
  13609. ;;
  13610. vxworks*)
  13611. ;;
  13612. *)
  13613. lt_prog_compiler_can_build_shared_CXX=no
  13614. ;;
  13615. esac
  13616. fi
  13617. case $host_os in
  13618. # For platforms that do not support PIC, -DPIC is meaningless:
  13619. *djgpp*)
  13620. lt_prog_compiler_pic_CXX=
  13621. ;;
  13622. *)
  13623. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13624. ;;
  13625. esac
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13627. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13628. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13629. $as_echo_n "(cached) " >&6
  13630. else
  13631. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13632. fi
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13634. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13635. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13636. #
  13637. # Check to make sure the PIC flag actually works.
  13638. #
  13639. if test -n "$lt_prog_compiler_pic_CXX"; then
  13640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13641. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13642. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13643. $as_echo_n "(cached) " >&6
  13644. else
  13645. lt_cv_prog_compiler_pic_works_CXX=no
  13646. ac_outfile=conftest.$ac_objext
  13647. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13648. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13649. # Insert the option either (1) after the last *FLAGS variable, or
  13650. # (2) before a word containing "conftest.", or (3) at the end.
  13651. # Note that $ac_compile itself does not contain backslashes and begins
  13652. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13653. # The option is referenced via a variable to avoid confusing sed.
  13654. lt_compile=`echo "$ac_compile" | $SED \
  13655. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13656. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13657. -e 's:$: $lt_compiler_flag:'`
  13658. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13659. (eval "$lt_compile" 2>conftest.err)
  13660. ac_status=$?
  13661. cat conftest.err >&5
  13662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13663. if (exit $ac_status) && test -s "$ac_outfile"; then
  13664. # The compiler can only warn and ignore the option if not recognized
  13665. # So say no if there are warnings other than the usual output.
  13666. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13667. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13668. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13669. lt_cv_prog_compiler_pic_works_CXX=yes
  13670. fi
  13671. fi
  13672. $RM conftest*
  13673. fi
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13675. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13676. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13677. case $lt_prog_compiler_pic_CXX in
  13678. "" | " "*) ;;
  13679. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13680. esac
  13681. else
  13682. lt_prog_compiler_pic_CXX=
  13683. lt_prog_compiler_can_build_shared_CXX=no
  13684. fi
  13685. fi
  13686. #
  13687. # Check to make sure the static flag actually works.
  13688. #
  13689. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13691. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13692. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13693. $as_echo_n "(cached) " >&6
  13694. else
  13695. lt_cv_prog_compiler_static_works_CXX=no
  13696. save_LDFLAGS=$LDFLAGS
  13697. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13698. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13699. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13700. # The linker can only warn and ignore the option if not recognized
  13701. # So say no if there are warnings
  13702. if test -s conftest.err; then
  13703. # Append any errors to the config.log.
  13704. cat conftest.err 1>&5
  13705. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13706. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13707. if diff conftest.exp conftest.er2 >/dev/null; then
  13708. lt_cv_prog_compiler_static_works_CXX=yes
  13709. fi
  13710. else
  13711. lt_cv_prog_compiler_static_works_CXX=yes
  13712. fi
  13713. fi
  13714. $RM -r conftest*
  13715. LDFLAGS=$save_LDFLAGS
  13716. fi
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13718. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13719. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13720. :
  13721. else
  13722. lt_prog_compiler_static_CXX=
  13723. fi
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13725. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13726. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13727. $as_echo_n "(cached) " >&6
  13728. else
  13729. lt_cv_prog_compiler_c_o_CXX=no
  13730. $RM -r conftest 2>/dev/null
  13731. mkdir conftest
  13732. cd conftest
  13733. mkdir out
  13734. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13735. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13736. # Insert the option either (1) after the last *FLAGS variable, or
  13737. # (2) before a word containing "conftest.", or (3) at the end.
  13738. # Note that $ac_compile itself does not contain backslashes and begins
  13739. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13740. lt_compile=`echo "$ac_compile" | $SED \
  13741. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13742. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13743. -e 's:$: $lt_compiler_flag:'`
  13744. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13745. (eval "$lt_compile" 2>out/conftest.err)
  13746. ac_status=$?
  13747. cat out/conftest.err >&5
  13748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13749. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13750. then
  13751. # The compiler can only warn and ignore the option if not recognized
  13752. # So say no if there are warnings
  13753. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13754. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13755. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13756. lt_cv_prog_compiler_c_o_CXX=yes
  13757. fi
  13758. fi
  13759. chmod u+w . 2>&5
  13760. $RM conftest*
  13761. # SGI C++ compiler will create directory out/ii_files/ for
  13762. # template instantiation
  13763. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13764. $RM out/* && rmdir out
  13765. cd ..
  13766. $RM -r conftest
  13767. $RM conftest*
  13768. fi
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13770. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13772. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13773. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13774. $as_echo_n "(cached) " >&6
  13775. else
  13776. lt_cv_prog_compiler_c_o_CXX=no
  13777. $RM -r conftest 2>/dev/null
  13778. mkdir conftest
  13779. cd conftest
  13780. mkdir out
  13781. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13782. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13783. # Insert the option either (1) after the last *FLAGS variable, or
  13784. # (2) before a word containing "conftest.", or (3) at the end.
  13785. # Note that $ac_compile itself does not contain backslashes and begins
  13786. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13787. lt_compile=`echo "$ac_compile" | $SED \
  13788. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13789. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13790. -e 's:$: $lt_compiler_flag:'`
  13791. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13792. (eval "$lt_compile" 2>out/conftest.err)
  13793. ac_status=$?
  13794. cat out/conftest.err >&5
  13795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13796. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13797. then
  13798. # The compiler can only warn and ignore the option if not recognized
  13799. # So say no if there are warnings
  13800. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13801. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13802. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13803. lt_cv_prog_compiler_c_o_CXX=yes
  13804. fi
  13805. fi
  13806. chmod u+w . 2>&5
  13807. $RM conftest*
  13808. # SGI C++ compiler will create directory out/ii_files/ for
  13809. # template instantiation
  13810. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13811. $RM out/* && rmdir out
  13812. cd ..
  13813. $RM -r conftest
  13814. $RM conftest*
  13815. fi
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13817. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13818. hard_links=nottested
  13819. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13820. # do not overwrite the value of need_locks provided by the user
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13822. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13823. hard_links=yes
  13824. $RM conftest*
  13825. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13826. touch conftest.a
  13827. ln conftest.a conftest.b 2>&5 || hard_links=no
  13828. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13830. $as_echo "$hard_links" >&6; }
  13831. if test no = "$hard_links"; then
  13832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13833. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13834. need_locks=warn
  13835. fi
  13836. else
  13837. need_locks=no
  13838. fi
  13839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13840. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13841. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13842. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13843. case $host_os in
  13844. aix[4-9]*)
  13845. # If we're using GNU nm, then we don't want the "-C" option.
  13846. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13847. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13848. # weak defined symbols like other global defined symbols, whereas
  13849. # GNU nm marks them as "W".
  13850. # While the 'weak' keyword is ignored in the Export File, we need
  13851. # it in the Import File for the 'aix-soname' feature, so we have
  13852. # to replace the "-B" option with "-P" for AIX nm.
  13853. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13854. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13855. else
  13856. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13857. fi
  13858. ;;
  13859. pw32*)
  13860. export_symbols_cmds_CXX=$ltdll_cmds
  13861. ;;
  13862. cygwin* | mingw* | cegcc*)
  13863. case $cc_basename in
  13864. cl*)
  13865. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13866. ;;
  13867. *)
  13868. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13869. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13870. ;;
  13871. esac
  13872. ;;
  13873. *)
  13874. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13875. ;;
  13876. esac
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13878. $as_echo "$ld_shlibs_CXX" >&6; }
  13879. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13880. with_gnu_ld_CXX=$with_gnu_ld
  13881. #
  13882. # Do we need to explicitly link libc?
  13883. #
  13884. case "x$archive_cmds_need_lc_CXX" in
  13885. x|xyes)
  13886. # Assume -lc should be added
  13887. archive_cmds_need_lc_CXX=yes
  13888. if test yes,yes = "$GCC,$enable_shared"; then
  13889. case $archive_cmds_CXX in
  13890. *'~'*)
  13891. # FIXME: we may have to deal with multi-command sequences.
  13892. ;;
  13893. '$CC '*)
  13894. # Test whether the compiler implicitly links with -lc since on some
  13895. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13896. # to ld, don't add -lc before -lgcc.
  13897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13898. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13899. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13900. $as_echo_n "(cached) " >&6
  13901. else
  13902. $RM conftest*
  13903. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13904. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13905. (eval $ac_compile) 2>&5
  13906. ac_status=$?
  13907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13908. test $ac_status = 0; } 2>conftest.err; then
  13909. soname=conftest
  13910. lib=conftest
  13911. libobjs=conftest.$ac_objext
  13912. deplibs=
  13913. wl=$lt_prog_compiler_wl_CXX
  13914. pic_flag=$lt_prog_compiler_pic_CXX
  13915. compiler_flags=-v
  13916. linker_flags=-v
  13917. verstring=
  13918. output_objdir=.
  13919. libname=conftest
  13920. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13921. allow_undefined_flag_CXX=
  13922. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13923. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13924. ac_status=$?
  13925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13926. test $ac_status = 0; }
  13927. then
  13928. lt_cv_archive_cmds_need_lc_CXX=no
  13929. else
  13930. lt_cv_archive_cmds_need_lc_CXX=yes
  13931. fi
  13932. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13933. else
  13934. cat conftest.err 1>&5
  13935. fi
  13936. $RM conftest*
  13937. fi
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13939. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13940. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13941. ;;
  13942. esac
  13943. fi
  13944. ;;
  13945. esac
  13946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13947. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13948. library_names_spec=
  13949. libname_spec='lib$name'
  13950. soname_spec=
  13951. shrext_cmds=.so
  13952. postinstall_cmds=
  13953. postuninstall_cmds=
  13954. finish_cmds=
  13955. finish_eval=
  13956. shlibpath_var=
  13957. shlibpath_overrides_runpath=unknown
  13958. version_type=none
  13959. dynamic_linker="$host_os ld.so"
  13960. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13961. need_lib_prefix=unknown
  13962. hardcode_into_libs=no
  13963. # when you set need_version to no, make sure it does not cause -set_version
  13964. # flags to be left without arguments
  13965. need_version=unknown
  13966. case $host_os in
  13967. aix3*)
  13968. version_type=linux # correct to gnu/linux during the next big refactor
  13969. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13970. shlibpath_var=LIBPATH
  13971. # AIX 3 has no versioning support, so we append a major version to the name.
  13972. soname_spec='$libname$release$shared_ext$major'
  13973. ;;
  13974. aix[4-9]*)
  13975. version_type=linux # correct to gnu/linux during the next big refactor
  13976. need_lib_prefix=no
  13977. need_version=no
  13978. hardcode_into_libs=yes
  13979. if test ia64 = "$host_cpu"; then
  13980. # AIX 5 supports IA64
  13981. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13982. shlibpath_var=LD_LIBRARY_PATH
  13983. else
  13984. # With GCC up to 2.95.x, collect2 would create an import file
  13985. # for dependence libraries. The import file would start with
  13986. # the line '#! .'. This would cause the generated library to
  13987. # depend on '.', always an invalid library. This was fixed in
  13988. # development snapshots of GCC prior to 3.0.
  13989. case $host_os in
  13990. aix4 | aix4.[01] | aix4.[01].*)
  13991. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13992. echo ' yes '
  13993. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13994. :
  13995. else
  13996. can_build_shared=no
  13997. fi
  13998. ;;
  13999. esac
  14000. # Using Import Files as archive members, it is possible to support
  14001. # filename-based versioning of shared library archives on AIX. While
  14002. # this would work for both with and without runtime linking, it will
  14003. # prevent static linking of such archives. So we do filename-based
  14004. # shared library versioning with .so extension only, which is used
  14005. # when both runtime linking and shared linking is enabled.
  14006. # Unfortunately, runtime linking may impact performance, so we do
  14007. # not want this to be the default eventually. Also, we use the
  14008. # versioned .so libs for executables only if there is the -brtl
  14009. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14010. # To allow for filename-based versioning support, we need to create
  14011. # libNAME.so.V as an archive file, containing:
  14012. # *) an Import File, referring to the versioned filename of the
  14013. # archive as well as the shared archive member, telling the
  14014. # bitwidth (32 or 64) of that shared object, and providing the
  14015. # list of exported symbols of that shared object, eventually
  14016. # decorated with the 'weak' keyword
  14017. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14018. # it being seen by the linker.
  14019. # At run time we better use the real file rather than another symlink,
  14020. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14021. case $with_aix_soname,$aix_use_runtimelinking in
  14022. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14023. # soname into executable. Probably we can add versioning support to
  14024. # collect2, so additional links can be useful in future.
  14025. aix,yes) # traditional libtool
  14026. dynamic_linker='AIX unversionable lib.so'
  14027. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14028. # instead of lib<name>.a to let people know that these are not
  14029. # typical AIX shared libraries.
  14030. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14031. ;;
  14032. aix,no) # traditional AIX only
  14033. dynamic_linker='AIX lib.a(lib.so.V)'
  14034. # We preserve .a as extension for shared libraries through AIX4.2
  14035. # and later when we are not doing run time linking.
  14036. library_names_spec='$libname$release.a $libname.a'
  14037. soname_spec='$libname$release$shared_ext$major'
  14038. ;;
  14039. svr4,*) # full svr4 only
  14040. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14041. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14042. # We do not specify a path in Import Files, so LIBPATH fires.
  14043. shlibpath_overrides_runpath=yes
  14044. ;;
  14045. *,yes) # both, prefer svr4
  14046. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14047. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14048. # unpreferred sharedlib libNAME.a needs extra handling
  14049. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14050. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14051. # We do not specify a path in Import Files, so LIBPATH fires.
  14052. shlibpath_overrides_runpath=yes
  14053. ;;
  14054. *,no) # both, prefer aix
  14055. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14056. library_names_spec='$libname$release.a $libname.a'
  14057. soname_spec='$libname$release$shared_ext$major'
  14058. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14059. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14060. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14061. ;;
  14062. esac
  14063. shlibpath_var=LIBPATH
  14064. fi
  14065. ;;
  14066. amigaos*)
  14067. case $host_cpu in
  14068. powerpc)
  14069. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14070. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14071. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14072. ;;
  14073. m68k)
  14074. library_names_spec='$libname.ixlibrary $libname.a'
  14075. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14076. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  14077. ;;
  14078. esac
  14079. ;;
  14080. beos*)
  14081. library_names_spec='$libname$shared_ext'
  14082. dynamic_linker="$host_os ld.so"
  14083. shlibpath_var=LIBRARY_PATH
  14084. ;;
  14085. bsdi[45]*)
  14086. version_type=linux # correct to gnu/linux during the next big refactor
  14087. need_version=no
  14088. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14089. soname_spec='$libname$release$shared_ext$major'
  14090. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14091. shlibpath_var=LD_LIBRARY_PATH
  14092. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14093. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14094. # the default ld.so.conf also contains /usr/contrib/lib and
  14095. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14096. # libtool to hard-code these into programs
  14097. ;;
  14098. cygwin* | mingw* | pw32* | cegcc*)
  14099. version_type=windows
  14100. shrext_cmds=.dll
  14101. need_version=no
  14102. need_lib_prefix=no
  14103. case $GCC,$cc_basename in
  14104. yes,*)
  14105. # gcc
  14106. library_names_spec='$libname.dll.a'
  14107. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14108. postinstall_cmds='base_file=`basename \$file`~
  14109. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14110. dldir=$destdir/`dirname \$dlpath`~
  14111. test -d \$dldir || mkdir -p \$dldir~
  14112. $install_prog $dir/$dlname \$dldir/$dlname~
  14113. chmod a+x \$dldir/$dlname~
  14114. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14115. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14116. fi'
  14117. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14118. dlpath=$dir/\$dldll~
  14119. $RM \$dlpath'
  14120. shlibpath_overrides_runpath=yes
  14121. case $host_os in
  14122. cygwin*)
  14123. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14124. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14125. ;;
  14126. mingw* | cegcc*)
  14127. # MinGW DLLs use traditional 'lib' prefix
  14128. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14129. ;;
  14130. pw32*)
  14131. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14132. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14133. ;;
  14134. esac
  14135. dynamic_linker='Win32 ld.exe'
  14136. ;;
  14137. *,cl*)
  14138. # Native MSVC
  14139. libname_spec='$name'
  14140. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14141. library_names_spec='$libname.dll.lib'
  14142. case $build_os in
  14143. mingw*)
  14144. sys_lib_search_path_spec=
  14145. lt_save_ifs=$IFS
  14146. IFS=';'
  14147. for lt_path in $LIB
  14148. do
  14149. IFS=$lt_save_ifs
  14150. # Let DOS variable expansion print the short 8.3 style file name.
  14151. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14152. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14153. done
  14154. IFS=$lt_save_ifs
  14155. # Convert to MSYS style.
  14156. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14157. ;;
  14158. cygwin*)
  14159. # Convert to unix form, then to dos form, then back to unix form
  14160. # but this time dos style (no spaces!) so that the unix form looks
  14161. # like /cygdrive/c/PROGRA~1:/cygdr...
  14162. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14163. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14164. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14165. ;;
  14166. *)
  14167. sys_lib_search_path_spec=$LIB
  14168. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14169. # It is most probably a Windows format PATH.
  14170. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14171. else
  14172. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14173. fi
  14174. # FIXME: find the short name or the path components, as spaces are
  14175. # common. (e.g. "Program Files" -> "PROGRA~1")
  14176. ;;
  14177. esac
  14178. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14179. postinstall_cmds='base_file=`basename \$file`~
  14180. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14181. dldir=$destdir/`dirname \$dlpath`~
  14182. test -d \$dldir || mkdir -p \$dldir~
  14183. $install_prog $dir/$dlname \$dldir/$dlname'
  14184. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14185. dlpath=$dir/\$dldll~
  14186. $RM \$dlpath'
  14187. shlibpath_overrides_runpath=yes
  14188. dynamic_linker='Win32 link.exe'
  14189. ;;
  14190. *)
  14191. # Assume MSVC wrapper
  14192. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14193. dynamic_linker='Win32 ld.exe'
  14194. ;;
  14195. esac
  14196. # FIXME: first we should search . and the directory the executable is in
  14197. shlibpath_var=PATH
  14198. ;;
  14199. darwin* | rhapsody*)
  14200. dynamic_linker="$host_os dyld"
  14201. version_type=darwin
  14202. need_lib_prefix=no
  14203. need_version=no
  14204. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  14205. soname_spec='$libname$release$major$shared_ext'
  14206. shlibpath_overrides_runpath=yes
  14207. shlibpath_var=DYLD_LIBRARY_PATH
  14208. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  14209. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14210. ;;
  14211. dgux*)
  14212. version_type=linux # correct to gnu/linux during the next big refactor
  14213. need_lib_prefix=no
  14214. need_version=no
  14215. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14216. soname_spec='$libname$release$shared_ext$major'
  14217. shlibpath_var=LD_LIBRARY_PATH
  14218. ;;
  14219. freebsd* | dragonfly*)
  14220. # DragonFly does not have aout. When/if they implement a new
  14221. # versioning mechanism, adjust this.
  14222. if test -x /usr/bin/objformat; then
  14223. objformat=`/usr/bin/objformat`
  14224. else
  14225. case $host_os in
  14226. freebsd[23].*) objformat=aout ;;
  14227. *) objformat=elf ;;
  14228. esac
  14229. fi
  14230. # Handle Gentoo/FreeBSD as it was Linux
  14231. case $host_vendor in
  14232. gentoo)
  14233. version_type=linux ;;
  14234. *)
  14235. version_type=freebsd-$objformat ;;
  14236. esac
  14237. case $version_type in
  14238. freebsd-elf*)
  14239. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14240. soname_spec='$libname$release$shared_ext$major'
  14241. need_version=no
  14242. need_lib_prefix=no
  14243. ;;
  14244. freebsd-*)
  14245. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14246. need_version=yes
  14247. ;;
  14248. linux)
  14249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14250. soname_spec='${libname}${release}${shared_ext}$major'
  14251. need_lib_prefix=no
  14252. need_version=no
  14253. ;;
  14254. esac
  14255. shlibpath_var=LD_LIBRARY_PATH
  14256. case $host_os in
  14257. freebsd2.*)
  14258. shlibpath_overrides_runpath=yes
  14259. ;;
  14260. freebsd3.[01]* | freebsdelf3.[01]*)
  14261. shlibpath_overrides_runpath=yes
  14262. hardcode_into_libs=yes
  14263. ;;
  14264. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14265. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14266. shlibpath_overrides_runpath=no
  14267. hardcode_into_libs=yes
  14268. ;;
  14269. *) # from 4.6 on, and DragonFly
  14270. shlibpath_overrides_runpath=yes
  14271. hardcode_into_libs=yes
  14272. ;;
  14273. esac
  14274. ;;
  14275. haiku*)
  14276. version_type=linux # correct to gnu/linux during the next big refactor
  14277. need_lib_prefix=no
  14278. need_version=no
  14279. dynamic_linker="$host_os runtime_loader"
  14280. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14281. soname_spec='$libname$release$shared_ext$major'
  14282. shlibpath_var=LIBRARY_PATH
  14283. shlibpath_overrides_runpath=no
  14284. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14285. hardcode_into_libs=yes
  14286. ;;
  14287. hpux9* | hpux10* | hpux11*)
  14288. # Give a soname corresponding to the major version so that dld.sl refuses to
  14289. # link against other versions.
  14290. version_type=sunos
  14291. need_lib_prefix=no
  14292. need_version=no
  14293. case $host_cpu in
  14294. ia64*)
  14295. shrext_cmds='.so'
  14296. hardcode_into_libs=yes
  14297. dynamic_linker="$host_os dld.so"
  14298. shlibpath_var=LD_LIBRARY_PATH
  14299. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14300. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14301. soname_spec='$libname$release$shared_ext$major'
  14302. if test 32 = "$HPUX_IA64_MODE"; then
  14303. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14304. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14305. else
  14306. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14307. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14308. fi
  14309. ;;
  14310. hppa*64*)
  14311. shrext_cmds='.sl'
  14312. hardcode_into_libs=yes
  14313. dynamic_linker="$host_os dld.sl"
  14314. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14315. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14316. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14317. soname_spec='$libname$release$shared_ext$major'
  14318. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14319. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14320. ;;
  14321. *)
  14322. shrext_cmds='.sl'
  14323. dynamic_linker="$host_os dld.sl"
  14324. shlibpath_var=SHLIB_PATH
  14325. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14326. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14327. soname_spec='$libname$release$shared_ext$major'
  14328. ;;
  14329. esac
  14330. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14331. postinstall_cmds='chmod 555 $lib'
  14332. # or fails outright, so override atomically:
  14333. install_override_mode=555
  14334. ;;
  14335. interix[3-9]*)
  14336. version_type=linux # correct to gnu/linux during the next big refactor
  14337. need_lib_prefix=no
  14338. need_version=no
  14339. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14340. soname_spec='$libname$release$shared_ext$major'
  14341. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14342. shlibpath_var=LD_LIBRARY_PATH
  14343. shlibpath_overrides_runpath=no
  14344. hardcode_into_libs=yes
  14345. ;;
  14346. irix5* | irix6* | nonstopux*)
  14347. case $host_os in
  14348. nonstopux*) version_type=nonstopux ;;
  14349. *)
  14350. if test yes = "$lt_cv_prog_gnu_ld"; then
  14351. version_type=linux # correct to gnu/linux during the next big refactor
  14352. else
  14353. version_type=irix
  14354. fi ;;
  14355. esac
  14356. need_lib_prefix=no
  14357. need_version=no
  14358. soname_spec='$libname$release$shared_ext$major'
  14359. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14360. case $host_os in
  14361. irix5* | nonstopux*)
  14362. libsuff= shlibsuff=
  14363. ;;
  14364. *)
  14365. case $LD in # libtool.m4 will add one of these switches to LD
  14366. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14367. libsuff= shlibsuff= libmagic=32-bit;;
  14368. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14369. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14370. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14371. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14372. *) libsuff= shlibsuff= libmagic=never-match;;
  14373. esac
  14374. ;;
  14375. esac
  14376. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14377. shlibpath_overrides_runpath=no
  14378. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14379. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14380. hardcode_into_libs=yes
  14381. ;;
  14382. # No shared lib support for Linux oldld, aout, or coff.
  14383. linux*oldld* | linux*aout* | linux*coff*)
  14384. dynamic_linker=no
  14385. ;;
  14386. linux*android*)
  14387. version_type=none # Android doesn't support versioned libraries.
  14388. need_lib_prefix=no
  14389. need_version=no
  14390. library_names_spec='$libname$release$shared_ext'
  14391. soname_spec='$libname$release$shared_ext'
  14392. finish_cmds=
  14393. shlibpath_var=LD_LIBRARY_PATH
  14394. shlibpath_overrides_runpath=yes
  14395. # This implies no fast_install, which is unacceptable.
  14396. # Some rework will be needed to allow for fast_install
  14397. # before this can be enabled.
  14398. hardcode_into_libs=yes
  14399. dynamic_linker='Android linker'
  14400. # Don't embed -rpath directories since the linker doesn't support them.
  14401. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14402. ;;
  14403. # This must be glibc/ELF.
  14404. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14405. version_type=linux # correct to gnu/linux during the next big refactor
  14406. need_lib_prefix=no
  14407. need_version=no
  14408. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14409. soname_spec='$libname$release$shared_ext$major'
  14410. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14411. shlibpath_var=LD_LIBRARY_PATH
  14412. shlibpath_overrides_runpath=no
  14413. # Some binutils ld are patched to set DT_RUNPATH
  14414. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14415. $as_echo_n "(cached) " >&6
  14416. else
  14417. lt_cv_shlibpath_overrides_runpath=no
  14418. save_LDFLAGS=$LDFLAGS
  14419. save_libdir=$libdir
  14420. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14421. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14423. /* end confdefs.h. */
  14424. int
  14425. main ()
  14426. {
  14427. ;
  14428. return 0;
  14429. }
  14430. _ACEOF
  14431. if ac_fn_cxx_try_link "$LINENO"; then :
  14432. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14433. lt_cv_shlibpath_overrides_runpath=yes
  14434. fi
  14435. fi
  14436. rm -f core conftest.err conftest.$ac_objext \
  14437. conftest$ac_exeext conftest.$ac_ext
  14438. LDFLAGS=$save_LDFLAGS
  14439. libdir=$save_libdir
  14440. fi
  14441. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14442. # This implies no fast_install, which is unacceptable.
  14443. # Some rework will be needed to allow for fast_install
  14444. # before this can be enabled.
  14445. hardcode_into_libs=yes
  14446. # Ideally, we could use ldconfig to report *all* directores which are
  14447. # searched for libraries, however this is still not possible. Aside from not
  14448. # being certain /sbin/ldconfig is available, command
  14449. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14450. # even though it is searched at run-time. Try to do the best guess by
  14451. # appending ld.so.conf contents (and includes) to the search path.
  14452. if test -f /etc/ld.so.conf; then
  14453. 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' ' '`
  14454. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14455. fi
  14456. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14457. # powerpc, because MkLinux only supported shared libraries with the
  14458. # GNU dynamic linker. Since this was broken with cross compilers,
  14459. # most powerpc-linux boxes support dynamic linking these days and
  14460. # people can always --disable-shared, the test was removed, and we
  14461. # assume the GNU/Linux dynamic linker is in use.
  14462. dynamic_linker='GNU/Linux ld.so'
  14463. ;;
  14464. netbsd*)
  14465. version_type=sunos
  14466. need_lib_prefix=no
  14467. need_version=no
  14468. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14469. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14470. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14471. dynamic_linker='NetBSD (a.out) ld.so'
  14472. else
  14473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14474. soname_spec='$libname$release$shared_ext$major'
  14475. dynamic_linker='NetBSD ld.elf_so'
  14476. fi
  14477. shlibpath_var=LD_LIBRARY_PATH
  14478. shlibpath_overrides_runpath=yes
  14479. hardcode_into_libs=yes
  14480. ;;
  14481. newsos6)
  14482. version_type=linux # correct to gnu/linux during the next big refactor
  14483. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14484. shlibpath_var=LD_LIBRARY_PATH
  14485. shlibpath_overrides_runpath=yes
  14486. ;;
  14487. *nto* | *qnx*)
  14488. version_type=qnx
  14489. need_lib_prefix=no
  14490. need_version=no
  14491. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14492. soname_spec='$libname$release$shared_ext$major'
  14493. shlibpath_var=LD_LIBRARY_PATH
  14494. shlibpath_overrides_runpath=no
  14495. hardcode_into_libs=yes
  14496. dynamic_linker='ldqnx.so'
  14497. ;;
  14498. openbsd* | bitrig*)
  14499. version_type=sunos
  14500. sys_lib_dlsearch_path_spec=/usr/lib
  14501. need_lib_prefix=no
  14502. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14503. need_version=no
  14504. else
  14505. need_version=yes
  14506. fi
  14507. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14508. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14509. shlibpath_var=LD_LIBRARY_PATH
  14510. shlibpath_overrides_runpath=yes
  14511. ;;
  14512. os2*)
  14513. libname_spec='$name'
  14514. version_type=windows
  14515. shrext_cmds=.dll
  14516. need_version=no
  14517. need_lib_prefix=no
  14518. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14519. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14520. v=$($ECHO $release$versuffix | tr -d .-);
  14521. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14522. $ECHO $n$v`$shared_ext'
  14523. library_names_spec='${libname}_dll.$libext'
  14524. dynamic_linker='OS/2 ld.exe'
  14525. shlibpath_var=BEGINLIBPATH
  14526. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14527. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14528. postinstall_cmds='base_file=`basename \$file`~
  14529. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14530. dldir=$destdir/`dirname \$dlpath`~
  14531. test -d \$dldir || mkdir -p \$dldir~
  14532. $install_prog $dir/$dlname \$dldir/$dlname~
  14533. chmod a+x \$dldir/$dlname~
  14534. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14535. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14536. fi'
  14537. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14538. dlpath=$dir/\$dldll~
  14539. $RM \$dlpath'
  14540. ;;
  14541. osf3* | osf4* | osf5*)
  14542. version_type=osf
  14543. need_lib_prefix=no
  14544. need_version=no
  14545. soname_spec='$libname$release$shared_ext$major'
  14546. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14547. shlibpath_var=LD_LIBRARY_PATH
  14548. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14549. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14550. ;;
  14551. rdos*)
  14552. dynamic_linker=no
  14553. ;;
  14554. solaris*)
  14555. version_type=linux # correct to gnu/linux during the next big refactor
  14556. need_lib_prefix=no
  14557. need_version=no
  14558. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14559. soname_spec='$libname$release$shared_ext$major'
  14560. shlibpath_var=LD_LIBRARY_PATH
  14561. shlibpath_overrides_runpath=yes
  14562. hardcode_into_libs=yes
  14563. # ldd complains unless libraries are executable
  14564. postinstall_cmds='chmod +x $lib'
  14565. ;;
  14566. sunos4*)
  14567. version_type=sunos
  14568. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14569. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14570. shlibpath_var=LD_LIBRARY_PATH
  14571. shlibpath_overrides_runpath=yes
  14572. if test yes = "$with_gnu_ld"; then
  14573. need_lib_prefix=no
  14574. fi
  14575. need_version=yes
  14576. ;;
  14577. sysv4 | sysv4.3*)
  14578. version_type=linux # correct to gnu/linux during the next big refactor
  14579. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14580. soname_spec='$libname$release$shared_ext$major'
  14581. shlibpath_var=LD_LIBRARY_PATH
  14582. case $host_vendor in
  14583. sni)
  14584. shlibpath_overrides_runpath=no
  14585. need_lib_prefix=no
  14586. runpath_var=LD_RUN_PATH
  14587. ;;
  14588. siemens)
  14589. need_lib_prefix=no
  14590. ;;
  14591. motorola)
  14592. need_lib_prefix=no
  14593. need_version=no
  14594. shlibpath_overrides_runpath=no
  14595. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14596. ;;
  14597. esac
  14598. ;;
  14599. sysv4*MP*)
  14600. if test -d /usr/nec; then
  14601. version_type=linux # correct to gnu/linux during the next big refactor
  14602. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14603. soname_spec='$libname$shared_ext.$major'
  14604. shlibpath_var=LD_LIBRARY_PATH
  14605. fi
  14606. ;;
  14607. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14608. version_type=sco
  14609. need_lib_prefix=no
  14610. need_version=no
  14611. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14612. soname_spec='$libname$release$shared_ext$major'
  14613. shlibpath_var=LD_LIBRARY_PATH
  14614. shlibpath_overrides_runpath=yes
  14615. hardcode_into_libs=yes
  14616. if test yes = "$with_gnu_ld"; then
  14617. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14618. else
  14619. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14620. case $host_os in
  14621. sco3.2v5*)
  14622. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14623. ;;
  14624. esac
  14625. fi
  14626. sys_lib_dlsearch_path_spec='/usr/lib'
  14627. ;;
  14628. tpf*)
  14629. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14630. version_type=linux # correct to gnu/linux during the next big refactor
  14631. need_lib_prefix=no
  14632. need_version=no
  14633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14634. shlibpath_var=LD_LIBRARY_PATH
  14635. shlibpath_overrides_runpath=no
  14636. hardcode_into_libs=yes
  14637. ;;
  14638. uts4*)
  14639. version_type=linux # correct to gnu/linux during the next big refactor
  14640. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14641. soname_spec='$libname$release$shared_ext$major'
  14642. shlibpath_var=LD_LIBRARY_PATH
  14643. ;;
  14644. *)
  14645. dynamic_linker=no
  14646. ;;
  14647. esac
  14648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14649. $as_echo "$dynamic_linker" >&6; }
  14650. test no = "$dynamic_linker" && can_build_shared=no
  14651. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14652. if test yes = "$GCC"; then
  14653. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14654. fi
  14655. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14656. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14657. fi
  14658. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14659. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14660. fi
  14661. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14662. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14663. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14664. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14665. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14666. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14668. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14669. hardcode_action_CXX=
  14670. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14671. test -n "$runpath_var_CXX" ||
  14672. test yes = "$hardcode_automatic_CXX"; then
  14673. # We can hardcode non-existent directories.
  14674. if test no != "$hardcode_direct_CXX" &&
  14675. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14676. # have to relink, otherwise we might link with an installed library
  14677. # when we should be linking with a yet-to-be-installed one
  14678. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14679. test no != "$hardcode_minus_L_CXX"; then
  14680. # Linking always hardcodes the temporary library directory.
  14681. hardcode_action_CXX=relink
  14682. else
  14683. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14684. hardcode_action_CXX=immediate
  14685. fi
  14686. else
  14687. # We cannot hardcode anything, or else we can only hardcode existing
  14688. # directories.
  14689. hardcode_action_CXX=unsupported
  14690. fi
  14691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14692. $as_echo "$hardcode_action_CXX" >&6; }
  14693. if test relink = "$hardcode_action_CXX" ||
  14694. test yes = "$inherit_rpath_CXX"; then
  14695. # Fast installation is not supported
  14696. enable_fast_install=no
  14697. elif test yes = "$shlibpath_overrides_runpath" ||
  14698. test no = "$enable_shared"; then
  14699. # Fast installation is not necessary
  14700. enable_fast_install=needless
  14701. fi
  14702. fi # test -n "$compiler"
  14703. CC=$lt_save_CC
  14704. CFLAGS=$lt_save_CFLAGS
  14705. LDCXX=$LD
  14706. LD=$lt_save_LD
  14707. GCC=$lt_save_GCC
  14708. with_gnu_ld=$lt_save_with_gnu_ld
  14709. lt_cv_path_LDCXX=$lt_cv_path_LD
  14710. lt_cv_path_LD=$lt_save_path_LD
  14711. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14712. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14713. fi # test yes != "$_lt_caught_CXX_error"
  14714. ac_ext=cpp
  14715. ac_cpp='$CXXCPP $CPPFLAGS'
  14716. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14717. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14718. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14719. if test "$GCC" = yes; then :
  14720. for flag in -Wall -Wextra; do
  14721. as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  14722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  14723. $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
  14724. if eval \${$as_CACHEVAR+:} false; then :
  14725. $as_echo_n "(cached) " >&6
  14726. else
  14727. ax_check_save_flags=$CXXFLAGS
  14728. CXXFLAGS="$CXXFLAGS -Werror $flag"
  14729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14730. /* end confdefs.h. */
  14731. int main(void) { return 0; }
  14732. _ACEOF
  14733. if ac_fn_cxx_try_compile "$LINENO"; then :
  14734. eval "$as_CACHEVAR=yes"
  14735. else
  14736. eval "$as_CACHEVAR=no"
  14737. fi
  14738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14739. CXXFLAGS=$ax_check_save_flags
  14740. fi
  14741. eval ac_res=\$$as_CACHEVAR
  14742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14743. $as_echo "$ac_res" >&6; }
  14744. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14745. if ${AM_CXXFLAGS+:} false; then :
  14746. case " $AM_CXXFLAGS " in #(
  14747. *" $flag "*) :
  14748. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  14749. (: AM_CXXFLAGS already contains $flag) 2>&5
  14750. ac_status=$?
  14751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14752. test $ac_status = 0; } ;; #(
  14753. *) :
  14754. as_fn_append AM_CXXFLAGS " $flag"
  14755. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  14756. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  14757. ac_status=$?
  14758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14759. test $ac_status = 0; }
  14760. ;;
  14761. esac
  14762. else
  14763. AM_CXXFLAGS=$flag
  14764. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  14765. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  14766. ac_status=$?
  14767. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14768. test $ac_status = 0; }
  14769. fi
  14770. else
  14771. :
  14772. fi
  14773. done
  14774. for flag in -fexceptions; do
  14775. as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  14776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  14777. $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
  14778. if eval \${$as_CACHEVAR+:} false; then :
  14779. $as_echo_n "(cached) " >&6
  14780. else
  14781. ax_check_save_flags=$CXXFLAGS
  14782. CXXFLAGS="$CXXFLAGS -Werror $flag"
  14783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14784. /* end confdefs.h. */
  14785. int main(void) { return 0; }
  14786. _ACEOF
  14787. if ac_fn_cxx_try_compile "$LINENO"; then :
  14788. eval "$as_CACHEVAR=yes"
  14789. else
  14790. eval "$as_CACHEVAR=no"
  14791. fi
  14792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14793. CXXFLAGS=$ax_check_save_flags
  14794. fi
  14795. eval ac_res=\$$as_CACHEVAR
  14796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14797. $as_echo "$ac_res" >&6; }
  14798. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14799. if ${AM_CXXFLAGS+:} false; then :
  14800. case " $AM_CXXFLAGS " in #(
  14801. *" $flag "*) :
  14802. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  14803. (: AM_CXXFLAGS already contains $flag) 2>&5
  14804. ac_status=$?
  14805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14806. test $ac_status = 0; } ;; #(
  14807. *) :
  14808. as_fn_append AM_CXXFLAGS " $flag"
  14809. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  14810. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  14811. ac_status=$?
  14812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14813. test $ac_status = 0; }
  14814. ;;
  14815. esac
  14816. else
  14817. AM_CXXFLAGS=$flag
  14818. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  14819. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  14820. ac_status=$?
  14821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14822. test $ac_status = 0; }
  14823. fi
  14824. else
  14825. :
  14826. fi
  14827. done
  14828. for flag in -fno-strict-aliasing; do
  14829. as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  14831. $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
  14832. if eval \${$as_CACHEVAR+:} false; then :
  14833. $as_echo_n "(cached) " >&6
  14834. else
  14835. ax_check_save_flags=$CXXFLAGS
  14836. CXXFLAGS="$CXXFLAGS -Werror $flag"
  14837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14838. /* end confdefs.h. */
  14839. int main(void) { return 0; }
  14840. _ACEOF
  14841. if ac_fn_cxx_try_compile "$LINENO"; then :
  14842. eval "$as_CACHEVAR=yes"
  14843. else
  14844. eval "$as_CACHEVAR=no"
  14845. fi
  14846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14847. CXXFLAGS=$ax_check_save_flags
  14848. fi
  14849. eval ac_res=\$$as_CACHEVAR
  14850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14851. $as_echo "$ac_res" >&6; }
  14852. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14853. if ${AM_CXXFLAGS+:} false; then :
  14854. case " $AM_CXXFLAGS " in #(
  14855. *" $flag "*) :
  14856. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  14857. (: AM_CXXFLAGS already contains $flag) 2>&5
  14858. ac_status=$?
  14859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14860. test $ac_status = 0; } ;; #(
  14861. *) :
  14862. as_fn_append AM_CXXFLAGS " $flag"
  14863. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  14864. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  14865. ac_status=$?
  14866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14867. test $ac_status = 0; }
  14868. ;;
  14869. esac
  14870. else
  14871. AM_CXXFLAGS=$flag
  14872. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  14873. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  14874. ac_status=$?
  14875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14876. test $ac_status = 0; }
  14877. fi
  14878. else
  14879. :
  14880. fi
  14881. done
  14882. fi
  14883. ac_ext=c
  14884. ac_cpp='$CPP $CPPFLAGS'
  14885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14888. if test "$GCC" = yes; then :
  14889. for flag in -fno-strict-aliasing; do
  14890. as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh`
  14891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
  14892. $as_echo_n "checking whether the linker accepts $flag... " >&6; }
  14893. if eval \${$as_CACHEVAR+:} false; then :
  14894. $as_echo_n "(cached) " >&6
  14895. else
  14896. ax_check_save_flags=$LDFLAGS
  14897. LDFLAGS="$LDFLAGS $flag"
  14898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14899. /* end confdefs.h. */
  14900. int
  14901. main ()
  14902. {
  14903. ;
  14904. return 0;
  14905. }
  14906. _ACEOF
  14907. if ac_fn_c_try_link "$LINENO"; then :
  14908. eval "$as_CACHEVAR=yes"
  14909. else
  14910. eval "$as_CACHEVAR=no"
  14911. fi
  14912. rm -f core conftest.err conftest.$ac_objext \
  14913. conftest$ac_exeext conftest.$ac_ext
  14914. LDFLAGS=$ax_check_save_flags
  14915. fi
  14916. eval ac_res=\$$as_CACHEVAR
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14918. $as_echo "$ac_res" >&6; }
  14919. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  14920. if ${AM_LDFLAGS+:} false; then :
  14921. case " $AM_LDFLAGS " in #(
  14922. *" $flag "*) :
  14923. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
  14924. (: AM_LDFLAGS already contains $flag) 2>&5
  14925. ac_status=$?
  14926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14927. test $ac_status = 0; } ;; #(
  14928. *) :
  14929. as_fn_append AM_LDFLAGS " $flag"
  14930. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  14931. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  14932. ac_status=$?
  14933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14934. test $ac_status = 0; }
  14935. ;;
  14936. esac
  14937. else
  14938. AM_LDFLAGS=$flag
  14939. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  14940. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  14941. ac_status=$?
  14942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14943. test $ac_status = 0; }
  14944. fi
  14945. else
  14946. :
  14947. fi
  14948. done
  14949. fi
  14950. case "$LD" in #(
  14951. *clang*) :
  14952. case "${host_os}" in #(
  14953. *linux*) :
  14954. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
  14955. *) :
  14956. ;;
  14957. esac ;; #(
  14958. *) :
  14959. ;;
  14960. esac
  14961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
  14962. $as_echo_n "checking whether compiler supports visibility... " >&6; }
  14963. if ${expatcfg_cv_compiler_supports_visibility+:} false; then :
  14964. $as_echo_n "(cached) " >&6
  14965. else
  14966. expatcfg_cv_compiler_supports_visibility=no
  14967. OLDFLAGS=$CFLAGS
  14968. as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
  14969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14970. /* end confdefs.h. */
  14971. void __attribute__((visibility("default"))) foo(void);
  14972. void foo(void) {}
  14973. _ACEOF
  14974. if ac_fn_c_try_compile "$LINENO"; then :
  14975. expatcfg_cv_compiler_supports_visibility=yes
  14976. fi
  14977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14978. CFLAGS=$OLDFLAGS
  14979. fi
  14980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
  14981. $as_echo "$expatcfg_cv_compiler_supports_visibility" >&6; }
  14982. if test "$expatcfg_cv_compiler_supports_visibility" = yes; then :
  14983. if ${AM_CFLAGS+:} false; then :
  14984. case " $AM_CFLAGS " in #(
  14985. *" -fvisibility=hidden "*) :
  14986. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -fvisibility=hidden"; } >&5
  14987. (: AM_CFLAGS already contains -fvisibility=hidden) 2>&5
  14988. ac_status=$?
  14989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14990. test $ac_status = 0; } ;; #(
  14991. *) :
  14992. as_fn_append AM_CFLAGS " -fvisibility=hidden"
  14993. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  14994. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  14995. ac_status=$?
  14996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14997. test $ac_status = 0; }
  14998. ;;
  14999. esac
  15000. else
  15001. AM_CFLAGS=-fvisibility=hidden
  15002. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  15003. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  15004. ac_status=$?
  15005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15006. test $ac_status = 0; }
  15007. fi
  15008. if ${AM_CPPFLAGS+:} false; then :
  15009. case " $AM_CPPFLAGS " in #(
  15010. *" -DXML_ENABLE_VISIBILITY=1 "*) :
  15011. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
  15012. (: AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
  15013. ac_status=$?
  15014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15015. test $ac_status = 0; } ;; #(
  15016. *) :
  15017. as_fn_append AM_CPPFLAGS " -DXML_ENABLE_VISIBILITY=1"
  15018. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  15019. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  15020. ac_status=$?
  15021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15022. test $ac_status = 0; }
  15023. ;;
  15024. esac
  15025. else
  15026. AM_CPPFLAGS=-DXML_ENABLE_VISIBILITY=1
  15027. { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  15028. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  15029. ac_status=$?
  15030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15031. test $ac_status = 0; }
  15032. fi
  15033. fi
  15034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15035. $as_echo_n "checking for ANSI C header files... " >&6; }
  15036. if ${ac_cv_header_stdc+:} false; then :
  15037. $as_echo_n "(cached) " >&6
  15038. else
  15039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15040. /* end confdefs.h. */
  15041. #include <stdlib.h>
  15042. #include <stdarg.h>
  15043. #include <string.h>
  15044. #include <float.h>
  15045. int
  15046. main ()
  15047. {
  15048. ;
  15049. return 0;
  15050. }
  15051. _ACEOF
  15052. if ac_fn_c_try_compile "$LINENO"; then :
  15053. ac_cv_header_stdc=yes
  15054. else
  15055. ac_cv_header_stdc=no
  15056. fi
  15057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15058. if test $ac_cv_header_stdc = yes; then
  15059. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15061. /* end confdefs.h. */
  15062. #include <string.h>
  15063. _ACEOF
  15064. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15065. $EGREP "memchr" >/dev/null 2>&1; then :
  15066. else
  15067. ac_cv_header_stdc=no
  15068. fi
  15069. rm -f conftest*
  15070. fi
  15071. if test $ac_cv_header_stdc = yes; then
  15072. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15074. /* end confdefs.h. */
  15075. #include <stdlib.h>
  15076. _ACEOF
  15077. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15078. $EGREP "free" >/dev/null 2>&1; then :
  15079. else
  15080. ac_cv_header_stdc=no
  15081. fi
  15082. rm -f conftest*
  15083. fi
  15084. if test $ac_cv_header_stdc = yes; then
  15085. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15086. if test "$cross_compiling" = yes; then :
  15087. :
  15088. else
  15089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15090. /* end confdefs.h. */
  15091. #include <ctype.h>
  15092. #include <stdlib.h>
  15093. #if ((' ' & 0x0FF) == 0x020)
  15094. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15095. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15096. #else
  15097. # define ISLOWER(c) \
  15098. (('a' <= (c) && (c) <= 'i') \
  15099. || ('j' <= (c) && (c) <= 'r') \
  15100. || ('s' <= (c) && (c) <= 'z'))
  15101. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15102. #endif
  15103. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15104. int
  15105. main ()
  15106. {
  15107. int i;
  15108. for (i = 0; i < 256; i++)
  15109. if (XOR (islower (i), ISLOWER (i))
  15110. || toupper (i) != TOUPPER (i))
  15111. return 2;
  15112. return 0;
  15113. }
  15114. _ACEOF
  15115. if ac_fn_c_try_run "$LINENO"; then :
  15116. else
  15117. ac_cv_header_stdc=no
  15118. fi
  15119. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15120. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15121. fi
  15122. fi
  15123. fi
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15125. $as_echo "$ac_cv_header_stdc" >&6; }
  15126. if test $ac_cv_header_stdc = yes; then
  15127. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15128. fi
  15129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  15130. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  15131. if ${ac_cv_c_bigendian+:} false; then :
  15132. $as_echo_n "(cached) " >&6
  15133. else
  15134. ac_cv_c_bigendian=unknown
  15135. # See if we're dealing with a universal compiler.
  15136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15137. /* end confdefs.h. */
  15138. #ifndef __APPLE_CC__
  15139. not a universal capable compiler
  15140. #endif
  15141. typedef int dummy;
  15142. _ACEOF
  15143. if ac_fn_c_try_compile "$LINENO"; then :
  15144. # Check for potential -arch flags. It is not universal unless
  15145. # there are at least two -arch flags with different values.
  15146. ac_arch=
  15147. ac_prev=
  15148. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  15149. if test -n "$ac_prev"; then
  15150. case $ac_word in
  15151. i?86 | x86_64 | ppc | ppc64)
  15152. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  15153. ac_arch=$ac_word
  15154. else
  15155. ac_cv_c_bigendian=universal
  15156. break
  15157. fi
  15158. ;;
  15159. esac
  15160. ac_prev=
  15161. elif test "x$ac_word" = "x-arch"; then
  15162. ac_prev=arch
  15163. fi
  15164. done
  15165. fi
  15166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15167. if test $ac_cv_c_bigendian = unknown; then
  15168. # See if sys/param.h defines the BYTE_ORDER macro.
  15169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15170. /* end confdefs.h. */
  15171. #include <sys/types.h>
  15172. #include <sys/param.h>
  15173. int
  15174. main ()
  15175. {
  15176. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  15177. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  15178. && LITTLE_ENDIAN)
  15179. bogus endian macros
  15180. #endif
  15181. ;
  15182. return 0;
  15183. }
  15184. _ACEOF
  15185. if ac_fn_c_try_compile "$LINENO"; then :
  15186. # It does; now see whether it defined to BIG_ENDIAN or not.
  15187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15188. /* end confdefs.h. */
  15189. #include <sys/types.h>
  15190. #include <sys/param.h>
  15191. int
  15192. main ()
  15193. {
  15194. #if BYTE_ORDER != BIG_ENDIAN
  15195. not big endian
  15196. #endif
  15197. ;
  15198. return 0;
  15199. }
  15200. _ACEOF
  15201. if ac_fn_c_try_compile "$LINENO"; then :
  15202. ac_cv_c_bigendian=yes
  15203. else
  15204. ac_cv_c_bigendian=no
  15205. fi
  15206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15207. fi
  15208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15209. fi
  15210. if test $ac_cv_c_bigendian = unknown; then
  15211. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  15212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15213. /* end confdefs.h. */
  15214. #include <limits.h>
  15215. int
  15216. main ()
  15217. {
  15218. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  15219. bogus endian macros
  15220. #endif
  15221. ;
  15222. return 0;
  15223. }
  15224. _ACEOF
  15225. if ac_fn_c_try_compile "$LINENO"; then :
  15226. # It does; now see whether it defined to _BIG_ENDIAN or not.
  15227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15228. /* end confdefs.h. */
  15229. #include <limits.h>
  15230. int
  15231. main ()
  15232. {
  15233. #ifndef _BIG_ENDIAN
  15234. not big endian
  15235. #endif
  15236. ;
  15237. return 0;
  15238. }
  15239. _ACEOF
  15240. if ac_fn_c_try_compile "$LINENO"; then :
  15241. ac_cv_c_bigendian=yes
  15242. else
  15243. ac_cv_c_bigendian=no
  15244. fi
  15245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15246. fi
  15247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15248. fi
  15249. if test $ac_cv_c_bigendian = unknown; then
  15250. # Compile a test program.
  15251. if test "$cross_compiling" = yes; then :
  15252. # Try to guess by grepping values from an object file.
  15253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15254. /* end confdefs.h. */
  15255. short int ascii_mm[] =
  15256. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  15257. short int ascii_ii[] =
  15258. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  15259. int use_ascii (int i) {
  15260. return ascii_mm[i] + ascii_ii[i];
  15261. }
  15262. short int ebcdic_ii[] =
  15263. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  15264. short int ebcdic_mm[] =
  15265. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  15266. int use_ebcdic (int i) {
  15267. return ebcdic_mm[i] + ebcdic_ii[i];
  15268. }
  15269. extern int foo;
  15270. int
  15271. main ()
  15272. {
  15273. return use_ascii (foo) == use_ebcdic (foo);
  15274. ;
  15275. return 0;
  15276. }
  15277. _ACEOF
  15278. if ac_fn_c_try_compile "$LINENO"; then :
  15279. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  15280. ac_cv_c_bigendian=yes
  15281. fi
  15282. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  15283. if test "$ac_cv_c_bigendian" = unknown; then
  15284. ac_cv_c_bigendian=no
  15285. else
  15286. # finding both strings is unlikely to happen, but who knows?
  15287. ac_cv_c_bigendian=unknown
  15288. fi
  15289. fi
  15290. fi
  15291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15292. else
  15293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15294. /* end confdefs.h. */
  15295. $ac_includes_default
  15296. int
  15297. main ()
  15298. {
  15299. /* Are we little or big endian? From Harbison&Steele. */
  15300. union
  15301. {
  15302. long int l;
  15303. char c[sizeof (long int)];
  15304. } u;
  15305. u.l = 1;
  15306. return u.c[sizeof (long int) - 1] == 1;
  15307. ;
  15308. return 0;
  15309. }
  15310. _ACEOF
  15311. if ac_fn_c_try_run "$LINENO"; then :
  15312. ac_cv_c_bigendian=no
  15313. else
  15314. ac_cv_c_bigendian=yes
  15315. fi
  15316. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15317. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15318. fi
  15319. fi
  15320. fi
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  15322. $as_echo "$ac_cv_c_bigendian" >&6; }
  15323. case $ac_cv_c_bigendian in #(
  15324. yes)
  15325. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  15326. BYTEORDER=4321;; #(
  15327. no)
  15328. BYTEORDER=1234 ;; #(
  15329. universal)
  15330. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  15331. ;; #(
  15332. *)
  15333. as_fn_error $? "unknown endianness
  15334. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  15335. esac
  15336. cat >>confdefs.h <<_ACEOF
  15337. #define BYTEORDER $BYTEORDER
  15338. _ACEOF
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15340. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  15341. if ${ac_cv_c_const+:} false; then :
  15342. $as_echo_n "(cached) " >&6
  15343. else
  15344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15345. /* end confdefs.h. */
  15346. int
  15347. main ()
  15348. {
  15349. #ifndef __cplusplus
  15350. /* Ultrix mips cc rejects this sort of thing. */
  15351. typedef int charset[2];
  15352. const charset cs = { 0, 0 };
  15353. /* SunOS 4.1.1 cc rejects this. */
  15354. char const *const *pcpcc;
  15355. char **ppc;
  15356. /* NEC SVR4.0.2 mips cc rejects this. */
  15357. struct point {int x, y;};
  15358. static struct point const zero = {0,0};
  15359. /* AIX XL C 1.02.0.0 rejects this.
  15360. It does not let you subtract one const X* pointer from another in
  15361. an arm of an if-expression whose if-part is not a constant
  15362. expression */
  15363. const char *g = "string";
  15364. pcpcc = &g + (g ? g-g : 0);
  15365. /* HPUX 7.0 cc rejects these. */
  15366. ++pcpcc;
  15367. ppc = (char**) pcpcc;
  15368. pcpcc = (char const *const *) ppc;
  15369. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15370. char tx;
  15371. char *t = &tx;
  15372. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15373. *t++ = 0;
  15374. if (s) return 0;
  15375. }
  15376. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15377. int x[] = {25, 17};
  15378. const int *foo = &x[0];
  15379. ++foo;
  15380. }
  15381. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15382. typedef const int *iptr;
  15383. iptr p = 0;
  15384. ++p;
  15385. }
  15386. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  15387. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15388. struct s { int j; const int *ap[3]; } bx;
  15389. struct s *b = &bx; b->j = 5;
  15390. }
  15391. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15392. const int foo = 10;
  15393. if (!foo) return 0;
  15394. }
  15395. return !cs[0] && !zero.x;
  15396. #endif
  15397. ;
  15398. return 0;
  15399. }
  15400. _ACEOF
  15401. if ac_fn_c_try_compile "$LINENO"; then :
  15402. ac_cv_c_const=yes
  15403. else
  15404. ac_cv_c_const=no
  15405. fi
  15406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15407. fi
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15409. $as_echo "$ac_cv_c_const" >&6; }
  15410. if test $ac_cv_c_const = no; then
  15411. $as_echo "#define const /**/" >>confdefs.h
  15412. fi
  15413. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  15414. if test "x$ac_cv_type_size_t" = xyes; then :
  15415. else
  15416. cat >>confdefs.h <<_ACEOF
  15417. #define size_t unsigned int
  15418. _ACEOF
  15419. fi
  15420. # Check whether --with-xmlwf was given.
  15421. if test "${with_xmlwf+set}" = set; then :
  15422. withval=$with_xmlwf;
  15423. else
  15424. with_xmlwf=yes
  15425. fi
  15426. if test x${with_xmlwf} = xyes; then
  15427. WITH_XMLWF_TRUE=
  15428. WITH_XMLWF_FALSE='#'
  15429. else
  15430. WITH_XMLWF_TRUE='#'
  15431. WITH_XMLWF_FALSE=
  15432. fi
  15433. # Check whether --with-examples was given.
  15434. if test "${with_examples+set}" = set; then :
  15435. withval=$with_examples;
  15436. else
  15437. with_examples=yes
  15438. fi
  15439. if test x${with_examples} = xyes; then
  15440. WITH_EXAMPLES_TRUE=
  15441. WITH_EXAMPLES_FALSE='#'
  15442. else
  15443. WITH_EXAMPLES_TRUE='#'
  15444. WITH_EXAMPLES_FALSE=
  15445. fi
  15446. # Check whether --with-tests was given.
  15447. if test "${with_tests+set}" = set; then :
  15448. withval=$with_tests;
  15449. else
  15450. with_tests=yes
  15451. fi
  15452. if test x${with_tests} = xyes; then
  15453. WITH_TESTS_TRUE=
  15454. WITH_TESTS_FALSE='#'
  15455. else
  15456. WITH_TESTS_TRUE='#'
  15457. WITH_TESTS_FALSE=
  15458. fi
  15459. EXPATCFG_ON_MINGW=no
  15460. case "${host_os}" in #(
  15461. mingw*) :
  15462. EXPATCFG_ON_MINGW=yes
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
  15464. $as_echo "$as_me: detected OS: MinGW" >&6;} ;; #(
  15465. *) :
  15466. ;;
  15467. esac
  15468. if test x${EXPATCFG_ON_MINGW} = xyes; then
  15469. MINGW_TRUE=
  15470. MINGW_FALSE='#'
  15471. else
  15472. MINGW_TRUE='#'
  15473. MINGW_FALSE=
  15474. fi
  15475. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
  15476. UNICODE_TRUE=
  15477. UNICODE_FALSE='#'
  15478. else
  15479. UNICODE_TRUE='#'
  15480. UNICODE_FALSE=
  15481. fi
  15482. # Check whether --with-libbsd was given.
  15483. if test "${with_libbsd+set}" = set; then :
  15484. withval=$with_libbsd;
  15485. else
  15486. with_libbsd=no
  15487. fi
  15488. if test "x${with_libbsd}" != xno; then :
  15489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
  15490. $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
  15491. if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
  15492. $as_echo_n "(cached) " >&6
  15493. else
  15494. ac_check_lib_save_LIBS=$LIBS
  15495. LIBS="-lbsd $LIBS"
  15496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15497. /* end confdefs.h. */
  15498. /* Override any GCC internal prototype to avoid an error.
  15499. Use char because int might match the return type of a GCC
  15500. builtin and then its argument prototype would still apply. */
  15501. #ifdef __cplusplus
  15502. extern "C"
  15503. #endif
  15504. char arc4random_buf ();
  15505. int
  15506. main ()
  15507. {
  15508. return arc4random_buf ();
  15509. ;
  15510. return 0;
  15511. }
  15512. _ACEOF
  15513. if ac_fn_c_try_link "$LINENO"; then :
  15514. ac_cv_lib_bsd_arc4random_buf=yes
  15515. else
  15516. ac_cv_lib_bsd_arc4random_buf=no
  15517. fi
  15518. rm -f core conftest.err conftest.$ac_objext \
  15519. conftest$ac_exeext conftest.$ac_ext
  15520. LIBS=$ac_check_lib_save_LIBS
  15521. fi
  15522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
  15523. $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
  15524. if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
  15525. cat >>confdefs.h <<_ACEOF
  15526. #define HAVE_LIBBSD 1
  15527. _ACEOF
  15528. LIBS="-lbsd $LIBS"
  15529. else
  15530. if test "x${with_libbsd}" = xyes; then :
  15531. as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
  15532. fi
  15533. fi
  15534. fi
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
  15536. $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
  15537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15538. /* end confdefs.h. */
  15539. #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
  15540. #if defined(HAVE_LIBBSD)
  15541. # include <bsd/stdlib.h>
  15542. #endif
  15543. int main() {
  15544. arc4random_buf(NULL, 0U);
  15545. return 0;
  15546. }
  15547. _ACEOF
  15548. if ac_fn_c_try_link "$LINENO"; then :
  15549. $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15551. $as_echo "yes" >&6; }
  15552. else
  15553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15554. $as_echo "no" >&6; }
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5
  15556. $as_echo_n "checking for arc4random (BSD, macOS or libbsd)... " >&6; }
  15557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15558. /* end confdefs.h. */
  15559. #if defined(HAVE_LIBBSD)
  15560. # include <bsd/stdlib.h>
  15561. #else
  15562. # include <stdlib.h>
  15563. #endif
  15564. int main() {
  15565. arc4random();
  15566. return 0;
  15567. }
  15568. _ACEOF
  15569. if ac_fn_c_try_link "$LINENO"; then :
  15570. $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  15571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15572. $as_echo "yes" >&6; }
  15573. else
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15575. $as_echo "no" >&6; }
  15576. fi
  15577. rm -f core conftest.err conftest.$ac_objext \
  15578. conftest$ac_exeext conftest.$ac_ext
  15579. fi
  15580. rm -f core conftest.err conftest.$ac_objext \
  15581. conftest$ac_exeext conftest.$ac_ext
  15582. # Check whether --with-getrandom was given.
  15583. if test "${with_getrandom+set}" = set; then :
  15584. withval=$with_getrandom;
  15585. else
  15586. with_getrandom=check
  15587. fi
  15588. if test "x$with_getrandom" != xno; then :
  15589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  15590. $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  15591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15592. /* end confdefs.h. */
  15593. #include <stdlib.h> /* for NULL */
  15594. #include <sys/random.h>
  15595. int main() {
  15596. return getrandom(NULL, 0U, 0U);
  15597. }
  15598. _ACEOF
  15599. if ac_fn_c_try_link "$LINENO"; then :
  15600. $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
  15601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15602. $as_echo "yes" >&6; }
  15603. else
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15605. $as_echo "no" >&6; }
  15606. if test "x$with_getrandom" = xyes; then :
  15607. as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
  15608. fi
  15609. fi
  15610. rm -f core conftest.err conftest.$ac_objext \
  15611. conftest$ac_exeext conftest.$ac_ext
  15612. fi
  15613. # Check whether --with-sys_getrandom was given.
  15614. if test "${with_sys_getrandom+set}" = set; then :
  15615. withval=$with_sys_getrandom;
  15616. else
  15617. with_sys_getrandom=check
  15618. fi
  15619. if test "x$with_sys_getrandom" != xno; then :
  15620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  15621. $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  15622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15623. /* end confdefs.h. */
  15624. #include <stdlib.h> /* for NULL */
  15625. #include <unistd.h> /* for syscall */
  15626. #include <sys/syscall.h> /* for SYS_getrandom */
  15627. int main() {
  15628. syscall(SYS_getrandom, NULL, 0, 0);
  15629. return 0;
  15630. }
  15631. _ACEOF
  15632. if ac_fn_c_try_link "$LINENO"; then :
  15633. $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  15634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15635. $as_echo "yes" >&6; }
  15636. else
  15637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15638. $as_echo "no" >&6; }
  15639. if test "x$with_sys_getrandom" = xyes; then :
  15640. as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
  15641. fi
  15642. fi
  15643. rm -f core conftest.err conftest.$ac_objext \
  15644. conftest$ac_exeext conftest.$ac_ext
  15645. fi
  15646. for ac_header in fcntl.h unistd.h
  15647. do :
  15648. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15649. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15650. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15651. cat >>confdefs.h <<_ACEOF
  15652. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15653. _ACEOF
  15654. fi
  15655. done
  15656. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  15657. if test "x$ac_cv_type_off_t" = xyes; then :
  15658. else
  15659. cat >>confdefs.h <<_ACEOF
  15660. #define off_t long int
  15661. _ACEOF
  15662. fi
  15663. for ac_header in $ac_header_list
  15664. do :
  15665. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15666. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  15667. "
  15668. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15669. cat >>confdefs.h <<_ACEOF
  15670. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15671. _ACEOF
  15672. fi
  15673. done
  15674. for ac_func in getpagesize
  15675. do :
  15676. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  15677. if test "x$ac_cv_func_getpagesize" = xyes; then :
  15678. cat >>confdefs.h <<_ACEOF
  15679. #define HAVE_GETPAGESIZE 1
  15680. _ACEOF
  15681. fi
  15682. done
  15683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  15684. $as_echo_n "checking for working mmap... " >&6; }
  15685. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  15686. $as_echo_n "(cached) " >&6
  15687. else
  15688. if test "$cross_compiling" = yes; then :
  15689. ac_cv_func_mmap_fixed_mapped=no
  15690. else
  15691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15692. /* end confdefs.h. */
  15693. $ac_includes_default
  15694. /* malloc might have been renamed as rpl_malloc. */
  15695. #undef malloc
  15696. /* Thanks to Mike Haertel and Jim Avera for this test.
  15697. Here is a matrix of mmap possibilities:
  15698. mmap private not fixed
  15699. mmap private fixed at somewhere currently unmapped
  15700. mmap private fixed at somewhere already mapped
  15701. mmap shared not fixed
  15702. mmap shared fixed at somewhere currently unmapped
  15703. mmap shared fixed at somewhere already mapped
  15704. For private mappings, we should verify that changes cannot be read()
  15705. back from the file, nor mmap's back from the file at a different
  15706. address. (There have been systems where private was not correctly
  15707. implemented like the infamous i386 svr4.0, and systems where the
  15708. VM page cache was not coherent with the file system buffer cache
  15709. like early versions of FreeBSD and possibly contemporary NetBSD.)
  15710. For shared mappings, we should conversely verify that changes get
  15711. propagated back to all the places they're supposed to be.
  15712. Grep wants private fixed already mapped.
  15713. The main things grep needs to know about mmap are:
  15714. * does it exist and is it safe to write into the mmap'd area
  15715. * how to use it (BSD variants) */
  15716. #include <fcntl.h>
  15717. #include <sys/mman.h>
  15718. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  15719. char *malloc ();
  15720. #endif
  15721. /* This mess was copied from the GNU getpagesize.h. */
  15722. #ifndef HAVE_GETPAGESIZE
  15723. # ifdef _SC_PAGESIZE
  15724. # define getpagesize() sysconf(_SC_PAGESIZE)
  15725. # else /* no _SC_PAGESIZE */
  15726. # ifdef HAVE_SYS_PARAM_H
  15727. # include <sys/param.h>
  15728. # ifdef EXEC_PAGESIZE
  15729. # define getpagesize() EXEC_PAGESIZE
  15730. # else /* no EXEC_PAGESIZE */
  15731. # ifdef NBPG
  15732. # define getpagesize() NBPG * CLSIZE
  15733. # ifndef CLSIZE
  15734. # define CLSIZE 1
  15735. # endif /* no CLSIZE */
  15736. # else /* no NBPG */
  15737. # ifdef NBPC
  15738. # define getpagesize() NBPC
  15739. # else /* no NBPC */
  15740. # ifdef PAGESIZE
  15741. # define getpagesize() PAGESIZE
  15742. # endif /* PAGESIZE */
  15743. # endif /* no NBPC */
  15744. # endif /* no NBPG */
  15745. # endif /* no EXEC_PAGESIZE */
  15746. # else /* no HAVE_SYS_PARAM_H */
  15747. # define getpagesize() 8192 /* punt totally */
  15748. # endif /* no HAVE_SYS_PARAM_H */
  15749. # endif /* no _SC_PAGESIZE */
  15750. #endif /* no HAVE_GETPAGESIZE */
  15751. int
  15752. main ()
  15753. {
  15754. char *data, *data2, *data3;
  15755. const char *cdata2;
  15756. int i, pagesize;
  15757. int fd, fd2;
  15758. pagesize = getpagesize ();
  15759. /* First, make a file with some known garbage in it. */
  15760. data = (char *) malloc (pagesize);
  15761. if (!data)
  15762. return 1;
  15763. for (i = 0; i < pagesize; ++i)
  15764. *(data + i) = rand ();
  15765. umask (0);
  15766. fd = creat ("conftest.mmap", 0600);
  15767. if (fd < 0)
  15768. return 2;
  15769. if (write (fd, data, pagesize) != pagesize)
  15770. return 3;
  15771. close (fd);
  15772. /* Next, check that the tail of a page is zero-filled. File must have
  15773. non-zero length, otherwise we risk SIGBUS for entire page. */
  15774. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  15775. if (fd2 < 0)
  15776. return 4;
  15777. cdata2 = "";
  15778. if (write (fd2, cdata2, 1) != 1)
  15779. return 5;
  15780. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  15781. if (data2 == MAP_FAILED)
  15782. return 6;
  15783. for (i = 0; i < pagesize; ++i)
  15784. if (*(data2 + i))
  15785. return 7;
  15786. close (fd2);
  15787. if (munmap (data2, pagesize))
  15788. return 8;
  15789. /* Next, try to mmap the file at a fixed address which already has
  15790. something else allocated at it. If we can, also make sure that
  15791. we see the same garbage. */
  15792. fd = open ("conftest.mmap", O_RDWR);
  15793. if (fd < 0)
  15794. return 9;
  15795. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15796. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15797. return 10;
  15798. for (i = 0; i < pagesize; ++i)
  15799. if (*(data + i) != *(data2 + i))
  15800. return 11;
  15801. /* Finally, make sure that changes to the mapped area do not
  15802. percolate back to the file as seen by read(). (This is a bug on
  15803. some variants of i386 svr4.0.) */
  15804. for (i = 0; i < pagesize; ++i)
  15805. *(data2 + i) = *(data2 + i) + 1;
  15806. data3 = (char *) malloc (pagesize);
  15807. if (!data3)
  15808. return 12;
  15809. if (read (fd, data3, pagesize) != pagesize)
  15810. return 13;
  15811. for (i = 0; i < pagesize; ++i)
  15812. if (*(data + i) != *(data3 + i))
  15813. return 14;
  15814. close (fd);
  15815. return 0;
  15816. }
  15817. _ACEOF
  15818. if ac_fn_c_try_run "$LINENO"; then :
  15819. ac_cv_func_mmap_fixed_mapped=yes
  15820. else
  15821. ac_cv_func_mmap_fixed_mapped=no
  15822. fi
  15823. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15824. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15825. fi
  15826. fi
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15828. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15829. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15830. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15831. fi
  15832. rm -f conftest.mmap conftest.txt
  15833. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then :
  15834. FILEMAP=unixfilemap
  15835. else
  15836. FILEMAP=readfilemap
  15837. fi
  15838. $as_echo "#define XML_NS 1" >>confdefs.h
  15839. $as_echo "#define XML_DTD 1" >>confdefs.h
  15840. $as_echo "#define XML_DEV_URANDOM 1" >>confdefs.h
  15841. # Check whether --enable-xml-attr-info was given.
  15842. if test "${enable_xml_attr_info+set}" = set; then :
  15843. enableval=$enable_xml_attr_info;
  15844. else
  15845. enable_xml_attr_info=no
  15846. fi
  15847. if test "x${enable_xml_attr_info}" = "xyes"; then :
  15848. $as_echo "#define XML_ATTR_INFO 1" >>confdefs.h
  15849. fi
  15850. # Check whether --enable-xml-context was given.
  15851. if test "${enable_xml_context+set}" = set; then :
  15852. enableval=$enable_xml_context; enable_xml_context=${enableval}
  15853. fi
  15854. if test "x${enable_xml_context}" != "xno"; then :
  15855. if test "x${enable_xml_context}" = "xyes" \
  15856. -o "x${enable_xml_context}" = "x"; then :
  15857. enable_xml_context=1024
  15858. fi
  15859. cat >>confdefs.h <<_ACEOF
  15860. #define XML_CONTEXT_BYTES ${enable_xml_context}
  15861. _ACEOF
  15862. fi
  15863. # Check whether --with-docbook was given.
  15864. if test "${with_docbook+set}" = set; then :
  15865. withval=$with_docbook;
  15866. else
  15867. with_docbook=check
  15868. fi
  15869. if test "x$with_docbook" != xno; then :
  15870. for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
  15871. do
  15872. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15873. set dummy $ac_prog; ac_word=$2
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15875. $as_echo_n "checking for $ac_word... " >&6; }
  15876. if ${ac_cv_prog_DOCBOOK_TO_MAN+:} false; then :
  15877. $as_echo_n "(cached) " >&6
  15878. else
  15879. if test -n "$DOCBOOK_TO_MAN"; then
  15880. ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
  15881. else
  15882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15883. for as_dir in $PATH
  15884. do
  15885. IFS=$as_save_IFS
  15886. test -z "$as_dir" && as_dir=.
  15887. for ac_exec_ext in '' $ac_executable_extensions; do
  15888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15889. ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
  15890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15891. break 2
  15892. fi
  15893. done
  15894. done
  15895. IFS=$as_save_IFS
  15896. fi
  15897. fi
  15898. DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
  15899. if test -n "$DOCBOOK_TO_MAN"; then
  15900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
  15901. $as_echo "$DOCBOOK_TO_MAN" >&6; }
  15902. else
  15903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15904. $as_echo "no" >&6; }
  15905. fi
  15906. test -n "$DOCBOOK_TO_MAN" && break
  15907. done
  15908. fi
  15909. if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes; then :
  15910. as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
  15911. fi
  15912. if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno; then :
  15913. if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase; then :
  15914. as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
  15915. than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  15916. configure to command docbook2x-man of docbook2X.
  15917. Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
  15918. You can also configure using --without-docbook if you can do without a man
  15919. page for xmlwf." "$LINENO" 5
  15920. fi
  15921. fi
  15922. if test "x${DOCBOOK_TO_MAN}" != x; then
  15923. WITH_DOCBOOK_TRUE=
  15924. WITH_DOCBOOK_FALSE='#'
  15925. else
  15926. WITH_DOCBOOK_TRUE='#'
  15927. WITH_DOCBOOK_FALSE=
  15928. fi
  15929. _EXPAT_OUTPUT_NAME="$PACKAGE_NAME"
  15930. ac_config_files="$ac_config_files Makefile expat.pc doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
  15931. ac_config_files="$ac_config_files run.sh"
  15932. cat >confcache <<\_ACEOF
  15933. # This file is a shell script that caches the results of configure
  15934. # tests run on this system so they can be shared between configure
  15935. # scripts and configure runs, see configure's option --config-cache.
  15936. # It is not useful on other systems. If it contains results you don't
  15937. # want to keep, you may remove or edit it.
  15938. #
  15939. # config.status only pays attention to the cache file if you give it
  15940. # the --recheck option to rerun configure.
  15941. #
  15942. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15943. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15944. # following values.
  15945. _ACEOF
  15946. # The following way of writing the cache mishandles newlines in values,
  15947. # but we know of no workaround that is simple, portable, and efficient.
  15948. # So, we kill variables containing newlines.
  15949. # Ultrix sh set writes to stderr and can't be redirected directly,
  15950. # and sets the high bit in the cache file unless we assign to the vars.
  15951. (
  15952. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15953. eval ac_val=\$$ac_var
  15954. case $ac_val in #(
  15955. *${as_nl}*)
  15956. case $ac_var in #(
  15957. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15958. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15959. esac
  15960. case $ac_var in #(
  15961. _ | IFS | as_nl) ;; #(
  15962. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15963. *) { eval $ac_var=; unset $ac_var;} ;;
  15964. esac ;;
  15965. esac
  15966. done
  15967. (set) 2>&1 |
  15968. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15969. *${as_nl}ac_space=\ *)
  15970. # `set' does not quote correctly, so add quotes: double-quote
  15971. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15972. sed -n \
  15973. "s/'/'\\\\''/g;
  15974. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15975. ;; #(
  15976. *)
  15977. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15978. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15979. ;;
  15980. esac |
  15981. sort
  15982. ) |
  15983. sed '
  15984. /^ac_cv_env_/b end
  15985. t clear
  15986. :clear
  15987. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15988. t end
  15989. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15990. :end' >>confcache
  15991. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15992. if test -w "$cache_file"; then
  15993. if test "x$cache_file" != "x/dev/null"; then
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15995. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15996. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15997. cat confcache >"$cache_file"
  15998. else
  15999. case $cache_file in #(
  16000. */* | ?:*)
  16001. mv -f confcache "$cache_file"$$ &&
  16002. mv -f "$cache_file"$$ "$cache_file" ;; #(
  16003. *)
  16004. mv -f confcache "$cache_file" ;;
  16005. esac
  16006. fi
  16007. fi
  16008. else
  16009. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  16010. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16011. fi
  16012. fi
  16013. rm -f confcache
  16014. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16015. # Let make expand exec_prefix.
  16016. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16017. DEFS=-DHAVE_CONFIG_H
  16018. ac_libobjs=
  16019. ac_ltlibobjs=
  16020. U=
  16021. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16022. # 1. Remove the extension, and $U if already installed.
  16023. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16024. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  16025. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16026. # will be set to the directory where LIBOBJS objects are built.
  16027. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16028. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  16029. done
  16030. LIBOBJS=$ac_libobjs
  16031. LTLIBOBJS=$ac_ltlibobjs
  16032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  16033. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  16034. if test -n "$am_sleep_pid"; then
  16035. # Hide warnings about reused PIDs.
  16036. wait $am_sleep_pid 2>/dev/null
  16037. fi
  16038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  16039. $as_echo "done" >&6; }
  16040. if test -n "$EXEEXT"; then
  16041. am__EXEEXT_TRUE=
  16042. am__EXEEXT_FALSE='#'
  16043. else
  16044. am__EXEEXT_TRUE='#'
  16045. am__EXEEXT_FALSE=
  16046. fi
  16047. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16048. as_fn_error $? "conditional \"AMDEP\" was never defined.
  16049. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16050. fi
  16051. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16052. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  16053. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16054. fi
  16055. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  16056. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  16057. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16058. fi
  16059. if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
  16060. as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
  16061. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16062. fi
  16063. if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
  16064. as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
  16065. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16066. fi
  16067. if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
  16068. as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
  16069. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16070. fi
  16071. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  16072. as_fn_error $? "conditional \"MINGW\" was never defined.
  16073. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16074. fi
  16075. if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
  16076. as_fn_error $? "conditional \"UNICODE\" was never defined.
  16077. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16078. fi
  16079. if test -z "${WITH_DOCBOOK_TRUE}" && test -z "${WITH_DOCBOOK_FALSE}"; then
  16080. as_fn_error $? "conditional \"WITH_DOCBOOK\" was never defined.
  16081. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  16082. fi
  16083. : "${CONFIG_STATUS=./config.status}"
  16084. ac_write_fail=0
  16085. ac_clean_files_save=$ac_clean_files
  16086. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16088. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16089. as_write_fail=0
  16090. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16091. #! $SHELL
  16092. # Generated by $as_me.
  16093. # Run this file to recreate the current configuration.
  16094. # Compiler output produced by configure, useful for debugging
  16095. # configure, is in config.log if it exists.
  16096. debug=false
  16097. ac_cs_recheck=false
  16098. ac_cs_silent=false
  16099. SHELL=\${CONFIG_SHELL-$SHELL}
  16100. export SHELL
  16101. _ASEOF
  16102. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16103. ## -------------------- ##
  16104. ## M4sh Initialization. ##
  16105. ## -------------------- ##
  16106. # Be more Bourne compatible
  16107. DUALCASE=1; export DUALCASE # for MKS sh
  16108. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16109. emulate sh
  16110. NULLCMD=:
  16111. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16112. # is contrary to our usage. Disable this feature.
  16113. alias -g '${1+"$@"}'='"$@"'
  16114. setopt NO_GLOB_SUBST
  16115. else
  16116. case `(set -o) 2>/dev/null` in #(
  16117. *posix*) :
  16118. set -o posix ;; #(
  16119. *) :
  16120. ;;
  16121. esac
  16122. fi
  16123. as_nl='
  16124. '
  16125. export as_nl
  16126. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16127. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16128. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16129. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16130. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16131. # but without wasting forks for bash or zsh.
  16132. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16133. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16134. as_echo='print -r --'
  16135. as_echo_n='print -rn --'
  16136. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16137. as_echo='printf %s\n'
  16138. as_echo_n='printf %s'
  16139. else
  16140. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16141. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16142. as_echo_n='/usr/ucb/echo -n'
  16143. else
  16144. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16145. as_echo_n_body='eval
  16146. arg=$1;
  16147. case $arg in #(
  16148. *"$as_nl"*)
  16149. expr "X$arg" : "X\\(.*\\)$as_nl";
  16150. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16151. esac;
  16152. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16153. '
  16154. export as_echo_n_body
  16155. as_echo_n='sh -c $as_echo_n_body as_echo'
  16156. fi
  16157. export as_echo_body
  16158. as_echo='sh -c $as_echo_body as_echo'
  16159. fi
  16160. # The user is always right.
  16161. if test "${PATH_SEPARATOR+set}" != set; then
  16162. PATH_SEPARATOR=:
  16163. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16164. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16165. PATH_SEPARATOR=';'
  16166. }
  16167. fi
  16168. # IFS
  16169. # We need space, tab and new line, in precisely that order. Quoting is
  16170. # there to prevent editors from complaining about space-tab.
  16171. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16172. # splitting by setting IFS to empty value.)
  16173. IFS=" "" $as_nl"
  16174. # Find who we are. Look in the path if we contain no directory separator.
  16175. as_myself=
  16176. case $0 in #((
  16177. *[\\/]* ) as_myself=$0 ;;
  16178. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16179. for as_dir in $PATH
  16180. do
  16181. IFS=$as_save_IFS
  16182. test -z "$as_dir" && as_dir=.
  16183. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16184. done
  16185. IFS=$as_save_IFS
  16186. ;;
  16187. esac
  16188. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16189. # in which case we are not to be found in the path.
  16190. if test "x$as_myself" = x; then
  16191. as_myself=$0
  16192. fi
  16193. if test ! -f "$as_myself"; then
  16194. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16195. exit 1
  16196. fi
  16197. # Unset variables that we do not need and which cause bugs (e.g. in
  16198. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16199. # suppresses any "Segmentation fault" message there. '((' could
  16200. # trigger a bug in pdksh 5.2.14.
  16201. for as_var in BASH_ENV ENV MAIL MAILPATH
  16202. do eval test x\${$as_var+set} = xset \
  16203. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16204. done
  16205. PS1='$ '
  16206. PS2='> '
  16207. PS4='+ '
  16208. # NLS nuisances.
  16209. LC_ALL=C
  16210. export LC_ALL
  16211. LANGUAGE=C
  16212. export LANGUAGE
  16213. # CDPATH.
  16214. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16215. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  16216. # ----------------------------------------
  16217. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16218. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16219. # script with STATUS, using 1 if that was 0.
  16220. as_fn_error ()
  16221. {
  16222. as_status=$1; test $as_status -eq 0 && as_status=1
  16223. if test "$4"; then
  16224. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16225. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16226. fi
  16227. $as_echo "$as_me: error: $2" >&2
  16228. as_fn_exit $as_status
  16229. } # as_fn_error
  16230. # as_fn_set_status STATUS
  16231. # -----------------------
  16232. # Set $? to STATUS, without forking.
  16233. as_fn_set_status ()
  16234. {
  16235. return $1
  16236. } # as_fn_set_status
  16237. # as_fn_exit STATUS
  16238. # -----------------
  16239. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16240. as_fn_exit ()
  16241. {
  16242. set +e
  16243. as_fn_set_status $1
  16244. exit $1
  16245. } # as_fn_exit
  16246. # as_fn_unset VAR
  16247. # ---------------
  16248. # Portably unset VAR.
  16249. as_fn_unset ()
  16250. {
  16251. { eval $1=; unset $1;}
  16252. }
  16253. as_unset=as_fn_unset
  16254. # as_fn_append VAR VALUE
  16255. # ----------------------
  16256. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16257. # advantage of any shell optimizations that allow amortized linear growth over
  16258. # repeated appends, instead of the typical quadratic growth present in naive
  16259. # implementations.
  16260. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16261. eval 'as_fn_append ()
  16262. {
  16263. eval $1+=\$2
  16264. }'
  16265. else
  16266. as_fn_append ()
  16267. {
  16268. eval $1=\$$1\$2
  16269. }
  16270. fi # as_fn_append
  16271. # as_fn_arith ARG...
  16272. # ------------------
  16273. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16274. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16275. # must be portable across $(()) and expr.
  16276. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16277. eval 'as_fn_arith ()
  16278. {
  16279. as_val=$(( $* ))
  16280. }'
  16281. else
  16282. as_fn_arith ()
  16283. {
  16284. as_val=`expr "$@" || test $? -eq 1`
  16285. }
  16286. fi # as_fn_arith
  16287. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16288. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16289. as_expr=expr
  16290. else
  16291. as_expr=false
  16292. fi
  16293. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16294. as_basename=basename
  16295. else
  16296. as_basename=false
  16297. fi
  16298. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16299. as_dirname=dirname
  16300. else
  16301. as_dirname=false
  16302. fi
  16303. as_me=`$as_basename -- "$0" ||
  16304. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16305. X"$0" : 'X\(//\)$' \| \
  16306. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16307. $as_echo X/"$0" |
  16308. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16309. s//\1/
  16310. q
  16311. }
  16312. /^X\/\(\/\/\)$/{
  16313. s//\1/
  16314. q
  16315. }
  16316. /^X\/\(\/\).*/{
  16317. s//\1/
  16318. q
  16319. }
  16320. s/.*/./; q'`
  16321. # Avoid depending upon Character Ranges.
  16322. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16323. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16324. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16325. as_cr_digits='0123456789'
  16326. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16327. ECHO_C= ECHO_N= ECHO_T=
  16328. case `echo -n x` in #(((((
  16329. -n*)
  16330. case `echo 'xy\c'` in
  16331. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16332. xy) ECHO_C='\c';;
  16333. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16334. ECHO_T=' ';;
  16335. esac;;
  16336. *)
  16337. ECHO_N='-n';;
  16338. esac
  16339. rm -f conf$$ conf$$.exe conf$$.file
  16340. if test -d conf$$.dir; then
  16341. rm -f conf$$.dir/conf$$.file
  16342. else
  16343. rm -f conf$$.dir
  16344. mkdir conf$$.dir 2>/dev/null
  16345. fi
  16346. if (echo >conf$$.file) 2>/dev/null; then
  16347. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16348. as_ln_s='ln -s'
  16349. # ... but there are two gotchas:
  16350. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16351. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16352. # In both cases, we have to default to `cp -pR'.
  16353. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16354. as_ln_s='cp -pR'
  16355. elif ln conf$$.file conf$$ 2>/dev/null; then
  16356. as_ln_s=ln
  16357. else
  16358. as_ln_s='cp -pR'
  16359. fi
  16360. else
  16361. as_ln_s='cp -pR'
  16362. fi
  16363. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16364. rmdir conf$$.dir 2>/dev/null
  16365. # as_fn_mkdir_p
  16366. # -------------
  16367. # Create "$as_dir" as a directory, including parents if necessary.
  16368. as_fn_mkdir_p ()
  16369. {
  16370. case $as_dir in #(
  16371. -*) as_dir=./$as_dir;;
  16372. esac
  16373. test -d "$as_dir" || eval $as_mkdir_p || {
  16374. as_dirs=
  16375. while :; do
  16376. case $as_dir in #(
  16377. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16378. *) as_qdir=$as_dir;;
  16379. esac
  16380. as_dirs="'$as_qdir' $as_dirs"
  16381. as_dir=`$as_dirname -- "$as_dir" ||
  16382. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16383. X"$as_dir" : 'X\(//\)[^/]' \| \
  16384. X"$as_dir" : 'X\(//\)$' \| \
  16385. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16386. $as_echo X"$as_dir" |
  16387. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16388. s//\1/
  16389. q
  16390. }
  16391. /^X\(\/\/\)[^/].*/{
  16392. s//\1/
  16393. q
  16394. }
  16395. /^X\(\/\/\)$/{
  16396. s//\1/
  16397. q
  16398. }
  16399. /^X\(\/\).*/{
  16400. s//\1/
  16401. q
  16402. }
  16403. s/.*/./; q'`
  16404. test -d "$as_dir" && break
  16405. done
  16406. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16407. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16408. } # as_fn_mkdir_p
  16409. if mkdir -p . 2>/dev/null; then
  16410. as_mkdir_p='mkdir -p "$as_dir"'
  16411. else
  16412. test -d ./-p && rmdir ./-p
  16413. as_mkdir_p=false
  16414. fi
  16415. # as_fn_executable_p FILE
  16416. # -----------------------
  16417. # Test if FILE is an executable regular file.
  16418. as_fn_executable_p ()
  16419. {
  16420. test -f "$1" && test -x "$1"
  16421. } # as_fn_executable_p
  16422. as_test_x='test -x'
  16423. as_executable_p=as_fn_executable_p
  16424. # Sed expression to map a string onto a valid CPP name.
  16425. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16426. # Sed expression to map a string onto a valid variable name.
  16427. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16428. exec 6>&1
  16429. ## ----------------------------------- ##
  16430. ## Main body of $CONFIG_STATUS script. ##
  16431. ## ----------------------------------- ##
  16432. _ASEOF
  16433. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16434. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16435. # Save the log message, to keep $0 and so on meaningful, and to
  16436. # report actual input values of CONFIG_FILES etc. instead of their
  16437. # values after options handling.
  16438. ac_log="
  16439. This file was extended by expat $as_me 2.2.10, which was
  16440. generated by GNU Autoconf 2.69. Invocation command line was
  16441. CONFIG_FILES = $CONFIG_FILES
  16442. CONFIG_HEADERS = $CONFIG_HEADERS
  16443. CONFIG_LINKS = $CONFIG_LINKS
  16444. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16445. $ $0 $@
  16446. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16447. "
  16448. _ACEOF
  16449. case $ac_config_files in *"
  16450. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16451. esac
  16452. case $ac_config_headers in *"
  16453. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  16454. esac
  16455. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16456. # Files that config.status was made for.
  16457. config_files="$ac_config_files"
  16458. config_headers="$ac_config_headers"
  16459. config_commands="$ac_config_commands"
  16460. _ACEOF
  16461. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16462. ac_cs_usage="\
  16463. \`$as_me' instantiates files and other configuration actions
  16464. from templates according to the current configuration. Unless the files
  16465. and actions are specified as TAGs, all are instantiated by default.
  16466. Usage: $0 [OPTION]... [TAG]...
  16467. -h, --help print this help, then exit
  16468. -V, --version print version number and configuration settings, then exit
  16469. --config print configuration, then exit
  16470. -q, --quiet, --silent
  16471. do not print progress messages
  16472. -d, --debug don't remove temporary files
  16473. --recheck update $as_me by reconfiguring in the same conditions
  16474. --file=FILE[:TEMPLATE]
  16475. instantiate the configuration file FILE
  16476. --header=FILE[:TEMPLATE]
  16477. instantiate the configuration header FILE
  16478. Configuration files:
  16479. $config_files
  16480. Configuration headers:
  16481. $config_headers
  16482. Configuration commands:
  16483. $config_commands
  16484. Report bugs to <[email protected]>."
  16485. _ACEOF
  16486. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16487. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16488. ac_cs_version="\\
  16489. expat config.status 2.2.10
  16490. configured by $0, generated by GNU Autoconf 2.69,
  16491. with options \\"\$ac_cs_config\\"
  16492. Copyright (C) 2012 Free Software Foundation, Inc.
  16493. This config.status script is free software; the Free Software Foundation
  16494. gives unlimited permission to copy, distribute and modify it."
  16495. ac_pwd='$ac_pwd'
  16496. srcdir='$srcdir'
  16497. INSTALL='$INSTALL'
  16498. MKDIR_P='$MKDIR_P'
  16499. AWK='$AWK'
  16500. test -n "\$AWK" || AWK=awk
  16501. _ACEOF
  16502. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16503. # The default lists apply if the user does not specify any file.
  16504. ac_need_defaults=:
  16505. while test $# != 0
  16506. do
  16507. case $1 in
  16508. --*=?*)
  16509. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16510. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16511. ac_shift=:
  16512. ;;
  16513. --*=)
  16514. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16515. ac_optarg=
  16516. ac_shift=:
  16517. ;;
  16518. *)
  16519. ac_option=$1
  16520. ac_optarg=$2
  16521. ac_shift=shift
  16522. ;;
  16523. esac
  16524. case $ac_option in
  16525. # Handling of the options.
  16526. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16527. ac_cs_recheck=: ;;
  16528. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16529. $as_echo "$ac_cs_version"; exit ;;
  16530. --config | --confi | --conf | --con | --co | --c )
  16531. $as_echo "$ac_cs_config"; exit ;;
  16532. --debug | --debu | --deb | --de | --d | -d )
  16533. debug=: ;;
  16534. --file | --fil | --fi | --f )
  16535. $ac_shift
  16536. case $ac_optarg in
  16537. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16538. '') as_fn_error $? "missing file argument" ;;
  16539. esac
  16540. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16541. ac_need_defaults=false;;
  16542. --header | --heade | --head | --hea )
  16543. $ac_shift
  16544. case $ac_optarg in
  16545. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16546. esac
  16547. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16548. ac_need_defaults=false;;
  16549. --he | --h)
  16550. # Conflict between --help and --header
  16551. as_fn_error $? "ambiguous option: \`$1'
  16552. Try \`$0 --help' for more information.";;
  16553. --help | --hel | -h )
  16554. $as_echo "$ac_cs_usage"; exit ;;
  16555. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16556. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16557. ac_cs_silent=: ;;
  16558. # This is an error.
  16559. -*) as_fn_error $? "unrecognized option: \`$1'
  16560. Try \`$0 --help' for more information." ;;
  16561. *) as_fn_append ac_config_targets " $1"
  16562. ac_need_defaults=false ;;
  16563. esac
  16564. shift
  16565. done
  16566. ac_configure_extra_args=
  16567. if $ac_cs_silent; then
  16568. exec 6>/dev/null
  16569. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16570. fi
  16571. _ACEOF
  16572. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16573. if \$ac_cs_recheck; then
  16574. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16575. shift
  16576. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16577. CONFIG_SHELL='$SHELL'
  16578. export CONFIG_SHELL
  16579. exec "\$@"
  16580. fi
  16581. _ACEOF
  16582. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16583. exec 5>>config.log
  16584. {
  16585. echo
  16586. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16587. ## Running $as_me. ##
  16588. _ASBOX
  16589. $as_echo "$ac_log"
  16590. } >&5
  16591. _ACEOF
  16592. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16593. #
  16594. # INIT-COMMANDS
  16595. #
  16596. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  16597. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16598. # if CDPATH is set.
  16599. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16600. sed_quote_subst='$sed_quote_subst'
  16601. double_quote_subst='$double_quote_subst'
  16602. delay_variable_subst='$delay_variable_subst'
  16603. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16604. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16605. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  16606. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16607. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16608. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16609. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16610. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16611. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16612. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  16613. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16614. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16615. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16616. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16617. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16618. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16619. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16620. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16621. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16622. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16623. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16624. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16625. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16626. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16627. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16628. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16629. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16630. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16631. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16632. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16633. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16634. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16635. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16636. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16637. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16638. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16639. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16640. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16641. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16642. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16643. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16644. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16645. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16646. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16647. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16648. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16649. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16650. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16651. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16652. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16653. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16654. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16655. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16656. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16657. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16658. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16659. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16660. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  16661. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16662. 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"`'
  16663. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  16664. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16665. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16666. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  16667. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16668. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16669. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16670. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16671. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16672. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16673. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16674. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16675. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16676. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16677. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16678. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16679. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16680. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16681. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16682. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16683. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16684. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16685. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16686. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16687. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16688. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16689. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16690. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16691. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16692. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16693. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16694. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16695. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16696. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16697. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16698. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16699. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16700. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16701. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16702. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16703. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16704. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16705. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16706. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16707. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16708. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16709. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16710. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16711. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16712. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16713. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16714. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16715. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16716. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16717. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16718. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16719. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16720. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16721. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16722. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16723. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16724. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16725. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16726. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16727. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16728. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16729. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16730. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16731. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  16732. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  16733. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16734. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16735. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16736. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16737. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16738. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16739. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16740. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16741. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16742. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16743. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16744. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16745. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16746. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16747. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16748. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16749. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16750. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16751. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16752. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16753. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16754. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16755. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16756. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16757. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16758. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16759. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16760. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16761. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16762. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16763. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16764. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16765. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16766. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16767. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16768. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16769. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16770. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16771. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16772. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16773. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16774. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16775. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16776. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16777. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16778. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16779. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16780. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16781. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16782. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16783. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16784. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16785. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16786. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16787. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16788. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16789. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16790. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16791. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16792. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16793. LTCC='$LTCC'
  16794. LTCFLAGS='$LTCFLAGS'
  16795. compiler='$compiler_DEFAULT'
  16796. # A function that is used when there is no print builtin or printf.
  16797. func_fallback_echo ()
  16798. {
  16799. eval 'cat <<_LTECHO_EOF
  16800. \$1
  16801. _LTECHO_EOF'
  16802. }
  16803. # Quote evaled strings.
  16804. for var in AS \
  16805. DLLTOOL \
  16806. OBJDUMP \
  16807. SHELL \
  16808. ECHO \
  16809. PATH_SEPARATOR \
  16810. SED \
  16811. GREP \
  16812. EGREP \
  16813. FGREP \
  16814. LD \
  16815. NM \
  16816. LN_S \
  16817. lt_SP2NL \
  16818. lt_NL2SP \
  16819. reload_flag \
  16820. deplibs_check_method \
  16821. file_magic_cmd \
  16822. file_magic_glob \
  16823. want_nocaseglob \
  16824. sharedlib_from_linklib_cmd \
  16825. AR \
  16826. AR_FLAGS \
  16827. archiver_list_spec \
  16828. STRIP \
  16829. RANLIB \
  16830. CC \
  16831. CFLAGS \
  16832. compiler \
  16833. lt_cv_sys_global_symbol_pipe \
  16834. lt_cv_sys_global_symbol_to_cdecl \
  16835. lt_cv_sys_global_symbol_to_import \
  16836. lt_cv_sys_global_symbol_to_c_name_address \
  16837. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16838. lt_cv_nm_interface \
  16839. nm_file_list_spec \
  16840. lt_cv_truncate_bin \
  16841. lt_prog_compiler_no_builtin_flag \
  16842. lt_prog_compiler_pic \
  16843. lt_prog_compiler_wl \
  16844. lt_prog_compiler_static \
  16845. lt_cv_prog_compiler_c_o \
  16846. need_locks \
  16847. MANIFEST_TOOL \
  16848. DSYMUTIL \
  16849. NMEDIT \
  16850. LIPO \
  16851. OTOOL \
  16852. OTOOL64 \
  16853. shrext_cmds \
  16854. export_dynamic_flag_spec \
  16855. whole_archive_flag_spec \
  16856. compiler_needs_object \
  16857. with_gnu_ld \
  16858. allow_undefined_flag \
  16859. no_undefined_flag \
  16860. hardcode_libdir_flag_spec \
  16861. hardcode_libdir_separator \
  16862. exclude_expsyms \
  16863. include_expsyms \
  16864. file_list_spec \
  16865. variables_saved_for_relink \
  16866. libname_spec \
  16867. library_names_spec \
  16868. soname_spec \
  16869. install_override_mode \
  16870. finish_eval \
  16871. old_striplib \
  16872. striplib \
  16873. compiler_lib_search_dirs \
  16874. predep_objects \
  16875. postdep_objects \
  16876. predeps \
  16877. postdeps \
  16878. compiler_lib_search_path \
  16879. LD_CXX \
  16880. reload_flag_CXX \
  16881. compiler_CXX \
  16882. lt_prog_compiler_no_builtin_flag_CXX \
  16883. lt_prog_compiler_pic_CXX \
  16884. lt_prog_compiler_wl_CXX \
  16885. lt_prog_compiler_static_CXX \
  16886. lt_cv_prog_compiler_c_o_CXX \
  16887. export_dynamic_flag_spec_CXX \
  16888. whole_archive_flag_spec_CXX \
  16889. compiler_needs_object_CXX \
  16890. with_gnu_ld_CXX \
  16891. allow_undefined_flag_CXX \
  16892. no_undefined_flag_CXX \
  16893. hardcode_libdir_flag_spec_CXX \
  16894. hardcode_libdir_separator_CXX \
  16895. exclude_expsyms_CXX \
  16896. include_expsyms_CXX \
  16897. file_list_spec_CXX \
  16898. compiler_lib_search_dirs_CXX \
  16899. predep_objects_CXX \
  16900. postdep_objects_CXX \
  16901. predeps_CXX \
  16902. postdeps_CXX \
  16903. compiler_lib_search_path_CXX; do
  16904. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16905. *[\\\\\\\`\\"\\\$]*)
  16906. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16907. ;;
  16908. *)
  16909. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16910. ;;
  16911. esac
  16912. done
  16913. # Double-quote double-evaled strings.
  16914. for var in reload_cmds \
  16915. old_postinstall_cmds \
  16916. old_postuninstall_cmds \
  16917. old_archive_cmds \
  16918. extract_expsyms_cmds \
  16919. old_archive_from_new_cmds \
  16920. old_archive_from_expsyms_cmds \
  16921. archive_cmds \
  16922. archive_expsym_cmds \
  16923. module_cmds \
  16924. module_expsym_cmds \
  16925. export_symbols_cmds \
  16926. prelink_cmds \
  16927. postlink_cmds \
  16928. postinstall_cmds \
  16929. postuninstall_cmds \
  16930. finish_cmds \
  16931. sys_lib_search_path_spec \
  16932. configure_time_dlsearch_path \
  16933. configure_time_lt_sys_library_path \
  16934. reload_cmds_CXX \
  16935. old_archive_cmds_CXX \
  16936. old_archive_from_new_cmds_CXX \
  16937. old_archive_from_expsyms_cmds_CXX \
  16938. archive_cmds_CXX \
  16939. archive_expsym_cmds_CXX \
  16940. module_cmds_CXX \
  16941. module_expsym_cmds_CXX \
  16942. export_symbols_cmds_CXX \
  16943. prelink_cmds_CXX \
  16944. postlink_cmds_CXX; do
  16945. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16946. *[\\\\\\\`\\"\\\$]*)
  16947. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  16948. ;;
  16949. *)
  16950. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16951. ;;
  16952. esac
  16953. done
  16954. ac_aux_dir='$ac_aux_dir'
  16955. # See if we are running on zsh, and set the options that allow our
  16956. # commands through without removal of \ escapes INIT.
  16957. if test -n "\${ZSH_VERSION+set}"; then
  16958. setopt NO_GLOB_SUBST
  16959. fi
  16960. PACKAGE='$PACKAGE'
  16961. VERSION='$VERSION'
  16962. RM='$RM'
  16963. ofile='$ofile'
  16964. _ACEOF
  16965. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16966. # Handling of arguments.
  16967. for ac_config_target in $ac_config_targets
  16968. do
  16969. case $ac_config_target in
  16970. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  16971. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16972. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16973. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16974. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  16975. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  16976. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  16977. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  16978. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  16979. "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
  16980. "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
  16981. "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
  16982. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16983. esac
  16984. done
  16985. # If the user did not use the arguments to specify the items to instantiate,
  16986. # then the envvar interface is used. Set only those that are not.
  16987. # We use the long form for the default assignment because of an extremely
  16988. # bizarre bug on SunOS 4.1.3.
  16989. if $ac_need_defaults; then
  16990. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16991. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16992. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16993. fi
  16994. # Have a temporary directory for convenience. Make it in the build tree
  16995. # simply because there is no reason against having it here, and in addition,
  16996. # creating and moving files from /tmp can sometimes cause problems.
  16997. # Hook for its removal unless debugging.
  16998. # Note that there is a small window in which the directory will not be cleaned:
  16999. # after its creation but before its name has been assigned to `$tmp'.
  17000. $debug ||
  17001. {
  17002. tmp= ac_tmp=
  17003. trap 'exit_status=$?
  17004. : "${ac_tmp:=$tmp}"
  17005. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  17006. ' 0
  17007. trap 'as_fn_exit 1' 1 2 13 15
  17008. }
  17009. # Create a (secure) tmp directory for tmp files.
  17010. {
  17011. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17012. test -d "$tmp"
  17013. } ||
  17014. {
  17015. tmp=./conf$$-$RANDOM
  17016. (umask 077 && mkdir "$tmp")
  17017. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  17018. ac_tmp=$tmp
  17019. # Set up the scripts for CONFIG_FILES section.
  17020. # No need to generate them if there are no CONFIG_FILES.
  17021. # This happens for instance with `./config.status config.h'.
  17022. if test -n "$CONFIG_FILES"; then
  17023. ac_cr=`echo X | tr X '\015'`
  17024. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  17025. # But we know of no other shell where ac_cr would be empty at this
  17026. # point, so we can use a bashism as a fallback.
  17027. if test "x$ac_cr" = x; then
  17028. eval ac_cr=\$\'\\r\'
  17029. fi
  17030. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  17031. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  17032. ac_cs_awk_cr='\\r'
  17033. else
  17034. ac_cs_awk_cr=$ac_cr
  17035. fi
  17036. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  17037. _ACEOF
  17038. {
  17039. echo "cat >conf$$subs.awk <<_ACEOF" &&
  17040. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  17041. echo "_ACEOF"
  17042. } >conf$$subs.sh ||
  17043. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17044. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  17045. ac_delim='%!_!# '
  17046. for ac_last_try in false false false false false :; do
  17047. . ./conf$$subs.sh ||
  17048. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17049. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  17050. if test $ac_delim_n = $ac_delim_num; then
  17051. break
  17052. elif $ac_last_try; then
  17053. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  17054. else
  17055. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17056. fi
  17057. done
  17058. rm -f conf$$subs.sh
  17059. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17060. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  17061. _ACEOF
  17062. sed -n '
  17063. h
  17064. s/^/S["/; s/!.*/"]=/
  17065. p
  17066. g
  17067. s/^[^!]*!//
  17068. :repl
  17069. t repl
  17070. s/'"$ac_delim"'$//
  17071. t delim
  17072. :nl
  17073. h
  17074. s/\(.\{148\}\)..*/\1/
  17075. t more1
  17076. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  17077. p
  17078. n
  17079. b repl
  17080. :more1
  17081. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17082. p
  17083. g
  17084. s/.\{148\}//
  17085. t nl
  17086. :delim
  17087. h
  17088. s/\(.\{148\}\)..*/\1/
  17089. t more2
  17090. s/["\\]/\\&/g; s/^/"/; s/$/"/
  17091. p
  17092. b
  17093. :more2
  17094. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17095. p
  17096. g
  17097. s/.\{148\}//
  17098. t delim
  17099. ' <conf$$subs.awk | sed '
  17100. /^[^""]/{
  17101. N
  17102. s/\n//
  17103. }
  17104. ' >>$CONFIG_STATUS || ac_write_fail=1
  17105. rm -f conf$$subs.awk
  17106. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17107. _ACAWK
  17108. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  17109. for (key in S) S_is_set[key] = 1
  17110. FS = ""
  17111. }
  17112. {
  17113. line = $ 0
  17114. nfields = split(line, field, "@")
  17115. substed = 0
  17116. len = length(field[1])
  17117. for (i = 2; i < nfields; i++) {
  17118. key = field[i]
  17119. keylen = length(key)
  17120. if (S_is_set[key]) {
  17121. value = S[key]
  17122. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  17123. len += length(value) + length(field[++i])
  17124. substed = 1
  17125. } else
  17126. len += 1 + keylen
  17127. }
  17128. print line
  17129. }
  17130. _ACAWK
  17131. _ACEOF
  17132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17133. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  17134. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  17135. else
  17136. cat
  17137. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  17138. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  17139. _ACEOF
  17140. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  17141. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  17142. # trailing colons and then remove the whole line if VPATH becomes empty
  17143. # (actually we leave an empty line to preserve line numbers).
  17144. if test "x$srcdir" = x.; then
  17145. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  17146. h
  17147. s///
  17148. s/^/:/
  17149. s/[ ]*$/:/
  17150. s/:\$(srcdir):/:/g
  17151. s/:\${srcdir}:/:/g
  17152. s/:@srcdir@:/:/g
  17153. s/^:*//
  17154. s/:*$//
  17155. x
  17156. s/\(=[ ]*\).*/\1/
  17157. G
  17158. s/\n//
  17159. s/^[^=]*=[ ]*$//
  17160. }'
  17161. fi
  17162. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17163. fi # test -n "$CONFIG_FILES"
  17164. # Set up the scripts for CONFIG_HEADERS section.
  17165. # No need to generate them if there are no CONFIG_HEADERS.
  17166. # This happens for instance with `./config.status Makefile'.
  17167. if test -n "$CONFIG_HEADERS"; then
  17168. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  17169. BEGIN {
  17170. _ACEOF
  17171. # Transform confdefs.h into an awk script `defines.awk', embedded as
  17172. # here-document in config.status, that substitutes the proper values into
  17173. # config.h.in to produce config.h.
  17174. # Create a delimiter string that does not exist in confdefs.h, to ease
  17175. # handling of long lines.
  17176. ac_delim='%!_!# '
  17177. for ac_last_try in false false :; do
  17178. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  17179. if test -z "$ac_tt"; then
  17180. break
  17181. elif $ac_last_try; then
  17182. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  17183. else
  17184. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17185. fi
  17186. done
  17187. # For the awk script, D is an array of macro values keyed by name,
  17188. # likewise P contains macro parameters if any. Preserve backslash
  17189. # newline sequences.
  17190. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  17191. sed -n '
  17192. s/.\{148\}/&'"$ac_delim"'/g
  17193. t rset
  17194. :rset
  17195. s/^[ ]*#[ ]*define[ ][ ]*/ /
  17196. t def
  17197. d
  17198. :def
  17199. s/\\$//
  17200. t bsnl
  17201. s/["\\]/\\&/g
  17202. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17203. D["\1"]=" \3"/p
  17204. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  17205. d
  17206. :bsnl
  17207. s/["\\]/\\&/g
  17208. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  17209. D["\1"]=" \3\\\\\\n"\\/p
  17210. t cont
  17211. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  17212. t cont
  17213. d
  17214. :cont
  17215. n
  17216. s/.\{148\}/&'"$ac_delim"'/g
  17217. t clear
  17218. :clear
  17219. s/\\$//
  17220. t bsnlc
  17221. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  17222. d
  17223. :bsnlc
  17224. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  17225. b cont
  17226. ' <confdefs.h | sed '
  17227. s/'"$ac_delim"'/"\\\
  17228. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  17229. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17230. for (key in D) D_is_set[key] = 1
  17231. FS = ""
  17232. }
  17233. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  17234. line = \$ 0
  17235. split(line, arg, " ")
  17236. if (arg[1] == "#") {
  17237. defundef = arg[2]
  17238. mac1 = arg[3]
  17239. } else {
  17240. defundef = substr(arg[1], 2)
  17241. mac1 = arg[2]
  17242. }
  17243. split(mac1, mac2, "(") #)
  17244. macro = mac2[1]
  17245. prefix = substr(line, 1, index(line, defundef) - 1)
  17246. if (D_is_set[macro]) {
  17247. # Preserve the white space surrounding the "#".
  17248. print prefix "define", macro P[macro] D[macro]
  17249. next
  17250. } else {
  17251. # Replace #undef with comments. This is necessary, for example,
  17252. # in the case of _POSIX_SOURCE, which is predefined and required
  17253. # on some systems where configure will not decide to define it.
  17254. if (defundef == "undef") {
  17255. print "/*", prefix defundef, macro, "*/"
  17256. next
  17257. }
  17258. }
  17259. }
  17260. { print }
  17261. _ACAWK
  17262. _ACEOF
  17263. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17264. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  17265. fi # test -n "$CONFIG_HEADERS"
  17266. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  17267. shift
  17268. for ac_tag
  17269. do
  17270. case $ac_tag in
  17271. :[FHLC]) ac_mode=$ac_tag; continue;;
  17272. esac
  17273. case $ac_mode$ac_tag in
  17274. :[FHL]*:*);;
  17275. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17276. :[FH]-) ac_tag=-:-;;
  17277. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17278. esac
  17279. ac_save_IFS=$IFS
  17280. IFS=:
  17281. set x $ac_tag
  17282. IFS=$ac_save_IFS
  17283. shift
  17284. ac_file=$1
  17285. shift
  17286. case $ac_mode in
  17287. :L) ac_source=$1;;
  17288. :[FH])
  17289. ac_file_inputs=
  17290. for ac_f
  17291. do
  17292. case $ac_f in
  17293. -) ac_f="$ac_tmp/stdin";;
  17294. *) # Look for the file first in the build tree, then in the source tree
  17295. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17296. # because $ac_f cannot contain `:'.
  17297. test -f "$ac_f" ||
  17298. case $ac_f in
  17299. [\\/$]*) false;;
  17300. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17301. esac ||
  17302. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17303. esac
  17304. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17305. as_fn_append ac_file_inputs " '$ac_f'"
  17306. done
  17307. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17308. # use $as_me), people would be surprised to read:
  17309. # /* config.h. Generated by config.status. */
  17310. configure_input='Generated from '`
  17311. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17312. `' by configure.'
  17313. if test x"$ac_file" != x-; then
  17314. configure_input="$ac_file. $configure_input"
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17316. $as_echo "$as_me: creating $ac_file" >&6;}
  17317. fi
  17318. # Neutralize special characters interpreted by sed in replacement strings.
  17319. case $configure_input in #(
  17320. *\&* | *\|* | *\\* )
  17321. ac_sed_conf_input=`$as_echo "$configure_input" |
  17322. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17323. *) ac_sed_conf_input=$configure_input;;
  17324. esac
  17325. case $ac_tag in
  17326. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  17327. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  17328. esac
  17329. ;;
  17330. esac
  17331. ac_dir=`$as_dirname -- "$ac_file" ||
  17332. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17333. X"$ac_file" : 'X\(//\)[^/]' \| \
  17334. X"$ac_file" : 'X\(//\)$' \| \
  17335. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17336. $as_echo X"$ac_file" |
  17337. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17338. s//\1/
  17339. q
  17340. }
  17341. /^X\(\/\/\)[^/].*/{
  17342. s//\1/
  17343. q
  17344. }
  17345. /^X\(\/\/\)$/{
  17346. s//\1/
  17347. q
  17348. }
  17349. /^X\(\/\).*/{
  17350. s//\1/
  17351. q
  17352. }
  17353. s/.*/./; q'`
  17354. as_dir="$ac_dir"; as_fn_mkdir_p
  17355. ac_builddir=.
  17356. case "$ac_dir" in
  17357. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17358. *)
  17359. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17360. # A ".." for each directory in $ac_dir_suffix.
  17361. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17362. case $ac_top_builddir_sub in
  17363. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17364. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17365. esac ;;
  17366. esac
  17367. ac_abs_top_builddir=$ac_pwd
  17368. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17369. # for backward compatibility:
  17370. ac_top_builddir=$ac_top_build_prefix
  17371. case $srcdir in
  17372. .) # We are building in place.
  17373. ac_srcdir=.
  17374. ac_top_srcdir=$ac_top_builddir_sub
  17375. ac_abs_top_srcdir=$ac_pwd ;;
  17376. [\\/]* | ?:[\\/]* ) # Absolute name.
  17377. ac_srcdir=$srcdir$ac_dir_suffix;
  17378. ac_top_srcdir=$srcdir
  17379. ac_abs_top_srcdir=$srcdir ;;
  17380. *) # Relative name.
  17381. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17382. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17383. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17384. esac
  17385. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17386. case $ac_mode in
  17387. :F)
  17388. #
  17389. # CONFIG_FILE
  17390. #
  17391. case $INSTALL in
  17392. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17393. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17394. esac
  17395. ac_MKDIR_P=$MKDIR_P
  17396. case $MKDIR_P in
  17397. [\\/$]* | ?:[\\/]* ) ;;
  17398. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17399. esac
  17400. _ACEOF
  17401. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17402. # If the template does not know about datarootdir, expand it.
  17403. # FIXME: This hack should be removed a few years after 2.60.
  17404. ac_datarootdir_hack=; ac_datarootdir_seen=
  17405. ac_sed_dataroot='
  17406. /datarootdir/ {
  17407. p
  17408. q
  17409. }
  17410. /@datadir@/p
  17411. /@docdir@/p
  17412. /@infodir@/p
  17413. /@localedir@/p
  17414. /@mandir@/p'
  17415. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17416. *datarootdir*) ac_datarootdir_seen=yes;;
  17417. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17419. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17420. _ACEOF
  17421. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17422. ac_datarootdir_hack='
  17423. s&@datadir@&$datadir&g
  17424. s&@docdir@&$docdir&g
  17425. s&@infodir@&$infodir&g
  17426. s&@localedir@&$localedir&g
  17427. s&@mandir@&$mandir&g
  17428. s&\\\${datarootdir}&$datarootdir&g' ;;
  17429. esac
  17430. _ACEOF
  17431. # Neutralize VPATH when `$srcdir' = `.'.
  17432. # Shell code in configure.ac might set extrasub.
  17433. # FIXME: do we really want to maintain this feature?
  17434. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17435. ac_sed_extra="$ac_vpsub
  17436. $extrasub
  17437. _ACEOF
  17438. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17439. :t
  17440. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17441. s|@configure_input@|$ac_sed_conf_input|;t t
  17442. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17443. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17444. s&@srcdir@&$ac_srcdir&;t t
  17445. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17446. s&@top_srcdir@&$ac_top_srcdir&;t t
  17447. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17448. s&@builddir@&$ac_builddir&;t t
  17449. s&@abs_builddir@&$ac_abs_builddir&;t t
  17450. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17451. s&@INSTALL@&$ac_INSTALL&;t t
  17452. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17453. $ac_datarootdir_hack
  17454. "
  17455. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17456. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17457. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17458. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17459. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17460. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17462. which seems to be undefined. Please make sure it is defined" >&5
  17463. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17464. which seems to be undefined. Please make sure it is defined" >&2;}
  17465. rm -f "$ac_tmp/stdin"
  17466. case $ac_file in
  17467. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17468. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17469. esac \
  17470. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17471. ;;
  17472. :H)
  17473. #
  17474. # CONFIG_HEADER
  17475. #
  17476. if test x"$ac_file" != x-; then
  17477. {
  17478. $as_echo "/* $configure_input */" \
  17479. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  17480. } >"$ac_tmp/config.h" \
  17481. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17482. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17483. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17484. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17485. else
  17486. rm -f "$ac_file"
  17487. mv "$ac_tmp/config.h" "$ac_file" \
  17488. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17489. fi
  17490. else
  17491. $as_echo "/* $configure_input */" \
  17492. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17493. || as_fn_error $? "could not create -" "$LINENO" 5
  17494. fi
  17495. # Compute "$ac_file"'s index in $config_headers.
  17496. _am_arg="$ac_file"
  17497. _am_stamp_count=1
  17498. for _am_header in $config_headers :; do
  17499. case $_am_header in
  17500. $_am_arg | $_am_arg:* )
  17501. break ;;
  17502. * )
  17503. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17504. esac
  17505. done
  17506. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17507. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17508. X"$_am_arg" : 'X\(//\)[^/]' \| \
  17509. X"$_am_arg" : 'X\(//\)$' \| \
  17510. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17511. $as_echo X"$_am_arg" |
  17512. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17513. s//\1/
  17514. q
  17515. }
  17516. /^X\(\/\/\)[^/].*/{
  17517. s//\1/
  17518. q
  17519. }
  17520. /^X\(\/\/\)$/{
  17521. s//\1/
  17522. q
  17523. }
  17524. /^X\(\/\).*/{
  17525. s//\1/
  17526. q
  17527. }
  17528. s/.*/./; q'`/stamp-h$_am_stamp_count
  17529. ;;
  17530. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17531. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17532. ;;
  17533. esac
  17534. case $ac_file$ac_mode in
  17535. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17536. # Older Autoconf quotes --file arguments for eval, but not when files
  17537. # are listed without --file. Let's play safe and only enable the eval
  17538. # if we detect the quoting.
  17539. # TODO: see whether this extra hack can be removed once we start
  17540. # requiring Autoconf 2.70 or later.
  17541. case $CONFIG_FILES in #(
  17542. *\'*) :
  17543. eval set x "$CONFIG_FILES" ;; #(
  17544. *) :
  17545. set x $CONFIG_FILES ;; #(
  17546. *) :
  17547. ;;
  17548. esac
  17549. shift
  17550. # Used to flag and report bootstrapping failures.
  17551. am_rc=0
  17552. for am_mf
  17553. do
  17554. # Strip MF so we end up with the name of the file.
  17555. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  17556. # Check whether this is an Automake generated Makefile which includes
  17557. # dependency-tracking related rules and includes.
  17558. # Grep'ing the whole file directly is not great: AIX grep has a line
  17559. # limit of 2048, but all sed's we know have understand at least 4000.
  17560. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  17561. || continue
  17562. am_dirpart=`$as_dirname -- "$am_mf" ||
  17563. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17564. X"$am_mf" : 'X\(//\)[^/]' \| \
  17565. X"$am_mf" : 'X\(//\)$' \| \
  17566. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  17567. $as_echo X"$am_mf" |
  17568. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17569. s//\1/
  17570. q
  17571. }
  17572. /^X\(\/\/\)[^/].*/{
  17573. s//\1/
  17574. q
  17575. }
  17576. /^X\(\/\/\)$/{
  17577. s//\1/
  17578. q
  17579. }
  17580. /^X\(\/\).*/{
  17581. s//\1/
  17582. q
  17583. }
  17584. s/.*/./; q'`
  17585. am_filepart=`$as_basename -- "$am_mf" ||
  17586. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  17587. X"$am_mf" : 'X\(//\)$' \| \
  17588. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  17589. $as_echo X/"$am_mf" |
  17590. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17591. s//\1/
  17592. q
  17593. }
  17594. /^X\/\(\/\/\)$/{
  17595. s//\1/
  17596. q
  17597. }
  17598. /^X\/\(\/\).*/{
  17599. s//\1/
  17600. q
  17601. }
  17602. s/.*/./; q'`
  17603. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  17604. && sed -e '/# am--include-marker/d' "$am_filepart" \
  17605. | $MAKE -f - am--depfiles" >&5
  17606. (cd "$am_dirpart" \
  17607. && sed -e '/# am--include-marker/d' "$am_filepart" \
  17608. | $MAKE -f - am--depfiles) >&5 2>&5
  17609. ac_status=$?
  17610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17611. (exit $ac_status); } || am_rc=$?
  17612. done
  17613. if test $am_rc -ne 0; then
  17614. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17615. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17616. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  17617. for automatic dependency tracking. If GNU make was not used, consider
  17618. re-running the configure script with MAKE=\"gmake\" (or whatever is
  17619. necessary). You can also try re-running configure with the
  17620. '--disable-dependency-tracking' option to at least be able to build
  17621. the package (albeit without support for automatic dependency tracking).
  17622. See \`config.log' for more details" "$LINENO" 5; }
  17623. fi
  17624. { am_dirpart=; unset am_dirpart;}
  17625. { am_filepart=; unset am_filepart;}
  17626. { am_mf=; unset am_mf;}
  17627. { am_rc=; unset am_rc;}
  17628. rm -f conftest-deps.mk
  17629. }
  17630. ;;
  17631. "libtool":C)
  17632. # See if we are running on zsh, and set the options that allow our
  17633. # commands through without removal of \ escapes.
  17634. if test -n "${ZSH_VERSION+set}"; then
  17635. setopt NO_GLOB_SUBST
  17636. fi
  17637. cfgfile=${ofile}T
  17638. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17639. $RM "$cfgfile"
  17640. cat <<_LT_EOF >> "$cfgfile"
  17641. #! $SHELL
  17642. # Generated automatically by $as_me ($PACKAGE) $VERSION
  17643. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17644. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17645. # Provide generalized library-building support services.
  17646. # Written by Gordon Matzigkeit, 1996
  17647. # Copyright (C) 2014 Free Software Foundation, Inc.
  17648. # This is free software; see the source for copying conditions. There is NO
  17649. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17650. # GNU Libtool is free software; you can redistribute it and/or modify
  17651. # it under the terms of the GNU General Public License as published by
  17652. # the Free Software Foundation; either version 2 of of the License, or
  17653. # (at your option) any later version.
  17654. #
  17655. # As a special exception to the GNU General Public License, if you
  17656. # distribute this file as part of a program or library that is built
  17657. # using GNU Libtool, you may include this file under the same
  17658. # distribution terms that you use for the rest of that program.
  17659. #
  17660. # GNU Libtool is distributed in the hope that it will be useful, but
  17661. # WITHOUT ANY WARRANTY; without even the implied warranty of
  17662. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17663. # GNU General Public License for more details.
  17664. #
  17665. # You should have received a copy of the GNU General Public License
  17666. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17667. # The names of the tagged configurations supported by this script.
  17668. available_tags='CXX '
  17669. # Configured defaults for sys_lib_dlsearch_path munging.
  17670. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  17671. # ### BEGIN LIBTOOL CONFIG
  17672. # Which release of libtool.m4 was used?
  17673. macro_version=$macro_version
  17674. macro_revision=$macro_revision
  17675. # Assembler program.
  17676. AS=$lt_AS
  17677. # DLL creation program.
  17678. DLLTOOL=$lt_DLLTOOL
  17679. # Object dumper program.
  17680. OBJDUMP=$lt_OBJDUMP
  17681. # Whether or not to build shared libraries.
  17682. build_libtool_libs=$enable_shared
  17683. # Whether or not to build static libraries.
  17684. build_old_libs=$enable_static
  17685. # What type of objects to build.
  17686. pic_mode=$pic_mode
  17687. # Whether or not to optimize for fast installation.
  17688. fast_install=$enable_fast_install
  17689. # Shared archive member basename,for filename based shared library versioning on AIX.
  17690. shared_archive_member_spec=$shared_archive_member_spec
  17691. # Shell to use when invoking shell scripts.
  17692. SHELL=$lt_SHELL
  17693. # An echo program that protects backslashes.
  17694. ECHO=$lt_ECHO
  17695. # The PATH separator for the build system.
  17696. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17697. # The host system.
  17698. host_alias=$host_alias
  17699. host=$host
  17700. host_os=$host_os
  17701. # The build system.
  17702. build_alias=$build_alias
  17703. build=$build
  17704. build_os=$build_os
  17705. # A sed program that does not truncate output.
  17706. SED=$lt_SED
  17707. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17708. Xsed="\$SED -e 1s/^X//"
  17709. # A grep program that handles long lines.
  17710. GREP=$lt_GREP
  17711. # An ERE matcher.
  17712. EGREP=$lt_EGREP
  17713. # A literal string matcher.
  17714. FGREP=$lt_FGREP
  17715. # A BSD- or MS-compatible name lister.
  17716. NM=$lt_NM
  17717. # Whether we need soft or hard links.
  17718. LN_S=$lt_LN_S
  17719. # What is the maximum length of a command?
  17720. max_cmd_len=$max_cmd_len
  17721. # Object file suffix (normally "o").
  17722. objext=$ac_objext
  17723. # Executable file suffix (normally "").
  17724. exeext=$exeext
  17725. # whether the shell understands "unset".
  17726. lt_unset=$lt_unset
  17727. # turn spaces into newlines.
  17728. SP2NL=$lt_lt_SP2NL
  17729. # turn newlines into spaces.
  17730. NL2SP=$lt_lt_NL2SP
  17731. # convert \$build file names to \$host format.
  17732. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17733. # convert \$build files to toolchain format.
  17734. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17735. # Method to check whether dependent libraries are shared objects.
  17736. deplibs_check_method=$lt_deplibs_check_method
  17737. # Command to use when deplibs_check_method = "file_magic".
  17738. file_magic_cmd=$lt_file_magic_cmd
  17739. # How to find potential files when deplibs_check_method = "file_magic".
  17740. file_magic_glob=$lt_file_magic_glob
  17741. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17742. want_nocaseglob=$lt_want_nocaseglob
  17743. # Command to associate shared and link libraries.
  17744. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17745. # The archiver.
  17746. AR=$lt_AR
  17747. # Flags to create an archive.
  17748. AR_FLAGS=$lt_AR_FLAGS
  17749. # How to feed a file listing to the archiver.
  17750. archiver_list_spec=$lt_archiver_list_spec
  17751. # A symbol stripping program.
  17752. STRIP=$lt_STRIP
  17753. # Commands used to install an old-style archive.
  17754. RANLIB=$lt_RANLIB
  17755. old_postinstall_cmds=$lt_old_postinstall_cmds
  17756. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17757. # Whether to use a lock for old archive extraction.
  17758. lock_old_archive_extraction=$lock_old_archive_extraction
  17759. # A C compiler.
  17760. LTCC=$lt_CC
  17761. # LTCC compiler flags.
  17762. LTCFLAGS=$lt_CFLAGS
  17763. # Take the output of nm and produce a listing of raw symbols and C names.
  17764. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17765. # Transform the output of nm in a proper C declaration.
  17766. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17767. # Transform the output of nm into a list of symbols to manually relocate.
  17768. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  17769. # Transform the output of nm in a C name address pair.
  17770. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17771. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17772. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17773. # The name lister interface.
  17774. nm_interface=$lt_lt_cv_nm_interface
  17775. # Specify filename containing input files for \$NM.
  17776. nm_file_list_spec=$lt_nm_file_list_spec
  17777. # The root where to search for dependent libraries,and where our libraries should be installed.
  17778. lt_sysroot=$lt_sysroot
  17779. # Command to truncate a binary pipe.
  17780. lt_truncate_bin=$lt_lt_cv_truncate_bin
  17781. # The name of the directory that contains temporary libtool files.
  17782. objdir=$objdir
  17783. # Used to examine libraries when file_magic_cmd begins with "file".
  17784. MAGIC_CMD=$MAGIC_CMD
  17785. # Must we lock files when doing compilation?
  17786. need_locks=$lt_need_locks
  17787. # Manifest tool.
  17788. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17789. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17790. DSYMUTIL=$lt_DSYMUTIL
  17791. # Tool to change global to local symbols on Mac OS X.
  17792. NMEDIT=$lt_NMEDIT
  17793. # Tool to manipulate fat objects and archives on Mac OS X.
  17794. LIPO=$lt_LIPO
  17795. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17796. OTOOL=$lt_OTOOL
  17797. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17798. OTOOL64=$lt_OTOOL64
  17799. # Old archive suffix (normally "a").
  17800. libext=$libext
  17801. # Shared library suffix (normally ".so").
  17802. shrext_cmds=$lt_shrext_cmds
  17803. # The commands to extract the exported symbol list from a shared archive.
  17804. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17805. # Variables whose values should be saved in libtool wrapper scripts and
  17806. # restored at link time.
  17807. variables_saved_for_relink=$lt_variables_saved_for_relink
  17808. # Do we need the "lib" prefix for modules?
  17809. need_lib_prefix=$need_lib_prefix
  17810. # Do we need a version for libraries?
  17811. need_version=$need_version
  17812. # Library versioning type.
  17813. version_type=$version_type
  17814. # Shared library runtime path variable.
  17815. runpath_var=$runpath_var
  17816. # Shared library path variable.
  17817. shlibpath_var=$shlibpath_var
  17818. # Is shlibpath searched before the hard-coded library search path?
  17819. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17820. # Format of library name prefix.
  17821. libname_spec=$lt_libname_spec
  17822. # List of archive names. First name is the real one, the rest are links.
  17823. # The last name is the one that the linker finds with -lNAME
  17824. library_names_spec=$lt_library_names_spec
  17825. # The coded name of the library, if different from the real name.
  17826. soname_spec=$lt_soname_spec
  17827. # Permission mode override for installation of shared libraries.
  17828. install_override_mode=$lt_install_override_mode
  17829. # Command to use after installation of a shared archive.
  17830. postinstall_cmds=$lt_postinstall_cmds
  17831. # Command to use after uninstallation of a shared archive.
  17832. postuninstall_cmds=$lt_postuninstall_cmds
  17833. # Commands used to finish a libtool library installation in a directory.
  17834. finish_cmds=$lt_finish_cmds
  17835. # As "finish_cmds", except a single script fragment to be evaled but
  17836. # not shown.
  17837. finish_eval=$lt_finish_eval
  17838. # Whether we should hardcode library paths into libraries.
  17839. hardcode_into_libs=$hardcode_into_libs
  17840. # Compile-time system search path for libraries.
  17841. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17842. # Detected run-time system search path for libraries.
  17843. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  17844. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  17845. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  17846. # Whether dlopen is supported.
  17847. dlopen_support=$enable_dlopen
  17848. # Whether dlopen of programs is supported.
  17849. dlopen_self=$enable_dlopen_self
  17850. # Whether dlopen of statically linked programs is supported.
  17851. dlopen_self_static=$enable_dlopen_self_static
  17852. # Commands to strip libraries.
  17853. old_striplib=$lt_old_striplib
  17854. striplib=$lt_striplib
  17855. # The linker used to build libraries.
  17856. LD=$lt_LD
  17857. # How to create reloadable object files.
  17858. reload_flag=$lt_reload_flag
  17859. reload_cmds=$lt_reload_cmds
  17860. # Commands used to build an old-style archive.
  17861. old_archive_cmds=$lt_old_archive_cmds
  17862. # A language specific compiler.
  17863. CC=$lt_compiler
  17864. # Is the compiler the GNU compiler?
  17865. with_gcc=$GCC
  17866. # Compiler flag to turn off builtin functions.
  17867. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17868. # Additional compiler flags for building library objects.
  17869. pic_flag=$lt_lt_prog_compiler_pic
  17870. # How to pass a linker flag through the compiler.
  17871. wl=$lt_lt_prog_compiler_wl
  17872. # Compiler flag to prevent dynamic linking.
  17873. link_static_flag=$lt_lt_prog_compiler_static
  17874. # Does compiler simultaneously support -c and -o options?
  17875. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17876. # Whether or not to add -lc for building shared libraries.
  17877. build_libtool_need_lc=$archive_cmds_need_lc
  17878. # Whether or not to disallow shared libs when runtime libs are static.
  17879. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17880. # Compiler flag to allow reflexive dlopens.
  17881. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17882. # Compiler flag to generate shared objects directly from archives.
  17883. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17884. # Whether the compiler copes with passing no objects directly.
  17885. compiler_needs_object=$lt_compiler_needs_object
  17886. # Create an old-style archive from a shared archive.
  17887. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17888. # Create a temporary old-style archive to link instead of a shared archive.
  17889. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17890. # Commands used to build a shared archive.
  17891. archive_cmds=$lt_archive_cmds
  17892. archive_expsym_cmds=$lt_archive_expsym_cmds
  17893. # Commands used to build a loadable module if different from building
  17894. # a shared archive.
  17895. module_cmds=$lt_module_cmds
  17896. module_expsym_cmds=$lt_module_expsym_cmds
  17897. # Whether we are building with GNU ld or not.
  17898. with_gnu_ld=$lt_with_gnu_ld
  17899. # Flag that allows shared libraries with undefined symbols to be built.
  17900. allow_undefined_flag=$lt_allow_undefined_flag
  17901. # Flag that enforces no undefined symbols.
  17902. no_undefined_flag=$lt_no_undefined_flag
  17903. # Flag to hardcode \$libdir into a binary during linking.
  17904. # This must work even if \$libdir does not exist
  17905. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17906. # Whether we need a single "-rpath" flag with a separated argument.
  17907. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17908. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17909. # DIR into the resulting binary.
  17910. hardcode_direct=$hardcode_direct
  17911. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  17912. # DIR into the resulting binary and the resulting library dependency is
  17913. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  17914. # library is relocated.
  17915. hardcode_direct_absolute=$hardcode_direct_absolute
  17916. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17917. # into the resulting binary.
  17918. hardcode_minus_L=$hardcode_minus_L
  17919. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17920. # into the resulting binary.
  17921. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17922. # Set to "yes" if building a shared library automatically hardcodes DIR
  17923. # into the library and all subsequent libraries and executables linked
  17924. # against it.
  17925. hardcode_automatic=$hardcode_automatic
  17926. # Set to yes if linker adds runtime paths of dependent libraries
  17927. # to runtime path list.
  17928. inherit_rpath=$inherit_rpath
  17929. # Whether libtool must link a program against all its dependency libraries.
  17930. link_all_deplibs=$link_all_deplibs
  17931. # Set to "yes" if exported symbols are required.
  17932. always_export_symbols=$always_export_symbols
  17933. # The commands to list exported symbols.
  17934. export_symbols_cmds=$lt_export_symbols_cmds
  17935. # Symbols that should not be listed in the preloaded symbols.
  17936. exclude_expsyms=$lt_exclude_expsyms
  17937. # Symbols that must always be exported.
  17938. include_expsyms=$lt_include_expsyms
  17939. # Commands necessary for linking programs (against libraries) with templates.
  17940. prelink_cmds=$lt_prelink_cmds
  17941. # Commands necessary for finishing linking programs.
  17942. postlink_cmds=$lt_postlink_cmds
  17943. # Specify filename containing input files.
  17944. file_list_spec=$lt_file_list_spec
  17945. # How to hardcode a shared library path into an executable.
  17946. hardcode_action=$hardcode_action
  17947. # The directories searched by this compiler when creating a shared library.
  17948. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17949. # Dependencies to place before and after the objects being linked to
  17950. # create a shared library.
  17951. predep_objects=$lt_predep_objects
  17952. postdep_objects=$lt_postdep_objects
  17953. predeps=$lt_predeps
  17954. postdeps=$lt_postdeps
  17955. # The library search path used internally by the compiler when linking
  17956. # a shared library.
  17957. compiler_lib_search_path=$lt_compiler_lib_search_path
  17958. # ### END LIBTOOL CONFIG
  17959. _LT_EOF
  17960. cat <<'_LT_EOF' >> "$cfgfile"
  17961. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  17962. # func_munge_path_list VARIABLE PATH
  17963. # -----------------------------------
  17964. # VARIABLE is name of variable containing _space_ separated list of
  17965. # directories to be munged by the contents of PATH, which is string
  17966. # having a format:
  17967. # "DIR[:DIR]:"
  17968. # string "DIR[ DIR]" will be prepended to VARIABLE
  17969. # ":DIR[:DIR]"
  17970. # string "DIR[ DIR]" will be appended to VARIABLE
  17971. # "DIRP[:DIRP]::[DIRA:]DIRA"
  17972. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  17973. # "DIRA[ DIRA]" will be appended to VARIABLE
  17974. # "DIR[:DIR]"
  17975. # VARIABLE will be replaced by "DIR[ DIR]"
  17976. func_munge_path_list ()
  17977. {
  17978. case x$2 in
  17979. x)
  17980. ;;
  17981. *:)
  17982. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  17983. ;;
  17984. x:*)
  17985. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  17986. ;;
  17987. *::*)
  17988. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  17989. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  17990. ;;
  17991. *)
  17992. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  17993. ;;
  17994. esac
  17995. }
  17996. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  17997. func_cc_basename ()
  17998. {
  17999. for cc_temp in $*""; do
  18000. case $cc_temp in
  18001. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18002. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  18003. \-*) ;;
  18004. *) break;;
  18005. esac
  18006. done
  18007. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  18008. }
  18009. # ### END FUNCTIONS SHARED WITH CONFIGURE
  18010. _LT_EOF
  18011. case $host_os in
  18012. aix3*)
  18013. cat <<\_LT_EOF >> "$cfgfile"
  18014. # AIX sometimes has problems with the GCC collect2 program. For some
  18015. # reason, if we set the COLLECT_NAMES environment variable, the problems
  18016. # vanish in a puff of smoke.
  18017. if test set != "${COLLECT_NAMES+set}"; then
  18018. COLLECT_NAMES=
  18019. export COLLECT_NAMES
  18020. fi
  18021. _LT_EOF
  18022. ;;
  18023. esac
  18024. ltmain=$ac_aux_dir/ltmain.sh
  18025. # We use sed instead of cat because bash on DJGPP gets confused if
  18026. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  18027. # text mode, it properly converts lines to CR/LF. This bash problem
  18028. # is reportedly fixed, but why not run on old versions too?
  18029. sed '$q' "$ltmain" >> "$cfgfile" \
  18030. || (rm -f "$cfgfile"; exit 1)
  18031. mv -f "$cfgfile" "$ofile" ||
  18032. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  18033. chmod +x "$ofile"
  18034. cat <<_LT_EOF >> "$ofile"
  18035. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  18036. # The linker used to build libraries.
  18037. LD=$lt_LD_CXX
  18038. # How to create reloadable object files.
  18039. reload_flag=$lt_reload_flag_CXX
  18040. reload_cmds=$lt_reload_cmds_CXX
  18041. # Commands used to build an old-style archive.
  18042. old_archive_cmds=$lt_old_archive_cmds_CXX
  18043. # A language specific compiler.
  18044. CC=$lt_compiler_CXX
  18045. # Is the compiler the GNU compiler?
  18046. with_gcc=$GCC_CXX
  18047. # Compiler flag to turn off builtin functions.
  18048. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  18049. # Additional compiler flags for building library objects.
  18050. pic_flag=$lt_lt_prog_compiler_pic_CXX
  18051. # How to pass a linker flag through the compiler.
  18052. wl=$lt_lt_prog_compiler_wl_CXX
  18053. # Compiler flag to prevent dynamic linking.
  18054. link_static_flag=$lt_lt_prog_compiler_static_CXX
  18055. # Does compiler simultaneously support -c and -o options?
  18056. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  18057. # Whether or not to add -lc for building shared libraries.
  18058. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  18059. # Whether or not to disallow shared libs when runtime libs are static.
  18060. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  18061. # Compiler flag to allow reflexive dlopens.
  18062. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  18063. # Compiler flag to generate shared objects directly from archives.
  18064. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  18065. # Whether the compiler copes with passing no objects directly.
  18066. compiler_needs_object=$lt_compiler_needs_object_CXX
  18067. # Create an old-style archive from a shared archive.
  18068. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  18069. # Create a temporary old-style archive to link instead of a shared archive.
  18070. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  18071. # Commands used to build a shared archive.
  18072. archive_cmds=$lt_archive_cmds_CXX
  18073. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  18074. # Commands used to build a loadable module if different from building
  18075. # a shared archive.
  18076. module_cmds=$lt_module_cmds_CXX
  18077. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  18078. # Whether we are building with GNU ld or not.
  18079. with_gnu_ld=$lt_with_gnu_ld_CXX
  18080. # Flag that allows shared libraries with undefined symbols to be built.
  18081. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  18082. # Flag that enforces no undefined symbols.
  18083. no_undefined_flag=$lt_no_undefined_flag_CXX
  18084. # Flag to hardcode \$libdir into a binary during linking.
  18085. # This must work even if \$libdir does not exist
  18086. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  18087. # Whether we need a single "-rpath" flag with a separated argument.
  18088. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  18089. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  18090. # DIR into the resulting binary.
  18091. hardcode_direct=$hardcode_direct_CXX
  18092. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  18093. # DIR into the resulting binary and the resulting library dependency is
  18094. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  18095. # library is relocated.
  18096. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  18097. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  18098. # into the resulting binary.
  18099. hardcode_minus_L=$hardcode_minus_L_CXX
  18100. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  18101. # into the resulting binary.
  18102. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  18103. # Set to "yes" if building a shared library automatically hardcodes DIR
  18104. # into the library and all subsequent libraries and executables linked
  18105. # against it.
  18106. hardcode_automatic=$hardcode_automatic_CXX
  18107. # Set to yes if linker adds runtime paths of dependent libraries
  18108. # to runtime path list.
  18109. inherit_rpath=$inherit_rpath_CXX
  18110. # Whether libtool must link a program against all its dependency libraries.
  18111. link_all_deplibs=$link_all_deplibs_CXX
  18112. # Set to "yes" if exported symbols are required.
  18113. always_export_symbols=$always_export_symbols_CXX
  18114. # The commands to list exported symbols.
  18115. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  18116. # Symbols that should not be listed in the preloaded symbols.
  18117. exclude_expsyms=$lt_exclude_expsyms_CXX
  18118. # Symbols that must always be exported.
  18119. include_expsyms=$lt_include_expsyms_CXX
  18120. # Commands necessary for linking programs (against libraries) with templates.
  18121. prelink_cmds=$lt_prelink_cmds_CXX
  18122. # Commands necessary for finishing linking programs.
  18123. postlink_cmds=$lt_postlink_cmds_CXX
  18124. # Specify filename containing input files.
  18125. file_list_spec=$lt_file_list_spec_CXX
  18126. # How to hardcode a shared library path into an executable.
  18127. hardcode_action=$hardcode_action_CXX
  18128. # The directories searched by this compiler when creating a shared library.
  18129. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  18130. # Dependencies to place before and after the objects being linked to
  18131. # create a shared library.
  18132. predep_objects=$lt_predep_objects_CXX
  18133. postdep_objects=$lt_postdep_objects_CXX
  18134. predeps=$lt_predeps_CXX
  18135. postdeps=$lt_postdeps_CXX
  18136. # The library search path used internally by the compiler when linking
  18137. # a shared library.
  18138. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  18139. # ### END LIBTOOL TAG CONFIG: CXX
  18140. _LT_EOF
  18141. ;;
  18142. "run.sh":F) chmod +x run.sh ;;
  18143. esac
  18144. done # for ac_tag
  18145. as_fn_exit 0
  18146. _ACEOF
  18147. ac_clean_files=$ac_clean_files_save
  18148. test $ac_write_fail = 0 ||
  18149. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  18150. # configure is writing to config.log, and then calls config.status.
  18151. # config.status does its own redirection, appending to config.log.
  18152. # Unfortunately, on DOS this fails, as config.log is still kept open
  18153. # by configure, so config.status won't be able to write to it; its
  18154. # output is simply discarded. So we exec the FD to /dev/null,
  18155. # effectively closing config.log, so it can be properly (re)opened and
  18156. # appended to by config.status. When coming back to configure, we
  18157. # need to make the FD available again.
  18158. if test "$no_create" != yes; then
  18159. ac_cs_success=:
  18160. ac_config_status_args=
  18161. test "$silent" = yes &&
  18162. ac_config_status_args="$ac_config_status_args --quiet"
  18163. exec 5>/dev/null
  18164. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18165. exec 5>>config.log
  18166. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18167. # would make configure fail if this is the last instruction.
  18168. $ac_cs_success || as_fn_exit 1
  18169. fi
  18170. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  18171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  18172. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  18173. fi
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}:
  18175. Automake flags (can be overridden by user flags):
  18176. AM_CPPFLAGS: ${AM_CPPFLAGS}
  18177. AM_CFLAGS: ${AM_CFLAGS}
  18178. AM_CXXFLAGS: ${AM_CXXFLAGS}
  18179. AM_LDFLAGS: ${AM_LDFLAGS}
  18180. User flags (override Automake flags on conflict):
  18181. CPPFLAGS: ${CPPFLAGS}
  18182. CFLAGS: ${CFLAGS}
  18183. CXXFLAGS: ${CXXFLAGS}
  18184. LDFLAGS: ${LDFLAGS}" >&5
  18185. $as_echo "$as_me:
  18186. Automake flags (can be overridden by user flags):
  18187. AM_CPPFLAGS: ${AM_CPPFLAGS}
  18188. AM_CFLAGS: ${AM_CFLAGS}
  18189. AM_CXXFLAGS: ${AM_CXXFLAGS}
  18190. AM_LDFLAGS: ${AM_LDFLAGS}
  18191. User flags (override Automake flags on conflict):
  18192. CPPFLAGS: ${CPPFLAGS}
  18193. CFLAGS: ${CFLAGS}
  18194. CXXFLAGS: ${CXXFLAGS}
  18195. LDFLAGS: ${LDFLAGS}" >&6;}