configure 660 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for expat 2.4.4.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  176. test \$(( 1 + 1 )) = 2 || exit 1"
  177. if (eval "$as_required") 2>/dev/null
  178. then :
  179. as_have_required=yes
  180. else $as_nop
  181. as_have_required=no
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else $as_nop
  186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else $as_nop
  219. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi
  224. fi
  225. if test "x$CONFIG_SHELL" != x
  226. then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno
  248. then :
  249. printf "%s\n" "$0: This script requires a shell more modern than all"
  250. printf "%s\n" "$0: the shells that I found on your system."
  251. if test ${ZSH_VERSION+y} ; then
  252. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  253. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  254. else
  255. printf "%s\n" "$0: Please tell [email protected] and
  256. $0: [email protected] about your system, including
  257. $0: any error possibly output before this message. Then
  258. $0: install a modern shell, or manually run the script
  259. $0: under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_nop
  298. # ---------
  299. # Do nothing but, unlike ":", preserve the value of $?.
  300. as_fn_nop ()
  301. {
  302. return $?
  303. }
  304. as_nop=as_fn_nop
  305. # as_fn_mkdir_p
  306. # -------------
  307. # Create "$as_dir" as a directory, including parents if necessary.
  308. as_fn_mkdir_p ()
  309. {
  310. case $as_dir in #(
  311. -*) as_dir=./$as_dir;;
  312. esac
  313. test -d "$as_dir" || eval $as_mkdir_p || {
  314. as_dirs=
  315. while :; do
  316. case $as_dir in #(
  317. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  318. *) as_qdir=$as_dir;;
  319. esac
  320. as_dirs="'$as_qdir' $as_dirs"
  321. as_dir=`$as_dirname -- "$as_dir" ||
  322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  323. X"$as_dir" : 'X\(//\)[^/]' \| \
  324. X"$as_dir" : 'X\(//\)$' \| \
  325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  326. printf "%s\n" X"$as_dir" |
  327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)[^/].*/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\/\)$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\).*/{
  340. s//\1/
  341. q
  342. }
  343. s/.*/./; q'`
  344. test -d "$as_dir" && break
  345. done
  346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  347. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  348. } # as_fn_mkdir_p
  349. # as_fn_executable_p FILE
  350. # -----------------------
  351. # Test if FILE is an executable regular file.
  352. as_fn_executable_p ()
  353. {
  354. test -f "$1" && test -x "$1"
  355. } # as_fn_executable_p
  356. # as_fn_append VAR VALUE
  357. # ----------------------
  358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  359. # advantage of any shell optimizations that allow amortized linear growth over
  360. # repeated appends, instead of the typical quadratic growth present in naive
  361. # implementations.
  362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  363. then :
  364. eval 'as_fn_append ()
  365. {
  366. eval $1+=\$2
  367. }'
  368. else $as_nop
  369. as_fn_append ()
  370. {
  371. eval $1=\$$1\$2
  372. }
  373. fi # as_fn_append
  374. # as_fn_arith ARG...
  375. # ------------------
  376. # Perform arithmetic evaluation on the ARGs, and store the result in the
  377. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  378. # must be portable across $(()) and expr.
  379. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  380. then :
  381. eval 'as_fn_arith ()
  382. {
  383. as_val=$(( $* ))
  384. }'
  385. else $as_nop
  386. as_fn_arith ()
  387. {
  388. as_val=`expr "$@" || test $? -eq 1`
  389. }
  390. fi # as_fn_arith
  391. # as_fn_nop
  392. # ---------
  393. # Do nothing but, unlike ":", preserve the value of $?.
  394. as_fn_nop ()
  395. {
  396. return $?
  397. }
  398. as_nop=as_fn_nop
  399. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  400. # ----------------------------------------
  401. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  402. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  403. # script with STATUS, using 1 if that was 0.
  404. as_fn_error ()
  405. {
  406. as_status=$1; test $as_status -eq 0 && as_status=1
  407. if test "$4"; then
  408. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  410. fi
  411. printf "%s\n" "$as_me: error: $2" >&2
  412. as_fn_exit $as_status
  413. } # as_fn_error
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  421. as_basename=basename
  422. else
  423. as_basename=false
  424. fi
  425. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  426. as_dirname=dirname
  427. else
  428. as_dirname=false
  429. fi
  430. as_me=`$as_basename -- "$0" ||
  431. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  432. X"$0" : 'X\(//\)$' \| \
  433. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  434. printf "%s\n" X/"$0" |
  435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  436. s//\1/
  437. q
  438. }
  439. /^X\/\(\/\/\)$/{
  440. s//\1/
  441. q
  442. }
  443. /^X\/\(\/\).*/{
  444. s//\1/
  445. q
  446. }
  447. s/.*/./; q'`
  448. # Avoid depending upon Character Ranges.
  449. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  450. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  451. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  452. as_cr_digits='0123456789'
  453. as_cr_alnum=$as_cr_Letters$as_cr_digits
  454. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  455. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  456. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  457. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  458. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  459. sed -n '
  460. p
  461. /[$]LINENO/=
  462. ' <$as_myself |
  463. sed '
  464. s/[$]LINENO.*/&-/
  465. t lineno
  466. b
  467. :lineno
  468. N
  469. :loop
  470. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  471. t loop
  472. s/-\n.*//
  473. ' >$as_me.lineno &&
  474. chmod +x "$as_me.lineno" ||
  475. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  476. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  477. # already done that, so ensure we don't try to do so again and fall
  478. # in an infinite loop. This has already happened in practice.
  479. _as_can_reexec=no; export _as_can_reexec
  480. # Don't try to exec as it changes $[0], causing all sort of problems
  481. # (the dirname of $[0] is not the place where we might find the
  482. # original and so on. Autoconf is especially sensitive to this).
  483. . "./$as_me.lineno"
  484. # Exit status is that of the last command.
  485. exit
  486. }
  487. # Determine whether it's possible to make 'echo' print without a newline.
  488. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  489. # for compatibility with existing Makefiles.
  490. ECHO_C= ECHO_N= ECHO_T=
  491. case `echo -n x` in #(((((
  492. -n*)
  493. case `echo 'xy\c'` in
  494. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  495. xy) ECHO_C='\c';;
  496. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  497. ECHO_T=' ';;
  498. esac;;
  499. *)
  500. ECHO_N='-n';;
  501. esac
  502. # For backward compatibility with old third-party macros, we provide
  503. # the shell variables $as_echo and $as_echo_n. New code should use
  504. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  505. as_echo='printf %s\n'
  506. as_echo_n='printf %s'
  507. rm -f conf$$ conf$$.exe conf$$.file
  508. if test -d conf$$.dir; then
  509. rm -f conf$$.dir/conf$$.file
  510. else
  511. rm -f conf$$.dir
  512. mkdir conf$$.dir 2>/dev/null
  513. fi
  514. if (echo >conf$$.file) 2>/dev/null; then
  515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s='ln -s'
  517. # ... but there are two gotchas:
  518. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  519. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  520. # In both cases, we have to default to `cp -pR'.
  521. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  522. as_ln_s='cp -pR'
  523. elif ln conf$$.file conf$$ 2>/dev/null; then
  524. as_ln_s=ln
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. else
  529. as_ln_s='cp -pR'
  530. fi
  531. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  532. rmdir conf$$.dir 2>/dev/null
  533. if mkdir -p . 2>/dev/null; then
  534. as_mkdir_p='mkdir -p "$as_dir"'
  535. else
  536. test -d ./-p && rmdir ./-p
  537. as_mkdir_p=false
  538. fi
  539. as_test_x='test -x'
  540. as_executable_p=as_fn_executable_p
  541. # Sed expression to map a string onto a valid CPP name.
  542. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543. # Sed expression to map a string onto a valid variable name.
  544. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  545. SHELL=${CONFIG_SHELL-/bin/sh}
  546. test -n "$DJDIR" || exec 7<&0 </dev/null
  547. exec 6>&1
  548. # Name of the host.
  549. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  550. # so uname gets run too.
  551. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  552. #
  553. # Initializations.
  554. #
  555. ac_default_prefix=/usr/local
  556. ac_clean_files=
  557. ac_config_libobj_dir=.
  558. LIBOBJS=
  559. cross_compiling=no
  560. subdirs=
  561. MFLAGS=
  562. MAKEFLAGS=
  563. # Identity of this package.
  564. PACKAGE_NAME='expat'
  565. PACKAGE_TARNAME='expat'
  566. PACKAGE_VERSION='2.4.4'
  567. PACKAGE_STRING='expat 2.4.4'
  568. PACKAGE_BUGREPORT='[email protected]'
  569. PACKAGE_URL=''
  570. ac_unique_file="Makefile.in"
  571. # Factoring default headers for most tests.
  572. ac_includes_default="\
  573. #include <stddef.h>
  574. #ifdef HAVE_STDIO_H
  575. # include <stdio.h>
  576. #endif
  577. #ifdef HAVE_STDLIB_H
  578. # include <stdlib.h>
  579. #endif
  580. #ifdef HAVE_STRING_H
  581. # include <string.h>
  582. #endif
  583. #ifdef HAVE_INTTYPES_H
  584. # include <inttypes.h>
  585. #endif
  586. #ifdef HAVE_STDINT_H
  587. # include <stdint.h>
  588. #endif
  589. #ifdef HAVE_STRINGS_H
  590. # include <strings.h>
  591. #endif
  592. #ifdef HAVE_SYS_TYPES_H
  593. # include <sys/types.h>
  594. #endif
  595. #ifdef HAVE_SYS_STAT_H
  596. # include <sys/stat.h>
  597. #endif
  598. #ifdef HAVE_UNISTD_H
  599. # include <unistd.h>
  600. #endif"
  601. ac_header_c_list=
  602. ac_func_c_list=
  603. ac_subst_vars='am__EXEEXT_FALSE
  604. am__EXEEXT_TRUE
  605. LTLIBOBJS
  606. LIBOBJS
  607. CMAKE_SHARED_LIBRARY_PREFIX
  608. AM_LDFLAGS
  609. AM_CXXFLAGS
  610. AM_CFLAGS
  611. AM_CPPFLAGS
  612. ac_cv_sizeof_void_p
  613. SO_PATCH
  614. SO_MINOR
  615. SO_MAJOR
  616. LIBDIR_BASENAME
  617. EXPAT_CHAR_TYPE
  618. EXPAT_CONTEXT_BYTES
  619. EXPAT_NS
  620. EXPAT_MIN_SIZE
  621. EXPAT_LARGE_SIZE
  622. EXPAT_DTD
  623. EXPAT_ATTR_INFO
  624. WITH_DOCBOOK_FALSE
  625. WITH_DOCBOOK_TRUE
  626. DOCBOOK_TO_MAN
  627. FILEMAP
  628. LIBM
  629. _INTERNAL_LARGE_SIZE_FALSE
  630. _INTERNAL_LARGE_SIZE_TRUE
  631. _INTERNAL_MIN_SIZE_FALSE
  632. _INTERNAL_MIN_SIZE_TRUE
  633. _INTERNAL_UNICODE_WCHAR_T_FALSE
  634. _INTERNAL_UNICODE_WCHAR_T_TRUE
  635. UNICODE_FALSE
  636. UNICODE_TRUE
  637. MINGW_FALSE
  638. MINGW_TRUE
  639. WITH_TESTS_FALSE
  640. WITH_TESTS_TRUE
  641. WITH_EXAMPLES_FALSE
  642. WITH_EXAMPLES_TRUE
  643. WITH_XMLWF_FALSE
  644. WITH_XMLWF_TRUE
  645. CXXCPP
  646. am__fastdepCXX_FALSE
  647. am__fastdepCXX_TRUE
  648. CXXDEPMODE
  649. ac_ct_CXX
  650. CXXFLAGS
  651. CXX
  652. LIBAGE
  653. LIBREVISION
  654. LIBCURRENT
  655. LT_SYS_LIBRARY_PATH
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. RANLIB
  663. NM
  664. ac_ct_DUMPBIN
  665. DUMPBIN
  666. LD
  667. FGREP
  668. EGREP
  669. GREP
  670. SED
  671. LIBTOOL
  672. OBJDUMP
  673. DLLTOOL
  674. AS
  675. LN_S
  676. am__fastdepCC_FALSE
  677. am__fastdepCC_TRUE
  678. CCDEPMODE
  679. am__nodep
  680. AMDEPBACKSLASH
  681. AMDEP_FALSE
  682. AMDEP_TRUE
  683. am__include
  684. DEPDIR
  685. OBJEXT
  686. EXEEXT
  687. ac_ct_CC
  688. CPPFLAGS
  689. LDFLAGS
  690. CFLAGS
  691. CC
  692. ac_ct_AR
  693. AR
  694. AM_BACKSLASH
  695. AM_DEFAULT_VERBOSITY
  696. AM_DEFAULT_V
  697. AM_V
  698. CSCOPE
  699. ETAGS
  700. CTAGS
  701. am__untar
  702. am__tar
  703. AMTAR
  704. am__leading_dot
  705. SET_MAKE
  706. AWK
  707. mkdir_p
  708. MKDIR_P
  709. INSTALL_STRIP_PROGRAM
  710. STRIP
  711. install_sh
  712. MAKEINFO
  713. AUTOHEADER
  714. AUTOMAKE
  715. AUTOCONF
  716. ACLOCAL
  717. VERSION
  718. PACKAGE
  719. CYGPATH_W
  720. am__isrc
  721. INSTALL_DATA
  722. INSTALL_SCRIPT
  723. INSTALL_PROGRAM
  724. host_os
  725. host_vendor
  726. host_cpu
  727. host
  728. build_os
  729. build_vendor
  730. build_cpu
  731. build
  732. target_alias
  733. host_alias
  734. build_alias
  735. LIBS
  736. ECHO_T
  737. ECHO_N
  738. ECHO_C
  739. DEFS
  740. mandir
  741. localedir
  742. libdir
  743. psdir
  744. pdfdir
  745. dvidir
  746. htmldir
  747. infodir
  748. docdir
  749. oldincludedir
  750. includedir
  751. runstatedir
  752. localstatedir
  753. sharedstatedir
  754. sysconfdir
  755. datadir
  756. datarootdir
  757. libexecdir
  758. sbindir
  759. bindir
  760. program_transform_name
  761. prefix
  762. exec_prefix
  763. PACKAGE_URL
  764. PACKAGE_BUGREPORT
  765. PACKAGE_STRING
  766. PACKAGE_VERSION
  767. PACKAGE_TARNAME
  768. PACKAGE_NAME
  769. PATH_SEPARATOR
  770. SHELL
  771. am__quote'
  772. ac_subst_files='PACKAGE_INIT'
  773. ac_user_opts='
  774. enable_option_checking
  775. enable_silent_rules
  776. enable_dependency_tracking
  777. enable_shared
  778. enable_static
  779. with_pic
  780. enable_fast_install
  781. with_aix_soname
  782. with_gnu_ld
  783. with_sysroot
  784. enable_libtool_lock
  785. with_xmlwf
  786. with_examples
  787. with_tests
  788. with_libbsd
  789. with_getrandom
  790. with_sys_getrandom
  791. enable_xml_attr_info
  792. enable_xml_context
  793. with_docbook
  794. '
  795. ac_precious_vars='build_alias
  796. host_alias
  797. target_alias
  798. CC
  799. CFLAGS
  800. LDFLAGS
  801. LIBS
  802. CPPFLAGS
  803. LT_SYS_LIBRARY_PATH
  804. CXX
  805. CXXFLAGS
  806. CCC
  807. CXXCPP
  808. DOCBOOK_TO_MAN'
  809. # Initialize some variables set by options.
  810. ac_init_help=
  811. ac_init_version=false
  812. ac_unrecognized_opts=
  813. ac_unrecognized_sep=
  814. # The variables have the same names as the options, with
  815. # dashes changed to underlines.
  816. cache_file=/dev/null
  817. exec_prefix=NONE
  818. no_create=
  819. no_recursion=
  820. prefix=NONE
  821. program_prefix=NONE
  822. program_suffix=NONE
  823. program_transform_name=s,x,x,
  824. silent=
  825. site=
  826. srcdir=
  827. verbose=
  828. x_includes=NONE
  829. x_libraries=NONE
  830. # Installation directory options.
  831. # These are left unexpanded so users can "make install exec_prefix=/foo"
  832. # and all the variables that are supposed to be based on exec_prefix
  833. # by default will actually change.
  834. # Use braces instead of parens because sh, perl, etc. also accept them.
  835. # (The list follows the same order as the GNU Coding Standards.)
  836. bindir='${exec_prefix}/bin'
  837. sbindir='${exec_prefix}/sbin'
  838. libexecdir='${exec_prefix}/libexec'
  839. datarootdir='${prefix}/share'
  840. datadir='${datarootdir}'
  841. sysconfdir='${prefix}/etc'
  842. sharedstatedir='${prefix}/com'
  843. localstatedir='${prefix}/var'
  844. runstatedir='${localstatedir}/run'
  845. includedir='${prefix}/include'
  846. oldincludedir='/usr/include'
  847. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  848. infodir='${datarootdir}/info'
  849. htmldir='${docdir}'
  850. dvidir='${docdir}'
  851. pdfdir='${docdir}'
  852. psdir='${docdir}'
  853. libdir='${exec_prefix}/lib'
  854. localedir='${datarootdir}/locale'
  855. mandir='${datarootdir}/man'
  856. ac_prev=
  857. ac_dashdash=
  858. for ac_option
  859. do
  860. # If the previous option needs an argument, assign it.
  861. if test -n "$ac_prev"; then
  862. eval $ac_prev=\$ac_option
  863. ac_prev=
  864. continue
  865. fi
  866. case $ac_option in
  867. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  868. *=) ac_optarg= ;;
  869. *) ac_optarg=yes ;;
  870. esac
  871. case $ac_dashdash$ac_option in
  872. --)
  873. ac_dashdash=yes ;;
  874. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  875. ac_prev=bindir ;;
  876. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  877. bindir=$ac_optarg ;;
  878. -build | --build | --buil | --bui | --bu)
  879. ac_prev=build_alias ;;
  880. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  881. build_alias=$ac_optarg ;;
  882. -cache-file | --cache-file | --cache-fil | --cache-fi \
  883. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  884. ac_prev=cache_file ;;
  885. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  886. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  887. cache_file=$ac_optarg ;;
  888. --config-cache | -C)
  889. cache_file=config.cache ;;
  890. -datadir | --datadir | --datadi | --datad)
  891. ac_prev=datadir ;;
  892. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  893. datadir=$ac_optarg ;;
  894. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  895. | --dataroo | --dataro | --datar)
  896. ac_prev=datarootdir ;;
  897. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  898. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  899. datarootdir=$ac_optarg ;;
  900. -disable-* | --disable-*)
  901. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  902. # Reject names that are not valid shell variable names.
  903. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  904. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  905. ac_useropt_orig=$ac_useropt
  906. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  907. case $ac_user_opts in
  908. *"
  909. "enable_$ac_useropt"
  910. "*) ;;
  911. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  912. ac_unrecognized_sep=', ';;
  913. esac
  914. eval enable_$ac_useropt=no ;;
  915. -docdir | --docdir | --docdi | --doc | --do)
  916. ac_prev=docdir ;;
  917. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  918. docdir=$ac_optarg ;;
  919. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  920. ac_prev=dvidir ;;
  921. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  922. dvidir=$ac_optarg ;;
  923. -enable-* | --enable-*)
  924. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  925. # Reject names that are not valid shell variable names.
  926. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  927. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  928. ac_useropt_orig=$ac_useropt
  929. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  930. case $ac_user_opts in
  931. *"
  932. "enable_$ac_useropt"
  933. "*) ;;
  934. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  935. ac_unrecognized_sep=', ';;
  936. esac
  937. eval enable_$ac_useropt=\$ac_optarg ;;
  938. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  939. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  940. | --exec | --exe | --ex)
  941. ac_prev=exec_prefix ;;
  942. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  943. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  944. | --exec=* | --exe=* | --ex=*)
  945. exec_prefix=$ac_optarg ;;
  946. -gas | --gas | --ga | --g)
  947. # Obsolete; use --with-gas.
  948. with_gas=yes ;;
  949. -help | --help | --hel | --he | -h)
  950. ac_init_help=long ;;
  951. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  952. ac_init_help=recursive ;;
  953. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  954. ac_init_help=short ;;
  955. -host | --host | --hos | --ho)
  956. ac_prev=host_alias ;;
  957. -host=* | --host=* | --hos=* | --ho=*)
  958. host_alias=$ac_optarg ;;
  959. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  960. ac_prev=htmldir ;;
  961. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  962. | --ht=*)
  963. htmldir=$ac_optarg ;;
  964. -includedir | --includedir | --includedi | --included | --include \
  965. | --includ | --inclu | --incl | --inc)
  966. ac_prev=includedir ;;
  967. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  968. | --includ=* | --inclu=* | --incl=* | --inc=*)
  969. includedir=$ac_optarg ;;
  970. -infodir | --infodir | --infodi | --infod | --info | --inf)
  971. ac_prev=infodir ;;
  972. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  973. infodir=$ac_optarg ;;
  974. -libdir | --libdir | --libdi | --libd)
  975. ac_prev=libdir ;;
  976. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  977. libdir=$ac_optarg ;;
  978. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  979. | --libexe | --libex | --libe)
  980. ac_prev=libexecdir ;;
  981. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  982. | --libexe=* | --libex=* | --libe=*)
  983. libexecdir=$ac_optarg ;;
  984. -localedir | --localedir | --localedi | --localed | --locale)
  985. ac_prev=localedir ;;
  986. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  987. localedir=$ac_optarg ;;
  988. -localstatedir | --localstatedir | --localstatedi | --localstated \
  989. | --localstate | --localstat | --localsta | --localst | --locals)
  990. ac_prev=localstatedir ;;
  991. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  992. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  993. localstatedir=$ac_optarg ;;
  994. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  995. ac_prev=mandir ;;
  996. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  997. mandir=$ac_optarg ;;
  998. -nfp | --nfp | --nf)
  999. # Obsolete; use --without-fp.
  1000. with_fp=no ;;
  1001. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1002. | --no-cr | --no-c | -n)
  1003. no_create=yes ;;
  1004. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1005. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1006. no_recursion=yes ;;
  1007. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1008. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1009. | --oldin | --oldi | --old | --ol | --o)
  1010. ac_prev=oldincludedir ;;
  1011. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1012. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1013. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1014. oldincludedir=$ac_optarg ;;
  1015. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1016. ac_prev=prefix ;;
  1017. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1018. prefix=$ac_optarg ;;
  1019. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1020. | --program-pre | --program-pr | --program-p)
  1021. ac_prev=program_prefix ;;
  1022. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1023. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1024. program_prefix=$ac_optarg ;;
  1025. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1026. | --program-suf | --program-su | --program-s)
  1027. ac_prev=program_suffix ;;
  1028. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1029. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1030. program_suffix=$ac_optarg ;;
  1031. -program-transform-name | --program-transform-name \
  1032. | --program-transform-nam | --program-transform-na \
  1033. | --program-transform-n | --program-transform- \
  1034. | --program-transform | --program-transfor \
  1035. | --program-transfo | --program-transf \
  1036. | --program-trans | --program-tran \
  1037. | --progr-tra | --program-tr | --program-t)
  1038. ac_prev=program_transform_name ;;
  1039. -program-transform-name=* | --program-transform-name=* \
  1040. | --program-transform-nam=* | --program-transform-na=* \
  1041. | --program-transform-n=* | --program-transform-=* \
  1042. | --program-transform=* | --program-transfor=* \
  1043. | --program-transfo=* | --program-transf=* \
  1044. | --program-trans=* | --program-tran=* \
  1045. | --progr-tra=* | --program-tr=* | --program-t=*)
  1046. program_transform_name=$ac_optarg ;;
  1047. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1048. ac_prev=pdfdir ;;
  1049. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1050. pdfdir=$ac_optarg ;;
  1051. -psdir | --psdir | --psdi | --psd | --ps)
  1052. ac_prev=psdir ;;
  1053. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1054. psdir=$ac_optarg ;;
  1055. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1056. | -silent | --silent | --silen | --sile | --sil)
  1057. silent=yes ;;
  1058. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1059. | --runstate | --runstat | --runsta | --runst | --runs \
  1060. | --run | --ru | --r)
  1061. ac_prev=runstatedir ;;
  1062. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1063. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1064. | --run=* | --ru=* | --r=*)
  1065. runstatedir=$ac_optarg ;;
  1066. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1067. ac_prev=sbindir ;;
  1068. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1069. | --sbi=* | --sb=*)
  1070. sbindir=$ac_optarg ;;
  1071. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1072. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1073. | --sharedst | --shareds | --shared | --share | --shar \
  1074. | --sha | --sh)
  1075. ac_prev=sharedstatedir ;;
  1076. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1077. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1078. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1079. | --sha=* | --sh=*)
  1080. sharedstatedir=$ac_optarg ;;
  1081. -site | --site | --sit)
  1082. ac_prev=site ;;
  1083. -site=* | --site=* | --sit=*)
  1084. site=$ac_optarg ;;
  1085. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1086. ac_prev=srcdir ;;
  1087. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1088. srcdir=$ac_optarg ;;
  1089. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1090. | --syscon | --sysco | --sysc | --sys | --sy)
  1091. ac_prev=sysconfdir ;;
  1092. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1093. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1094. sysconfdir=$ac_optarg ;;
  1095. -target | --target | --targe | --targ | --tar | --ta | --t)
  1096. ac_prev=target_alias ;;
  1097. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1098. target_alias=$ac_optarg ;;
  1099. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1100. verbose=yes ;;
  1101. -version | --version | --versio | --versi | --vers | -V)
  1102. ac_init_version=: ;;
  1103. -with-* | --with-*)
  1104. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1105. # Reject names that are not valid shell variable names.
  1106. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1107. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1108. ac_useropt_orig=$ac_useropt
  1109. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1110. case $ac_user_opts in
  1111. *"
  1112. "with_$ac_useropt"
  1113. "*) ;;
  1114. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1115. ac_unrecognized_sep=', ';;
  1116. esac
  1117. eval with_$ac_useropt=\$ac_optarg ;;
  1118. -without-* | --without-*)
  1119. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1120. # Reject names that are not valid shell variable names.
  1121. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1122. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1123. ac_useropt_orig=$ac_useropt
  1124. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1125. case $ac_user_opts in
  1126. *"
  1127. "with_$ac_useropt"
  1128. "*) ;;
  1129. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1130. ac_unrecognized_sep=', ';;
  1131. esac
  1132. eval with_$ac_useropt=no ;;
  1133. --x)
  1134. # Obsolete; use --with-x.
  1135. with_x=yes ;;
  1136. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1137. | --x-incl | --x-inc | --x-in | --x-i)
  1138. ac_prev=x_includes ;;
  1139. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1140. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1141. x_includes=$ac_optarg ;;
  1142. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1143. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1144. ac_prev=x_libraries ;;
  1145. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1146. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1147. x_libraries=$ac_optarg ;;
  1148. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1149. Try \`$0 --help' for more information"
  1150. ;;
  1151. *=*)
  1152. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1153. # Reject names that are not valid shell variable names.
  1154. case $ac_envvar in #(
  1155. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1156. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1157. esac
  1158. eval $ac_envvar=\$ac_optarg
  1159. export $ac_envvar ;;
  1160. *)
  1161. # FIXME: should be removed in autoconf 3.0.
  1162. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1163. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1164. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1165. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1166. ;;
  1167. esac
  1168. done
  1169. if test -n "$ac_prev"; then
  1170. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1171. as_fn_error $? "missing argument to $ac_option"
  1172. fi
  1173. if test -n "$ac_unrecognized_opts"; then
  1174. case $enable_option_checking in
  1175. no) ;;
  1176. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1177. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1178. esac
  1179. fi
  1180. # Check all directory arguments for consistency.
  1181. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1182. datadir sysconfdir sharedstatedir localstatedir includedir \
  1183. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1184. libdir localedir mandir runstatedir
  1185. do
  1186. eval ac_val=\$$ac_var
  1187. # Remove trailing slashes.
  1188. case $ac_val in
  1189. */ )
  1190. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1191. eval $ac_var=\$ac_val;;
  1192. esac
  1193. # Be sure to have absolute directory names.
  1194. case $ac_val in
  1195. [\\/$]* | ?:[\\/]* ) continue;;
  1196. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1197. esac
  1198. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1199. done
  1200. # There might be people who depend on the old broken behavior: `$host'
  1201. # used to hold the argument of --host etc.
  1202. # FIXME: To remove some day.
  1203. build=$build_alias
  1204. host=$host_alias
  1205. target=$target_alias
  1206. # FIXME: To remove some day.
  1207. if test "x$host_alias" != x; then
  1208. if test "x$build_alias" = x; then
  1209. cross_compiling=maybe
  1210. elif test "x$build_alias" != "x$host_alias"; then
  1211. cross_compiling=yes
  1212. fi
  1213. fi
  1214. ac_tool_prefix=
  1215. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1216. test "$silent" = yes && exec 6>/dev/null
  1217. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218. ac_ls_di=`ls -di .` &&
  1219. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220. as_fn_error $? "working directory cannot be determined"
  1221. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1222. as_fn_error $? "pwd does not report name of working directory"
  1223. # Find the source files, if location was not specified.
  1224. if test -z "$srcdir"; then
  1225. ac_srcdir_defaulted=yes
  1226. # Try the directory containing this script, then the parent directory.
  1227. ac_confdir=`$as_dirname -- "$as_myself" ||
  1228. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1229. X"$as_myself" : 'X\(//\)[^/]' \| \
  1230. X"$as_myself" : 'X\(//\)$' \| \
  1231. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1232. printf "%s\n" X"$as_myself" |
  1233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\/\)[^/].*/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\/\)$/{
  1242. s//\1/
  1243. q
  1244. }
  1245. /^X\(\/\).*/{
  1246. s//\1/
  1247. q
  1248. }
  1249. s/.*/./; q'`
  1250. srcdir=$ac_confdir
  1251. if test ! -r "$srcdir/$ac_unique_file"; then
  1252. srcdir=..
  1253. fi
  1254. else
  1255. ac_srcdir_defaulted=no
  1256. fi
  1257. if test ! -r "$srcdir/$ac_unique_file"; then
  1258. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1259. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1260. fi
  1261. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1262. ac_abs_confdir=`(
  1263. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1264. pwd)`
  1265. # When building in place, set srcdir=.
  1266. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1267. srcdir=.
  1268. fi
  1269. # Remove unnecessary trailing slashes from srcdir.
  1270. # Double slashes in file names in object file debugging info
  1271. # mess up M-x gdb in Emacs.
  1272. case $srcdir in
  1273. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1274. esac
  1275. for ac_var in $ac_precious_vars; do
  1276. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1277. eval ac_env_${ac_var}_value=\$${ac_var}
  1278. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1279. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1280. done
  1281. #
  1282. # Report the --help message.
  1283. #
  1284. if test "$ac_init_help" = "long"; then
  1285. # Omit some internal or obsolete options to make the list less imposing.
  1286. # This message is too long to be a string in the A/UX 3.1 sh.
  1287. cat <<_ACEOF
  1288. \`configure' configures expat 2.4.4 to adapt to many kinds of systems.
  1289. Usage: $0 [OPTION]... [VAR=VALUE]...
  1290. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1291. VAR=VALUE. See below for descriptions of some of the useful variables.
  1292. Defaults for the options are specified in brackets.
  1293. Configuration:
  1294. -h, --help display this help and exit
  1295. --help=short display options specific to this package
  1296. --help=recursive display the short help of all the included packages
  1297. -V, --version display version information and exit
  1298. -q, --quiet, --silent do not print \`checking ...' messages
  1299. --cache-file=FILE cache test results in FILE [disabled]
  1300. -C, --config-cache alias for \`--cache-file=config.cache'
  1301. -n, --no-create do not create output files
  1302. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1303. Installation directories:
  1304. --prefix=PREFIX install architecture-independent files in PREFIX
  1305. [$ac_default_prefix]
  1306. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1307. [PREFIX]
  1308. By default, \`make install' will install all the files in
  1309. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1310. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1311. for instance \`--prefix=\$HOME'.
  1312. For better control, use the options below.
  1313. Fine tuning of the installation directories:
  1314. --bindir=DIR user executables [EPREFIX/bin]
  1315. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1316. --libexecdir=DIR program executables [EPREFIX/libexec]
  1317. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1318. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1319. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1320. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1321. --libdir=DIR object code libraries [EPREFIX/lib]
  1322. --includedir=DIR C header files [PREFIX/include]
  1323. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1324. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1325. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1326. --infodir=DIR info documentation [DATAROOTDIR/info]
  1327. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1328. --mandir=DIR man documentation [DATAROOTDIR/man]
  1329. --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
  1330. --htmldir=DIR html documentation [DOCDIR]
  1331. --dvidir=DIR dvi documentation [DOCDIR]
  1332. --pdfdir=DIR pdf documentation [DOCDIR]
  1333. --psdir=DIR ps documentation [DOCDIR]
  1334. _ACEOF
  1335. cat <<\_ACEOF
  1336. Program names:
  1337. --program-prefix=PREFIX prepend PREFIX to installed program names
  1338. --program-suffix=SUFFIX append SUFFIX to installed program names
  1339. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1340. System types:
  1341. --build=BUILD configure for building on BUILD [guessed]
  1342. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1343. _ACEOF
  1344. fi
  1345. if test -n "$ac_init_help"; then
  1346. case $ac_init_help in
  1347. short | recursive ) echo "Configuration of expat 2.4.4:";;
  1348. esac
  1349. cat <<\_ACEOF
  1350. Optional Features:
  1351. --disable-option-checking ignore unrecognized --enable/--with options
  1352. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1353. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1354. --enable-silent-rules less verbose build output (undo: "make V=1")
  1355. --disable-silent-rules verbose build output (undo: "make V=0")
  1356. --enable-dependency-tracking
  1357. do not reject slow dependency extractors
  1358. --disable-dependency-tracking
  1359. speeds up one-time build
  1360. --enable-shared[=PKGS] build shared libraries [default=yes]
  1361. --enable-static[=PKGS] build static libraries [default=yes]
  1362. --enable-fast-install[=PKGS]
  1363. optimize for fast installation [default=yes]
  1364. --disable-libtool-lock avoid locking (might break parallel builds)
  1365. --enable-xml-attr-info Enable retrieving the byte offsets for attribute
  1366. names and values [default=no]
  1367. --enable-xml-context [COUNT]
  1368. Retain context around the current parse point;
  1369. default is enabled and a size of 1024 bytes
  1370. --disable-xml-context Do not retain context around the current parse point
  1371. Optional Packages:
  1372. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1373. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1374. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1375. both]
  1376. --with-aix-soname=aix|svr4|both
  1377. shared library versioning (aka "SONAME") variant to
  1378. provide on AIX, [default=aix].
  1379. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1380. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1381. compiler's sysroot if not specified).
  1382. --without-xmlwf do not build xmlwf
  1383. --without-examples do not build examples [default=included]
  1384. --without-tests do not build tests [default=included]
  1385. --with-libbsd utilize libbsd (for arc4random_buf)
  1386. --with-getrandom enforce the use of getrandom function in the system
  1387. [default=check]
  1388. --without-getrandom skip auto detect of getrandom [default=check]
  1389. --with-sys-getrandom enforce the use of syscall SYS_getrandom function in
  1390. the system [default=check]
  1391. --without-sys-getrandom skip auto detect of syscall SYS_getrandom
  1392. [default=check]
  1393. --with-docbook enforce XML to man page compilation [default=check]
  1394. --without-docbook skip XML to man page compilation [default=check]
  1395. Some influential environment variables:
  1396. CC C compiler command
  1397. CFLAGS C compiler flags
  1398. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1399. nonstandard directory <lib dir>
  1400. LIBS libraries to pass to the linker, e.g. -l<library>
  1401. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1402. you have headers in a nonstandard directory <include dir>
  1403. LT_SYS_LIBRARY_PATH
  1404. User-defined run-time library search path.
  1405. CXX C++ compiler command
  1406. CXXFLAGS C++ compiler flags
  1407. CXXCPP C++ preprocessor
  1408. DOCBOOK_TO_MAN
  1409. docbook2x-man command
  1410. Use these variables to override the choices made by `configure' or to help
  1411. it to find libraries and programs with nonstandard names/locations.
  1412. Report bugs to <[email protected]>.
  1413. _ACEOF
  1414. ac_status=$?
  1415. fi
  1416. if test "$ac_init_help" = "recursive"; then
  1417. # If there are subdirs, report their specific --help.
  1418. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1419. test -d "$ac_dir" ||
  1420. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1421. continue
  1422. ac_builddir=.
  1423. case "$ac_dir" in
  1424. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1425. *)
  1426. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1427. # A ".." for each directory in $ac_dir_suffix.
  1428. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1429. case $ac_top_builddir_sub in
  1430. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1431. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1432. esac ;;
  1433. esac
  1434. ac_abs_top_builddir=$ac_pwd
  1435. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1436. # for backward compatibility:
  1437. ac_top_builddir=$ac_top_build_prefix
  1438. case $srcdir in
  1439. .) # We are building in place.
  1440. ac_srcdir=.
  1441. ac_top_srcdir=$ac_top_builddir_sub
  1442. ac_abs_top_srcdir=$ac_pwd ;;
  1443. [\\/]* | ?:[\\/]* ) # Absolute name.
  1444. ac_srcdir=$srcdir$ac_dir_suffix;
  1445. ac_top_srcdir=$srcdir
  1446. ac_abs_top_srcdir=$srcdir ;;
  1447. *) # Relative name.
  1448. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1449. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1450. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1451. esac
  1452. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1453. cd "$ac_dir" || { ac_status=$?; continue; }
  1454. # Check for configure.gnu first; this name is used for a wrapper for
  1455. # Metaconfig's "Configure" on case-insensitive file systems.
  1456. if test -f "$ac_srcdir/configure.gnu"; then
  1457. echo &&
  1458. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1459. elif test -f "$ac_srcdir/configure"; then
  1460. echo &&
  1461. $SHELL "$ac_srcdir/configure" --help=recursive
  1462. else
  1463. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1464. fi || ac_status=$?
  1465. cd "$ac_pwd" || { ac_status=$?; break; }
  1466. done
  1467. fi
  1468. test -n "$ac_init_help" && exit $ac_status
  1469. if $ac_init_version; then
  1470. cat <<\_ACEOF
  1471. expat configure 2.4.4
  1472. generated by GNU Autoconf 2.71
  1473. Copyright (C) 2021 Free Software Foundation, Inc.
  1474. This configure script is free software; the Free Software Foundation
  1475. gives unlimited permission to copy, distribute and modify it.
  1476. _ACEOF
  1477. exit
  1478. fi
  1479. ## ------------------------ ##
  1480. ## Autoconf initialization. ##
  1481. ## ------------------------ ##
  1482. # ac_fn_c_try_compile LINENO
  1483. # --------------------------
  1484. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1485. ac_fn_c_try_compile ()
  1486. {
  1487. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1488. rm -f conftest.$ac_objext conftest.beam
  1489. if { { ac_try="$ac_compile"
  1490. case "(($ac_try" in
  1491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1492. *) ac_try_echo=$ac_try;;
  1493. esac
  1494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1495. printf "%s\n" "$ac_try_echo"; } >&5
  1496. (eval "$ac_compile") 2>conftest.err
  1497. ac_status=$?
  1498. if test -s conftest.err; then
  1499. grep -v '^ *+' conftest.err >conftest.er1
  1500. cat conftest.er1 >&5
  1501. mv -f conftest.er1 conftest.err
  1502. fi
  1503. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1504. test $ac_status = 0; } && {
  1505. test -z "$ac_c_werror_flag" ||
  1506. test ! -s conftest.err
  1507. } && test -s conftest.$ac_objext
  1508. then :
  1509. ac_retval=0
  1510. else $as_nop
  1511. printf "%s\n" "$as_me: failed program was:" >&5
  1512. sed 's/^/| /' conftest.$ac_ext >&5
  1513. ac_retval=1
  1514. fi
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } # ac_fn_c_try_compile
  1518. # ac_fn_c_try_link LINENO
  1519. # -----------------------
  1520. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1521. ac_fn_c_try_link ()
  1522. {
  1523. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1524. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1525. if { { ac_try="$ac_link"
  1526. case "(($ac_try" in
  1527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1528. *) ac_try_echo=$ac_try;;
  1529. esac
  1530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1531. printf "%s\n" "$ac_try_echo"; } >&5
  1532. (eval "$ac_link") 2>conftest.err
  1533. ac_status=$?
  1534. if test -s conftest.err; then
  1535. grep -v '^ *+' conftest.err >conftest.er1
  1536. cat conftest.er1 >&5
  1537. mv -f conftest.er1 conftest.err
  1538. fi
  1539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1540. test $ac_status = 0; } && {
  1541. test -z "$ac_c_werror_flag" ||
  1542. test ! -s conftest.err
  1543. } && test -s conftest$ac_exeext && {
  1544. test "$cross_compiling" = yes ||
  1545. test -x conftest$ac_exeext
  1546. }
  1547. then :
  1548. ac_retval=0
  1549. else $as_nop
  1550. printf "%s\n" "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=1
  1553. fi
  1554. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1555. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1556. # interfere with the next link command; also delete a directory that is
  1557. # left behind by Apple's compiler. We do this before executing the actions.
  1558. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1559. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1560. as_fn_set_status $ac_retval
  1561. } # ac_fn_c_try_link
  1562. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1563. # -------------------------------------------------------
  1564. # Tests whether HEADER exists and can be compiled using the include files in
  1565. # INCLUDES, setting the cache variable VAR accordingly.
  1566. ac_fn_c_check_header_compile ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1570. printf %s "checking for $2... " >&6; }
  1571. if eval test \${$3+y}
  1572. then :
  1573. printf %s "(cached) " >&6
  1574. else $as_nop
  1575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end confdefs.h. */
  1577. $4
  1578. #include <$2>
  1579. _ACEOF
  1580. if ac_fn_c_try_compile "$LINENO"
  1581. then :
  1582. eval "$3=yes"
  1583. else $as_nop
  1584. eval "$3=no"
  1585. fi
  1586. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1587. fi
  1588. eval ac_res=\$$3
  1589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1590. printf "%s\n" "$ac_res" >&6; }
  1591. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1592. } # ac_fn_c_check_header_compile
  1593. # ac_fn_c_check_func LINENO FUNC VAR
  1594. # ----------------------------------
  1595. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1596. ac_fn_c_check_func ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1600. printf %s "checking for $2... " >&6; }
  1601. if eval test \${$3+y}
  1602. then :
  1603. printf %s "(cached) " >&6
  1604. else $as_nop
  1605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1606. /* end confdefs.h. */
  1607. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1608. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1609. #define $2 innocuous_$2
  1610. /* System header to define __stub macros and hopefully few prototypes,
  1611. which can conflict with char $2 (); below. */
  1612. #include <limits.h>
  1613. #undef $2
  1614. /* Override any GCC internal prototype to avoid an error.
  1615. Use char because int might match the return type of a GCC
  1616. builtin and then its argument prototype would still apply. */
  1617. #ifdef __cplusplus
  1618. extern "C"
  1619. #endif
  1620. char $2 ();
  1621. /* The GNU C library defines this for functions which it implements
  1622. to always fail with ENOSYS. Some functions are actually named
  1623. something starting with __ and the normal name is an alias. */
  1624. #if defined __stub_$2 || defined __stub___$2
  1625. choke me
  1626. #endif
  1627. int
  1628. main (void)
  1629. {
  1630. return $2 ();
  1631. ;
  1632. return 0;
  1633. }
  1634. _ACEOF
  1635. if ac_fn_c_try_link "$LINENO"
  1636. then :
  1637. eval "$3=yes"
  1638. else $as_nop
  1639. eval "$3=no"
  1640. fi
  1641. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1642. conftest$ac_exeext conftest.$ac_ext
  1643. fi
  1644. eval ac_res=\$$3
  1645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1646. printf "%s\n" "$ac_res" >&6; }
  1647. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1648. } # ac_fn_c_check_func
  1649. # ac_fn_cxx_try_compile LINENO
  1650. # ----------------------------
  1651. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1652. ac_fn_cxx_try_compile ()
  1653. {
  1654. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1655. rm -f conftest.$ac_objext conftest.beam
  1656. if { { ac_try="$ac_compile"
  1657. case "(($ac_try" in
  1658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1659. *) ac_try_echo=$ac_try;;
  1660. esac
  1661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1662. printf "%s\n" "$ac_try_echo"; } >&5
  1663. (eval "$ac_compile") 2>conftest.err
  1664. ac_status=$?
  1665. if test -s conftest.err; then
  1666. grep -v '^ *+' conftest.err >conftest.er1
  1667. cat conftest.er1 >&5
  1668. mv -f conftest.er1 conftest.err
  1669. fi
  1670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1671. test $ac_status = 0; } && {
  1672. test -z "$ac_cxx_werror_flag" ||
  1673. test ! -s conftest.err
  1674. } && test -s conftest.$ac_objext
  1675. then :
  1676. ac_retval=0
  1677. else $as_nop
  1678. printf "%s\n" "$as_me: failed program was:" >&5
  1679. sed 's/^/| /' conftest.$ac_ext >&5
  1680. ac_retval=1
  1681. fi
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. as_fn_set_status $ac_retval
  1684. } # ac_fn_cxx_try_compile
  1685. # ac_fn_cxx_try_cpp LINENO
  1686. # ------------------------
  1687. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1688. ac_fn_cxx_try_cpp ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. if { { ac_try="$ac_cpp conftest.$ac_ext"
  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. printf "%s\n" "$ac_try_echo"; } >&5
  1698. (eval "$ac_cpp conftest.$ac_ext") 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. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1706. test $ac_status = 0; } > conftest.i && {
  1707. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1708. test ! -s conftest.err
  1709. }
  1710. then :
  1711. ac_retval=0
  1712. else $as_nop
  1713. printf "%s\n" "$as_me: failed program was:" >&5
  1714. sed 's/^/| /' conftest.$ac_ext >&5
  1715. ac_retval=1
  1716. fi
  1717. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1718. as_fn_set_status $ac_retval
  1719. } # ac_fn_cxx_try_cpp
  1720. # ac_fn_cxx_try_link LINENO
  1721. # -------------------------
  1722. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1723. ac_fn_cxx_try_link ()
  1724. {
  1725. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1726. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1727. if { { ac_try="$ac_link"
  1728. case "(($ac_try" in
  1729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1730. *) ac_try_echo=$ac_try;;
  1731. esac
  1732. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1733. printf "%s\n" "$ac_try_echo"; } >&5
  1734. (eval "$ac_link") 2>conftest.err
  1735. ac_status=$?
  1736. if test -s conftest.err; then
  1737. grep -v '^ *+' conftest.err >conftest.er1
  1738. cat conftest.er1 >&5
  1739. mv -f conftest.er1 conftest.err
  1740. fi
  1741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; } && {
  1743. test -z "$ac_cxx_werror_flag" ||
  1744. test ! -s conftest.err
  1745. } && test -s conftest$ac_exeext && {
  1746. test "$cross_compiling" = yes ||
  1747. test -x conftest$ac_exeext
  1748. }
  1749. then :
  1750. ac_retval=0
  1751. else $as_nop
  1752. printf "%s\n" "$as_me: failed program was:" >&5
  1753. sed 's/^/| /' conftest.$ac_ext >&5
  1754. ac_retval=1
  1755. fi
  1756. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1757. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1758. # interfere with the next link command; also delete a directory that is
  1759. # left behind by Apple's compiler. We do this before executing the actions.
  1760. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1761. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1762. as_fn_set_status $ac_retval
  1763. } # ac_fn_cxx_try_link
  1764. # ac_fn_c_try_run LINENO
  1765. # ----------------------
  1766. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1767. # executables *can* be run.
  1768. ac_fn_c_try_run ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. if { { ac_try="$ac_link"
  1772. case "(($ac_try" in
  1773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1774. *) ac_try_echo=$ac_try;;
  1775. esac
  1776. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1777. printf "%s\n" "$ac_try_echo"; } >&5
  1778. (eval "$ac_link") 2>&5
  1779. ac_status=$?
  1780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1781. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1782. { { case "(($ac_try" in
  1783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1784. *) ac_try_echo=$ac_try;;
  1785. esac
  1786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1787. printf "%s\n" "$ac_try_echo"; } >&5
  1788. (eval "$ac_try") 2>&5
  1789. ac_status=$?
  1790. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1791. test $ac_status = 0; }; }
  1792. then :
  1793. ac_retval=0
  1794. else $as_nop
  1795. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1796. printf "%s\n" "$as_me: failed program was:" >&5
  1797. sed 's/^/| /' conftest.$ac_ext >&5
  1798. ac_retval=$ac_status
  1799. fi
  1800. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1801. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1802. as_fn_set_status $ac_retval
  1803. } # ac_fn_c_try_run
  1804. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1805. # -------------------------------------------
  1806. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1807. # variable VAR accordingly.
  1808. ac_fn_c_check_type ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1812. printf %s "checking for $2... " >&6; }
  1813. if eval test \${$3+y}
  1814. then :
  1815. printf %s "(cached) " >&6
  1816. else $as_nop
  1817. eval "$3=no"
  1818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1819. /* end confdefs.h. */
  1820. $4
  1821. int
  1822. main (void)
  1823. {
  1824. if (sizeof ($2))
  1825. return 0;
  1826. ;
  1827. return 0;
  1828. }
  1829. _ACEOF
  1830. if ac_fn_c_try_compile "$LINENO"
  1831. then :
  1832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1833. /* end confdefs.h. */
  1834. $4
  1835. int
  1836. main (void)
  1837. {
  1838. if (sizeof (($2)))
  1839. return 0;
  1840. ;
  1841. return 0;
  1842. }
  1843. _ACEOF
  1844. if ac_fn_c_try_compile "$LINENO"
  1845. then :
  1846. else $as_nop
  1847. eval "$3=yes"
  1848. fi
  1849. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1850. fi
  1851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1852. fi
  1853. eval ac_res=\$$3
  1854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1855. printf "%s\n" "$ac_res" >&6; }
  1856. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1857. } # ac_fn_c_check_type
  1858. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1859. # --------------------------------------------
  1860. # Tries to find the compile-time value of EXPR in a program that includes
  1861. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1862. # computed
  1863. ac_fn_c_compute_int ()
  1864. {
  1865. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1866. if test "$cross_compiling" = yes; then
  1867. # Depending upon the size, compute the lo and hi bounds.
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. $4
  1871. int
  1872. main (void)
  1873. {
  1874. static int test_array [1 - 2 * !(($2) >= 0)];
  1875. test_array [0] = 0;
  1876. return test_array [0];
  1877. ;
  1878. return 0;
  1879. }
  1880. _ACEOF
  1881. if ac_fn_c_try_compile "$LINENO"
  1882. then :
  1883. ac_lo=0 ac_mid=0
  1884. while :; do
  1885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1886. /* end confdefs.h. */
  1887. $4
  1888. int
  1889. main (void)
  1890. {
  1891. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1892. test_array [0] = 0;
  1893. return test_array [0];
  1894. ;
  1895. return 0;
  1896. }
  1897. _ACEOF
  1898. if ac_fn_c_try_compile "$LINENO"
  1899. then :
  1900. ac_hi=$ac_mid; break
  1901. else $as_nop
  1902. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1903. if test $ac_lo -le $ac_mid; then
  1904. ac_lo= ac_hi=
  1905. break
  1906. fi
  1907. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1910. done
  1911. else $as_nop
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h. */
  1914. $4
  1915. int
  1916. main (void)
  1917. {
  1918. static int test_array [1 - 2 * !(($2) < 0)];
  1919. test_array [0] = 0;
  1920. return test_array [0];
  1921. ;
  1922. return 0;
  1923. }
  1924. _ACEOF
  1925. if ac_fn_c_try_compile "$LINENO"
  1926. then :
  1927. ac_hi=-1 ac_mid=-1
  1928. while :; do
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. $4
  1932. int
  1933. main (void)
  1934. {
  1935. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1936. test_array [0] = 0;
  1937. return test_array [0];
  1938. ;
  1939. return 0;
  1940. }
  1941. _ACEOF
  1942. if ac_fn_c_try_compile "$LINENO"
  1943. then :
  1944. ac_lo=$ac_mid; break
  1945. else $as_nop
  1946. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1947. if test $ac_mid -le $ac_hi; then
  1948. ac_lo= ac_hi=
  1949. break
  1950. fi
  1951. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1952. fi
  1953. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1954. done
  1955. else $as_nop
  1956. ac_lo= ac_hi=
  1957. fi
  1958. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1959. fi
  1960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1961. # Binary search between lo and hi bounds.
  1962. while test "x$ac_lo" != "x$ac_hi"; do
  1963. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1965. /* end confdefs.h. */
  1966. $4
  1967. int
  1968. main (void)
  1969. {
  1970. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1971. test_array [0] = 0;
  1972. return test_array [0];
  1973. ;
  1974. return 0;
  1975. }
  1976. _ACEOF
  1977. if ac_fn_c_try_compile "$LINENO"
  1978. then :
  1979. ac_hi=$ac_mid
  1980. else $as_nop
  1981. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1982. fi
  1983. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1984. done
  1985. case $ac_lo in #((
  1986. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1987. '') ac_retval=1 ;;
  1988. esac
  1989. else
  1990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1991. /* end confdefs.h. */
  1992. $4
  1993. static long int longval (void) { return $2; }
  1994. static unsigned long int ulongval (void) { return $2; }
  1995. #include <stdio.h>
  1996. #include <stdlib.h>
  1997. int
  1998. main (void)
  1999. {
  2000. FILE *f = fopen ("conftest.val", "w");
  2001. if (! f)
  2002. return 1;
  2003. if (($2) < 0)
  2004. {
  2005. long int i = longval ();
  2006. if (i != ($2))
  2007. return 1;
  2008. fprintf (f, "%ld", i);
  2009. }
  2010. else
  2011. {
  2012. unsigned long int i = ulongval ();
  2013. if (i != ($2))
  2014. return 1;
  2015. fprintf (f, "%lu", i);
  2016. }
  2017. /* Do not output a trailing newline, as this causes \r\n confusion
  2018. on some platforms. */
  2019. return ferror (f) || fclose (f) != 0;
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. if ac_fn_c_try_run "$LINENO"
  2025. then :
  2026. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2027. else $as_nop
  2028. ac_retval=1
  2029. fi
  2030. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2031. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2032. rm -f conftest.val
  2033. fi
  2034. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2035. as_fn_set_status $ac_retval
  2036. } # ac_fn_c_compute_int
  2037. ac_configure_args_raw=
  2038. for ac_arg
  2039. do
  2040. case $ac_arg in
  2041. *\'*)
  2042. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2043. esac
  2044. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2045. done
  2046. case $ac_configure_args_raw in
  2047. *$as_nl*)
  2048. ac_safe_unquote= ;;
  2049. *)
  2050. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2051. ac_unsafe_a="$ac_unsafe_z#~"
  2052. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2053. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2054. esac
  2055. cat >config.log <<_ACEOF
  2056. This file contains any messages produced by compilers while
  2057. running configure, to aid debugging if configure makes a mistake.
  2058. It was created by expat $as_me 2.4.4, which was
  2059. generated by GNU Autoconf 2.71. Invocation command line was
  2060. $ $0$ac_configure_args_raw
  2061. _ACEOF
  2062. exec 5>>config.log
  2063. {
  2064. cat <<_ASUNAME
  2065. ## --------- ##
  2066. ## Platform. ##
  2067. ## --------- ##
  2068. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2069. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2070. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2071. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2072. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2073. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2074. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2075. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2076. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2077. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2078. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2079. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2080. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2081. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2082. _ASUNAME
  2083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2084. for as_dir in $PATH
  2085. do
  2086. IFS=$as_save_IFS
  2087. case $as_dir in #(((
  2088. '') as_dir=./ ;;
  2089. */) ;;
  2090. *) as_dir=$as_dir/ ;;
  2091. esac
  2092. printf "%s\n" "PATH: $as_dir"
  2093. done
  2094. IFS=$as_save_IFS
  2095. } >&5
  2096. cat >&5 <<_ACEOF
  2097. ## ----------- ##
  2098. ## Core tests. ##
  2099. ## ----------- ##
  2100. _ACEOF
  2101. # Keep a trace of the command line.
  2102. # Strip out --no-create and --no-recursion so they do not pile up.
  2103. # Strip out --silent because we don't want to record it for future runs.
  2104. # Also quote any args containing shell meta-characters.
  2105. # Make two passes to allow for proper duplicate-argument suppression.
  2106. ac_configure_args=
  2107. ac_configure_args0=
  2108. ac_configure_args1=
  2109. ac_must_keep_next=false
  2110. for ac_pass in 1 2
  2111. do
  2112. for ac_arg
  2113. do
  2114. case $ac_arg in
  2115. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2116. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2117. | -silent | --silent | --silen | --sile | --sil)
  2118. continue ;;
  2119. *\'*)
  2120. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2121. esac
  2122. case $ac_pass in
  2123. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2124. 2)
  2125. as_fn_append ac_configure_args1 " '$ac_arg'"
  2126. if test $ac_must_keep_next = true; then
  2127. ac_must_keep_next=false # Got value, back to normal.
  2128. else
  2129. case $ac_arg in
  2130. *=* | --config-cache | -C | -disable-* | --disable-* \
  2131. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2132. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2133. | -with-* | --with-* | -without-* | --without-* | --x)
  2134. case "$ac_configure_args0 " in
  2135. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2136. esac
  2137. ;;
  2138. -* ) ac_must_keep_next=true ;;
  2139. esac
  2140. fi
  2141. as_fn_append ac_configure_args " '$ac_arg'"
  2142. ;;
  2143. esac
  2144. done
  2145. done
  2146. { ac_configure_args0=; unset ac_configure_args0;}
  2147. { ac_configure_args1=; unset ac_configure_args1;}
  2148. # When interrupted or exit'd, cleanup temporary files, and complete
  2149. # config.log. We remove comments because anyway the quotes in there
  2150. # would cause problems or look ugly.
  2151. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2152. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2153. trap 'exit_status=$?
  2154. # Sanitize IFS.
  2155. IFS=" "" $as_nl"
  2156. # Save into config.log some information that might help in debugging.
  2157. {
  2158. echo
  2159. printf "%s\n" "## ---------------- ##
  2160. ## Cache variables. ##
  2161. ## ---------------- ##"
  2162. echo
  2163. # The following way of writing the cache mishandles newlines in values,
  2164. (
  2165. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2166. eval ac_val=\$$ac_var
  2167. case $ac_val in #(
  2168. *${as_nl}*)
  2169. case $ac_var in #(
  2170. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2171. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2172. esac
  2173. case $ac_var in #(
  2174. _ | IFS | as_nl) ;; #(
  2175. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2176. *) { eval $ac_var=; unset $ac_var;} ;;
  2177. esac ;;
  2178. esac
  2179. done
  2180. (set) 2>&1 |
  2181. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2182. *${as_nl}ac_space=\ *)
  2183. sed -n \
  2184. "s/'\''/'\''\\\\'\'''\''/g;
  2185. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2186. ;; #(
  2187. *)
  2188. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2189. ;;
  2190. esac |
  2191. sort
  2192. )
  2193. echo
  2194. printf "%s\n" "## ----------------- ##
  2195. ## Output variables. ##
  2196. ## ----------------- ##"
  2197. echo
  2198. for ac_var in $ac_subst_vars
  2199. do
  2200. eval ac_val=\$$ac_var
  2201. case $ac_val in
  2202. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2203. esac
  2204. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2205. done | sort
  2206. echo
  2207. if test -n "$ac_subst_files"; then
  2208. printf "%s\n" "## ------------------- ##
  2209. ## File substitutions. ##
  2210. ## ------------------- ##"
  2211. echo
  2212. for ac_var in $ac_subst_files
  2213. do
  2214. eval ac_val=\$$ac_var
  2215. case $ac_val in
  2216. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2217. esac
  2218. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2219. done | sort
  2220. echo
  2221. fi
  2222. if test -s confdefs.h; then
  2223. printf "%s\n" "## ----------- ##
  2224. ## confdefs.h. ##
  2225. ## ----------- ##"
  2226. echo
  2227. cat confdefs.h
  2228. echo
  2229. fi
  2230. test "$ac_signal" != 0 &&
  2231. printf "%s\n" "$as_me: caught signal $ac_signal"
  2232. printf "%s\n" "$as_me: exit $exit_status"
  2233. } >&5
  2234. rm -f core *.core core.conftest.* &&
  2235. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2236. exit $exit_status
  2237. ' 0
  2238. for ac_signal in 1 2 13 15; do
  2239. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2240. done
  2241. ac_signal=0
  2242. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2243. rm -f -r conftest* confdefs.h
  2244. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2245. # Predefined preprocessor variables.
  2246. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2247. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2248. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2249. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2250. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2251. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2252. # Let the site file select an alternate cache file if it wants to.
  2253. # Prefer an explicitly selected file to automatically selected ones.
  2254. if test -n "$CONFIG_SITE"; then
  2255. ac_site_files="$CONFIG_SITE"
  2256. elif test "x$prefix" != xNONE; then
  2257. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2258. else
  2259. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2260. fi
  2261. for ac_site_file in $ac_site_files
  2262. do
  2263. case $ac_site_file in #(
  2264. */*) :
  2265. ;; #(
  2266. *) :
  2267. ac_site_file=./$ac_site_file ;;
  2268. esac
  2269. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2271. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2272. sed 's/^/| /' "$ac_site_file" >&5
  2273. . "$ac_site_file" \
  2274. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2275. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2276. as_fn_error $? "failed to load site script $ac_site_file
  2277. See \`config.log' for more details" "$LINENO" 5; }
  2278. fi
  2279. done
  2280. if test -r "$cache_file"; then
  2281. # Some versions of bash will fail to source /dev/null (special files
  2282. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2283. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2285. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2286. case $cache_file in
  2287. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2288. *) . "./$cache_file";;
  2289. esac
  2290. fi
  2291. else
  2292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2293. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2294. >$cache_file
  2295. fi
  2296. # Test code for whether the C compiler supports C89 (global declarations)
  2297. ac_c_conftest_c89_globals='
  2298. /* Does the compiler advertise C89 conformance?
  2299. Do not test the value of __STDC__, because some compilers set it to 0
  2300. while being otherwise adequately conformant. */
  2301. #if !defined __STDC__
  2302. # error "Compiler does not advertise C89 conformance"
  2303. #endif
  2304. #include <stddef.h>
  2305. #include <stdarg.h>
  2306. struct stat;
  2307. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2308. struct buf { int x; };
  2309. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2310. static char *e (p, i)
  2311. char **p;
  2312. int i;
  2313. {
  2314. return p[i];
  2315. }
  2316. static char *f (char * (*g) (char **, int), char **p, ...)
  2317. {
  2318. char *s;
  2319. va_list v;
  2320. va_start (v,p);
  2321. s = g (p, va_arg (v,int));
  2322. va_end (v);
  2323. return s;
  2324. }
  2325. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2326. function prototypes and stuff, but not \xHH hex character constants.
  2327. These do not provoke an error unfortunately, instead are silently treated
  2328. as an "x". The following induces an error, until -std is added to get
  2329. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2330. array size at least. It is necessary to write \x00 == 0 to get something
  2331. that is true only with -std. */
  2332. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2333. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2334. inside strings and character constants. */
  2335. #define FOO(x) '\''x'\''
  2336. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2337. int test (int i, double x);
  2338. struct s1 {int (*f) (int a);};
  2339. struct s2 {int (*f) (double a);};
  2340. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2341. int, int);'
  2342. # Test code for whether the C compiler supports C89 (body of main).
  2343. ac_c_conftest_c89_main='
  2344. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2345. '
  2346. # Test code for whether the C compiler supports C99 (global declarations)
  2347. ac_c_conftest_c99_globals='
  2348. // Does the compiler advertise C99 conformance?
  2349. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2350. # error "Compiler does not advertise C99 conformance"
  2351. #endif
  2352. #include <stdbool.h>
  2353. extern int puts (const char *);
  2354. extern int printf (const char *, ...);
  2355. extern int dprintf (int, const char *, ...);
  2356. extern void *malloc (size_t);
  2357. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2358. // dprintf is used instead of fprintf to avoid needing to declare
  2359. // FILE and stderr.
  2360. #define debug(...) dprintf (2, __VA_ARGS__)
  2361. #define showlist(...) puts (#__VA_ARGS__)
  2362. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2363. static void
  2364. test_varargs_macros (void)
  2365. {
  2366. int x = 1234;
  2367. int y = 5678;
  2368. debug ("Flag");
  2369. debug ("X = %d\n", x);
  2370. showlist (The first, second, and third items.);
  2371. report (x>y, "x is %d but y is %d", x, y);
  2372. }
  2373. // Check long long types.
  2374. #define BIG64 18446744073709551615ull
  2375. #define BIG32 4294967295ul
  2376. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2377. #if !BIG_OK
  2378. #error "your preprocessor is broken"
  2379. #endif
  2380. #if BIG_OK
  2381. #else
  2382. #error "your preprocessor is broken"
  2383. #endif
  2384. static long long int bignum = -9223372036854775807LL;
  2385. static unsigned long long int ubignum = BIG64;
  2386. struct incomplete_array
  2387. {
  2388. int datasize;
  2389. double data[];
  2390. };
  2391. struct named_init {
  2392. int number;
  2393. const wchar_t *name;
  2394. double average;
  2395. };
  2396. typedef const char *ccp;
  2397. static inline int
  2398. test_restrict (ccp restrict text)
  2399. {
  2400. // See if C++-style comments work.
  2401. // Iterate through items via the restricted pointer.
  2402. // Also check for declarations in for loops.
  2403. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2404. continue;
  2405. return 0;
  2406. }
  2407. // Check varargs and va_copy.
  2408. static bool
  2409. test_varargs (const char *format, ...)
  2410. {
  2411. va_list args;
  2412. va_start (args, format);
  2413. va_list args_copy;
  2414. va_copy (args_copy, args);
  2415. const char *str = "";
  2416. int number = 0;
  2417. float fnumber = 0;
  2418. while (*format)
  2419. {
  2420. switch (*format++)
  2421. {
  2422. case '\''s'\'': // string
  2423. str = va_arg (args_copy, const char *);
  2424. break;
  2425. case '\''d'\'': // int
  2426. number = va_arg (args_copy, int);
  2427. break;
  2428. case '\''f'\'': // float
  2429. fnumber = va_arg (args_copy, double);
  2430. break;
  2431. default:
  2432. break;
  2433. }
  2434. }
  2435. va_end (args_copy);
  2436. va_end (args);
  2437. return *str && number && fnumber;
  2438. }
  2439. '
  2440. # Test code for whether the C compiler supports C99 (body of main).
  2441. ac_c_conftest_c99_main='
  2442. // Check bool.
  2443. _Bool success = false;
  2444. success |= (argc != 0);
  2445. // Check restrict.
  2446. if (test_restrict ("String literal") == 0)
  2447. success = true;
  2448. char *restrict newvar = "Another string";
  2449. // Check varargs.
  2450. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2451. test_varargs_macros ();
  2452. // Check flexible array members.
  2453. struct incomplete_array *ia =
  2454. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2455. ia->datasize = 10;
  2456. for (int i = 0; i < ia->datasize; ++i)
  2457. ia->data[i] = i * 1.234;
  2458. // Check named initializers.
  2459. struct named_init ni = {
  2460. .number = 34,
  2461. .name = L"Test wide string",
  2462. .average = 543.34343,
  2463. };
  2464. ni.number = 58;
  2465. int dynamic_array[ni.number];
  2466. dynamic_array[0] = argv[0][0];
  2467. dynamic_array[ni.number - 1] = 543;
  2468. // work around unused variable warnings
  2469. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2470. || dynamic_array[ni.number - 1] != 543);
  2471. '
  2472. # Test code for whether the C compiler supports C11 (global declarations)
  2473. ac_c_conftest_c11_globals='
  2474. // Does the compiler advertise C11 conformance?
  2475. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2476. # error "Compiler does not advertise C11 conformance"
  2477. #endif
  2478. // Check _Alignas.
  2479. char _Alignas (double) aligned_as_double;
  2480. char _Alignas (0) no_special_alignment;
  2481. extern char aligned_as_int;
  2482. char _Alignas (0) _Alignas (int) aligned_as_int;
  2483. // Check _Alignof.
  2484. enum
  2485. {
  2486. int_alignment = _Alignof (int),
  2487. int_array_alignment = _Alignof (int[100]),
  2488. char_alignment = _Alignof (char)
  2489. };
  2490. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2491. // Check _Noreturn.
  2492. int _Noreturn does_not_return (void) { for (;;) continue; }
  2493. // Check _Static_assert.
  2494. struct test_static_assert
  2495. {
  2496. int x;
  2497. _Static_assert (sizeof (int) <= sizeof (long int),
  2498. "_Static_assert does not work in struct");
  2499. long int y;
  2500. };
  2501. // Check UTF-8 literals.
  2502. #define u8 syntax error!
  2503. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2504. // Check duplicate typedefs.
  2505. typedef long *long_ptr;
  2506. typedef long int *long_ptr;
  2507. typedef long_ptr long_ptr;
  2508. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2509. struct anonymous
  2510. {
  2511. union {
  2512. struct { int i; int j; };
  2513. struct { int k; long int l; } w;
  2514. };
  2515. int m;
  2516. } v1;
  2517. '
  2518. # Test code for whether the C compiler supports C11 (body of main).
  2519. ac_c_conftest_c11_main='
  2520. _Static_assert ((offsetof (struct anonymous, i)
  2521. == offsetof (struct anonymous, w.k)),
  2522. "Anonymous union alignment botch");
  2523. v1.i = 2;
  2524. v1.w.k = 5;
  2525. ok |= v1.i != 5;
  2526. '
  2527. # Test code for whether the C compiler supports C11 (complete).
  2528. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2529. ${ac_c_conftest_c99_globals}
  2530. ${ac_c_conftest_c11_globals}
  2531. int
  2532. main (int argc, char **argv)
  2533. {
  2534. int ok = 0;
  2535. ${ac_c_conftest_c89_main}
  2536. ${ac_c_conftest_c99_main}
  2537. ${ac_c_conftest_c11_main}
  2538. return ok;
  2539. }
  2540. "
  2541. # Test code for whether the C compiler supports C99 (complete).
  2542. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2543. ${ac_c_conftest_c99_globals}
  2544. int
  2545. main (int argc, char **argv)
  2546. {
  2547. int ok = 0;
  2548. ${ac_c_conftest_c89_main}
  2549. ${ac_c_conftest_c99_main}
  2550. return ok;
  2551. }
  2552. "
  2553. # Test code for whether the C compiler supports C89 (complete).
  2554. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2555. int
  2556. main (int argc, char **argv)
  2557. {
  2558. int ok = 0;
  2559. ${ac_c_conftest_c89_main}
  2560. return ok;
  2561. }
  2562. "
  2563. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2564. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2565. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2566. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2567. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2568. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2569. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2570. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2571. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2572. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2573. ac_cxx_conftest_cxx98_globals='
  2574. // Does the compiler advertise C++98 conformance?
  2575. #if !defined __cplusplus || __cplusplus < 199711L
  2576. # error "Compiler does not advertise C++98 conformance"
  2577. #endif
  2578. // These inclusions are to reject old compilers that
  2579. // lack the unsuffixed header files.
  2580. #include <cstdlib>
  2581. #include <exception>
  2582. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2583. extern void assert (int);
  2584. namespace std {
  2585. extern int strcmp (const char *, const char *);
  2586. }
  2587. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2588. using std::exception;
  2589. using std::strcmp;
  2590. namespace {
  2591. void test_exception_syntax()
  2592. {
  2593. try {
  2594. throw "test";
  2595. } catch (const char *s) {
  2596. // Extra parentheses suppress a warning when building autoconf itself,
  2597. // due to lint rules shared with more typical C programs.
  2598. assert (!(strcmp) (s, "test"));
  2599. }
  2600. }
  2601. template <typename T> struct test_template
  2602. {
  2603. T const val;
  2604. explicit test_template(T t) : val(t) {}
  2605. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2606. };
  2607. } // anonymous namespace
  2608. '
  2609. # Test code for whether the C++ compiler supports C++98 (body of main)
  2610. ac_cxx_conftest_cxx98_main='
  2611. assert (argc);
  2612. assert (! argv[0]);
  2613. {
  2614. test_exception_syntax ();
  2615. test_template<double> tt (2.0);
  2616. assert (tt.add (4) == 6.0);
  2617. assert (true && !false);
  2618. }
  2619. '
  2620. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2621. ac_cxx_conftest_cxx11_globals='
  2622. // Does the compiler advertise C++ 2011 conformance?
  2623. #if !defined __cplusplus || __cplusplus < 201103L
  2624. # error "Compiler does not advertise C++11 conformance"
  2625. #endif
  2626. namespace cxx11test
  2627. {
  2628. constexpr int get_val() { return 20; }
  2629. struct testinit
  2630. {
  2631. int i;
  2632. double d;
  2633. };
  2634. class delegate
  2635. {
  2636. public:
  2637. delegate(int n) : n(n) {}
  2638. delegate(): delegate(2354) {}
  2639. virtual int getval() { return this->n; };
  2640. protected:
  2641. int n;
  2642. };
  2643. class overridden : public delegate
  2644. {
  2645. public:
  2646. overridden(int n): delegate(n) {}
  2647. virtual int getval() override final { return this->n * 2; }
  2648. };
  2649. class nocopy
  2650. {
  2651. public:
  2652. nocopy(int i): i(i) {}
  2653. nocopy() = default;
  2654. nocopy(const nocopy&) = delete;
  2655. nocopy & operator=(const nocopy&) = delete;
  2656. private:
  2657. int i;
  2658. };
  2659. // for testing lambda expressions
  2660. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2661. {
  2662. return f(v);
  2663. }
  2664. // for testing variadic templates and trailing return types
  2665. template <typename V> auto sum(V first) -> V
  2666. {
  2667. return first;
  2668. }
  2669. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2670. {
  2671. return first + sum(rest...);
  2672. }
  2673. }
  2674. '
  2675. # Test code for whether the C++ compiler supports C++11 (body of main)
  2676. ac_cxx_conftest_cxx11_main='
  2677. {
  2678. // Test auto and decltype
  2679. auto a1 = 6538;
  2680. auto a2 = 48573953.4;
  2681. auto a3 = "String literal";
  2682. int total = 0;
  2683. for (auto i = a3; *i; ++i) { total += *i; }
  2684. decltype(a2) a4 = 34895.034;
  2685. }
  2686. {
  2687. // Test constexpr
  2688. short sa[cxx11test::get_val()] = { 0 };
  2689. }
  2690. {
  2691. // Test initializer lists
  2692. cxx11test::testinit il = { 4323, 435234.23544 };
  2693. }
  2694. {
  2695. // Test range-based for
  2696. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2697. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2698. for (auto &x : array) { x += 23; }
  2699. }
  2700. {
  2701. // Test lambda expressions
  2702. using cxx11test::eval;
  2703. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2704. double d = 2.0;
  2705. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2706. assert (d == 5.0);
  2707. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2708. assert (d == 5.0);
  2709. }
  2710. {
  2711. // Test use of variadic templates
  2712. using cxx11test::sum;
  2713. auto a = sum(1);
  2714. auto b = sum(1, 2);
  2715. auto c = sum(1.0, 2.0, 3.0);
  2716. }
  2717. {
  2718. // Test constructor delegation
  2719. cxx11test::delegate d1;
  2720. cxx11test::delegate d2();
  2721. cxx11test::delegate d3(45);
  2722. }
  2723. {
  2724. // Test override and final
  2725. cxx11test::overridden o1(55464);
  2726. }
  2727. {
  2728. // Test nullptr
  2729. char *c = nullptr;
  2730. }
  2731. {
  2732. // Test template brackets
  2733. test_template<::test_template<int>> v(test_template<int>(12));
  2734. }
  2735. {
  2736. // Unicode literals
  2737. char const *utf8 = u8"UTF-8 string \u2500";
  2738. char16_t const *utf16 = u"UTF-8 string \u2500";
  2739. char32_t const *utf32 = U"UTF-32 string \u2500";
  2740. }
  2741. '
  2742. # Test code for whether the C compiler supports C++11 (complete).
  2743. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2744. ${ac_cxx_conftest_cxx11_globals}
  2745. int
  2746. main (int argc, char **argv)
  2747. {
  2748. int ok = 0;
  2749. ${ac_cxx_conftest_cxx98_main}
  2750. ${ac_cxx_conftest_cxx11_main}
  2751. return ok;
  2752. }
  2753. "
  2754. # Test code for whether the C compiler supports C++98 (complete).
  2755. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2756. int
  2757. main (int argc, char **argv)
  2758. {
  2759. int ok = 0;
  2760. ${ac_cxx_conftest_cxx98_main}
  2761. return ok;
  2762. }
  2763. "
  2764. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  2765. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  2766. # Auxiliary files required by this configure script.
  2767. ac_aux_files="ltmain.sh compile ar-lib missing install-sh config.guess config.sub"
  2768. # Locations in which to look for auxiliary files.
  2769. ac_aux_dir_candidates="${srcdir}/conftools"
  2770. # Search for a directory containing all of the required auxiliary files,
  2771. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2772. # If we don't find one directory that contains all the files we need,
  2773. # we report the set of missing files from the *first* directory in
  2774. # $ac_aux_dir_candidates and give up.
  2775. ac_missing_aux_files=""
  2776. ac_first_candidate=:
  2777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2779. as_found=false
  2780. for as_dir in $ac_aux_dir_candidates
  2781. do
  2782. IFS=$as_save_IFS
  2783. case $as_dir in #(((
  2784. '') as_dir=./ ;;
  2785. */) ;;
  2786. *) as_dir=$as_dir/ ;;
  2787. esac
  2788. as_found=:
  2789. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2790. ac_aux_dir_found=yes
  2791. ac_install_sh=
  2792. for ac_aux in $ac_aux_files
  2793. do
  2794. # As a special case, if "install-sh" is required, that requirement
  2795. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2796. # and $ac_install_sh is set appropriately for whichever one is found.
  2797. if test x"$ac_aux" = x"install-sh"
  2798. then
  2799. if test -f "${as_dir}install-sh"; then
  2800. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2801. ac_install_sh="${as_dir}install-sh -c"
  2802. elif test -f "${as_dir}install.sh"; then
  2803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2804. ac_install_sh="${as_dir}install.sh -c"
  2805. elif test -f "${as_dir}shtool"; then
  2806. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2807. ac_install_sh="${as_dir}shtool install -c"
  2808. else
  2809. ac_aux_dir_found=no
  2810. if $ac_first_candidate; then
  2811. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2812. else
  2813. break
  2814. fi
  2815. fi
  2816. else
  2817. if test -f "${as_dir}${ac_aux}"; then
  2818. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2819. else
  2820. ac_aux_dir_found=no
  2821. if $ac_first_candidate; then
  2822. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2823. else
  2824. break
  2825. fi
  2826. fi
  2827. fi
  2828. done
  2829. if test "$ac_aux_dir_found" = yes; then
  2830. ac_aux_dir="$as_dir"
  2831. break
  2832. fi
  2833. ac_first_candidate=false
  2834. as_found=false
  2835. done
  2836. IFS=$as_save_IFS
  2837. if $as_found
  2838. then :
  2839. else $as_nop
  2840. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2841. fi
  2842. # These three variables are undocumented and unsupported,
  2843. # and are intended to be withdrawn in a future Autoconf release.
  2844. # They can cause serious problems if a builder's source tree is in a directory
  2845. # whose full name contains unusual characters.
  2846. if test -f "${ac_aux_dir}config.guess"; then
  2847. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2848. fi
  2849. if test -f "${ac_aux_dir}config.sub"; then
  2850. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2851. fi
  2852. if test -f "$ac_aux_dir/configure"; then
  2853. ac_configure="$SHELL ${ac_aux_dir}configure"
  2854. fi
  2855. # Check that the precious variables saved in the cache have kept the same
  2856. # value.
  2857. ac_cache_corrupted=false
  2858. for ac_var in $ac_precious_vars; do
  2859. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2860. eval ac_new_set=\$ac_env_${ac_var}_set
  2861. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2862. eval ac_new_val=\$ac_env_${ac_var}_value
  2863. case $ac_old_set,$ac_new_set in
  2864. set,)
  2865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2866. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2867. ac_cache_corrupted=: ;;
  2868. ,set)
  2869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2870. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2871. ac_cache_corrupted=: ;;
  2872. ,);;
  2873. *)
  2874. if test "x$ac_old_val" != "x$ac_new_val"; then
  2875. # differences in whitespace do not lead to failure.
  2876. ac_old_val_w=`echo x $ac_old_val`
  2877. ac_new_val_w=`echo x $ac_new_val`
  2878. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2880. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2881. ac_cache_corrupted=:
  2882. else
  2883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2884. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2885. eval $ac_var=\$ac_old_val
  2886. fi
  2887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2888. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2890. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2891. fi;;
  2892. esac
  2893. # Pass precious variables to config.status.
  2894. if test "$ac_new_set" = set; then
  2895. case $ac_new_val in
  2896. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2897. *) ac_arg=$ac_var=$ac_new_val ;;
  2898. esac
  2899. case " $ac_configure_args " in
  2900. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2901. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2902. esac
  2903. fi
  2904. done
  2905. if $ac_cache_corrupted; then
  2906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2907. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2909. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2910. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2911. and start over" "$LINENO" 5
  2912. fi
  2913. ## -------------------- ##
  2914. ## Main body of script. ##
  2915. ## -------------------- ##
  2916. ac_ext=c
  2917. ac_cpp='$CPP $CPPFLAGS'
  2918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2921. # Make sure we can run config.sub.
  2922. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2923. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2925. printf %s "checking build system type... " >&6; }
  2926. if test ${ac_cv_build+y}
  2927. then :
  2928. printf %s "(cached) " >&6
  2929. else $as_nop
  2930. ac_build_alias=$build_alias
  2931. test "x$ac_build_alias" = x &&
  2932. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2933. test "x$ac_build_alias" = x &&
  2934. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2935. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2936. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2937. fi
  2938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2939. printf "%s\n" "$ac_cv_build" >&6; }
  2940. case $ac_cv_build in
  2941. *-*-*) ;;
  2942. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2943. esac
  2944. build=$ac_cv_build
  2945. ac_save_IFS=$IFS; IFS='-'
  2946. set x $ac_cv_build
  2947. shift
  2948. build_cpu=$1
  2949. build_vendor=$2
  2950. shift; shift
  2951. # Remember, the first character of IFS is used to create $*,
  2952. # except with old shells:
  2953. build_os=$*
  2954. IFS=$ac_save_IFS
  2955. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2957. printf %s "checking host system type... " >&6; }
  2958. if test ${ac_cv_host+y}
  2959. then :
  2960. printf %s "(cached) " >&6
  2961. else $as_nop
  2962. if test "x$host_alias" = x; then
  2963. ac_cv_host=$ac_cv_build
  2964. else
  2965. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2966. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2967. fi
  2968. fi
  2969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2970. printf "%s\n" "$ac_cv_host" >&6; }
  2971. case $ac_cv_host in
  2972. *-*-*) ;;
  2973. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2974. esac
  2975. host=$ac_cv_host
  2976. ac_save_IFS=$IFS; IFS='-'
  2977. set x $ac_cv_host
  2978. shift
  2979. host_cpu=$1
  2980. host_vendor=$2
  2981. shift; shift
  2982. # Remember, the first character of IFS is used to create $*,
  2983. # except with old shells:
  2984. host_os=$*
  2985. IFS=$ac_save_IFS
  2986. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2987. am__api_version='1.16'
  2988. # Find a good install program. We prefer a C program (faster),
  2989. # so one script is as good as another. But avoid the broken or
  2990. # incompatible versions:
  2991. # SysV /etc/install, /usr/sbin/install
  2992. # SunOS /usr/etc/install
  2993. # IRIX /sbin/install
  2994. # AIX /bin/install
  2995. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2996. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2997. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2998. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2999. # OS/2's system install, which has a completely different semantic
  3000. # ./install, which can be erroneously created by make from ./install.sh.
  3001. # Reject install programs that cannot install multiple files.
  3002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3003. printf %s "checking for a BSD-compatible install... " >&6; }
  3004. if test -z "$INSTALL"; then
  3005. if test ${ac_cv_path_install+y}
  3006. then :
  3007. printf %s "(cached) " >&6
  3008. else $as_nop
  3009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3010. for as_dir in $PATH
  3011. do
  3012. IFS=$as_save_IFS
  3013. case $as_dir in #(((
  3014. '') as_dir=./ ;;
  3015. */) ;;
  3016. *) as_dir=$as_dir/ ;;
  3017. esac
  3018. # Account for fact that we put trailing slashes in our PATH walk.
  3019. case $as_dir in #((
  3020. ./ | /[cC]/* | \
  3021. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3022. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3023. /usr/ucb/* ) ;;
  3024. *)
  3025. # OSF1 and SCO ODT 3.0 have their own names for install.
  3026. # Don't use installbsd from OSF since it installs stuff as root
  3027. # by default.
  3028. for ac_prog in ginstall scoinst install; do
  3029. for ac_exec_ext in '' $ac_executable_extensions; do
  3030. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3031. if test $ac_prog = install &&
  3032. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3033. # AIX install. It has an incompatible calling convention.
  3034. :
  3035. elif test $ac_prog = install &&
  3036. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3037. # program-specific install script used by HP pwplus--don't use.
  3038. :
  3039. else
  3040. rm -rf conftest.one conftest.two conftest.dir
  3041. echo one > conftest.one
  3042. echo two > conftest.two
  3043. mkdir conftest.dir
  3044. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3045. test -s conftest.one && test -s conftest.two &&
  3046. test -s conftest.dir/conftest.one &&
  3047. test -s conftest.dir/conftest.two
  3048. then
  3049. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3050. break 3
  3051. fi
  3052. fi
  3053. fi
  3054. done
  3055. done
  3056. ;;
  3057. esac
  3058. done
  3059. IFS=$as_save_IFS
  3060. rm -rf conftest.one conftest.two conftest.dir
  3061. fi
  3062. if test ${ac_cv_path_install+y}; then
  3063. INSTALL=$ac_cv_path_install
  3064. else
  3065. # As a last resort, use the slow shell script. Don't cache a
  3066. # value for INSTALL within a source directory, because that will
  3067. # break other packages using the cache if that directory is
  3068. # removed, or if the value is a relative name.
  3069. INSTALL=$ac_install_sh
  3070. fi
  3071. fi
  3072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3073. printf "%s\n" "$INSTALL" >&6; }
  3074. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3075. # It thinks the first close brace ends the variable substitution.
  3076. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3077. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3078. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3080. printf %s "checking whether build environment is sane... " >&6; }
  3081. # Reject unsafe characters in $srcdir or the absolute working directory
  3082. # name. Accept space and tab only in the latter.
  3083. am_lf='
  3084. '
  3085. case `pwd` in
  3086. *[\\\"\#\$\&\'\`$am_lf]*)
  3087. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3088. esac
  3089. case $srcdir in
  3090. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3091. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3092. esac
  3093. # Do 'set' in a subshell so we don't clobber the current shell's
  3094. # arguments. Must try -L first in case configure is actually a
  3095. # symlink; some systems play weird games with the mod time of symlinks
  3096. # (eg FreeBSD returns the mod time of the symlink's containing
  3097. # directory).
  3098. if (
  3099. am_has_slept=no
  3100. for am_try in 1 2; do
  3101. echo "timestamp, slept: $am_has_slept" > conftest.file
  3102. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3103. if test "$*" = "X"; then
  3104. # -L didn't work.
  3105. set X `ls -t "$srcdir/configure" conftest.file`
  3106. fi
  3107. if test "$*" != "X $srcdir/configure conftest.file" \
  3108. && test "$*" != "X conftest.file $srcdir/configure"; then
  3109. # If neither matched, then we have a broken ls. This can happen
  3110. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3111. # broken ls alias from the environment. This has actually
  3112. # happened. Such a system could not be considered "sane".
  3113. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3114. alias in your environment" "$LINENO" 5
  3115. fi
  3116. if test "$2" = conftest.file || test $am_try -eq 2; then
  3117. break
  3118. fi
  3119. # Just in case.
  3120. sleep 1
  3121. am_has_slept=yes
  3122. done
  3123. test "$2" = conftest.file
  3124. )
  3125. then
  3126. # Ok.
  3127. :
  3128. else
  3129. as_fn_error $? "newly created file is older than distributed files!
  3130. Check your system clock" "$LINENO" 5
  3131. fi
  3132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3133. printf "%s\n" "yes" >&6; }
  3134. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3135. # generated files are strictly newer.
  3136. am_sleep_pid=
  3137. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3138. ( sleep 1 ) &
  3139. am_sleep_pid=$!
  3140. fi
  3141. rm -f conftest.file
  3142. test "$program_prefix" != NONE &&
  3143. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3144. # Use a double $ so make ignores it.
  3145. test "$program_suffix" != NONE &&
  3146. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3147. # Double any \ or $.
  3148. # By default was `s,x,x', remove it if useless.
  3149. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3150. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  3151. # Expand $ac_aux_dir to an absolute path.
  3152. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3153. if test x"${MISSING+set}" != xset; then
  3154. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3155. fi
  3156. # Use eval to expand $SHELL
  3157. if eval "$MISSING --is-lightweight"; then
  3158. am_missing_run="$MISSING "
  3159. else
  3160. am_missing_run=
  3161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3162. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3163. fi
  3164. if test x"${install_sh+set}" != xset; then
  3165. case $am_aux_dir in
  3166. *\ * | *\ *)
  3167. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3168. *)
  3169. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3170. esac
  3171. fi
  3172. # Installed binaries are usually stripped using 'strip' when the user
  3173. # run "make install-strip". However 'strip' might not be the right
  3174. # tool to use in cross-compilation environments, therefore Automake
  3175. # will honor the 'STRIP' environment variable to overrule this program.
  3176. if test "$cross_compiling" != no; then
  3177. if test -n "$ac_tool_prefix"; then
  3178. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3179. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3181. printf %s "checking for $ac_word... " >&6; }
  3182. if test ${ac_cv_prog_STRIP+y}
  3183. then :
  3184. printf %s "(cached) " >&6
  3185. else $as_nop
  3186. if test -n "$STRIP"; then
  3187. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3188. else
  3189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3190. for as_dir in $PATH
  3191. do
  3192. IFS=$as_save_IFS
  3193. case $as_dir in #(((
  3194. '') as_dir=./ ;;
  3195. */) ;;
  3196. *) as_dir=$as_dir/ ;;
  3197. esac
  3198. for ac_exec_ext in '' $ac_executable_extensions; do
  3199. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3200. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3202. break 2
  3203. fi
  3204. done
  3205. done
  3206. IFS=$as_save_IFS
  3207. fi
  3208. fi
  3209. STRIP=$ac_cv_prog_STRIP
  3210. if test -n "$STRIP"; then
  3211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3212. printf "%s\n" "$STRIP" >&6; }
  3213. else
  3214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3215. printf "%s\n" "no" >&6; }
  3216. fi
  3217. fi
  3218. if test -z "$ac_cv_prog_STRIP"; then
  3219. ac_ct_STRIP=$STRIP
  3220. # Extract the first word of "strip", so it can be a program name with args.
  3221. set dummy strip; ac_word=$2
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3223. printf %s "checking for $ac_word... " >&6; }
  3224. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3225. then :
  3226. printf %s "(cached) " >&6
  3227. else $as_nop
  3228. if test -n "$ac_ct_STRIP"; then
  3229. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3230. else
  3231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3232. for as_dir in $PATH
  3233. do
  3234. IFS=$as_save_IFS
  3235. case $as_dir in #(((
  3236. '') as_dir=./ ;;
  3237. */) ;;
  3238. *) as_dir=$as_dir/ ;;
  3239. esac
  3240. for ac_exec_ext in '' $ac_executable_extensions; do
  3241. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3242. ac_cv_prog_ac_ct_STRIP="strip"
  3243. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3244. break 2
  3245. fi
  3246. done
  3247. done
  3248. IFS=$as_save_IFS
  3249. fi
  3250. fi
  3251. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3252. if test -n "$ac_ct_STRIP"; then
  3253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3254. printf "%s\n" "$ac_ct_STRIP" >&6; }
  3255. else
  3256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3257. printf "%s\n" "no" >&6; }
  3258. fi
  3259. if test "x$ac_ct_STRIP" = x; then
  3260. STRIP=":"
  3261. else
  3262. case $cross_compiling:$ac_tool_warned in
  3263. yes:)
  3264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3265. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3266. ac_tool_warned=yes ;;
  3267. esac
  3268. STRIP=$ac_ct_STRIP
  3269. fi
  3270. else
  3271. STRIP="$ac_cv_prog_STRIP"
  3272. fi
  3273. fi
  3274. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  3276. printf %s "checking for a race-free mkdir -p... " >&6; }
  3277. if test -z "$MKDIR_P"; then
  3278. if test ${ac_cv_path_mkdir+y}
  3279. then :
  3280. printf %s "(cached) " >&6
  3281. else $as_nop
  3282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3283. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3284. do
  3285. IFS=$as_save_IFS
  3286. case $as_dir in #(((
  3287. '') as_dir=./ ;;
  3288. */) ;;
  3289. *) as_dir=$as_dir/ ;;
  3290. esac
  3291. for ac_prog in mkdir gmkdir; do
  3292. for ac_exec_ext in '' $ac_executable_extensions; do
  3293. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  3294. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3295. 'mkdir ('*'coreutils) '* | \
  3296. 'BusyBox '* | \
  3297. 'mkdir (fileutils) '4.1*)
  3298. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  3299. break 3;;
  3300. esac
  3301. done
  3302. done
  3303. done
  3304. IFS=$as_save_IFS
  3305. fi
  3306. test -d ./--version && rmdir ./--version
  3307. if test ${ac_cv_path_mkdir+y}; then
  3308. MKDIR_P="$ac_cv_path_mkdir -p"
  3309. else
  3310. # As a last resort, use the slow shell script. Don't cache a
  3311. # value for MKDIR_P within a source directory, because that will
  3312. # break other packages using the cache if that directory is
  3313. # removed, or if the value is a relative name.
  3314. MKDIR_P="$ac_install_sh -d"
  3315. fi
  3316. fi
  3317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3318. printf "%s\n" "$MKDIR_P" >&6; }
  3319. for ac_prog in gawk mawk nawk awk
  3320. do
  3321. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3322. set dummy $ac_prog; ac_word=$2
  3323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3324. printf %s "checking for $ac_word... " >&6; }
  3325. if test ${ac_cv_prog_AWK+y}
  3326. then :
  3327. printf %s "(cached) " >&6
  3328. else $as_nop
  3329. if test -n "$AWK"; then
  3330. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3331. else
  3332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3333. for as_dir in $PATH
  3334. do
  3335. IFS=$as_save_IFS
  3336. case $as_dir in #(((
  3337. '') as_dir=./ ;;
  3338. */) ;;
  3339. *) as_dir=$as_dir/ ;;
  3340. esac
  3341. for ac_exec_ext in '' $ac_executable_extensions; do
  3342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3343. ac_cv_prog_AWK="$ac_prog"
  3344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3345. break 2
  3346. fi
  3347. done
  3348. done
  3349. IFS=$as_save_IFS
  3350. fi
  3351. fi
  3352. AWK=$ac_cv_prog_AWK
  3353. if test -n "$AWK"; then
  3354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3355. printf "%s\n" "$AWK" >&6; }
  3356. else
  3357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3358. printf "%s\n" "no" >&6; }
  3359. fi
  3360. test -n "$AWK" && break
  3361. done
  3362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3363. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3364. set x ${MAKE-make}
  3365. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3366. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3367. then :
  3368. printf %s "(cached) " >&6
  3369. else $as_nop
  3370. cat >conftest.make <<\_ACEOF
  3371. SHELL = /bin/sh
  3372. all:
  3373. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3374. _ACEOF
  3375. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3376. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3377. *@@@%%%=?*=@@@%%%*)
  3378. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3379. *)
  3380. eval ac_cv_prog_make_${ac_make}_set=no;;
  3381. esac
  3382. rm -f conftest.make
  3383. fi
  3384. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3386. printf "%s\n" "yes" >&6; }
  3387. SET_MAKE=
  3388. else
  3389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3390. printf "%s\n" "no" >&6; }
  3391. SET_MAKE="MAKE=${MAKE-make}"
  3392. fi
  3393. rm -rf .tst 2>/dev/null
  3394. mkdir .tst 2>/dev/null
  3395. if test -d .tst; then
  3396. am__leading_dot=.
  3397. else
  3398. am__leading_dot=_
  3399. fi
  3400. rmdir .tst 2>/dev/null
  3401. # Check whether --enable-silent-rules was given.
  3402. if test ${enable_silent_rules+y}
  3403. then :
  3404. enableval=$enable_silent_rules;
  3405. fi
  3406. case $enable_silent_rules in # (((
  3407. yes) AM_DEFAULT_VERBOSITY=0;;
  3408. no) AM_DEFAULT_VERBOSITY=1;;
  3409. *) AM_DEFAULT_VERBOSITY=1;;
  3410. esac
  3411. am_make=${MAKE-make}
  3412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3413. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3414. if test ${am_cv_make_support_nested_variables+y}
  3415. then :
  3416. printf %s "(cached) " >&6
  3417. else $as_nop
  3418. if printf "%s\n" 'TRUE=$(BAR$(V))
  3419. BAR0=false
  3420. BAR1=true
  3421. V=1
  3422. am__doit:
  3423. @$(TRUE)
  3424. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3425. am_cv_make_support_nested_variables=yes
  3426. else
  3427. am_cv_make_support_nested_variables=no
  3428. fi
  3429. fi
  3430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3431. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3432. if test $am_cv_make_support_nested_variables = yes; then
  3433. AM_V='$(V)'
  3434. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3435. else
  3436. AM_V=$AM_DEFAULT_VERBOSITY
  3437. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3438. fi
  3439. AM_BACKSLASH='\'
  3440. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3441. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3442. # is not polluted with repeated "-I."
  3443. am__isrc=' -I$(srcdir)'
  3444. # test to see if srcdir already configured
  3445. if test -f $srcdir/config.status; then
  3446. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3447. fi
  3448. fi
  3449. # test whether we have cygpath
  3450. if test -z "$CYGPATH_W"; then
  3451. if (cygpath --version) >/dev/null 2>/dev/null; then
  3452. CYGPATH_W='cygpath -w'
  3453. else
  3454. CYGPATH_W=echo
  3455. fi
  3456. fi
  3457. # Define the identity of the package.
  3458. PACKAGE='expat'
  3459. VERSION='2.4.4'
  3460. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3461. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3462. # Some tools Automake needs.
  3463. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3464. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3465. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3466. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3467. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3468. # For better backward compatibility. To be removed once Automake 1.9.x
  3469. # dies out for good. For more background, see:
  3470. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3471. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3472. mkdir_p='$(MKDIR_P)'
  3473. # We need awk for the "check" target (and possibly the TAP driver). The
  3474. # system "awk" is bad on some platforms.
  3475. # Always define AMTAR for backward compatibility. Yes, it's still used
  3476. # in the wild :-( We should find a proper way to deprecate it ...
  3477. AMTAR='$${TAR-tar}'
  3478. # We'll loop over all known methods to create a tar archive until one works.
  3479. _am_tools='gnutar pax cpio none'
  3480. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3481. # Variables for tags utilities; see am/tags.am
  3482. if test -z "$CTAGS"; then
  3483. CTAGS=ctags
  3484. fi
  3485. if test -z "$ETAGS"; then
  3486. ETAGS=etags
  3487. fi
  3488. if test -z "$CSCOPE"; then
  3489. CSCOPE=cscope
  3490. fi
  3491. # POSIX will say in a future version that running "rm -f" with no argument
  3492. # is OK; and we want to be able to make that assumption in our Makefile
  3493. # recipes. So use an aggressive probe to check that the usage we want is
  3494. # actually supported "in the wild" to an acceptable degree.
  3495. # See automake bug#10828.
  3496. # To make any issue more visible, cause the running configure to be aborted
  3497. # by default if the 'rm' program in use doesn't match our expectations; the
  3498. # user can still override this though.
  3499. if rm -f && rm -fr && rm -rf; then : OK; else
  3500. cat >&2 <<'END'
  3501. Oops!
  3502. Your 'rm' program seems unable to run without file operands specified
  3503. on the command line, even when the '-f' option is present. This is contrary
  3504. to the behaviour of most rm programs out there, and not conforming with
  3505. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3506. Please tell [email protected] about your system, including the value
  3507. of your $PATH and any error possibly output before this message. This
  3508. can help us improve future automake versions.
  3509. END
  3510. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3511. echo 'Configuration will proceed anyway, since you have set the' >&2
  3512. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3513. echo >&2
  3514. else
  3515. cat >&2 <<'END'
  3516. Aborting the configuration process, to ensure you take notice of the issue.
  3517. You can download and install GNU coreutils to get an 'rm' implementation
  3518. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3519. If you want to complete the configuration process using your problematic
  3520. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3521. to "yes", and re-run configure.
  3522. END
  3523. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3524. fi
  3525. fi
  3526. LIBCURRENT=9 # sync
  3527. LIBREVISION=4 # with
  3528. LIBAGE=8 # CMakeLists.txt!
  3529. ac_config_headers="$ac_config_headers expat_config.h"
  3530. DEPDIR="${am__leading_dot}deps"
  3531. ac_config_commands="$ac_config_commands depfiles"
  3532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3533. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3534. cat > confinc.mk << 'END'
  3535. am__doit:
  3536. @echo this is the am__doit target >confinc.out
  3537. .PHONY: am__doit
  3538. END
  3539. am__include="#"
  3540. am__quote=
  3541. # BSD make does it like this.
  3542. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3543. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3544. echo 'include confinc.mk # ignored' > confmf.GNU
  3545. _am_result=no
  3546. for s in GNU BSD; do
  3547. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3548. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3549. ac_status=$?
  3550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3551. (exit $ac_status); }
  3552. case $?:`cat confinc.out 2>/dev/null` in #(
  3553. '0:this is the am__doit target') :
  3554. case $s in #(
  3555. BSD) :
  3556. am__include='.include' am__quote='"' ;; #(
  3557. *) :
  3558. am__include='include' am__quote='' ;;
  3559. esac ;; #(
  3560. *) :
  3561. ;;
  3562. esac
  3563. if test "$am__include" != "#"; then
  3564. _am_result="yes ($s style)"
  3565. break
  3566. fi
  3567. done
  3568. rm -f confinc.* confmf.*
  3569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3570. printf "%s\n" "${_am_result}" >&6; }
  3571. # Check whether --enable-dependency-tracking was given.
  3572. if test ${enable_dependency_tracking+y}
  3573. then :
  3574. enableval=$enable_dependency_tracking;
  3575. fi
  3576. if test "x$enable_dependency_tracking" != xno; then
  3577. am_depcomp="$ac_aux_dir/depcomp"
  3578. AMDEPBACKSLASH='\'
  3579. am__nodep='_no'
  3580. fi
  3581. if test "x$enable_dependency_tracking" != xno; then
  3582. AMDEP_TRUE=
  3583. AMDEP_FALSE='#'
  3584. else
  3585. AMDEP_TRUE='#'
  3586. AMDEP_FALSE=
  3587. fi
  3588. ac_ext=c
  3589. ac_cpp='$CPP $CPPFLAGS'
  3590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3593. if test -n "$ac_tool_prefix"; then
  3594. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3595. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3597. printf %s "checking for $ac_word... " >&6; }
  3598. if test ${ac_cv_prog_CC+y}
  3599. then :
  3600. printf %s "(cached) " >&6
  3601. else $as_nop
  3602. if test -n "$CC"; then
  3603. ac_cv_prog_CC="$CC" # Let the user override the test.
  3604. else
  3605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3606. for as_dir in $PATH
  3607. do
  3608. IFS=$as_save_IFS
  3609. case $as_dir in #(((
  3610. '') as_dir=./ ;;
  3611. */) ;;
  3612. *) as_dir=$as_dir/ ;;
  3613. esac
  3614. for ac_exec_ext in '' $ac_executable_extensions; do
  3615. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3616. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3617. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3618. break 2
  3619. fi
  3620. done
  3621. done
  3622. IFS=$as_save_IFS
  3623. fi
  3624. fi
  3625. CC=$ac_cv_prog_CC
  3626. if test -n "$CC"; then
  3627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3628. printf "%s\n" "$CC" >&6; }
  3629. else
  3630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3631. printf "%s\n" "no" >&6; }
  3632. fi
  3633. fi
  3634. if test -z "$ac_cv_prog_CC"; then
  3635. ac_ct_CC=$CC
  3636. # Extract the first word of "gcc", so it can be a program name with args.
  3637. set dummy gcc; ac_word=$2
  3638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3639. printf %s "checking for $ac_word... " >&6; }
  3640. if test ${ac_cv_prog_ac_ct_CC+y}
  3641. then :
  3642. printf %s "(cached) " >&6
  3643. else $as_nop
  3644. if test -n "$ac_ct_CC"; then
  3645. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3646. else
  3647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3648. for as_dir in $PATH
  3649. do
  3650. IFS=$as_save_IFS
  3651. case $as_dir in #(((
  3652. '') as_dir=./ ;;
  3653. */) ;;
  3654. *) as_dir=$as_dir/ ;;
  3655. esac
  3656. for ac_exec_ext in '' $ac_executable_extensions; do
  3657. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3658. ac_cv_prog_ac_ct_CC="gcc"
  3659. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3660. break 2
  3661. fi
  3662. done
  3663. done
  3664. IFS=$as_save_IFS
  3665. fi
  3666. fi
  3667. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3668. if test -n "$ac_ct_CC"; then
  3669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3670. printf "%s\n" "$ac_ct_CC" >&6; }
  3671. else
  3672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3673. printf "%s\n" "no" >&6; }
  3674. fi
  3675. if test "x$ac_ct_CC" = x; then
  3676. CC=""
  3677. else
  3678. case $cross_compiling:$ac_tool_warned in
  3679. yes:)
  3680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3681. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3682. ac_tool_warned=yes ;;
  3683. esac
  3684. CC=$ac_ct_CC
  3685. fi
  3686. else
  3687. CC="$ac_cv_prog_CC"
  3688. fi
  3689. if test -z "$CC"; then
  3690. if test -n "$ac_tool_prefix"; then
  3691. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3692. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3694. printf %s "checking for $ac_word... " >&6; }
  3695. if test ${ac_cv_prog_CC+y}
  3696. then :
  3697. printf %s "(cached) " >&6
  3698. else $as_nop
  3699. if test -n "$CC"; then
  3700. ac_cv_prog_CC="$CC" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. case $as_dir in #(((
  3707. '') as_dir=./ ;;
  3708. */) ;;
  3709. *) as_dir=$as_dir/ ;;
  3710. esac
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3713. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3714. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3715. break 2
  3716. fi
  3717. done
  3718. done
  3719. IFS=$as_save_IFS
  3720. fi
  3721. fi
  3722. CC=$ac_cv_prog_CC
  3723. if test -n "$CC"; then
  3724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3725. printf "%s\n" "$CC" >&6; }
  3726. else
  3727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3728. printf "%s\n" "no" >&6; }
  3729. fi
  3730. fi
  3731. fi
  3732. if test -z "$CC"; then
  3733. # Extract the first word of "cc", so it can be a program name with args.
  3734. set dummy cc; ac_word=$2
  3735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3736. printf %s "checking for $ac_word... " >&6; }
  3737. if test ${ac_cv_prog_CC+y}
  3738. then :
  3739. printf %s "(cached) " >&6
  3740. else $as_nop
  3741. if test -n "$CC"; then
  3742. ac_cv_prog_CC="$CC" # Let the user override the test.
  3743. else
  3744. ac_prog_rejected=no
  3745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3746. for as_dir in $PATH
  3747. do
  3748. IFS=$as_save_IFS
  3749. case $as_dir in #(((
  3750. '') as_dir=./ ;;
  3751. */) ;;
  3752. *) as_dir=$as_dir/ ;;
  3753. esac
  3754. for ac_exec_ext in '' $ac_executable_extensions; do
  3755. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3756. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3757. ac_prog_rejected=yes
  3758. continue
  3759. fi
  3760. ac_cv_prog_CC="cc"
  3761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3762. break 2
  3763. fi
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. if test $ac_prog_rejected = yes; then
  3768. # We found a bogon in the path, so make sure we never use it.
  3769. set dummy $ac_cv_prog_CC
  3770. shift
  3771. if test $# != 0; then
  3772. # We chose a different compiler from the bogus one.
  3773. # However, it has the same basename, so the bogon will be chosen
  3774. # first if we set CC to just the basename; use the full file name.
  3775. shift
  3776. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3777. fi
  3778. fi
  3779. fi
  3780. fi
  3781. CC=$ac_cv_prog_CC
  3782. if test -n "$CC"; then
  3783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3784. printf "%s\n" "$CC" >&6; }
  3785. else
  3786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3787. printf "%s\n" "no" >&6; }
  3788. fi
  3789. fi
  3790. if test -z "$CC"; then
  3791. if test -n "$ac_tool_prefix"; then
  3792. for ac_prog in cl.exe
  3793. do
  3794. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3795. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3797. printf %s "checking for $ac_word... " >&6; }
  3798. if test ${ac_cv_prog_CC+y}
  3799. then :
  3800. printf %s "(cached) " >&6
  3801. else $as_nop
  3802. if test -n "$CC"; then
  3803. ac_cv_prog_CC="$CC" # Let the user override the test.
  3804. else
  3805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3806. for as_dir in $PATH
  3807. do
  3808. IFS=$as_save_IFS
  3809. case $as_dir in #(((
  3810. '') as_dir=./ ;;
  3811. */) ;;
  3812. *) as_dir=$as_dir/ ;;
  3813. esac
  3814. for ac_exec_ext in '' $ac_executable_extensions; do
  3815. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3816. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3817. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3818. break 2
  3819. fi
  3820. done
  3821. done
  3822. IFS=$as_save_IFS
  3823. fi
  3824. fi
  3825. CC=$ac_cv_prog_CC
  3826. if test -n "$CC"; then
  3827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3828. printf "%s\n" "$CC" >&6; }
  3829. else
  3830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3831. printf "%s\n" "no" >&6; }
  3832. fi
  3833. test -n "$CC" && break
  3834. done
  3835. fi
  3836. if test -z "$CC"; then
  3837. ac_ct_CC=$CC
  3838. for ac_prog in cl.exe
  3839. do
  3840. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3841. set dummy $ac_prog; ac_word=$2
  3842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3843. printf %s "checking for $ac_word... " >&6; }
  3844. if test ${ac_cv_prog_ac_ct_CC+y}
  3845. then :
  3846. printf %s "(cached) " >&6
  3847. else $as_nop
  3848. if test -n "$ac_ct_CC"; then
  3849. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3850. else
  3851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3852. for as_dir in $PATH
  3853. do
  3854. IFS=$as_save_IFS
  3855. case $as_dir in #(((
  3856. '') as_dir=./ ;;
  3857. */) ;;
  3858. *) as_dir=$as_dir/ ;;
  3859. esac
  3860. for ac_exec_ext in '' $ac_executable_extensions; do
  3861. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3862. ac_cv_prog_ac_ct_CC="$ac_prog"
  3863. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3864. break 2
  3865. fi
  3866. done
  3867. done
  3868. IFS=$as_save_IFS
  3869. fi
  3870. fi
  3871. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3872. if test -n "$ac_ct_CC"; then
  3873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3874. printf "%s\n" "$ac_ct_CC" >&6; }
  3875. else
  3876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3877. printf "%s\n" "no" >&6; }
  3878. fi
  3879. test -n "$ac_ct_CC" && break
  3880. done
  3881. if test "x$ac_ct_CC" = x; then
  3882. CC=""
  3883. else
  3884. case $cross_compiling:$ac_tool_warned in
  3885. yes:)
  3886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3887. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3888. ac_tool_warned=yes ;;
  3889. esac
  3890. CC=$ac_ct_CC
  3891. fi
  3892. fi
  3893. fi
  3894. if test -z "$CC"; then
  3895. if test -n "$ac_tool_prefix"; then
  3896. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3897. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3899. printf %s "checking for $ac_word... " >&6; }
  3900. if test ${ac_cv_prog_CC+y}
  3901. then :
  3902. printf %s "(cached) " >&6
  3903. else $as_nop
  3904. if test -n "$CC"; then
  3905. ac_cv_prog_CC="$CC" # Let the user override the test.
  3906. else
  3907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3908. for as_dir in $PATH
  3909. do
  3910. IFS=$as_save_IFS
  3911. case $as_dir in #(((
  3912. '') as_dir=./ ;;
  3913. */) ;;
  3914. *) as_dir=$as_dir/ ;;
  3915. esac
  3916. for ac_exec_ext in '' $ac_executable_extensions; do
  3917. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3918. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3919. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3920. break 2
  3921. fi
  3922. done
  3923. done
  3924. IFS=$as_save_IFS
  3925. fi
  3926. fi
  3927. CC=$ac_cv_prog_CC
  3928. if test -n "$CC"; then
  3929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3930. printf "%s\n" "$CC" >&6; }
  3931. else
  3932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3933. printf "%s\n" "no" >&6; }
  3934. fi
  3935. fi
  3936. if test -z "$ac_cv_prog_CC"; then
  3937. ac_ct_CC=$CC
  3938. # Extract the first word of "clang", so it can be a program name with args.
  3939. set dummy clang; ac_word=$2
  3940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3941. printf %s "checking for $ac_word... " >&6; }
  3942. if test ${ac_cv_prog_ac_ct_CC+y}
  3943. then :
  3944. printf %s "(cached) " >&6
  3945. else $as_nop
  3946. if test -n "$ac_ct_CC"; then
  3947. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3948. else
  3949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3950. for as_dir in $PATH
  3951. do
  3952. IFS=$as_save_IFS
  3953. case $as_dir in #(((
  3954. '') as_dir=./ ;;
  3955. */) ;;
  3956. *) as_dir=$as_dir/ ;;
  3957. esac
  3958. for ac_exec_ext in '' $ac_executable_extensions; do
  3959. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3960. ac_cv_prog_ac_ct_CC="clang"
  3961. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3962. break 2
  3963. fi
  3964. done
  3965. done
  3966. IFS=$as_save_IFS
  3967. fi
  3968. fi
  3969. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3970. if test -n "$ac_ct_CC"; then
  3971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3972. printf "%s\n" "$ac_ct_CC" >&6; }
  3973. else
  3974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3975. printf "%s\n" "no" >&6; }
  3976. fi
  3977. if test "x$ac_ct_CC" = x; then
  3978. CC=""
  3979. else
  3980. case $cross_compiling:$ac_tool_warned in
  3981. yes:)
  3982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3983. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3984. ac_tool_warned=yes ;;
  3985. esac
  3986. CC=$ac_ct_CC
  3987. fi
  3988. else
  3989. CC="$ac_cv_prog_CC"
  3990. fi
  3991. fi
  3992. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3993. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3994. as_fn_error $? "no acceptable C compiler found in \$PATH
  3995. See \`config.log' for more details" "$LINENO" 5; }
  3996. # Provide some information about the compiler.
  3997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3998. set X $ac_compile
  3999. ac_compiler=$2
  4000. for ac_option in --version -v -V -qversion -version; do
  4001. { { ac_try="$ac_compiler $ac_option >&5"
  4002. case "(($ac_try" in
  4003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4004. *) ac_try_echo=$ac_try;;
  4005. esac
  4006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4007. printf "%s\n" "$ac_try_echo"; } >&5
  4008. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4009. ac_status=$?
  4010. if test -s conftest.err; then
  4011. sed '10a\
  4012. ... rest of stderr output deleted ...
  4013. 10q' conftest.err >conftest.er1
  4014. cat conftest.er1 >&5
  4015. fi
  4016. rm -f conftest.er1 conftest.err
  4017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4018. test $ac_status = 0; }
  4019. done
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. int
  4023. main (void)
  4024. {
  4025. ;
  4026. return 0;
  4027. }
  4028. _ACEOF
  4029. ac_clean_files_save=$ac_clean_files
  4030. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4031. # Try to create an executable without -o first, disregard a.out.
  4032. # It will help us diagnose broken compilers, and finding out an intuition
  4033. # of exeext.
  4034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4035. printf %s "checking whether the C compiler works... " >&6; }
  4036. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4037. # The possible output files:
  4038. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4039. ac_rmfiles=
  4040. for ac_file in $ac_files
  4041. do
  4042. case $ac_file in
  4043. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4044. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4045. esac
  4046. done
  4047. rm -f $ac_rmfiles
  4048. if { { ac_try="$ac_link_default"
  4049. case "(($ac_try" in
  4050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4051. *) ac_try_echo=$ac_try;;
  4052. esac
  4053. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4054. printf "%s\n" "$ac_try_echo"; } >&5
  4055. (eval "$ac_link_default") 2>&5
  4056. ac_status=$?
  4057. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4058. test $ac_status = 0; }
  4059. then :
  4060. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4061. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4062. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4063. # so that the user can short-circuit this test for compilers unknown to
  4064. # Autoconf.
  4065. for ac_file in $ac_files ''
  4066. do
  4067. test -f "$ac_file" || continue
  4068. case $ac_file in
  4069. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4070. ;;
  4071. [ab].out )
  4072. # We found the default executable, but exeext='' is most
  4073. # certainly right.
  4074. break;;
  4075. *.* )
  4076. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4077. then :; else
  4078. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4079. fi
  4080. # We set ac_cv_exeext here because the later test for it is not
  4081. # safe: cross compilers may not add the suffix if given an `-o'
  4082. # argument, so we may need to know it at that point already.
  4083. # Even if this section looks crufty: it has the advantage of
  4084. # actually working.
  4085. break;;
  4086. * )
  4087. break;;
  4088. esac
  4089. done
  4090. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4091. else $as_nop
  4092. ac_file=''
  4093. fi
  4094. if test -z "$ac_file"
  4095. then :
  4096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4097. printf "%s\n" "no" >&6; }
  4098. printf "%s\n" "$as_me: failed program was:" >&5
  4099. sed 's/^/| /' conftest.$ac_ext >&5
  4100. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4101. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4102. as_fn_error 77 "C compiler cannot create executables
  4103. See \`config.log' for more details" "$LINENO" 5; }
  4104. else $as_nop
  4105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4106. printf "%s\n" "yes" >&6; }
  4107. fi
  4108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4109. printf %s "checking for C compiler default output file name... " >&6; }
  4110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4111. printf "%s\n" "$ac_file" >&6; }
  4112. ac_exeext=$ac_cv_exeext
  4113. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4114. ac_clean_files=$ac_clean_files_save
  4115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4116. printf %s "checking for suffix of executables... " >&6; }
  4117. if { { ac_try="$ac_link"
  4118. case "(($ac_try" in
  4119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4120. *) ac_try_echo=$ac_try;;
  4121. esac
  4122. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4123. printf "%s\n" "$ac_try_echo"; } >&5
  4124. (eval "$ac_link") 2>&5
  4125. ac_status=$?
  4126. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4127. test $ac_status = 0; }
  4128. then :
  4129. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4130. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4131. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4132. # `rm'.
  4133. for ac_file in conftest.exe conftest conftest.*; do
  4134. test -f "$ac_file" || continue
  4135. case $ac_file in
  4136. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4137. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4138. break;;
  4139. * ) break;;
  4140. esac
  4141. done
  4142. else $as_nop
  4143. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4144. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4145. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4146. See \`config.log' for more details" "$LINENO" 5; }
  4147. fi
  4148. rm -f conftest conftest$ac_cv_exeext
  4149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4150. printf "%s\n" "$ac_cv_exeext" >&6; }
  4151. rm -f conftest.$ac_ext
  4152. EXEEXT=$ac_cv_exeext
  4153. ac_exeext=$EXEEXT
  4154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4155. /* end confdefs.h. */
  4156. #include <stdio.h>
  4157. int
  4158. main (void)
  4159. {
  4160. FILE *f = fopen ("conftest.out", "w");
  4161. return ferror (f) || fclose (f) != 0;
  4162. ;
  4163. return 0;
  4164. }
  4165. _ACEOF
  4166. ac_clean_files="$ac_clean_files conftest.out"
  4167. # Check that the compiler produces executables we can run. If not, either
  4168. # the compiler is broken, or we cross compile.
  4169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4170. printf %s "checking whether we are cross compiling... " >&6; }
  4171. if test "$cross_compiling" != yes; then
  4172. { { ac_try="$ac_link"
  4173. case "(($ac_try" in
  4174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4175. *) ac_try_echo=$ac_try;;
  4176. esac
  4177. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4178. printf "%s\n" "$ac_try_echo"; } >&5
  4179. (eval "$ac_link") 2>&5
  4180. ac_status=$?
  4181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4182. test $ac_status = 0; }
  4183. if { ac_try='./conftest$ac_cv_exeext'
  4184. { { case "(($ac_try" in
  4185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4186. *) ac_try_echo=$ac_try;;
  4187. esac
  4188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4189. printf "%s\n" "$ac_try_echo"; } >&5
  4190. (eval "$ac_try") 2>&5
  4191. ac_status=$?
  4192. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4193. test $ac_status = 0; }; }; then
  4194. cross_compiling=no
  4195. else
  4196. if test "$cross_compiling" = maybe; then
  4197. cross_compiling=yes
  4198. else
  4199. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4200. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4201. as_fn_error 77 "cannot run C compiled programs.
  4202. If you meant to cross compile, use \`--host'.
  4203. See \`config.log' for more details" "$LINENO" 5; }
  4204. fi
  4205. fi
  4206. fi
  4207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4208. printf "%s\n" "$cross_compiling" >&6; }
  4209. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4210. ac_clean_files=$ac_clean_files_save
  4211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4212. printf %s "checking for suffix of object files... " >&6; }
  4213. if test ${ac_cv_objext+y}
  4214. then :
  4215. printf %s "(cached) " >&6
  4216. else $as_nop
  4217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4218. /* end confdefs.h. */
  4219. int
  4220. main (void)
  4221. {
  4222. ;
  4223. return 0;
  4224. }
  4225. _ACEOF
  4226. rm -f conftest.o conftest.obj
  4227. if { { ac_try="$ac_compile"
  4228. case "(($ac_try" in
  4229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4230. *) ac_try_echo=$ac_try;;
  4231. esac
  4232. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4233. printf "%s\n" "$ac_try_echo"; } >&5
  4234. (eval "$ac_compile") 2>&5
  4235. ac_status=$?
  4236. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4237. test $ac_status = 0; }
  4238. then :
  4239. for ac_file in conftest.o conftest.obj conftest.*; do
  4240. test -f "$ac_file" || continue;
  4241. case $ac_file in
  4242. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4243. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4244. break;;
  4245. esac
  4246. done
  4247. else $as_nop
  4248. printf "%s\n" "$as_me: failed program was:" >&5
  4249. sed 's/^/| /' conftest.$ac_ext >&5
  4250. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4251. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4252. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4253. See \`config.log' for more details" "$LINENO" 5; }
  4254. fi
  4255. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4256. fi
  4257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4258. printf "%s\n" "$ac_cv_objext" >&6; }
  4259. OBJEXT=$ac_cv_objext
  4260. ac_objext=$OBJEXT
  4261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4262. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4263. if test ${ac_cv_c_compiler_gnu+y}
  4264. then :
  4265. printf %s "(cached) " >&6
  4266. else $as_nop
  4267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4268. /* end confdefs.h. */
  4269. int
  4270. main (void)
  4271. {
  4272. #ifndef __GNUC__
  4273. choke me
  4274. #endif
  4275. ;
  4276. return 0;
  4277. }
  4278. _ACEOF
  4279. if ac_fn_c_try_compile "$LINENO"
  4280. then :
  4281. ac_compiler_gnu=yes
  4282. else $as_nop
  4283. ac_compiler_gnu=no
  4284. fi
  4285. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4286. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4287. fi
  4288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4289. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4291. if test $ac_compiler_gnu = yes; then
  4292. GCC=yes
  4293. else
  4294. GCC=
  4295. fi
  4296. ac_test_CFLAGS=${CFLAGS+y}
  4297. ac_save_CFLAGS=$CFLAGS
  4298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4299. printf %s "checking whether $CC accepts -g... " >&6; }
  4300. if test ${ac_cv_prog_cc_g+y}
  4301. then :
  4302. printf %s "(cached) " >&6
  4303. else $as_nop
  4304. ac_save_c_werror_flag=$ac_c_werror_flag
  4305. ac_c_werror_flag=yes
  4306. ac_cv_prog_cc_g=no
  4307. CFLAGS="-g"
  4308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4309. /* end confdefs.h. */
  4310. int
  4311. main (void)
  4312. {
  4313. ;
  4314. return 0;
  4315. }
  4316. _ACEOF
  4317. if ac_fn_c_try_compile "$LINENO"
  4318. then :
  4319. ac_cv_prog_cc_g=yes
  4320. else $as_nop
  4321. CFLAGS=""
  4322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4323. /* end confdefs.h. */
  4324. int
  4325. main (void)
  4326. {
  4327. ;
  4328. return 0;
  4329. }
  4330. _ACEOF
  4331. if ac_fn_c_try_compile "$LINENO"
  4332. then :
  4333. else $as_nop
  4334. ac_c_werror_flag=$ac_save_c_werror_flag
  4335. CFLAGS="-g"
  4336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4337. /* end confdefs.h. */
  4338. int
  4339. main (void)
  4340. {
  4341. ;
  4342. return 0;
  4343. }
  4344. _ACEOF
  4345. if ac_fn_c_try_compile "$LINENO"
  4346. then :
  4347. ac_cv_prog_cc_g=yes
  4348. fi
  4349. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4350. fi
  4351. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4352. fi
  4353. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4354. ac_c_werror_flag=$ac_save_c_werror_flag
  4355. fi
  4356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4357. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4358. if test $ac_test_CFLAGS; then
  4359. CFLAGS=$ac_save_CFLAGS
  4360. elif test $ac_cv_prog_cc_g = yes; then
  4361. if test "$GCC" = yes; then
  4362. CFLAGS="-g -O2"
  4363. else
  4364. CFLAGS="-g"
  4365. fi
  4366. else
  4367. if test "$GCC" = yes; then
  4368. CFLAGS="-O2"
  4369. else
  4370. CFLAGS=
  4371. fi
  4372. fi
  4373. ac_prog_cc_stdc=no
  4374. if test x$ac_prog_cc_stdc = xno
  4375. then :
  4376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4377. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4378. if test ${ac_cv_prog_cc_c11+y}
  4379. then :
  4380. printf %s "(cached) " >&6
  4381. else $as_nop
  4382. ac_cv_prog_cc_c11=no
  4383. ac_save_CC=$CC
  4384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4385. /* end confdefs.h. */
  4386. $ac_c_conftest_c11_program
  4387. _ACEOF
  4388. for ac_arg in '' -std=gnu11
  4389. do
  4390. CC="$ac_save_CC $ac_arg"
  4391. if ac_fn_c_try_compile "$LINENO"
  4392. then :
  4393. ac_cv_prog_cc_c11=$ac_arg
  4394. fi
  4395. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4396. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4397. done
  4398. rm -f conftest.$ac_ext
  4399. CC=$ac_save_CC
  4400. fi
  4401. if test "x$ac_cv_prog_cc_c11" = xno
  4402. then :
  4403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4404. printf "%s\n" "unsupported" >&6; }
  4405. else $as_nop
  4406. if test "x$ac_cv_prog_cc_c11" = x
  4407. then :
  4408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4409. printf "%s\n" "none needed" >&6; }
  4410. else $as_nop
  4411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4412. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4413. CC="$CC $ac_cv_prog_cc_c11"
  4414. fi
  4415. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4416. ac_prog_cc_stdc=c11
  4417. fi
  4418. fi
  4419. if test x$ac_prog_cc_stdc = xno
  4420. then :
  4421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4422. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4423. if test ${ac_cv_prog_cc_c99+y}
  4424. then :
  4425. printf %s "(cached) " >&6
  4426. else $as_nop
  4427. ac_cv_prog_cc_c99=no
  4428. ac_save_CC=$CC
  4429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4430. /* end confdefs.h. */
  4431. $ac_c_conftest_c99_program
  4432. _ACEOF
  4433. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4434. do
  4435. CC="$ac_save_CC $ac_arg"
  4436. if ac_fn_c_try_compile "$LINENO"
  4437. then :
  4438. ac_cv_prog_cc_c99=$ac_arg
  4439. fi
  4440. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4441. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4442. done
  4443. rm -f conftest.$ac_ext
  4444. CC=$ac_save_CC
  4445. fi
  4446. if test "x$ac_cv_prog_cc_c99" = xno
  4447. then :
  4448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4449. printf "%s\n" "unsupported" >&6; }
  4450. else $as_nop
  4451. if test "x$ac_cv_prog_cc_c99" = x
  4452. then :
  4453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4454. printf "%s\n" "none needed" >&6; }
  4455. else $as_nop
  4456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4457. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4458. CC="$CC $ac_cv_prog_cc_c99"
  4459. fi
  4460. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4461. ac_prog_cc_stdc=c99
  4462. fi
  4463. fi
  4464. if test x$ac_prog_cc_stdc = xno
  4465. then :
  4466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4467. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4468. if test ${ac_cv_prog_cc_c89+y}
  4469. then :
  4470. printf %s "(cached) " >&6
  4471. else $as_nop
  4472. ac_cv_prog_cc_c89=no
  4473. ac_save_CC=$CC
  4474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4475. /* end confdefs.h. */
  4476. $ac_c_conftest_c89_program
  4477. _ACEOF
  4478. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4479. do
  4480. CC="$ac_save_CC $ac_arg"
  4481. if ac_fn_c_try_compile "$LINENO"
  4482. then :
  4483. ac_cv_prog_cc_c89=$ac_arg
  4484. fi
  4485. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4486. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4487. done
  4488. rm -f conftest.$ac_ext
  4489. CC=$ac_save_CC
  4490. fi
  4491. if test "x$ac_cv_prog_cc_c89" = xno
  4492. then :
  4493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4494. printf "%s\n" "unsupported" >&6; }
  4495. else $as_nop
  4496. if test "x$ac_cv_prog_cc_c89" = x
  4497. then :
  4498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4499. printf "%s\n" "none needed" >&6; }
  4500. else $as_nop
  4501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4502. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4503. CC="$CC $ac_cv_prog_cc_c89"
  4504. fi
  4505. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4506. ac_prog_cc_stdc=c89
  4507. fi
  4508. fi
  4509. ac_ext=c
  4510. ac_cpp='$CPP $CPPFLAGS'
  4511. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4512. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4513. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4514. ac_ext=c
  4515. ac_cpp='$CPP $CPPFLAGS'
  4516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4520. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4521. if test ${am_cv_prog_cc_c_o+y}
  4522. then :
  4523. printf %s "(cached) " >&6
  4524. else $as_nop
  4525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4526. /* end confdefs.h. */
  4527. int
  4528. main (void)
  4529. {
  4530. ;
  4531. return 0;
  4532. }
  4533. _ACEOF
  4534. # Make sure it works both with $CC and with simple cc.
  4535. # Following AC_PROG_CC_C_O, we do the test twice because some
  4536. # compilers refuse to overwrite an existing .o file with -o,
  4537. # though they will create one.
  4538. am_cv_prog_cc_c_o=yes
  4539. for am_i in 1 2; do
  4540. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4541. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); } \
  4545. && test -f conftest2.$ac_objext; then
  4546. : OK
  4547. else
  4548. am_cv_prog_cc_c_o=no
  4549. break
  4550. fi
  4551. done
  4552. rm -f core conftest*
  4553. unset am_i
  4554. fi
  4555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4556. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4557. if test "$am_cv_prog_cc_c_o" != yes; then
  4558. # Losing compiler, so override with the script.
  4559. # FIXME: It is wrong to rewrite CC.
  4560. # But if we don't then we get into trouble of one sort or another.
  4561. # A longer-term fix would be to have automake use am__CC in this case,
  4562. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4563. CC="$am_aux_dir/compile $CC"
  4564. fi
  4565. ac_ext=c
  4566. ac_cpp='$CPP $CPPFLAGS'
  4567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4570. depcc="$CC" am_compiler_list=
  4571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4572. printf %s "checking dependency style of $depcc... " >&6; }
  4573. if test ${am_cv_CC_dependencies_compiler_type+y}
  4574. then :
  4575. printf %s "(cached) " >&6
  4576. else $as_nop
  4577. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4578. # We make a subdir and do the tests there. Otherwise we can end up
  4579. # making bogus files that we don't know about and never remove. For
  4580. # instance it was reported that on HP-UX the gcc test will end up
  4581. # making a dummy file named 'D' -- because '-MD' means "put the output
  4582. # in D".
  4583. rm -rf conftest.dir
  4584. mkdir conftest.dir
  4585. # Copy depcomp to subdir because otherwise we won't find it if we're
  4586. # using a relative directory.
  4587. cp "$am_depcomp" conftest.dir
  4588. cd conftest.dir
  4589. # We will build objects and dependencies in a subdirectory because
  4590. # it helps to detect inapplicable dependency modes. For instance
  4591. # both Tru64's cc and ICC support -MD to output dependencies as a
  4592. # side effect of compilation, but ICC will put the dependencies in
  4593. # the current directory while Tru64 will put them in the object
  4594. # directory.
  4595. mkdir sub
  4596. am_cv_CC_dependencies_compiler_type=none
  4597. if test "$am_compiler_list" = ""; then
  4598. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4599. fi
  4600. am__universal=false
  4601. case " $depcc " in #(
  4602. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4603. esac
  4604. for depmode in $am_compiler_list; do
  4605. # Setup a source with many dependencies, because some compilers
  4606. # like to wrap large dependency lists on column 80 (with \), and
  4607. # we should not choose a depcomp mode which is confused by this.
  4608. #
  4609. # We need to recreate these files for each test, as the compiler may
  4610. # overwrite some of them when testing with obscure command lines.
  4611. # This happens at least with the AIX C compiler.
  4612. : > sub/conftest.c
  4613. for i in 1 2 3 4 5 6; do
  4614. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4615. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4616. # Solaris 10 /bin/sh.
  4617. echo '/* dummy */' > sub/conftst$i.h
  4618. done
  4619. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4620. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4621. # mode. It turns out that the SunPro C++ compiler does not properly
  4622. # handle '-M -o', and we need to detect this. Also, some Intel
  4623. # versions had trouble with output in subdirs.
  4624. am__obj=sub/conftest.${OBJEXT-o}
  4625. am__minus_obj="-o $am__obj"
  4626. case $depmode in
  4627. gcc)
  4628. # This depmode causes a compiler race in universal mode.
  4629. test "$am__universal" = false || continue
  4630. ;;
  4631. nosideeffect)
  4632. # After this tag, mechanisms are not by side-effect, so they'll
  4633. # only be used when explicitly requested.
  4634. if test "x$enable_dependency_tracking" = xyes; then
  4635. continue
  4636. else
  4637. break
  4638. fi
  4639. ;;
  4640. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4641. # This compiler won't grok '-c -o', but also, the minuso test has
  4642. # not run yet. These depmodes are late enough in the game, and
  4643. # so weak that their functioning should not be impacted.
  4644. am__obj=conftest.${OBJEXT-o}
  4645. am__minus_obj=
  4646. ;;
  4647. none) break ;;
  4648. esac
  4649. if depmode=$depmode \
  4650. source=sub/conftest.c object=$am__obj \
  4651. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4652. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4653. >/dev/null 2>conftest.err &&
  4654. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4655. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4656. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4657. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4658. # icc doesn't choke on unknown options, it will just issue warnings
  4659. # or remarks (even with -Werror). So we grep stderr for any message
  4660. # that says an option was ignored or not supported.
  4661. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4662. # icc: Command line warning: ignoring option '-M'; no argument required
  4663. # The diagnosis changed in icc 8.0:
  4664. # icc: Command line remark: option '-MP' not supported
  4665. if (grep 'ignoring option' conftest.err ||
  4666. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4667. am_cv_CC_dependencies_compiler_type=$depmode
  4668. break
  4669. fi
  4670. fi
  4671. done
  4672. cd ..
  4673. rm -rf conftest.dir
  4674. else
  4675. am_cv_CC_dependencies_compiler_type=none
  4676. fi
  4677. fi
  4678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4679. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4680. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4681. if
  4682. test "x$enable_dependency_tracking" != xno \
  4683. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4684. am__fastdepCC_TRUE=
  4685. am__fastdepCC_FALSE='#'
  4686. else
  4687. am__fastdepCC_TRUE='#'
  4688. am__fastdepCC_FALSE=
  4689. fi
  4690. if test -n "$ac_tool_prefix"; then
  4691. for ac_prog in ar lib "link -lib"
  4692. do
  4693. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4694. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4696. printf %s "checking for $ac_word... " >&6; }
  4697. if test ${ac_cv_prog_AR+y}
  4698. then :
  4699. printf %s "(cached) " >&6
  4700. else $as_nop
  4701. if test -n "$AR"; then
  4702. ac_cv_prog_AR="$AR" # Let the user override the test.
  4703. else
  4704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4705. for as_dir in $PATH
  4706. do
  4707. IFS=$as_save_IFS
  4708. case $as_dir in #(((
  4709. '') as_dir=./ ;;
  4710. */) ;;
  4711. *) as_dir=$as_dir/ ;;
  4712. esac
  4713. for ac_exec_ext in '' $ac_executable_extensions; do
  4714. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4715. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4716. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4717. break 2
  4718. fi
  4719. done
  4720. done
  4721. IFS=$as_save_IFS
  4722. fi
  4723. fi
  4724. AR=$ac_cv_prog_AR
  4725. if test -n "$AR"; then
  4726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4727. printf "%s\n" "$AR" >&6; }
  4728. else
  4729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4730. printf "%s\n" "no" >&6; }
  4731. fi
  4732. test -n "$AR" && break
  4733. done
  4734. fi
  4735. if test -z "$AR"; then
  4736. ac_ct_AR=$AR
  4737. for ac_prog in ar lib "link -lib"
  4738. do
  4739. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4740. set dummy $ac_prog; ac_word=$2
  4741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4742. printf %s "checking for $ac_word... " >&6; }
  4743. if test ${ac_cv_prog_ac_ct_AR+y}
  4744. then :
  4745. printf %s "(cached) " >&6
  4746. else $as_nop
  4747. if test -n "$ac_ct_AR"; then
  4748. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4749. else
  4750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4751. for as_dir in $PATH
  4752. do
  4753. IFS=$as_save_IFS
  4754. case $as_dir in #(((
  4755. '') as_dir=./ ;;
  4756. */) ;;
  4757. *) as_dir=$as_dir/ ;;
  4758. esac
  4759. for ac_exec_ext in '' $ac_executable_extensions; do
  4760. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4761. ac_cv_prog_ac_ct_AR="$ac_prog"
  4762. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4763. break 2
  4764. fi
  4765. done
  4766. done
  4767. IFS=$as_save_IFS
  4768. fi
  4769. fi
  4770. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4771. if test -n "$ac_ct_AR"; then
  4772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4773. printf "%s\n" "$ac_ct_AR" >&6; }
  4774. else
  4775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4776. printf "%s\n" "no" >&6; }
  4777. fi
  4778. test -n "$ac_ct_AR" && break
  4779. done
  4780. if test "x$ac_ct_AR" = x; then
  4781. AR="false"
  4782. else
  4783. case $cross_compiling:$ac_tool_warned in
  4784. yes:)
  4785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4786. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4787. ac_tool_warned=yes ;;
  4788. esac
  4789. AR=$ac_ct_AR
  4790. fi
  4791. fi
  4792. : ${AR=ar}
  4793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4794. printf %s "checking the archiver ($AR) interface... " >&6; }
  4795. if test ${am_cv_ar_interface+y}
  4796. then :
  4797. printf %s "(cached) " >&6
  4798. else $as_nop
  4799. ac_ext=c
  4800. ac_cpp='$CPP $CPPFLAGS'
  4801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4804. am_cv_ar_interface=ar
  4805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4806. /* end confdefs.h. */
  4807. int some_variable = 0;
  4808. _ACEOF
  4809. if ac_fn_c_try_compile "$LINENO"
  4810. then :
  4811. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4812. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4813. (eval $am_ar_try) 2>&5
  4814. ac_status=$?
  4815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4816. test $ac_status = 0; }
  4817. if test "$ac_status" -eq 0; then
  4818. am_cv_ar_interface=ar
  4819. else
  4820. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4821. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4822. (eval $am_ar_try) 2>&5
  4823. ac_status=$?
  4824. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4825. test $ac_status = 0; }
  4826. if test "$ac_status" -eq 0; then
  4827. am_cv_ar_interface=lib
  4828. else
  4829. am_cv_ar_interface=unknown
  4830. fi
  4831. fi
  4832. rm -f conftest.lib libconftest.a
  4833. fi
  4834. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4835. ac_ext=c
  4836. ac_cpp='$CPP $CPPFLAGS'
  4837. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4838. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4840. fi
  4841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4842. printf "%s\n" "$am_cv_ar_interface" >&6; }
  4843. case $am_cv_ar_interface in
  4844. ar)
  4845. ;;
  4846. lib)
  4847. # Microsoft lib, so override with the ar-lib wrapper script.
  4848. # FIXME: It is wrong to rewrite AR.
  4849. # But if we don't then we get into trouble of one sort or another.
  4850. # A longer-term fix would be to have automake use am__AR in this case,
  4851. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4852. # similar.
  4853. AR="$am_aux_dir/ar-lib $AR"
  4854. ;;
  4855. unknown)
  4856. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4857. ;;
  4858. esac
  4859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4860. printf %s "checking whether ln -s works... " >&6; }
  4861. LN_S=$as_ln_s
  4862. if test "$LN_S" = "ln -s"; then
  4863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4864. printf "%s\n" "yes" >&6; }
  4865. else
  4866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4867. printf "%s\n" "no, using $LN_S" >&6; }
  4868. fi
  4869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4870. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4871. set x ${MAKE-make}
  4872. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4873. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  4874. then :
  4875. printf %s "(cached) " >&6
  4876. else $as_nop
  4877. cat >conftest.make <<\_ACEOF
  4878. SHELL = /bin/sh
  4879. all:
  4880. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4881. _ACEOF
  4882. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4883. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4884. *@@@%%%=?*=@@@%%%*)
  4885. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4886. *)
  4887. eval ac_cv_prog_make_${ac_make}_set=no;;
  4888. esac
  4889. rm -f conftest.make
  4890. fi
  4891. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4893. printf "%s\n" "yes" >&6; }
  4894. SET_MAKE=
  4895. else
  4896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4897. printf "%s\n" "no" >&6; }
  4898. SET_MAKE="MAKE=${MAKE-make}"
  4899. fi
  4900. case `pwd` in
  4901. *\ * | *\ *)
  4902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4903. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4904. esac
  4905. macro_version='2.4.6'
  4906. macro_revision='2.4.6'
  4907. ltmain=$ac_aux_dir/ltmain.sh
  4908. # Backslashify metacharacters that are still active within
  4909. # double-quoted strings.
  4910. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4911. # Same as above, but do not quote variable references.
  4912. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4913. # Sed substitution to delay expansion of an escaped shell variable in a
  4914. # double_quote_subst'ed string.
  4915. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4916. # Sed substitution to delay expansion of an escaped single quote.
  4917. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4918. # Sed substitution to avoid accidental globbing in evaled expressions
  4919. no_glob_subst='s/\*/\\\*/g'
  4920. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4921. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4922. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4924. printf %s "checking how to print strings... " >&6; }
  4925. # Test print first, because it will be a builtin if present.
  4926. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4927. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4928. ECHO='print -r --'
  4929. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4930. ECHO='printf %s\n'
  4931. else
  4932. # Use this function as a fallback that always works.
  4933. func_fallback_echo ()
  4934. {
  4935. eval 'cat <<_LTECHO_EOF
  4936. $1
  4937. _LTECHO_EOF'
  4938. }
  4939. ECHO='func_fallback_echo'
  4940. fi
  4941. # func_echo_all arg...
  4942. # Invoke $ECHO with all args, space-separated.
  4943. func_echo_all ()
  4944. {
  4945. $ECHO ""
  4946. }
  4947. case $ECHO in
  4948. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4949. printf "%s\n" "printf" >&6; } ;;
  4950. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4951. printf "%s\n" "print -r" >&6; } ;;
  4952. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4953. printf "%s\n" "cat" >&6; } ;;
  4954. esac
  4955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4956. printf %s "checking for a sed that does not truncate output... " >&6; }
  4957. if test ${ac_cv_path_SED+y}
  4958. then :
  4959. printf %s "(cached) " >&6
  4960. else $as_nop
  4961. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4962. for ac_i in 1 2 3 4 5 6 7; do
  4963. ac_script="$ac_script$as_nl$ac_script"
  4964. done
  4965. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4966. { ac_script=; unset ac_script;}
  4967. if test -z "$SED"; then
  4968. ac_path_SED_found=false
  4969. # Loop through the user's path and test for each of PROGNAME-LIST
  4970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4971. for as_dir in $PATH
  4972. do
  4973. IFS=$as_save_IFS
  4974. case $as_dir in #(((
  4975. '') as_dir=./ ;;
  4976. */) ;;
  4977. *) as_dir=$as_dir/ ;;
  4978. esac
  4979. for ac_prog in sed gsed
  4980. do
  4981. for ac_exec_ext in '' $ac_executable_extensions; do
  4982. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4983. as_fn_executable_p "$ac_path_SED" || continue
  4984. # Check for GNU ac_path_SED and select it if it is found.
  4985. # Check for GNU $ac_path_SED
  4986. case `"$ac_path_SED" --version 2>&1` in
  4987. *GNU*)
  4988. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4989. *)
  4990. ac_count=0
  4991. printf %s 0123456789 >"conftest.in"
  4992. while :
  4993. do
  4994. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4995. mv "conftest.tmp" "conftest.in"
  4996. cp "conftest.in" "conftest.nl"
  4997. printf "%s\n" '' >> "conftest.nl"
  4998. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4999. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5000. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5001. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5002. # Best one so far, save it but keep looking for a better one
  5003. ac_cv_path_SED="$ac_path_SED"
  5004. ac_path_SED_max=$ac_count
  5005. fi
  5006. # 10*(2^10) chars as input seems more than enough
  5007. test $ac_count -gt 10 && break
  5008. done
  5009. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5010. esac
  5011. $ac_path_SED_found && break 3
  5012. done
  5013. done
  5014. done
  5015. IFS=$as_save_IFS
  5016. if test -z "$ac_cv_path_SED"; then
  5017. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5018. fi
  5019. else
  5020. ac_cv_path_SED=$SED
  5021. fi
  5022. fi
  5023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5024. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5025. SED="$ac_cv_path_SED"
  5026. rm -f conftest.sed
  5027. test -z "$SED" && SED=sed
  5028. Xsed="$SED -e 1s/^X//"
  5029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5030. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5031. if test ${ac_cv_path_GREP+y}
  5032. then :
  5033. printf %s "(cached) " >&6
  5034. else $as_nop
  5035. if test -z "$GREP"; then
  5036. ac_path_GREP_found=false
  5037. # Loop through the user's path and test for each of PROGNAME-LIST
  5038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5039. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5040. do
  5041. IFS=$as_save_IFS
  5042. case $as_dir in #(((
  5043. '') as_dir=./ ;;
  5044. */) ;;
  5045. *) as_dir=$as_dir/ ;;
  5046. esac
  5047. for ac_prog in grep ggrep
  5048. do
  5049. for ac_exec_ext in '' $ac_executable_extensions; do
  5050. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5051. as_fn_executable_p "$ac_path_GREP" || continue
  5052. # Check for GNU ac_path_GREP and select it if it is found.
  5053. # Check for GNU $ac_path_GREP
  5054. case `"$ac_path_GREP" --version 2>&1` in
  5055. *GNU*)
  5056. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5057. *)
  5058. ac_count=0
  5059. printf %s 0123456789 >"conftest.in"
  5060. while :
  5061. do
  5062. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5063. mv "conftest.tmp" "conftest.in"
  5064. cp "conftest.in" "conftest.nl"
  5065. printf "%s\n" 'GREP' >> "conftest.nl"
  5066. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5067. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5068. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5069. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5070. # Best one so far, save it but keep looking for a better one
  5071. ac_cv_path_GREP="$ac_path_GREP"
  5072. ac_path_GREP_max=$ac_count
  5073. fi
  5074. # 10*(2^10) chars as input seems more than enough
  5075. test $ac_count -gt 10 && break
  5076. done
  5077. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5078. esac
  5079. $ac_path_GREP_found && break 3
  5080. done
  5081. done
  5082. done
  5083. IFS=$as_save_IFS
  5084. if test -z "$ac_cv_path_GREP"; then
  5085. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5086. fi
  5087. else
  5088. ac_cv_path_GREP=$GREP
  5089. fi
  5090. fi
  5091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5092. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5093. GREP="$ac_cv_path_GREP"
  5094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5095. printf %s "checking for egrep... " >&6; }
  5096. if test ${ac_cv_path_EGREP+y}
  5097. then :
  5098. printf %s "(cached) " >&6
  5099. else $as_nop
  5100. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5101. then ac_cv_path_EGREP="$GREP -E"
  5102. else
  5103. if test -z "$EGREP"; then
  5104. ac_path_EGREP_found=false
  5105. # Loop through the user's path and test for each of PROGNAME-LIST
  5106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5107. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5108. do
  5109. IFS=$as_save_IFS
  5110. case $as_dir in #(((
  5111. '') as_dir=./ ;;
  5112. */) ;;
  5113. *) as_dir=$as_dir/ ;;
  5114. esac
  5115. for ac_prog in egrep
  5116. do
  5117. for ac_exec_ext in '' $ac_executable_extensions; do
  5118. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5119. as_fn_executable_p "$ac_path_EGREP" || continue
  5120. # Check for GNU ac_path_EGREP and select it if it is found.
  5121. # Check for GNU $ac_path_EGREP
  5122. case `"$ac_path_EGREP" --version 2>&1` in
  5123. *GNU*)
  5124. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5125. *)
  5126. ac_count=0
  5127. printf %s 0123456789 >"conftest.in"
  5128. while :
  5129. do
  5130. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5131. mv "conftest.tmp" "conftest.in"
  5132. cp "conftest.in" "conftest.nl"
  5133. printf "%s\n" 'EGREP' >> "conftest.nl"
  5134. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5135. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5136. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5137. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5138. # Best one so far, save it but keep looking for a better one
  5139. ac_cv_path_EGREP="$ac_path_EGREP"
  5140. ac_path_EGREP_max=$ac_count
  5141. fi
  5142. # 10*(2^10) chars as input seems more than enough
  5143. test $ac_count -gt 10 && break
  5144. done
  5145. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5146. esac
  5147. $ac_path_EGREP_found && break 3
  5148. done
  5149. done
  5150. done
  5151. IFS=$as_save_IFS
  5152. if test -z "$ac_cv_path_EGREP"; then
  5153. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5154. fi
  5155. else
  5156. ac_cv_path_EGREP=$EGREP
  5157. fi
  5158. fi
  5159. fi
  5160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5161. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5162. EGREP="$ac_cv_path_EGREP"
  5163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5164. printf %s "checking for fgrep... " >&6; }
  5165. if test ${ac_cv_path_FGREP+y}
  5166. then :
  5167. printf %s "(cached) " >&6
  5168. else $as_nop
  5169. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5170. then ac_cv_path_FGREP="$GREP -F"
  5171. else
  5172. if test -z "$FGREP"; then
  5173. ac_path_FGREP_found=false
  5174. # Loop through the user's path and test for each of PROGNAME-LIST
  5175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5176. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5177. do
  5178. IFS=$as_save_IFS
  5179. case $as_dir in #(((
  5180. '') as_dir=./ ;;
  5181. */) ;;
  5182. *) as_dir=$as_dir/ ;;
  5183. esac
  5184. for ac_prog in fgrep
  5185. do
  5186. for ac_exec_ext in '' $ac_executable_extensions; do
  5187. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5188. as_fn_executable_p "$ac_path_FGREP" || continue
  5189. # Check for GNU ac_path_FGREP and select it if it is found.
  5190. # Check for GNU $ac_path_FGREP
  5191. case `"$ac_path_FGREP" --version 2>&1` in
  5192. *GNU*)
  5193. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5194. *)
  5195. ac_count=0
  5196. printf %s 0123456789 >"conftest.in"
  5197. while :
  5198. do
  5199. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5200. mv "conftest.tmp" "conftest.in"
  5201. cp "conftest.in" "conftest.nl"
  5202. printf "%s\n" 'FGREP' >> "conftest.nl"
  5203. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5204. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5205. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5206. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5207. # Best one so far, save it but keep looking for a better one
  5208. ac_cv_path_FGREP="$ac_path_FGREP"
  5209. ac_path_FGREP_max=$ac_count
  5210. fi
  5211. # 10*(2^10) chars as input seems more than enough
  5212. test $ac_count -gt 10 && break
  5213. done
  5214. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5215. esac
  5216. $ac_path_FGREP_found && break 3
  5217. done
  5218. done
  5219. done
  5220. IFS=$as_save_IFS
  5221. if test -z "$ac_cv_path_FGREP"; then
  5222. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5223. fi
  5224. else
  5225. ac_cv_path_FGREP=$FGREP
  5226. fi
  5227. fi
  5228. fi
  5229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5230. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5231. FGREP="$ac_cv_path_FGREP"
  5232. test -z "$GREP" && GREP=grep
  5233. # Check whether --with-gnu-ld was given.
  5234. if test ${with_gnu_ld+y}
  5235. then :
  5236. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5237. else $as_nop
  5238. with_gnu_ld=no
  5239. fi
  5240. ac_prog=ld
  5241. if test yes = "$GCC"; then
  5242. # Check if gcc -print-prog-name=ld gives a path.
  5243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5244. printf %s "checking for ld used by $CC... " >&6; }
  5245. case $host in
  5246. *-*-mingw*)
  5247. # gcc leaves a trailing carriage return, which upsets mingw
  5248. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5249. *)
  5250. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5251. esac
  5252. case $ac_prog in
  5253. # Accept absolute paths.
  5254. [\\/]* | ?:[\\/]*)
  5255. re_direlt='/[^/][^/]*/\.\./'
  5256. # Canonicalize the pathname of ld
  5257. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5258. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5259. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5260. done
  5261. test -z "$LD" && LD=$ac_prog
  5262. ;;
  5263. "")
  5264. # If it fails, then pretend we aren't using GCC.
  5265. ac_prog=ld
  5266. ;;
  5267. *)
  5268. # If it is relative, then search for the first ld in PATH.
  5269. with_gnu_ld=unknown
  5270. ;;
  5271. esac
  5272. elif test yes = "$with_gnu_ld"; then
  5273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5274. printf %s "checking for GNU ld... " >&6; }
  5275. else
  5276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5277. printf %s "checking for non-GNU ld... " >&6; }
  5278. fi
  5279. if test ${lt_cv_path_LD+y}
  5280. then :
  5281. printf %s "(cached) " >&6
  5282. else $as_nop
  5283. if test -z "$LD"; then
  5284. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5285. for ac_dir in $PATH; do
  5286. IFS=$lt_save_ifs
  5287. test -z "$ac_dir" && ac_dir=.
  5288. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5289. lt_cv_path_LD=$ac_dir/$ac_prog
  5290. # Check to see if the program is GNU ld. I'd rather use --version,
  5291. # but apparently some variants of GNU ld only accept -v.
  5292. # Break only if it was the GNU/non-GNU ld that we prefer.
  5293. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5294. *GNU* | *'with BFD'*)
  5295. test no != "$with_gnu_ld" && break
  5296. ;;
  5297. *)
  5298. test yes != "$with_gnu_ld" && break
  5299. ;;
  5300. esac
  5301. fi
  5302. done
  5303. IFS=$lt_save_ifs
  5304. else
  5305. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5306. fi
  5307. fi
  5308. LD=$lt_cv_path_LD
  5309. if test -n "$LD"; then
  5310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5311. printf "%s\n" "$LD" >&6; }
  5312. else
  5313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5314. printf "%s\n" "no" >&6; }
  5315. fi
  5316. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5318. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5319. if test ${lt_cv_prog_gnu_ld+y}
  5320. then :
  5321. printf %s "(cached) " >&6
  5322. else $as_nop
  5323. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5324. case `$LD -v 2>&1 </dev/null` in
  5325. *GNU* | *'with BFD'*)
  5326. lt_cv_prog_gnu_ld=yes
  5327. ;;
  5328. *)
  5329. lt_cv_prog_gnu_ld=no
  5330. ;;
  5331. esac
  5332. fi
  5333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5334. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5335. with_gnu_ld=$lt_cv_prog_gnu_ld
  5336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5337. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5338. if test ${lt_cv_path_NM+y}
  5339. then :
  5340. printf %s "(cached) " >&6
  5341. else $as_nop
  5342. if test -n "$NM"; then
  5343. # Let the user override the test.
  5344. lt_cv_path_NM=$NM
  5345. else
  5346. lt_nm_to_check=${ac_tool_prefix}nm
  5347. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5348. lt_nm_to_check="$lt_nm_to_check nm"
  5349. fi
  5350. for lt_tmp_nm in $lt_nm_to_check; do
  5351. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5352. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5353. IFS=$lt_save_ifs
  5354. test -z "$ac_dir" && ac_dir=.
  5355. tmp_nm=$ac_dir/$lt_tmp_nm
  5356. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5357. # Check to see if the nm accepts a BSD-compat flag.
  5358. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5359. # nm: unknown option "B" ignored
  5360. # Tru64's nm complains that /dev/null is an invalid object file
  5361. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5362. case $build_os in
  5363. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5364. *) lt_bad_file=/dev/null ;;
  5365. esac
  5366. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5367. *$lt_bad_file* | *'Invalid file or object type'*)
  5368. lt_cv_path_NM="$tmp_nm -B"
  5369. break 2
  5370. ;;
  5371. *)
  5372. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5373. */dev/null*)
  5374. lt_cv_path_NM="$tmp_nm -p"
  5375. break 2
  5376. ;;
  5377. *)
  5378. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5379. continue # so that we can try to find one that supports BSD flags
  5380. ;;
  5381. esac
  5382. ;;
  5383. esac
  5384. fi
  5385. done
  5386. IFS=$lt_save_ifs
  5387. done
  5388. : ${lt_cv_path_NM=no}
  5389. fi
  5390. fi
  5391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5392. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5393. if test no != "$lt_cv_path_NM"; then
  5394. NM=$lt_cv_path_NM
  5395. else
  5396. # Didn't find any BSD compatible name lister, look for dumpbin.
  5397. if test -n "$DUMPBIN"; then :
  5398. # Let the user override the test.
  5399. else
  5400. if test -n "$ac_tool_prefix"; then
  5401. for ac_prog in dumpbin "link -dump"
  5402. do
  5403. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5404. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5406. printf %s "checking for $ac_word... " >&6; }
  5407. if test ${ac_cv_prog_DUMPBIN+y}
  5408. then :
  5409. printf %s "(cached) " >&6
  5410. else $as_nop
  5411. if test -n "$DUMPBIN"; then
  5412. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5413. else
  5414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5415. for as_dir in $PATH
  5416. do
  5417. IFS=$as_save_IFS
  5418. case $as_dir in #(((
  5419. '') as_dir=./ ;;
  5420. */) ;;
  5421. *) as_dir=$as_dir/ ;;
  5422. esac
  5423. for ac_exec_ext in '' $ac_executable_extensions; do
  5424. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5425. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5426. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5427. break 2
  5428. fi
  5429. done
  5430. done
  5431. IFS=$as_save_IFS
  5432. fi
  5433. fi
  5434. DUMPBIN=$ac_cv_prog_DUMPBIN
  5435. if test -n "$DUMPBIN"; then
  5436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5437. printf "%s\n" "$DUMPBIN" >&6; }
  5438. else
  5439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5440. printf "%s\n" "no" >&6; }
  5441. fi
  5442. test -n "$DUMPBIN" && break
  5443. done
  5444. fi
  5445. if test -z "$DUMPBIN"; then
  5446. ac_ct_DUMPBIN=$DUMPBIN
  5447. for ac_prog in dumpbin "link -dump"
  5448. do
  5449. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5450. set dummy $ac_prog; ac_word=$2
  5451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5452. printf %s "checking for $ac_word... " >&6; }
  5453. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5454. then :
  5455. printf %s "(cached) " >&6
  5456. else $as_nop
  5457. if test -n "$ac_ct_DUMPBIN"; then
  5458. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5459. else
  5460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5461. for as_dir in $PATH
  5462. do
  5463. IFS=$as_save_IFS
  5464. case $as_dir in #(((
  5465. '') as_dir=./ ;;
  5466. */) ;;
  5467. *) as_dir=$as_dir/ ;;
  5468. esac
  5469. for ac_exec_ext in '' $ac_executable_extensions; do
  5470. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5471. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5472. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5473. break 2
  5474. fi
  5475. done
  5476. done
  5477. IFS=$as_save_IFS
  5478. fi
  5479. fi
  5480. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5481. if test -n "$ac_ct_DUMPBIN"; then
  5482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5483. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5484. else
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5486. printf "%s\n" "no" >&6; }
  5487. fi
  5488. test -n "$ac_ct_DUMPBIN" && break
  5489. done
  5490. if test "x$ac_ct_DUMPBIN" = x; then
  5491. DUMPBIN=":"
  5492. else
  5493. case $cross_compiling:$ac_tool_warned in
  5494. yes:)
  5495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5496. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5497. ac_tool_warned=yes ;;
  5498. esac
  5499. DUMPBIN=$ac_ct_DUMPBIN
  5500. fi
  5501. fi
  5502. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5503. *COFF*)
  5504. DUMPBIN="$DUMPBIN -symbols -headers"
  5505. ;;
  5506. *)
  5507. DUMPBIN=:
  5508. ;;
  5509. esac
  5510. fi
  5511. if test : != "$DUMPBIN"; then
  5512. NM=$DUMPBIN
  5513. fi
  5514. fi
  5515. test -z "$NM" && NM=nm
  5516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5517. printf %s "checking the name lister ($NM) interface... " >&6; }
  5518. if test ${lt_cv_nm_interface+y}
  5519. then :
  5520. printf %s "(cached) " >&6
  5521. else $as_nop
  5522. lt_cv_nm_interface="BSD nm"
  5523. echo "int some_variable = 0;" > conftest.$ac_ext
  5524. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5525. (eval "$ac_compile" 2>conftest.err)
  5526. cat conftest.err >&5
  5527. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5528. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5529. cat conftest.err >&5
  5530. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5531. cat conftest.out >&5
  5532. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5533. lt_cv_nm_interface="MS dumpbin"
  5534. fi
  5535. rm -f conftest*
  5536. fi
  5537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5538. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5539. # find the maximum length of command line arguments
  5540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5541. printf %s "checking the maximum length of command line arguments... " >&6; }
  5542. if test ${lt_cv_sys_max_cmd_len+y}
  5543. then :
  5544. printf %s "(cached) " >&6
  5545. else $as_nop
  5546. i=0
  5547. teststring=ABCD
  5548. case $build_os in
  5549. msdosdjgpp*)
  5550. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5551. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5552. # during glob expansion). Even if it were fixed, the result of this
  5553. # check would be larger than it should be.
  5554. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5555. ;;
  5556. gnu*)
  5557. # Under GNU Hurd, this test is not required because there is
  5558. # no limit to the length of command line arguments.
  5559. # Libtool will interpret -1 as no limit whatsoever
  5560. lt_cv_sys_max_cmd_len=-1;
  5561. ;;
  5562. cygwin* | mingw* | cegcc*)
  5563. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5564. # about 5 minutes as the teststring grows exponentially.
  5565. # Worse, since 9x/ME are not pre-emptively multitasking,
  5566. # you end up with a "frozen" computer, even though with patience
  5567. # the test eventually succeeds (with a max line length of 256k).
  5568. # Instead, let's just punt: use the minimum linelength reported by
  5569. # all of the supported platforms: 8192 (on NT/2K/XP).
  5570. lt_cv_sys_max_cmd_len=8192;
  5571. ;;
  5572. mint*)
  5573. # On MiNT this can take a long time and run out of memory.
  5574. lt_cv_sys_max_cmd_len=8192;
  5575. ;;
  5576. mint*)
  5577. # On MiNT this can take a long time and run out of memory.
  5578. lt_cv_sys_max_cmd_len=8192;
  5579. ;;
  5580. amigaos*)
  5581. # On AmigaOS with pdksh, this test takes hours, literally.
  5582. # So we just punt and use a minimum line length of 8192.
  5583. lt_cv_sys_max_cmd_len=8192;
  5584. ;;
  5585. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5586. # This has been around since 386BSD, at least. Likely further.
  5587. if test -x /sbin/sysctl; then
  5588. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5589. elif test -x /usr/sbin/sysctl; then
  5590. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5591. else
  5592. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5593. fi
  5594. # And add a safety zone
  5595. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5596. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5597. ;;
  5598. interix*)
  5599. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5600. lt_cv_sys_max_cmd_len=196608
  5601. ;;
  5602. os2*)
  5603. # The test takes a long time on OS/2.
  5604. lt_cv_sys_max_cmd_len=8192
  5605. ;;
  5606. osf*)
  5607. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5608. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5609. # nice to cause kernel panics so lets avoid the loop below.
  5610. # First set a reasonable default.
  5611. lt_cv_sys_max_cmd_len=16384
  5612. #
  5613. if test -x /sbin/sysconfig; then
  5614. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5615. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5616. esac
  5617. fi
  5618. ;;
  5619. sco3.2v5*)
  5620. lt_cv_sys_max_cmd_len=102400
  5621. ;;
  5622. sysv5* | sco5v6* | sysv4.2uw2*)
  5623. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5624. if test -n "$kargmax"; then
  5625. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5626. else
  5627. lt_cv_sys_max_cmd_len=32768
  5628. fi
  5629. ;;
  5630. *)
  5631. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5632. if test -n "$lt_cv_sys_max_cmd_len" && \
  5633. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5634. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5635. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5636. else
  5637. # Make teststring a little bigger before we do anything with it.
  5638. # a 1K string should be a reasonable start.
  5639. for i in 1 2 3 4 5 6 7 8; do
  5640. teststring=$teststring$teststring
  5641. done
  5642. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5643. # If test is not a shell built-in, we'll probably end up computing a
  5644. # maximum length that is only half of the actual maximum length, but
  5645. # we can't tell.
  5646. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5647. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5648. test 17 != "$i" # 1/2 MB should be enough
  5649. do
  5650. i=`expr $i + 1`
  5651. teststring=$teststring$teststring
  5652. done
  5653. # Only check the string length outside the loop.
  5654. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5655. teststring=
  5656. # Add a significant safety factor because C++ compilers can tack on
  5657. # massive amounts of additional arguments before passing them to the
  5658. # linker. It appears as though 1/2 is a usable value.
  5659. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5660. fi
  5661. ;;
  5662. esac
  5663. fi
  5664. if test -n "$lt_cv_sys_max_cmd_len"; then
  5665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5666. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5667. else
  5668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5669. printf "%s\n" "none" >&6; }
  5670. fi
  5671. max_cmd_len=$lt_cv_sys_max_cmd_len
  5672. : ${CP="cp -f"}
  5673. : ${MV="mv -f"}
  5674. : ${RM="rm -f"}
  5675. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5676. lt_unset=unset
  5677. else
  5678. lt_unset=false
  5679. fi
  5680. # test EBCDIC or ASCII
  5681. case `echo X|tr X '\101'` in
  5682. A) # ASCII based system
  5683. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5684. lt_SP2NL='tr \040 \012'
  5685. lt_NL2SP='tr \015\012 \040\040'
  5686. ;;
  5687. *) # EBCDIC based system
  5688. lt_SP2NL='tr \100 \n'
  5689. lt_NL2SP='tr \r\n \100\100'
  5690. ;;
  5691. esac
  5692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5693. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5694. if test ${lt_cv_to_host_file_cmd+y}
  5695. then :
  5696. printf %s "(cached) " >&6
  5697. else $as_nop
  5698. case $host in
  5699. *-*-mingw* )
  5700. case $build in
  5701. *-*-mingw* ) # actually msys
  5702. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5703. ;;
  5704. *-*-cygwin* )
  5705. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5706. ;;
  5707. * ) # otherwise, assume *nix
  5708. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5709. ;;
  5710. esac
  5711. ;;
  5712. *-*-cygwin* )
  5713. case $build in
  5714. *-*-mingw* ) # actually msys
  5715. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5716. ;;
  5717. *-*-cygwin* )
  5718. lt_cv_to_host_file_cmd=func_convert_file_noop
  5719. ;;
  5720. * ) # otherwise, assume *nix
  5721. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5722. ;;
  5723. esac
  5724. ;;
  5725. * ) # unhandled hosts (and "normal" native builds)
  5726. lt_cv_to_host_file_cmd=func_convert_file_noop
  5727. ;;
  5728. esac
  5729. fi
  5730. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5732. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5734. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5735. if test ${lt_cv_to_tool_file_cmd+y}
  5736. then :
  5737. printf %s "(cached) " >&6
  5738. else $as_nop
  5739. #assume ordinary cross tools, or native build.
  5740. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5741. case $host in
  5742. *-*-mingw* )
  5743. case $build in
  5744. *-*-mingw* ) # actually msys
  5745. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5746. ;;
  5747. esac
  5748. ;;
  5749. esac
  5750. fi
  5751. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5753. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5755. printf %s "checking for $LD option to reload object files... " >&6; }
  5756. if test ${lt_cv_ld_reload_flag+y}
  5757. then :
  5758. printf %s "(cached) " >&6
  5759. else $as_nop
  5760. lt_cv_ld_reload_flag='-r'
  5761. fi
  5762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5763. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5764. reload_flag=$lt_cv_ld_reload_flag
  5765. case $reload_flag in
  5766. "" | " "*) ;;
  5767. *) reload_flag=" $reload_flag" ;;
  5768. esac
  5769. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5770. case $host_os in
  5771. cygwin* | mingw* | pw32* | cegcc*)
  5772. if test yes != "$GCC"; then
  5773. reload_cmds=false
  5774. fi
  5775. ;;
  5776. darwin*)
  5777. if test yes = "$GCC"; then
  5778. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5779. else
  5780. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5781. fi
  5782. ;;
  5783. esac
  5784. if test -n "$ac_tool_prefix"; then
  5785. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5786. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5788. printf %s "checking for $ac_word... " >&6; }
  5789. if test ${ac_cv_prog_OBJDUMP+y}
  5790. then :
  5791. printf %s "(cached) " >&6
  5792. else $as_nop
  5793. if test -n "$OBJDUMP"; then
  5794. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5795. else
  5796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5797. for as_dir in $PATH
  5798. do
  5799. IFS=$as_save_IFS
  5800. case $as_dir in #(((
  5801. '') as_dir=./ ;;
  5802. */) ;;
  5803. *) as_dir=$as_dir/ ;;
  5804. esac
  5805. for ac_exec_ext in '' $ac_executable_extensions; do
  5806. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5807. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5808. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5809. break 2
  5810. fi
  5811. done
  5812. done
  5813. IFS=$as_save_IFS
  5814. fi
  5815. fi
  5816. OBJDUMP=$ac_cv_prog_OBJDUMP
  5817. if test -n "$OBJDUMP"; then
  5818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5819. printf "%s\n" "$OBJDUMP" >&6; }
  5820. else
  5821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5822. printf "%s\n" "no" >&6; }
  5823. fi
  5824. fi
  5825. if test -z "$ac_cv_prog_OBJDUMP"; then
  5826. ac_ct_OBJDUMP=$OBJDUMP
  5827. # Extract the first word of "objdump", so it can be a program name with args.
  5828. set dummy objdump; ac_word=$2
  5829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5830. printf %s "checking for $ac_word... " >&6; }
  5831. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5832. then :
  5833. printf %s "(cached) " >&6
  5834. else $as_nop
  5835. if test -n "$ac_ct_OBJDUMP"; then
  5836. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5837. else
  5838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5839. for as_dir in $PATH
  5840. do
  5841. IFS=$as_save_IFS
  5842. case $as_dir in #(((
  5843. '') as_dir=./ ;;
  5844. */) ;;
  5845. *) as_dir=$as_dir/ ;;
  5846. esac
  5847. for ac_exec_ext in '' $ac_executable_extensions; do
  5848. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5849. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5850. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5851. break 2
  5852. fi
  5853. done
  5854. done
  5855. IFS=$as_save_IFS
  5856. fi
  5857. fi
  5858. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5859. if test -n "$ac_ct_OBJDUMP"; then
  5860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5861. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5862. else
  5863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5864. printf "%s\n" "no" >&6; }
  5865. fi
  5866. if test "x$ac_ct_OBJDUMP" = x; then
  5867. OBJDUMP="false"
  5868. else
  5869. case $cross_compiling:$ac_tool_warned in
  5870. yes:)
  5871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5872. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5873. ac_tool_warned=yes ;;
  5874. esac
  5875. OBJDUMP=$ac_ct_OBJDUMP
  5876. fi
  5877. else
  5878. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5879. fi
  5880. test -z "$OBJDUMP" && OBJDUMP=objdump
  5881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5882. printf %s "checking how to recognize dependent libraries... " >&6; }
  5883. if test ${lt_cv_deplibs_check_method+y}
  5884. then :
  5885. printf %s "(cached) " >&6
  5886. else $as_nop
  5887. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5888. lt_cv_file_magic_test_file=
  5889. lt_cv_deplibs_check_method='unknown'
  5890. # Need to set the preceding variable on all platforms that support
  5891. # interlibrary dependencies.
  5892. # 'none' -- dependencies not supported.
  5893. # 'unknown' -- same as none, but documents that we really don't know.
  5894. # 'pass_all' -- all dependencies passed with no checks.
  5895. # 'test_compile' -- check by making test program.
  5896. # 'file_magic [[regex]]' -- check by looking for files in library path
  5897. # that responds to the $file_magic_cmd with a given extended regex.
  5898. # If you have 'file' or equivalent on your system and you're not sure
  5899. # whether 'pass_all' will *always* work, you probably want this one.
  5900. case $host_os in
  5901. aix[4-9]*)
  5902. lt_cv_deplibs_check_method=pass_all
  5903. ;;
  5904. beos*)
  5905. lt_cv_deplibs_check_method=pass_all
  5906. ;;
  5907. bsdi[45]*)
  5908. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5909. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5910. lt_cv_file_magic_test_file=/shlib/libc.so
  5911. ;;
  5912. cygwin*)
  5913. # func_win32_libid is a shell function defined in ltmain.sh
  5914. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5915. lt_cv_file_magic_cmd='func_win32_libid'
  5916. ;;
  5917. mingw* | pw32*)
  5918. # Base MSYS/MinGW do not provide the 'file' command needed by
  5919. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5920. # unless we find 'file', for example because we are cross-compiling.
  5921. if ( file / ) >/dev/null 2>&1; then
  5922. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5923. lt_cv_file_magic_cmd='func_win32_libid'
  5924. else
  5925. # Keep this pattern in sync with the one in func_win32_libid.
  5926. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5927. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5928. fi
  5929. ;;
  5930. cegcc*)
  5931. # use the weaker test based on 'objdump'. See mingw*.
  5932. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5933. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5934. ;;
  5935. darwin* | rhapsody*)
  5936. lt_cv_deplibs_check_method=pass_all
  5937. ;;
  5938. freebsd* | dragonfly*)
  5939. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5940. case $host_cpu in
  5941. i*86 )
  5942. # Not sure whether the presence of OpenBSD here was a mistake.
  5943. # Let's accept both of them until this is cleared up.
  5944. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5945. lt_cv_file_magic_cmd=/usr/bin/file
  5946. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5947. ;;
  5948. esac
  5949. else
  5950. lt_cv_deplibs_check_method=pass_all
  5951. fi
  5952. ;;
  5953. haiku*)
  5954. lt_cv_deplibs_check_method=pass_all
  5955. ;;
  5956. hpux10.20* | hpux11*)
  5957. lt_cv_file_magic_cmd=/usr/bin/file
  5958. case $host_cpu in
  5959. ia64*)
  5960. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5961. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5962. ;;
  5963. hppa*64*)
  5964. 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]'
  5965. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5966. ;;
  5967. *)
  5968. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5969. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5970. ;;
  5971. esac
  5972. ;;
  5973. interix[3-9]*)
  5974. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5975. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5976. ;;
  5977. irix5* | irix6* | nonstopux*)
  5978. case $LD in
  5979. *-32|*"-32 ") libmagic=32-bit;;
  5980. *-n32|*"-n32 ") libmagic=N32;;
  5981. *-64|*"-64 ") libmagic=64-bit;;
  5982. *) libmagic=never-match;;
  5983. esac
  5984. lt_cv_deplibs_check_method=pass_all
  5985. ;;
  5986. # This must be glibc/ELF.
  5987. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5988. lt_cv_deplibs_check_method=pass_all
  5989. ;;
  5990. netbsd*)
  5991. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5992. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5993. else
  5994. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5995. fi
  5996. ;;
  5997. newos6*)
  5998. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5999. lt_cv_file_magic_cmd=/usr/bin/file
  6000. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6001. ;;
  6002. *nto* | *qnx*)
  6003. lt_cv_deplibs_check_method=pass_all
  6004. ;;
  6005. openbsd* | bitrig*)
  6006. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6007. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6008. else
  6009. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6010. fi
  6011. ;;
  6012. osf3* | osf4* | osf5*)
  6013. lt_cv_deplibs_check_method=pass_all
  6014. ;;
  6015. rdos*)
  6016. lt_cv_deplibs_check_method=pass_all
  6017. ;;
  6018. solaris*)
  6019. lt_cv_deplibs_check_method=pass_all
  6020. ;;
  6021. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6022. lt_cv_deplibs_check_method=pass_all
  6023. ;;
  6024. sysv4 | sysv4.3*)
  6025. case $host_vendor in
  6026. motorola)
  6027. 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]'
  6028. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6029. ;;
  6030. ncr)
  6031. lt_cv_deplibs_check_method=pass_all
  6032. ;;
  6033. sequent)
  6034. lt_cv_file_magic_cmd='/bin/file'
  6035. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6036. ;;
  6037. sni)
  6038. lt_cv_file_magic_cmd='/bin/file'
  6039. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6040. lt_cv_file_magic_test_file=/lib/libc.so
  6041. ;;
  6042. siemens)
  6043. lt_cv_deplibs_check_method=pass_all
  6044. ;;
  6045. pc)
  6046. lt_cv_deplibs_check_method=pass_all
  6047. ;;
  6048. esac
  6049. ;;
  6050. tpf*)
  6051. lt_cv_deplibs_check_method=pass_all
  6052. ;;
  6053. os2*)
  6054. lt_cv_deplibs_check_method=pass_all
  6055. ;;
  6056. esac
  6057. fi
  6058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6059. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6060. file_magic_glob=
  6061. want_nocaseglob=no
  6062. if test "$build" = "$host"; then
  6063. case $host_os in
  6064. mingw* | pw32*)
  6065. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6066. want_nocaseglob=yes
  6067. else
  6068. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6069. fi
  6070. ;;
  6071. esac
  6072. fi
  6073. file_magic_cmd=$lt_cv_file_magic_cmd
  6074. deplibs_check_method=$lt_cv_deplibs_check_method
  6075. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6076. if test -n "$ac_tool_prefix"; then
  6077. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6078. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6080. printf %s "checking for $ac_word... " >&6; }
  6081. if test ${ac_cv_prog_DLLTOOL+y}
  6082. then :
  6083. printf %s "(cached) " >&6
  6084. else $as_nop
  6085. if test -n "$DLLTOOL"; then
  6086. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6087. else
  6088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6089. for as_dir in $PATH
  6090. do
  6091. IFS=$as_save_IFS
  6092. case $as_dir in #(((
  6093. '') as_dir=./ ;;
  6094. */) ;;
  6095. *) as_dir=$as_dir/ ;;
  6096. esac
  6097. for ac_exec_ext in '' $ac_executable_extensions; do
  6098. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6099. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6101. break 2
  6102. fi
  6103. done
  6104. done
  6105. IFS=$as_save_IFS
  6106. fi
  6107. fi
  6108. DLLTOOL=$ac_cv_prog_DLLTOOL
  6109. if test -n "$DLLTOOL"; then
  6110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6111. printf "%s\n" "$DLLTOOL" >&6; }
  6112. else
  6113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6114. printf "%s\n" "no" >&6; }
  6115. fi
  6116. fi
  6117. if test -z "$ac_cv_prog_DLLTOOL"; then
  6118. ac_ct_DLLTOOL=$DLLTOOL
  6119. # Extract the first word of "dlltool", so it can be a program name with args.
  6120. set dummy dlltool; ac_word=$2
  6121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6122. printf %s "checking for $ac_word... " >&6; }
  6123. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6124. then :
  6125. printf %s "(cached) " >&6
  6126. else $as_nop
  6127. if test -n "$ac_ct_DLLTOOL"; then
  6128. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6129. else
  6130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6131. for as_dir in $PATH
  6132. do
  6133. IFS=$as_save_IFS
  6134. case $as_dir in #(((
  6135. '') as_dir=./ ;;
  6136. */) ;;
  6137. *) as_dir=$as_dir/ ;;
  6138. esac
  6139. for ac_exec_ext in '' $ac_executable_extensions; do
  6140. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6141. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6142. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6143. break 2
  6144. fi
  6145. done
  6146. done
  6147. IFS=$as_save_IFS
  6148. fi
  6149. fi
  6150. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6151. if test -n "$ac_ct_DLLTOOL"; then
  6152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6153. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6154. else
  6155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6156. printf "%s\n" "no" >&6; }
  6157. fi
  6158. if test "x$ac_ct_DLLTOOL" = x; then
  6159. DLLTOOL="false"
  6160. else
  6161. case $cross_compiling:$ac_tool_warned in
  6162. yes:)
  6163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6164. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6165. ac_tool_warned=yes ;;
  6166. esac
  6167. DLLTOOL=$ac_ct_DLLTOOL
  6168. fi
  6169. else
  6170. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6171. fi
  6172. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6174. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6175. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6176. then :
  6177. printf %s "(cached) " >&6
  6178. else $as_nop
  6179. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6180. case $host_os in
  6181. cygwin* | mingw* | pw32* | cegcc*)
  6182. # two different shell functions defined in ltmain.sh;
  6183. # decide which one to use based on capabilities of $DLLTOOL
  6184. case `$DLLTOOL --help 2>&1` in
  6185. *--identify-strict*)
  6186. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6187. ;;
  6188. *)
  6189. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6190. ;;
  6191. esac
  6192. ;;
  6193. *)
  6194. # fallback: assume linklib IS sharedlib
  6195. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6196. ;;
  6197. esac
  6198. fi
  6199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6200. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6201. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6202. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6203. if test -n "$ac_tool_prefix"; then
  6204. for ac_prog in ar
  6205. do
  6206. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6207. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6209. printf %s "checking for $ac_word... " >&6; }
  6210. if test ${ac_cv_prog_AR+y}
  6211. then :
  6212. printf %s "(cached) " >&6
  6213. else $as_nop
  6214. if test -n "$AR"; then
  6215. ac_cv_prog_AR="$AR" # Let the user override the test.
  6216. else
  6217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6218. for as_dir in $PATH
  6219. do
  6220. IFS=$as_save_IFS
  6221. case $as_dir in #(((
  6222. '') as_dir=./ ;;
  6223. */) ;;
  6224. *) as_dir=$as_dir/ ;;
  6225. esac
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6228. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6229. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. IFS=$as_save_IFS
  6235. fi
  6236. fi
  6237. AR=$ac_cv_prog_AR
  6238. if test -n "$AR"; then
  6239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6240. printf "%s\n" "$AR" >&6; }
  6241. else
  6242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6243. printf "%s\n" "no" >&6; }
  6244. fi
  6245. test -n "$AR" && break
  6246. done
  6247. fi
  6248. if test -z "$AR"; then
  6249. ac_ct_AR=$AR
  6250. for ac_prog in ar
  6251. do
  6252. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6253. set dummy $ac_prog; ac_word=$2
  6254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6255. printf %s "checking for $ac_word... " >&6; }
  6256. if test ${ac_cv_prog_ac_ct_AR+y}
  6257. then :
  6258. printf %s "(cached) " >&6
  6259. else $as_nop
  6260. if test -n "$ac_ct_AR"; then
  6261. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6262. else
  6263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6264. for as_dir in $PATH
  6265. do
  6266. IFS=$as_save_IFS
  6267. case $as_dir in #(((
  6268. '') as_dir=./ ;;
  6269. */) ;;
  6270. *) as_dir=$as_dir/ ;;
  6271. esac
  6272. for ac_exec_ext in '' $ac_executable_extensions; do
  6273. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6274. ac_cv_prog_ac_ct_AR="$ac_prog"
  6275. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6276. break 2
  6277. fi
  6278. done
  6279. done
  6280. IFS=$as_save_IFS
  6281. fi
  6282. fi
  6283. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6284. if test -n "$ac_ct_AR"; then
  6285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6286. printf "%s\n" "$ac_ct_AR" >&6; }
  6287. else
  6288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6289. printf "%s\n" "no" >&6; }
  6290. fi
  6291. test -n "$ac_ct_AR" && break
  6292. done
  6293. if test "x$ac_ct_AR" = x; then
  6294. AR="false"
  6295. else
  6296. case $cross_compiling:$ac_tool_warned in
  6297. yes:)
  6298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6299. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6300. ac_tool_warned=yes ;;
  6301. esac
  6302. AR=$ac_ct_AR
  6303. fi
  6304. fi
  6305. : ${AR=ar}
  6306. : ${AR_FLAGS=cru}
  6307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6308. printf %s "checking for archiver @FILE support... " >&6; }
  6309. if test ${lt_cv_ar_at_file+y}
  6310. then :
  6311. printf %s "(cached) " >&6
  6312. else $as_nop
  6313. lt_cv_ar_at_file=no
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. int
  6317. main (void)
  6318. {
  6319. ;
  6320. return 0;
  6321. }
  6322. _ACEOF
  6323. if ac_fn_c_try_compile "$LINENO"
  6324. then :
  6325. echo conftest.$ac_objext > conftest.lst
  6326. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6327. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6328. (eval $lt_ar_try) 2>&5
  6329. ac_status=$?
  6330. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6331. test $ac_status = 0; }
  6332. if test 0 -eq "$ac_status"; then
  6333. # Ensure the archiver fails upon bogus file names.
  6334. rm -f conftest.$ac_objext libconftest.a
  6335. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6336. (eval $lt_ar_try) 2>&5
  6337. ac_status=$?
  6338. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6339. test $ac_status = 0; }
  6340. if test 0 -ne "$ac_status"; then
  6341. lt_cv_ar_at_file=@
  6342. fi
  6343. fi
  6344. rm -f conftest.* libconftest.a
  6345. fi
  6346. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6347. fi
  6348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6349. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6350. if test no = "$lt_cv_ar_at_file"; then
  6351. archiver_list_spec=
  6352. else
  6353. archiver_list_spec=$lt_cv_ar_at_file
  6354. fi
  6355. if test -n "$ac_tool_prefix"; then
  6356. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6357. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6359. printf %s "checking for $ac_word... " >&6; }
  6360. if test ${ac_cv_prog_STRIP+y}
  6361. then :
  6362. printf %s "(cached) " >&6
  6363. else $as_nop
  6364. if test -n "$STRIP"; then
  6365. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6366. else
  6367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6368. for as_dir in $PATH
  6369. do
  6370. IFS=$as_save_IFS
  6371. case $as_dir in #(((
  6372. '') as_dir=./ ;;
  6373. */) ;;
  6374. *) as_dir=$as_dir/ ;;
  6375. esac
  6376. for ac_exec_ext in '' $ac_executable_extensions; do
  6377. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6378. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6379. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6380. break 2
  6381. fi
  6382. done
  6383. done
  6384. IFS=$as_save_IFS
  6385. fi
  6386. fi
  6387. STRIP=$ac_cv_prog_STRIP
  6388. if test -n "$STRIP"; then
  6389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6390. printf "%s\n" "$STRIP" >&6; }
  6391. else
  6392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6393. printf "%s\n" "no" >&6; }
  6394. fi
  6395. fi
  6396. if test -z "$ac_cv_prog_STRIP"; then
  6397. ac_ct_STRIP=$STRIP
  6398. # Extract the first word of "strip", so it can be a program name with args.
  6399. set dummy strip; ac_word=$2
  6400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6401. printf %s "checking for $ac_word... " >&6; }
  6402. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6403. then :
  6404. printf %s "(cached) " >&6
  6405. else $as_nop
  6406. if test -n "$ac_ct_STRIP"; then
  6407. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6408. else
  6409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6410. for as_dir in $PATH
  6411. do
  6412. IFS=$as_save_IFS
  6413. case $as_dir in #(((
  6414. '') as_dir=./ ;;
  6415. */) ;;
  6416. *) as_dir=$as_dir/ ;;
  6417. esac
  6418. for ac_exec_ext in '' $ac_executable_extensions; do
  6419. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6420. ac_cv_prog_ac_ct_STRIP="strip"
  6421. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6422. break 2
  6423. fi
  6424. done
  6425. done
  6426. IFS=$as_save_IFS
  6427. fi
  6428. fi
  6429. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6430. if test -n "$ac_ct_STRIP"; then
  6431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6432. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6433. else
  6434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6435. printf "%s\n" "no" >&6; }
  6436. fi
  6437. if test "x$ac_ct_STRIP" = x; then
  6438. STRIP=":"
  6439. else
  6440. case $cross_compiling:$ac_tool_warned in
  6441. yes:)
  6442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6443. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6444. ac_tool_warned=yes ;;
  6445. esac
  6446. STRIP=$ac_ct_STRIP
  6447. fi
  6448. else
  6449. STRIP="$ac_cv_prog_STRIP"
  6450. fi
  6451. test -z "$STRIP" && STRIP=:
  6452. if test -n "$ac_tool_prefix"; then
  6453. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6454. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6456. printf %s "checking for $ac_word... " >&6; }
  6457. if test ${ac_cv_prog_RANLIB+y}
  6458. then :
  6459. printf %s "(cached) " >&6
  6460. else $as_nop
  6461. if test -n "$RANLIB"; then
  6462. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6463. else
  6464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6465. for as_dir in $PATH
  6466. do
  6467. IFS=$as_save_IFS
  6468. case $as_dir in #(((
  6469. '') as_dir=./ ;;
  6470. */) ;;
  6471. *) as_dir=$as_dir/ ;;
  6472. esac
  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_RANLIB="${ac_tool_prefix}ranlib"
  6476. printf "%s\n" "$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. RANLIB=$ac_cv_prog_RANLIB
  6485. if test -n "$RANLIB"; then
  6486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6487. printf "%s\n" "$RANLIB" >&6; }
  6488. else
  6489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6490. printf "%s\n" "no" >&6; }
  6491. fi
  6492. fi
  6493. if test -z "$ac_cv_prog_RANLIB"; then
  6494. ac_ct_RANLIB=$RANLIB
  6495. # Extract the first word of "ranlib", so it can be a program name with args.
  6496. set dummy ranlib; ac_word=$2
  6497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6498. printf %s "checking for $ac_word... " >&6; }
  6499. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6500. then :
  6501. printf %s "(cached) " >&6
  6502. else $as_nop
  6503. if test -n "$ac_ct_RANLIB"; then
  6504. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6505. else
  6506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6507. for as_dir in $PATH
  6508. do
  6509. IFS=$as_save_IFS
  6510. case $as_dir in #(((
  6511. '') as_dir=./ ;;
  6512. */) ;;
  6513. *) as_dir=$as_dir/ ;;
  6514. esac
  6515. for ac_exec_ext in '' $ac_executable_extensions; do
  6516. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6517. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6518. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6519. break 2
  6520. fi
  6521. done
  6522. done
  6523. IFS=$as_save_IFS
  6524. fi
  6525. fi
  6526. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6527. if test -n "$ac_ct_RANLIB"; then
  6528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6529. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6530. else
  6531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6532. printf "%s\n" "no" >&6; }
  6533. fi
  6534. if test "x$ac_ct_RANLIB" = x; then
  6535. RANLIB=":"
  6536. else
  6537. case $cross_compiling:$ac_tool_warned in
  6538. yes:)
  6539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6540. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6541. ac_tool_warned=yes ;;
  6542. esac
  6543. RANLIB=$ac_ct_RANLIB
  6544. fi
  6545. else
  6546. RANLIB="$ac_cv_prog_RANLIB"
  6547. fi
  6548. test -z "$RANLIB" && RANLIB=:
  6549. # Determine commands to create old-style static archives.
  6550. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6551. old_postinstall_cmds='chmod 644 $oldlib'
  6552. old_postuninstall_cmds=
  6553. if test -n "$RANLIB"; then
  6554. case $host_os in
  6555. bitrig* | openbsd*)
  6556. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6557. ;;
  6558. *)
  6559. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6560. ;;
  6561. esac
  6562. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6563. fi
  6564. case $host_os in
  6565. darwin*)
  6566. lock_old_archive_extraction=yes ;;
  6567. *)
  6568. lock_old_archive_extraction=no ;;
  6569. esac
  6570. # If no C compiler was specified, use CC.
  6571. LTCC=${LTCC-"$CC"}
  6572. # If no C compiler flags were specified, use CFLAGS.
  6573. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6574. # Allow CC to be a program name with arguments.
  6575. compiler=$CC
  6576. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6578. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6579. if test ${lt_cv_sys_global_symbol_pipe+y}
  6580. then :
  6581. printf %s "(cached) " >&6
  6582. else $as_nop
  6583. # These are sane defaults that work on at least a few old systems.
  6584. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6585. # Character class describing NM global symbol codes.
  6586. symcode='[BCDEGRST]'
  6587. # Regexp to match symbols that can be accessed directly from C.
  6588. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6589. # Define system-specific variables.
  6590. case $host_os in
  6591. aix*)
  6592. symcode='[BCDT]'
  6593. ;;
  6594. cygwin* | mingw* | pw32* | cegcc*)
  6595. symcode='[ABCDGISTW]'
  6596. ;;
  6597. hpux*)
  6598. if test ia64 = "$host_cpu"; then
  6599. symcode='[ABCDEGRST]'
  6600. fi
  6601. ;;
  6602. irix* | nonstopux*)
  6603. symcode='[BCDEGRST]'
  6604. ;;
  6605. osf*)
  6606. symcode='[BCDEGQRST]'
  6607. ;;
  6608. solaris*)
  6609. symcode='[BDRT]'
  6610. ;;
  6611. sco3.2v5*)
  6612. symcode='[DT]'
  6613. ;;
  6614. sysv4.2uw2*)
  6615. symcode='[DT]'
  6616. ;;
  6617. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6618. symcode='[ABDT]'
  6619. ;;
  6620. sysv4)
  6621. symcode='[DFNSTU]'
  6622. ;;
  6623. esac
  6624. # If we're using GNU nm, then use its standard symbol codes.
  6625. case `$NM -V 2>&1` in
  6626. *GNU* | *'with BFD'*)
  6627. symcode='[ABCDGIRSTW]' ;;
  6628. esac
  6629. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6630. # Gets list of data symbols to import.
  6631. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6632. # Adjust the below global symbol transforms to fixup imported variables.
  6633. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6634. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6635. lt_c_name_lib_hook="\
  6636. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6637. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6638. else
  6639. # Disable hooks by default.
  6640. lt_cv_sys_global_symbol_to_import=
  6641. lt_cdecl_hook=
  6642. lt_c_name_hook=
  6643. lt_c_name_lib_hook=
  6644. fi
  6645. # Transform an extracted symbol line into a proper C declaration.
  6646. # Some systems (esp. on ia64) link data and code symbols differently,
  6647. # so use this general approach.
  6648. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6649. $lt_cdecl_hook\
  6650. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6651. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6652. # Transform an extracted symbol line into symbol name and symbol address
  6653. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6654. $lt_c_name_hook\
  6655. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6656. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6657. # Transform an extracted symbol line into symbol name with lib prefix and
  6658. # symbol address.
  6659. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6660. $lt_c_name_lib_hook\
  6661. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6662. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6663. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6664. # Handle CRLF in mingw tool chain
  6665. opt_cr=
  6666. case $build_os in
  6667. mingw*)
  6668. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6669. ;;
  6670. esac
  6671. # Try without a prefix underscore, then with it.
  6672. for ac_symprfx in "" "_"; do
  6673. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6674. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6675. # Write the raw and C identifiers.
  6676. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6677. # Fake it for dumpbin and say T for any non-static function,
  6678. # D for any global variable and I for any imported variable.
  6679. # Also find C++ and __fastcall symbols from MSVC++,
  6680. # which start with @ or ?.
  6681. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6682. " {last_section=section; section=\$ 3};"\
  6683. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6684. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6685. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6686. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6687. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6688. " \$ 0!~/External *\|/{next};"\
  6689. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6690. " {if(hide[section]) next};"\
  6691. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6692. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6693. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6694. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6695. " ' prfx=^$ac_symprfx"
  6696. else
  6697. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6698. fi
  6699. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6700. # Check to see that the pipe works correctly.
  6701. pipe_works=no
  6702. rm -f conftest*
  6703. cat > conftest.$ac_ext <<_LT_EOF
  6704. #ifdef __cplusplus
  6705. extern "C" {
  6706. #endif
  6707. char nm_test_var;
  6708. void nm_test_func(void);
  6709. void nm_test_func(void){}
  6710. #ifdef __cplusplus
  6711. }
  6712. #endif
  6713. int main(){nm_test_var='a';nm_test_func();return(0);}
  6714. _LT_EOF
  6715. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6716. (eval $ac_compile) 2>&5
  6717. ac_status=$?
  6718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6719. test $ac_status = 0; }; then
  6720. # Now try to grab the symbols.
  6721. nlist=conftest.nm
  6722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6723. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6724. ac_status=$?
  6725. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6726. test $ac_status = 0; } && test -s "$nlist"; then
  6727. # Try sorting and uniquifying the output.
  6728. if sort "$nlist" | uniq > "$nlist"T; then
  6729. mv -f "$nlist"T "$nlist"
  6730. else
  6731. rm -f "$nlist"T
  6732. fi
  6733. # Make sure that we snagged all the symbols we need.
  6734. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6735. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6736. cat <<_LT_EOF > conftest.$ac_ext
  6737. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6738. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6739. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6740. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6741. # define LT_DLSYM_CONST
  6742. #elif defined __osf__
  6743. /* This system does not cope well with relocations in const data. */
  6744. # define LT_DLSYM_CONST
  6745. #else
  6746. # define LT_DLSYM_CONST const
  6747. #endif
  6748. #ifdef __cplusplus
  6749. extern "C" {
  6750. #endif
  6751. _LT_EOF
  6752. # Now generate the symbol file.
  6753. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6754. cat <<_LT_EOF >> conftest.$ac_ext
  6755. /* The mapping between symbol names and symbols. */
  6756. LT_DLSYM_CONST struct {
  6757. const char *name;
  6758. void *address;
  6759. }
  6760. lt__PROGRAM__LTX_preloaded_symbols[] =
  6761. {
  6762. { "@PROGRAM@", (void *) 0 },
  6763. _LT_EOF
  6764. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6765. cat <<\_LT_EOF >> conftest.$ac_ext
  6766. {0, (void *) 0}
  6767. };
  6768. /* This works around a problem in FreeBSD linker */
  6769. #ifdef FREEBSD_WORKAROUND
  6770. static const void *lt_preloaded_setup() {
  6771. return lt__PROGRAM__LTX_preloaded_symbols;
  6772. }
  6773. #endif
  6774. #ifdef __cplusplus
  6775. }
  6776. #endif
  6777. _LT_EOF
  6778. # Now try linking the two files.
  6779. mv conftest.$ac_objext conftstm.$ac_objext
  6780. lt_globsym_save_LIBS=$LIBS
  6781. lt_globsym_save_CFLAGS=$CFLAGS
  6782. LIBS=conftstm.$ac_objext
  6783. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6784. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6785. (eval $ac_link) 2>&5
  6786. ac_status=$?
  6787. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6788. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6789. pipe_works=yes
  6790. fi
  6791. LIBS=$lt_globsym_save_LIBS
  6792. CFLAGS=$lt_globsym_save_CFLAGS
  6793. else
  6794. echo "cannot find nm_test_func in $nlist" >&5
  6795. fi
  6796. else
  6797. echo "cannot find nm_test_var in $nlist" >&5
  6798. fi
  6799. else
  6800. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6801. fi
  6802. else
  6803. echo "$progname: failed program was:" >&5
  6804. cat conftest.$ac_ext >&5
  6805. fi
  6806. rm -rf conftest* conftst*
  6807. # Do not use the global_symbol_pipe unless it works.
  6808. if test yes = "$pipe_works"; then
  6809. break
  6810. else
  6811. lt_cv_sys_global_symbol_pipe=
  6812. fi
  6813. done
  6814. fi
  6815. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6816. lt_cv_sys_global_symbol_to_cdecl=
  6817. fi
  6818. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6820. printf "%s\n" "failed" >&6; }
  6821. else
  6822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6823. printf "%s\n" "ok" >&6; }
  6824. fi
  6825. # Response file support.
  6826. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6827. nm_file_list_spec='@'
  6828. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6829. nm_file_list_spec='@'
  6830. fi
  6831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6832. printf %s "checking for sysroot... " >&6; }
  6833. # Check whether --with-sysroot was given.
  6834. if test ${with_sysroot+y}
  6835. then :
  6836. withval=$with_sysroot;
  6837. else $as_nop
  6838. with_sysroot=no
  6839. fi
  6840. lt_sysroot=
  6841. case $with_sysroot in #(
  6842. yes)
  6843. if test yes = "$GCC"; then
  6844. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6845. fi
  6846. ;; #(
  6847. /*)
  6848. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6849. ;; #(
  6850. no|'')
  6851. ;; #(
  6852. *)
  6853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6854. printf "%s\n" "$with_sysroot" >&6; }
  6855. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6856. ;;
  6857. esac
  6858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6859. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6861. printf %s "checking for a working dd... " >&6; }
  6862. if test ${ac_cv_path_lt_DD+y}
  6863. then :
  6864. printf %s "(cached) " >&6
  6865. else $as_nop
  6866. printf 0123456789abcdef0123456789abcdef >conftest.i
  6867. cat conftest.i conftest.i >conftest2.i
  6868. : ${lt_DD:=$DD}
  6869. if test -z "$lt_DD"; then
  6870. ac_path_lt_DD_found=false
  6871. # Loop through the user's path and test for each of PROGNAME-LIST
  6872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6873. for as_dir in $PATH
  6874. do
  6875. IFS=$as_save_IFS
  6876. case $as_dir in #(((
  6877. '') as_dir=./ ;;
  6878. */) ;;
  6879. *) as_dir=$as_dir/ ;;
  6880. esac
  6881. for ac_prog in dd
  6882. do
  6883. for ac_exec_ext in '' $ac_executable_extensions; do
  6884. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6885. as_fn_executable_p "$ac_path_lt_DD" || continue
  6886. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6887. cmp -s conftest.i conftest.out \
  6888. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6889. fi
  6890. $ac_path_lt_DD_found && break 3
  6891. done
  6892. done
  6893. done
  6894. IFS=$as_save_IFS
  6895. if test -z "$ac_cv_path_lt_DD"; then
  6896. :
  6897. fi
  6898. else
  6899. ac_cv_path_lt_DD=$lt_DD
  6900. fi
  6901. rm -f conftest.i conftest2.i conftest.out
  6902. fi
  6903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6904. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6906. printf %s "checking how to truncate binary pipes... " >&6; }
  6907. if test ${lt_cv_truncate_bin+y}
  6908. then :
  6909. printf %s "(cached) " >&6
  6910. else $as_nop
  6911. printf 0123456789abcdef0123456789abcdef >conftest.i
  6912. cat conftest.i conftest.i >conftest2.i
  6913. lt_cv_truncate_bin=
  6914. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6915. cmp -s conftest.i conftest.out \
  6916. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6917. fi
  6918. rm -f conftest.i conftest2.i conftest.out
  6919. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6920. fi
  6921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6922. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6923. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6924. func_cc_basename ()
  6925. {
  6926. for cc_temp in $*""; do
  6927. case $cc_temp in
  6928. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6929. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6930. \-*) ;;
  6931. *) break;;
  6932. esac
  6933. done
  6934. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6935. }
  6936. # Check whether --enable-libtool-lock was given.
  6937. if test ${enable_libtool_lock+y}
  6938. then :
  6939. enableval=$enable_libtool_lock;
  6940. fi
  6941. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6942. # Some flags need to be propagated to the compiler or linker for good
  6943. # libtool support.
  6944. case $host in
  6945. ia64-*-hpux*)
  6946. # Find out what ABI is being produced by ac_compile, and set mode
  6947. # options accordingly.
  6948. echo 'int i;' > conftest.$ac_ext
  6949. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6950. (eval $ac_compile) 2>&5
  6951. ac_status=$?
  6952. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6953. test $ac_status = 0; }; then
  6954. case `/usr/bin/file conftest.$ac_objext` in
  6955. *ELF-32*)
  6956. HPUX_IA64_MODE=32
  6957. ;;
  6958. *ELF-64*)
  6959. HPUX_IA64_MODE=64
  6960. ;;
  6961. esac
  6962. fi
  6963. rm -rf conftest*
  6964. ;;
  6965. *-*-irix6*)
  6966. # Find out what ABI is being produced by ac_compile, and set linker
  6967. # options accordingly.
  6968. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6969. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6970. (eval $ac_compile) 2>&5
  6971. ac_status=$?
  6972. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6973. test $ac_status = 0; }; then
  6974. if test yes = "$lt_cv_prog_gnu_ld"; then
  6975. case `/usr/bin/file conftest.$ac_objext` in
  6976. *32-bit*)
  6977. LD="${LD-ld} -melf32bsmip"
  6978. ;;
  6979. *N32*)
  6980. LD="${LD-ld} -melf32bmipn32"
  6981. ;;
  6982. *64-bit*)
  6983. LD="${LD-ld} -melf64bmip"
  6984. ;;
  6985. esac
  6986. else
  6987. case `/usr/bin/file conftest.$ac_objext` in
  6988. *32-bit*)
  6989. LD="${LD-ld} -32"
  6990. ;;
  6991. *N32*)
  6992. LD="${LD-ld} -n32"
  6993. ;;
  6994. *64-bit*)
  6995. LD="${LD-ld} -64"
  6996. ;;
  6997. esac
  6998. fi
  6999. fi
  7000. rm -rf conftest*
  7001. ;;
  7002. mips64*-*linux*)
  7003. # Find out what ABI is being produced by ac_compile, and set linker
  7004. # options accordingly.
  7005. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7006. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7007. (eval $ac_compile) 2>&5
  7008. ac_status=$?
  7009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7010. test $ac_status = 0; }; then
  7011. emul=elf
  7012. case `/usr/bin/file conftest.$ac_objext` in
  7013. *32-bit*)
  7014. emul="${emul}32"
  7015. ;;
  7016. *64-bit*)
  7017. emul="${emul}64"
  7018. ;;
  7019. esac
  7020. case `/usr/bin/file conftest.$ac_objext` in
  7021. *MSB*)
  7022. emul="${emul}btsmip"
  7023. ;;
  7024. *LSB*)
  7025. emul="${emul}ltsmip"
  7026. ;;
  7027. esac
  7028. case `/usr/bin/file conftest.$ac_objext` in
  7029. *N32*)
  7030. emul="${emul}n32"
  7031. ;;
  7032. esac
  7033. LD="${LD-ld} -m $emul"
  7034. fi
  7035. rm -rf conftest*
  7036. ;;
  7037. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7038. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7039. # Find out what ABI is being produced by ac_compile, and set linker
  7040. # options accordingly. Note that the listed cases only cover the
  7041. # situations where additional linker options are needed (such as when
  7042. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7043. # vice versa); the common cases where no linker options are needed do
  7044. # not appear in the list.
  7045. echo 'int i;' > conftest.$ac_ext
  7046. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7047. (eval $ac_compile) 2>&5
  7048. ac_status=$?
  7049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7050. test $ac_status = 0; }; then
  7051. case `/usr/bin/file conftest.o` in
  7052. *32-bit*)
  7053. case $host in
  7054. x86_64-*kfreebsd*-gnu)
  7055. LD="${LD-ld} -m elf_i386_fbsd"
  7056. ;;
  7057. x86_64-*linux*)
  7058. case `/usr/bin/file conftest.o` in
  7059. *x86-64*)
  7060. LD="${LD-ld} -m elf32_x86_64"
  7061. ;;
  7062. *)
  7063. LD="${LD-ld} -m elf_i386"
  7064. ;;
  7065. esac
  7066. ;;
  7067. powerpc64le-*linux*)
  7068. LD="${LD-ld} -m elf32lppclinux"
  7069. ;;
  7070. powerpc64-*linux*)
  7071. LD="${LD-ld} -m elf32ppclinux"
  7072. ;;
  7073. s390x-*linux*)
  7074. LD="${LD-ld} -m elf_s390"
  7075. ;;
  7076. sparc64-*linux*)
  7077. LD="${LD-ld} -m elf32_sparc"
  7078. ;;
  7079. esac
  7080. ;;
  7081. *64-bit*)
  7082. case $host in
  7083. x86_64-*kfreebsd*-gnu)
  7084. LD="${LD-ld} -m elf_x86_64_fbsd"
  7085. ;;
  7086. x86_64-*linux*)
  7087. LD="${LD-ld} -m elf_x86_64"
  7088. ;;
  7089. powerpcle-*linux*|powerpc64le-*linux*)
  7090. LD="${LD-ld} -m elf64lppc"
  7091. ;;
  7092. powerpc-*linux*|powerpc64-*linux*)
  7093. LD="${LD-ld} -m elf64ppc"
  7094. ;;
  7095. s390*-*linux*|s390*-*tpf*)
  7096. LD="${LD-ld} -m elf64_s390"
  7097. ;;
  7098. sparc*-*linux*)
  7099. LD="${LD-ld} -m elf64_sparc"
  7100. ;;
  7101. esac
  7102. ;;
  7103. esac
  7104. fi
  7105. rm -rf conftest*
  7106. ;;
  7107. *-*-sco3.2v5*)
  7108. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7109. SAVE_CFLAGS=$CFLAGS
  7110. CFLAGS="$CFLAGS -belf"
  7111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7112. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7113. if test ${lt_cv_cc_needs_belf+y}
  7114. then :
  7115. printf %s "(cached) " >&6
  7116. else $as_nop
  7117. ac_ext=c
  7118. ac_cpp='$CPP $CPPFLAGS'
  7119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7123. /* end confdefs.h. */
  7124. int
  7125. main (void)
  7126. {
  7127. ;
  7128. return 0;
  7129. }
  7130. _ACEOF
  7131. if ac_fn_c_try_link "$LINENO"
  7132. then :
  7133. lt_cv_cc_needs_belf=yes
  7134. else $as_nop
  7135. lt_cv_cc_needs_belf=no
  7136. fi
  7137. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7138. conftest$ac_exeext conftest.$ac_ext
  7139. ac_ext=c
  7140. ac_cpp='$CPP $CPPFLAGS'
  7141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7144. fi
  7145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7146. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7147. if test yes != "$lt_cv_cc_needs_belf"; then
  7148. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7149. CFLAGS=$SAVE_CFLAGS
  7150. fi
  7151. ;;
  7152. *-*solaris*)
  7153. # Find out what ABI is being produced by ac_compile, and set linker
  7154. # options accordingly.
  7155. echo 'int i;' > conftest.$ac_ext
  7156. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7157. (eval $ac_compile) 2>&5
  7158. ac_status=$?
  7159. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7160. test $ac_status = 0; }; then
  7161. case `/usr/bin/file conftest.o` in
  7162. *64-bit*)
  7163. case $lt_cv_prog_gnu_ld in
  7164. yes*)
  7165. case $host in
  7166. i?86-*-solaris*|x86_64-*-solaris*)
  7167. LD="${LD-ld} -m elf_x86_64"
  7168. ;;
  7169. sparc*-*-solaris*)
  7170. LD="${LD-ld} -m elf64_sparc"
  7171. ;;
  7172. esac
  7173. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7174. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7175. LD=${LD-ld}_sol2
  7176. fi
  7177. ;;
  7178. *)
  7179. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7180. LD="${LD-ld} -64"
  7181. fi
  7182. ;;
  7183. esac
  7184. ;;
  7185. esac
  7186. fi
  7187. rm -rf conftest*
  7188. ;;
  7189. esac
  7190. need_locks=$enable_libtool_lock
  7191. if test -n "$ac_tool_prefix"; then
  7192. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7193. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7195. printf %s "checking for $ac_word... " >&6; }
  7196. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7197. then :
  7198. printf %s "(cached) " >&6
  7199. else $as_nop
  7200. if test -n "$MANIFEST_TOOL"; then
  7201. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7202. else
  7203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7204. for as_dir in $PATH
  7205. do
  7206. IFS=$as_save_IFS
  7207. case $as_dir in #(((
  7208. '') as_dir=./ ;;
  7209. */) ;;
  7210. *) as_dir=$as_dir/ ;;
  7211. esac
  7212. for ac_exec_ext in '' $ac_executable_extensions; do
  7213. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7214. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7215. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7216. break 2
  7217. fi
  7218. done
  7219. done
  7220. IFS=$as_save_IFS
  7221. fi
  7222. fi
  7223. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7224. if test -n "$MANIFEST_TOOL"; then
  7225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7226. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7227. else
  7228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7229. printf "%s\n" "no" >&6; }
  7230. fi
  7231. fi
  7232. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7233. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7234. # Extract the first word of "mt", so it can be a program name with args.
  7235. set dummy mt; ac_word=$2
  7236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7237. printf %s "checking for $ac_word... " >&6; }
  7238. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7239. then :
  7240. printf %s "(cached) " >&6
  7241. else $as_nop
  7242. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7243. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7244. else
  7245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7246. for as_dir in $PATH
  7247. do
  7248. IFS=$as_save_IFS
  7249. case $as_dir in #(((
  7250. '') as_dir=./ ;;
  7251. */) ;;
  7252. *) as_dir=$as_dir/ ;;
  7253. esac
  7254. for ac_exec_ext in '' $ac_executable_extensions; do
  7255. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7256. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7258. break 2
  7259. fi
  7260. done
  7261. done
  7262. IFS=$as_save_IFS
  7263. fi
  7264. fi
  7265. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7266. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7268. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7269. else
  7270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7271. printf "%s\n" "no" >&6; }
  7272. fi
  7273. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7274. MANIFEST_TOOL=":"
  7275. else
  7276. case $cross_compiling:$ac_tool_warned in
  7277. yes:)
  7278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7279. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7280. ac_tool_warned=yes ;;
  7281. esac
  7282. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7283. fi
  7284. else
  7285. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7286. fi
  7287. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7289. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7290. if test ${lt_cv_path_mainfest_tool+y}
  7291. then :
  7292. printf %s "(cached) " >&6
  7293. else $as_nop
  7294. lt_cv_path_mainfest_tool=no
  7295. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7296. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7297. cat conftest.err >&5
  7298. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7299. lt_cv_path_mainfest_tool=yes
  7300. fi
  7301. rm -f conftest*
  7302. fi
  7303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7304. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7305. if test yes != "$lt_cv_path_mainfest_tool"; then
  7306. MANIFEST_TOOL=:
  7307. fi
  7308. case $host_os in
  7309. rhapsody* | darwin*)
  7310. if test -n "$ac_tool_prefix"; then
  7311. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7312. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7314. printf %s "checking for $ac_word... " >&6; }
  7315. if test ${ac_cv_prog_DSYMUTIL+y}
  7316. then :
  7317. printf %s "(cached) " >&6
  7318. else $as_nop
  7319. if test -n "$DSYMUTIL"; then
  7320. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7321. else
  7322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7323. for as_dir in $PATH
  7324. do
  7325. IFS=$as_save_IFS
  7326. case $as_dir in #(((
  7327. '') as_dir=./ ;;
  7328. */) ;;
  7329. *) as_dir=$as_dir/ ;;
  7330. esac
  7331. for ac_exec_ext in '' $ac_executable_extensions; do
  7332. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7333. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7334. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7335. break 2
  7336. fi
  7337. done
  7338. done
  7339. IFS=$as_save_IFS
  7340. fi
  7341. fi
  7342. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7343. if test -n "$DSYMUTIL"; then
  7344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7345. printf "%s\n" "$DSYMUTIL" >&6; }
  7346. else
  7347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7348. printf "%s\n" "no" >&6; }
  7349. fi
  7350. fi
  7351. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7352. ac_ct_DSYMUTIL=$DSYMUTIL
  7353. # Extract the first word of "dsymutil", so it can be a program name with args.
  7354. set dummy dsymutil; ac_word=$2
  7355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7356. printf %s "checking for $ac_word... " >&6; }
  7357. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7358. then :
  7359. printf %s "(cached) " >&6
  7360. else $as_nop
  7361. if test -n "$ac_ct_DSYMUTIL"; then
  7362. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7363. else
  7364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7365. for as_dir in $PATH
  7366. do
  7367. IFS=$as_save_IFS
  7368. case $as_dir in #(((
  7369. '') as_dir=./ ;;
  7370. */) ;;
  7371. *) as_dir=$as_dir/ ;;
  7372. esac
  7373. for ac_exec_ext in '' $ac_executable_extensions; do
  7374. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7375. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7376. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7377. break 2
  7378. fi
  7379. done
  7380. done
  7381. IFS=$as_save_IFS
  7382. fi
  7383. fi
  7384. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7385. if test -n "$ac_ct_DSYMUTIL"; then
  7386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7387. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7388. else
  7389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7390. printf "%s\n" "no" >&6; }
  7391. fi
  7392. if test "x$ac_ct_DSYMUTIL" = x; then
  7393. DSYMUTIL=":"
  7394. else
  7395. case $cross_compiling:$ac_tool_warned in
  7396. yes:)
  7397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7398. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7399. ac_tool_warned=yes ;;
  7400. esac
  7401. DSYMUTIL=$ac_ct_DSYMUTIL
  7402. fi
  7403. else
  7404. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7405. fi
  7406. if test -n "$ac_tool_prefix"; then
  7407. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7408. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7410. printf %s "checking for $ac_word... " >&6; }
  7411. if test ${ac_cv_prog_NMEDIT+y}
  7412. then :
  7413. printf %s "(cached) " >&6
  7414. else $as_nop
  7415. if test -n "$NMEDIT"; then
  7416. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7417. else
  7418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7419. for as_dir in $PATH
  7420. do
  7421. IFS=$as_save_IFS
  7422. case $as_dir in #(((
  7423. '') as_dir=./ ;;
  7424. */) ;;
  7425. *) as_dir=$as_dir/ ;;
  7426. esac
  7427. for ac_exec_ext in '' $ac_executable_extensions; do
  7428. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7429. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7430. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7431. break 2
  7432. fi
  7433. done
  7434. done
  7435. IFS=$as_save_IFS
  7436. fi
  7437. fi
  7438. NMEDIT=$ac_cv_prog_NMEDIT
  7439. if test -n "$NMEDIT"; then
  7440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7441. printf "%s\n" "$NMEDIT" >&6; }
  7442. else
  7443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7444. printf "%s\n" "no" >&6; }
  7445. fi
  7446. fi
  7447. if test -z "$ac_cv_prog_NMEDIT"; then
  7448. ac_ct_NMEDIT=$NMEDIT
  7449. # Extract the first word of "nmedit", so it can be a program name with args.
  7450. set dummy nmedit; ac_word=$2
  7451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7452. printf %s "checking for $ac_word... " >&6; }
  7453. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7454. then :
  7455. printf %s "(cached) " >&6
  7456. else $as_nop
  7457. if test -n "$ac_ct_NMEDIT"; then
  7458. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7459. else
  7460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7461. for as_dir in $PATH
  7462. do
  7463. IFS=$as_save_IFS
  7464. case $as_dir in #(((
  7465. '') as_dir=./ ;;
  7466. */) ;;
  7467. *) as_dir=$as_dir/ ;;
  7468. esac
  7469. for ac_exec_ext in '' $ac_executable_extensions; do
  7470. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7471. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7472. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7473. break 2
  7474. fi
  7475. done
  7476. done
  7477. IFS=$as_save_IFS
  7478. fi
  7479. fi
  7480. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7481. if test -n "$ac_ct_NMEDIT"; then
  7482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7483. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7484. else
  7485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7486. printf "%s\n" "no" >&6; }
  7487. fi
  7488. if test "x$ac_ct_NMEDIT" = x; then
  7489. NMEDIT=":"
  7490. else
  7491. case $cross_compiling:$ac_tool_warned in
  7492. yes:)
  7493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7494. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7495. ac_tool_warned=yes ;;
  7496. esac
  7497. NMEDIT=$ac_ct_NMEDIT
  7498. fi
  7499. else
  7500. NMEDIT="$ac_cv_prog_NMEDIT"
  7501. fi
  7502. if test -n "$ac_tool_prefix"; then
  7503. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7504. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7506. printf %s "checking for $ac_word... " >&6; }
  7507. if test ${ac_cv_prog_LIPO+y}
  7508. then :
  7509. printf %s "(cached) " >&6
  7510. else $as_nop
  7511. if test -n "$LIPO"; then
  7512. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7513. else
  7514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7515. for as_dir in $PATH
  7516. do
  7517. IFS=$as_save_IFS
  7518. case $as_dir in #(((
  7519. '') as_dir=./ ;;
  7520. */) ;;
  7521. *) as_dir=$as_dir/ ;;
  7522. esac
  7523. for ac_exec_ext in '' $ac_executable_extensions; do
  7524. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7525. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7526. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7527. break 2
  7528. fi
  7529. done
  7530. done
  7531. IFS=$as_save_IFS
  7532. fi
  7533. fi
  7534. LIPO=$ac_cv_prog_LIPO
  7535. if test -n "$LIPO"; then
  7536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7537. printf "%s\n" "$LIPO" >&6; }
  7538. else
  7539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7540. printf "%s\n" "no" >&6; }
  7541. fi
  7542. fi
  7543. if test -z "$ac_cv_prog_LIPO"; then
  7544. ac_ct_LIPO=$LIPO
  7545. # Extract the first word of "lipo", so it can be a program name with args.
  7546. set dummy lipo; ac_word=$2
  7547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7548. printf %s "checking for $ac_word... " >&6; }
  7549. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7550. then :
  7551. printf %s "(cached) " >&6
  7552. else $as_nop
  7553. if test -n "$ac_ct_LIPO"; then
  7554. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7555. else
  7556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7557. for as_dir in $PATH
  7558. do
  7559. IFS=$as_save_IFS
  7560. case $as_dir in #(((
  7561. '') as_dir=./ ;;
  7562. */) ;;
  7563. *) as_dir=$as_dir/ ;;
  7564. esac
  7565. for ac_exec_ext in '' $ac_executable_extensions; do
  7566. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7567. ac_cv_prog_ac_ct_LIPO="lipo"
  7568. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7569. break 2
  7570. fi
  7571. done
  7572. done
  7573. IFS=$as_save_IFS
  7574. fi
  7575. fi
  7576. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7577. if test -n "$ac_ct_LIPO"; then
  7578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7579. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7580. else
  7581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7582. printf "%s\n" "no" >&6; }
  7583. fi
  7584. if test "x$ac_ct_LIPO" = x; then
  7585. LIPO=":"
  7586. else
  7587. case $cross_compiling:$ac_tool_warned in
  7588. yes:)
  7589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7590. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7591. ac_tool_warned=yes ;;
  7592. esac
  7593. LIPO=$ac_ct_LIPO
  7594. fi
  7595. else
  7596. LIPO="$ac_cv_prog_LIPO"
  7597. fi
  7598. if test -n "$ac_tool_prefix"; then
  7599. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7600. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7602. printf %s "checking for $ac_word... " >&6; }
  7603. if test ${ac_cv_prog_OTOOL+y}
  7604. then :
  7605. printf %s "(cached) " >&6
  7606. else $as_nop
  7607. if test -n "$OTOOL"; then
  7608. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7609. else
  7610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7611. for as_dir in $PATH
  7612. do
  7613. IFS=$as_save_IFS
  7614. case $as_dir in #(((
  7615. '') as_dir=./ ;;
  7616. */) ;;
  7617. *) as_dir=$as_dir/ ;;
  7618. esac
  7619. for ac_exec_ext in '' $ac_executable_extensions; do
  7620. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7621. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7623. break 2
  7624. fi
  7625. done
  7626. done
  7627. IFS=$as_save_IFS
  7628. fi
  7629. fi
  7630. OTOOL=$ac_cv_prog_OTOOL
  7631. if test -n "$OTOOL"; then
  7632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7633. printf "%s\n" "$OTOOL" >&6; }
  7634. else
  7635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7636. printf "%s\n" "no" >&6; }
  7637. fi
  7638. fi
  7639. if test -z "$ac_cv_prog_OTOOL"; then
  7640. ac_ct_OTOOL=$OTOOL
  7641. # Extract the first word of "otool", so it can be a program name with args.
  7642. set dummy otool; ac_word=$2
  7643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7644. printf %s "checking for $ac_word... " >&6; }
  7645. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7646. then :
  7647. printf %s "(cached) " >&6
  7648. else $as_nop
  7649. if test -n "$ac_ct_OTOOL"; then
  7650. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7651. else
  7652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7653. for as_dir in $PATH
  7654. do
  7655. IFS=$as_save_IFS
  7656. case $as_dir in #(((
  7657. '') as_dir=./ ;;
  7658. */) ;;
  7659. *) as_dir=$as_dir/ ;;
  7660. esac
  7661. for ac_exec_ext in '' $ac_executable_extensions; do
  7662. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7663. ac_cv_prog_ac_ct_OTOOL="otool"
  7664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7665. break 2
  7666. fi
  7667. done
  7668. done
  7669. IFS=$as_save_IFS
  7670. fi
  7671. fi
  7672. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7673. if test -n "$ac_ct_OTOOL"; then
  7674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7675. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7676. else
  7677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7678. printf "%s\n" "no" >&6; }
  7679. fi
  7680. if test "x$ac_ct_OTOOL" = x; then
  7681. OTOOL=":"
  7682. else
  7683. case $cross_compiling:$ac_tool_warned in
  7684. yes:)
  7685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7686. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7687. ac_tool_warned=yes ;;
  7688. esac
  7689. OTOOL=$ac_ct_OTOOL
  7690. fi
  7691. else
  7692. OTOOL="$ac_cv_prog_OTOOL"
  7693. fi
  7694. if test -n "$ac_tool_prefix"; then
  7695. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7696. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7698. printf %s "checking for $ac_word... " >&6; }
  7699. if test ${ac_cv_prog_OTOOL64+y}
  7700. then :
  7701. printf %s "(cached) " >&6
  7702. else $as_nop
  7703. if test -n "$OTOOL64"; then
  7704. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7705. else
  7706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7707. for as_dir in $PATH
  7708. do
  7709. IFS=$as_save_IFS
  7710. case $as_dir in #(((
  7711. '') as_dir=./ ;;
  7712. */) ;;
  7713. *) as_dir=$as_dir/ ;;
  7714. esac
  7715. for ac_exec_ext in '' $ac_executable_extensions; do
  7716. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7717. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7719. break 2
  7720. fi
  7721. done
  7722. done
  7723. IFS=$as_save_IFS
  7724. fi
  7725. fi
  7726. OTOOL64=$ac_cv_prog_OTOOL64
  7727. if test -n "$OTOOL64"; then
  7728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7729. printf "%s\n" "$OTOOL64" >&6; }
  7730. else
  7731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7732. printf "%s\n" "no" >&6; }
  7733. fi
  7734. fi
  7735. if test -z "$ac_cv_prog_OTOOL64"; then
  7736. ac_ct_OTOOL64=$OTOOL64
  7737. # Extract the first word of "otool64", so it can be a program name with args.
  7738. set dummy otool64; ac_word=$2
  7739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7740. printf %s "checking for $ac_word... " >&6; }
  7741. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7742. then :
  7743. printf %s "(cached) " >&6
  7744. else $as_nop
  7745. if test -n "$ac_ct_OTOOL64"; then
  7746. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7747. else
  7748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7749. for as_dir in $PATH
  7750. do
  7751. IFS=$as_save_IFS
  7752. case $as_dir in #(((
  7753. '') as_dir=./ ;;
  7754. */) ;;
  7755. *) as_dir=$as_dir/ ;;
  7756. esac
  7757. for ac_exec_ext in '' $ac_executable_extensions; do
  7758. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7759. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7761. break 2
  7762. fi
  7763. done
  7764. done
  7765. IFS=$as_save_IFS
  7766. fi
  7767. fi
  7768. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7769. if test -n "$ac_ct_OTOOL64"; then
  7770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7771. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7772. else
  7773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7774. printf "%s\n" "no" >&6; }
  7775. fi
  7776. if test "x$ac_ct_OTOOL64" = x; then
  7777. OTOOL64=":"
  7778. else
  7779. case $cross_compiling:$ac_tool_warned in
  7780. yes:)
  7781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7782. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7783. ac_tool_warned=yes ;;
  7784. esac
  7785. OTOOL64=$ac_ct_OTOOL64
  7786. fi
  7787. else
  7788. OTOOL64="$ac_cv_prog_OTOOL64"
  7789. fi
  7790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7791. printf %s "checking for -single_module linker flag... " >&6; }
  7792. if test ${lt_cv_apple_cc_single_mod+y}
  7793. then :
  7794. printf %s "(cached) " >&6
  7795. else $as_nop
  7796. lt_cv_apple_cc_single_mod=no
  7797. if test -z "$LT_MULTI_MODULE"; then
  7798. # By default we will add the -single_module flag. You can override
  7799. # by either setting the environment variable LT_MULTI_MODULE
  7800. # non-empty at configure time, or by adding -multi_module to the
  7801. # link flags.
  7802. rm -rf libconftest.dylib*
  7803. echo "int foo(void){return 1;}" > conftest.c
  7804. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7805. -dynamiclib -Wl,-single_module conftest.c" >&5
  7806. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7807. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7808. _lt_result=$?
  7809. # If there is a non-empty error log, and "single_module"
  7810. # appears in it, assume the flag caused a linker warning
  7811. if test -s conftest.err && $GREP single_module conftest.err; then
  7812. cat conftest.err >&5
  7813. # Otherwise, if the output was created with a 0 exit code from
  7814. # the compiler, it worked.
  7815. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7816. lt_cv_apple_cc_single_mod=yes
  7817. else
  7818. cat conftest.err >&5
  7819. fi
  7820. rm -rf libconftest.dylib*
  7821. rm -f conftest.*
  7822. fi
  7823. fi
  7824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7825. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7827. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7828. if test ${lt_cv_ld_exported_symbols_list+y}
  7829. then :
  7830. printf %s "(cached) " >&6
  7831. else $as_nop
  7832. lt_cv_ld_exported_symbols_list=no
  7833. save_LDFLAGS=$LDFLAGS
  7834. echo "_main" > conftest.sym
  7835. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7837. /* end confdefs.h. */
  7838. int
  7839. main (void)
  7840. {
  7841. ;
  7842. return 0;
  7843. }
  7844. _ACEOF
  7845. if ac_fn_c_try_link "$LINENO"
  7846. then :
  7847. lt_cv_ld_exported_symbols_list=yes
  7848. else $as_nop
  7849. lt_cv_ld_exported_symbols_list=no
  7850. fi
  7851. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7852. conftest$ac_exeext conftest.$ac_ext
  7853. LDFLAGS=$save_LDFLAGS
  7854. fi
  7855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7856. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7858. printf %s "checking for -force_load linker flag... " >&6; }
  7859. if test ${lt_cv_ld_force_load+y}
  7860. then :
  7861. printf %s "(cached) " >&6
  7862. else $as_nop
  7863. lt_cv_ld_force_load=no
  7864. cat > conftest.c << _LT_EOF
  7865. int forced_loaded() { return 2;}
  7866. _LT_EOF
  7867. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7868. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7869. echo "$AR cru libconftest.a conftest.o" >&5
  7870. $AR cru libconftest.a conftest.o 2>&5
  7871. echo "$RANLIB libconftest.a" >&5
  7872. $RANLIB libconftest.a 2>&5
  7873. cat > conftest.c << _LT_EOF
  7874. int main() { return 0;}
  7875. _LT_EOF
  7876. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7877. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7878. _lt_result=$?
  7879. if test -s conftest.err && $GREP force_load conftest.err; then
  7880. cat conftest.err >&5
  7881. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7882. lt_cv_ld_force_load=yes
  7883. else
  7884. cat conftest.err >&5
  7885. fi
  7886. rm -f conftest.err libconftest.a conftest conftest.c
  7887. rm -rf conftest.dSYM
  7888. fi
  7889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7890. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7891. case $host_os in
  7892. rhapsody* | darwin1.[012])
  7893. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7894. darwin1.*)
  7895. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7896. darwin*) # darwin 5.x on
  7897. # if running on 10.5 or later, the deployment target defaults
  7898. # to the OS version, if on x86, and 10.4, the deployment
  7899. # target defaults to 10.4. Don't you love it?
  7900. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7901. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7902. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7903. 10.[012][,.]*)
  7904. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7905. 10.*)
  7906. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7907. esac
  7908. ;;
  7909. esac
  7910. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7911. _lt_dar_single_mod='$single_module'
  7912. fi
  7913. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7914. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7915. else
  7916. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7917. fi
  7918. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7919. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7920. else
  7921. _lt_dsymutil=
  7922. fi
  7923. ;;
  7924. esac
  7925. # func_munge_path_list VARIABLE PATH
  7926. # -----------------------------------
  7927. # VARIABLE is name of variable containing _space_ separated list of
  7928. # directories to be munged by the contents of PATH, which is string
  7929. # having a format:
  7930. # "DIR[:DIR]:"
  7931. # string "DIR[ DIR]" will be prepended to VARIABLE
  7932. # ":DIR[:DIR]"
  7933. # string "DIR[ DIR]" will be appended to VARIABLE
  7934. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7935. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7936. # "DIRA[ DIRA]" will be appended to VARIABLE
  7937. # "DIR[:DIR]"
  7938. # VARIABLE will be replaced by "DIR[ DIR]"
  7939. func_munge_path_list ()
  7940. {
  7941. case x$2 in
  7942. x)
  7943. ;;
  7944. *:)
  7945. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7946. ;;
  7947. x:*)
  7948. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7949. ;;
  7950. *::*)
  7951. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7952. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7953. ;;
  7954. *)
  7955. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7956. ;;
  7957. esac
  7958. }
  7959. ac_header= ac_cache=
  7960. for ac_item in $ac_header_c_list
  7961. do
  7962. if test $ac_cache; then
  7963. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7964. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7965. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7966. fi
  7967. ac_header= ac_cache=
  7968. elif test $ac_header; then
  7969. ac_cache=$ac_item
  7970. else
  7971. ac_header=$ac_item
  7972. fi
  7973. done
  7974. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7975. then :
  7976. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7977. fi
  7978. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7979. "
  7980. if test "x$ac_cv_header_dlfcn_h" = xyes
  7981. then :
  7982. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7983. fi
  7984. # Set options
  7985. enable_win32_dll=yes
  7986. case $host in
  7987. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7988. if test -n "$ac_tool_prefix"; then
  7989. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7990. set dummy ${ac_tool_prefix}as; ac_word=$2
  7991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7992. printf %s "checking for $ac_word... " >&6; }
  7993. if test ${ac_cv_prog_AS+y}
  7994. then :
  7995. printf %s "(cached) " >&6
  7996. else $as_nop
  7997. if test -n "$AS"; then
  7998. ac_cv_prog_AS="$AS" # Let the user override the test.
  7999. else
  8000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8001. for as_dir in $PATH
  8002. do
  8003. IFS=$as_save_IFS
  8004. case $as_dir in #(((
  8005. '') as_dir=./ ;;
  8006. */) ;;
  8007. *) as_dir=$as_dir/ ;;
  8008. esac
  8009. for ac_exec_ext in '' $ac_executable_extensions; do
  8010. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8011. ac_cv_prog_AS="${ac_tool_prefix}as"
  8012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8013. break 2
  8014. fi
  8015. done
  8016. done
  8017. IFS=$as_save_IFS
  8018. fi
  8019. fi
  8020. AS=$ac_cv_prog_AS
  8021. if test -n "$AS"; then
  8022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8023. printf "%s\n" "$AS" >&6; }
  8024. else
  8025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8026. printf "%s\n" "no" >&6; }
  8027. fi
  8028. fi
  8029. if test -z "$ac_cv_prog_AS"; then
  8030. ac_ct_AS=$AS
  8031. # Extract the first word of "as", so it can be a program name with args.
  8032. set dummy as; ac_word=$2
  8033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8034. printf %s "checking for $ac_word... " >&6; }
  8035. if test ${ac_cv_prog_ac_ct_AS+y}
  8036. then :
  8037. printf %s "(cached) " >&6
  8038. else $as_nop
  8039. if test -n "$ac_ct_AS"; then
  8040. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8041. else
  8042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8043. for as_dir in $PATH
  8044. do
  8045. IFS=$as_save_IFS
  8046. case $as_dir in #(((
  8047. '') as_dir=./ ;;
  8048. */) ;;
  8049. *) as_dir=$as_dir/ ;;
  8050. esac
  8051. for ac_exec_ext in '' $ac_executable_extensions; do
  8052. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8053. ac_cv_prog_ac_ct_AS="as"
  8054. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8055. break 2
  8056. fi
  8057. done
  8058. done
  8059. IFS=$as_save_IFS
  8060. fi
  8061. fi
  8062. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8063. if test -n "$ac_ct_AS"; then
  8064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8065. printf "%s\n" "$ac_ct_AS" >&6; }
  8066. else
  8067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8068. printf "%s\n" "no" >&6; }
  8069. fi
  8070. if test "x$ac_ct_AS" = x; then
  8071. AS="false"
  8072. else
  8073. case $cross_compiling:$ac_tool_warned in
  8074. yes:)
  8075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8076. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8077. ac_tool_warned=yes ;;
  8078. esac
  8079. AS=$ac_ct_AS
  8080. fi
  8081. else
  8082. AS="$ac_cv_prog_AS"
  8083. fi
  8084. if test -n "$ac_tool_prefix"; then
  8085. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8086. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8088. printf %s "checking for $ac_word... " >&6; }
  8089. if test ${ac_cv_prog_DLLTOOL+y}
  8090. then :
  8091. printf %s "(cached) " >&6
  8092. else $as_nop
  8093. if test -n "$DLLTOOL"; then
  8094. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8095. else
  8096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8097. for as_dir in $PATH
  8098. do
  8099. IFS=$as_save_IFS
  8100. case $as_dir in #(((
  8101. '') as_dir=./ ;;
  8102. */) ;;
  8103. *) as_dir=$as_dir/ ;;
  8104. esac
  8105. for ac_exec_ext in '' $ac_executable_extensions; do
  8106. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8107. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8108. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8109. break 2
  8110. fi
  8111. done
  8112. done
  8113. IFS=$as_save_IFS
  8114. fi
  8115. fi
  8116. DLLTOOL=$ac_cv_prog_DLLTOOL
  8117. if test -n "$DLLTOOL"; then
  8118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8119. printf "%s\n" "$DLLTOOL" >&6; }
  8120. else
  8121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8122. printf "%s\n" "no" >&6; }
  8123. fi
  8124. fi
  8125. if test -z "$ac_cv_prog_DLLTOOL"; then
  8126. ac_ct_DLLTOOL=$DLLTOOL
  8127. # Extract the first word of "dlltool", so it can be a program name with args.
  8128. set dummy dlltool; ac_word=$2
  8129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8130. printf %s "checking for $ac_word... " >&6; }
  8131. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8132. then :
  8133. printf %s "(cached) " >&6
  8134. else $as_nop
  8135. if test -n "$ac_ct_DLLTOOL"; then
  8136. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8137. else
  8138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8139. for as_dir in $PATH
  8140. do
  8141. IFS=$as_save_IFS
  8142. case $as_dir in #(((
  8143. '') as_dir=./ ;;
  8144. */) ;;
  8145. *) as_dir=$as_dir/ ;;
  8146. esac
  8147. for ac_exec_ext in '' $ac_executable_extensions; do
  8148. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8149. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8151. break 2
  8152. fi
  8153. done
  8154. done
  8155. IFS=$as_save_IFS
  8156. fi
  8157. fi
  8158. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8159. if test -n "$ac_ct_DLLTOOL"; then
  8160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8161. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8162. else
  8163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8164. printf "%s\n" "no" >&6; }
  8165. fi
  8166. if test "x$ac_ct_DLLTOOL" = x; then
  8167. DLLTOOL="false"
  8168. else
  8169. case $cross_compiling:$ac_tool_warned in
  8170. yes:)
  8171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8172. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8173. ac_tool_warned=yes ;;
  8174. esac
  8175. DLLTOOL=$ac_ct_DLLTOOL
  8176. fi
  8177. else
  8178. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8179. fi
  8180. if test -n "$ac_tool_prefix"; then
  8181. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8182. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8184. printf %s "checking for $ac_word... " >&6; }
  8185. if test ${ac_cv_prog_OBJDUMP+y}
  8186. then :
  8187. printf %s "(cached) " >&6
  8188. else $as_nop
  8189. if test -n "$OBJDUMP"; then
  8190. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8191. else
  8192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8193. for as_dir in $PATH
  8194. do
  8195. IFS=$as_save_IFS
  8196. case $as_dir in #(((
  8197. '') as_dir=./ ;;
  8198. */) ;;
  8199. *) as_dir=$as_dir/ ;;
  8200. esac
  8201. for ac_exec_ext in '' $ac_executable_extensions; do
  8202. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8203. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8204. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8205. break 2
  8206. fi
  8207. done
  8208. done
  8209. IFS=$as_save_IFS
  8210. fi
  8211. fi
  8212. OBJDUMP=$ac_cv_prog_OBJDUMP
  8213. if test -n "$OBJDUMP"; then
  8214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8215. printf "%s\n" "$OBJDUMP" >&6; }
  8216. else
  8217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8218. printf "%s\n" "no" >&6; }
  8219. fi
  8220. fi
  8221. if test -z "$ac_cv_prog_OBJDUMP"; then
  8222. ac_ct_OBJDUMP=$OBJDUMP
  8223. # Extract the first word of "objdump", so it can be a program name with args.
  8224. set dummy objdump; ac_word=$2
  8225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8226. printf %s "checking for $ac_word... " >&6; }
  8227. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8228. then :
  8229. printf %s "(cached) " >&6
  8230. else $as_nop
  8231. if test -n "$ac_ct_OBJDUMP"; then
  8232. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8233. else
  8234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8235. for as_dir in $PATH
  8236. do
  8237. IFS=$as_save_IFS
  8238. case $as_dir in #(((
  8239. '') as_dir=./ ;;
  8240. */) ;;
  8241. *) as_dir=$as_dir/ ;;
  8242. esac
  8243. for ac_exec_ext in '' $ac_executable_extensions; do
  8244. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8245. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8246. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8247. break 2
  8248. fi
  8249. done
  8250. done
  8251. IFS=$as_save_IFS
  8252. fi
  8253. fi
  8254. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8255. if test -n "$ac_ct_OBJDUMP"; then
  8256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8257. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8258. else
  8259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8260. printf "%s\n" "no" >&6; }
  8261. fi
  8262. if test "x$ac_ct_OBJDUMP" = x; then
  8263. OBJDUMP="false"
  8264. else
  8265. case $cross_compiling:$ac_tool_warned in
  8266. yes:)
  8267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8268. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8269. ac_tool_warned=yes ;;
  8270. esac
  8271. OBJDUMP=$ac_ct_OBJDUMP
  8272. fi
  8273. else
  8274. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8275. fi
  8276. ;;
  8277. esac
  8278. test -z "$AS" && AS=as
  8279. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8280. test -z "$OBJDUMP" && OBJDUMP=objdump
  8281. enable_dlopen=no
  8282. # Check whether --enable-shared was given.
  8283. if test ${enable_shared+y}
  8284. then :
  8285. enableval=$enable_shared; p=${PACKAGE-default}
  8286. case $enableval in
  8287. yes) enable_shared=yes ;;
  8288. no) enable_shared=no ;;
  8289. *)
  8290. enable_shared=no
  8291. # Look at the argument we got. We use all the common list separators.
  8292. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8293. for pkg in $enableval; do
  8294. IFS=$lt_save_ifs
  8295. if test "X$pkg" = "X$p"; then
  8296. enable_shared=yes
  8297. fi
  8298. done
  8299. IFS=$lt_save_ifs
  8300. ;;
  8301. esac
  8302. else $as_nop
  8303. enable_shared=yes
  8304. fi
  8305. # Check whether --enable-static was given.
  8306. if test ${enable_static+y}
  8307. then :
  8308. enableval=$enable_static; p=${PACKAGE-default}
  8309. case $enableval in
  8310. yes) enable_static=yes ;;
  8311. no) enable_static=no ;;
  8312. *)
  8313. enable_static=no
  8314. # Look at the argument we got. We use all the common list separators.
  8315. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8316. for pkg in $enableval; do
  8317. IFS=$lt_save_ifs
  8318. if test "X$pkg" = "X$p"; then
  8319. enable_static=yes
  8320. fi
  8321. done
  8322. IFS=$lt_save_ifs
  8323. ;;
  8324. esac
  8325. else $as_nop
  8326. enable_static=yes
  8327. fi
  8328. # Check whether --with-pic was given.
  8329. if test ${with_pic+y}
  8330. then :
  8331. withval=$with_pic; lt_p=${PACKAGE-default}
  8332. case $withval in
  8333. yes|no) pic_mode=$withval ;;
  8334. *)
  8335. pic_mode=default
  8336. # Look at the argument we got. We use all the common list separators.
  8337. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8338. for lt_pkg in $withval; do
  8339. IFS=$lt_save_ifs
  8340. if test "X$lt_pkg" = "X$lt_p"; then
  8341. pic_mode=yes
  8342. fi
  8343. done
  8344. IFS=$lt_save_ifs
  8345. ;;
  8346. esac
  8347. else $as_nop
  8348. pic_mode=default
  8349. fi
  8350. # Check whether --enable-fast-install was given.
  8351. if test ${enable_fast_install+y}
  8352. then :
  8353. enableval=$enable_fast_install; p=${PACKAGE-default}
  8354. case $enableval in
  8355. yes) enable_fast_install=yes ;;
  8356. no) enable_fast_install=no ;;
  8357. *)
  8358. enable_fast_install=no
  8359. # Look at the argument we got. We use all the common list separators.
  8360. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8361. for pkg in $enableval; do
  8362. IFS=$lt_save_ifs
  8363. if test "X$pkg" = "X$p"; then
  8364. enable_fast_install=yes
  8365. fi
  8366. done
  8367. IFS=$lt_save_ifs
  8368. ;;
  8369. esac
  8370. else $as_nop
  8371. enable_fast_install=yes
  8372. fi
  8373. shared_archive_member_spec=
  8374. case $host,$enable_shared in
  8375. power*-*-aix[5-9]*,yes)
  8376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8377. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8378. # Check whether --with-aix-soname was given.
  8379. if test ${with_aix_soname+y}
  8380. then :
  8381. withval=$with_aix_soname; case $withval in
  8382. aix|svr4|both)
  8383. ;;
  8384. *)
  8385. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8386. ;;
  8387. esac
  8388. lt_cv_with_aix_soname=$with_aix_soname
  8389. else $as_nop
  8390. if test ${lt_cv_with_aix_soname+y}
  8391. then :
  8392. printf %s "(cached) " >&6
  8393. else $as_nop
  8394. lt_cv_with_aix_soname=aix
  8395. fi
  8396. with_aix_soname=$lt_cv_with_aix_soname
  8397. fi
  8398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8399. printf "%s\n" "$with_aix_soname" >&6; }
  8400. if test aix != "$with_aix_soname"; then
  8401. # For the AIX way of multilib, we name the shared archive member
  8402. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8403. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8404. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8405. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8406. if test 64 = "${OBJECT_MODE-32}"; then
  8407. shared_archive_member_spec=shr_64
  8408. else
  8409. shared_archive_member_spec=shr
  8410. fi
  8411. fi
  8412. ;;
  8413. *)
  8414. with_aix_soname=aix
  8415. ;;
  8416. esac
  8417. # This can be used to rebuild libtool when needed
  8418. LIBTOOL_DEPS=$ltmain
  8419. # Always use our own libtool.
  8420. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8421. test -z "$LN_S" && LN_S="ln -s"
  8422. if test -n "${ZSH_VERSION+set}"; then
  8423. setopt NO_GLOB_SUBST
  8424. fi
  8425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8426. printf %s "checking for objdir... " >&6; }
  8427. if test ${lt_cv_objdir+y}
  8428. then :
  8429. printf %s "(cached) " >&6
  8430. else $as_nop
  8431. rm -f .libs 2>/dev/null
  8432. mkdir .libs 2>/dev/null
  8433. if test -d .libs; then
  8434. lt_cv_objdir=.libs
  8435. else
  8436. # MS-DOS does not allow filenames that begin with a dot.
  8437. lt_cv_objdir=_libs
  8438. fi
  8439. rmdir .libs 2>/dev/null
  8440. fi
  8441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8442. printf "%s\n" "$lt_cv_objdir" >&6; }
  8443. objdir=$lt_cv_objdir
  8444. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8445. case $host_os in
  8446. aix3*)
  8447. # AIX sometimes has problems with the GCC collect2 program. For some
  8448. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8449. # vanish in a puff of smoke.
  8450. if test set != "${COLLECT_NAMES+set}"; then
  8451. COLLECT_NAMES=
  8452. export COLLECT_NAMES
  8453. fi
  8454. ;;
  8455. esac
  8456. # Global variables:
  8457. ofile=libtool
  8458. can_build_shared=yes
  8459. # All known linkers require a '.a' archive for static linking (except MSVC,
  8460. # which needs '.lib').
  8461. libext=a
  8462. with_gnu_ld=$lt_cv_prog_gnu_ld
  8463. old_CC=$CC
  8464. old_CFLAGS=$CFLAGS
  8465. # Set sane defaults for various variables
  8466. test -z "$CC" && CC=cc
  8467. test -z "$LTCC" && LTCC=$CC
  8468. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8469. test -z "$LD" && LD=ld
  8470. test -z "$ac_objext" && ac_objext=o
  8471. func_cc_basename $compiler
  8472. cc_basename=$func_cc_basename_result
  8473. # Only perform the check for file, if the check method requires it
  8474. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8475. case $deplibs_check_method in
  8476. file_magic*)
  8477. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8479. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8480. if test ${lt_cv_path_MAGIC_CMD+y}
  8481. then :
  8482. printf %s "(cached) " >&6
  8483. else $as_nop
  8484. case $MAGIC_CMD in
  8485. [\\/*] | ?:[\\/]*)
  8486. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8487. ;;
  8488. *)
  8489. lt_save_MAGIC_CMD=$MAGIC_CMD
  8490. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8491. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8492. for ac_dir in $ac_dummy; do
  8493. IFS=$lt_save_ifs
  8494. test -z "$ac_dir" && ac_dir=.
  8495. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8496. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8497. if test -n "$file_magic_test_file"; then
  8498. case $deplibs_check_method in
  8499. "file_magic "*)
  8500. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8501. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8502. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8503. $EGREP "$file_magic_regex" > /dev/null; then
  8504. :
  8505. else
  8506. cat <<_LT_EOF 1>&2
  8507. *** Warning: the command libtool uses to detect shared libraries,
  8508. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8509. *** The result is that libtool may fail to recognize shared libraries
  8510. *** as such. This will affect the creation of libtool libraries that
  8511. *** depend on shared libraries, but programs linked with such libtool
  8512. *** libraries will work regardless of this problem. Nevertheless, you
  8513. *** may want to report the problem to your system manager and/or to
  8514. *** [email protected]
  8515. _LT_EOF
  8516. fi ;;
  8517. esac
  8518. fi
  8519. break
  8520. fi
  8521. done
  8522. IFS=$lt_save_ifs
  8523. MAGIC_CMD=$lt_save_MAGIC_CMD
  8524. ;;
  8525. esac
  8526. fi
  8527. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8528. if test -n "$MAGIC_CMD"; then
  8529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8530. printf "%s\n" "$MAGIC_CMD" >&6; }
  8531. else
  8532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8533. printf "%s\n" "no" >&6; }
  8534. fi
  8535. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8536. if test -n "$ac_tool_prefix"; then
  8537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8538. printf %s "checking for file... " >&6; }
  8539. if test ${lt_cv_path_MAGIC_CMD+y}
  8540. then :
  8541. printf %s "(cached) " >&6
  8542. else $as_nop
  8543. case $MAGIC_CMD in
  8544. [\\/*] | ?:[\\/]*)
  8545. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8546. ;;
  8547. *)
  8548. lt_save_MAGIC_CMD=$MAGIC_CMD
  8549. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8550. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8551. for ac_dir in $ac_dummy; do
  8552. IFS=$lt_save_ifs
  8553. test -z "$ac_dir" && ac_dir=.
  8554. if test -f "$ac_dir/file"; then
  8555. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8556. if test -n "$file_magic_test_file"; then
  8557. case $deplibs_check_method in
  8558. "file_magic "*)
  8559. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8560. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8561. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8562. $EGREP "$file_magic_regex" > /dev/null; then
  8563. :
  8564. else
  8565. cat <<_LT_EOF 1>&2
  8566. *** Warning: the command libtool uses to detect shared libraries,
  8567. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8568. *** The result is that libtool may fail to recognize shared libraries
  8569. *** as such. This will affect the creation of libtool libraries that
  8570. *** depend on shared libraries, but programs linked with such libtool
  8571. *** libraries will work regardless of this problem. Nevertheless, you
  8572. *** may want to report the problem to your system manager and/or to
  8573. *** [email protected]
  8574. _LT_EOF
  8575. fi ;;
  8576. esac
  8577. fi
  8578. break
  8579. fi
  8580. done
  8581. IFS=$lt_save_ifs
  8582. MAGIC_CMD=$lt_save_MAGIC_CMD
  8583. ;;
  8584. esac
  8585. fi
  8586. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8587. if test -n "$MAGIC_CMD"; then
  8588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8589. printf "%s\n" "$MAGIC_CMD" >&6; }
  8590. else
  8591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8592. printf "%s\n" "no" >&6; }
  8593. fi
  8594. else
  8595. MAGIC_CMD=:
  8596. fi
  8597. fi
  8598. fi
  8599. ;;
  8600. esac
  8601. # Use C for the default configuration in the libtool script
  8602. lt_save_CC=$CC
  8603. ac_ext=c
  8604. ac_cpp='$CPP $CPPFLAGS'
  8605. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8606. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8607. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8608. # Source file extension for C test sources.
  8609. ac_ext=c
  8610. # Object file extension for compiled C test sources.
  8611. objext=o
  8612. objext=$objext
  8613. # Code to be used in simple compile tests
  8614. lt_simple_compile_test_code="int some_variable = 0;"
  8615. # Code to be used in simple link tests
  8616. lt_simple_link_test_code='int main(){return(0);}'
  8617. # If no C compiler was specified, use CC.
  8618. LTCC=${LTCC-"$CC"}
  8619. # If no C compiler flags were specified, use CFLAGS.
  8620. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8621. # Allow CC to be a program name with arguments.
  8622. compiler=$CC
  8623. # Save the default compiler, since it gets overwritten when the other
  8624. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8625. compiler_DEFAULT=$CC
  8626. # save warnings/boilerplate of simple test code
  8627. ac_outfile=conftest.$ac_objext
  8628. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8629. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8630. _lt_compiler_boilerplate=`cat conftest.err`
  8631. $RM conftest*
  8632. ac_outfile=conftest.$ac_objext
  8633. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8634. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8635. _lt_linker_boilerplate=`cat conftest.err`
  8636. $RM -r conftest*
  8637. ## CAVEAT EMPTOR:
  8638. ## There is no encapsulation within the following macros, do not change
  8639. ## the running order or otherwise move them around unless you know exactly
  8640. ## what you are doing...
  8641. if test -n "$compiler"; then
  8642. lt_prog_compiler_no_builtin_flag=
  8643. if test yes = "$GCC"; then
  8644. case $cc_basename in
  8645. nvcc*)
  8646. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8647. *)
  8648. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8649. esac
  8650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8651. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8652. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8653. then :
  8654. printf %s "(cached) " >&6
  8655. else $as_nop
  8656. lt_cv_prog_compiler_rtti_exceptions=no
  8657. ac_outfile=conftest.$ac_objext
  8658. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8659. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8660. # Insert the option either (1) after the last *FLAGS variable, or
  8661. # (2) before a word containing "conftest.", or (3) at the end.
  8662. # Note that $ac_compile itself does not contain backslashes and begins
  8663. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8664. # The option is referenced via a variable to avoid confusing sed.
  8665. lt_compile=`echo "$ac_compile" | $SED \
  8666. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8667. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8668. -e 's:$: $lt_compiler_flag:'`
  8669. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8670. (eval "$lt_compile" 2>conftest.err)
  8671. ac_status=$?
  8672. cat conftest.err >&5
  8673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8674. if (exit $ac_status) && test -s "$ac_outfile"; then
  8675. # The compiler can only warn and ignore the option if not recognized
  8676. # So say no if there are warnings other than the usual output.
  8677. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8678. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8679. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8680. lt_cv_prog_compiler_rtti_exceptions=yes
  8681. fi
  8682. fi
  8683. $RM conftest*
  8684. fi
  8685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8686. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8687. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8688. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8689. else
  8690. :
  8691. fi
  8692. fi
  8693. lt_prog_compiler_wl=
  8694. lt_prog_compiler_pic=
  8695. lt_prog_compiler_static=
  8696. if test yes = "$GCC"; then
  8697. lt_prog_compiler_wl='-Wl,'
  8698. lt_prog_compiler_static='-static'
  8699. case $host_os in
  8700. aix*)
  8701. # All AIX code is PIC.
  8702. if test ia64 = "$host_cpu"; then
  8703. # AIX 5 now supports IA64 processor
  8704. lt_prog_compiler_static='-Bstatic'
  8705. fi
  8706. lt_prog_compiler_pic='-fPIC'
  8707. ;;
  8708. amigaos*)
  8709. case $host_cpu in
  8710. powerpc)
  8711. # see comment about AmigaOS4 .so support
  8712. lt_prog_compiler_pic='-fPIC'
  8713. ;;
  8714. m68k)
  8715. # FIXME: we need at least 68020 code to build shared libraries, but
  8716. # adding the '-m68020' flag to GCC prevents building anything better,
  8717. # like '-m68040'.
  8718. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8719. ;;
  8720. esac
  8721. ;;
  8722. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8723. # PIC is the default for these OSes.
  8724. ;;
  8725. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8726. # This hack is so that the source file can tell whether it is being
  8727. # built for inclusion in a dll (and should export symbols for example).
  8728. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8729. # (--disable-auto-import) libraries
  8730. lt_prog_compiler_pic='-DDLL_EXPORT'
  8731. case $host_os in
  8732. os2*)
  8733. lt_prog_compiler_static='$wl-static'
  8734. ;;
  8735. esac
  8736. ;;
  8737. darwin* | rhapsody*)
  8738. # PIC is the default on this platform
  8739. # Common symbols not allowed in MH_DYLIB files
  8740. lt_prog_compiler_pic='-fno-common'
  8741. ;;
  8742. haiku*)
  8743. # PIC is the default for Haiku.
  8744. # The "-static" flag exists, but is broken.
  8745. lt_prog_compiler_static=
  8746. ;;
  8747. hpux*)
  8748. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8749. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8750. # sets the default TLS model and affects inlining.
  8751. case $host_cpu in
  8752. hppa*64*)
  8753. # +Z the default
  8754. ;;
  8755. *)
  8756. lt_prog_compiler_pic='-fPIC'
  8757. ;;
  8758. esac
  8759. ;;
  8760. interix[3-9]*)
  8761. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8762. # Instead, we relocate shared libraries at runtime.
  8763. ;;
  8764. msdosdjgpp*)
  8765. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8766. # on systems that don't support them.
  8767. lt_prog_compiler_can_build_shared=no
  8768. enable_shared=no
  8769. ;;
  8770. *nto* | *qnx*)
  8771. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8772. # it will coredump.
  8773. lt_prog_compiler_pic='-fPIC -shared'
  8774. ;;
  8775. sysv4*MP*)
  8776. if test -d /usr/nec; then
  8777. lt_prog_compiler_pic=-Kconform_pic
  8778. fi
  8779. ;;
  8780. *)
  8781. lt_prog_compiler_pic='-fPIC'
  8782. ;;
  8783. esac
  8784. case $cc_basename in
  8785. nvcc*) # Cuda Compiler Driver 2.2
  8786. lt_prog_compiler_wl='-Xlinker '
  8787. if test -n "$lt_prog_compiler_pic"; then
  8788. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8789. fi
  8790. ;;
  8791. esac
  8792. else
  8793. # PORTME Check for flag to pass linker flags through the system compiler.
  8794. case $host_os in
  8795. aix*)
  8796. lt_prog_compiler_wl='-Wl,'
  8797. if test ia64 = "$host_cpu"; then
  8798. # AIX 5 now supports IA64 processor
  8799. lt_prog_compiler_static='-Bstatic'
  8800. else
  8801. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8802. fi
  8803. ;;
  8804. darwin* | rhapsody*)
  8805. # PIC is the default on this platform
  8806. # Common symbols not allowed in MH_DYLIB files
  8807. lt_prog_compiler_pic='-fno-common'
  8808. case $cc_basename in
  8809. nagfor*)
  8810. # NAG Fortran compiler
  8811. lt_prog_compiler_wl='-Wl,-Wl,,'
  8812. lt_prog_compiler_pic='-PIC'
  8813. lt_prog_compiler_static='-Bstatic'
  8814. ;;
  8815. esac
  8816. ;;
  8817. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8818. # This hack is so that the source file can tell whether it is being
  8819. # built for inclusion in a dll (and should export symbols for example).
  8820. lt_prog_compiler_pic='-DDLL_EXPORT'
  8821. case $host_os in
  8822. os2*)
  8823. lt_prog_compiler_static='$wl-static'
  8824. ;;
  8825. esac
  8826. ;;
  8827. hpux9* | hpux10* | hpux11*)
  8828. lt_prog_compiler_wl='-Wl,'
  8829. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8830. # not for PA HP-UX.
  8831. case $host_cpu in
  8832. hppa*64*|ia64*)
  8833. # +Z the default
  8834. ;;
  8835. *)
  8836. lt_prog_compiler_pic='+Z'
  8837. ;;
  8838. esac
  8839. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8840. lt_prog_compiler_static='$wl-a ${wl}archive'
  8841. ;;
  8842. irix5* | irix6* | nonstopux*)
  8843. lt_prog_compiler_wl='-Wl,'
  8844. # PIC (with -KPIC) is the default.
  8845. lt_prog_compiler_static='-non_shared'
  8846. ;;
  8847. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8848. case $cc_basename in
  8849. # old Intel for x86_64, which still supported -KPIC.
  8850. ecc*)
  8851. lt_prog_compiler_wl='-Wl,'
  8852. lt_prog_compiler_pic='-KPIC'
  8853. lt_prog_compiler_static='-static'
  8854. ;;
  8855. # icc used to be incompatible with GCC.
  8856. # ICC 10 doesn't accept -KPIC any more.
  8857. icc* | ifort*)
  8858. lt_prog_compiler_wl='-Wl,'
  8859. lt_prog_compiler_pic='-fPIC'
  8860. lt_prog_compiler_static='-static'
  8861. ;;
  8862. # Lahey Fortran 8.1.
  8863. lf95*)
  8864. lt_prog_compiler_wl='-Wl,'
  8865. lt_prog_compiler_pic='--shared'
  8866. lt_prog_compiler_static='--static'
  8867. ;;
  8868. nagfor*)
  8869. # NAG Fortran compiler
  8870. lt_prog_compiler_wl='-Wl,-Wl,,'
  8871. lt_prog_compiler_pic='-PIC'
  8872. lt_prog_compiler_static='-Bstatic'
  8873. ;;
  8874. tcc*)
  8875. # Fabrice Bellard et al's Tiny C Compiler
  8876. lt_prog_compiler_wl='-Wl,'
  8877. lt_prog_compiler_pic='-fPIC'
  8878. lt_prog_compiler_static='-static'
  8879. ;;
  8880. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8881. # Portland Group compilers (*not* the Pentium gcc compiler,
  8882. # which looks to be a dead project)
  8883. lt_prog_compiler_wl='-Wl,'
  8884. lt_prog_compiler_pic='-fpic'
  8885. lt_prog_compiler_static='-Bstatic'
  8886. ;;
  8887. ccc*)
  8888. lt_prog_compiler_wl='-Wl,'
  8889. # All Alpha code is PIC.
  8890. lt_prog_compiler_static='-non_shared'
  8891. ;;
  8892. xl* | bgxl* | bgf* | mpixl*)
  8893. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8894. lt_prog_compiler_wl='-Wl,'
  8895. lt_prog_compiler_pic='-qpic'
  8896. lt_prog_compiler_static='-qstaticlink'
  8897. ;;
  8898. *)
  8899. case `$CC -V 2>&1 | sed 5q` in
  8900. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8901. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8902. lt_prog_compiler_pic='-KPIC'
  8903. lt_prog_compiler_static='-Bstatic'
  8904. lt_prog_compiler_wl=''
  8905. ;;
  8906. *Sun\ F* | *Sun*Fortran*)
  8907. lt_prog_compiler_pic='-KPIC'
  8908. lt_prog_compiler_static='-Bstatic'
  8909. lt_prog_compiler_wl='-Qoption ld '
  8910. ;;
  8911. *Sun\ C*)
  8912. # Sun C 5.9
  8913. lt_prog_compiler_pic='-KPIC'
  8914. lt_prog_compiler_static='-Bstatic'
  8915. lt_prog_compiler_wl='-Wl,'
  8916. ;;
  8917. *Intel*\ [CF]*Compiler*)
  8918. lt_prog_compiler_wl='-Wl,'
  8919. lt_prog_compiler_pic='-fPIC'
  8920. lt_prog_compiler_static='-static'
  8921. ;;
  8922. *Portland\ Group*)
  8923. lt_prog_compiler_wl='-Wl,'
  8924. lt_prog_compiler_pic='-fpic'
  8925. lt_prog_compiler_static='-Bstatic'
  8926. ;;
  8927. esac
  8928. ;;
  8929. esac
  8930. ;;
  8931. newsos6)
  8932. lt_prog_compiler_pic='-KPIC'
  8933. lt_prog_compiler_static='-Bstatic'
  8934. ;;
  8935. *nto* | *qnx*)
  8936. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8937. # it will coredump.
  8938. lt_prog_compiler_pic='-fPIC -shared'
  8939. ;;
  8940. osf3* | osf4* | osf5*)
  8941. lt_prog_compiler_wl='-Wl,'
  8942. # All OSF/1 code is PIC.
  8943. lt_prog_compiler_static='-non_shared'
  8944. ;;
  8945. rdos*)
  8946. lt_prog_compiler_static='-non_shared'
  8947. ;;
  8948. solaris*)
  8949. lt_prog_compiler_pic='-KPIC'
  8950. lt_prog_compiler_static='-Bstatic'
  8951. case $cc_basename in
  8952. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8953. lt_prog_compiler_wl='-Qoption ld ';;
  8954. *)
  8955. lt_prog_compiler_wl='-Wl,';;
  8956. esac
  8957. ;;
  8958. sunos4*)
  8959. lt_prog_compiler_wl='-Qoption ld '
  8960. lt_prog_compiler_pic='-PIC'
  8961. lt_prog_compiler_static='-Bstatic'
  8962. ;;
  8963. sysv4 | sysv4.2uw2* | sysv4.3*)
  8964. lt_prog_compiler_wl='-Wl,'
  8965. lt_prog_compiler_pic='-KPIC'
  8966. lt_prog_compiler_static='-Bstatic'
  8967. ;;
  8968. sysv4*MP*)
  8969. if test -d /usr/nec; then
  8970. lt_prog_compiler_pic='-Kconform_pic'
  8971. lt_prog_compiler_static='-Bstatic'
  8972. fi
  8973. ;;
  8974. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8975. lt_prog_compiler_wl='-Wl,'
  8976. lt_prog_compiler_pic='-KPIC'
  8977. lt_prog_compiler_static='-Bstatic'
  8978. ;;
  8979. unicos*)
  8980. lt_prog_compiler_wl='-Wl,'
  8981. lt_prog_compiler_can_build_shared=no
  8982. ;;
  8983. uts4*)
  8984. lt_prog_compiler_pic='-pic'
  8985. lt_prog_compiler_static='-Bstatic'
  8986. ;;
  8987. *)
  8988. lt_prog_compiler_can_build_shared=no
  8989. ;;
  8990. esac
  8991. fi
  8992. case $host_os in
  8993. # For platforms that do not support PIC, -DPIC is meaningless:
  8994. *djgpp*)
  8995. lt_prog_compiler_pic=
  8996. ;;
  8997. *)
  8998. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8999. ;;
  9000. esac
  9001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9002. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9003. if test ${lt_cv_prog_compiler_pic+y}
  9004. then :
  9005. printf %s "(cached) " >&6
  9006. else $as_nop
  9007. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9008. fi
  9009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9010. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9011. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9012. #
  9013. # Check to make sure the PIC flag actually works.
  9014. #
  9015. if test -n "$lt_prog_compiler_pic"; then
  9016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9017. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9018. if test ${lt_cv_prog_compiler_pic_works+y}
  9019. then :
  9020. printf %s "(cached) " >&6
  9021. else $as_nop
  9022. lt_cv_prog_compiler_pic_works=no
  9023. ac_outfile=conftest.$ac_objext
  9024. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9025. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9026. # Insert the option either (1) after the last *FLAGS variable, or
  9027. # (2) before a word containing "conftest.", or (3) at the end.
  9028. # Note that $ac_compile itself does not contain backslashes and begins
  9029. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9030. # The option is referenced via a variable to avoid confusing sed.
  9031. lt_compile=`echo "$ac_compile" | $SED \
  9032. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9033. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9034. -e 's:$: $lt_compiler_flag:'`
  9035. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9036. (eval "$lt_compile" 2>conftest.err)
  9037. ac_status=$?
  9038. cat conftest.err >&5
  9039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9040. if (exit $ac_status) && test -s "$ac_outfile"; then
  9041. # The compiler can only warn and ignore the option if not recognized
  9042. # So say no if there are warnings other than the usual output.
  9043. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9044. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9045. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9046. lt_cv_prog_compiler_pic_works=yes
  9047. fi
  9048. fi
  9049. $RM conftest*
  9050. fi
  9051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9052. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9053. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9054. case $lt_prog_compiler_pic in
  9055. "" | " "*) ;;
  9056. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9057. esac
  9058. else
  9059. lt_prog_compiler_pic=
  9060. lt_prog_compiler_can_build_shared=no
  9061. fi
  9062. fi
  9063. #
  9064. # Check to make sure the static flag actually works.
  9065. #
  9066. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9068. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9069. if test ${lt_cv_prog_compiler_static_works+y}
  9070. then :
  9071. printf %s "(cached) " >&6
  9072. else $as_nop
  9073. lt_cv_prog_compiler_static_works=no
  9074. save_LDFLAGS=$LDFLAGS
  9075. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9076. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9077. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9078. # The linker can only warn and ignore the option if not recognized
  9079. # So say no if there are warnings
  9080. if test -s conftest.err; then
  9081. # Append any errors to the config.log.
  9082. cat conftest.err 1>&5
  9083. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9084. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9085. if diff conftest.exp conftest.er2 >/dev/null; then
  9086. lt_cv_prog_compiler_static_works=yes
  9087. fi
  9088. else
  9089. lt_cv_prog_compiler_static_works=yes
  9090. fi
  9091. fi
  9092. $RM -r conftest*
  9093. LDFLAGS=$save_LDFLAGS
  9094. fi
  9095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9096. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9097. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9098. :
  9099. else
  9100. lt_prog_compiler_static=
  9101. fi
  9102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9103. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9104. if test ${lt_cv_prog_compiler_c_o+y}
  9105. then :
  9106. printf %s "(cached) " >&6
  9107. else $as_nop
  9108. lt_cv_prog_compiler_c_o=no
  9109. $RM -r conftest 2>/dev/null
  9110. mkdir conftest
  9111. cd conftest
  9112. mkdir out
  9113. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9114. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9115. # Insert the option either (1) after the last *FLAGS variable, or
  9116. # (2) before a word containing "conftest.", or (3) at the end.
  9117. # Note that $ac_compile itself does not contain backslashes and begins
  9118. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9119. lt_compile=`echo "$ac_compile" | $SED \
  9120. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9121. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9122. -e 's:$: $lt_compiler_flag:'`
  9123. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9124. (eval "$lt_compile" 2>out/conftest.err)
  9125. ac_status=$?
  9126. cat out/conftest.err >&5
  9127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9128. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9129. then
  9130. # The compiler can only warn and ignore the option if not recognized
  9131. # So say no if there are warnings
  9132. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9133. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9134. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9135. lt_cv_prog_compiler_c_o=yes
  9136. fi
  9137. fi
  9138. chmod u+w . 2>&5
  9139. $RM conftest*
  9140. # SGI C++ compiler will create directory out/ii_files/ for
  9141. # template instantiation
  9142. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9143. $RM out/* && rmdir out
  9144. cd ..
  9145. $RM -r conftest
  9146. $RM conftest*
  9147. fi
  9148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9149. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9151. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9152. if test ${lt_cv_prog_compiler_c_o+y}
  9153. then :
  9154. printf %s "(cached) " >&6
  9155. else $as_nop
  9156. lt_cv_prog_compiler_c_o=no
  9157. $RM -r conftest 2>/dev/null
  9158. mkdir conftest
  9159. cd conftest
  9160. mkdir out
  9161. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9162. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9163. # Insert the option either (1) after the last *FLAGS variable, or
  9164. # (2) before a word containing "conftest.", or (3) at the end.
  9165. # Note that $ac_compile itself does not contain backslashes and begins
  9166. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9167. lt_compile=`echo "$ac_compile" | $SED \
  9168. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9169. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9170. -e 's:$: $lt_compiler_flag:'`
  9171. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9172. (eval "$lt_compile" 2>out/conftest.err)
  9173. ac_status=$?
  9174. cat out/conftest.err >&5
  9175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9176. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9177. then
  9178. # The compiler can only warn and ignore the option if not recognized
  9179. # So say no if there are warnings
  9180. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9181. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9182. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9183. lt_cv_prog_compiler_c_o=yes
  9184. fi
  9185. fi
  9186. chmod u+w . 2>&5
  9187. $RM conftest*
  9188. # SGI C++ compiler will create directory out/ii_files/ for
  9189. # template instantiation
  9190. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9191. $RM out/* && rmdir out
  9192. cd ..
  9193. $RM -r conftest
  9194. $RM conftest*
  9195. fi
  9196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9197. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9198. hard_links=nottested
  9199. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9200. # do not overwrite the value of need_locks provided by the user
  9201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9202. printf %s "checking if we can lock with hard links... " >&6; }
  9203. hard_links=yes
  9204. $RM conftest*
  9205. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9206. touch conftest.a
  9207. ln conftest.a conftest.b 2>&5 || hard_links=no
  9208. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9210. printf "%s\n" "$hard_links" >&6; }
  9211. if test no = "$hard_links"; then
  9212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9213. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9214. need_locks=warn
  9215. fi
  9216. else
  9217. need_locks=no
  9218. fi
  9219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9220. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9221. runpath_var=
  9222. allow_undefined_flag=
  9223. always_export_symbols=no
  9224. archive_cmds=
  9225. archive_expsym_cmds=
  9226. compiler_needs_object=no
  9227. enable_shared_with_static_runtimes=no
  9228. export_dynamic_flag_spec=
  9229. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9230. hardcode_automatic=no
  9231. hardcode_direct=no
  9232. hardcode_direct_absolute=no
  9233. hardcode_libdir_flag_spec=
  9234. hardcode_libdir_separator=
  9235. hardcode_minus_L=no
  9236. hardcode_shlibpath_var=unsupported
  9237. inherit_rpath=no
  9238. link_all_deplibs=unknown
  9239. module_cmds=
  9240. module_expsym_cmds=
  9241. old_archive_from_new_cmds=
  9242. old_archive_from_expsyms_cmds=
  9243. thread_safe_flag_spec=
  9244. whole_archive_flag_spec=
  9245. # include_expsyms should be a list of space-separated symbols to be *always*
  9246. # included in the symbol list
  9247. include_expsyms=
  9248. # exclude_expsyms can be an extended regexp of symbols to exclude
  9249. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9250. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9251. # as well as any symbol that contains 'd'.
  9252. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9253. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9254. # platforms (ab)use it in PIC code, but their linkers get confused if
  9255. # the symbol is explicitly referenced. Since portable code cannot
  9256. # rely on this symbol name, it's probably fine to never include it in
  9257. # preloaded symbol tables.
  9258. # Exclude shared library initialization/finalization symbols.
  9259. extract_expsyms_cmds=
  9260. case $host_os in
  9261. cygwin* | mingw* | pw32* | cegcc*)
  9262. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9263. # When not using gcc, we currently assume that we are using
  9264. # Microsoft Visual C++.
  9265. if test yes != "$GCC"; then
  9266. with_gnu_ld=no
  9267. fi
  9268. ;;
  9269. interix*)
  9270. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9271. with_gnu_ld=yes
  9272. ;;
  9273. openbsd* | bitrig*)
  9274. with_gnu_ld=no
  9275. ;;
  9276. esac
  9277. ld_shlibs=yes
  9278. # On some targets, GNU ld is compatible enough with the native linker
  9279. # that we're better off using the native interface for both.
  9280. lt_use_gnu_ld_interface=no
  9281. if test yes = "$with_gnu_ld"; then
  9282. case $host_os in
  9283. aix*)
  9284. # The AIX port of GNU ld has always aspired to compatibility
  9285. # with the native linker. However, as the warning in the GNU ld
  9286. # block says, versions before 2.19.5* couldn't really create working
  9287. # shared libraries, regardless of the interface used.
  9288. case `$LD -v 2>&1` in
  9289. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9290. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9291. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9292. *)
  9293. lt_use_gnu_ld_interface=yes
  9294. ;;
  9295. esac
  9296. ;;
  9297. *)
  9298. lt_use_gnu_ld_interface=yes
  9299. ;;
  9300. esac
  9301. fi
  9302. if test yes = "$lt_use_gnu_ld_interface"; then
  9303. # If archive_cmds runs LD, not CC, wlarc should be empty
  9304. wlarc='$wl'
  9305. # Set some defaults for GNU ld with shared library support. These
  9306. # are reset later if shared libraries are not supported. Putting them
  9307. # here allows them to be overridden if necessary.
  9308. runpath_var=LD_RUN_PATH
  9309. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9310. export_dynamic_flag_spec='$wl--export-dynamic'
  9311. # ancient GNU ld didn't support --whole-archive et. al.
  9312. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9313. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9314. else
  9315. whole_archive_flag_spec=
  9316. fi
  9317. supports_anon_versioning=no
  9318. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9319. *GNU\ gold*) supports_anon_versioning=yes ;;
  9320. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9321. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9322. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9323. *\ 2.11.*) ;; # other 2.11 versions
  9324. *) supports_anon_versioning=yes ;;
  9325. esac
  9326. # See if GNU ld supports shared libraries.
  9327. case $host_os in
  9328. aix[3-9]*)
  9329. # On AIX/PPC, the GNU linker is very broken
  9330. if test ia64 != "$host_cpu"; then
  9331. ld_shlibs=no
  9332. cat <<_LT_EOF 1>&2
  9333. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9334. *** to be unable to reliably create shared libraries on AIX.
  9335. *** Therefore, libtool is disabling shared libraries support. If you
  9336. *** really care for shared libraries, you may want to install binutils
  9337. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9338. *** You will then need to restart the configuration process.
  9339. _LT_EOF
  9340. fi
  9341. ;;
  9342. amigaos*)
  9343. case $host_cpu in
  9344. powerpc)
  9345. # see comment about AmigaOS4 .so support
  9346. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9347. archive_expsym_cmds=''
  9348. ;;
  9349. m68k)
  9350. 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)'
  9351. hardcode_libdir_flag_spec='-L$libdir'
  9352. hardcode_minus_L=yes
  9353. ;;
  9354. esac
  9355. ;;
  9356. beos*)
  9357. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9358. allow_undefined_flag=unsupported
  9359. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9360. # support --undefined. This deserves some investigation. FIXME
  9361. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9362. else
  9363. ld_shlibs=no
  9364. fi
  9365. ;;
  9366. cygwin* | mingw* | pw32* | cegcc*)
  9367. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9368. # as there is no search path for DLLs.
  9369. hardcode_libdir_flag_spec='-L$libdir'
  9370. export_dynamic_flag_spec='$wl--export-all-symbols'
  9371. allow_undefined_flag=unsupported
  9372. always_export_symbols=no
  9373. enable_shared_with_static_runtimes=yes
  9374. 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'
  9375. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9376. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9377. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9378. # If the export-symbols file already is a .def file, use it as
  9379. # is; otherwise, prepend EXPORTS...
  9380. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9381. cp $export_symbols $output_objdir/$soname.def;
  9382. else
  9383. echo EXPORTS > $output_objdir/$soname.def;
  9384. cat $export_symbols >> $output_objdir/$soname.def;
  9385. fi~
  9386. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9387. else
  9388. ld_shlibs=no
  9389. fi
  9390. ;;
  9391. haiku*)
  9392. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9393. link_all_deplibs=yes
  9394. ;;
  9395. os2*)
  9396. hardcode_libdir_flag_spec='-L$libdir'
  9397. hardcode_minus_L=yes
  9398. allow_undefined_flag=unsupported
  9399. shrext_cmds=.dll
  9400. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9401. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9402. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9403. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9404. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9405. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9406. emximp -o $lib $output_objdir/$libname.def'
  9407. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9408. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9409. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9410. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9411. prefix_cmds="$SED"~
  9412. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9413. prefix_cmds="$prefix_cmds -e 1d";
  9414. fi~
  9415. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9416. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9417. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9418. emximp -o $lib $output_objdir/$libname.def'
  9419. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9420. enable_shared_with_static_runtimes=yes
  9421. ;;
  9422. interix[3-9]*)
  9423. hardcode_direct=no
  9424. hardcode_shlibpath_var=no
  9425. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9426. export_dynamic_flag_spec='$wl-E'
  9427. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9428. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9429. # default) and relocated if they conflict, which is a slow very memory
  9430. # consuming and fragmenting process. To avoid this, we pick a random,
  9431. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9432. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9433. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9434. 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'
  9435. ;;
  9436. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9437. tmp_diet=no
  9438. if test linux-dietlibc = "$host_os"; then
  9439. case $cc_basename in
  9440. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9441. esac
  9442. fi
  9443. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9444. && test no = "$tmp_diet"
  9445. then
  9446. tmp_addflag=' $pic_flag'
  9447. tmp_sharedflag='-shared'
  9448. case $cc_basename,$host_cpu in
  9449. pgcc*) # Portland Group C compiler
  9450. 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'
  9451. tmp_addflag=' $pic_flag'
  9452. ;;
  9453. pgf77* | pgf90* | pgf95* | pgfortran*)
  9454. # Portland Group f77 and f90 compilers
  9455. 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'
  9456. tmp_addflag=' $pic_flag -Mnomain' ;;
  9457. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9458. tmp_addflag=' -i_dynamic' ;;
  9459. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9460. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9461. ifc* | ifort*) # Intel Fortran compiler
  9462. tmp_addflag=' -nofor_main' ;;
  9463. lf95*) # Lahey Fortran 8.1
  9464. whole_archive_flag_spec=
  9465. tmp_sharedflag='--shared' ;;
  9466. nagfor*) # NAGFOR 5.3
  9467. tmp_sharedflag='-Wl,-shared' ;;
  9468. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9469. tmp_sharedflag='-qmkshrobj'
  9470. tmp_addflag= ;;
  9471. nvcc*) # Cuda Compiler Driver 2.2
  9472. 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'
  9473. compiler_needs_object=yes
  9474. ;;
  9475. esac
  9476. case `$CC -V 2>&1 | sed 5q` in
  9477. *Sun\ C*) # Sun C 5.9
  9478. 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'
  9479. compiler_needs_object=yes
  9480. tmp_sharedflag='-G' ;;
  9481. *Sun\ F*) # Sun Fortran 8.3
  9482. tmp_sharedflag='-G' ;;
  9483. esac
  9484. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9485. if test yes = "$supports_anon_versioning"; then
  9486. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9487. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9488. echo "local: *; };" >> $output_objdir/$libname.ver~
  9489. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9490. fi
  9491. case $cc_basename in
  9492. tcc*)
  9493. export_dynamic_flag_spec='-rdynamic'
  9494. ;;
  9495. xlf* | bgf* | bgxlf* | mpixlf*)
  9496. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9497. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9498. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9499. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9500. if test yes = "$supports_anon_versioning"; then
  9501. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9502. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9503. echo "local: *; };" >> $output_objdir/$libname.ver~
  9504. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9505. fi
  9506. ;;
  9507. esac
  9508. else
  9509. ld_shlibs=no
  9510. fi
  9511. ;;
  9512. netbsd*)
  9513. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9514. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9515. wlarc=
  9516. else
  9517. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9518. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9519. fi
  9520. ;;
  9521. solaris*)
  9522. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9523. ld_shlibs=no
  9524. cat <<_LT_EOF 1>&2
  9525. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9526. *** create shared libraries on Solaris systems. Therefore, libtool
  9527. *** is disabling shared libraries support. We urge you to upgrade GNU
  9528. *** binutils to release 2.9.1 or newer. Another option is to modify
  9529. *** your PATH or compiler configuration so that the native linker is
  9530. *** used, and then restart.
  9531. _LT_EOF
  9532. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9533. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9534. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9535. else
  9536. ld_shlibs=no
  9537. fi
  9538. ;;
  9539. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9540. case `$LD -v 2>&1` in
  9541. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9542. ld_shlibs=no
  9543. cat <<_LT_EOF 1>&2
  9544. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9545. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9546. *** is disabling shared libraries support. We urge you to upgrade GNU
  9547. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9548. *** your PATH or compiler configuration so that the native linker is
  9549. *** used, and then restart.
  9550. _LT_EOF
  9551. ;;
  9552. *)
  9553. # For security reasons, it is highly recommended that you always
  9554. # use absolute paths for naming shared libraries, and exclude the
  9555. # DT_RUNPATH tag from executables and libraries. But doing so
  9556. # requires that you compile everything twice, which is a pain.
  9557. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9558. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9559. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9560. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9561. else
  9562. ld_shlibs=no
  9563. fi
  9564. ;;
  9565. esac
  9566. ;;
  9567. sunos4*)
  9568. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9569. wlarc=
  9570. hardcode_direct=yes
  9571. hardcode_shlibpath_var=no
  9572. ;;
  9573. *)
  9574. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9575. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9576. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9577. else
  9578. ld_shlibs=no
  9579. fi
  9580. ;;
  9581. esac
  9582. if test no = "$ld_shlibs"; then
  9583. runpath_var=
  9584. hardcode_libdir_flag_spec=
  9585. export_dynamic_flag_spec=
  9586. whole_archive_flag_spec=
  9587. fi
  9588. else
  9589. # PORTME fill in a description of your system's linker (not GNU ld)
  9590. case $host_os in
  9591. aix3*)
  9592. allow_undefined_flag=unsupported
  9593. always_export_symbols=yes
  9594. 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'
  9595. # Note: this linker hardcodes the directories in LIBPATH if there
  9596. # are no directories specified by -L.
  9597. hardcode_minus_L=yes
  9598. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9599. # Neither direct hardcoding nor static linking is supported with a
  9600. # broken collect2.
  9601. hardcode_direct=unsupported
  9602. fi
  9603. ;;
  9604. aix[4-9]*)
  9605. if test ia64 = "$host_cpu"; then
  9606. # On IA64, the linker does run time linking by default, so we don't
  9607. # have to do anything special.
  9608. aix_use_runtimelinking=no
  9609. exp_sym_flag='-Bexport'
  9610. no_entry_flag=
  9611. else
  9612. # If we're using GNU nm, then we don't want the "-C" option.
  9613. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9614. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9615. # weak defined symbols like other global defined symbols, whereas
  9616. # GNU nm marks them as "W".
  9617. # While the 'weak' keyword is ignored in the Export File, we need
  9618. # it in the Import File for the 'aix-soname' feature, so we have
  9619. # to replace the "-B" option with "-P" for AIX nm.
  9620. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9621. 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'
  9622. else
  9623. 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'
  9624. fi
  9625. aix_use_runtimelinking=no
  9626. # Test if we are trying to use run time linking or normal
  9627. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9628. # have runtime linking enabled, and use it for executables.
  9629. # For shared libraries, we enable/disable runtime linking
  9630. # depending on the kind of the shared library created -
  9631. # when "with_aix_soname,aix_use_runtimelinking" is:
  9632. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9633. # "aix,yes" lib.so shared, rtl:yes, for executables
  9634. # lib.a static archive
  9635. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9636. # lib.a(lib.so.V) shared, rtl:no, for executables
  9637. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9638. # lib.a(lib.so.V) shared, rtl:no
  9639. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9640. # lib.a static archive
  9641. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9642. for ld_flag in $LDFLAGS; do
  9643. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9644. aix_use_runtimelinking=yes
  9645. break
  9646. fi
  9647. done
  9648. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9649. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9650. # so we don't have lib.a shared libs to link our executables.
  9651. # We have to force runtime linking in this case.
  9652. aix_use_runtimelinking=yes
  9653. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9654. fi
  9655. ;;
  9656. esac
  9657. exp_sym_flag='-bexport'
  9658. no_entry_flag='-bnoentry'
  9659. fi
  9660. # When large executables or shared objects are built, AIX ld can
  9661. # have problems creating the table of contents. If linking a library
  9662. # or program results in "error TOC overflow" add -mminimal-toc to
  9663. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9664. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9665. archive_cmds=''
  9666. hardcode_direct=yes
  9667. hardcode_direct_absolute=yes
  9668. hardcode_libdir_separator=':'
  9669. link_all_deplibs=yes
  9670. file_list_spec='$wl-f,'
  9671. case $with_aix_soname,$aix_use_runtimelinking in
  9672. aix,*) ;; # traditional, no import file
  9673. svr4,* | *,yes) # use import file
  9674. # The Import File defines what to hardcode.
  9675. hardcode_direct=no
  9676. hardcode_direct_absolute=no
  9677. ;;
  9678. esac
  9679. if test yes = "$GCC"; then
  9680. case $host_os in aix4.[012]|aix4.[012].*)
  9681. # We only want to do this on AIX 4.2 and lower, the check
  9682. # below for broken collect2 doesn't work under 4.3+
  9683. collect2name=`$CC -print-prog-name=collect2`
  9684. if test -f "$collect2name" &&
  9685. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9686. then
  9687. # We have reworked collect2
  9688. :
  9689. else
  9690. # We have old collect2
  9691. hardcode_direct=unsupported
  9692. # It fails to find uninstalled libraries when the uninstalled
  9693. # path is not listed in the libpath. Setting hardcode_minus_L
  9694. # to unsupported forces relinking
  9695. hardcode_minus_L=yes
  9696. hardcode_libdir_flag_spec='-L$libdir'
  9697. hardcode_libdir_separator=
  9698. fi
  9699. ;;
  9700. esac
  9701. shared_flag='-shared'
  9702. if test yes = "$aix_use_runtimelinking"; then
  9703. shared_flag="$shared_flag "'$wl-G'
  9704. fi
  9705. # Need to ensure runtime linking is disabled for the traditional
  9706. # shared library, or the linker may eventually find shared libraries
  9707. # /with/ Import File - we do not want to mix them.
  9708. shared_flag_aix='-shared'
  9709. shared_flag_svr4='-shared $wl-G'
  9710. else
  9711. # not using gcc
  9712. if test ia64 = "$host_cpu"; then
  9713. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9714. # chokes on -Wl,-G. The following line is correct:
  9715. shared_flag='-G'
  9716. else
  9717. if test yes = "$aix_use_runtimelinking"; then
  9718. shared_flag='$wl-G'
  9719. else
  9720. shared_flag='$wl-bM:SRE'
  9721. fi
  9722. shared_flag_aix='$wl-bM:SRE'
  9723. shared_flag_svr4='$wl-G'
  9724. fi
  9725. fi
  9726. export_dynamic_flag_spec='$wl-bexpall'
  9727. # It seems that -bexpall does not export symbols beginning with
  9728. # underscore (_), so it is better to generate a list of symbols to export.
  9729. always_export_symbols=yes
  9730. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9731. # Warning - without using the other runtime loading flags (-brtl),
  9732. # -berok will link without error, but may produce a broken library.
  9733. allow_undefined_flag='-berok'
  9734. # Determine the default libpath from the value encoded in an
  9735. # empty executable.
  9736. if test set = "${lt_cv_aix_libpath+set}"; then
  9737. aix_libpath=$lt_cv_aix_libpath
  9738. else
  9739. if test ${lt_cv_aix_libpath_+y}
  9740. then :
  9741. printf %s "(cached) " >&6
  9742. else $as_nop
  9743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9744. /* end confdefs.h. */
  9745. int
  9746. main (void)
  9747. {
  9748. ;
  9749. return 0;
  9750. }
  9751. _ACEOF
  9752. if ac_fn_c_try_link "$LINENO"
  9753. then :
  9754. lt_aix_libpath_sed='
  9755. /Import File Strings/,/^$/ {
  9756. /^0/ {
  9757. s/^0 *\([^ ]*\) *$/\1/
  9758. p
  9759. }
  9760. }'
  9761. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9762. # Check for a 64-bit object if we didn't find anything.
  9763. if test -z "$lt_cv_aix_libpath_"; then
  9764. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9765. fi
  9766. fi
  9767. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9768. conftest$ac_exeext conftest.$ac_ext
  9769. if test -z "$lt_cv_aix_libpath_"; then
  9770. lt_cv_aix_libpath_=/usr/lib:/lib
  9771. fi
  9772. fi
  9773. aix_libpath=$lt_cv_aix_libpath_
  9774. fi
  9775. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9776. 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
  9777. else
  9778. if test ia64 = "$host_cpu"; then
  9779. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9780. allow_undefined_flag="-z nodefs"
  9781. 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"
  9782. else
  9783. # Determine the default libpath from the value encoded in an
  9784. # empty executable.
  9785. if test set = "${lt_cv_aix_libpath+set}"; then
  9786. aix_libpath=$lt_cv_aix_libpath
  9787. else
  9788. if test ${lt_cv_aix_libpath_+y}
  9789. then :
  9790. printf %s "(cached) " >&6
  9791. else $as_nop
  9792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9793. /* end confdefs.h. */
  9794. int
  9795. main (void)
  9796. {
  9797. ;
  9798. return 0;
  9799. }
  9800. _ACEOF
  9801. if ac_fn_c_try_link "$LINENO"
  9802. then :
  9803. lt_aix_libpath_sed='
  9804. /Import File Strings/,/^$/ {
  9805. /^0/ {
  9806. s/^0 *\([^ ]*\) *$/\1/
  9807. p
  9808. }
  9809. }'
  9810. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9811. # Check for a 64-bit object if we didn't find anything.
  9812. if test -z "$lt_cv_aix_libpath_"; then
  9813. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9814. fi
  9815. fi
  9816. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9817. conftest$ac_exeext conftest.$ac_ext
  9818. if test -z "$lt_cv_aix_libpath_"; then
  9819. lt_cv_aix_libpath_=/usr/lib:/lib
  9820. fi
  9821. fi
  9822. aix_libpath=$lt_cv_aix_libpath_
  9823. fi
  9824. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9825. # Warning - without using the other run time loading flags,
  9826. # -berok will link without error, but may produce a broken library.
  9827. no_undefined_flag=' $wl-bernotok'
  9828. allow_undefined_flag=' $wl-berok'
  9829. if test yes = "$with_gnu_ld"; then
  9830. # We only use this code for GNU lds that support --whole-archive.
  9831. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9832. else
  9833. # Exported symbols can be pulled into shared objects from archives
  9834. whole_archive_flag_spec='$convenience'
  9835. fi
  9836. archive_cmds_need_lc=yes
  9837. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9838. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9839. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9840. if test svr4 != "$with_aix_soname"; then
  9841. # This is similar to how AIX traditionally builds its shared libraries.
  9842. 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'
  9843. fi
  9844. if test aix != "$with_aix_soname"; then
  9845. 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'
  9846. else
  9847. # used by -dlpreopen to get the symbols
  9848. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9849. fi
  9850. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9851. fi
  9852. fi
  9853. ;;
  9854. amigaos*)
  9855. case $host_cpu in
  9856. powerpc)
  9857. # see comment about AmigaOS4 .so support
  9858. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9859. archive_expsym_cmds=''
  9860. ;;
  9861. m68k)
  9862. 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)'
  9863. hardcode_libdir_flag_spec='-L$libdir'
  9864. hardcode_minus_L=yes
  9865. ;;
  9866. esac
  9867. ;;
  9868. bsdi[45]*)
  9869. export_dynamic_flag_spec=-rdynamic
  9870. ;;
  9871. cygwin* | mingw* | pw32* | cegcc*)
  9872. # When not using gcc, we currently assume that we are using
  9873. # Microsoft Visual C++.
  9874. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9875. # no search path for DLLs.
  9876. case $cc_basename in
  9877. cl*)
  9878. # Native MSVC
  9879. hardcode_libdir_flag_spec=' '
  9880. allow_undefined_flag=unsupported
  9881. always_export_symbols=yes
  9882. file_list_spec='@'
  9883. # Tell ltmain to make .lib files, not .a files.
  9884. libext=lib
  9885. # Tell ltmain to make .dll files, not .so files.
  9886. shrext_cmds=.dll
  9887. # FIXME: Setting linknames here is a bad hack.
  9888. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9889. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9890. cp "$export_symbols" "$output_objdir/$soname.def";
  9891. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9892. else
  9893. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9894. fi~
  9895. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9896. linknames='
  9897. # The linker will not automatically build a static lib if we build a DLL.
  9898. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9899. enable_shared_with_static_runtimes=yes
  9900. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9901. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9902. # Don't use ranlib
  9903. old_postinstall_cmds='chmod 644 $oldlib'
  9904. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9905. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9906. case $lt_outputfile in
  9907. *.exe|*.EXE) ;;
  9908. *)
  9909. lt_outputfile=$lt_outputfile.exe
  9910. lt_tool_outputfile=$lt_tool_outputfile.exe
  9911. ;;
  9912. esac~
  9913. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9914. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9915. $RM "$lt_outputfile.manifest";
  9916. fi'
  9917. ;;
  9918. *)
  9919. # Assume MSVC wrapper
  9920. hardcode_libdir_flag_spec=' '
  9921. allow_undefined_flag=unsupported
  9922. # Tell ltmain to make .lib files, not .a files.
  9923. libext=lib
  9924. # Tell ltmain to make .dll files, not .so files.
  9925. shrext_cmds=.dll
  9926. # FIXME: Setting linknames here is a bad hack.
  9927. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9928. # The linker will automatically build a .lib file if we build a DLL.
  9929. old_archive_from_new_cmds='true'
  9930. # FIXME: Should let the user specify the lib program.
  9931. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9932. enable_shared_with_static_runtimes=yes
  9933. ;;
  9934. esac
  9935. ;;
  9936. darwin* | rhapsody*)
  9937. archive_cmds_need_lc=no
  9938. hardcode_direct=no
  9939. hardcode_automatic=yes
  9940. hardcode_shlibpath_var=unsupported
  9941. if test yes = "$lt_cv_ld_force_load"; then
  9942. 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\"`'
  9943. else
  9944. whole_archive_flag_spec=''
  9945. fi
  9946. link_all_deplibs=yes
  9947. allow_undefined_flag=$_lt_dar_allow_undefined
  9948. case $cc_basename in
  9949. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9950. *) _lt_dar_can_shared=$GCC ;;
  9951. esac
  9952. if test yes = "$_lt_dar_can_shared"; then
  9953. output_verbose_link_cmd=func_echo_all
  9954. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9955. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9956. 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"
  9957. 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"
  9958. else
  9959. ld_shlibs=no
  9960. fi
  9961. ;;
  9962. dgux*)
  9963. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9964. hardcode_libdir_flag_spec='-L$libdir'
  9965. hardcode_shlibpath_var=no
  9966. ;;
  9967. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9968. # support. Future versions do this automatically, but an explicit c++rt0.o
  9969. # does not break anything, and helps significantly (at the cost of a little
  9970. # extra space).
  9971. freebsd2.2*)
  9972. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9973. hardcode_libdir_flag_spec='-R$libdir'
  9974. hardcode_direct=yes
  9975. hardcode_shlibpath_var=no
  9976. ;;
  9977. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9978. freebsd2.*)
  9979. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9980. hardcode_direct=yes
  9981. hardcode_minus_L=yes
  9982. hardcode_shlibpath_var=no
  9983. ;;
  9984. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9985. freebsd* | dragonfly*)
  9986. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9987. hardcode_libdir_flag_spec='-R$libdir'
  9988. hardcode_direct=yes
  9989. hardcode_shlibpath_var=no
  9990. ;;
  9991. hpux9*)
  9992. if test yes = "$GCC"; then
  9993. 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'
  9994. else
  9995. 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'
  9996. fi
  9997. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9998. hardcode_libdir_separator=:
  9999. hardcode_direct=yes
  10000. # hardcode_minus_L: Not really in the search PATH,
  10001. # but as the default location of the library.
  10002. hardcode_minus_L=yes
  10003. export_dynamic_flag_spec='$wl-E'
  10004. ;;
  10005. hpux10*)
  10006. if test yes,no = "$GCC,$with_gnu_ld"; then
  10007. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10008. else
  10009. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10010. fi
  10011. if test no = "$with_gnu_ld"; then
  10012. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10013. hardcode_libdir_separator=:
  10014. hardcode_direct=yes
  10015. hardcode_direct_absolute=yes
  10016. export_dynamic_flag_spec='$wl-E'
  10017. # hardcode_minus_L: Not really in the search PATH,
  10018. # but as the default location of the library.
  10019. hardcode_minus_L=yes
  10020. fi
  10021. ;;
  10022. hpux11*)
  10023. if test yes,no = "$GCC,$with_gnu_ld"; then
  10024. case $host_cpu in
  10025. hppa*64*)
  10026. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10027. ;;
  10028. ia64*)
  10029. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10030. ;;
  10031. *)
  10032. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10033. ;;
  10034. esac
  10035. else
  10036. case $host_cpu in
  10037. hppa*64*)
  10038. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10039. ;;
  10040. ia64*)
  10041. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10042. ;;
  10043. *)
  10044. # Older versions of the 11.00 compiler do not understand -b yet
  10045. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10047. printf %s "checking if $CC understands -b... " >&6; }
  10048. if test ${lt_cv_prog_compiler__b+y}
  10049. then :
  10050. printf %s "(cached) " >&6
  10051. else $as_nop
  10052. lt_cv_prog_compiler__b=no
  10053. save_LDFLAGS=$LDFLAGS
  10054. LDFLAGS="$LDFLAGS -b"
  10055. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10056. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10057. # The linker can only warn and ignore the option if not recognized
  10058. # So say no if there are warnings
  10059. if test -s conftest.err; then
  10060. # Append any errors to the config.log.
  10061. cat conftest.err 1>&5
  10062. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10063. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10064. if diff conftest.exp conftest.er2 >/dev/null; then
  10065. lt_cv_prog_compiler__b=yes
  10066. fi
  10067. else
  10068. lt_cv_prog_compiler__b=yes
  10069. fi
  10070. fi
  10071. $RM -r conftest*
  10072. LDFLAGS=$save_LDFLAGS
  10073. fi
  10074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10075. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10076. if test yes = "$lt_cv_prog_compiler__b"; then
  10077. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10078. else
  10079. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10080. fi
  10081. ;;
  10082. esac
  10083. fi
  10084. if test no = "$with_gnu_ld"; then
  10085. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10086. hardcode_libdir_separator=:
  10087. case $host_cpu in
  10088. hppa*64*|ia64*)
  10089. hardcode_direct=no
  10090. hardcode_shlibpath_var=no
  10091. ;;
  10092. *)
  10093. hardcode_direct=yes
  10094. hardcode_direct_absolute=yes
  10095. export_dynamic_flag_spec='$wl-E'
  10096. # hardcode_minus_L: Not really in the search PATH,
  10097. # but as the default location of the library.
  10098. hardcode_minus_L=yes
  10099. ;;
  10100. esac
  10101. fi
  10102. ;;
  10103. irix5* | irix6* | nonstopux*)
  10104. if test yes = "$GCC"; then
  10105. 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'
  10106. # Try to use the -exported_symbol ld option, if it does not
  10107. # work, assume that -exports_file does not work either and
  10108. # implicitly export all symbols.
  10109. # This should be the same for all languages, so no per-tag cache variable.
  10110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10111. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10112. if test ${lt_cv_irix_exported_symbol+y}
  10113. then :
  10114. printf %s "(cached) " >&6
  10115. else $as_nop
  10116. save_LDFLAGS=$LDFLAGS
  10117. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10119. /* end confdefs.h. */
  10120. int foo (void) { return 0; }
  10121. _ACEOF
  10122. if ac_fn_c_try_link "$LINENO"
  10123. then :
  10124. lt_cv_irix_exported_symbol=yes
  10125. else $as_nop
  10126. lt_cv_irix_exported_symbol=no
  10127. fi
  10128. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10129. conftest$ac_exeext conftest.$ac_ext
  10130. LDFLAGS=$save_LDFLAGS
  10131. fi
  10132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10133. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10134. if test yes = "$lt_cv_irix_exported_symbol"; then
  10135. 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'
  10136. fi
  10137. else
  10138. 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'
  10139. 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'
  10140. fi
  10141. archive_cmds_need_lc='no'
  10142. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10143. hardcode_libdir_separator=:
  10144. inherit_rpath=yes
  10145. link_all_deplibs=yes
  10146. ;;
  10147. linux*)
  10148. case $cc_basename in
  10149. tcc*)
  10150. # Fabrice Bellard et al's Tiny C Compiler
  10151. ld_shlibs=yes
  10152. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10153. ;;
  10154. esac
  10155. ;;
  10156. netbsd*)
  10157. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10158. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10159. else
  10160. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10161. fi
  10162. hardcode_libdir_flag_spec='-R$libdir'
  10163. hardcode_direct=yes
  10164. hardcode_shlibpath_var=no
  10165. ;;
  10166. newsos6)
  10167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10168. hardcode_direct=yes
  10169. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10170. hardcode_libdir_separator=:
  10171. hardcode_shlibpath_var=no
  10172. ;;
  10173. *nto* | *qnx*)
  10174. ;;
  10175. openbsd* | bitrig*)
  10176. if test -f /usr/libexec/ld.so; then
  10177. hardcode_direct=yes
  10178. hardcode_shlibpath_var=no
  10179. hardcode_direct_absolute=yes
  10180. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10181. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10182. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10183. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10184. export_dynamic_flag_spec='$wl-E'
  10185. else
  10186. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10187. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10188. fi
  10189. else
  10190. ld_shlibs=no
  10191. fi
  10192. ;;
  10193. os2*)
  10194. hardcode_libdir_flag_spec='-L$libdir'
  10195. hardcode_minus_L=yes
  10196. allow_undefined_flag=unsupported
  10197. shrext_cmds=.dll
  10198. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10199. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10200. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10201. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10202. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10203. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10204. emximp -o $lib $output_objdir/$libname.def'
  10205. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10206. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10207. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10208. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10209. prefix_cmds="$SED"~
  10210. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10211. prefix_cmds="$prefix_cmds -e 1d";
  10212. fi~
  10213. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10214. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10215. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10216. emximp -o $lib $output_objdir/$libname.def'
  10217. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10218. enable_shared_with_static_runtimes=yes
  10219. ;;
  10220. osf3*)
  10221. if test yes = "$GCC"; then
  10222. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10223. 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'
  10224. else
  10225. allow_undefined_flag=' -expect_unresolved \*'
  10226. 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'
  10227. fi
  10228. archive_cmds_need_lc='no'
  10229. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10230. hardcode_libdir_separator=:
  10231. ;;
  10232. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10233. if test yes = "$GCC"; then
  10234. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10235. 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'
  10236. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10237. else
  10238. allow_undefined_flag=' -expect_unresolved \*'
  10239. 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'
  10240. 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~
  10241. $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'
  10242. # Both c and cxx compiler support -rpath directly
  10243. hardcode_libdir_flag_spec='-rpath $libdir'
  10244. fi
  10245. archive_cmds_need_lc='no'
  10246. hardcode_libdir_separator=:
  10247. ;;
  10248. solaris*)
  10249. no_undefined_flag=' -z defs'
  10250. if test yes = "$GCC"; then
  10251. wlarc='$wl'
  10252. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10253. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10254. $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'
  10255. else
  10256. case `$CC -V 2>&1` in
  10257. *"Compilers 5.0"*)
  10258. wlarc=''
  10259. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10260. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10261. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10262. ;;
  10263. *)
  10264. wlarc='$wl'
  10265. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10266. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10267. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10268. ;;
  10269. esac
  10270. fi
  10271. hardcode_libdir_flag_spec='-R$libdir'
  10272. hardcode_shlibpath_var=no
  10273. case $host_os in
  10274. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10275. *)
  10276. # The compiler driver will combine and reorder linker options,
  10277. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10278. # but is careful enough not to reorder.
  10279. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10280. if test yes = "$GCC"; then
  10281. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10282. else
  10283. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10284. fi
  10285. ;;
  10286. esac
  10287. link_all_deplibs=yes
  10288. ;;
  10289. sunos4*)
  10290. if test sequent = "$host_vendor"; then
  10291. # Use $CC to link under sequent, because it throws in some extra .o
  10292. # files that make .init and .fini sections work.
  10293. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10294. else
  10295. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10296. fi
  10297. hardcode_libdir_flag_spec='-L$libdir'
  10298. hardcode_direct=yes
  10299. hardcode_minus_L=yes
  10300. hardcode_shlibpath_var=no
  10301. ;;
  10302. sysv4)
  10303. case $host_vendor in
  10304. sni)
  10305. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10306. hardcode_direct=yes # is this really true???
  10307. ;;
  10308. siemens)
  10309. ## LD is ld it makes a PLAMLIB
  10310. ## CC just makes a GrossModule.
  10311. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10312. reload_cmds='$CC -r -o $output$reload_objs'
  10313. hardcode_direct=no
  10314. ;;
  10315. motorola)
  10316. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10317. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10318. ;;
  10319. esac
  10320. runpath_var='LD_RUN_PATH'
  10321. hardcode_shlibpath_var=no
  10322. ;;
  10323. sysv4.3*)
  10324. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10325. hardcode_shlibpath_var=no
  10326. export_dynamic_flag_spec='-Bexport'
  10327. ;;
  10328. sysv4*MP*)
  10329. if test -d /usr/nec; then
  10330. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10331. hardcode_shlibpath_var=no
  10332. runpath_var=LD_RUN_PATH
  10333. hardcode_runpath_var=yes
  10334. ld_shlibs=yes
  10335. fi
  10336. ;;
  10337. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10338. no_undefined_flag='$wl-z,text'
  10339. archive_cmds_need_lc=no
  10340. hardcode_shlibpath_var=no
  10341. runpath_var='LD_RUN_PATH'
  10342. if test yes = "$GCC"; then
  10343. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10344. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10345. else
  10346. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10347. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10348. fi
  10349. ;;
  10350. sysv5* | sco3.2v5* | sco5v6*)
  10351. # Note: We CANNOT use -z defs as we might desire, because we do not
  10352. # link with -lc, and that would cause any symbols used from libc to
  10353. # always be unresolved, which means just about no library would
  10354. # ever link correctly. If we're not using GNU ld we use -z text
  10355. # though, which does catch some bad symbols but isn't as heavy-handed
  10356. # as -z defs.
  10357. no_undefined_flag='$wl-z,text'
  10358. allow_undefined_flag='$wl-z,nodefs'
  10359. archive_cmds_need_lc=no
  10360. hardcode_shlibpath_var=no
  10361. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10362. hardcode_libdir_separator=':'
  10363. link_all_deplibs=yes
  10364. export_dynamic_flag_spec='$wl-Bexport'
  10365. runpath_var='LD_RUN_PATH'
  10366. if test yes = "$GCC"; then
  10367. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10368. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10369. else
  10370. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10371. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10372. fi
  10373. ;;
  10374. uts4*)
  10375. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10376. hardcode_libdir_flag_spec='-L$libdir'
  10377. hardcode_shlibpath_var=no
  10378. ;;
  10379. *)
  10380. ld_shlibs=no
  10381. ;;
  10382. esac
  10383. if test sni = "$host_vendor"; then
  10384. case $host in
  10385. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10386. export_dynamic_flag_spec='$wl-Blargedynsym'
  10387. ;;
  10388. esac
  10389. fi
  10390. fi
  10391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10392. printf "%s\n" "$ld_shlibs" >&6; }
  10393. test no = "$ld_shlibs" && can_build_shared=no
  10394. with_gnu_ld=$with_gnu_ld
  10395. #
  10396. # Do we need to explicitly link libc?
  10397. #
  10398. case "x$archive_cmds_need_lc" in
  10399. x|xyes)
  10400. # Assume -lc should be added
  10401. archive_cmds_need_lc=yes
  10402. if test yes,yes = "$GCC,$enable_shared"; then
  10403. case $archive_cmds in
  10404. *'~'*)
  10405. # FIXME: we may have to deal with multi-command sequences.
  10406. ;;
  10407. '$CC '*)
  10408. # Test whether the compiler implicitly links with -lc since on some
  10409. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10410. # to ld, don't add -lc before -lgcc.
  10411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10412. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10413. if test ${lt_cv_archive_cmds_need_lc+y}
  10414. then :
  10415. printf %s "(cached) " >&6
  10416. else $as_nop
  10417. $RM conftest*
  10418. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10419. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10420. (eval $ac_compile) 2>&5
  10421. ac_status=$?
  10422. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10423. test $ac_status = 0; } 2>conftest.err; then
  10424. soname=conftest
  10425. lib=conftest
  10426. libobjs=conftest.$ac_objext
  10427. deplibs=
  10428. wl=$lt_prog_compiler_wl
  10429. pic_flag=$lt_prog_compiler_pic
  10430. compiler_flags=-v
  10431. linker_flags=-v
  10432. verstring=
  10433. output_objdir=.
  10434. libname=conftest
  10435. lt_save_allow_undefined_flag=$allow_undefined_flag
  10436. allow_undefined_flag=
  10437. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10438. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10439. ac_status=$?
  10440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10441. test $ac_status = 0; }
  10442. then
  10443. lt_cv_archive_cmds_need_lc=no
  10444. else
  10445. lt_cv_archive_cmds_need_lc=yes
  10446. fi
  10447. allow_undefined_flag=$lt_save_allow_undefined_flag
  10448. else
  10449. cat conftest.err 1>&5
  10450. fi
  10451. $RM conftest*
  10452. fi
  10453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10454. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10455. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10456. ;;
  10457. esac
  10458. fi
  10459. ;;
  10460. esac
  10461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10462. printf %s "checking dynamic linker characteristics... " >&6; }
  10463. if test yes = "$GCC"; then
  10464. case $host_os in
  10465. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10466. *) lt_awk_arg='/^libraries:/' ;;
  10467. esac
  10468. case $host_os in
  10469. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10470. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10471. esac
  10472. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10473. case $lt_search_path_spec in
  10474. *\;*)
  10475. # if the path contains ";" then we assume it to be the separator
  10476. # otherwise default to the standard path separator (i.e. ":") - it is
  10477. # assumed that no part of a normal pathname contains ";" but that should
  10478. # okay in the real world where ";" in dirpaths is itself problematic.
  10479. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10480. ;;
  10481. *)
  10482. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10483. ;;
  10484. esac
  10485. # Ok, now we have the path, separated by spaces, we can step through it
  10486. # and add multilib dir if necessary...
  10487. lt_tmp_lt_search_path_spec=
  10488. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10489. # ...but if some path component already ends with the multilib dir we assume
  10490. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10491. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10492. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10493. lt_multi_os_dir=
  10494. ;;
  10495. esac
  10496. for lt_sys_path in $lt_search_path_spec; do
  10497. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10498. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10499. elif test -n "$lt_multi_os_dir"; then
  10500. test -d "$lt_sys_path" && \
  10501. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10502. fi
  10503. done
  10504. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10505. BEGIN {RS = " "; FS = "/|\n";} {
  10506. lt_foo = "";
  10507. lt_count = 0;
  10508. for (lt_i = NF; lt_i > 0; lt_i--) {
  10509. if ($lt_i != "" && $lt_i != ".") {
  10510. if ($lt_i == "..") {
  10511. lt_count++;
  10512. } else {
  10513. if (lt_count == 0) {
  10514. lt_foo = "/" $lt_i lt_foo;
  10515. } else {
  10516. lt_count--;
  10517. }
  10518. }
  10519. }
  10520. }
  10521. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10522. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10523. }'`
  10524. # AWK program above erroneously prepends '/' to C:/dos/paths
  10525. # for these hosts.
  10526. case $host_os in
  10527. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10528. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10529. esac
  10530. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10531. else
  10532. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10533. fi
  10534. library_names_spec=
  10535. libname_spec='lib$name'
  10536. soname_spec=
  10537. shrext_cmds=.so
  10538. postinstall_cmds=
  10539. postuninstall_cmds=
  10540. finish_cmds=
  10541. finish_eval=
  10542. shlibpath_var=
  10543. shlibpath_overrides_runpath=unknown
  10544. version_type=none
  10545. dynamic_linker="$host_os ld.so"
  10546. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10547. need_lib_prefix=unknown
  10548. hardcode_into_libs=no
  10549. # when you set need_version to no, make sure it does not cause -set_version
  10550. # flags to be left without arguments
  10551. need_version=unknown
  10552. case $host_os in
  10553. aix3*)
  10554. version_type=linux # correct to gnu/linux during the next big refactor
  10555. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10556. shlibpath_var=LIBPATH
  10557. # AIX 3 has no versioning support, so we append a major version to the name.
  10558. soname_spec='$libname$release$shared_ext$major'
  10559. ;;
  10560. aix[4-9]*)
  10561. version_type=linux # correct to gnu/linux during the next big refactor
  10562. need_lib_prefix=no
  10563. need_version=no
  10564. hardcode_into_libs=yes
  10565. if test ia64 = "$host_cpu"; then
  10566. # AIX 5 supports IA64
  10567. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10568. shlibpath_var=LD_LIBRARY_PATH
  10569. else
  10570. # With GCC up to 2.95.x, collect2 would create an import file
  10571. # for dependence libraries. The import file would start with
  10572. # the line '#! .'. This would cause the generated library to
  10573. # depend on '.', always an invalid library. This was fixed in
  10574. # development snapshots of GCC prior to 3.0.
  10575. case $host_os in
  10576. aix4 | aix4.[01] | aix4.[01].*)
  10577. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10578. echo ' yes '
  10579. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10580. :
  10581. else
  10582. can_build_shared=no
  10583. fi
  10584. ;;
  10585. esac
  10586. # Using Import Files as archive members, it is possible to support
  10587. # filename-based versioning of shared library archives on AIX. While
  10588. # this would work for both with and without runtime linking, it will
  10589. # prevent static linking of such archives. So we do filename-based
  10590. # shared library versioning with .so extension only, which is used
  10591. # when both runtime linking and shared linking is enabled.
  10592. # Unfortunately, runtime linking may impact performance, so we do
  10593. # not want this to be the default eventually. Also, we use the
  10594. # versioned .so libs for executables only if there is the -brtl
  10595. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10596. # To allow for filename-based versioning support, we need to create
  10597. # libNAME.so.V as an archive file, containing:
  10598. # *) an Import File, referring to the versioned filename of the
  10599. # archive as well as the shared archive member, telling the
  10600. # bitwidth (32 or 64) of that shared object, and providing the
  10601. # list of exported symbols of that shared object, eventually
  10602. # decorated with the 'weak' keyword
  10603. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10604. # it being seen by the linker.
  10605. # At run time we better use the real file rather than another symlink,
  10606. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10607. case $with_aix_soname,$aix_use_runtimelinking in
  10608. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10609. # soname into executable. Probably we can add versioning support to
  10610. # collect2, so additional links can be useful in future.
  10611. aix,yes) # traditional libtool
  10612. dynamic_linker='AIX unversionable lib.so'
  10613. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10614. # instead of lib<name>.a to let people know that these are not
  10615. # typical AIX shared libraries.
  10616. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10617. ;;
  10618. aix,no) # traditional AIX only
  10619. dynamic_linker='AIX lib.a(lib.so.V)'
  10620. # We preserve .a as extension for shared libraries through AIX4.2
  10621. # and later when we are not doing run time linking.
  10622. library_names_spec='$libname$release.a $libname.a'
  10623. soname_spec='$libname$release$shared_ext$major'
  10624. ;;
  10625. svr4,*) # full svr4 only
  10626. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10627. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10628. # We do not specify a path in Import Files, so LIBPATH fires.
  10629. shlibpath_overrides_runpath=yes
  10630. ;;
  10631. *,yes) # both, prefer svr4
  10632. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10633. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10634. # unpreferred sharedlib libNAME.a needs extra handling
  10635. 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"'
  10636. 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"'
  10637. # We do not specify a path in Import Files, so LIBPATH fires.
  10638. shlibpath_overrides_runpath=yes
  10639. ;;
  10640. *,no) # both, prefer aix
  10641. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10642. library_names_spec='$libname$release.a $libname.a'
  10643. soname_spec='$libname$release$shared_ext$major'
  10644. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10645. 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)'
  10646. 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"'
  10647. ;;
  10648. esac
  10649. shlibpath_var=LIBPATH
  10650. fi
  10651. ;;
  10652. amigaos*)
  10653. case $host_cpu in
  10654. powerpc)
  10655. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10656. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10657. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10658. ;;
  10659. m68k)
  10660. library_names_spec='$libname.ixlibrary $libname.a'
  10661. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10662. 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'
  10663. ;;
  10664. esac
  10665. ;;
  10666. beos*)
  10667. library_names_spec='$libname$shared_ext'
  10668. dynamic_linker="$host_os ld.so"
  10669. shlibpath_var=LIBRARY_PATH
  10670. ;;
  10671. bsdi[45]*)
  10672. version_type=linux # correct to gnu/linux during the next big refactor
  10673. need_version=no
  10674. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10675. soname_spec='$libname$release$shared_ext$major'
  10676. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10677. shlibpath_var=LD_LIBRARY_PATH
  10678. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10679. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10680. # the default ld.so.conf also contains /usr/contrib/lib and
  10681. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10682. # libtool to hard-code these into programs
  10683. ;;
  10684. cygwin* | mingw* | pw32* | cegcc*)
  10685. version_type=windows
  10686. shrext_cmds=.dll
  10687. need_version=no
  10688. need_lib_prefix=no
  10689. case $GCC,$cc_basename in
  10690. yes,*)
  10691. # gcc
  10692. library_names_spec='$libname.dll.a'
  10693. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10694. postinstall_cmds='base_file=`basename \$file`~
  10695. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10696. dldir=$destdir/`dirname \$dlpath`~
  10697. test -d \$dldir || mkdir -p \$dldir~
  10698. $install_prog $dir/$dlname \$dldir/$dlname~
  10699. chmod a+x \$dldir/$dlname~
  10700. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10701. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10702. fi'
  10703. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10704. dlpath=$dir/\$dldll~
  10705. $RM \$dlpath'
  10706. shlibpath_overrides_runpath=yes
  10707. case $host_os in
  10708. cygwin*)
  10709. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10710. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10711. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10712. ;;
  10713. mingw* | cegcc*)
  10714. # MinGW DLLs use traditional 'lib' prefix
  10715. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10716. ;;
  10717. pw32*)
  10718. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10719. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10720. ;;
  10721. esac
  10722. dynamic_linker='Win32 ld.exe'
  10723. ;;
  10724. *,cl*)
  10725. # Native MSVC
  10726. libname_spec='$name'
  10727. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10728. library_names_spec='$libname.dll.lib'
  10729. case $build_os in
  10730. mingw*)
  10731. sys_lib_search_path_spec=
  10732. lt_save_ifs=$IFS
  10733. IFS=';'
  10734. for lt_path in $LIB
  10735. do
  10736. IFS=$lt_save_ifs
  10737. # Let DOS variable expansion print the short 8.3 style file name.
  10738. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10739. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10740. done
  10741. IFS=$lt_save_ifs
  10742. # Convert to MSYS style.
  10743. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10744. ;;
  10745. cygwin*)
  10746. # Convert to unix form, then to dos form, then back to unix form
  10747. # but this time dos style (no spaces!) so that the unix form looks
  10748. # like /cygdrive/c/PROGRA~1:/cygdr...
  10749. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10750. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10751. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10752. ;;
  10753. *)
  10754. sys_lib_search_path_spec=$LIB
  10755. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10756. # It is most probably a Windows format PATH.
  10757. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10758. else
  10759. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10760. fi
  10761. # FIXME: find the short name or the path components, as spaces are
  10762. # common. (e.g. "Program Files" -> "PROGRA~1")
  10763. ;;
  10764. esac
  10765. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10766. postinstall_cmds='base_file=`basename \$file`~
  10767. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10768. dldir=$destdir/`dirname \$dlpath`~
  10769. test -d \$dldir || mkdir -p \$dldir~
  10770. $install_prog $dir/$dlname \$dldir/$dlname'
  10771. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10772. dlpath=$dir/\$dldll~
  10773. $RM \$dlpath'
  10774. shlibpath_overrides_runpath=yes
  10775. dynamic_linker='Win32 link.exe'
  10776. ;;
  10777. *)
  10778. # Assume MSVC wrapper
  10779. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10780. dynamic_linker='Win32 ld.exe'
  10781. ;;
  10782. esac
  10783. # FIXME: first we should search . and the directory the executable is in
  10784. shlibpath_var=PATH
  10785. ;;
  10786. darwin* | rhapsody*)
  10787. dynamic_linker="$host_os dyld"
  10788. version_type=darwin
  10789. need_lib_prefix=no
  10790. need_version=no
  10791. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  10792. soname_spec='$libname$release$major$shared_ext'
  10793. shlibpath_overrides_runpath=yes
  10794. shlibpath_var=DYLD_LIBRARY_PATH
  10795. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  10796. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10797. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10798. ;;
  10799. dgux*)
  10800. version_type=linux # correct to gnu/linux during the next big refactor
  10801. need_lib_prefix=no
  10802. need_version=no
  10803. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10804. soname_spec='$libname$release$shared_ext$major'
  10805. shlibpath_var=LD_LIBRARY_PATH
  10806. ;;
  10807. freebsd* | dragonfly*)
  10808. # DragonFly does not have aout. When/if they implement a new
  10809. # versioning mechanism, adjust this.
  10810. if test -x /usr/bin/objformat; then
  10811. objformat=`/usr/bin/objformat`
  10812. else
  10813. case $host_os in
  10814. freebsd[23].*) objformat=aout ;;
  10815. *) objformat=elf ;;
  10816. esac
  10817. fi
  10818. # Handle Gentoo/FreeBSD as it was Linux
  10819. case $host_vendor in
  10820. gentoo)
  10821. version_type=linux ;;
  10822. *)
  10823. version_type=freebsd-$objformat ;;
  10824. esac
  10825. case $version_type in
  10826. freebsd-elf*)
  10827. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10828. soname_spec='$libname$release$shared_ext$major'
  10829. need_version=no
  10830. need_lib_prefix=no
  10831. ;;
  10832. freebsd-*)
  10833. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10834. need_version=yes
  10835. ;;
  10836. linux)
  10837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10838. soname_spec='${libname}${release}${shared_ext}$major'
  10839. need_lib_prefix=no
  10840. need_version=no
  10841. ;;
  10842. esac
  10843. shlibpath_var=LD_LIBRARY_PATH
  10844. case $host_os in
  10845. freebsd2.*)
  10846. shlibpath_overrides_runpath=yes
  10847. ;;
  10848. freebsd3.[01]* | freebsdelf3.[01]*)
  10849. shlibpath_overrides_runpath=yes
  10850. hardcode_into_libs=yes
  10851. ;;
  10852. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10853. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10854. shlibpath_overrides_runpath=no
  10855. hardcode_into_libs=yes
  10856. ;;
  10857. *) # from 4.6 on, and DragonFly
  10858. shlibpath_overrides_runpath=yes
  10859. hardcode_into_libs=yes
  10860. ;;
  10861. esac
  10862. ;;
  10863. haiku*)
  10864. version_type=linux # correct to gnu/linux during the next big refactor
  10865. need_lib_prefix=no
  10866. need_version=no
  10867. dynamic_linker="$host_os runtime_loader"
  10868. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10869. soname_spec='$libname$release$shared_ext$major'
  10870. shlibpath_var=LIBRARY_PATH
  10871. shlibpath_overrides_runpath=no
  10872. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10873. hardcode_into_libs=yes
  10874. ;;
  10875. hpux9* | hpux10* | hpux11*)
  10876. # Give a soname corresponding to the major version so that dld.sl refuses to
  10877. # link against other versions.
  10878. version_type=sunos
  10879. need_lib_prefix=no
  10880. need_version=no
  10881. case $host_cpu in
  10882. ia64*)
  10883. shrext_cmds='.so'
  10884. hardcode_into_libs=yes
  10885. dynamic_linker="$host_os dld.so"
  10886. shlibpath_var=LD_LIBRARY_PATH
  10887. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10888. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10889. soname_spec='$libname$release$shared_ext$major'
  10890. if test 32 = "$HPUX_IA64_MODE"; then
  10891. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10892. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10893. else
  10894. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10895. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10896. fi
  10897. ;;
  10898. hppa*64*)
  10899. shrext_cmds='.sl'
  10900. hardcode_into_libs=yes
  10901. dynamic_linker="$host_os dld.sl"
  10902. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10903. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10904. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10905. soname_spec='$libname$release$shared_ext$major'
  10906. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10907. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10908. ;;
  10909. *)
  10910. shrext_cmds='.sl'
  10911. dynamic_linker="$host_os dld.sl"
  10912. shlibpath_var=SHLIB_PATH
  10913. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10914. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10915. soname_spec='$libname$release$shared_ext$major'
  10916. ;;
  10917. esac
  10918. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10919. postinstall_cmds='chmod 555 $lib'
  10920. # or fails outright, so override atomically:
  10921. install_override_mode=555
  10922. ;;
  10923. interix[3-9]*)
  10924. version_type=linux # correct to gnu/linux during the next big refactor
  10925. need_lib_prefix=no
  10926. need_version=no
  10927. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10928. soname_spec='$libname$release$shared_ext$major'
  10929. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10930. shlibpath_var=LD_LIBRARY_PATH
  10931. shlibpath_overrides_runpath=no
  10932. hardcode_into_libs=yes
  10933. ;;
  10934. irix5* | irix6* | nonstopux*)
  10935. case $host_os in
  10936. nonstopux*) version_type=nonstopux ;;
  10937. *)
  10938. if test yes = "$lt_cv_prog_gnu_ld"; then
  10939. version_type=linux # correct to gnu/linux during the next big refactor
  10940. else
  10941. version_type=irix
  10942. fi ;;
  10943. esac
  10944. need_lib_prefix=no
  10945. need_version=no
  10946. soname_spec='$libname$release$shared_ext$major'
  10947. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10948. case $host_os in
  10949. irix5* | nonstopux*)
  10950. libsuff= shlibsuff=
  10951. ;;
  10952. *)
  10953. case $LD in # libtool.m4 will add one of these switches to LD
  10954. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10955. libsuff= shlibsuff= libmagic=32-bit;;
  10956. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10957. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10958. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10959. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10960. *) libsuff= shlibsuff= libmagic=never-match;;
  10961. esac
  10962. ;;
  10963. esac
  10964. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10965. shlibpath_overrides_runpath=no
  10966. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10967. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10968. hardcode_into_libs=yes
  10969. ;;
  10970. # No shared lib support for Linux oldld, aout, or coff.
  10971. linux*oldld* | linux*aout* | linux*coff*)
  10972. dynamic_linker=no
  10973. ;;
  10974. linux*android*)
  10975. version_type=none # Android doesn't support versioned libraries.
  10976. need_lib_prefix=no
  10977. need_version=no
  10978. library_names_spec='$libname$release$shared_ext'
  10979. soname_spec='$libname$release$shared_ext'
  10980. finish_cmds=
  10981. shlibpath_var=LD_LIBRARY_PATH
  10982. shlibpath_overrides_runpath=yes
  10983. # This implies no fast_install, which is unacceptable.
  10984. # Some rework will be needed to allow for fast_install
  10985. # before this can be enabled.
  10986. hardcode_into_libs=yes
  10987. dynamic_linker='Android linker'
  10988. # Don't embed -rpath directories since the linker doesn't support them.
  10989. hardcode_libdir_flag_spec='-L$libdir'
  10990. ;;
  10991. # This must be glibc/ELF.
  10992. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10993. version_type=linux # correct to gnu/linux during the next big refactor
  10994. need_lib_prefix=no
  10995. need_version=no
  10996. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10997. soname_spec='$libname$release$shared_ext$major'
  10998. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10999. shlibpath_var=LD_LIBRARY_PATH
  11000. shlibpath_overrides_runpath=no
  11001. # Some binutils ld are patched to set DT_RUNPATH
  11002. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11003. then :
  11004. printf %s "(cached) " >&6
  11005. else $as_nop
  11006. lt_cv_shlibpath_overrides_runpath=no
  11007. save_LDFLAGS=$LDFLAGS
  11008. save_libdir=$libdir
  11009. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11010. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11012. /* end confdefs.h. */
  11013. int
  11014. main (void)
  11015. {
  11016. ;
  11017. return 0;
  11018. }
  11019. _ACEOF
  11020. if ac_fn_c_try_link "$LINENO"
  11021. then :
  11022. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11023. then :
  11024. lt_cv_shlibpath_overrides_runpath=yes
  11025. fi
  11026. fi
  11027. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11028. conftest$ac_exeext conftest.$ac_ext
  11029. LDFLAGS=$save_LDFLAGS
  11030. libdir=$save_libdir
  11031. fi
  11032. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11033. # This implies no fast_install, which is unacceptable.
  11034. # Some rework will be needed to allow for fast_install
  11035. # before this can be enabled.
  11036. hardcode_into_libs=yes
  11037. # Ideally, we could use ldconfig to report *all* directores which are
  11038. # searched for libraries, however this is still not possible. Aside from not
  11039. # being certain /sbin/ldconfig is available, command
  11040. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11041. # even though it is searched at run-time. Try to do the best guess by
  11042. # appending ld.so.conf contents (and includes) to the search path.
  11043. if test -f /etc/ld.so.conf; then
  11044. 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' ' '`
  11045. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11046. fi
  11047. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11048. # powerpc, because MkLinux only supported shared libraries with the
  11049. # GNU dynamic linker. Since this was broken with cross compilers,
  11050. # most powerpc-linux boxes support dynamic linking these days and
  11051. # people can always --disable-shared, the test was removed, and we
  11052. # assume the GNU/Linux dynamic linker is in use.
  11053. dynamic_linker='GNU/Linux ld.so'
  11054. ;;
  11055. netbsd*)
  11056. version_type=sunos
  11057. need_lib_prefix=no
  11058. need_version=no
  11059. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11060. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11061. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11062. dynamic_linker='NetBSD (a.out) ld.so'
  11063. else
  11064. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11065. soname_spec='$libname$release$shared_ext$major'
  11066. dynamic_linker='NetBSD ld.elf_so'
  11067. fi
  11068. shlibpath_var=LD_LIBRARY_PATH
  11069. shlibpath_overrides_runpath=yes
  11070. hardcode_into_libs=yes
  11071. ;;
  11072. newsos6)
  11073. version_type=linux # correct to gnu/linux during the next big refactor
  11074. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11075. shlibpath_var=LD_LIBRARY_PATH
  11076. shlibpath_overrides_runpath=yes
  11077. ;;
  11078. *nto* | *qnx*)
  11079. version_type=qnx
  11080. need_lib_prefix=no
  11081. need_version=no
  11082. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11083. soname_spec='$libname$release$shared_ext$major'
  11084. shlibpath_var=LD_LIBRARY_PATH
  11085. shlibpath_overrides_runpath=no
  11086. hardcode_into_libs=yes
  11087. dynamic_linker='ldqnx.so'
  11088. ;;
  11089. openbsd* | bitrig*)
  11090. version_type=sunos
  11091. sys_lib_dlsearch_path_spec=/usr/lib
  11092. need_lib_prefix=no
  11093. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11094. need_version=no
  11095. else
  11096. need_version=yes
  11097. fi
  11098. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11099. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11100. shlibpath_var=LD_LIBRARY_PATH
  11101. shlibpath_overrides_runpath=yes
  11102. ;;
  11103. os2*)
  11104. libname_spec='$name'
  11105. version_type=windows
  11106. shrext_cmds=.dll
  11107. need_version=no
  11108. need_lib_prefix=no
  11109. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11110. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11111. v=$($ECHO $release$versuffix | tr -d .-);
  11112. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11113. $ECHO $n$v`$shared_ext'
  11114. library_names_spec='${libname}_dll.$libext'
  11115. dynamic_linker='OS/2 ld.exe'
  11116. shlibpath_var=BEGINLIBPATH
  11117. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11118. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11119. postinstall_cmds='base_file=`basename \$file`~
  11120. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11121. dldir=$destdir/`dirname \$dlpath`~
  11122. test -d \$dldir || mkdir -p \$dldir~
  11123. $install_prog $dir/$dlname \$dldir/$dlname~
  11124. chmod a+x \$dldir/$dlname~
  11125. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11126. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11127. fi'
  11128. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11129. dlpath=$dir/\$dldll~
  11130. $RM \$dlpath'
  11131. ;;
  11132. osf3* | osf4* | osf5*)
  11133. version_type=osf
  11134. need_lib_prefix=no
  11135. need_version=no
  11136. soname_spec='$libname$release$shared_ext$major'
  11137. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11138. shlibpath_var=LD_LIBRARY_PATH
  11139. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11140. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11141. ;;
  11142. rdos*)
  11143. dynamic_linker=no
  11144. ;;
  11145. solaris*)
  11146. version_type=linux # correct to gnu/linux during the next big refactor
  11147. need_lib_prefix=no
  11148. need_version=no
  11149. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11150. soname_spec='$libname$release$shared_ext$major'
  11151. shlibpath_var=LD_LIBRARY_PATH
  11152. shlibpath_overrides_runpath=yes
  11153. hardcode_into_libs=yes
  11154. # ldd complains unless libraries are executable
  11155. postinstall_cmds='chmod +x $lib'
  11156. ;;
  11157. sunos4*)
  11158. version_type=sunos
  11159. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11160. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11161. shlibpath_var=LD_LIBRARY_PATH
  11162. shlibpath_overrides_runpath=yes
  11163. if test yes = "$with_gnu_ld"; then
  11164. need_lib_prefix=no
  11165. fi
  11166. need_version=yes
  11167. ;;
  11168. sysv4 | sysv4.3*)
  11169. version_type=linux # correct to gnu/linux during the next big refactor
  11170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11171. soname_spec='$libname$release$shared_ext$major'
  11172. shlibpath_var=LD_LIBRARY_PATH
  11173. case $host_vendor in
  11174. sni)
  11175. shlibpath_overrides_runpath=no
  11176. need_lib_prefix=no
  11177. runpath_var=LD_RUN_PATH
  11178. ;;
  11179. siemens)
  11180. need_lib_prefix=no
  11181. ;;
  11182. motorola)
  11183. need_lib_prefix=no
  11184. need_version=no
  11185. shlibpath_overrides_runpath=no
  11186. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11187. ;;
  11188. esac
  11189. ;;
  11190. sysv4*MP*)
  11191. if test -d /usr/nec; then
  11192. version_type=linux # correct to gnu/linux during the next big refactor
  11193. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11194. soname_spec='$libname$shared_ext.$major'
  11195. shlibpath_var=LD_LIBRARY_PATH
  11196. fi
  11197. ;;
  11198. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11199. version_type=sco
  11200. need_lib_prefix=no
  11201. need_version=no
  11202. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11203. soname_spec='$libname$release$shared_ext$major'
  11204. shlibpath_var=LD_LIBRARY_PATH
  11205. shlibpath_overrides_runpath=yes
  11206. hardcode_into_libs=yes
  11207. if test yes = "$with_gnu_ld"; then
  11208. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11209. else
  11210. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11211. case $host_os in
  11212. sco3.2v5*)
  11213. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11214. ;;
  11215. esac
  11216. fi
  11217. sys_lib_dlsearch_path_spec='/usr/lib'
  11218. ;;
  11219. tpf*)
  11220. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11221. version_type=linux # correct to gnu/linux during the next big refactor
  11222. need_lib_prefix=no
  11223. need_version=no
  11224. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11225. shlibpath_var=LD_LIBRARY_PATH
  11226. shlibpath_overrides_runpath=no
  11227. hardcode_into_libs=yes
  11228. ;;
  11229. uts4*)
  11230. version_type=linux # correct to gnu/linux during the next big refactor
  11231. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11232. soname_spec='$libname$release$shared_ext$major'
  11233. shlibpath_var=LD_LIBRARY_PATH
  11234. ;;
  11235. *)
  11236. dynamic_linker=no
  11237. ;;
  11238. esac
  11239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11240. printf "%s\n" "$dynamic_linker" >&6; }
  11241. test no = "$dynamic_linker" && can_build_shared=no
  11242. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11243. if test yes = "$GCC"; then
  11244. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11245. fi
  11246. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11247. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11248. fi
  11249. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11250. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11251. fi
  11252. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11253. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11254. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11255. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11256. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11257. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11259. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11260. hardcode_action=
  11261. if test -n "$hardcode_libdir_flag_spec" ||
  11262. test -n "$runpath_var" ||
  11263. test yes = "$hardcode_automatic"; then
  11264. # We can hardcode non-existent directories.
  11265. if test no != "$hardcode_direct" &&
  11266. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11267. # have to relink, otherwise we might link with an installed library
  11268. # when we should be linking with a yet-to-be-installed one
  11269. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11270. test no != "$hardcode_minus_L"; then
  11271. # Linking always hardcodes the temporary library directory.
  11272. hardcode_action=relink
  11273. else
  11274. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11275. hardcode_action=immediate
  11276. fi
  11277. else
  11278. # We cannot hardcode anything, or else we can only hardcode existing
  11279. # directories.
  11280. hardcode_action=unsupported
  11281. fi
  11282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11283. printf "%s\n" "$hardcode_action" >&6; }
  11284. if test relink = "$hardcode_action" ||
  11285. test yes = "$inherit_rpath"; then
  11286. # Fast installation is not supported
  11287. enable_fast_install=no
  11288. elif test yes = "$shlibpath_overrides_runpath" ||
  11289. test no = "$enable_shared"; then
  11290. # Fast installation is not necessary
  11291. enable_fast_install=needless
  11292. fi
  11293. if test yes != "$enable_dlopen"; then
  11294. enable_dlopen=unknown
  11295. enable_dlopen_self=unknown
  11296. enable_dlopen_self_static=unknown
  11297. else
  11298. lt_cv_dlopen=no
  11299. lt_cv_dlopen_libs=
  11300. case $host_os in
  11301. beos*)
  11302. lt_cv_dlopen=load_add_on
  11303. lt_cv_dlopen_libs=
  11304. lt_cv_dlopen_self=yes
  11305. ;;
  11306. mingw* | pw32* | cegcc*)
  11307. lt_cv_dlopen=LoadLibrary
  11308. lt_cv_dlopen_libs=
  11309. ;;
  11310. cygwin*)
  11311. lt_cv_dlopen=dlopen
  11312. lt_cv_dlopen_libs=
  11313. ;;
  11314. darwin*)
  11315. # if libdl is installed we need to link against it
  11316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11317. printf %s "checking for dlopen in -ldl... " >&6; }
  11318. if test ${ac_cv_lib_dl_dlopen+y}
  11319. then :
  11320. printf %s "(cached) " >&6
  11321. else $as_nop
  11322. ac_check_lib_save_LIBS=$LIBS
  11323. LIBS="-ldl $LIBS"
  11324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11325. /* end confdefs.h. */
  11326. /* Override any GCC internal prototype to avoid an error.
  11327. Use char because int might match the return type of a GCC
  11328. builtin and then its argument prototype would still apply. */
  11329. char dlopen ();
  11330. int
  11331. main (void)
  11332. {
  11333. return dlopen ();
  11334. ;
  11335. return 0;
  11336. }
  11337. _ACEOF
  11338. if ac_fn_c_try_link "$LINENO"
  11339. then :
  11340. ac_cv_lib_dl_dlopen=yes
  11341. else $as_nop
  11342. ac_cv_lib_dl_dlopen=no
  11343. fi
  11344. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11345. conftest$ac_exeext conftest.$ac_ext
  11346. LIBS=$ac_check_lib_save_LIBS
  11347. fi
  11348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11349. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11350. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11351. then :
  11352. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11353. else $as_nop
  11354. lt_cv_dlopen=dyld
  11355. lt_cv_dlopen_libs=
  11356. lt_cv_dlopen_self=yes
  11357. fi
  11358. ;;
  11359. tpf*)
  11360. # Don't try to run any link tests for TPF. We know it's impossible
  11361. # because TPF is a cross-compiler, and we know how we open DSOs.
  11362. lt_cv_dlopen=dlopen
  11363. lt_cv_dlopen_libs=
  11364. lt_cv_dlopen_self=no
  11365. ;;
  11366. *)
  11367. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11368. if test "x$ac_cv_func_shl_load" = xyes
  11369. then :
  11370. lt_cv_dlopen=shl_load
  11371. else $as_nop
  11372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11373. printf %s "checking for shl_load in -ldld... " >&6; }
  11374. if test ${ac_cv_lib_dld_shl_load+y}
  11375. then :
  11376. printf %s "(cached) " >&6
  11377. else $as_nop
  11378. ac_check_lib_save_LIBS=$LIBS
  11379. LIBS="-ldld $LIBS"
  11380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11381. /* end confdefs.h. */
  11382. /* Override any GCC internal prototype to avoid an error.
  11383. Use char because int might match the return type of a GCC
  11384. builtin and then its argument prototype would still apply. */
  11385. char shl_load ();
  11386. int
  11387. main (void)
  11388. {
  11389. return shl_load ();
  11390. ;
  11391. return 0;
  11392. }
  11393. _ACEOF
  11394. if ac_fn_c_try_link "$LINENO"
  11395. then :
  11396. ac_cv_lib_dld_shl_load=yes
  11397. else $as_nop
  11398. ac_cv_lib_dld_shl_load=no
  11399. fi
  11400. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11401. conftest$ac_exeext conftest.$ac_ext
  11402. LIBS=$ac_check_lib_save_LIBS
  11403. fi
  11404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11405. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11406. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11407. then :
  11408. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11409. else $as_nop
  11410. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11411. if test "x$ac_cv_func_dlopen" = xyes
  11412. then :
  11413. lt_cv_dlopen=dlopen
  11414. else $as_nop
  11415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11416. printf %s "checking for dlopen in -ldl... " >&6; }
  11417. if test ${ac_cv_lib_dl_dlopen+y}
  11418. then :
  11419. printf %s "(cached) " >&6
  11420. else $as_nop
  11421. ac_check_lib_save_LIBS=$LIBS
  11422. LIBS="-ldl $LIBS"
  11423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11424. /* end confdefs.h. */
  11425. /* Override any GCC internal prototype to avoid an error.
  11426. Use char because int might match the return type of a GCC
  11427. builtin and then its argument prototype would still apply. */
  11428. char dlopen ();
  11429. int
  11430. main (void)
  11431. {
  11432. return dlopen ();
  11433. ;
  11434. return 0;
  11435. }
  11436. _ACEOF
  11437. if ac_fn_c_try_link "$LINENO"
  11438. then :
  11439. ac_cv_lib_dl_dlopen=yes
  11440. else $as_nop
  11441. ac_cv_lib_dl_dlopen=no
  11442. fi
  11443. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11444. conftest$ac_exeext conftest.$ac_ext
  11445. LIBS=$ac_check_lib_save_LIBS
  11446. fi
  11447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11448. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11449. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11450. then :
  11451. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11452. else $as_nop
  11453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11454. printf %s "checking for dlopen in -lsvld... " >&6; }
  11455. if test ${ac_cv_lib_svld_dlopen+y}
  11456. then :
  11457. printf %s "(cached) " >&6
  11458. else $as_nop
  11459. ac_check_lib_save_LIBS=$LIBS
  11460. LIBS="-lsvld $LIBS"
  11461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11462. /* end confdefs.h. */
  11463. /* Override any GCC internal prototype to avoid an error.
  11464. Use char because int might match the return type of a GCC
  11465. builtin and then its argument prototype would still apply. */
  11466. char dlopen ();
  11467. int
  11468. main (void)
  11469. {
  11470. return dlopen ();
  11471. ;
  11472. return 0;
  11473. }
  11474. _ACEOF
  11475. if ac_fn_c_try_link "$LINENO"
  11476. then :
  11477. ac_cv_lib_svld_dlopen=yes
  11478. else $as_nop
  11479. ac_cv_lib_svld_dlopen=no
  11480. fi
  11481. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11482. conftest$ac_exeext conftest.$ac_ext
  11483. LIBS=$ac_check_lib_save_LIBS
  11484. fi
  11485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11486. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11487. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11488. then :
  11489. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11490. else $as_nop
  11491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11492. printf %s "checking for dld_link in -ldld... " >&6; }
  11493. if test ${ac_cv_lib_dld_dld_link+y}
  11494. then :
  11495. printf %s "(cached) " >&6
  11496. else $as_nop
  11497. ac_check_lib_save_LIBS=$LIBS
  11498. LIBS="-ldld $LIBS"
  11499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11500. /* end confdefs.h. */
  11501. /* Override any GCC internal prototype to avoid an error.
  11502. Use char because int might match the return type of a GCC
  11503. builtin and then its argument prototype would still apply. */
  11504. char dld_link ();
  11505. int
  11506. main (void)
  11507. {
  11508. return dld_link ();
  11509. ;
  11510. return 0;
  11511. }
  11512. _ACEOF
  11513. if ac_fn_c_try_link "$LINENO"
  11514. then :
  11515. ac_cv_lib_dld_dld_link=yes
  11516. else $as_nop
  11517. ac_cv_lib_dld_dld_link=no
  11518. fi
  11519. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11520. conftest$ac_exeext conftest.$ac_ext
  11521. LIBS=$ac_check_lib_save_LIBS
  11522. fi
  11523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11524. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11525. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11526. then :
  11527. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11528. fi
  11529. fi
  11530. fi
  11531. fi
  11532. fi
  11533. fi
  11534. ;;
  11535. esac
  11536. if test no = "$lt_cv_dlopen"; then
  11537. enable_dlopen=no
  11538. else
  11539. enable_dlopen=yes
  11540. fi
  11541. case $lt_cv_dlopen in
  11542. dlopen)
  11543. save_CPPFLAGS=$CPPFLAGS
  11544. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11545. save_LDFLAGS=$LDFLAGS
  11546. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11547. save_LIBS=$LIBS
  11548. LIBS="$lt_cv_dlopen_libs $LIBS"
  11549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11550. printf %s "checking whether a program can dlopen itself... " >&6; }
  11551. if test ${lt_cv_dlopen_self+y}
  11552. then :
  11553. printf %s "(cached) " >&6
  11554. else $as_nop
  11555. if test yes = "$cross_compiling"; then :
  11556. lt_cv_dlopen_self=cross
  11557. else
  11558. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11559. lt_status=$lt_dlunknown
  11560. cat > conftest.$ac_ext <<_LT_EOF
  11561. #line $LINENO "configure"
  11562. #include "confdefs.h"
  11563. #if HAVE_DLFCN_H
  11564. #include <dlfcn.h>
  11565. #endif
  11566. #include <stdio.h>
  11567. #ifdef RTLD_GLOBAL
  11568. # define LT_DLGLOBAL RTLD_GLOBAL
  11569. #else
  11570. # ifdef DL_GLOBAL
  11571. # define LT_DLGLOBAL DL_GLOBAL
  11572. # else
  11573. # define LT_DLGLOBAL 0
  11574. # endif
  11575. #endif
  11576. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11577. find out it does not work in some platform. */
  11578. #ifndef LT_DLLAZY_OR_NOW
  11579. # ifdef RTLD_LAZY
  11580. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11581. # else
  11582. # ifdef DL_LAZY
  11583. # define LT_DLLAZY_OR_NOW DL_LAZY
  11584. # else
  11585. # ifdef RTLD_NOW
  11586. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11587. # else
  11588. # ifdef DL_NOW
  11589. # define LT_DLLAZY_OR_NOW DL_NOW
  11590. # else
  11591. # define LT_DLLAZY_OR_NOW 0
  11592. # endif
  11593. # endif
  11594. # endif
  11595. # endif
  11596. #endif
  11597. /* When -fvisibility=hidden is used, assume the code has been annotated
  11598. correspondingly for the symbols needed. */
  11599. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11600. int fnord () __attribute__((visibility("default")));
  11601. #endif
  11602. int fnord () { return 42; }
  11603. int main ()
  11604. {
  11605. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11606. int status = $lt_dlunknown;
  11607. if (self)
  11608. {
  11609. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11610. else
  11611. {
  11612. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11613. else puts (dlerror ());
  11614. }
  11615. /* dlclose (self); */
  11616. }
  11617. else
  11618. puts (dlerror ());
  11619. return status;
  11620. }
  11621. _LT_EOF
  11622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11623. (eval $ac_link) 2>&5
  11624. ac_status=$?
  11625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11626. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11627. (./conftest; exit; ) >&5 2>/dev/null
  11628. lt_status=$?
  11629. case x$lt_status in
  11630. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11631. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11632. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11633. esac
  11634. else :
  11635. # compilation failed
  11636. lt_cv_dlopen_self=no
  11637. fi
  11638. fi
  11639. rm -fr conftest*
  11640. fi
  11641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11642. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11643. if test yes = "$lt_cv_dlopen_self"; then
  11644. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11646. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11647. if test ${lt_cv_dlopen_self_static+y}
  11648. then :
  11649. printf %s "(cached) " >&6
  11650. else $as_nop
  11651. if test yes = "$cross_compiling"; then :
  11652. lt_cv_dlopen_self_static=cross
  11653. else
  11654. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11655. lt_status=$lt_dlunknown
  11656. cat > conftest.$ac_ext <<_LT_EOF
  11657. #line $LINENO "configure"
  11658. #include "confdefs.h"
  11659. #if HAVE_DLFCN_H
  11660. #include <dlfcn.h>
  11661. #endif
  11662. #include <stdio.h>
  11663. #ifdef RTLD_GLOBAL
  11664. # define LT_DLGLOBAL RTLD_GLOBAL
  11665. #else
  11666. # ifdef DL_GLOBAL
  11667. # define LT_DLGLOBAL DL_GLOBAL
  11668. # else
  11669. # define LT_DLGLOBAL 0
  11670. # endif
  11671. #endif
  11672. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11673. find out it does not work in some platform. */
  11674. #ifndef LT_DLLAZY_OR_NOW
  11675. # ifdef RTLD_LAZY
  11676. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11677. # else
  11678. # ifdef DL_LAZY
  11679. # define LT_DLLAZY_OR_NOW DL_LAZY
  11680. # else
  11681. # ifdef RTLD_NOW
  11682. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11683. # else
  11684. # ifdef DL_NOW
  11685. # define LT_DLLAZY_OR_NOW DL_NOW
  11686. # else
  11687. # define LT_DLLAZY_OR_NOW 0
  11688. # endif
  11689. # endif
  11690. # endif
  11691. # endif
  11692. #endif
  11693. /* When -fvisibility=hidden is used, assume the code has been annotated
  11694. correspondingly for the symbols needed. */
  11695. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11696. int fnord () __attribute__((visibility("default")));
  11697. #endif
  11698. int fnord () { return 42; }
  11699. int main ()
  11700. {
  11701. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11702. int status = $lt_dlunknown;
  11703. if (self)
  11704. {
  11705. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11706. else
  11707. {
  11708. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11709. else puts (dlerror ());
  11710. }
  11711. /* dlclose (self); */
  11712. }
  11713. else
  11714. puts (dlerror ());
  11715. return status;
  11716. }
  11717. _LT_EOF
  11718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11719. (eval $ac_link) 2>&5
  11720. ac_status=$?
  11721. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11722. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11723. (./conftest; exit; ) >&5 2>/dev/null
  11724. lt_status=$?
  11725. case x$lt_status in
  11726. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11727. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11728. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11729. esac
  11730. else :
  11731. # compilation failed
  11732. lt_cv_dlopen_self_static=no
  11733. fi
  11734. fi
  11735. rm -fr conftest*
  11736. fi
  11737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11738. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11739. fi
  11740. CPPFLAGS=$save_CPPFLAGS
  11741. LDFLAGS=$save_LDFLAGS
  11742. LIBS=$save_LIBS
  11743. ;;
  11744. esac
  11745. case $lt_cv_dlopen_self in
  11746. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11747. *) enable_dlopen_self=unknown ;;
  11748. esac
  11749. case $lt_cv_dlopen_self_static in
  11750. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11751. *) enable_dlopen_self_static=unknown ;;
  11752. esac
  11753. fi
  11754. striplib=
  11755. old_striplib=
  11756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11757. printf %s "checking whether stripping libraries is possible... " >&6; }
  11758. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11759. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11760. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11762. printf "%s\n" "yes" >&6; }
  11763. else
  11764. # FIXME - insert some real tests, host_os isn't really good enough
  11765. case $host_os in
  11766. darwin*)
  11767. if test -n "$STRIP"; then
  11768. striplib="$STRIP -x"
  11769. old_striplib="$STRIP -S"
  11770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11771. printf "%s\n" "yes" >&6; }
  11772. else
  11773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11774. printf "%s\n" "no" >&6; }
  11775. fi
  11776. ;;
  11777. *)
  11778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11779. printf "%s\n" "no" >&6; }
  11780. ;;
  11781. esac
  11782. fi
  11783. # Report what library types will actually be built
  11784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11785. printf %s "checking if libtool supports shared libraries... " >&6; }
  11786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11787. printf "%s\n" "$can_build_shared" >&6; }
  11788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11789. printf %s "checking whether to build shared libraries... " >&6; }
  11790. test no = "$can_build_shared" && enable_shared=no
  11791. # On AIX, shared libraries and static libraries use the same namespace, and
  11792. # are all built from PIC.
  11793. case $host_os in
  11794. aix3*)
  11795. test yes = "$enable_shared" && enable_static=no
  11796. if test -n "$RANLIB"; then
  11797. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11798. postinstall_cmds='$RANLIB $lib'
  11799. fi
  11800. ;;
  11801. aix[4-9]*)
  11802. if test ia64 != "$host_cpu"; then
  11803. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11804. yes,aix,yes) ;; # shared object as lib.so file only
  11805. yes,svr4,*) ;; # shared object as lib.so archive member only
  11806. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11807. esac
  11808. fi
  11809. ;;
  11810. esac
  11811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11812. printf "%s\n" "$enable_shared" >&6; }
  11813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11814. printf %s "checking whether to build static libraries... " >&6; }
  11815. # Make sure either enable_shared or enable_static is yes.
  11816. test yes = "$enable_shared" || enable_static=yes
  11817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11818. printf "%s\n" "$enable_static" >&6; }
  11819. fi
  11820. ac_ext=c
  11821. ac_cpp='$CPP $CPPFLAGS'
  11822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11825. CC=$lt_save_CC
  11826. ac_config_commands="$ac_config_commands libtool"
  11827. # Only expand once:
  11828. ac_ext=c
  11829. ac_cpp='$CPP $CPPFLAGS'
  11830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11833. if test "$GCC" = yes
  11834. then :
  11835. for flag in -Wall -Wextra; do
  11836. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11838. printf %s "checking whether C compiler accepts $flag... " >&6; }
  11839. if eval test \${$as_CACHEVAR+y}
  11840. then :
  11841. printf %s "(cached) " >&6
  11842. else $as_nop
  11843. ax_check_save_flags=$CFLAGS
  11844. CFLAGS="$CFLAGS -Werror $flag"
  11845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11846. /* end confdefs.h. */
  11847. int main(void) { return 0; }
  11848. _ACEOF
  11849. if ac_fn_c_try_compile "$LINENO"
  11850. then :
  11851. eval "$as_CACHEVAR=yes"
  11852. else $as_nop
  11853. eval "$as_CACHEVAR=no"
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11856. CFLAGS=$ax_check_save_flags
  11857. fi
  11858. eval ac_res=\$$as_CACHEVAR
  11859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11860. printf "%s\n" "$ac_res" >&6; }
  11861. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  11862. then :
  11863. if test ${AM_CFLAGS+y}
  11864. then :
  11865. case " $AM_CFLAGS " in #(
  11866. *" $flag "*) :
  11867. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11868. (: AM_CFLAGS already contains $flag) 2>&5
  11869. ac_status=$?
  11870. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11871. test $ac_status = 0; } ;; #(
  11872. *) :
  11873. as_fn_append AM_CFLAGS " $flag"
  11874. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11875. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11876. ac_status=$?
  11877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11878. test $ac_status = 0; }
  11879. ;;
  11880. esac
  11881. else $as_nop
  11882. AM_CFLAGS=$flag
  11883. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11884. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11885. ac_status=$?
  11886. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11887. test $ac_status = 0; }
  11888. fi
  11889. else $as_nop
  11890. :
  11891. fi
  11892. done
  11893. for flag in -fexceptions; do
  11894. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11896. printf %s "checking whether C compiler accepts $flag... " >&6; }
  11897. if eval test \${$as_CACHEVAR+y}
  11898. then :
  11899. printf %s "(cached) " >&6
  11900. else $as_nop
  11901. ax_check_save_flags=$CFLAGS
  11902. CFLAGS="$CFLAGS -Werror $flag"
  11903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11904. /* end confdefs.h. */
  11905. int main(void) { return 0; }
  11906. _ACEOF
  11907. if ac_fn_c_try_compile "$LINENO"
  11908. then :
  11909. eval "$as_CACHEVAR=yes"
  11910. else $as_nop
  11911. eval "$as_CACHEVAR=no"
  11912. fi
  11913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11914. CFLAGS=$ax_check_save_flags
  11915. fi
  11916. eval ac_res=\$$as_CACHEVAR
  11917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11918. printf "%s\n" "$ac_res" >&6; }
  11919. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  11920. then :
  11921. if test ${AM_CFLAGS+y}
  11922. then :
  11923. case " $AM_CFLAGS " in #(
  11924. *" $flag "*) :
  11925. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11926. (: AM_CFLAGS already contains $flag) 2>&5
  11927. ac_status=$?
  11928. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11929. test $ac_status = 0; } ;; #(
  11930. *) :
  11931. as_fn_append AM_CFLAGS " $flag"
  11932. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11933. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11934. ac_status=$?
  11935. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11936. test $ac_status = 0; }
  11937. ;;
  11938. esac
  11939. else $as_nop
  11940. AM_CFLAGS=$flag
  11941. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11942. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11943. ac_status=$?
  11944. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11945. test $ac_status = 0; }
  11946. fi
  11947. else $as_nop
  11948. :
  11949. fi
  11950. done
  11951. for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
  11952. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  11953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  11954. printf %s "checking whether C compiler accepts $flag... " >&6; }
  11955. if eval test \${$as_CACHEVAR+y}
  11956. then :
  11957. printf %s "(cached) " >&6
  11958. else $as_nop
  11959. ax_check_save_flags=$CFLAGS
  11960. CFLAGS="$CFLAGS -Werror $flag"
  11961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11962. /* end confdefs.h. */
  11963. int main(void) { return 0; }
  11964. _ACEOF
  11965. if ac_fn_c_try_compile "$LINENO"
  11966. then :
  11967. eval "$as_CACHEVAR=yes"
  11968. else $as_nop
  11969. eval "$as_CACHEVAR=no"
  11970. fi
  11971. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11972. CFLAGS=$ax_check_save_flags
  11973. fi
  11974. eval ac_res=\$$as_CACHEVAR
  11975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11976. printf "%s\n" "$ac_res" >&6; }
  11977. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  11978. then :
  11979. if test ${AM_CFLAGS+y}
  11980. then :
  11981. case " $AM_CFLAGS " in #(
  11982. *" $flag "*) :
  11983. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  11984. (: AM_CFLAGS already contains $flag) 2>&5
  11985. ac_status=$?
  11986. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11987. test $ac_status = 0; } ;; #(
  11988. *) :
  11989. as_fn_append AM_CFLAGS " $flag"
  11990. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  11991. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  11992. ac_status=$?
  11993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11994. test $ac_status = 0; }
  11995. ;;
  11996. esac
  11997. else $as_nop
  11998. AM_CFLAGS=$flag
  11999. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12000. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12001. ac_status=$?
  12002. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12003. test $ac_status = 0; }
  12004. fi
  12005. else $as_nop
  12006. :
  12007. fi
  12008. done
  12009. for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
  12010. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12012. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12013. if eval test \${$as_CACHEVAR+y}
  12014. then :
  12015. printf %s "(cached) " >&6
  12016. else $as_nop
  12017. ax_check_save_flags=$CFLAGS
  12018. CFLAGS="$CFLAGS -Werror $flag"
  12019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12020. /* end confdefs.h. */
  12021. int main(void) { return 0; }
  12022. _ACEOF
  12023. if ac_fn_c_try_compile "$LINENO"
  12024. then :
  12025. eval "$as_CACHEVAR=yes"
  12026. else $as_nop
  12027. eval "$as_CACHEVAR=no"
  12028. fi
  12029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12030. CFLAGS=$ax_check_save_flags
  12031. fi
  12032. eval ac_res=\$$as_CACHEVAR
  12033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12034. printf "%s\n" "$ac_res" >&6; }
  12035. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12036. then :
  12037. if test ${AM_CFLAGS+y}
  12038. then :
  12039. case " $AM_CFLAGS " in #(
  12040. *" $flag "*) :
  12041. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12042. (: AM_CFLAGS already contains $flag) 2>&5
  12043. ac_status=$?
  12044. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12045. test $ac_status = 0; } ;; #(
  12046. *) :
  12047. as_fn_append AM_CFLAGS " $flag"
  12048. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12049. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12050. ac_status=$?
  12051. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12052. test $ac_status = 0; }
  12053. ;;
  12054. esac
  12055. else $as_nop
  12056. AM_CFLAGS=$flag
  12057. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12058. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12059. ac_status=$?
  12060. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12061. test $ac_status = 0; }
  12062. fi
  12063. else $as_nop
  12064. :
  12065. fi
  12066. done
  12067. for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
  12068. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12070. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12071. if eval test \${$as_CACHEVAR+y}
  12072. then :
  12073. printf %s "(cached) " >&6
  12074. else $as_nop
  12075. ax_check_save_flags=$CFLAGS
  12076. CFLAGS="$CFLAGS -Werror $flag"
  12077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12078. /* end confdefs.h. */
  12079. int main(void) { return 0; }
  12080. _ACEOF
  12081. if ac_fn_c_try_compile "$LINENO"
  12082. then :
  12083. eval "$as_CACHEVAR=yes"
  12084. else $as_nop
  12085. eval "$as_CACHEVAR=no"
  12086. fi
  12087. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12088. CFLAGS=$ax_check_save_flags
  12089. fi
  12090. eval ac_res=\$$as_CACHEVAR
  12091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12092. printf "%s\n" "$ac_res" >&6; }
  12093. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12094. then :
  12095. if test ${AM_CFLAGS+y}
  12096. then :
  12097. case " $AM_CFLAGS " in #(
  12098. *" $flag "*) :
  12099. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12100. (: AM_CFLAGS already contains $flag) 2>&5
  12101. ac_status=$?
  12102. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12103. test $ac_status = 0; } ;; #(
  12104. *) :
  12105. as_fn_append AM_CFLAGS " $flag"
  12106. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12107. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12108. ac_status=$?
  12109. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12110. test $ac_status = 0; }
  12111. ;;
  12112. esac
  12113. else $as_nop
  12114. AM_CFLAGS=$flag
  12115. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12116. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12117. ac_status=$?
  12118. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12119. test $ac_status = 0; }
  12120. fi
  12121. else $as_nop
  12122. :
  12123. fi
  12124. done
  12125. for flag in -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation; do
  12126. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  12127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  12128. printf %s "checking whether C compiler accepts $flag... " >&6; }
  12129. if eval test \${$as_CACHEVAR+y}
  12130. then :
  12131. printf %s "(cached) " >&6
  12132. else $as_nop
  12133. ax_check_save_flags=$CFLAGS
  12134. CFLAGS="$CFLAGS -Werror $flag"
  12135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12136. /* end confdefs.h. */
  12137. int main(void) { return 0; }
  12138. _ACEOF
  12139. if ac_fn_c_try_compile "$LINENO"
  12140. then :
  12141. eval "$as_CACHEVAR=yes"
  12142. else $as_nop
  12143. eval "$as_CACHEVAR=no"
  12144. fi
  12145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12146. CFLAGS=$ax_check_save_flags
  12147. fi
  12148. eval ac_res=\$$as_CACHEVAR
  12149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12150. printf "%s\n" "$ac_res" >&6; }
  12151. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  12152. then :
  12153. if test ${AM_CFLAGS+y}
  12154. then :
  12155. case " $AM_CFLAGS " in #(
  12156. *" $flag "*) :
  12157. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5
  12158. (: AM_CFLAGS already contains $flag) 2>&5
  12159. ac_status=$?
  12160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12161. test $ac_status = 0; } ;; #(
  12162. *) :
  12163. as_fn_append AM_CFLAGS " $flag"
  12164. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12165. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12166. ac_status=$?
  12167. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12168. test $ac_status = 0; }
  12169. ;;
  12170. esac
  12171. else $as_nop
  12172. AM_CFLAGS=$flag
  12173. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  12174. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  12175. ac_status=$?
  12176. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12177. test $ac_status = 0; }
  12178. fi
  12179. else $as_nop
  12180. :
  12181. fi
  12182. done
  12183. fi
  12184. ac_ext=cpp
  12185. ac_cpp='$CXXCPP $CPPFLAGS'
  12186. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12187. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12188. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12189. ac_ext=cpp
  12190. ac_cpp='$CXXCPP $CPPFLAGS'
  12191. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12192. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12193. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12194. if test -z "$CXX"; then
  12195. if test -n "$CCC"; then
  12196. CXX=$CCC
  12197. else
  12198. if test -n "$ac_tool_prefix"; then
  12199. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12200. do
  12201. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12202. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12204. printf %s "checking for $ac_word... " >&6; }
  12205. if test ${ac_cv_prog_CXX+y}
  12206. then :
  12207. printf %s "(cached) " >&6
  12208. else $as_nop
  12209. if test -n "$CXX"; then
  12210. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12211. else
  12212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12213. for as_dir in $PATH
  12214. do
  12215. IFS=$as_save_IFS
  12216. case $as_dir in #(((
  12217. '') as_dir=./ ;;
  12218. */) ;;
  12219. *) as_dir=$as_dir/ ;;
  12220. esac
  12221. for ac_exec_ext in '' $ac_executable_extensions; do
  12222. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12223. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12224. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12225. break 2
  12226. fi
  12227. done
  12228. done
  12229. IFS=$as_save_IFS
  12230. fi
  12231. fi
  12232. CXX=$ac_cv_prog_CXX
  12233. if test -n "$CXX"; then
  12234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12235. printf "%s\n" "$CXX" >&6; }
  12236. else
  12237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12238. printf "%s\n" "no" >&6; }
  12239. fi
  12240. test -n "$CXX" && break
  12241. done
  12242. fi
  12243. if test -z "$CXX"; then
  12244. ac_ct_CXX=$CXX
  12245. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12246. do
  12247. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12248. set dummy $ac_prog; ac_word=$2
  12249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12250. printf %s "checking for $ac_word... " >&6; }
  12251. if test ${ac_cv_prog_ac_ct_CXX+y}
  12252. then :
  12253. printf %s "(cached) " >&6
  12254. else $as_nop
  12255. if test -n "$ac_ct_CXX"; then
  12256. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12257. else
  12258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12259. for as_dir in $PATH
  12260. do
  12261. IFS=$as_save_IFS
  12262. case $as_dir in #(((
  12263. '') as_dir=./ ;;
  12264. */) ;;
  12265. *) as_dir=$as_dir/ ;;
  12266. esac
  12267. for ac_exec_ext in '' $ac_executable_extensions; do
  12268. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12269. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12271. break 2
  12272. fi
  12273. done
  12274. done
  12275. IFS=$as_save_IFS
  12276. fi
  12277. fi
  12278. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12279. if test -n "$ac_ct_CXX"; then
  12280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12281. printf "%s\n" "$ac_ct_CXX" >&6; }
  12282. else
  12283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12284. printf "%s\n" "no" >&6; }
  12285. fi
  12286. test -n "$ac_ct_CXX" && break
  12287. done
  12288. if test "x$ac_ct_CXX" = x; then
  12289. CXX="g++"
  12290. else
  12291. case $cross_compiling:$ac_tool_warned in
  12292. yes:)
  12293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12294. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12295. ac_tool_warned=yes ;;
  12296. esac
  12297. CXX=$ac_ct_CXX
  12298. fi
  12299. fi
  12300. fi
  12301. fi
  12302. # Provide some information about the compiler.
  12303. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12304. set X $ac_compile
  12305. ac_compiler=$2
  12306. for ac_option in --version -v -V -qversion; do
  12307. { { ac_try="$ac_compiler $ac_option >&5"
  12308. case "(($ac_try" in
  12309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12310. *) ac_try_echo=$ac_try;;
  12311. esac
  12312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12313. printf "%s\n" "$ac_try_echo"; } >&5
  12314. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12315. ac_status=$?
  12316. if test -s conftest.err; then
  12317. sed '10a\
  12318. ... rest of stderr output deleted ...
  12319. 10q' conftest.err >conftest.er1
  12320. cat conftest.er1 >&5
  12321. fi
  12322. rm -f conftest.er1 conftest.err
  12323. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12324. test $ac_status = 0; }
  12325. done
  12326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12327. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12328. if test ${ac_cv_cxx_compiler_gnu+y}
  12329. then :
  12330. printf %s "(cached) " >&6
  12331. else $as_nop
  12332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12333. /* end confdefs.h. */
  12334. int
  12335. main (void)
  12336. {
  12337. #ifndef __GNUC__
  12338. choke me
  12339. #endif
  12340. ;
  12341. return 0;
  12342. }
  12343. _ACEOF
  12344. if ac_fn_cxx_try_compile "$LINENO"
  12345. then :
  12346. ac_compiler_gnu=yes
  12347. else $as_nop
  12348. ac_compiler_gnu=no
  12349. fi
  12350. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12351. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12352. fi
  12353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12354. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12355. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12356. if test $ac_compiler_gnu = yes; then
  12357. GXX=yes
  12358. else
  12359. GXX=
  12360. fi
  12361. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12362. ac_save_CXXFLAGS=$CXXFLAGS
  12363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12364. printf %s "checking whether $CXX accepts -g... " >&6; }
  12365. if test ${ac_cv_prog_cxx_g+y}
  12366. then :
  12367. printf %s "(cached) " >&6
  12368. else $as_nop
  12369. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12370. ac_cxx_werror_flag=yes
  12371. ac_cv_prog_cxx_g=no
  12372. CXXFLAGS="-g"
  12373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12374. /* end confdefs.h. */
  12375. int
  12376. main (void)
  12377. {
  12378. ;
  12379. return 0;
  12380. }
  12381. _ACEOF
  12382. if ac_fn_cxx_try_compile "$LINENO"
  12383. then :
  12384. ac_cv_prog_cxx_g=yes
  12385. else $as_nop
  12386. CXXFLAGS=""
  12387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12388. /* end confdefs.h. */
  12389. int
  12390. main (void)
  12391. {
  12392. ;
  12393. return 0;
  12394. }
  12395. _ACEOF
  12396. if ac_fn_cxx_try_compile "$LINENO"
  12397. then :
  12398. else $as_nop
  12399. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12400. CXXFLAGS="-g"
  12401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12402. /* end confdefs.h. */
  12403. int
  12404. main (void)
  12405. {
  12406. ;
  12407. return 0;
  12408. }
  12409. _ACEOF
  12410. if ac_fn_cxx_try_compile "$LINENO"
  12411. then :
  12412. ac_cv_prog_cxx_g=yes
  12413. fi
  12414. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12415. fi
  12416. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12417. fi
  12418. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12419. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12420. fi
  12421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12422. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12423. if test $ac_test_CXXFLAGS; then
  12424. CXXFLAGS=$ac_save_CXXFLAGS
  12425. elif test $ac_cv_prog_cxx_g = yes; then
  12426. if test "$GXX" = yes; then
  12427. CXXFLAGS="-g -O2"
  12428. else
  12429. CXXFLAGS="-g"
  12430. fi
  12431. else
  12432. if test "$GXX" = yes; then
  12433. CXXFLAGS="-O2"
  12434. else
  12435. CXXFLAGS=
  12436. fi
  12437. fi
  12438. ac_prog_cxx_stdcxx=no
  12439. if test x$ac_prog_cxx_stdcxx = xno
  12440. then :
  12441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12442. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12443. if test ${ac_cv_prog_cxx_11+y}
  12444. then :
  12445. printf %s "(cached) " >&6
  12446. else $as_nop
  12447. ac_cv_prog_cxx_11=no
  12448. ac_save_CXX=$CXX
  12449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12450. /* end confdefs.h. */
  12451. $ac_cxx_conftest_cxx11_program
  12452. _ACEOF
  12453. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12454. do
  12455. CXX="$ac_save_CXX $ac_arg"
  12456. if ac_fn_cxx_try_compile "$LINENO"
  12457. then :
  12458. ac_cv_prog_cxx_cxx11=$ac_arg
  12459. fi
  12460. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12461. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12462. done
  12463. rm -f conftest.$ac_ext
  12464. CXX=$ac_save_CXX
  12465. fi
  12466. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12467. then :
  12468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12469. printf "%s\n" "unsupported" >&6; }
  12470. else $as_nop
  12471. if test "x$ac_cv_prog_cxx_cxx11" = x
  12472. then :
  12473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12474. printf "%s\n" "none needed" >&6; }
  12475. else $as_nop
  12476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12477. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12478. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12479. fi
  12480. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12481. ac_prog_cxx_stdcxx=cxx11
  12482. fi
  12483. fi
  12484. if test x$ac_prog_cxx_stdcxx = xno
  12485. then :
  12486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12487. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12488. if test ${ac_cv_prog_cxx_98+y}
  12489. then :
  12490. printf %s "(cached) " >&6
  12491. else $as_nop
  12492. ac_cv_prog_cxx_98=no
  12493. ac_save_CXX=$CXX
  12494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12495. /* end confdefs.h. */
  12496. $ac_cxx_conftest_cxx98_program
  12497. _ACEOF
  12498. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12499. do
  12500. CXX="$ac_save_CXX $ac_arg"
  12501. if ac_fn_cxx_try_compile "$LINENO"
  12502. then :
  12503. ac_cv_prog_cxx_cxx98=$ac_arg
  12504. fi
  12505. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12506. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12507. done
  12508. rm -f conftest.$ac_ext
  12509. CXX=$ac_save_CXX
  12510. fi
  12511. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12512. then :
  12513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12514. printf "%s\n" "unsupported" >&6; }
  12515. else $as_nop
  12516. if test "x$ac_cv_prog_cxx_cxx98" = x
  12517. then :
  12518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12519. printf "%s\n" "none needed" >&6; }
  12520. else $as_nop
  12521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12522. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12523. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12524. fi
  12525. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12526. ac_prog_cxx_stdcxx=cxx98
  12527. fi
  12528. fi
  12529. ac_ext=cpp
  12530. ac_cpp='$CXXCPP $CPPFLAGS'
  12531. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12532. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12533. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12534. depcc="$CXX" am_compiler_list=
  12535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12536. printf %s "checking dependency style of $depcc... " >&6; }
  12537. if test ${am_cv_CXX_dependencies_compiler_type+y}
  12538. then :
  12539. printf %s "(cached) " >&6
  12540. else $as_nop
  12541. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12542. # We make a subdir and do the tests there. Otherwise we can end up
  12543. # making bogus files that we don't know about and never remove. For
  12544. # instance it was reported that on HP-UX the gcc test will end up
  12545. # making a dummy file named 'D' -- because '-MD' means "put the output
  12546. # in D".
  12547. rm -rf conftest.dir
  12548. mkdir conftest.dir
  12549. # Copy depcomp to subdir because otherwise we won't find it if we're
  12550. # using a relative directory.
  12551. cp "$am_depcomp" conftest.dir
  12552. cd conftest.dir
  12553. # We will build objects and dependencies in a subdirectory because
  12554. # it helps to detect inapplicable dependency modes. For instance
  12555. # both Tru64's cc and ICC support -MD to output dependencies as a
  12556. # side effect of compilation, but ICC will put the dependencies in
  12557. # the current directory while Tru64 will put them in the object
  12558. # directory.
  12559. mkdir sub
  12560. am_cv_CXX_dependencies_compiler_type=none
  12561. if test "$am_compiler_list" = ""; then
  12562. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12563. fi
  12564. am__universal=false
  12565. case " $depcc " in #(
  12566. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12567. esac
  12568. for depmode in $am_compiler_list; do
  12569. # Setup a source with many dependencies, because some compilers
  12570. # like to wrap large dependency lists on column 80 (with \), and
  12571. # we should not choose a depcomp mode which is confused by this.
  12572. #
  12573. # We need to recreate these files for each test, as the compiler may
  12574. # overwrite some of them when testing with obscure command lines.
  12575. # This happens at least with the AIX C compiler.
  12576. : > sub/conftest.c
  12577. for i in 1 2 3 4 5 6; do
  12578. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12579. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12580. # Solaris 10 /bin/sh.
  12581. echo '/* dummy */' > sub/conftst$i.h
  12582. done
  12583. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12584. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12585. # mode. It turns out that the SunPro C++ compiler does not properly
  12586. # handle '-M -o', and we need to detect this. Also, some Intel
  12587. # versions had trouble with output in subdirs.
  12588. am__obj=sub/conftest.${OBJEXT-o}
  12589. am__minus_obj="-o $am__obj"
  12590. case $depmode in
  12591. gcc)
  12592. # This depmode causes a compiler race in universal mode.
  12593. test "$am__universal" = false || continue
  12594. ;;
  12595. nosideeffect)
  12596. # After this tag, mechanisms are not by side-effect, so they'll
  12597. # only be used when explicitly requested.
  12598. if test "x$enable_dependency_tracking" = xyes; then
  12599. continue
  12600. else
  12601. break
  12602. fi
  12603. ;;
  12604. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12605. # This compiler won't grok '-c -o', but also, the minuso test has
  12606. # not run yet. These depmodes are late enough in the game, and
  12607. # so weak that their functioning should not be impacted.
  12608. am__obj=conftest.${OBJEXT-o}
  12609. am__minus_obj=
  12610. ;;
  12611. none) break ;;
  12612. esac
  12613. if depmode=$depmode \
  12614. source=sub/conftest.c object=$am__obj \
  12615. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12616. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12617. >/dev/null 2>conftest.err &&
  12618. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12619. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12620. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12621. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12622. # icc doesn't choke on unknown options, it will just issue warnings
  12623. # or remarks (even with -Werror). So we grep stderr for any message
  12624. # that says an option was ignored or not supported.
  12625. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12626. # icc: Command line warning: ignoring option '-M'; no argument required
  12627. # The diagnosis changed in icc 8.0:
  12628. # icc: Command line remark: option '-MP' not supported
  12629. if (grep 'ignoring option' conftest.err ||
  12630. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12631. am_cv_CXX_dependencies_compiler_type=$depmode
  12632. break
  12633. fi
  12634. fi
  12635. done
  12636. cd ..
  12637. rm -rf conftest.dir
  12638. else
  12639. am_cv_CXX_dependencies_compiler_type=none
  12640. fi
  12641. fi
  12642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12643. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12644. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12645. if
  12646. test "x$enable_dependency_tracking" != xno \
  12647. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12648. am__fastdepCXX_TRUE=
  12649. am__fastdepCXX_FALSE='#'
  12650. else
  12651. am__fastdepCXX_TRUE='#'
  12652. am__fastdepCXX_FALSE=
  12653. fi
  12654. func_stripname_cnf ()
  12655. {
  12656. case $2 in
  12657. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12658. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12659. esac
  12660. } # func_stripname_cnf
  12661. if test -n "$CXX" && ( test no != "$CXX" &&
  12662. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12663. (test g++ != "$CXX"))); then
  12664. ac_ext=cpp
  12665. ac_cpp='$CXXCPP $CPPFLAGS'
  12666. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12667. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12668. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12670. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12671. if test -z "$CXXCPP"; then
  12672. if test ${ac_cv_prog_CXXCPP+y}
  12673. then :
  12674. printf %s "(cached) " >&6
  12675. else $as_nop
  12676. # Double quotes because $CXX needs to be expanded
  12677. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12678. do
  12679. ac_preproc_ok=false
  12680. for ac_cxx_preproc_warn_flag in '' yes
  12681. do
  12682. # Use a header file that comes with gcc, so configuring glibc
  12683. # with a fresh cross-compiler works.
  12684. # On the NeXT, cc -E runs the code through the compiler's parser,
  12685. # not just through cpp. "Syntax error" is here to catch this case.
  12686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12687. /* end confdefs.h. */
  12688. #include <limits.h>
  12689. Syntax error
  12690. _ACEOF
  12691. if ac_fn_cxx_try_cpp "$LINENO"
  12692. then :
  12693. else $as_nop
  12694. # Broken: fails on valid input.
  12695. continue
  12696. fi
  12697. rm -f conftest.err conftest.i conftest.$ac_ext
  12698. # OK, works on sane cases. Now check whether nonexistent headers
  12699. # can be detected and how.
  12700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12701. /* end confdefs.h. */
  12702. #include <ac_nonexistent.h>
  12703. _ACEOF
  12704. if ac_fn_cxx_try_cpp "$LINENO"
  12705. then :
  12706. # Broken: success on invalid input.
  12707. continue
  12708. else $as_nop
  12709. # Passes both tests.
  12710. ac_preproc_ok=:
  12711. break
  12712. fi
  12713. rm -f conftest.err conftest.i conftest.$ac_ext
  12714. done
  12715. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12716. rm -f conftest.i conftest.err conftest.$ac_ext
  12717. if $ac_preproc_ok
  12718. then :
  12719. break
  12720. fi
  12721. done
  12722. ac_cv_prog_CXXCPP=$CXXCPP
  12723. fi
  12724. CXXCPP=$ac_cv_prog_CXXCPP
  12725. else
  12726. ac_cv_prog_CXXCPP=$CXXCPP
  12727. fi
  12728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12729. printf "%s\n" "$CXXCPP" >&6; }
  12730. ac_preproc_ok=false
  12731. for ac_cxx_preproc_warn_flag in '' yes
  12732. do
  12733. # Use a header file that comes with gcc, so configuring glibc
  12734. # with a fresh cross-compiler works.
  12735. # On the NeXT, cc -E runs the code through the compiler's parser,
  12736. # not just through cpp. "Syntax error" is here to catch this case.
  12737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12738. /* end confdefs.h. */
  12739. #include <limits.h>
  12740. Syntax error
  12741. _ACEOF
  12742. if ac_fn_cxx_try_cpp "$LINENO"
  12743. then :
  12744. else $as_nop
  12745. # Broken: fails on valid input.
  12746. continue
  12747. fi
  12748. rm -f conftest.err conftest.i conftest.$ac_ext
  12749. # OK, works on sane cases. Now check whether nonexistent headers
  12750. # can be detected and how.
  12751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12752. /* end confdefs.h. */
  12753. #include <ac_nonexistent.h>
  12754. _ACEOF
  12755. if ac_fn_cxx_try_cpp "$LINENO"
  12756. then :
  12757. # Broken: success on invalid input.
  12758. continue
  12759. else $as_nop
  12760. # Passes both tests.
  12761. ac_preproc_ok=:
  12762. break
  12763. fi
  12764. rm -f conftest.err conftest.i conftest.$ac_ext
  12765. done
  12766. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12767. rm -f conftest.i conftest.err conftest.$ac_ext
  12768. if $ac_preproc_ok
  12769. then :
  12770. else $as_nop
  12771. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12772. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12773. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12774. See \`config.log' for more details" "$LINENO" 5; }
  12775. fi
  12776. ac_ext=cpp
  12777. ac_cpp='$CXXCPP $CPPFLAGS'
  12778. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12779. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12780. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12781. else
  12782. _lt_caught_CXX_error=yes
  12783. fi
  12784. ac_ext=cpp
  12785. ac_cpp='$CXXCPP $CPPFLAGS'
  12786. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12787. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12788. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12789. archive_cmds_need_lc_CXX=no
  12790. allow_undefined_flag_CXX=
  12791. always_export_symbols_CXX=no
  12792. archive_expsym_cmds_CXX=
  12793. compiler_needs_object_CXX=no
  12794. export_dynamic_flag_spec_CXX=
  12795. hardcode_direct_CXX=no
  12796. hardcode_direct_absolute_CXX=no
  12797. hardcode_libdir_flag_spec_CXX=
  12798. hardcode_libdir_separator_CXX=
  12799. hardcode_minus_L_CXX=no
  12800. hardcode_shlibpath_var_CXX=unsupported
  12801. hardcode_automatic_CXX=no
  12802. inherit_rpath_CXX=no
  12803. module_cmds_CXX=
  12804. module_expsym_cmds_CXX=
  12805. link_all_deplibs_CXX=unknown
  12806. old_archive_cmds_CXX=$old_archive_cmds
  12807. reload_flag_CXX=$reload_flag
  12808. reload_cmds_CXX=$reload_cmds
  12809. no_undefined_flag_CXX=
  12810. whole_archive_flag_spec_CXX=
  12811. enable_shared_with_static_runtimes_CXX=no
  12812. # Source file extension for C++ test sources.
  12813. ac_ext=cpp
  12814. # Object file extension for compiled C++ test sources.
  12815. objext=o
  12816. objext_CXX=$objext
  12817. # No sense in running all these tests if we already determined that
  12818. # the CXX compiler isn't working. Some variables (like enable_shared)
  12819. # are currently assumed to apply to all compilers on this platform,
  12820. # and will be corrupted by setting them based on a non-working compiler.
  12821. if test yes != "$_lt_caught_CXX_error"; then
  12822. # Code to be used in simple compile tests
  12823. lt_simple_compile_test_code="int some_variable = 0;"
  12824. # Code to be used in simple link tests
  12825. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12826. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12827. # If no C compiler was specified, use CC.
  12828. LTCC=${LTCC-"$CC"}
  12829. # If no C compiler flags were specified, use CFLAGS.
  12830. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12831. # Allow CC to be a program name with arguments.
  12832. compiler=$CC
  12833. # save warnings/boilerplate of simple test code
  12834. ac_outfile=conftest.$ac_objext
  12835. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12836. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12837. _lt_compiler_boilerplate=`cat conftest.err`
  12838. $RM conftest*
  12839. ac_outfile=conftest.$ac_objext
  12840. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12841. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12842. _lt_linker_boilerplate=`cat conftest.err`
  12843. $RM -r conftest*
  12844. # Allow CC to be a program name with arguments.
  12845. lt_save_CC=$CC
  12846. lt_save_CFLAGS=$CFLAGS
  12847. lt_save_LD=$LD
  12848. lt_save_GCC=$GCC
  12849. GCC=$GXX
  12850. lt_save_with_gnu_ld=$with_gnu_ld
  12851. lt_save_path_LD=$lt_cv_path_LD
  12852. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12853. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12854. else
  12855. $as_unset lt_cv_prog_gnu_ld
  12856. fi
  12857. if test -n "${lt_cv_path_LDCXX+set}"; then
  12858. lt_cv_path_LD=$lt_cv_path_LDCXX
  12859. else
  12860. $as_unset lt_cv_path_LD
  12861. fi
  12862. test -z "${LDCXX+set}" || LD=$LDCXX
  12863. CC=${CXX-"c++"}
  12864. CFLAGS=$CXXFLAGS
  12865. compiler=$CC
  12866. compiler_CXX=$CC
  12867. func_cc_basename $compiler
  12868. cc_basename=$func_cc_basename_result
  12869. if test -n "$compiler"; then
  12870. # We don't want -fno-exception when compiling C++ code, so set the
  12871. # no_builtin_flag separately
  12872. if test yes = "$GXX"; then
  12873. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12874. else
  12875. lt_prog_compiler_no_builtin_flag_CXX=
  12876. fi
  12877. if test yes = "$GXX"; then
  12878. # Set up default GNU C++ configuration
  12879. # Check whether --with-gnu-ld was given.
  12880. if test ${with_gnu_ld+y}
  12881. then :
  12882. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12883. else $as_nop
  12884. with_gnu_ld=no
  12885. fi
  12886. ac_prog=ld
  12887. if test yes = "$GCC"; then
  12888. # Check if gcc -print-prog-name=ld gives a path.
  12889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12890. printf %s "checking for ld used by $CC... " >&6; }
  12891. case $host in
  12892. *-*-mingw*)
  12893. # gcc leaves a trailing carriage return, which upsets mingw
  12894. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12895. *)
  12896. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12897. esac
  12898. case $ac_prog in
  12899. # Accept absolute paths.
  12900. [\\/]* | ?:[\\/]*)
  12901. re_direlt='/[^/][^/]*/\.\./'
  12902. # Canonicalize the pathname of ld
  12903. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12904. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12905. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12906. done
  12907. test -z "$LD" && LD=$ac_prog
  12908. ;;
  12909. "")
  12910. # If it fails, then pretend we aren't using GCC.
  12911. ac_prog=ld
  12912. ;;
  12913. *)
  12914. # If it is relative, then search for the first ld in PATH.
  12915. with_gnu_ld=unknown
  12916. ;;
  12917. esac
  12918. elif test yes = "$with_gnu_ld"; then
  12919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12920. printf %s "checking for GNU ld... " >&6; }
  12921. else
  12922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12923. printf %s "checking for non-GNU ld... " >&6; }
  12924. fi
  12925. if test ${lt_cv_path_LD+y}
  12926. then :
  12927. printf %s "(cached) " >&6
  12928. else $as_nop
  12929. if test -z "$LD"; then
  12930. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12931. for ac_dir in $PATH; do
  12932. IFS=$lt_save_ifs
  12933. test -z "$ac_dir" && ac_dir=.
  12934. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12935. lt_cv_path_LD=$ac_dir/$ac_prog
  12936. # Check to see if the program is GNU ld. I'd rather use --version,
  12937. # but apparently some variants of GNU ld only accept -v.
  12938. # Break only if it was the GNU/non-GNU ld that we prefer.
  12939. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12940. *GNU* | *'with BFD'*)
  12941. test no != "$with_gnu_ld" && break
  12942. ;;
  12943. *)
  12944. test yes != "$with_gnu_ld" && break
  12945. ;;
  12946. esac
  12947. fi
  12948. done
  12949. IFS=$lt_save_ifs
  12950. else
  12951. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12952. fi
  12953. fi
  12954. LD=$lt_cv_path_LD
  12955. if test -n "$LD"; then
  12956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12957. printf "%s\n" "$LD" >&6; }
  12958. else
  12959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12960. printf "%s\n" "no" >&6; }
  12961. fi
  12962. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12964. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12965. if test ${lt_cv_prog_gnu_ld+y}
  12966. then :
  12967. printf %s "(cached) " >&6
  12968. else $as_nop
  12969. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12970. case `$LD -v 2>&1 </dev/null` in
  12971. *GNU* | *'with BFD'*)
  12972. lt_cv_prog_gnu_ld=yes
  12973. ;;
  12974. *)
  12975. lt_cv_prog_gnu_ld=no
  12976. ;;
  12977. esac
  12978. fi
  12979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12980. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12981. with_gnu_ld=$lt_cv_prog_gnu_ld
  12982. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12983. # archiving commands below assume that GNU ld is being used.
  12984. if test yes = "$with_gnu_ld"; then
  12985. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12986. 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'
  12987. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12988. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12989. # If archive_cmds runs LD, not CC, wlarc should be empty
  12990. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12991. # investigate it a little bit more. (MM)
  12992. wlarc='$wl'
  12993. # ancient GNU ld didn't support --whole-archive et. al.
  12994. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12995. $GREP 'no-whole-archive' > /dev/null; then
  12996. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12997. else
  12998. whole_archive_flag_spec_CXX=
  12999. fi
  13000. else
  13001. with_gnu_ld=no
  13002. wlarc=
  13003. # A generic and very simple default shared library creation
  13004. # command for GNU C++ for the case where it uses the native
  13005. # linker, instead of GNU ld. If possible, this setting should
  13006. # overridden to take advantage of the native linker features on
  13007. # the platform it is being used on.
  13008. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13009. fi
  13010. # Commands to make compiler produce verbose output that lists
  13011. # what "hidden" libraries, object files and flags are used when
  13012. # linking a shared library.
  13013. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13014. else
  13015. GXX=no
  13016. with_gnu_ld=no
  13017. wlarc=
  13018. fi
  13019. # PORTME: fill in a description of your system's C++ link characteristics
  13020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13021. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13022. ld_shlibs_CXX=yes
  13023. case $host_os in
  13024. aix3*)
  13025. # FIXME: insert proper C++ library support
  13026. ld_shlibs_CXX=no
  13027. ;;
  13028. aix[4-9]*)
  13029. if test ia64 = "$host_cpu"; then
  13030. # On IA64, the linker does run time linking by default, so we don't
  13031. # have to do anything special.
  13032. aix_use_runtimelinking=no
  13033. exp_sym_flag='-Bexport'
  13034. no_entry_flag=
  13035. else
  13036. aix_use_runtimelinking=no
  13037. # Test if we are trying to use run time linking or normal
  13038. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13039. # have runtime linking enabled, and use it for executables.
  13040. # For shared libraries, we enable/disable runtime linking
  13041. # depending on the kind of the shared library created -
  13042. # when "with_aix_soname,aix_use_runtimelinking" is:
  13043. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13044. # "aix,yes" lib.so shared, rtl:yes, for executables
  13045. # lib.a static archive
  13046. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13047. # lib.a(lib.so.V) shared, rtl:no, for executables
  13048. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13049. # lib.a(lib.so.V) shared, rtl:no
  13050. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13051. # lib.a static archive
  13052. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13053. for ld_flag in $LDFLAGS; do
  13054. case $ld_flag in
  13055. *-brtl*)
  13056. aix_use_runtimelinking=yes
  13057. break
  13058. ;;
  13059. esac
  13060. done
  13061. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13062. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13063. # so we don't have lib.a shared libs to link our executables.
  13064. # We have to force runtime linking in this case.
  13065. aix_use_runtimelinking=yes
  13066. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13067. fi
  13068. ;;
  13069. esac
  13070. exp_sym_flag='-bexport'
  13071. no_entry_flag='-bnoentry'
  13072. fi
  13073. # When large executables or shared objects are built, AIX ld can
  13074. # have problems creating the table of contents. If linking a library
  13075. # or program results in "error TOC overflow" add -mminimal-toc to
  13076. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13077. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13078. archive_cmds_CXX=''
  13079. hardcode_direct_CXX=yes
  13080. hardcode_direct_absolute_CXX=yes
  13081. hardcode_libdir_separator_CXX=':'
  13082. link_all_deplibs_CXX=yes
  13083. file_list_spec_CXX='$wl-f,'
  13084. case $with_aix_soname,$aix_use_runtimelinking in
  13085. aix,*) ;; # no import file
  13086. svr4,* | *,yes) # use import file
  13087. # The Import File defines what to hardcode.
  13088. hardcode_direct_CXX=no
  13089. hardcode_direct_absolute_CXX=no
  13090. ;;
  13091. esac
  13092. if test yes = "$GXX"; then
  13093. case $host_os in aix4.[012]|aix4.[012].*)
  13094. # We only want to do this on AIX 4.2 and lower, the check
  13095. # below for broken collect2 doesn't work under 4.3+
  13096. collect2name=`$CC -print-prog-name=collect2`
  13097. if test -f "$collect2name" &&
  13098. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13099. then
  13100. # We have reworked collect2
  13101. :
  13102. else
  13103. # We have old collect2
  13104. hardcode_direct_CXX=unsupported
  13105. # It fails to find uninstalled libraries when the uninstalled
  13106. # path is not listed in the libpath. Setting hardcode_minus_L
  13107. # to unsupported forces relinking
  13108. hardcode_minus_L_CXX=yes
  13109. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13110. hardcode_libdir_separator_CXX=
  13111. fi
  13112. esac
  13113. shared_flag='-shared'
  13114. if test yes = "$aix_use_runtimelinking"; then
  13115. shared_flag=$shared_flag' $wl-G'
  13116. fi
  13117. # Need to ensure runtime linking is disabled for the traditional
  13118. # shared library, or the linker may eventually find shared libraries
  13119. # /with/ Import File - we do not want to mix them.
  13120. shared_flag_aix='-shared'
  13121. shared_flag_svr4='-shared $wl-G'
  13122. else
  13123. # not using gcc
  13124. if test ia64 = "$host_cpu"; then
  13125. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13126. # chokes on -Wl,-G. The following line is correct:
  13127. shared_flag='-G'
  13128. else
  13129. if test yes = "$aix_use_runtimelinking"; then
  13130. shared_flag='$wl-G'
  13131. else
  13132. shared_flag='$wl-bM:SRE'
  13133. fi
  13134. shared_flag_aix='$wl-bM:SRE'
  13135. shared_flag_svr4='$wl-G'
  13136. fi
  13137. fi
  13138. export_dynamic_flag_spec_CXX='$wl-bexpall'
  13139. # It seems that -bexpall does not export symbols beginning with
  13140. # underscore (_), so it is better to generate a list of symbols to
  13141. # export.
  13142. always_export_symbols_CXX=yes
  13143. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13144. # Warning - without using the other runtime loading flags (-brtl),
  13145. # -berok will link without error, but may produce a broken library.
  13146. # The "-G" linker flag allows undefined symbols.
  13147. no_undefined_flag_CXX='-bernotok'
  13148. # Determine the default libpath from the value encoded in an empty
  13149. # executable.
  13150. if test set = "${lt_cv_aix_libpath+set}"; then
  13151. aix_libpath=$lt_cv_aix_libpath
  13152. else
  13153. if test ${lt_cv_aix_libpath__CXX+y}
  13154. then :
  13155. printf %s "(cached) " >&6
  13156. else $as_nop
  13157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13158. /* end confdefs.h. */
  13159. int
  13160. main (void)
  13161. {
  13162. ;
  13163. return 0;
  13164. }
  13165. _ACEOF
  13166. if ac_fn_cxx_try_link "$LINENO"
  13167. then :
  13168. lt_aix_libpath_sed='
  13169. /Import File Strings/,/^$/ {
  13170. /^0/ {
  13171. s/^0 *\([^ ]*\) *$/\1/
  13172. p
  13173. }
  13174. }'
  13175. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13176. # Check for a 64-bit object if we didn't find anything.
  13177. if test -z "$lt_cv_aix_libpath__CXX"; then
  13178. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13179. fi
  13180. fi
  13181. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13182. conftest$ac_exeext conftest.$ac_ext
  13183. if test -z "$lt_cv_aix_libpath__CXX"; then
  13184. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13185. fi
  13186. fi
  13187. aix_libpath=$lt_cv_aix_libpath__CXX
  13188. fi
  13189. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13190. 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
  13191. else
  13192. if test ia64 = "$host_cpu"; then
  13193. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  13194. allow_undefined_flag_CXX="-z nodefs"
  13195. 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"
  13196. else
  13197. # Determine the default libpath from the value encoded in an
  13198. # empty executable.
  13199. if test set = "${lt_cv_aix_libpath+set}"; then
  13200. aix_libpath=$lt_cv_aix_libpath
  13201. else
  13202. if test ${lt_cv_aix_libpath__CXX+y}
  13203. then :
  13204. printf %s "(cached) " >&6
  13205. else $as_nop
  13206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13207. /* end confdefs.h. */
  13208. int
  13209. main (void)
  13210. {
  13211. ;
  13212. return 0;
  13213. }
  13214. _ACEOF
  13215. if ac_fn_cxx_try_link "$LINENO"
  13216. then :
  13217. lt_aix_libpath_sed='
  13218. /Import File Strings/,/^$/ {
  13219. /^0/ {
  13220. s/^0 *\([^ ]*\) *$/\1/
  13221. p
  13222. }
  13223. }'
  13224. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13225. # Check for a 64-bit object if we didn't find anything.
  13226. if test -z "$lt_cv_aix_libpath__CXX"; then
  13227. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13228. fi
  13229. fi
  13230. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13231. conftest$ac_exeext conftest.$ac_ext
  13232. if test -z "$lt_cv_aix_libpath__CXX"; then
  13233. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13234. fi
  13235. fi
  13236. aix_libpath=$lt_cv_aix_libpath__CXX
  13237. fi
  13238. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13239. # Warning - without using the other run time loading flags,
  13240. # -berok will link without error, but may produce a broken library.
  13241. no_undefined_flag_CXX=' $wl-bernotok'
  13242. allow_undefined_flag_CXX=' $wl-berok'
  13243. if test yes = "$with_gnu_ld"; then
  13244. # We only use this code for GNU lds that support --whole-archive.
  13245. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13246. else
  13247. # Exported symbols can be pulled into shared objects from archives
  13248. whole_archive_flag_spec_CXX='$convenience'
  13249. fi
  13250. archive_cmds_need_lc_CXX=yes
  13251. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13252. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13253. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13254. if test svr4 != "$with_aix_soname"; then
  13255. # This is similar to how AIX traditionally builds its shared
  13256. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13257. 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'
  13258. fi
  13259. if test aix != "$with_aix_soname"; then
  13260. 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'
  13261. else
  13262. # used by -dlpreopen to get the symbols
  13263. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13264. fi
  13265. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13266. fi
  13267. fi
  13268. ;;
  13269. beos*)
  13270. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13271. allow_undefined_flag_CXX=unsupported
  13272. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13273. # support --undefined. This deserves some investigation. FIXME
  13274. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13275. else
  13276. ld_shlibs_CXX=no
  13277. fi
  13278. ;;
  13279. chorus*)
  13280. case $cc_basename in
  13281. *)
  13282. # FIXME: insert proper C++ library support
  13283. ld_shlibs_CXX=no
  13284. ;;
  13285. esac
  13286. ;;
  13287. cygwin* | mingw* | pw32* | cegcc*)
  13288. case $GXX,$cc_basename in
  13289. ,cl* | no,cl*)
  13290. # Native MSVC
  13291. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13292. # no search path for DLLs.
  13293. hardcode_libdir_flag_spec_CXX=' '
  13294. allow_undefined_flag_CXX=unsupported
  13295. always_export_symbols_CXX=yes
  13296. file_list_spec_CXX='@'
  13297. # Tell ltmain to make .lib files, not .a files.
  13298. libext=lib
  13299. # Tell ltmain to make .dll files, not .so files.
  13300. shrext_cmds=.dll
  13301. # FIXME: Setting linknames here is a bad hack.
  13302. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13303. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13304. cp "$export_symbols" "$output_objdir/$soname.def";
  13305. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13306. else
  13307. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13308. fi~
  13309. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13310. linknames='
  13311. # The linker will not automatically build a static lib if we build a DLL.
  13312. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13313. enable_shared_with_static_runtimes_CXX=yes
  13314. # Don't use ranlib
  13315. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13316. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13317. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13318. case $lt_outputfile in
  13319. *.exe|*.EXE) ;;
  13320. *)
  13321. lt_outputfile=$lt_outputfile.exe
  13322. lt_tool_outputfile=$lt_tool_outputfile.exe
  13323. ;;
  13324. esac~
  13325. func_to_tool_file "$lt_outputfile"~
  13326. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13327. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13328. $RM "$lt_outputfile.manifest";
  13329. fi'
  13330. ;;
  13331. *)
  13332. # g++
  13333. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13334. # as there is no search path for DLLs.
  13335. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13336. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13337. allow_undefined_flag_CXX=unsupported
  13338. always_export_symbols_CXX=no
  13339. enable_shared_with_static_runtimes_CXX=yes
  13340. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13341. 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'
  13342. # If the export-symbols file already is a .def file, use it as
  13343. # is; otherwise, prepend EXPORTS...
  13344. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13345. cp $export_symbols $output_objdir/$soname.def;
  13346. else
  13347. echo EXPORTS > $output_objdir/$soname.def;
  13348. cat $export_symbols >> $output_objdir/$soname.def;
  13349. fi~
  13350. $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'
  13351. else
  13352. ld_shlibs_CXX=no
  13353. fi
  13354. ;;
  13355. esac
  13356. ;;
  13357. darwin* | rhapsody*)
  13358. archive_cmds_need_lc_CXX=no
  13359. hardcode_direct_CXX=no
  13360. hardcode_automatic_CXX=yes
  13361. hardcode_shlibpath_var_CXX=unsupported
  13362. if test yes = "$lt_cv_ld_force_load"; then
  13363. 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\"`'
  13364. else
  13365. whole_archive_flag_spec_CXX=''
  13366. fi
  13367. link_all_deplibs_CXX=yes
  13368. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13369. case $cc_basename in
  13370. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13371. *) _lt_dar_can_shared=$GCC ;;
  13372. esac
  13373. if test yes = "$_lt_dar_can_shared"; then
  13374. output_verbose_link_cmd=func_echo_all
  13375. 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"
  13376. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13377. 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"
  13378. 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"
  13379. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13380. 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"
  13381. 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"
  13382. fi
  13383. else
  13384. ld_shlibs_CXX=no
  13385. fi
  13386. ;;
  13387. os2*)
  13388. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13389. hardcode_minus_L_CXX=yes
  13390. allow_undefined_flag_CXX=unsupported
  13391. shrext_cmds=.dll
  13392. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13393. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13394. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13395. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13396. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13397. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13398. emximp -o $lib $output_objdir/$libname.def'
  13399. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13400. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13401. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13402. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13403. prefix_cmds="$SED"~
  13404. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13405. prefix_cmds="$prefix_cmds -e 1d";
  13406. fi~
  13407. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13408. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13409. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13410. emximp -o $lib $output_objdir/$libname.def'
  13411. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13412. enable_shared_with_static_runtimes_CXX=yes
  13413. ;;
  13414. dgux*)
  13415. case $cc_basename in
  13416. ec++*)
  13417. # FIXME: insert proper C++ library support
  13418. ld_shlibs_CXX=no
  13419. ;;
  13420. ghcx*)
  13421. # Green Hills C++ Compiler
  13422. # FIXME: insert proper C++ library support
  13423. ld_shlibs_CXX=no
  13424. ;;
  13425. *)
  13426. # FIXME: insert proper C++ library support
  13427. ld_shlibs_CXX=no
  13428. ;;
  13429. esac
  13430. ;;
  13431. freebsd2.*)
  13432. # C++ shared libraries reported to be fairly broken before
  13433. # switch to ELF
  13434. ld_shlibs_CXX=no
  13435. ;;
  13436. freebsd-elf*)
  13437. archive_cmds_need_lc_CXX=no
  13438. ;;
  13439. freebsd* | dragonfly*)
  13440. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13441. # conventions
  13442. ld_shlibs_CXX=yes
  13443. ;;
  13444. haiku*)
  13445. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13446. link_all_deplibs_CXX=yes
  13447. ;;
  13448. hpux9*)
  13449. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13450. hardcode_libdir_separator_CXX=:
  13451. export_dynamic_flag_spec_CXX='$wl-E'
  13452. hardcode_direct_CXX=yes
  13453. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13454. # but as the default
  13455. # location of the library.
  13456. case $cc_basename in
  13457. CC*)
  13458. # FIXME: insert proper C++ library support
  13459. ld_shlibs_CXX=no
  13460. ;;
  13461. aCC*)
  13462. 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'
  13463. # Commands to make compiler produce verbose output that lists
  13464. # what "hidden" libraries, object files and flags are used when
  13465. # linking a shared library.
  13466. #
  13467. # There doesn't appear to be a way to prevent this compiler from
  13468. # explicitly linking system object files so we need to strip them
  13469. # from the output so that they don't get included in the library
  13470. # dependencies.
  13471. 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"'
  13472. ;;
  13473. *)
  13474. if test yes = "$GXX"; then
  13475. 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'
  13476. else
  13477. # FIXME: insert proper C++ library support
  13478. ld_shlibs_CXX=no
  13479. fi
  13480. ;;
  13481. esac
  13482. ;;
  13483. hpux10*|hpux11*)
  13484. if test no = "$with_gnu_ld"; then
  13485. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13486. hardcode_libdir_separator_CXX=:
  13487. case $host_cpu in
  13488. hppa*64*|ia64*)
  13489. ;;
  13490. *)
  13491. export_dynamic_flag_spec_CXX='$wl-E'
  13492. ;;
  13493. esac
  13494. fi
  13495. case $host_cpu in
  13496. hppa*64*|ia64*)
  13497. hardcode_direct_CXX=no
  13498. hardcode_shlibpath_var_CXX=no
  13499. ;;
  13500. *)
  13501. hardcode_direct_CXX=yes
  13502. hardcode_direct_absolute_CXX=yes
  13503. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13504. # but as the default
  13505. # location of the library.
  13506. ;;
  13507. esac
  13508. case $cc_basename in
  13509. CC*)
  13510. # FIXME: insert proper C++ library support
  13511. ld_shlibs_CXX=no
  13512. ;;
  13513. aCC*)
  13514. case $host_cpu in
  13515. hppa*64*)
  13516. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13517. ;;
  13518. ia64*)
  13519. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13520. ;;
  13521. *)
  13522. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13523. ;;
  13524. esac
  13525. # Commands to make compiler produce verbose output that lists
  13526. # what "hidden" libraries, object files and flags are used when
  13527. # linking a shared library.
  13528. #
  13529. # There doesn't appear to be a way to prevent this compiler from
  13530. # explicitly linking system object files so we need to strip them
  13531. # from the output so that they don't get included in the library
  13532. # dependencies.
  13533. 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"'
  13534. ;;
  13535. *)
  13536. if test yes = "$GXX"; then
  13537. if test no = "$with_gnu_ld"; then
  13538. case $host_cpu in
  13539. hppa*64*)
  13540. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13541. ;;
  13542. ia64*)
  13543. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13544. ;;
  13545. *)
  13546. 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'
  13547. ;;
  13548. esac
  13549. fi
  13550. else
  13551. # FIXME: insert proper C++ library support
  13552. ld_shlibs_CXX=no
  13553. fi
  13554. ;;
  13555. esac
  13556. ;;
  13557. interix[3-9]*)
  13558. hardcode_direct_CXX=no
  13559. hardcode_shlibpath_var_CXX=no
  13560. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13561. export_dynamic_flag_spec_CXX='$wl-E'
  13562. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13563. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13564. # default) and relocated if they conflict, which is a slow very memory
  13565. # consuming and fragmenting process. To avoid this, we pick a random,
  13566. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13567. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13568. 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'
  13569. 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'
  13570. ;;
  13571. irix5* | irix6*)
  13572. case $cc_basename in
  13573. CC*)
  13574. # SGI C++
  13575. 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'
  13576. # Archives containing C++ object files must be created using
  13577. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13578. # necessary to make sure instantiated templates are included
  13579. # in the archive.
  13580. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13581. ;;
  13582. *)
  13583. if test yes = "$GXX"; then
  13584. if test no = "$with_gnu_ld"; then
  13585. 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'
  13586. else
  13587. 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'
  13588. fi
  13589. fi
  13590. link_all_deplibs_CXX=yes
  13591. ;;
  13592. esac
  13593. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13594. hardcode_libdir_separator_CXX=:
  13595. inherit_rpath_CXX=yes
  13596. ;;
  13597. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13598. case $cc_basename in
  13599. KCC*)
  13600. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13601. # KCC will only create a shared library if the output file
  13602. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13603. # to its proper name (with version) after linking.
  13604. 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'
  13605. 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'
  13606. # Commands to make compiler produce verbose output that lists
  13607. # what "hidden" libraries, object files and flags are used when
  13608. # linking a shared library.
  13609. #
  13610. # There doesn't appear to be a way to prevent this compiler from
  13611. # explicitly linking system object files so we need to strip them
  13612. # from the output so that they don't get included in the library
  13613. # dependencies.
  13614. 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"'
  13615. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13616. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13617. # Archives containing C++ object files must be created using
  13618. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13619. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13620. ;;
  13621. icpc* | ecpc* )
  13622. # Intel C++
  13623. with_gnu_ld=yes
  13624. # version 8.0 and above of icpc choke on multiply defined symbols
  13625. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13626. # earlier do not add the objects themselves.
  13627. case `$CC -V 2>&1` in
  13628. *"Version 7."*)
  13629. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13630. 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'
  13631. ;;
  13632. *) # Version 8.0 or newer
  13633. tmp_idyn=
  13634. case $host_cpu in
  13635. ia64*) tmp_idyn=' -i_dynamic';;
  13636. esac
  13637. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13638. 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'
  13639. ;;
  13640. esac
  13641. archive_cmds_need_lc_CXX=no
  13642. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13643. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13644. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13645. ;;
  13646. pgCC* | pgcpp*)
  13647. # Portland Group C++ compiler
  13648. case `$CC -V` in
  13649. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13650. prelink_cmds_CXX='tpldir=Template.dir~
  13651. rm -rf $tpldir~
  13652. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13653. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13654. old_archive_cmds_CXX='tpldir=Template.dir~
  13655. rm -rf $tpldir~
  13656. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13657. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13658. $RANLIB $oldlib'
  13659. archive_cmds_CXX='tpldir=Template.dir~
  13660. rm -rf $tpldir~
  13661. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13662. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13663. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13664. rm -rf $tpldir~
  13665. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13666. $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'
  13667. ;;
  13668. *) # Version 6 and above use weak symbols
  13669. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13670. 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'
  13671. ;;
  13672. esac
  13673. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13674. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13675. 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'
  13676. ;;
  13677. cxx*)
  13678. # Compaq C++
  13679. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13680. 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'
  13681. runpath_var=LD_RUN_PATH
  13682. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13683. hardcode_libdir_separator_CXX=:
  13684. # Commands to make compiler produce verbose output that lists
  13685. # what "hidden" libraries, object files and flags are used when
  13686. # linking a shared library.
  13687. #
  13688. # There doesn't appear to be a way to prevent this compiler from
  13689. # explicitly linking system object files so we need to strip them
  13690. # from the output so that they don't get included in the library
  13691. # dependencies.
  13692. 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'
  13693. ;;
  13694. xl* | mpixl* | bgxl*)
  13695. # IBM XL 8.0 on PPC, with GNU ld
  13696. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13697. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13698. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13699. if test yes = "$supports_anon_versioning"; then
  13700. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13701. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13702. echo "local: *; };" >> $output_objdir/$libname.ver~
  13703. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13704. fi
  13705. ;;
  13706. *)
  13707. case `$CC -V 2>&1 | sed 5q` in
  13708. *Sun\ C*)
  13709. # Sun C++ 5.9
  13710. no_undefined_flag_CXX=' -zdefs'
  13711. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13712. 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'
  13713. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13714. 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'
  13715. compiler_needs_object_CXX=yes
  13716. # Not sure whether something based on
  13717. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13718. # would be better.
  13719. output_verbose_link_cmd='func_echo_all'
  13720. # Archives containing C++ object files must be created using
  13721. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13722. # necessary to make sure instantiated templates are included
  13723. # in the archive.
  13724. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13725. ;;
  13726. esac
  13727. ;;
  13728. esac
  13729. ;;
  13730. lynxos*)
  13731. # FIXME: insert proper C++ library support
  13732. ld_shlibs_CXX=no
  13733. ;;
  13734. m88k*)
  13735. # FIXME: insert proper C++ library support
  13736. ld_shlibs_CXX=no
  13737. ;;
  13738. mvs*)
  13739. case $cc_basename in
  13740. cxx*)
  13741. # FIXME: insert proper C++ library support
  13742. ld_shlibs_CXX=no
  13743. ;;
  13744. *)
  13745. # FIXME: insert proper C++ library support
  13746. ld_shlibs_CXX=no
  13747. ;;
  13748. esac
  13749. ;;
  13750. netbsd*)
  13751. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13752. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13753. wlarc=
  13754. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13755. hardcode_direct_CXX=yes
  13756. hardcode_shlibpath_var_CXX=no
  13757. fi
  13758. # Workaround some broken pre-1.5 toolchains
  13759. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13760. ;;
  13761. *nto* | *qnx*)
  13762. ld_shlibs_CXX=yes
  13763. ;;
  13764. openbsd* | bitrig*)
  13765. if test -f /usr/libexec/ld.so; then
  13766. hardcode_direct_CXX=yes
  13767. hardcode_shlibpath_var_CXX=no
  13768. hardcode_direct_absolute_CXX=yes
  13769. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13770. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13771. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13772. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13773. export_dynamic_flag_spec_CXX='$wl-E'
  13774. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13775. fi
  13776. output_verbose_link_cmd=func_echo_all
  13777. else
  13778. ld_shlibs_CXX=no
  13779. fi
  13780. ;;
  13781. osf3* | osf4* | osf5*)
  13782. case $cc_basename in
  13783. KCC*)
  13784. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13785. # KCC will only create a shared library if the output file
  13786. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13787. # to its proper name (with version) after linking.
  13788. 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'
  13789. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13790. hardcode_libdir_separator_CXX=:
  13791. # Archives containing C++ object files must be created using
  13792. # the KAI C++ compiler.
  13793. case $host in
  13794. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13795. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13796. esac
  13797. ;;
  13798. RCC*)
  13799. # Rational C++ 2.4.1
  13800. # FIXME: insert proper C++ library support
  13801. ld_shlibs_CXX=no
  13802. ;;
  13803. cxx*)
  13804. case $host in
  13805. osf3*)
  13806. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13807. 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'
  13808. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13809. ;;
  13810. *)
  13811. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13812. 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'
  13813. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13814. echo "-hidden">> $lib.exp~
  13815. $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~
  13816. $RM $lib.exp'
  13817. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13818. ;;
  13819. esac
  13820. hardcode_libdir_separator_CXX=:
  13821. # Commands to make compiler produce verbose output that lists
  13822. # what "hidden" libraries, object files and flags are used when
  13823. # linking a shared library.
  13824. #
  13825. # There doesn't appear to be a way to prevent this compiler from
  13826. # explicitly linking system object files so we need to strip them
  13827. # from the output so that they don't get included in the library
  13828. # dependencies.
  13829. 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"'
  13830. ;;
  13831. *)
  13832. if test yes,no = "$GXX,$with_gnu_ld"; then
  13833. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13834. case $host in
  13835. osf3*)
  13836. 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'
  13837. ;;
  13838. *)
  13839. 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'
  13840. ;;
  13841. esac
  13842. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13843. hardcode_libdir_separator_CXX=:
  13844. # Commands to make compiler produce verbose output that lists
  13845. # what "hidden" libraries, object files and flags are used when
  13846. # linking a shared library.
  13847. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13848. else
  13849. # FIXME: insert proper C++ library support
  13850. ld_shlibs_CXX=no
  13851. fi
  13852. ;;
  13853. esac
  13854. ;;
  13855. psos*)
  13856. # FIXME: insert proper C++ library support
  13857. ld_shlibs_CXX=no
  13858. ;;
  13859. sunos4*)
  13860. case $cc_basename in
  13861. CC*)
  13862. # Sun C++ 4.x
  13863. # FIXME: insert proper C++ library support
  13864. ld_shlibs_CXX=no
  13865. ;;
  13866. lcc*)
  13867. # Lucid
  13868. # FIXME: insert proper C++ library support
  13869. ld_shlibs_CXX=no
  13870. ;;
  13871. *)
  13872. # FIXME: insert proper C++ library support
  13873. ld_shlibs_CXX=no
  13874. ;;
  13875. esac
  13876. ;;
  13877. solaris*)
  13878. case $cc_basename in
  13879. CC* | sunCC*)
  13880. # Sun C++ 4.2, 5.x and Centerline C++
  13881. archive_cmds_need_lc_CXX=yes
  13882. no_undefined_flag_CXX=' -zdefs'
  13883. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13884. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13885. $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'
  13886. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13887. hardcode_shlibpath_var_CXX=no
  13888. case $host_os in
  13889. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13890. *)
  13891. # The compiler driver will combine and reorder linker options,
  13892. # but understands '-z linker_flag'.
  13893. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13894. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13895. ;;
  13896. esac
  13897. link_all_deplibs_CXX=yes
  13898. output_verbose_link_cmd='func_echo_all'
  13899. # Archives containing C++ object files must be created using
  13900. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13901. # necessary to make sure instantiated templates are included
  13902. # in the archive.
  13903. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13904. ;;
  13905. gcx*)
  13906. # Green Hills C++ Compiler
  13907. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13908. # The C++ compiler must be used to create the archive.
  13909. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13910. ;;
  13911. *)
  13912. # GNU C++ compiler with Solaris linker
  13913. if test yes,no = "$GXX,$with_gnu_ld"; then
  13914. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13915. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13916. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13917. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13918. $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'
  13919. # Commands to make compiler produce verbose output that lists
  13920. # what "hidden" libraries, object files and flags are used when
  13921. # linking a shared library.
  13922. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13923. else
  13924. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13925. # platform.
  13926. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13927. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13928. $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'
  13929. # Commands to make compiler produce verbose output that lists
  13930. # what "hidden" libraries, object files and flags are used when
  13931. # linking a shared library.
  13932. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13933. fi
  13934. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13935. case $host_os in
  13936. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13937. *)
  13938. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13939. ;;
  13940. esac
  13941. fi
  13942. ;;
  13943. esac
  13944. ;;
  13945. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13946. no_undefined_flag_CXX='$wl-z,text'
  13947. archive_cmds_need_lc_CXX=no
  13948. hardcode_shlibpath_var_CXX=no
  13949. runpath_var='LD_RUN_PATH'
  13950. case $cc_basename in
  13951. CC*)
  13952. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13953. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13954. ;;
  13955. *)
  13956. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13957. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13958. ;;
  13959. esac
  13960. ;;
  13961. sysv5* | sco3.2v5* | sco5v6*)
  13962. # Note: We CANNOT use -z defs as we might desire, because we do not
  13963. # link with -lc, and that would cause any symbols used from libc to
  13964. # always be unresolved, which means just about no library would
  13965. # ever link correctly. If we're not using GNU ld we use -z text
  13966. # though, which does catch some bad symbols but isn't as heavy-handed
  13967. # as -z defs.
  13968. no_undefined_flag_CXX='$wl-z,text'
  13969. allow_undefined_flag_CXX='$wl-z,nodefs'
  13970. archive_cmds_need_lc_CXX=no
  13971. hardcode_shlibpath_var_CXX=no
  13972. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13973. hardcode_libdir_separator_CXX=':'
  13974. link_all_deplibs_CXX=yes
  13975. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13976. runpath_var='LD_RUN_PATH'
  13977. case $cc_basename in
  13978. CC*)
  13979. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13980. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13981. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13982. '"$old_archive_cmds_CXX"
  13983. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13984. '"$reload_cmds_CXX"
  13985. ;;
  13986. *)
  13987. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13988. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13989. ;;
  13990. esac
  13991. ;;
  13992. tandem*)
  13993. case $cc_basename in
  13994. NCC*)
  13995. # NonStop-UX NCC 3.20
  13996. # FIXME: insert proper C++ library support
  13997. ld_shlibs_CXX=no
  13998. ;;
  13999. *)
  14000. # FIXME: insert proper C++ library support
  14001. ld_shlibs_CXX=no
  14002. ;;
  14003. esac
  14004. ;;
  14005. vxworks*)
  14006. # FIXME: insert proper C++ library support
  14007. ld_shlibs_CXX=no
  14008. ;;
  14009. *)
  14010. # FIXME: insert proper C++ library support
  14011. ld_shlibs_CXX=no
  14012. ;;
  14013. esac
  14014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14015. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14016. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14017. GCC_CXX=$GXX
  14018. LD_CXX=$LD
  14019. ## CAVEAT EMPTOR:
  14020. ## There is no encapsulation within the following macros, do not change
  14021. ## the running order or otherwise move them around unless you know exactly
  14022. ## what you are doing...
  14023. # Dependencies to place before and after the object being linked:
  14024. predep_objects_CXX=
  14025. postdep_objects_CXX=
  14026. predeps_CXX=
  14027. postdeps_CXX=
  14028. compiler_lib_search_path_CXX=
  14029. cat > conftest.$ac_ext <<_LT_EOF
  14030. class Foo
  14031. {
  14032. public:
  14033. Foo (void) { a = 0; }
  14034. private:
  14035. int a;
  14036. };
  14037. _LT_EOF
  14038. _lt_libdeps_save_CFLAGS=$CFLAGS
  14039. case "$CC $CFLAGS " in #(
  14040. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14041. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14042. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14043. esac
  14044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14045. (eval $ac_compile) 2>&5
  14046. ac_status=$?
  14047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14048. test $ac_status = 0; }; then
  14049. # Parse the compiler output and extract the necessary
  14050. # objects, libraries and library flags.
  14051. # Sentinel used to keep track of whether or not we are before
  14052. # the conftest object file.
  14053. pre_test_object_deps_done=no
  14054. for p in `eval "$output_verbose_link_cmd"`; do
  14055. case $prev$p in
  14056. -L* | -R* | -l*)
  14057. # Some compilers place space between "-{L,R}" and the path.
  14058. # Remove the space.
  14059. if test x-L = "$p" ||
  14060. test x-R = "$p"; then
  14061. prev=$p
  14062. continue
  14063. fi
  14064. # Expand the sysroot to ease extracting the directories later.
  14065. if test -z "$prev"; then
  14066. case $p in
  14067. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14068. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14069. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14070. esac
  14071. fi
  14072. case $p in
  14073. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14074. esac
  14075. if test no = "$pre_test_object_deps_done"; then
  14076. case $prev in
  14077. -L | -R)
  14078. # Internal compiler library paths should come after those
  14079. # provided the user. The postdeps already come after the
  14080. # user supplied libs so there is no need to process them.
  14081. if test -z "$compiler_lib_search_path_CXX"; then
  14082. compiler_lib_search_path_CXX=$prev$p
  14083. else
  14084. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  14085. fi
  14086. ;;
  14087. # The "-l" case would never come before the object being
  14088. # linked, so don't bother handling this case.
  14089. esac
  14090. else
  14091. if test -z "$postdeps_CXX"; then
  14092. postdeps_CXX=$prev$p
  14093. else
  14094. postdeps_CXX="${postdeps_CXX} $prev$p"
  14095. fi
  14096. fi
  14097. prev=
  14098. ;;
  14099. *.lto.$objext) ;; # Ignore GCC LTO objects
  14100. *.$objext)
  14101. # This assumes that the test object file only shows up
  14102. # once in the compiler output.
  14103. if test "$p" = "conftest.$objext"; then
  14104. pre_test_object_deps_done=yes
  14105. continue
  14106. fi
  14107. if test no = "$pre_test_object_deps_done"; then
  14108. if test -z "$predep_objects_CXX"; then
  14109. predep_objects_CXX=$p
  14110. else
  14111. predep_objects_CXX="$predep_objects_CXX $p"
  14112. fi
  14113. else
  14114. if test -z "$postdep_objects_CXX"; then
  14115. postdep_objects_CXX=$p
  14116. else
  14117. postdep_objects_CXX="$postdep_objects_CXX $p"
  14118. fi
  14119. fi
  14120. ;;
  14121. *) ;; # Ignore the rest.
  14122. esac
  14123. done
  14124. # Clean up.
  14125. rm -f a.out a.exe
  14126. else
  14127. echo "libtool.m4: error: problem compiling CXX test program"
  14128. fi
  14129. $RM -f confest.$objext
  14130. CFLAGS=$_lt_libdeps_save_CFLAGS
  14131. # PORTME: override above test on systems where it is broken
  14132. case $host_os in
  14133. interix[3-9]*)
  14134. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14135. # hack all around it, let's just trust "g++" to DTRT.
  14136. predep_objects_CXX=
  14137. postdep_objects_CXX=
  14138. postdeps_CXX=
  14139. ;;
  14140. esac
  14141. case " $postdeps_CXX " in
  14142. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14143. esac
  14144. compiler_lib_search_dirs_CXX=
  14145. if test -n "${compiler_lib_search_path_CXX}"; then
  14146. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  14147. fi
  14148. lt_prog_compiler_wl_CXX=
  14149. lt_prog_compiler_pic_CXX=
  14150. lt_prog_compiler_static_CXX=
  14151. # C++ specific cases for pic, static, wl, etc.
  14152. if test yes = "$GXX"; then
  14153. lt_prog_compiler_wl_CXX='-Wl,'
  14154. lt_prog_compiler_static_CXX='-static'
  14155. case $host_os in
  14156. aix*)
  14157. # All AIX code is PIC.
  14158. if test ia64 = "$host_cpu"; then
  14159. # AIX 5 now supports IA64 processor
  14160. lt_prog_compiler_static_CXX='-Bstatic'
  14161. fi
  14162. lt_prog_compiler_pic_CXX='-fPIC'
  14163. ;;
  14164. amigaos*)
  14165. case $host_cpu in
  14166. powerpc)
  14167. # see comment about AmigaOS4 .so support
  14168. lt_prog_compiler_pic_CXX='-fPIC'
  14169. ;;
  14170. m68k)
  14171. # FIXME: we need at least 68020 code to build shared libraries, but
  14172. # adding the '-m68020' flag to GCC prevents building anything better,
  14173. # like '-m68040'.
  14174. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14175. ;;
  14176. esac
  14177. ;;
  14178. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14179. # PIC is the default for these OSes.
  14180. ;;
  14181. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14182. # This hack is so that the source file can tell whether it is being
  14183. # built for inclusion in a dll (and should export symbols for example).
  14184. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14185. # (--disable-auto-import) libraries
  14186. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14187. case $host_os in
  14188. os2*)
  14189. lt_prog_compiler_static_CXX='$wl-static'
  14190. ;;
  14191. esac
  14192. ;;
  14193. darwin* | rhapsody*)
  14194. # PIC is the default on this platform
  14195. # Common symbols not allowed in MH_DYLIB files
  14196. lt_prog_compiler_pic_CXX='-fno-common'
  14197. ;;
  14198. *djgpp*)
  14199. # DJGPP does not support shared libraries at all
  14200. lt_prog_compiler_pic_CXX=
  14201. ;;
  14202. haiku*)
  14203. # PIC is the default for Haiku.
  14204. # The "-static" flag exists, but is broken.
  14205. lt_prog_compiler_static_CXX=
  14206. ;;
  14207. interix[3-9]*)
  14208. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14209. # Instead, we relocate shared libraries at runtime.
  14210. ;;
  14211. sysv4*MP*)
  14212. if test -d /usr/nec; then
  14213. lt_prog_compiler_pic_CXX=-Kconform_pic
  14214. fi
  14215. ;;
  14216. hpux*)
  14217. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14218. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14219. # sets the default TLS model and affects inlining.
  14220. case $host_cpu in
  14221. hppa*64*)
  14222. ;;
  14223. *)
  14224. lt_prog_compiler_pic_CXX='-fPIC'
  14225. ;;
  14226. esac
  14227. ;;
  14228. *qnx* | *nto*)
  14229. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14230. # it will coredump.
  14231. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14232. ;;
  14233. *)
  14234. lt_prog_compiler_pic_CXX='-fPIC'
  14235. ;;
  14236. esac
  14237. else
  14238. case $host_os in
  14239. aix[4-9]*)
  14240. # All AIX code is PIC.
  14241. if test ia64 = "$host_cpu"; then
  14242. # AIX 5 now supports IA64 processor
  14243. lt_prog_compiler_static_CXX='-Bstatic'
  14244. else
  14245. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14246. fi
  14247. ;;
  14248. chorus*)
  14249. case $cc_basename in
  14250. cxch68*)
  14251. # Green Hills C++ Compiler
  14252. # _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"
  14253. ;;
  14254. esac
  14255. ;;
  14256. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14257. # This hack is so that the source file can tell whether it is being
  14258. # built for inclusion in a dll (and should export symbols for example).
  14259. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14260. ;;
  14261. dgux*)
  14262. case $cc_basename in
  14263. ec++*)
  14264. lt_prog_compiler_pic_CXX='-KPIC'
  14265. ;;
  14266. ghcx*)
  14267. # Green Hills C++ Compiler
  14268. lt_prog_compiler_pic_CXX='-pic'
  14269. ;;
  14270. *)
  14271. ;;
  14272. esac
  14273. ;;
  14274. freebsd* | dragonfly*)
  14275. # FreeBSD uses GNU C++
  14276. ;;
  14277. hpux9* | hpux10* | hpux11*)
  14278. case $cc_basename in
  14279. CC*)
  14280. lt_prog_compiler_wl_CXX='-Wl,'
  14281. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14282. if test ia64 != "$host_cpu"; then
  14283. lt_prog_compiler_pic_CXX='+Z'
  14284. fi
  14285. ;;
  14286. aCC*)
  14287. lt_prog_compiler_wl_CXX='-Wl,'
  14288. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14289. case $host_cpu in
  14290. hppa*64*|ia64*)
  14291. # +Z the default
  14292. ;;
  14293. *)
  14294. lt_prog_compiler_pic_CXX='+Z'
  14295. ;;
  14296. esac
  14297. ;;
  14298. *)
  14299. ;;
  14300. esac
  14301. ;;
  14302. interix*)
  14303. # This is c89, which is MS Visual C++ (no shared libs)
  14304. # Anyone wants to do a port?
  14305. ;;
  14306. irix5* | irix6* | nonstopux*)
  14307. case $cc_basename in
  14308. CC*)
  14309. lt_prog_compiler_wl_CXX='-Wl,'
  14310. lt_prog_compiler_static_CXX='-non_shared'
  14311. # CC pic flag -KPIC is the default.
  14312. ;;
  14313. *)
  14314. ;;
  14315. esac
  14316. ;;
  14317. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14318. case $cc_basename in
  14319. KCC*)
  14320. # KAI C++ Compiler
  14321. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14322. lt_prog_compiler_pic_CXX='-fPIC'
  14323. ;;
  14324. ecpc* )
  14325. # old Intel C++ for x86_64, which still supported -KPIC.
  14326. lt_prog_compiler_wl_CXX='-Wl,'
  14327. lt_prog_compiler_pic_CXX='-KPIC'
  14328. lt_prog_compiler_static_CXX='-static'
  14329. ;;
  14330. icpc* )
  14331. # Intel C++, used to be incompatible with GCC.
  14332. # ICC 10 doesn't accept -KPIC any more.
  14333. lt_prog_compiler_wl_CXX='-Wl,'
  14334. lt_prog_compiler_pic_CXX='-fPIC'
  14335. lt_prog_compiler_static_CXX='-static'
  14336. ;;
  14337. pgCC* | pgcpp*)
  14338. # Portland Group C++ compiler
  14339. lt_prog_compiler_wl_CXX='-Wl,'
  14340. lt_prog_compiler_pic_CXX='-fpic'
  14341. lt_prog_compiler_static_CXX='-Bstatic'
  14342. ;;
  14343. cxx*)
  14344. # Compaq C++
  14345. # Make sure the PIC flag is empty. It appears that all Alpha
  14346. # Linux and Compaq Tru64 Unix objects are PIC.
  14347. lt_prog_compiler_pic_CXX=
  14348. lt_prog_compiler_static_CXX='-non_shared'
  14349. ;;
  14350. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14351. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14352. lt_prog_compiler_wl_CXX='-Wl,'
  14353. lt_prog_compiler_pic_CXX='-qpic'
  14354. lt_prog_compiler_static_CXX='-qstaticlink'
  14355. ;;
  14356. *)
  14357. case `$CC -V 2>&1 | sed 5q` in
  14358. *Sun\ C*)
  14359. # Sun C++ 5.9
  14360. lt_prog_compiler_pic_CXX='-KPIC'
  14361. lt_prog_compiler_static_CXX='-Bstatic'
  14362. lt_prog_compiler_wl_CXX='-Qoption ld '
  14363. ;;
  14364. esac
  14365. ;;
  14366. esac
  14367. ;;
  14368. lynxos*)
  14369. ;;
  14370. m88k*)
  14371. ;;
  14372. mvs*)
  14373. case $cc_basename in
  14374. cxx*)
  14375. lt_prog_compiler_pic_CXX='-W c,exportall'
  14376. ;;
  14377. *)
  14378. ;;
  14379. esac
  14380. ;;
  14381. netbsd*)
  14382. ;;
  14383. *qnx* | *nto*)
  14384. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14385. # it will coredump.
  14386. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14387. ;;
  14388. osf3* | osf4* | osf5*)
  14389. case $cc_basename in
  14390. KCC*)
  14391. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14392. ;;
  14393. RCC*)
  14394. # Rational C++ 2.4.1
  14395. lt_prog_compiler_pic_CXX='-pic'
  14396. ;;
  14397. cxx*)
  14398. # Digital/Compaq C++
  14399. lt_prog_compiler_wl_CXX='-Wl,'
  14400. # Make sure the PIC flag is empty. It appears that all Alpha
  14401. # Linux and Compaq Tru64 Unix objects are PIC.
  14402. lt_prog_compiler_pic_CXX=
  14403. lt_prog_compiler_static_CXX='-non_shared'
  14404. ;;
  14405. *)
  14406. ;;
  14407. esac
  14408. ;;
  14409. psos*)
  14410. ;;
  14411. solaris*)
  14412. case $cc_basename in
  14413. CC* | sunCC*)
  14414. # Sun C++ 4.2, 5.x and Centerline C++
  14415. lt_prog_compiler_pic_CXX='-KPIC'
  14416. lt_prog_compiler_static_CXX='-Bstatic'
  14417. lt_prog_compiler_wl_CXX='-Qoption ld '
  14418. ;;
  14419. gcx*)
  14420. # Green Hills C++ Compiler
  14421. lt_prog_compiler_pic_CXX='-PIC'
  14422. ;;
  14423. *)
  14424. ;;
  14425. esac
  14426. ;;
  14427. sunos4*)
  14428. case $cc_basename in
  14429. CC*)
  14430. # Sun C++ 4.x
  14431. lt_prog_compiler_pic_CXX='-pic'
  14432. lt_prog_compiler_static_CXX='-Bstatic'
  14433. ;;
  14434. lcc*)
  14435. # Lucid
  14436. lt_prog_compiler_pic_CXX='-pic'
  14437. ;;
  14438. *)
  14439. ;;
  14440. esac
  14441. ;;
  14442. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14443. case $cc_basename in
  14444. CC*)
  14445. lt_prog_compiler_wl_CXX='-Wl,'
  14446. lt_prog_compiler_pic_CXX='-KPIC'
  14447. lt_prog_compiler_static_CXX='-Bstatic'
  14448. ;;
  14449. esac
  14450. ;;
  14451. tandem*)
  14452. case $cc_basename in
  14453. NCC*)
  14454. # NonStop-UX NCC 3.20
  14455. lt_prog_compiler_pic_CXX='-KPIC'
  14456. ;;
  14457. *)
  14458. ;;
  14459. esac
  14460. ;;
  14461. vxworks*)
  14462. ;;
  14463. *)
  14464. lt_prog_compiler_can_build_shared_CXX=no
  14465. ;;
  14466. esac
  14467. fi
  14468. case $host_os in
  14469. # For platforms that do not support PIC, -DPIC is meaningless:
  14470. *djgpp*)
  14471. lt_prog_compiler_pic_CXX=
  14472. ;;
  14473. *)
  14474. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14475. ;;
  14476. esac
  14477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14478. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14479. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14480. then :
  14481. printf %s "(cached) " >&6
  14482. else $as_nop
  14483. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14484. fi
  14485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14486. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14487. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14488. #
  14489. # Check to make sure the PIC flag actually works.
  14490. #
  14491. if test -n "$lt_prog_compiler_pic_CXX"; then
  14492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14493. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14494. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14495. then :
  14496. printf %s "(cached) " >&6
  14497. else $as_nop
  14498. lt_cv_prog_compiler_pic_works_CXX=no
  14499. ac_outfile=conftest.$ac_objext
  14500. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14501. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14502. # Insert the option either (1) after the last *FLAGS variable, or
  14503. # (2) before a word containing "conftest.", or (3) at the end.
  14504. # Note that $ac_compile itself does not contain backslashes and begins
  14505. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14506. # The option is referenced via a variable to avoid confusing sed.
  14507. lt_compile=`echo "$ac_compile" | $SED \
  14508. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14509. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14510. -e 's:$: $lt_compiler_flag:'`
  14511. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14512. (eval "$lt_compile" 2>conftest.err)
  14513. ac_status=$?
  14514. cat conftest.err >&5
  14515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14516. if (exit $ac_status) && test -s "$ac_outfile"; then
  14517. # The compiler can only warn and ignore the option if not recognized
  14518. # So say no if there are warnings other than the usual output.
  14519. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14520. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14521. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14522. lt_cv_prog_compiler_pic_works_CXX=yes
  14523. fi
  14524. fi
  14525. $RM conftest*
  14526. fi
  14527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14528. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14529. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14530. case $lt_prog_compiler_pic_CXX in
  14531. "" | " "*) ;;
  14532. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14533. esac
  14534. else
  14535. lt_prog_compiler_pic_CXX=
  14536. lt_prog_compiler_can_build_shared_CXX=no
  14537. fi
  14538. fi
  14539. #
  14540. # Check to make sure the static flag actually works.
  14541. #
  14542. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14544. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14545. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14546. then :
  14547. printf %s "(cached) " >&6
  14548. else $as_nop
  14549. lt_cv_prog_compiler_static_works_CXX=no
  14550. save_LDFLAGS=$LDFLAGS
  14551. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14552. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14553. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14554. # The linker can only warn and ignore the option if not recognized
  14555. # So say no if there are warnings
  14556. if test -s conftest.err; then
  14557. # Append any errors to the config.log.
  14558. cat conftest.err 1>&5
  14559. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14560. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14561. if diff conftest.exp conftest.er2 >/dev/null; then
  14562. lt_cv_prog_compiler_static_works_CXX=yes
  14563. fi
  14564. else
  14565. lt_cv_prog_compiler_static_works_CXX=yes
  14566. fi
  14567. fi
  14568. $RM -r conftest*
  14569. LDFLAGS=$save_LDFLAGS
  14570. fi
  14571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14572. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14573. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14574. :
  14575. else
  14576. lt_prog_compiler_static_CXX=
  14577. fi
  14578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14579. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14580. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14581. then :
  14582. printf %s "(cached) " >&6
  14583. else $as_nop
  14584. lt_cv_prog_compiler_c_o_CXX=no
  14585. $RM -r conftest 2>/dev/null
  14586. mkdir conftest
  14587. cd conftest
  14588. mkdir out
  14589. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14590. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14591. # Insert the option either (1) after the last *FLAGS variable, or
  14592. # (2) before a word containing "conftest.", or (3) at the end.
  14593. # Note that $ac_compile itself does not contain backslashes and begins
  14594. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14595. lt_compile=`echo "$ac_compile" | $SED \
  14596. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14597. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14598. -e 's:$: $lt_compiler_flag:'`
  14599. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14600. (eval "$lt_compile" 2>out/conftest.err)
  14601. ac_status=$?
  14602. cat out/conftest.err >&5
  14603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14604. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14605. then
  14606. # The compiler can only warn and ignore the option if not recognized
  14607. # So say no if there are warnings
  14608. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14609. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14610. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14611. lt_cv_prog_compiler_c_o_CXX=yes
  14612. fi
  14613. fi
  14614. chmod u+w . 2>&5
  14615. $RM conftest*
  14616. # SGI C++ compiler will create directory out/ii_files/ for
  14617. # template instantiation
  14618. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14619. $RM out/* && rmdir out
  14620. cd ..
  14621. $RM -r conftest
  14622. $RM conftest*
  14623. fi
  14624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14625. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14627. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14628. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14629. then :
  14630. printf %s "(cached) " >&6
  14631. else $as_nop
  14632. lt_cv_prog_compiler_c_o_CXX=no
  14633. $RM -r conftest 2>/dev/null
  14634. mkdir conftest
  14635. cd conftest
  14636. mkdir out
  14637. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14638. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14639. # Insert the option either (1) after the last *FLAGS variable, or
  14640. # (2) before a word containing "conftest.", or (3) at the end.
  14641. # Note that $ac_compile itself does not contain backslashes and begins
  14642. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14643. lt_compile=`echo "$ac_compile" | $SED \
  14644. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14645. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14646. -e 's:$: $lt_compiler_flag:'`
  14647. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14648. (eval "$lt_compile" 2>out/conftest.err)
  14649. ac_status=$?
  14650. cat out/conftest.err >&5
  14651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14652. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14653. then
  14654. # The compiler can only warn and ignore the option if not recognized
  14655. # So say no if there are warnings
  14656. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14657. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14658. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14659. lt_cv_prog_compiler_c_o_CXX=yes
  14660. fi
  14661. fi
  14662. chmod u+w . 2>&5
  14663. $RM conftest*
  14664. # SGI C++ compiler will create directory out/ii_files/ for
  14665. # template instantiation
  14666. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14667. $RM out/* && rmdir out
  14668. cd ..
  14669. $RM -r conftest
  14670. $RM conftest*
  14671. fi
  14672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14673. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14674. hard_links=nottested
  14675. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14676. # do not overwrite the value of need_locks provided by the user
  14677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14678. printf %s "checking if we can lock with hard links... " >&6; }
  14679. hard_links=yes
  14680. $RM conftest*
  14681. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14682. touch conftest.a
  14683. ln conftest.a conftest.b 2>&5 || hard_links=no
  14684. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14686. printf "%s\n" "$hard_links" >&6; }
  14687. if test no = "$hard_links"; then
  14688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14689. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14690. need_locks=warn
  14691. fi
  14692. else
  14693. need_locks=no
  14694. fi
  14695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14696. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14697. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14698. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14699. case $host_os in
  14700. aix[4-9]*)
  14701. # If we're using GNU nm, then we don't want the "-C" option.
  14702. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14703. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14704. # weak defined symbols like other global defined symbols, whereas
  14705. # GNU nm marks them as "W".
  14706. # While the 'weak' keyword is ignored in the Export File, we need
  14707. # it in the Import File for the 'aix-soname' feature, so we have
  14708. # to replace the "-B" option with "-P" for AIX nm.
  14709. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14710. 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'
  14711. else
  14712. 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'
  14713. fi
  14714. ;;
  14715. pw32*)
  14716. export_symbols_cmds_CXX=$ltdll_cmds
  14717. ;;
  14718. cygwin* | mingw* | cegcc*)
  14719. case $cc_basename in
  14720. cl*)
  14721. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14722. ;;
  14723. *)
  14724. 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'
  14725. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14726. ;;
  14727. esac
  14728. ;;
  14729. *)
  14730. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14731. ;;
  14732. esac
  14733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14734. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14735. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14736. with_gnu_ld_CXX=$with_gnu_ld
  14737. #
  14738. # Do we need to explicitly link libc?
  14739. #
  14740. case "x$archive_cmds_need_lc_CXX" in
  14741. x|xyes)
  14742. # Assume -lc should be added
  14743. archive_cmds_need_lc_CXX=yes
  14744. if test yes,yes = "$GCC,$enable_shared"; then
  14745. case $archive_cmds_CXX in
  14746. *'~'*)
  14747. # FIXME: we may have to deal with multi-command sequences.
  14748. ;;
  14749. '$CC '*)
  14750. # Test whether the compiler implicitly links with -lc since on some
  14751. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14752. # to ld, don't add -lc before -lgcc.
  14753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14754. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14755. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14756. then :
  14757. printf %s "(cached) " >&6
  14758. else $as_nop
  14759. $RM conftest*
  14760. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14762. (eval $ac_compile) 2>&5
  14763. ac_status=$?
  14764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14765. test $ac_status = 0; } 2>conftest.err; then
  14766. soname=conftest
  14767. lib=conftest
  14768. libobjs=conftest.$ac_objext
  14769. deplibs=
  14770. wl=$lt_prog_compiler_wl_CXX
  14771. pic_flag=$lt_prog_compiler_pic_CXX
  14772. compiler_flags=-v
  14773. linker_flags=-v
  14774. verstring=
  14775. output_objdir=.
  14776. libname=conftest
  14777. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14778. allow_undefined_flag_CXX=
  14779. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14780. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14781. ac_status=$?
  14782. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14783. test $ac_status = 0; }
  14784. then
  14785. lt_cv_archive_cmds_need_lc_CXX=no
  14786. else
  14787. lt_cv_archive_cmds_need_lc_CXX=yes
  14788. fi
  14789. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14790. else
  14791. cat conftest.err 1>&5
  14792. fi
  14793. $RM conftest*
  14794. fi
  14795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14796. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14797. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14798. ;;
  14799. esac
  14800. fi
  14801. ;;
  14802. esac
  14803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14804. printf %s "checking dynamic linker characteristics... " >&6; }
  14805. library_names_spec=
  14806. libname_spec='lib$name'
  14807. soname_spec=
  14808. shrext_cmds=.so
  14809. postinstall_cmds=
  14810. postuninstall_cmds=
  14811. finish_cmds=
  14812. finish_eval=
  14813. shlibpath_var=
  14814. shlibpath_overrides_runpath=unknown
  14815. version_type=none
  14816. dynamic_linker="$host_os ld.so"
  14817. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14818. need_lib_prefix=unknown
  14819. hardcode_into_libs=no
  14820. # when you set need_version to no, make sure it does not cause -set_version
  14821. # flags to be left without arguments
  14822. need_version=unknown
  14823. case $host_os in
  14824. aix3*)
  14825. version_type=linux # correct to gnu/linux during the next big refactor
  14826. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14827. shlibpath_var=LIBPATH
  14828. # AIX 3 has no versioning support, so we append a major version to the name.
  14829. soname_spec='$libname$release$shared_ext$major'
  14830. ;;
  14831. aix[4-9]*)
  14832. version_type=linux # correct to gnu/linux during the next big refactor
  14833. need_lib_prefix=no
  14834. need_version=no
  14835. hardcode_into_libs=yes
  14836. if test ia64 = "$host_cpu"; then
  14837. # AIX 5 supports IA64
  14838. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14839. shlibpath_var=LD_LIBRARY_PATH
  14840. else
  14841. # With GCC up to 2.95.x, collect2 would create an import file
  14842. # for dependence libraries. The import file would start with
  14843. # the line '#! .'. This would cause the generated library to
  14844. # depend on '.', always an invalid library. This was fixed in
  14845. # development snapshots of GCC prior to 3.0.
  14846. case $host_os in
  14847. aix4 | aix4.[01] | aix4.[01].*)
  14848. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14849. echo ' yes '
  14850. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14851. :
  14852. else
  14853. can_build_shared=no
  14854. fi
  14855. ;;
  14856. esac
  14857. # Using Import Files as archive members, it is possible to support
  14858. # filename-based versioning of shared library archives on AIX. While
  14859. # this would work for both with and without runtime linking, it will
  14860. # prevent static linking of such archives. So we do filename-based
  14861. # shared library versioning with .so extension only, which is used
  14862. # when both runtime linking and shared linking is enabled.
  14863. # Unfortunately, runtime linking may impact performance, so we do
  14864. # not want this to be the default eventually. Also, we use the
  14865. # versioned .so libs for executables only if there is the -brtl
  14866. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14867. # To allow for filename-based versioning support, we need to create
  14868. # libNAME.so.V as an archive file, containing:
  14869. # *) an Import File, referring to the versioned filename of the
  14870. # archive as well as the shared archive member, telling the
  14871. # bitwidth (32 or 64) of that shared object, and providing the
  14872. # list of exported symbols of that shared object, eventually
  14873. # decorated with the 'weak' keyword
  14874. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14875. # it being seen by the linker.
  14876. # At run time we better use the real file rather than another symlink,
  14877. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14878. case $with_aix_soname,$aix_use_runtimelinking in
  14879. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14880. # soname into executable. Probably we can add versioning support to
  14881. # collect2, so additional links can be useful in future.
  14882. aix,yes) # traditional libtool
  14883. dynamic_linker='AIX unversionable lib.so'
  14884. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14885. # instead of lib<name>.a to let people know that these are not
  14886. # typical AIX shared libraries.
  14887. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14888. ;;
  14889. aix,no) # traditional AIX only
  14890. dynamic_linker='AIX lib.a(lib.so.V)'
  14891. # We preserve .a as extension for shared libraries through AIX4.2
  14892. # and later when we are not doing run time linking.
  14893. library_names_spec='$libname$release.a $libname.a'
  14894. soname_spec='$libname$release$shared_ext$major'
  14895. ;;
  14896. svr4,*) # full svr4 only
  14897. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14898. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14899. # We do not specify a path in Import Files, so LIBPATH fires.
  14900. shlibpath_overrides_runpath=yes
  14901. ;;
  14902. *,yes) # both, prefer svr4
  14903. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14904. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14905. # unpreferred sharedlib libNAME.a needs extra handling
  14906. 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"'
  14907. 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"'
  14908. # We do not specify a path in Import Files, so LIBPATH fires.
  14909. shlibpath_overrides_runpath=yes
  14910. ;;
  14911. *,no) # both, prefer aix
  14912. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14913. library_names_spec='$libname$release.a $libname.a'
  14914. soname_spec='$libname$release$shared_ext$major'
  14915. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14916. 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)'
  14917. 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"'
  14918. ;;
  14919. esac
  14920. shlibpath_var=LIBPATH
  14921. fi
  14922. ;;
  14923. amigaos*)
  14924. case $host_cpu in
  14925. powerpc)
  14926. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14927. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14928. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14929. ;;
  14930. m68k)
  14931. library_names_spec='$libname.ixlibrary $libname.a'
  14932. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14933. 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'
  14934. ;;
  14935. esac
  14936. ;;
  14937. beos*)
  14938. library_names_spec='$libname$shared_ext'
  14939. dynamic_linker="$host_os ld.so"
  14940. shlibpath_var=LIBRARY_PATH
  14941. ;;
  14942. bsdi[45]*)
  14943. version_type=linux # correct to gnu/linux during the next big refactor
  14944. need_version=no
  14945. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14946. soname_spec='$libname$release$shared_ext$major'
  14947. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14948. shlibpath_var=LD_LIBRARY_PATH
  14949. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14950. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14951. # the default ld.so.conf also contains /usr/contrib/lib and
  14952. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14953. # libtool to hard-code these into programs
  14954. ;;
  14955. cygwin* | mingw* | pw32* | cegcc*)
  14956. version_type=windows
  14957. shrext_cmds=.dll
  14958. need_version=no
  14959. need_lib_prefix=no
  14960. case $GCC,$cc_basename in
  14961. yes,*)
  14962. # gcc
  14963. library_names_spec='$libname.dll.a'
  14964. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14965. postinstall_cmds='base_file=`basename \$file`~
  14966. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14967. dldir=$destdir/`dirname \$dlpath`~
  14968. test -d \$dldir || mkdir -p \$dldir~
  14969. $install_prog $dir/$dlname \$dldir/$dlname~
  14970. chmod a+x \$dldir/$dlname~
  14971. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14972. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14973. fi'
  14974. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14975. dlpath=$dir/\$dldll~
  14976. $RM \$dlpath'
  14977. shlibpath_overrides_runpath=yes
  14978. case $host_os in
  14979. cygwin*)
  14980. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14981. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14982. ;;
  14983. mingw* | cegcc*)
  14984. # MinGW DLLs use traditional 'lib' prefix
  14985. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14986. ;;
  14987. pw32*)
  14988. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14989. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14990. ;;
  14991. esac
  14992. dynamic_linker='Win32 ld.exe'
  14993. ;;
  14994. *,cl*)
  14995. # Native MSVC
  14996. libname_spec='$name'
  14997. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14998. library_names_spec='$libname.dll.lib'
  14999. case $build_os in
  15000. mingw*)
  15001. sys_lib_search_path_spec=
  15002. lt_save_ifs=$IFS
  15003. IFS=';'
  15004. for lt_path in $LIB
  15005. do
  15006. IFS=$lt_save_ifs
  15007. # Let DOS variable expansion print the short 8.3 style file name.
  15008. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15009. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15010. done
  15011. IFS=$lt_save_ifs
  15012. # Convert to MSYS style.
  15013. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15014. ;;
  15015. cygwin*)
  15016. # Convert to unix form, then to dos form, then back to unix form
  15017. # but this time dos style (no spaces!) so that the unix form looks
  15018. # like /cygdrive/c/PROGRA~1:/cygdr...
  15019. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15020. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15021. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15022. ;;
  15023. *)
  15024. sys_lib_search_path_spec=$LIB
  15025. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15026. # It is most probably a Windows format PATH.
  15027. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15028. else
  15029. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15030. fi
  15031. # FIXME: find the short name or the path components, as spaces are
  15032. # common. (e.g. "Program Files" -> "PROGRA~1")
  15033. ;;
  15034. esac
  15035. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15036. postinstall_cmds='base_file=`basename \$file`~
  15037. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15038. dldir=$destdir/`dirname \$dlpath`~
  15039. test -d \$dldir || mkdir -p \$dldir~
  15040. $install_prog $dir/$dlname \$dldir/$dlname'
  15041. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15042. dlpath=$dir/\$dldll~
  15043. $RM \$dlpath'
  15044. shlibpath_overrides_runpath=yes
  15045. dynamic_linker='Win32 link.exe'
  15046. ;;
  15047. *)
  15048. # Assume MSVC wrapper
  15049. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  15050. dynamic_linker='Win32 ld.exe'
  15051. ;;
  15052. esac
  15053. # FIXME: first we should search . and the directory the executable is in
  15054. shlibpath_var=PATH
  15055. ;;
  15056. darwin* | rhapsody*)
  15057. dynamic_linker="$host_os dyld"
  15058. version_type=darwin
  15059. need_lib_prefix=no
  15060. need_version=no
  15061. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  15062. soname_spec='$libname$release$major$shared_ext'
  15063. shlibpath_overrides_runpath=yes
  15064. shlibpath_var=DYLD_LIBRARY_PATH
  15065. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  15066. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15067. ;;
  15068. dgux*)
  15069. version_type=linux # correct to gnu/linux during the next big refactor
  15070. need_lib_prefix=no
  15071. need_version=no
  15072. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15073. soname_spec='$libname$release$shared_ext$major'
  15074. shlibpath_var=LD_LIBRARY_PATH
  15075. ;;
  15076. freebsd* | dragonfly*)
  15077. # DragonFly does not have aout. When/if they implement a new
  15078. # versioning mechanism, adjust this.
  15079. if test -x /usr/bin/objformat; then
  15080. objformat=`/usr/bin/objformat`
  15081. else
  15082. case $host_os in
  15083. freebsd[23].*) objformat=aout ;;
  15084. *) objformat=elf ;;
  15085. esac
  15086. fi
  15087. # Handle Gentoo/FreeBSD as it was Linux
  15088. case $host_vendor in
  15089. gentoo)
  15090. version_type=linux ;;
  15091. *)
  15092. version_type=freebsd-$objformat ;;
  15093. esac
  15094. case $version_type in
  15095. freebsd-elf*)
  15096. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15097. soname_spec='$libname$release$shared_ext$major'
  15098. need_version=no
  15099. need_lib_prefix=no
  15100. ;;
  15101. freebsd-*)
  15102. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15103. need_version=yes
  15104. ;;
  15105. linux)
  15106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15107. soname_spec='${libname}${release}${shared_ext}$major'
  15108. need_lib_prefix=no
  15109. need_version=no
  15110. ;;
  15111. esac
  15112. shlibpath_var=LD_LIBRARY_PATH
  15113. case $host_os in
  15114. freebsd2.*)
  15115. shlibpath_overrides_runpath=yes
  15116. ;;
  15117. freebsd3.[01]* | freebsdelf3.[01]*)
  15118. shlibpath_overrides_runpath=yes
  15119. hardcode_into_libs=yes
  15120. ;;
  15121. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15122. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15123. shlibpath_overrides_runpath=no
  15124. hardcode_into_libs=yes
  15125. ;;
  15126. *) # from 4.6 on, and DragonFly
  15127. shlibpath_overrides_runpath=yes
  15128. hardcode_into_libs=yes
  15129. ;;
  15130. esac
  15131. ;;
  15132. haiku*)
  15133. version_type=linux # correct to gnu/linux during the next big refactor
  15134. need_lib_prefix=no
  15135. need_version=no
  15136. dynamic_linker="$host_os runtime_loader"
  15137. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15138. soname_spec='$libname$release$shared_ext$major'
  15139. shlibpath_var=LIBRARY_PATH
  15140. shlibpath_overrides_runpath=no
  15141. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15142. hardcode_into_libs=yes
  15143. ;;
  15144. hpux9* | hpux10* | hpux11*)
  15145. # Give a soname corresponding to the major version so that dld.sl refuses to
  15146. # link against other versions.
  15147. version_type=sunos
  15148. need_lib_prefix=no
  15149. need_version=no
  15150. case $host_cpu in
  15151. ia64*)
  15152. shrext_cmds='.so'
  15153. hardcode_into_libs=yes
  15154. dynamic_linker="$host_os dld.so"
  15155. shlibpath_var=LD_LIBRARY_PATH
  15156. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15157. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15158. soname_spec='$libname$release$shared_ext$major'
  15159. if test 32 = "$HPUX_IA64_MODE"; then
  15160. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15161. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  15162. else
  15163. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15164. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  15165. fi
  15166. ;;
  15167. hppa*64*)
  15168. shrext_cmds='.sl'
  15169. hardcode_into_libs=yes
  15170. dynamic_linker="$host_os dld.sl"
  15171. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15172. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15173. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15174. soname_spec='$libname$release$shared_ext$major'
  15175. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15176. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15177. ;;
  15178. *)
  15179. shrext_cmds='.sl'
  15180. dynamic_linker="$host_os dld.sl"
  15181. shlibpath_var=SHLIB_PATH
  15182. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15183. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15184. soname_spec='$libname$release$shared_ext$major'
  15185. ;;
  15186. esac
  15187. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15188. postinstall_cmds='chmod 555 $lib'
  15189. # or fails outright, so override atomically:
  15190. install_override_mode=555
  15191. ;;
  15192. interix[3-9]*)
  15193. version_type=linux # correct to gnu/linux during the next big refactor
  15194. need_lib_prefix=no
  15195. need_version=no
  15196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15197. soname_spec='$libname$release$shared_ext$major'
  15198. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15199. shlibpath_var=LD_LIBRARY_PATH
  15200. shlibpath_overrides_runpath=no
  15201. hardcode_into_libs=yes
  15202. ;;
  15203. irix5* | irix6* | nonstopux*)
  15204. case $host_os in
  15205. nonstopux*) version_type=nonstopux ;;
  15206. *)
  15207. if test yes = "$lt_cv_prog_gnu_ld"; then
  15208. version_type=linux # correct to gnu/linux during the next big refactor
  15209. else
  15210. version_type=irix
  15211. fi ;;
  15212. esac
  15213. need_lib_prefix=no
  15214. need_version=no
  15215. soname_spec='$libname$release$shared_ext$major'
  15216. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15217. case $host_os in
  15218. irix5* | nonstopux*)
  15219. libsuff= shlibsuff=
  15220. ;;
  15221. *)
  15222. case $LD in # libtool.m4 will add one of these switches to LD
  15223. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15224. libsuff= shlibsuff= libmagic=32-bit;;
  15225. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15226. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15227. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15228. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15229. *) libsuff= shlibsuff= libmagic=never-match;;
  15230. esac
  15231. ;;
  15232. esac
  15233. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15234. shlibpath_overrides_runpath=no
  15235. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15236. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15237. hardcode_into_libs=yes
  15238. ;;
  15239. # No shared lib support for Linux oldld, aout, or coff.
  15240. linux*oldld* | linux*aout* | linux*coff*)
  15241. dynamic_linker=no
  15242. ;;
  15243. linux*android*)
  15244. version_type=none # Android doesn't support versioned libraries.
  15245. need_lib_prefix=no
  15246. need_version=no
  15247. library_names_spec='$libname$release$shared_ext'
  15248. soname_spec='$libname$release$shared_ext'
  15249. finish_cmds=
  15250. shlibpath_var=LD_LIBRARY_PATH
  15251. shlibpath_overrides_runpath=yes
  15252. # This implies no fast_install, which is unacceptable.
  15253. # Some rework will be needed to allow for fast_install
  15254. # before this can be enabled.
  15255. hardcode_into_libs=yes
  15256. dynamic_linker='Android linker'
  15257. # Don't embed -rpath directories since the linker doesn't support them.
  15258. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15259. ;;
  15260. # This must be glibc/ELF.
  15261. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15262. version_type=linux # correct to gnu/linux during the next big refactor
  15263. need_lib_prefix=no
  15264. need_version=no
  15265. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15266. soname_spec='$libname$release$shared_ext$major'
  15267. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15268. shlibpath_var=LD_LIBRARY_PATH
  15269. shlibpath_overrides_runpath=no
  15270. # Some binutils ld are patched to set DT_RUNPATH
  15271. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15272. then :
  15273. printf %s "(cached) " >&6
  15274. else $as_nop
  15275. lt_cv_shlibpath_overrides_runpath=no
  15276. save_LDFLAGS=$LDFLAGS
  15277. save_libdir=$libdir
  15278. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15279. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15281. /* end confdefs.h. */
  15282. int
  15283. main (void)
  15284. {
  15285. ;
  15286. return 0;
  15287. }
  15288. _ACEOF
  15289. if ac_fn_cxx_try_link "$LINENO"
  15290. then :
  15291. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15292. then :
  15293. lt_cv_shlibpath_overrides_runpath=yes
  15294. fi
  15295. fi
  15296. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15297. conftest$ac_exeext conftest.$ac_ext
  15298. LDFLAGS=$save_LDFLAGS
  15299. libdir=$save_libdir
  15300. fi
  15301. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15302. # This implies no fast_install, which is unacceptable.
  15303. # Some rework will be needed to allow for fast_install
  15304. # before this can be enabled.
  15305. hardcode_into_libs=yes
  15306. # Ideally, we could use ldconfig to report *all* directores which are
  15307. # searched for libraries, however this is still not possible. Aside from not
  15308. # being certain /sbin/ldconfig is available, command
  15309. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15310. # even though it is searched at run-time. Try to do the best guess by
  15311. # appending ld.so.conf contents (and includes) to the search path.
  15312. if test -f /etc/ld.so.conf; then
  15313. 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' ' '`
  15314. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15315. fi
  15316. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15317. # powerpc, because MkLinux only supported shared libraries with the
  15318. # GNU dynamic linker. Since this was broken with cross compilers,
  15319. # most powerpc-linux boxes support dynamic linking these days and
  15320. # people can always --disable-shared, the test was removed, and we
  15321. # assume the GNU/Linux dynamic linker is in use.
  15322. dynamic_linker='GNU/Linux ld.so'
  15323. ;;
  15324. netbsd*)
  15325. version_type=sunos
  15326. need_lib_prefix=no
  15327. need_version=no
  15328. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15329. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15330. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15331. dynamic_linker='NetBSD (a.out) ld.so'
  15332. else
  15333. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15334. soname_spec='$libname$release$shared_ext$major'
  15335. dynamic_linker='NetBSD ld.elf_so'
  15336. fi
  15337. shlibpath_var=LD_LIBRARY_PATH
  15338. shlibpath_overrides_runpath=yes
  15339. hardcode_into_libs=yes
  15340. ;;
  15341. newsos6)
  15342. version_type=linux # correct to gnu/linux during the next big refactor
  15343. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15344. shlibpath_var=LD_LIBRARY_PATH
  15345. shlibpath_overrides_runpath=yes
  15346. ;;
  15347. *nto* | *qnx*)
  15348. version_type=qnx
  15349. need_lib_prefix=no
  15350. need_version=no
  15351. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15352. soname_spec='$libname$release$shared_ext$major'
  15353. shlibpath_var=LD_LIBRARY_PATH
  15354. shlibpath_overrides_runpath=no
  15355. hardcode_into_libs=yes
  15356. dynamic_linker='ldqnx.so'
  15357. ;;
  15358. openbsd* | bitrig*)
  15359. version_type=sunos
  15360. sys_lib_dlsearch_path_spec=/usr/lib
  15361. need_lib_prefix=no
  15362. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15363. need_version=no
  15364. else
  15365. need_version=yes
  15366. fi
  15367. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15368. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15369. shlibpath_var=LD_LIBRARY_PATH
  15370. shlibpath_overrides_runpath=yes
  15371. ;;
  15372. os2*)
  15373. libname_spec='$name'
  15374. version_type=windows
  15375. shrext_cmds=.dll
  15376. need_version=no
  15377. need_lib_prefix=no
  15378. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15379. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15380. v=$($ECHO $release$versuffix | tr -d .-);
  15381. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15382. $ECHO $n$v`$shared_ext'
  15383. library_names_spec='${libname}_dll.$libext'
  15384. dynamic_linker='OS/2 ld.exe'
  15385. shlibpath_var=BEGINLIBPATH
  15386. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15387. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15388. postinstall_cmds='base_file=`basename \$file`~
  15389. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15390. dldir=$destdir/`dirname \$dlpath`~
  15391. test -d \$dldir || mkdir -p \$dldir~
  15392. $install_prog $dir/$dlname \$dldir/$dlname~
  15393. chmod a+x \$dldir/$dlname~
  15394. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15395. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15396. fi'
  15397. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15398. dlpath=$dir/\$dldll~
  15399. $RM \$dlpath'
  15400. ;;
  15401. osf3* | osf4* | osf5*)
  15402. version_type=osf
  15403. need_lib_prefix=no
  15404. need_version=no
  15405. soname_spec='$libname$release$shared_ext$major'
  15406. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15407. shlibpath_var=LD_LIBRARY_PATH
  15408. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15409. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15410. ;;
  15411. rdos*)
  15412. dynamic_linker=no
  15413. ;;
  15414. solaris*)
  15415. version_type=linux # correct to gnu/linux during the next big refactor
  15416. need_lib_prefix=no
  15417. need_version=no
  15418. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15419. soname_spec='$libname$release$shared_ext$major'
  15420. shlibpath_var=LD_LIBRARY_PATH
  15421. shlibpath_overrides_runpath=yes
  15422. hardcode_into_libs=yes
  15423. # ldd complains unless libraries are executable
  15424. postinstall_cmds='chmod +x $lib'
  15425. ;;
  15426. sunos4*)
  15427. version_type=sunos
  15428. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15429. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15430. shlibpath_var=LD_LIBRARY_PATH
  15431. shlibpath_overrides_runpath=yes
  15432. if test yes = "$with_gnu_ld"; then
  15433. need_lib_prefix=no
  15434. fi
  15435. need_version=yes
  15436. ;;
  15437. sysv4 | sysv4.3*)
  15438. version_type=linux # correct to gnu/linux during the next big refactor
  15439. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15440. soname_spec='$libname$release$shared_ext$major'
  15441. shlibpath_var=LD_LIBRARY_PATH
  15442. case $host_vendor in
  15443. sni)
  15444. shlibpath_overrides_runpath=no
  15445. need_lib_prefix=no
  15446. runpath_var=LD_RUN_PATH
  15447. ;;
  15448. siemens)
  15449. need_lib_prefix=no
  15450. ;;
  15451. motorola)
  15452. need_lib_prefix=no
  15453. need_version=no
  15454. shlibpath_overrides_runpath=no
  15455. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15456. ;;
  15457. esac
  15458. ;;
  15459. sysv4*MP*)
  15460. if test -d /usr/nec; then
  15461. version_type=linux # correct to gnu/linux during the next big refactor
  15462. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15463. soname_spec='$libname$shared_ext.$major'
  15464. shlibpath_var=LD_LIBRARY_PATH
  15465. fi
  15466. ;;
  15467. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15468. version_type=sco
  15469. need_lib_prefix=no
  15470. need_version=no
  15471. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15472. soname_spec='$libname$release$shared_ext$major'
  15473. shlibpath_var=LD_LIBRARY_PATH
  15474. shlibpath_overrides_runpath=yes
  15475. hardcode_into_libs=yes
  15476. if test yes = "$with_gnu_ld"; then
  15477. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15478. else
  15479. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15480. case $host_os in
  15481. sco3.2v5*)
  15482. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15483. ;;
  15484. esac
  15485. fi
  15486. sys_lib_dlsearch_path_spec='/usr/lib'
  15487. ;;
  15488. tpf*)
  15489. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15490. version_type=linux # correct to gnu/linux during the next big refactor
  15491. need_lib_prefix=no
  15492. need_version=no
  15493. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15494. shlibpath_var=LD_LIBRARY_PATH
  15495. shlibpath_overrides_runpath=no
  15496. hardcode_into_libs=yes
  15497. ;;
  15498. uts4*)
  15499. version_type=linux # correct to gnu/linux during the next big refactor
  15500. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15501. soname_spec='$libname$release$shared_ext$major'
  15502. shlibpath_var=LD_LIBRARY_PATH
  15503. ;;
  15504. *)
  15505. dynamic_linker=no
  15506. ;;
  15507. esac
  15508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15509. printf "%s\n" "$dynamic_linker" >&6; }
  15510. test no = "$dynamic_linker" && can_build_shared=no
  15511. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15512. if test yes = "$GCC"; then
  15513. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15514. fi
  15515. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15516. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15517. fi
  15518. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15519. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15520. fi
  15521. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15522. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15523. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15524. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15525. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15526. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15528. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15529. hardcode_action_CXX=
  15530. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15531. test -n "$runpath_var_CXX" ||
  15532. test yes = "$hardcode_automatic_CXX"; then
  15533. # We can hardcode non-existent directories.
  15534. if test no != "$hardcode_direct_CXX" &&
  15535. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15536. # have to relink, otherwise we might link with an installed library
  15537. # when we should be linking with a yet-to-be-installed one
  15538. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15539. test no != "$hardcode_minus_L_CXX"; then
  15540. # Linking always hardcodes the temporary library directory.
  15541. hardcode_action_CXX=relink
  15542. else
  15543. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15544. hardcode_action_CXX=immediate
  15545. fi
  15546. else
  15547. # We cannot hardcode anything, or else we can only hardcode existing
  15548. # directories.
  15549. hardcode_action_CXX=unsupported
  15550. fi
  15551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15552. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15553. if test relink = "$hardcode_action_CXX" ||
  15554. test yes = "$inherit_rpath_CXX"; then
  15555. # Fast installation is not supported
  15556. enable_fast_install=no
  15557. elif test yes = "$shlibpath_overrides_runpath" ||
  15558. test no = "$enable_shared"; then
  15559. # Fast installation is not necessary
  15560. enable_fast_install=needless
  15561. fi
  15562. fi # test -n "$compiler"
  15563. CC=$lt_save_CC
  15564. CFLAGS=$lt_save_CFLAGS
  15565. LDCXX=$LD
  15566. LD=$lt_save_LD
  15567. GCC=$lt_save_GCC
  15568. with_gnu_ld=$lt_save_with_gnu_ld
  15569. lt_cv_path_LDCXX=$lt_cv_path_LD
  15570. lt_cv_path_LD=$lt_save_path_LD
  15571. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15572. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15573. fi # test yes != "$_lt_caught_CXX_error"
  15574. ac_ext=cpp
  15575. ac_cpp='$CXXCPP $CPPFLAGS'
  15576. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15577. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15578. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15579. if test "$GCC" = yes
  15580. then :
  15581. for flag in -Wall -Wextra; do
  15582. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15584. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15585. if eval test \${$as_CACHEVAR+y}
  15586. then :
  15587. printf %s "(cached) " >&6
  15588. else $as_nop
  15589. ax_check_save_flags=$CXXFLAGS
  15590. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15592. /* end confdefs.h. */
  15593. int main(void) { return 0; }
  15594. _ACEOF
  15595. if ac_fn_cxx_try_compile "$LINENO"
  15596. then :
  15597. eval "$as_CACHEVAR=yes"
  15598. else $as_nop
  15599. eval "$as_CACHEVAR=no"
  15600. fi
  15601. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15602. CXXFLAGS=$ax_check_save_flags
  15603. fi
  15604. eval ac_res=\$$as_CACHEVAR
  15605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15606. printf "%s\n" "$ac_res" >&6; }
  15607. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15608. then :
  15609. if test ${AM_CXXFLAGS+y}
  15610. then :
  15611. case " $AM_CXXFLAGS " in #(
  15612. *" $flag "*) :
  15613. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15614. (: AM_CXXFLAGS already contains $flag) 2>&5
  15615. ac_status=$?
  15616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15617. test $ac_status = 0; } ;; #(
  15618. *) :
  15619. as_fn_append AM_CXXFLAGS " $flag"
  15620. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15621. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15622. ac_status=$?
  15623. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15624. test $ac_status = 0; }
  15625. ;;
  15626. esac
  15627. else $as_nop
  15628. AM_CXXFLAGS=$flag
  15629. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15630. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15631. ac_status=$?
  15632. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15633. test $ac_status = 0; }
  15634. fi
  15635. else $as_nop
  15636. :
  15637. fi
  15638. done
  15639. for flag in -fexceptions; do
  15640. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15642. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15643. if eval test \${$as_CACHEVAR+y}
  15644. then :
  15645. printf %s "(cached) " >&6
  15646. else $as_nop
  15647. ax_check_save_flags=$CXXFLAGS
  15648. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15650. /* end confdefs.h. */
  15651. int main(void) { return 0; }
  15652. _ACEOF
  15653. if ac_fn_cxx_try_compile "$LINENO"
  15654. then :
  15655. eval "$as_CACHEVAR=yes"
  15656. else $as_nop
  15657. eval "$as_CACHEVAR=no"
  15658. fi
  15659. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15660. CXXFLAGS=$ax_check_save_flags
  15661. fi
  15662. eval ac_res=\$$as_CACHEVAR
  15663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15664. printf "%s\n" "$ac_res" >&6; }
  15665. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15666. then :
  15667. if test ${AM_CXXFLAGS+y}
  15668. then :
  15669. case " $AM_CXXFLAGS " in #(
  15670. *" $flag "*) :
  15671. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15672. (: AM_CXXFLAGS already contains $flag) 2>&5
  15673. ac_status=$?
  15674. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15675. test $ac_status = 0; } ;; #(
  15676. *) :
  15677. as_fn_append AM_CXXFLAGS " $flag"
  15678. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15679. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15680. ac_status=$?
  15681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15682. test $ac_status = 0; }
  15683. ;;
  15684. esac
  15685. else $as_nop
  15686. AM_CXXFLAGS=$flag
  15687. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15688. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15689. ac_status=$?
  15690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15691. test $ac_status = 0; }
  15692. fi
  15693. else $as_nop
  15694. :
  15695. fi
  15696. done
  15697. for flag in -fno-strict-aliasing; do
  15698. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
  15699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  15700. printf %s "checking whether C++ compiler accepts $flag... " >&6; }
  15701. if eval test \${$as_CACHEVAR+y}
  15702. then :
  15703. printf %s "(cached) " >&6
  15704. else $as_nop
  15705. ax_check_save_flags=$CXXFLAGS
  15706. CXXFLAGS="$CXXFLAGS -Werror $flag"
  15707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15708. /* end confdefs.h. */
  15709. int main(void) { return 0; }
  15710. _ACEOF
  15711. if ac_fn_cxx_try_compile "$LINENO"
  15712. then :
  15713. eval "$as_CACHEVAR=yes"
  15714. else $as_nop
  15715. eval "$as_CACHEVAR=no"
  15716. fi
  15717. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15718. CXXFLAGS=$ax_check_save_flags
  15719. fi
  15720. eval ac_res=\$$as_CACHEVAR
  15721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15722. printf "%s\n" "$ac_res" >&6; }
  15723. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15724. then :
  15725. if test ${AM_CXXFLAGS+y}
  15726. then :
  15727. case " $AM_CXXFLAGS " in #(
  15728. *" $flag "*) :
  15729. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS already contains \$flag"; } >&5
  15730. (: AM_CXXFLAGS already contains $flag) 2>&5
  15731. ac_status=$?
  15732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15733. test $ac_status = 0; } ;; #(
  15734. *) :
  15735. as_fn_append AM_CXXFLAGS " $flag"
  15736. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15737. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15738. ac_status=$?
  15739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15740. test $ac_status = 0; }
  15741. ;;
  15742. esac
  15743. else $as_nop
  15744. AM_CXXFLAGS=$flag
  15745. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CXXFLAGS=\"\$AM_CXXFLAGS\""; } >&5
  15746. (: AM_CXXFLAGS="$AM_CXXFLAGS") 2>&5
  15747. ac_status=$?
  15748. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15749. test $ac_status = 0; }
  15750. fi
  15751. else $as_nop
  15752. :
  15753. fi
  15754. done
  15755. fi
  15756. ac_ext=c
  15757. ac_cpp='$CPP $CPPFLAGS'
  15758. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15759. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15760. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15761. if test "$GCC" = yes
  15762. then :
  15763. for flag in -fno-strict-aliasing; do
  15764. as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
  15765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
  15766. printf %s "checking whether the linker accepts $flag... " >&6; }
  15767. if eval test \${$as_CACHEVAR+y}
  15768. then :
  15769. printf %s "(cached) " >&6
  15770. else $as_nop
  15771. ax_check_save_flags=$LDFLAGS
  15772. LDFLAGS="$LDFLAGS $flag"
  15773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15774. /* end confdefs.h. */
  15775. int
  15776. main (void)
  15777. {
  15778. ;
  15779. return 0;
  15780. }
  15781. _ACEOF
  15782. if ac_fn_c_try_link "$LINENO"
  15783. then :
  15784. eval "$as_CACHEVAR=yes"
  15785. else $as_nop
  15786. eval "$as_CACHEVAR=no"
  15787. fi
  15788. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15789. conftest$ac_exeext conftest.$ac_ext
  15790. LDFLAGS=$ax_check_save_flags
  15791. fi
  15792. eval ac_res=\$$as_CACHEVAR
  15793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15794. printf "%s\n" "$ac_res" >&6; }
  15795. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15796. then :
  15797. if test ${AM_LDFLAGS+y}
  15798. then :
  15799. case " $AM_LDFLAGS " in #(
  15800. *" $flag "*) :
  15801. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5
  15802. (: AM_LDFLAGS already contains $flag) 2>&5
  15803. ac_status=$?
  15804. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15805. test $ac_status = 0; } ;; #(
  15806. *) :
  15807. as_fn_append AM_LDFLAGS " $flag"
  15808. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  15809. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  15810. ac_status=$?
  15811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15812. test $ac_status = 0; }
  15813. ;;
  15814. esac
  15815. else $as_nop
  15816. AM_LDFLAGS=$flag
  15817. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5
  15818. (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5
  15819. ac_status=$?
  15820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15821. test $ac_status = 0; }
  15822. fi
  15823. else $as_nop
  15824. :
  15825. fi
  15826. done
  15827. fi
  15828. case "$LD" in #(
  15829. *clang*) :
  15830. case "${host_os}" in #(
  15831. *linux*) :
  15832. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
  15833. *) :
  15834. ;;
  15835. esac ;; #(
  15836. *) :
  15837. ;;
  15838. esac
  15839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
  15840. printf %s "checking whether compiler supports visibility... " >&6; }
  15841. if test ${expatcfg_cv_compiler_supports_visibility+y}
  15842. then :
  15843. printf %s "(cached) " >&6
  15844. else $as_nop
  15845. expatcfg_cv_compiler_supports_visibility=no
  15846. OLDFLAGS=$CFLAGS
  15847. as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
  15848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15849. /* end confdefs.h. */
  15850. void __attribute__((visibility("default"))) foo(void);
  15851. void foo(void) {}
  15852. _ACEOF
  15853. if ac_fn_c_try_compile "$LINENO"
  15854. then :
  15855. expatcfg_cv_compiler_supports_visibility=yes
  15856. fi
  15857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15858. CFLAGS=$OLDFLAGS
  15859. fi
  15860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
  15861. printf "%s\n" "$expatcfg_cv_compiler_supports_visibility" >&6; }
  15862. if test "$expatcfg_cv_compiler_supports_visibility" = yes
  15863. then :
  15864. if test ${AM_CFLAGS+y}
  15865. then :
  15866. case " $AM_CFLAGS " in #(
  15867. *" -fvisibility=hidden "*) :
  15868. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -fvisibility=hidden"; } >&5
  15869. (: AM_CFLAGS already contains -fvisibility=hidden) 2>&5
  15870. ac_status=$?
  15871. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15872. test $ac_status = 0; } ;; #(
  15873. *) :
  15874. as_fn_append AM_CFLAGS " -fvisibility=hidden"
  15875. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  15876. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  15877. ac_status=$?
  15878. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15879. test $ac_status = 0; }
  15880. ;;
  15881. esac
  15882. else $as_nop
  15883. AM_CFLAGS=-fvisibility=hidden
  15884. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
  15885. (: AM_CFLAGS="$AM_CFLAGS") 2>&5
  15886. ac_status=$?
  15887. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15888. test $ac_status = 0; }
  15889. fi
  15890. if test ${AM_CPPFLAGS+y}
  15891. then :
  15892. case " $AM_CPPFLAGS " in #(
  15893. *" -DXML_ENABLE_VISIBILITY=1 "*) :
  15894. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
  15895. (: AM_CPPFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
  15896. ac_status=$?
  15897. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15898. test $ac_status = 0; } ;; #(
  15899. *) :
  15900. as_fn_append AM_CPPFLAGS " -DXML_ENABLE_VISIBILITY=1"
  15901. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  15902. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  15903. ac_status=$?
  15904. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15905. test $ac_status = 0; }
  15906. ;;
  15907. esac
  15908. else $as_nop
  15909. AM_CPPFLAGS=-DXML_ENABLE_VISIBILITY=1
  15910. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5
  15911. (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5
  15912. ac_status=$?
  15913. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15914. test $ac_status = 0; }
  15915. fi
  15916. fi
  15917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  15918. printf %s "checking whether byte ordering is bigendian... " >&6; }
  15919. if test ${ac_cv_c_bigendian+y}
  15920. then :
  15921. printf %s "(cached) " >&6
  15922. else $as_nop
  15923. ac_cv_c_bigendian=unknown
  15924. # See if we're dealing with a universal compiler.
  15925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15926. /* end confdefs.h. */
  15927. #ifndef __APPLE_CC__
  15928. not a universal capable compiler
  15929. #endif
  15930. typedef int dummy;
  15931. _ACEOF
  15932. if ac_fn_c_try_compile "$LINENO"
  15933. then :
  15934. # Check for potential -arch flags. It is not universal unless
  15935. # there are at least two -arch flags with different values.
  15936. ac_arch=
  15937. ac_prev=
  15938. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  15939. if test -n "$ac_prev"; then
  15940. case $ac_word in
  15941. i?86 | x86_64 | ppc | ppc64)
  15942. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  15943. ac_arch=$ac_word
  15944. else
  15945. ac_cv_c_bigendian=universal
  15946. break
  15947. fi
  15948. ;;
  15949. esac
  15950. ac_prev=
  15951. elif test "x$ac_word" = "x-arch"; then
  15952. ac_prev=arch
  15953. fi
  15954. done
  15955. fi
  15956. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15957. if test $ac_cv_c_bigendian = unknown; then
  15958. # See if sys/param.h defines the BYTE_ORDER macro.
  15959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15960. /* end confdefs.h. */
  15961. #include <sys/types.h>
  15962. #include <sys/param.h>
  15963. int
  15964. main (void)
  15965. {
  15966. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  15967. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  15968. && LITTLE_ENDIAN)
  15969. bogus endian macros
  15970. #endif
  15971. ;
  15972. return 0;
  15973. }
  15974. _ACEOF
  15975. if ac_fn_c_try_compile "$LINENO"
  15976. then :
  15977. # It does; now see whether it defined to BIG_ENDIAN or not.
  15978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15979. /* end confdefs.h. */
  15980. #include <sys/types.h>
  15981. #include <sys/param.h>
  15982. int
  15983. main (void)
  15984. {
  15985. #if BYTE_ORDER != BIG_ENDIAN
  15986. not big endian
  15987. #endif
  15988. ;
  15989. return 0;
  15990. }
  15991. _ACEOF
  15992. if ac_fn_c_try_compile "$LINENO"
  15993. then :
  15994. ac_cv_c_bigendian=yes
  15995. else $as_nop
  15996. ac_cv_c_bigendian=no
  15997. fi
  15998. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15999. fi
  16000. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16001. fi
  16002. if test $ac_cv_c_bigendian = unknown; then
  16003. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  16004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16005. /* end confdefs.h. */
  16006. #include <limits.h>
  16007. int
  16008. main (void)
  16009. {
  16010. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  16011. bogus endian macros
  16012. #endif
  16013. ;
  16014. return 0;
  16015. }
  16016. _ACEOF
  16017. if ac_fn_c_try_compile "$LINENO"
  16018. then :
  16019. # It does; now see whether it defined to _BIG_ENDIAN or not.
  16020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16021. /* end confdefs.h. */
  16022. #include <limits.h>
  16023. int
  16024. main (void)
  16025. {
  16026. #ifndef _BIG_ENDIAN
  16027. not big endian
  16028. #endif
  16029. ;
  16030. return 0;
  16031. }
  16032. _ACEOF
  16033. if ac_fn_c_try_compile "$LINENO"
  16034. then :
  16035. ac_cv_c_bigendian=yes
  16036. else $as_nop
  16037. ac_cv_c_bigendian=no
  16038. fi
  16039. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16040. fi
  16041. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16042. fi
  16043. if test $ac_cv_c_bigendian = unknown; then
  16044. # Compile a test program.
  16045. if test "$cross_compiling" = yes
  16046. then :
  16047. # Try to guess by grepping values from an object file.
  16048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16049. /* end confdefs.h. */
  16050. unsigned short int ascii_mm[] =
  16051. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  16052. unsigned short int ascii_ii[] =
  16053. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  16054. int use_ascii (int i) {
  16055. return ascii_mm[i] + ascii_ii[i];
  16056. }
  16057. unsigned short int ebcdic_ii[] =
  16058. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  16059. unsigned short int ebcdic_mm[] =
  16060. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  16061. int use_ebcdic (int i) {
  16062. return ebcdic_mm[i] + ebcdic_ii[i];
  16063. }
  16064. extern int foo;
  16065. int
  16066. main (void)
  16067. {
  16068. return use_ascii (foo) == use_ebcdic (foo);
  16069. ;
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. if ac_fn_c_try_compile "$LINENO"
  16074. then :
  16075. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  16076. ac_cv_c_bigendian=yes
  16077. fi
  16078. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  16079. if test "$ac_cv_c_bigendian" = unknown; then
  16080. ac_cv_c_bigendian=no
  16081. else
  16082. # finding both strings is unlikely to happen, but who knows?
  16083. ac_cv_c_bigendian=unknown
  16084. fi
  16085. fi
  16086. fi
  16087. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16088. else $as_nop
  16089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16090. /* end confdefs.h. */
  16091. $ac_includes_default
  16092. int
  16093. main (void)
  16094. {
  16095. /* Are we little or big endian? From Harbison&Steele. */
  16096. union
  16097. {
  16098. long int l;
  16099. char c[sizeof (long int)];
  16100. } u;
  16101. u.l = 1;
  16102. return u.c[sizeof (long int) - 1] == 1;
  16103. ;
  16104. return 0;
  16105. }
  16106. _ACEOF
  16107. if ac_fn_c_try_run "$LINENO"
  16108. then :
  16109. ac_cv_c_bigendian=no
  16110. else $as_nop
  16111. ac_cv_c_bigendian=yes
  16112. fi
  16113. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16114. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16115. fi
  16116. fi
  16117. fi
  16118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  16119. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  16120. case $ac_cv_c_bigendian in #(
  16121. yes)
  16122. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  16123. BYTEORDER=4321;; #(
  16124. no)
  16125. BYTEORDER=1234 ;; #(
  16126. universal)
  16127. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  16128. ;; #(
  16129. *)
  16130. as_fn_error $? "unknown endianness
  16131. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  16132. esac
  16133. printf "%s\n" "#define BYTEORDER $BYTEORDER" >>confdefs.h
  16134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16135. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16136. if test ${ac_cv_c_const+y}
  16137. then :
  16138. printf %s "(cached) " >&6
  16139. else $as_nop
  16140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16141. /* end confdefs.h. */
  16142. int
  16143. main (void)
  16144. {
  16145. #ifndef __cplusplus
  16146. /* Ultrix mips cc rejects this sort of thing. */
  16147. typedef int charset[2];
  16148. const charset cs = { 0, 0 };
  16149. /* SunOS 4.1.1 cc rejects this. */
  16150. char const *const *pcpcc;
  16151. char **ppc;
  16152. /* NEC SVR4.0.2 mips cc rejects this. */
  16153. struct point {int x, y;};
  16154. static struct point const zero = {0,0};
  16155. /* IBM XL C 1.02.0.0 rejects this.
  16156. It does not let you subtract one const X* pointer from another in
  16157. an arm of an if-expression whose if-part is not a constant
  16158. expression */
  16159. const char *g = "string";
  16160. pcpcc = &g + (g ? g-g : 0);
  16161. /* HPUX 7.0 cc rejects these. */
  16162. ++pcpcc;
  16163. ppc = (char**) pcpcc;
  16164. pcpcc = (char const *const *) ppc;
  16165. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16166. char tx;
  16167. char *t = &tx;
  16168. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16169. *t++ = 0;
  16170. if (s) return 0;
  16171. }
  16172. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16173. int x[] = {25, 17};
  16174. const int *foo = &x[0];
  16175. ++foo;
  16176. }
  16177. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16178. typedef const int *iptr;
  16179. iptr p = 0;
  16180. ++p;
  16181. }
  16182. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16183. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16184. struct s { int j; const int *ap[3]; } bx;
  16185. struct s *b = &bx; b->j = 5;
  16186. }
  16187. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16188. const int foo = 10;
  16189. if (!foo) return 0;
  16190. }
  16191. return !cs[0] && !zero.x;
  16192. #endif
  16193. ;
  16194. return 0;
  16195. }
  16196. _ACEOF
  16197. if ac_fn_c_try_compile "$LINENO"
  16198. then :
  16199. ac_cv_c_const=yes
  16200. else $as_nop
  16201. ac_cv_c_const=no
  16202. fi
  16203. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16204. fi
  16205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16206. printf "%s\n" "$ac_cv_c_const" >&6; }
  16207. if test $ac_cv_c_const = no; then
  16208. printf "%s\n" "#define const /**/" >>confdefs.h
  16209. fi
  16210. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16211. if test "x$ac_cv_type_size_t" = xyes
  16212. then :
  16213. else $as_nop
  16214. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16215. fi
  16216. # Check whether --with-xmlwf was given.
  16217. if test ${with_xmlwf+y}
  16218. then :
  16219. withval=$with_xmlwf;
  16220. else $as_nop
  16221. with_xmlwf=yes
  16222. fi
  16223. if test x${with_xmlwf} = xyes; then
  16224. WITH_XMLWF_TRUE=
  16225. WITH_XMLWF_FALSE='#'
  16226. else
  16227. WITH_XMLWF_TRUE='#'
  16228. WITH_XMLWF_FALSE=
  16229. fi
  16230. # Check whether --with-examples was given.
  16231. if test ${with_examples+y}
  16232. then :
  16233. withval=$with_examples;
  16234. else $as_nop
  16235. with_examples=yes
  16236. fi
  16237. if test x${with_examples} = xyes; then
  16238. WITH_EXAMPLES_TRUE=
  16239. WITH_EXAMPLES_FALSE='#'
  16240. else
  16241. WITH_EXAMPLES_TRUE='#'
  16242. WITH_EXAMPLES_FALSE=
  16243. fi
  16244. # Check whether --with-tests was given.
  16245. if test ${with_tests+y}
  16246. then :
  16247. withval=$with_tests;
  16248. else $as_nop
  16249. with_tests=yes
  16250. fi
  16251. if test x${with_tests} = xyes; then
  16252. WITH_TESTS_TRUE=
  16253. WITH_TESTS_FALSE='#'
  16254. else
  16255. WITH_TESTS_TRUE='#'
  16256. WITH_TESTS_FALSE=
  16257. fi
  16258. EXPATCFG_ON_MINGW=no
  16259. case "${host_os}" in #(
  16260. mingw*) :
  16261. EXPATCFG_ON_MINGW=yes
  16262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
  16263. printf "%s\n" "$as_me: detected OS: MinGW" >&6;} ;; #(
  16264. *) :
  16265. ;;
  16266. esac
  16267. if test x${EXPATCFG_ON_MINGW} = xyes; then
  16268. MINGW_TRUE=
  16269. MINGW_FALSE='#'
  16270. else
  16271. MINGW_TRUE='#'
  16272. MINGW_FALSE=
  16273. fi
  16274. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
  16275. UNICODE_TRUE=
  16276. UNICODE_FALSE='#'
  16277. else
  16278. UNICODE_TRUE='#'
  16279. UNICODE_FALSE=
  16280. fi
  16281. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null; then
  16282. _INTERNAL_UNICODE_WCHAR_T_TRUE=
  16283. _INTERNAL_UNICODE_WCHAR_T_FALSE='#'
  16284. else
  16285. _INTERNAL_UNICODE_WCHAR_T_TRUE='#'
  16286. _INTERNAL_UNICODE_WCHAR_T_FALSE=
  16287. fi
  16288. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null; then
  16289. _INTERNAL_MIN_SIZE_TRUE=
  16290. _INTERNAL_MIN_SIZE_FALSE='#'
  16291. else
  16292. _INTERNAL_MIN_SIZE_TRUE='#'
  16293. _INTERNAL_MIN_SIZE_FALSE=
  16294. fi
  16295. if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null; then
  16296. _INTERNAL_LARGE_SIZE_TRUE=
  16297. _INTERNAL_LARGE_SIZE_FALSE='#'
  16298. else
  16299. _INTERNAL_LARGE_SIZE_TRUE='#'
  16300. _INTERNAL_LARGE_SIZE_FALSE=
  16301. fi
  16302. LIBM=
  16303. case $host in
  16304. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  16305. # These system don't have libm, or don't need it
  16306. ;;
  16307. *-ncr-sysv4.3*)
  16308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  16309. printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
  16310. if test ${ac_cv_lib_mw__mwvalidcheckl+y}
  16311. then :
  16312. printf %s "(cached) " >&6
  16313. else $as_nop
  16314. ac_check_lib_save_LIBS=$LIBS
  16315. LIBS="-lmw $LIBS"
  16316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16317. /* end confdefs.h. */
  16318. /* Override any GCC internal prototype to avoid an error.
  16319. Use char because int might match the return type of a GCC
  16320. builtin and then its argument prototype would still apply. */
  16321. char _mwvalidcheckl ();
  16322. int
  16323. main (void)
  16324. {
  16325. return _mwvalidcheckl ();
  16326. ;
  16327. return 0;
  16328. }
  16329. _ACEOF
  16330. if ac_fn_c_try_link "$LINENO"
  16331. then :
  16332. ac_cv_lib_mw__mwvalidcheckl=yes
  16333. else $as_nop
  16334. ac_cv_lib_mw__mwvalidcheckl=no
  16335. fi
  16336. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16337. conftest$ac_exeext conftest.$ac_ext
  16338. LIBS=$ac_check_lib_save_LIBS
  16339. fi
  16340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  16341. printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  16342. if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
  16343. then :
  16344. LIBM=-lmw
  16345. fi
  16346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  16347. printf %s "checking for cos in -lm... " >&6; }
  16348. if test ${ac_cv_lib_m_cos+y}
  16349. then :
  16350. printf %s "(cached) " >&6
  16351. else $as_nop
  16352. ac_check_lib_save_LIBS=$LIBS
  16353. LIBS="-lm $LIBS"
  16354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16355. /* end confdefs.h. */
  16356. /* Override any GCC internal prototype to avoid an error.
  16357. Use char because int might match the return type of a GCC
  16358. builtin and then its argument prototype would still apply. */
  16359. char cos ();
  16360. int
  16361. main (void)
  16362. {
  16363. return cos ();
  16364. ;
  16365. return 0;
  16366. }
  16367. _ACEOF
  16368. if ac_fn_c_try_link "$LINENO"
  16369. then :
  16370. ac_cv_lib_m_cos=yes
  16371. else $as_nop
  16372. ac_cv_lib_m_cos=no
  16373. fi
  16374. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16375. conftest$ac_exeext conftest.$ac_ext
  16376. LIBS=$ac_check_lib_save_LIBS
  16377. fi
  16378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  16379. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  16380. if test "x$ac_cv_lib_m_cos" = xyes
  16381. then :
  16382. LIBM="$LIBM -lm"
  16383. fi
  16384. ;;
  16385. *)
  16386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  16387. printf %s "checking for cos in -lm... " >&6; }
  16388. if test ${ac_cv_lib_m_cos+y}
  16389. then :
  16390. printf %s "(cached) " >&6
  16391. else $as_nop
  16392. ac_check_lib_save_LIBS=$LIBS
  16393. LIBS="-lm $LIBS"
  16394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16395. /* end confdefs.h. */
  16396. /* Override any GCC internal prototype to avoid an error.
  16397. Use char because int might match the return type of a GCC
  16398. builtin and then its argument prototype would still apply. */
  16399. char cos ();
  16400. int
  16401. main (void)
  16402. {
  16403. return cos ();
  16404. ;
  16405. return 0;
  16406. }
  16407. _ACEOF
  16408. if ac_fn_c_try_link "$LINENO"
  16409. then :
  16410. ac_cv_lib_m_cos=yes
  16411. else $as_nop
  16412. ac_cv_lib_m_cos=no
  16413. fi
  16414. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16415. conftest$ac_exeext conftest.$ac_ext
  16416. LIBS=$ac_check_lib_save_LIBS
  16417. fi
  16418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  16419. printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
  16420. if test "x$ac_cv_lib_m_cos" = xyes
  16421. then :
  16422. LIBM=-lm
  16423. fi
  16424. ;;
  16425. esac
  16426. # Check whether --with-libbsd was given.
  16427. if test ${with_libbsd+y}
  16428. then :
  16429. withval=$with_libbsd;
  16430. else $as_nop
  16431. with_libbsd=no
  16432. fi
  16433. if test "x${with_libbsd}" != xno
  16434. then :
  16435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
  16436. printf %s "checking for arc4random_buf in -lbsd... " >&6; }
  16437. if test ${ac_cv_lib_bsd_arc4random_buf+y}
  16438. then :
  16439. printf %s "(cached) " >&6
  16440. else $as_nop
  16441. ac_check_lib_save_LIBS=$LIBS
  16442. LIBS="-lbsd $LIBS"
  16443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16444. /* end confdefs.h. */
  16445. /* Override any GCC internal prototype to avoid an error.
  16446. Use char because int might match the return type of a GCC
  16447. builtin and then its argument prototype would still apply. */
  16448. char arc4random_buf ();
  16449. int
  16450. main (void)
  16451. {
  16452. return arc4random_buf ();
  16453. ;
  16454. return 0;
  16455. }
  16456. _ACEOF
  16457. if ac_fn_c_try_link "$LINENO"
  16458. then :
  16459. ac_cv_lib_bsd_arc4random_buf=yes
  16460. else $as_nop
  16461. ac_cv_lib_bsd_arc4random_buf=no
  16462. fi
  16463. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16464. conftest$ac_exeext conftest.$ac_ext
  16465. LIBS=$ac_check_lib_save_LIBS
  16466. fi
  16467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
  16468. printf "%s\n" "$ac_cv_lib_bsd_arc4random_buf" >&6; }
  16469. if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes
  16470. then :
  16471. printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
  16472. LIBS="-lbsd $LIBS"
  16473. else $as_nop
  16474. if test "x${with_libbsd}" = xyes
  16475. then :
  16476. as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
  16477. fi
  16478. fi
  16479. fi
  16480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
  16481. printf %s "checking for arc4random_buf (BSD or libbsd)... " >&6; }
  16482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16483. /* end confdefs.h. */
  16484. #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
  16485. #if defined(HAVE_LIBBSD)
  16486. # include <bsd/stdlib.h>
  16487. #endif
  16488. int main() {
  16489. arc4random_buf(NULL, 0U);
  16490. return 0;
  16491. }
  16492. _ACEOF
  16493. if ac_fn_c_try_link "$LINENO"
  16494. then :
  16495. printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  16496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16497. printf "%s\n" "yes" >&6; }
  16498. else $as_nop
  16499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16500. printf "%s\n" "no" >&6; }
  16501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5
  16502. printf %s "checking for arc4random (BSD, macOS or libbsd)... " >&6; }
  16503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16504. /* end confdefs.h. */
  16505. #if defined(HAVE_LIBBSD)
  16506. # include <bsd/stdlib.h>
  16507. #else
  16508. # include <stdlib.h>
  16509. #endif
  16510. int main() {
  16511. arc4random();
  16512. return 0;
  16513. }
  16514. _ACEOF
  16515. if ac_fn_c_try_link "$LINENO"
  16516. then :
  16517. printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  16518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16519. printf "%s\n" "yes" >&6; }
  16520. else $as_nop
  16521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16522. printf "%s\n" "no" >&6; }
  16523. fi
  16524. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16525. conftest$ac_exeext conftest.$ac_ext
  16526. fi
  16527. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16528. conftest$ac_exeext conftest.$ac_ext
  16529. # Check whether --with-getrandom was given.
  16530. if test ${with_getrandom+y}
  16531. then :
  16532. withval=$with_getrandom;
  16533. else $as_nop
  16534. with_getrandom=check
  16535. fi
  16536. if test "x$with_getrandom" != xno
  16537. then :
  16538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  16539. printf %s "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  16540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16541. /* end confdefs.h. */
  16542. #include <stdlib.h> /* for NULL */
  16543. #include <sys/random.h>
  16544. int main() {
  16545. return getrandom(NULL, 0U, 0U);
  16546. }
  16547. _ACEOF
  16548. if ac_fn_c_try_link "$LINENO"
  16549. then :
  16550. printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
  16551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16552. printf "%s\n" "yes" >&6; }
  16553. else $as_nop
  16554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16555. printf "%s\n" "no" >&6; }
  16556. if test "x$with_getrandom" = xyes
  16557. then :
  16558. as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
  16559. fi
  16560. fi
  16561. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16562. conftest$ac_exeext conftest.$ac_ext
  16563. fi
  16564. # Check whether --with-sys_getrandom was given.
  16565. if test ${with_sys_getrandom+y}
  16566. then :
  16567. withval=$with_sys_getrandom;
  16568. else $as_nop
  16569. with_sys_getrandom=check
  16570. fi
  16571. if test "x$with_sys_getrandom" != xno
  16572. then :
  16573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  16574. printf %s "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  16575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16576. /* end confdefs.h. */
  16577. #include <stdlib.h> /* for NULL */
  16578. #include <unistd.h> /* for syscall */
  16579. #include <sys/syscall.h> /* for SYS_getrandom */
  16580. int main() {
  16581. syscall(SYS_getrandom, NULL, 0, 0);
  16582. return 0;
  16583. }
  16584. _ACEOF
  16585. if ac_fn_c_try_link "$LINENO"
  16586. then :
  16587. printf "%s\n" "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  16588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16589. printf "%s\n" "yes" >&6; }
  16590. else $as_nop
  16591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16592. printf "%s\n" "no" >&6; }
  16593. if test "x$with_sys_getrandom" = xyes
  16594. then :
  16595. as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
  16596. fi
  16597. fi
  16598. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16599. conftest$ac_exeext conftest.$ac_ext
  16600. fi
  16601. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  16602. if test "x$ac_cv_header_fcntl_h" = xyes
  16603. then :
  16604. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  16605. fi
  16606. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  16607. if test "x$ac_cv_header_unistd_h" = xyes
  16608. then :
  16609. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  16610. fi
  16611. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16612. if test "x$ac_cv_type_off_t" = xyes
  16613. then :
  16614. else $as_nop
  16615. printf "%s\n" "#define off_t long int" >>confdefs.h
  16616. fi
  16617. ac_func=
  16618. for ac_item in $ac_func_c_list
  16619. do
  16620. if test $ac_func; then
  16621. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  16622. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  16623. echo "#define $ac_item 1" >> confdefs.h
  16624. fi
  16625. ac_func=
  16626. else
  16627. ac_func=$ac_item
  16628. fi
  16629. done
  16630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  16631. printf %s "checking for working mmap... " >&6; }
  16632. if test ${ac_cv_func_mmap_fixed_mapped+y}
  16633. then :
  16634. printf %s "(cached) " >&6
  16635. else $as_nop
  16636. if test "$cross_compiling" = yes
  16637. then :
  16638. case "$host_os" in # ((
  16639. # Guess yes on platforms where we know the result.
  16640. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  16641. # If we don't know, assume the worst.
  16642. *) ac_cv_func_mmap_fixed_mapped=no ;;
  16643. esac
  16644. else $as_nop
  16645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16646. /* end confdefs.h. */
  16647. $ac_includes_default
  16648. /* malloc might have been renamed as rpl_malloc. */
  16649. #undef malloc
  16650. /* Thanks to Mike Haertel and Jim Avera for this test.
  16651. Here is a matrix of mmap possibilities:
  16652. mmap private not fixed
  16653. mmap private fixed at somewhere currently unmapped
  16654. mmap private fixed at somewhere already mapped
  16655. mmap shared not fixed
  16656. mmap shared fixed at somewhere currently unmapped
  16657. mmap shared fixed at somewhere already mapped
  16658. For private mappings, we should verify that changes cannot be read()
  16659. back from the file, nor mmap's back from the file at a different
  16660. address. (There have been systems where private was not correctly
  16661. implemented like the infamous i386 svr4.0, and systems where the
  16662. VM page cache was not coherent with the file system buffer cache
  16663. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16664. For shared mappings, we should conversely verify that changes get
  16665. propagated back to all the places they're supposed to be.
  16666. Grep wants private fixed already mapped.
  16667. The main things grep needs to know about mmap are:
  16668. * does it exist and is it safe to write into the mmap'd area
  16669. * how to use it (BSD variants) */
  16670. #include <fcntl.h>
  16671. #include <sys/mman.h>
  16672. /* This mess was copied from the GNU getpagesize.h. */
  16673. #ifndef HAVE_GETPAGESIZE
  16674. # ifdef _SC_PAGESIZE
  16675. # define getpagesize() sysconf(_SC_PAGESIZE)
  16676. # else /* no _SC_PAGESIZE */
  16677. # ifdef HAVE_SYS_PARAM_H
  16678. # include <sys/param.h>
  16679. # ifdef EXEC_PAGESIZE
  16680. # define getpagesize() EXEC_PAGESIZE
  16681. # else /* no EXEC_PAGESIZE */
  16682. # ifdef NBPG
  16683. # define getpagesize() NBPG * CLSIZE
  16684. # ifndef CLSIZE
  16685. # define CLSIZE 1
  16686. # endif /* no CLSIZE */
  16687. # else /* no NBPG */
  16688. # ifdef NBPC
  16689. # define getpagesize() NBPC
  16690. # else /* no NBPC */
  16691. # ifdef PAGESIZE
  16692. # define getpagesize() PAGESIZE
  16693. # endif /* PAGESIZE */
  16694. # endif /* no NBPC */
  16695. # endif /* no NBPG */
  16696. # endif /* no EXEC_PAGESIZE */
  16697. # else /* no HAVE_SYS_PARAM_H */
  16698. # define getpagesize() 8192 /* punt totally */
  16699. # endif /* no HAVE_SYS_PARAM_H */
  16700. # endif /* no _SC_PAGESIZE */
  16701. #endif /* no HAVE_GETPAGESIZE */
  16702. int
  16703. main (void)
  16704. {
  16705. char *data, *data2, *data3;
  16706. const char *cdata2;
  16707. int i, pagesize;
  16708. int fd, fd2;
  16709. pagesize = getpagesize ();
  16710. /* First, make a file with some known garbage in it. */
  16711. data = (char *) malloc (pagesize);
  16712. if (!data)
  16713. return 1;
  16714. for (i = 0; i < pagesize; ++i)
  16715. *(data + i) = rand ();
  16716. umask (0);
  16717. fd = creat ("conftest.mmap", 0600);
  16718. if (fd < 0)
  16719. return 2;
  16720. if (write (fd, data, pagesize) != pagesize)
  16721. return 3;
  16722. close (fd);
  16723. /* Next, check that the tail of a page is zero-filled. File must have
  16724. non-zero length, otherwise we risk SIGBUS for entire page. */
  16725. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  16726. if (fd2 < 0)
  16727. return 4;
  16728. cdata2 = "";
  16729. if (write (fd2, cdata2, 1) != 1)
  16730. return 5;
  16731. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  16732. if (data2 == MAP_FAILED)
  16733. return 6;
  16734. for (i = 0; i < pagesize; ++i)
  16735. if (*(data2 + i))
  16736. return 7;
  16737. close (fd2);
  16738. if (munmap (data2, pagesize))
  16739. return 8;
  16740. /* Next, try to mmap the file at a fixed address which already has
  16741. something else allocated at it. If we can, also make sure that
  16742. we see the same garbage. */
  16743. fd = open ("conftest.mmap", O_RDWR);
  16744. if (fd < 0)
  16745. return 9;
  16746. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16747. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16748. return 10;
  16749. for (i = 0; i < pagesize; ++i)
  16750. if (*(data + i) != *(data2 + i))
  16751. return 11;
  16752. /* Finally, make sure that changes to the mapped area do not
  16753. percolate back to the file as seen by read(). (This is a bug on
  16754. some variants of i386 svr4.0.) */
  16755. for (i = 0; i < pagesize; ++i)
  16756. *(data2 + i) = *(data2 + i) + 1;
  16757. data3 = (char *) malloc (pagesize);
  16758. if (!data3)
  16759. return 12;
  16760. if (read (fd, data3, pagesize) != pagesize)
  16761. return 13;
  16762. for (i = 0; i < pagesize; ++i)
  16763. if (*(data + i) != *(data3 + i))
  16764. return 14;
  16765. close (fd);
  16766. free (data);
  16767. free (data3);
  16768. return 0;
  16769. }
  16770. _ACEOF
  16771. if ac_fn_c_try_run "$LINENO"
  16772. then :
  16773. ac_cv_func_mmap_fixed_mapped=yes
  16774. else $as_nop
  16775. ac_cv_func_mmap_fixed_mapped=no
  16776. fi
  16777. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16778. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16779. fi
  16780. fi
  16781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16782. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  16783. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16784. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  16785. fi
  16786. rm -f conftest.mmap conftest.txt
  16787. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"
  16788. then :
  16789. FILEMAP=unixfilemap
  16790. else $as_nop
  16791. FILEMAP=readfilemap
  16792. fi
  16793. printf "%s\n" "#define XML_NS 1" >>confdefs.h
  16794. printf "%s\n" "#define XML_DTD 1" >>confdefs.h
  16795. printf "%s\n" "#define XML_DEV_URANDOM 1" >>confdefs.h
  16796. # Check whether --enable-xml-attr-info was given.
  16797. if test ${enable_xml_attr_info+y}
  16798. then :
  16799. enableval=$enable_xml_attr_info;
  16800. else $as_nop
  16801. enable_xml_attr_info=no
  16802. fi
  16803. if test "x${enable_xml_attr_info}" = "xyes"
  16804. then :
  16805. printf "%s\n" "#define XML_ATTR_INFO 1" >>confdefs.h
  16806. fi
  16807. # Check whether --enable-xml-context was given.
  16808. if test ${enable_xml_context+y}
  16809. then :
  16810. enableval=$enable_xml_context; enable_xml_context=${enableval}
  16811. fi
  16812. if test "x${enable_xml_context}" != "xno"
  16813. then :
  16814. if test "x${enable_xml_context}" = "xyes" \
  16815. -o "x${enable_xml_context}" = "x"
  16816. then :
  16817. enable_xml_context=1024
  16818. fi
  16819. printf "%s\n" "#define XML_CONTEXT_BYTES ${enable_xml_context}" >>confdefs.h
  16820. fi
  16821. # Check whether --with-docbook was given.
  16822. if test ${with_docbook+y}
  16823. then :
  16824. withval=$with_docbook;
  16825. else $as_nop
  16826. with_docbook=check
  16827. fi
  16828. if test "x$with_docbook" != xno
  16829. then :
  16830. for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
  16831. do
  16832. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16833. set dummy $ac_prog; ac_word=$2
  16834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16835. printf %s "checking for $ac_word... " >&6; }
  16836. if test ${ac_cv_prog_DOCBOOK_TO_MAN+y}
  16837. then :
  16838. printf %s "(cached) " >&6
  16839. else $as_nop
  16840. if test -n "$DOCBOOK_TO_MAN"; then
  16841. ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
  16842. else
  16843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16844. for as_dir in $PATH
  16845. do
  16846. IFS=$as_save_IFS
  16847. case $as_dir in #(((
  16848. '') as_dir=./ ;;
  16849. */) ;;
  16850. *) as_dir=$as_dir/ ;;
  16851. esac
  16852. for ac_exec_ext in '' $ac_executable_extensions; do
  16853. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  16854. ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
  16855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  16856. break 2
  16857. fi
  16858. done
  16859. done
  16860. IFS=$as_save_IFS
  16861. fi
  16862. fi
  16863. DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
  16864. if test -n "$DOCBOOK_TO_MAN"; then
  16865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
  16866. printf "%s\n" "$DOCBOOK_TO_MAN" >&6; }
  16867. else
  16868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16869. printf "%s\n" "no" >&6; }
  16870. fi
  16871. test -n "$DOCBOOK_TO_MAN" && break
  16872. done
  16873. fi
  16874. if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes
  16875. then :
  16876. as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
  16877. fi
  16878. if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno
  16879. then :
  16880. if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase
  16881. then :
  16882. as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
  16883. than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  16884. configure to command docbook2x-man of docbook2X.
  16885. Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
  16886. You can also configure using --without-docbook if you can do without a man
  16887. page for xmlwf." "$LINENO" 5
  16888. fi
  16889. fi
  16890. if test "x${DOCBOOK_TO_MAN}" != x; then
  16891. WITH_DOCBOOK_TRUE=
  16892. WITH_DOCBOOK_FALSE='#'
  16893. else
  16894. WITH_DOCBOOK_TRUE='#'
  16895. WITH_DOCBOOK_FALSE=
  16896. fi
  16897. if test "x${enable_xml_attr_info}" = xyes
  16898. then :
  16899. EXPAT_ATTR_INFO=ON
  16900. else $as_nop
  16901. EXPAT_ATTR_INFO=OFF
  16902. fi
  16903. EXPAT_DTD=ON
  16904. if test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x
  16905. then :
  16906. EXPAT_LARGE_SIZE=ON
  16907. else $as_nop
  16908. EXPAT_LARGE_SIZE=OFF
  16909. fi
  16910. if test "x${_INTERNAL_MIN_SIZE_TRUE}" = x
  16911. then :
  16912. EXPAT_MIN_SIZE=ON
  16913. else $as_nop
  16914. EXPAT_MIN_SIZE=OFF
  16915. fi
  16916. EXPAT_NS=ON
  16917. if test "x${enable_xml_context}" != xno
  16918. then :
  16919. EXPAT_CONTEXT_BYTES=${enable_xml_context}
  16920. else $as_nop
  16921. EXPAT_CONTEXT_BYTES=OFF
  16922. fi
  16923. if test "x${UNICODE_TRUE}" = x
  16924. then :
  16925. if test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x
  16926. then :
  16927. EXPAT_CHAR_TYPE=wchar_t
  16928. else $as_nop
  16929. EXPAT_CHAR_TYPE=ushort
  16930. fi
  16931. else $as_nop
  16932. EXPAT_CHAR_TYPE=char
  16933. fi
  16934. PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
  16935. LIBDIR_BASENAME="$(basename "${libdir}")"
  16936. SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
  16937. SO_MINOR="${LIBAGE}"
  16938. SO_PATCH="${LIBREVISION}"
  16939. # The cast to long int works around a bug in the HP C Compiler
  16940. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16941. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16942. # This bug is HP SR number 8606223364.
  16943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  16944. printf %s "checking size of void *... " >&6; }
  16945. if test ${ac_cv_sizeof_void_p+y}
  16946. then :
  16947. printf %s "(cached) " >&6
  16948. else $as_nop
  16949. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
  16950. then :
  16951. else $as_nop
  16952. if test "$ac_cv_type_void_p" = yes; then
  16953. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16954. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16955. as_fn_error 77 "cannot compute sizeof (void *)
  16956. See \`config.log' for more details" "$LINENO" 5; }
  16957. else
  16958. ac_cv_sizeof_void_p=0
  16959. fi
  16960. fi
  16961. fi
  16962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  16963. printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
  16964. printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
  16965. # sets ac_cv_sizeof_void_p
  16966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library name prefix" >&5
  16967. printf %s "checking for shared library name prefix... " >&6; }
  16968. case "${host_os}" in #(
  16969. cygwin*) :
  16970. CMAKE_SHARED_LIBRARY_PREFIX=cyg ;; #(
  16971. *) :
  16972. CMAKE_SHARED_LIBRARY_PREFIX=lib ;;
  16973. esac
  16974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CMAKE_SHARED_LIBRARY_PREFIX}" >&5
  16975. printf "%s\n" "${CMAKE_SHARED_LIBRARY_PREFIX}" >&6; }
  16976. case "${host_os}" in #(
  16977. darwin*) :
  16978. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in ;; #(
  16979. mingw*|cygwin*) :
  16980. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in ;; #(
  16981. *) :
  16982. CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in ;;
  16983. esac
  16984. ac_config_files="$ac_config_files Makefile expat.pc cmake/expat-config.cmake cmake/autotools/expat-config-version.cmake cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE} doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
  16985. ac_config_files="$ac_config_files run.sh"
  16986. cat >confcache <<\_ACEOF
  16987. # This file is a shell script that caches the results of configure
  16988. # tests run on this system so they can be shared between configure
  16989. # scripts and configure runs, see configure's option --config-cache.
  16990. # It is not useful on other systems. If it contains results you don't
  16991. # want to keep, you may remove or edit it.
  16992. #
  16993. # config.status only pays attention to the cache file if you give it
  16994. # the --recheck option to rerun configure.
  16995. #
  16996. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16997. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16998. # following values.
  16999. _ACEOF
  17000. # The following way of writing the cache mishandles newlines in values,
  17001. # but we know of no workaround that is simple, portable, and efficient.
  17002. # So, we kill variables containing newlines.
  17003. # Ultrix sh set writes to stderr and can't be redirected directly,
  17004. # and sets the high bit in the cache file unless we assign to the vars.
  17005. (
  17006. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17007. eval ac_val=\$$ac_var
  17008. case $ac_val in #(
  17009. *${as_nl}*)
  17010. case $ac_var in #(
  17011. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17012. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17013. esac
  17014. case $ac_var in #(
  17015. _ | IFS | as_nl) ;; #(
  17016. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17017. *) { eval $ac_var=; unset $ac_var;} ;;
  17018. esac ;;
  17019. esac
  17020. done
  17021. (set) 2>&1 |
  17022. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17023. *${as_nl}ac_space=\ *)
  17024. # `set' does not quote correctly, so add quotes: double-quote
  17025. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17026. sed -n \
  17027. "s/'/'\\\\''/g;
  17028. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17029. ;; #(
  17030. *)
  17031. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17032. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17033. ;;
  17034. esac |
  17035. sort
  17036. ) |
  17037. sed '
  17038. /^ac_cv_env_/b end
  17039. t clear
  17040. :clear
  17041. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  17042. t end
  17043. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17044. :end' >>confcache
  17045. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17046. if test -w "$cache_file"; then
  17047. if test "x$cache_file" != "x/dev/null"; then
  17048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17049. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  17050. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17051. cat confcache >"$cache_file"
  17052. else
  17053. case $cache_file in #(
  17054. */* | ?:*)
  17055. mv -f confcache "$cache_file"$$ &&
  17056. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17057. *)
  17058. mv -f confcache "$cache_file" ;;
  17059. esac
  17060. fi
  17061. fi
  17062. else
  17063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17064. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  17065. fi
  17066. fi
  17067. rm -f confcache
  17068. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17069. # Let make expand exec_prefix.
  17070. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17071. DEFS=-DHAVE_CONFIG_H
  17072. ac_libobjs=
  17073. ac_ltlibobjs=
  17074. U=
  17075. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17076. # 1. Remove the extension, and $U if already installed.
  17077. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17078. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  17079. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17080. # will be set to the directory where LIBOBJS objects are built.
  17081. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17082. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17083. done
  17084. LIBOBJS=$ac_libobjs
  17085. LTLIBOBJS=$ac_ltlibobjs
  17086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17087. printf %s "checking that generated files are newer than configure... " >&6; }
  17088. if test -n "$am_sleep_pid"; then
  17089. # Hide warnings about reused PIDs.
  17090. wait $am_sleep_pid 2>/dev/null
  17091. fi
  17092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17093. printf "%s\n" "done" >&6; }
  17094. if test -n "$EXEEXT"; then
  17095. am__EXEEXT_TRUE=
  17096. am__EXEEXT_FALSE='#'
  17097. else
  17098. am__EXEEXT_TRUE='#'
  17099. am__EXEEXT_FALSE=
  17100. fi
  17101. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17102. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17103. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17104. fi
  17105. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17106. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17107. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17108. fi
  17109. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17110. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17111. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17112. fi
  17113. if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
  17114. as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
  17115. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17116. fi
  17117. if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
  17118. as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
  17119. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17120. fi
  17121. if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
  17122. as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
  17123. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17124. fi
  17125. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  17126. as_fn_error $? "conditional \"MINGW\" was never defined.
  17127. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17128. fi
  17129. if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
  17130. as_fn_error $? "conditional \"UNICODE\" was never defined.
  17131. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17132. fi
  17133. if test -z "${_INTERNAL_UNICODE_WCHAR_T_TRUE}" && test -z "${_INTERNAL_UNICODE_WCHAR_T_FALSE}"; then
  17134. as_fn_error $? "conditional \"_INTERNAL_UNICODE_WCHAR_T\" was never defined.
  17135. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17136. fi
  17137. if test -z "${_INTERNAL_MIN_SIZE_TRUE}" && test -z "${_INTERNAL_MIN_SIZE_FALSE}"; then
  17138. as_fn_error $? "conditional \"_INTERNAL_MIN_SIZE\" was never defined.
  17139. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17140. fi
  17141. if test -z "${_INTERNAL_LARGE_SIZE_TRUE}" && test -z "${_INTERNAL_LARGE_SIZE_FALSE}"; then
  17142. as_fn_error $? "conditional \"_INTERNAL_LARGE_SIZE\" was never defined.
  17143. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17144. fi
  17145. if test -z "${WITH_DOCBOOK_TRUE}" && test -z "${WITH_DOCBOOK_FALSE}"; then
  17146. as_fn_error $? "conditional \"WITH_DOCBOOK\" was never defined.
  17147. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17148. fi
  17149. : "${CONFIG_STATUS=./config.status}"
  17150. ac_write_fail=0
  17151. ac_clean_files_save=$ac_clean_files
  17152. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17154. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  17155. as_write_fail=0
  17156. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17157. #! $SHELL
  17158. # Generated by $as_me.
  17159. # Run this file to recreate the current configuration.
  17160. # Compiler output produced by configure, useful for debugging
  17161. # configure, is in config.log if it exists.
  17162. debug=false
  17163. ac_cs_recheck=false
  17164. ac_cs_silent=false
  17165. SHELL=\${CONFIG_SHELL-$SHELL}
  17166. export SHELL
  17167. _ASEOF
  17168. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17169. ## -------------------- ##
  17170. ## M4sh Initialization. ##
  17171. ## -------------------- ##
  17172. # Be more Bourne compatible
  17173. DUALCASE=1; export DUALCASE # for MKS sh
  17174. as_nop=:
  17175. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  17176. then :
  17177. emulate sh
  17178. NULLCMD=:
  17179. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17180. # is contrary to our usage. Disable this feature.
  17181. alias -g '${1+"$@"}'='"$@"'
  17182. setopt NO_GLOB_SUBST
  17183. else $as_nop
  17184. case `(set -o) 2>/dev/null` in #(
  17185. *posix*) :
  17186. set -o posix ;; #(
  17187. *) :
  17188. ;;
  17189. esac
  17190. fi
  17191. # Reset variables that may have inherited troublesome values from
  17192. # the environment.
  17193. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  17194. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  17195. # side effect of setting IFS to empty, thus disabling word splitting.)
  17196. # Quoting is to prevent editors from complaining about space-tab.
  17197. as_nl='
  17198. '
  17199. export as_nl
  17200. IFS=" "" $as_nl"
  17201. PS1='$ '
  17202. PS2='> '
  17203. PS4='+ '
  17204. # Ensure predictable behavior from utilities with locale-dependent output.
  17205. LC_ALL=C
  17206. export LC_ALL
  17207. LANGUAGE=C
  17208. export LANGUAGE
  17209. # We cannot yet rely on "unset" to work, but we need these variables
  17210. # to be unset--not just set to an empty or harmless value--now, to
  17211. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  17212. # also avoids known problems related to "unset" and subshell syntax
  17213. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  17214. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  17215. do eval test \${$as_var+y} \
  17216. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17217. done
  17218. # Ensure that fds 0, 1, and 2 are open.
  17219. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  17220. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  17221. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  17222. # The user is always right.
  17223. if ${PATH_SEPARATOR+false} :; then
  17224. PATH_SEPARATOR=:
  17225. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17226. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17227. PATH_SEPARATOR=';'
  17228. }
  17229. fi
  17230. # Find who we are. Look in the path if we contain no directory separator.
  17231. as_myself=
  17232. case $0 in #((
  17233. *[\\/]* ) as_myself=$0 ;;
  17234. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17235. for as_dir in $PATH
  17236. do
  17237. IFS=$as_save_IFS
  17238. case $as_dir in #(((
  17239. '') as_dir=./ ;;
  17240. */) ;;
  17241. *) as_dir=$as_dir/ ;;
  17242. esac
  17243. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  17244. done
  17245. IFS=$as_save_IFS
  17246. ;;
  17247. esac
  17248. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17249. # in which case we are not to be found in the path.
  17250. if test "x$as_myself" = x; then
  17251. as_myself=$0
  17252. fi
  17253. if test ! -f "$as_myself"; then
  17254. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17255. exit 1
  17256. fi
  17257. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17258. # ----------------------------------------
  17259. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17260. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17261. # script with STATUS, using 1 if that was 0.
  17262. as_fn_error ()
  17263. {
  17264. as_status=$1; test $as_status -eq 0 && as_status=1
  17265. if test "$4"; then
  17266. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17267. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17268. fi
  17269. printf "%s\n" "$as_me: error: $2" >&2
  17270. as_fn_exit $as_status
  17271. } # as_fn_error
  17272. # as_fn_set_status STATUS
  17273. # -----------------------
  17274. # Set $? to STATUS, without forking.
  17275. as_fn_set_status ()
  17276. {
  17277. return $1
  17278. } # as_fn_set_status
  17279. # as_fn_exit STATUS
  17280. # -----------------
  17281. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17282. as_fn_exit ()
  17283. {
  17284. set +e
  17285. as_fn_set_status $1
  17286. exit $1
  17287. } # as_fn_exit
  17288. # as_fn_unset VAR
  17289. # ---------------
  17290. # Portably unset VAR.
  17291. as_fn_unset ()
  17292. {
  17293. { eval $1=; unset $1;}
  17294. }
  17295. as_unset=as_fn_unset
  17296. # as_fn_append VAR VALUE
  17297. # ----------------------
  17298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17299. # advantage of any shell optimizations that allow amortized linear growth over
  17300. # repeated appends, instead of the typical quadratic growth present in naive
  17301. # implementations.
  17302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  17303. then :
  17304. eval 'as_fn_append ()
  17305. {
  17306. eval $1+=\$2
  17307. }'
  17308. else $as_nop
  17309. as_fn_append ()
  17310. {
  17311. eval $1=\$$1\$2
  17312. }
  17313. fi # as_fn_append
  17314. # as_fn_arith ARG...
  17315. # ------------------
  17316. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17317. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17318. # must be portable across $(()) and expr.
  17319. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  17320. then :
  17321. eval 'as_fn_arith ()
  17322. {
  17323. as_val=$(( $* ))
  17324. }'
  17325. else $as_nop
  17326. as_fn_arith ()
  17327. {
  17328. as_val=`expr "$@" || test $? -eq 1`
  17329. }
  17330. fi # as_fn_arith
  17331. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17332. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17333. as_expr=expr
  17334. else
  17335. as_expr=false
  17336. fi
  17337. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17338. as_basename=basename
  17339. else
  17340. as_basename=false
  17341. fi
  17342. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17343. as_dirname=dirname
  17344. else
  17345. as_dirname=false
  17346. fi
  17347. as_me=`$as_basename -- "$0" ||
  17348. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17349. X"$0" : 'X\(//\)$' \| \
  17350. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17351. printf "%s\n" X/"$0" |
  17352. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17353. s//\1/
  17354. q
  17355. }
  17356. /^X\/\(\/\/\)$/{
  17357. s//\1/
  17358. q
  17359. }
  17360. /^X\/\(\/\).*/{
  17361. s//\1/
  17362. q
  17363. }
  17364. s/.*/./; q'`
  17365. # Avoid depending upon Character Ranges.
  17366. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17367. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17368. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17369. as_cr_digits='0123456789'
  17370. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17371. # Determine whether it's possible to make 'echo' print without a newline.
  17372. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  17373. # for compatibility with existing Makefiles.
  17374. ECHO_C= ECHO_N= ECHO_T=
  17375. case `echo -n x` in #(((((
  17376. -n*)
  17377. case `echo 'xy\c'` in
  17378. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17379. xy) ECHO_C='\c';;
  17380. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17381. ECHO_T=' ';;
  17382. esac;;
  17383. *)
  17384. ECHO_N='-n';;
  17385. esac
  17386. # For backward compatibility with old third-party macros, we provide
  17387. # the shell variables $as_echo and $as_echo_n. New code should use
  17388. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  17389. as_echo='printf %s\n'
  17390. as_echo_n='printf %s'
  17391. rm -f conf$$ conf$$.exe conf$$.file
  17392. if test -d conf$$.dir; then
  17393. rm -f conf$$.dir/conf$$.file
  17394. else
  17395. rm -f conf$$.dir
  17396. mkdir conf$$.dir 2>/dev/null
  17397. fi
  17398. if (echo >conf$$.file) 2>/dev/null; then
  17399. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17400. as_ln_s='ln -s'
  17401. # ... but there are two gotchas:
  17402. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17403. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17404. # In both cases, we have to default to `cp -pR'.
  17405. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17406. as_ln_s='cp -pR'
  17407. elif ln conf$$.file conf$$ 2>/dev/null; then
  17408. as_ln_s=ln
  17409. else
  17410. as_ln_s='cp -pR'
  17411. fi
  17412. else
  17413. as_ln_s='cp -pR'
  17414. fi
  17415. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17416. rmdir conf$$.dir 2>/dev/null
  17417. # as_fn_mkdir_p
  17418. # -------------
  17419. # Create "$as_dir" as a directory, including parents if necessary.
  17420. as_fn_mkdir_p ()
  17421. {
  17422. case $as_dir in #(
  17423. -*) as_dir=./$as_dir;;
  17424. esac
  17425. test -d "$as_dir" || eval $as_mkdir_p || {
  17426. as_dirs=
  17427. while :; do
  17428. case $as_dir in #(
  17429. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17430. *) as_qdir=$as_dir;;
  17431. esac
  17432. as_dirs="'$as_qdir' $as_dirs"
  17433. as_dir=`$as_dirname -- "$as_dir" ||
  17434. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17435. X"$as_dir" : 'X\(//\)[^/]' \| \
  17436. X"$as_dir" : 'X\(//\)$' \| \
  17437. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17438. printf "%s\n" X"$as_dir" |
  17439. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17440. s//\1/
  17441. q
  17442. }
  17443. /^X\(\/\/\)[^/].*/{
  17444. s//\1/
  17445. q
  17446. }
  17447. /^X\(\/\/\)$/{
  17448. s//\1/
  17449. q
  17450. }
  17451. /^X\(\/\).*/{
  17452. s//\1/
  17453. q
  17454. }
  17455. s/.*/./; q'`
  17456. test -d "$as_dir" && break
  17457. done
  17458. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17459. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17460. } # as_fn_mkdir_p
  17461. if mkdir -p . 2>/dev/null; then
  17462. as_mkdir_p='mkdir -p "$as_dir"'
  17463. else
  17464. test -d ./-p && rmdir ./-p
  17465. as_mkdir_p=false
  17466. fi
  17467. # as_fn_executable_p FILE
  17468. # -----------------------
  17469. # Test if FILE is an executable regular file.
  17470. as_fn_executable_p ()
  17471. {
  17472. test -f "$1" && test -x "$1"
  17473. } # as_fn_executable_p
  17474. as_test_x='test -x'
  17475. as_executable_p=as_fn_executable_p
  17476. # Sed expression to map a string onto a valid CPP name.
  17477. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17478. # Sed expression to map a string onto a valid variable name.
  17479. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17480. exec 6>&1
  17481. ## ----------------------------------- ##
  17482. ## Main body of $CONFIG_STATUS script. ##
  17483. ## ----------------------------------- ##
  17484. _ASEOF
  17485. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17486. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17487. # Save the log message, to keep $0 and so on meaningful, and to
  17488. # report actual input values of CONFIG_FILES etc. instead of their
  17489. # values after options handling.
  17490. ac_log="
  17491. This file was extended by expat $as_me 2.4.4, which was
  17492. generated by GNU Autoconf 2.71. Invocation command line was
  17493. CONFIG_FILES = $CONFIG_FILES
  17494. CONFIG_HEADERS = $CONFIG_HEADERS
  17495. CONFIG_LINKS = $CONFIG_LINKS
  17496. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17497. $ $0 $@
  17498. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17499. "
  17500. _ACEOF
  17501. case $ac_config_files in *"
  17502. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17503. esac
  17504. case $ac_config_headers in *"
  17505. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17506. esac
  17507. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17508. # Files that config.status was made for.
  17509. config_files="$ac_config_files"
  17510. config_headers="$ac_config_headers"
  17511. config_commands="$ac_config_commands"
  17512. _ACEOF
  17513. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17514. ac_cs_usage="\
  17515. \`$as_me' instantiates files and other configuration actions
  17516. from templates according to the current configuration. Unless the files
  17517. and actions are specified as TAGs, all are instantiated by default.
  17518. Usage: $0 [OPTION]... [TAG]...
  17519. -h, --help print this help, then exit
  17520. -V, --version print version number and configuration settings, then exit
  17521. --config print configuration, then exit
  17522. -q, --quiet, --silent
  17523. do not print progress messages
  17524. -d, --debug don't remove temporary files
  17525. --recheck update $as_me by reconfiguring in the same conditions
  17526. --file=FILE[:TEMPLATE]
  17527. instantiate the configuration file FILE
  17528. --header=FILE[:TEMPLATE]
  17529. instantiate the configuration header FILE
  17530. Configuration files:
  17531. $config_files
  17532. Configuration headers:
  17533. $config_headers
  17534. Configuration commands:
  17535. $config_commands
  17536. Report bugs to <[email protected]>."
  17537. _ACEOF
  17538. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  17539. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  17540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17541. ac_cs_config='$ac_cs_config_escaped'
  17542. ac_cs_version="\\
  17543. expat config.status 2.4.4
  17544. configured by $0, generated by GNU Autoconf 2.71,
  17545. with options \\"\$ac_cs_config\\"
  17546. Copyright (C) 2021 Free Software Foundation, Inc.
  17547. This config.status script is free software; the Free Software Foundation
  17548. gives unlimited permission to copy, distribute and modify it."
  17549. ac_pwd='$ac_pwd'
  17550. srcdir='$srcdir'
  17551. INSTALL='$INSTALL'
  17552. MKDIR_P='$MKDIR_P'
  17553. AWK='$AWK'
  17554. test -n "\$AWK" || AWK=awk
  17555. _ACEOF
  17556. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17557. # The default lists apply if the user does not specify any file.
  17558. ac_need_defaults=:
  17559. while test $# != 0
  17560. do
  17561. case $1 in
  17562. --*=?*)
  17563. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17564. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17565. ac_shift=:
  17566. ;;
  17567. --*=)
  17568. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17569. ac_optarg=
  17570. ac_shift=:
  17571. ;;
  17572. *)
  17573. ac_option=$1
  17574. ac_optarg=$2
  17575. ac_shift=shift
  17576. ;;
  17577. esac
  17578. case $ac_option in
  17579. # Handling of the options.
  17580. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17581. ac_cs_recheck=: ;;
  17582. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17583. printf "%s\n" "$ac_cs_version"; exit ;;
  17584. --config | --confi | --conf | --con | --co | --c )
  17585. printf "%s\n" "$ac_cs_config"; exit ;;
  17586. --debug | --debu | --deb | --de | --d | -d )
  17587. debug=: ;;
  17588. --file | --fil | --fi | --f )
  17589. $ac_shift
  17590. case $ac_optarg in
  17591. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17592. '') as_fn_error $? "missing file argument" ;;
  17593. esac
  17594. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17595. ac_need_defaults=false;;
  17596. --header | --heade | --head | --hea )
  17597. $ac_shift
  17598. case $ac_optarg in
  17599. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17600. esac
  17601. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  17602. ac_need_defaults=false;;
  17603. --he | --h)
  17604. # Conflict between --help and --header
  17605. as_fn_error $? "ambiguous option: \`$1'
  17606. Try \`$0 --help' for more information.";;
  17607. --help | --hel | -h )
  17608. printf "%s\n" "$ac_cs_usage"; exit ;;
  17609. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17610. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17611. ac_cs_silent=: ;;
  17612. # This is an error.
  17613. -*) as_fn_error $? "unrecognized option: \`$1'
  17614. Try \`$0 --help' for more information." ;;
  17615. *) as_fn_append ac_config_targets " $1"
  17616. ac_need_defaults=false ;;
  17617. esac
  17618. shift
  17619. done
  17620. ac_configure_extra_args=
  17621. if $ac_cs_silent; then
  17622. exec 6>/dev/null
  17623. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17624. fi
  17625. _ACEOF
  17626. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17627. if \$ac_cs_recheck; then
  17628. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17629. shift
  17630. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  17631. CONFIG_SHELL='$SHELL'
  17632. export CONFIG_SHELL
  17633. exec "\$@"
  17634. fi
  17635. _ACEOF
  17636. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17637. exec 5>>config.log
  17638. {
  17639. echo
  17640. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17641. ## Running $as_me. ##
  17642. _ASBOX
  17643. printf "%s\n" "$ac_log"
  17644. } >&5
  17645. _ACEOF
  17646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17647. #
  17648. # INIT-COMMANDS
  17649. #
  17650. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  17651. # The HP-UX ksh and POSIX shell print the target directory to stdout
  17652. # if CDPATH is set.
  17653. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17654. sed_quote_subst='$sed_quote_subst'
  17655. double_quote_subst='$double_quote_subst'
  17656. delay_variable_subst='$delay_variable_subst'
  17657. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  17658. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  17659. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  17660. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  17661. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  17662. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  17663. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  17664. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  17665. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  17666. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  17667. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  17668. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  17669. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  17670. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  17671. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  17672. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  17673. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  17674. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  17675. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  17676. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  17677. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  17678. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  17679. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  17680. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  17681. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  17682. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  17683. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  17684. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  17685. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  17686. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  17687. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  17688. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  17689. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  17690. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  17691. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  17692. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  17693. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  17694. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  17695. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  17696. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  17697. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  17698. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  17699. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  17700. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  17701. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  17702. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  17703. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  17704. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17705. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17706. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  17707. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  17708. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  17709. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  17710. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  17711. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  17712. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  17713. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  17714. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  17715. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  17716. 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"`'
  17717. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  17718. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  17719. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  17720. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  17721. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  17722. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  17723. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  17724. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  17725. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  17726. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  17727. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  17728. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  17729. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  17730. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  17731. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  17732. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  17733. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  17734. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  17735. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  17736. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  17737. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17738. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  17739. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  17740. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  17741. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  17742. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  17743. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  17744. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  17745. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  17746. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17747. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  17748. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  17749. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  17750. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17751. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  17752. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  17753. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  17754. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  17755. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  17756. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  17757. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17758. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  17759. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  17760. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  17761. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  17762. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  17763. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  17764. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  17765. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  17766. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  17767. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  17768. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  17769. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  17770. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  17771. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  17772. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  17773. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  17774. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  17775. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  17776. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  17777. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  17778. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  17779. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  17780. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  17781. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  17782. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  17783. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  17784. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  17785. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  17786. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  17787. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  17788. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  17789. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  17790. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  17791. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  17792. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  17793. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  17794. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  17795. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  17796. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  17797. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  17798. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  17799. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  17800. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17801. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17802. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17803. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  17804. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  17805. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17806. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  17807. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  17808. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  17809. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  17810. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  17811. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  17812. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17813. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17814. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  17815. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17816. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17817. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17818. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17819. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17820. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17821. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  17822. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17823. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  17824. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17825. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  17826. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  17827. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  17828. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  17829. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  17830. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  17831. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  17832. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  17833. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  17834. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17835. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  17836. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  17837. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17838. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  17839. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  17840. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  17841. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  17842. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  17843. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  17844. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  17845. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  17846. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  17847. LTCC='$LTCC'
  17848. LTCFLAGS='$LTCFLAGS'
  17849. compiler='$compiler_DEFAULT'
  17850. # A function that is used when there is no print builtin or printf.
  17851. func_fallback_echo ()
  17852. {
  17853. eval 'cat <<_LTECHO_EOF
  17854. \$1
  17855. _LTECHO_EOF'
  17856. }
  17857. # Quote evaled strings.
  17858. for var in AS \
  17859. DLLTOOL \
  17860. OBJDUMP \
  17861. SHELL \
  17862. ECHO \
  17863. PATH_SEPARATOR \
  17864. SED \
  17865. GREP \
  17866. EGREP \
  17867. FGREP \
  17868. LD \
  17869. NM \
  17870. LN_S \
  17871. lt_SP2NL \
  17872. lt_NL2SP \
  17873. reload_flag \
  17874. deplibs_check_method \
  17875. file_magic_cmd \
  17876. file_magic_glob \
  17877. want_nocaseglob \
  17878. sharedlib_from_linklib_cmd \
  17879. AR \
  17880. AR_FLAGS \
  17881. archiver_list_spec \
  17882. STRIP \
  17883. RANLIB \
  17884. CC \
  17885. CFLAGS \
  17886. compiler \
  17887. lt_cv_sys_global_symbol_pipe \
  17888. lt_cv_sys_global_symbol_to_cdecl \
  17889. lt_cv_sys_global_symbol_to_import \
  17890. lt_cv_sys_global_symbol_to_c_name_address \
  17891. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  17892. lt_cv_nm_interface \
  17893. nm_file_list_spec \
  17894. lt_cv_truncate_bin \
  17895. lt_prog_compiler_no_builtin_flag \
  17896. lt_prog_compiler_pic \
  17897. lt_prog_compiler_wl \
  17898. lt_prog_compiler_static \
  17899. lt_cv_prog_compiler_c_o \
  17900. need_locks \
  17901. MANIFEST_TOOL \
  17902. DSYMUTIL \
  17903. NMEDIT \
  17904. LIPO \
  17905. OTOOL \
  17906. OTOOL64 \
  17907. shrext_cmds \
  17908. export_dynamic_flag_spec \
  17909. whole_archive_flag_spec \
  17910. compiler_needs_object \
  17911. with_gnu_ld \
  17912. allow_undefined_flag \
  17913. no_undefined_flag \
  17914. hardcode_libdir_flag_spec \
  17915. hardcode_libdir_separator \
  17916. exclude_expsyms \
  17917. include_expsyms \
  17918. file_list_spec \
  17919. variables_saved_for_relink \
  17920. libname_spec \
  17921. library_names_spec \
  17922. soname_spec \
  17923. install_override_mode \
  17924. finish_eval \
  17925. old_striplib \
  17926. striplib \
  17927. compiler_lib_search_dirs \
  17928. predep_objects \
  17929. postdep_objects \
  17930. predeps \
  17931. postdeps \
  17932. compiler_lib_search_path \
  17933. LD_CXX \
  17934. reload_flag_CXX \
  17935. compiler_CXX \
  17936. lt_prog_compiler_no_builtin_flag_CXX \
  17937. lt_prog_compiler_pic_CXX \
  17938. lt_prog_compiler_wl_CXX \
  17939. lt_prog_compiler_static_CXX \
  17940. lt_cv_prog_compiler_c_o_CXX \
  17941. export_dynamic_flag_spec_CXX \
  17942. whole_archive_flag_spec_CXX \
  17943. compiler_needs_object_CXX \
  17944. with_gnu_ld_CXX \
  17945. allow_undefined_flag_CXX \
  17946. no_undefined_flag_CXX \
  17947. hardcode_libdir_flag_spec_CXX \
  17948. hardcode_libdir_separator_CXX \
  17949. exclude_expsyms_CXX \
  17950. include_expsyms_CXX \
  17951. file_list_spec_CXX \
  17952. compiler_lib_search_dirs_CXX \
  17953. predep_objects_CXX \
  17954. postdep_objects_CXX \
  17955. predeps_CXX \
  17956. postdeps_CXX \
  17957. compiler_lib_search_path_CXX; do
  17958. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  17959. *[\\\\\\\`\\"\\\$]*)
  17960. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  17961. ;;
  17962. *)
  17963. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  17964. ;;
  17965. esac
  17966. done
  17967. # Double-quote double-evaled strings.
  17968. for var in reload_cmds \
  17969. old_postinstall_cmds \
  17970. old_postuninstall_cmds \
  17971. old_archive_cmds \
  17972. extract_expsyms_cmds \
  17973. old_archive_from_new_cmds \
  17974. old_archive_from_expsyms_cmds \
  17975. archive_cmds \
  17976. archive_expsym_cmds \
  17977. module_cmds \
  17978. module_expsym_cmds \
  17979. export_symbols_cmds \
  17980. prelink_cmds \
  17981. postlink_cmds \
  17982. postinstall_cmds \
  17983. postuninstall_cmds \
  17984. finish_cmds \
  17985. sys_lib_search_path_spec \
  17986. configure_time_dlsearch_path \
  17987. configure_time_lt_sys_library_path \
  17988. reload_cmds_CXX \
  17989. old_archive_cmds_CXX \
  17990. old_archive_from_new_cmds_CXX \
  17991. old_archive_from_expsyms_cmds_CXX \
  17992. archive_cmds_CXX \
  17993. archive_expsym_cmds_CXX \
  17994. module_cmds_CXX \
  17995. module_expsym_cmds_CXX \
  17996. export_symbols_cmds_CXX \
  17997. prelink_cmds_CXX \
  17998. postlink_cmds_CXX; do
  17999. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18000. *[\\\\\\\`\\"\\\$]*)
  18001. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18002. ;;
  18003. *)
  18004. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18005. ;;
  18006. esac
  18007. done
  18008. ac_aux_dir='$ac_aux_dir'
  18009. # See if we are running on zsh, and set the options that allow our
  18010. # commands through without removal of \ escapes INIT.
  18011. if test -n "\${ZSH_VERSION+set}"; then
  18012. setopt NO_GLOB_SUBST
  18013. fi
  18014. PACKAGE='$PACKAGE'
  18015. VERSION='$VERSION'
  18016. RM='$RM'
  18017. ofile='$ofile'
  18018. _ACEOF
  18019. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18020. # Handling of arguments.
  18021. for ac_config_target in $ac_config_targets
  18022. do
  18023. case $ac_config_target in
  18024. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  18025. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18026. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18027. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18028. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  18029. "cmake/expat-config.cmake") CONFIG_FILES="$CONFIG_FILES cmake/expat-config.cmake" ;;
  18030. "cmake/autotools/expat-config-version.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-config-version.cmake" ;;
  18031. "cmake/autotools/expat-noconfig.cmake") CONFIG_FILES="$CONFIG_FILES cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}" ;;
  18032. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  18033. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  18034. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  18035. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  18036. "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
  18037. "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
  18038. "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
  18039. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18040. esac
  18041. done
  18042. # If the user did not use the arguments to specify the items to instantiate,
  18043. # then the envvar interface is used. Set only those that are not.
  18044. # We use the long form for the default assignment because of an extremely
  18045. # bizarre bug on SunOS 4.1.3.
  18046. if $ac_need_defaults; then
  18047. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  18048. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  18049. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  18050. fi
  18051. # Have a temporary directory for convenience. Make it in the build tree
  18052. # simply because there is no reason against having it here, and in addition,
  18053. # creating and moving files from /tmp can sometimes cause problems.
  18054. # Hook for its removal unless debugging.
  18055. # Note that there is a small window in which the directory will not be cleaned:
  18056. # after its creation but before its name has been assigned to `$tmp'.
  18057. $debug ||
  18058. {
  18059. tmp= ac_tmp=
  18060. trap 'exit_status=$?
  18061. : "${ac_tmp:=$tmp}"
  18062. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18063. ' 0
  18064. trap 'as_fn_exit 1' 1 2 13 15
  18065. }
  18066. # Create a (secure) tmp directory for tmp files.
  18067. {
  18068. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18069. test -d "$tmp"
  18070. } ||
  18071. {
  18072. tmp=./conf$$-$RANDOM
  18073. (umask 077 && mkdir "$tmp")
  18074. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18075. ac_tmp=$tmp
  18076. # Set up the scripts for CONFIG_FILES section.
  18077. # No need to generate them if there are no CONFIG_FILES.
  18078. # This happens for instance with `./config.status config.h'.
  18079. if test -n "$CONFIG_FILES"; then
  18080. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  18081. ac_cs_awk_getline=:
  18082. ac_cs_awk_pipe_init=
  18083. ac_cs_awk_read_file='
  18084. while ((getline aline < (F[key])) > 0)
  18085. print(aline)
  18086. close(F[key])'
  18087. ac_cs_awk_pipe_fini=
  18088. else
  18089. ac_cs_awk_getline=false
  18090. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  18091. ac_cs_awk_read_file='
  18092. print "|#_!!_#|"
  18093. print "cat " F[key] " &&"
  18094. '$ac_cs_awk_pipe_init
  18095. # The final `:' finishes the AND list.
  18096. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  18097. fi
  18098. ac_cr=`echo X | tr X '\015'`
  18099. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18100. # But we know of no other shell where ac_cr would be empty at this
  18101. # point, so we can use a bashism as a fallback.
  18102. if test "x$ac_cr" = x; then
  18103. eval ac_cr=\$\'\\r\'
  18104. fi
  18105. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18106. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18107. ac_cs_awk_cr='\\r'
  18108. else
  18109. ac_cs_awk_cr=$ac_cr
  18110. fi
  18111. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18112. _ACEOF
  18113. # Create commands to substitute file output variables.
  18114. {
  18115. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  18116. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  18117. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  18118. echo "_ACAWK" &&
  18119. echo "_ACEOF"
  18120. } >conf$$files.sh &&
  18121. . ./conf$$files.sh ||
  18122. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18123. rm -f conf$$files.sh
  18124. {
  18125. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18126. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18127. echo "_ACEOF"
  18128. } >conf$$subs.sh ||
  18129. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18130. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18131. ac_delim='%!_!# '
  18132. for ac_last_try in false false false false false :; do
  18133. . ./conf$$subs.sh ||
  18134. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18135. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18136. if test $ac_delim_n = $ac_delim_num; then
  18137. break
  18138. elif $ac_last_try; then
  18139. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18140. else
  18141. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18142. fi
  18143. done
  18144. rm -f conf$$subs.sh
  18145. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18146. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18147. _ACEOF
  18148. sed -n '
  18149. h
  18150. s/^/S["/; s/!.*/"]=/
  18151. p
  18152. g
  18153. s/^[^!]*!//
  18154. :repl
  18155. t repl
  18156. s/'"$ac_delim"'$//
  18157. t delim
  18158. :nl
  18159. h
  18160. s/\(.\{148\}\)..*/\1/
  18161. t more1
  18162. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18163. p
  18164. n
  18165. b repl
  18166. :more1
  18167. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18168. p
  18169. g
  18170. s/.\{148\}//
  18171. t nl
  18172. :delim
  18173. h
  18174. s/\(.\{148\}\)..*/\1/
  18175. t more2
  18176. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18177. p
  18178. b
  18179. :more2
  18180. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18181. p
  18182. g
  18183. s/.\{148\}//
  18184. t delim
  18185. ' <conf$$subs.awk | sed '
  18186. /^[^""]/{
  18187. N
  18188. s/\n//
  18189. }
  18190. ' >>$CONFIG_STATUS || ac_write_fail=1
  18191. rm -f conf$$subs.awk
  18192. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18193. _ACAWK
  18194. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18195. for (key in S) S_is_set[key] = 1
  18196. FS = ""
  18197. \$ac_cs_awk_pipe_init
  18198. }
  18199. {
  18200. line = $ 0
  18201. nfields = split(line, field, "@")
  18202. substed = 0
  18203. len = length(field[1])
  18204. for (i = 2; i < nfields; i++) {
  18205. key = field[i]
  18206. keylen = length(key)
  18207. if (S_is_set[key]) {
  18208. value = S[key]
  18209. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18210. len += length(value) + length(field[++i])
  18211. substed = 1
  18212. } else
  18213. len += 1 + keylen
  18214. }
  18215. if (nfields == 3 && !substed) {
  18216. key = field[2]
  18217. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  18218. \$ac_cs_awk_read_file
  18219. next
  18220. }
  18221. }
  18222. print line
  18223. }
  18224. \$ac_cs_awk_pipe_fini
  18225. _ACAWK
  18226. _ACEOF
  18227. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18228. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18229. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18230. else
  18231. cat
  18232. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18233. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18234. _ACEOF
  18235. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18236. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18237. # trailing colons and then remove the whole line if VPATH becomes empty
  18238. # (actually we leave an empty line to preserve line numbers).
  18239. if test "x$srcdir" = x.; then
  18240. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18241. h
  18242. s///
  18243. s/^/:/
  18244. s/[ ]*$/:/
  18245. s/:\$(srcdir):/:/g
  18246. s/:\${srcdir}:/:/g
  18247. s/:@srcdir@:/:/g
  18248. s/^:*//
  18249. s/:*$//
  18250. x
  18251. s/\(=[ ]*\).*/\1/
  18252. G
  18253. s/\n//
  18254. s/^[^=]*=[ ]*$//
  18255. }'
  18256. fi
  18257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18258. fi # test -n "$CONFIG_FILES"
  18259. # Set up the scripts for CONFIG_HEADERS section.
  18260. # No need to generate them if there are no CONFIG_HEADERS.
  18261. # This happens for instance with `./config.status Makefile'.
  18262. if test -n "$CONFIG_HEADERS"; then
  18263. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18264. BEGIN {
  18265. _ACEOF
  18266. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18267. # here-document in config.status, that substitutes the proper values into
  18268. # config.h.in to produce config.h.
  18269. # Create a delimiter string that does not exist in confdefs.h, to ease
  18270. # handling of long lines.
  18271. ac_delim='%!_!# '
  18272. for ac_last_try in false false :; do
  18273. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18274. if test -z "$ac_tt"; then
  18275. break
  18276. elif $ac_last_try; then
  18277. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18278. else
  18279. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18280. fi
  18281. done
  18282. # For the awk script, D is an array of macro values keyed by name,
  18283. # likewise P contains macro parameters if any. Preserve backslash
  18284. # newline sequences.
  18285. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18286. sed -n '
  18287. s/.\{148\}/&'"$ac_delim"'/g
  18288. t rset
  18289. :rset
  18290. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18291. t def
  18292. d
  18293. :def
  18294. s/\\$//
  18295. t bsnl
  18296. s/["\\]/\\&/g
  18297. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18298. D["\1"]=" \3"/p
  18299. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18300. d
  18301. :bsnl
  18302. s/["\\]/\\&/g
  18303. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18304. D["\1"]=" \3\\\\\\n"\\/p
  18305. t cont
  18306. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18307. t cont
  18308. d
  18309. :cont
  18310. n
  18311. s/.\{148\}/&'"$ac_delim"'/g
  18312. t clear
  18313. :clear
  18314. s/\\$//
  18315. t bsnlc
  18316. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18317. d
  18318. :bsnlc
  18319. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18320. b cont
  18321. ' <confdefs.h | sed '
  18322. s/'"$ac_delim"'/"\\\
  18323. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18324. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18325. for (key in D) D_is_set[key] = 1
  18326. FS = ""
  18327. }
  18328. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18329. line = \$ 0
  18330. split(line, arg, " ")
  18331. if (arg[1] == "#") {
  18332. defundef = arg[2]
  18333. mac1 = arg[3]
  18334. } else {
  18335. defundef = substr(arg[1], 2)
  18336. mac1 = arg[2]
  18337. }
  18338. split(mac1, mac2, "(") #)
  18339. macro = mac2[1]
  18340. prefix = substr(line, 1, index(line, defundef) - 1)
  18341. if (D_is_set[macro]) {
  18342. # Preserve the white space surrounding the "#".
  18343. print prefix "define", macro P[macro] D[macro]
  18344. next
  18345. } else {
  18346. # Replace #undef with comments. This is necessary, for example,
  18347. # in the case of _POSIX_SOURCE, which is predefined and required
  18348. # on some systems where configure will not decide to define it.
  18349. if (defundef == "undef") {
  18350. print "/*", prefix defundef, macro, "*/"
  18351. next
  18352. }
  18353. }
  18354. }
  18355. { print }
  18356. _ACAWK
  18357. _ACEOF
  18358. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18359. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18360. fi # test -n "$CONFIG_HEADERS"
  18361. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18362. shift
  18363. for ac_tag
  18364. do
  18365. case $ac_tag in
  18366. :[FHLC]) ac_mode=$ac_tag; continue;;
  18367. esac
  18368. case $ac_mode$ac_tag in
  18369. :[FHL]*:*);;
  18370. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18371. :[FH]-) ac_tag=-:-;;
  18372. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18373. esac
  18374. ac_save_IFS=$IFS
  18375. IFS=:
  18376. set x $ac_tag
  18377. IFS=$ac_save_IFS
  18378. shift
  18379. ac_file=$1
  18380. shift
  18381. case $ac_mode in
  18382. :L) ac_source=$1;;
  18383. :[FH])
  18384. ac_file_inputs=
  18385. for ac_f
  18386. do
  18387. case $ac_f in
  18388. -) ac_f="$ac_tmp/stdin";;
  18389. *) # Look for the file first in the build tree, then in the source tree
  18390. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18391. # because $ac_f cannot contain `:'.
  18392. test -f "$ac_f" ||
  18393. case $ac_f in
  18394. [\\/$]*) false;;
  18395. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18396. esac ||
  18397. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18398. esac
  18399. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18400. as_fn_append ac_file_inputs " '$ac_f'"
  18401. done
  18402. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18403. # use $as_me), people would be surprised to read:
  18404. # /* config.h. Generated by config.status. */
  18405. configure_input='Generated from '`
  18406. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18407. `' by configure.'
  18408. if test x"$ac_file" != x-; then
  18409. configure_input="$ac_file. $configure_input"
  18410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18411. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  18412. fi
  18413. # Neutralize special characters interpreted by sed in replacement strings.
  18414. case $configure_input in #(
  18415. *\&* | *\|* | *\\* )
  18416. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  18417. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18418. *) ac_sed_conf_input=$configure_input;;
  18419. esac
  18420. case $ac_tag in
  18421. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18422. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18423. esac
  18424. ;;
  18425. esac
  18426. ac_dir=`$as_dirname -- "$ac_file" ||
  18427. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18428. X"$ac_file" : 'X\(//\)[^/]' \| \
  18429. X"$ac_file" : 'X\(//\)$' \| \
  18430. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18431. printf "%s\n" X"$ac_file" |
  18432. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18433. s//\1/
  18434. q
  18435. }
  18436. /^X\(\/\/\)[^/].*/{
  18437. s//\1/
  18438. q
  18439. }
  18440. /^X\(\/\/\)$/{
  18441. s//\1/
  18442. q
  18443. }
  18444. /^X\(\/\).*/{
  18445. s//\1/
  18446. q
  18447. }
  18448. s/.*/./; q'`
  18449. as_dir="$ac_dir"; as_fn_mkdir_p
  18450. ac_builddir=.
  18451. case "$ac_dir" in
  18452. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18453. *)
  18454. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  18455. # A ".." for each directory in $ac_dir_suffix.
  18456. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18457. case $ac_top_builddir_sub in
  18458. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18459. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18460. esac ;;
  18461. esac
  18462. ac_abs_top_builddir=$ac_pwd
  18463. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18464. # for backward compatibility:
  18465. ac_top_builddir=$ac_top_build_prefix
  18466. case $srcdir in
  18467. .) # We are building in place.
  18468. ac_srcdir=.
  18469. ac_top_srcdir=$ac_top_builddir_sub
  18470. ac_abs_top_srcdir=$ac_pwd ;;
  18471. [\\/]* | ?:[\\/]* ) # Absolute name.
  18472. ac_srcdir=$srcdir$ac_dir_suffix;
  18473. ac_top_srcdir=$srcdir
  18474. ac_abs_top_srcdir=$srcdir ;;
  18475. *) # Relative name.
  18476. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18477. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18478. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18479. esac
  18480. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18481. case $ac_mode in
  18482. :F)
  18483. #
  18484. # CONFIG_FILE
  18485. #
  18486. case $INSTALL in
  18487. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18488. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18489. esac
  18490. ac_MKDIR_P=$MKDIR_P
  18491. case $MKDIR_P in
  18492. [\\/$]* | ?:[\\/]* ) ;;
  18493. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18494. esac
  18495. _ACEOF
  18496. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18497. # If the template does not know about datarootdir, expand it.
  18498. # FIXME: This hack should be removed a few years after 2.60.
  18499. ac_datarootdir_hack=; ac_datarootdir_seen=
  18500. ac_sed_dataroot='
  18501. /datarootdir/ {
  18502. p
  18503. q
  18504. }
  18505. /@datadir@/p
  18506. /@docdir@/p
  18507. /@infodir@/p
  18508. /@localedir@/p
  18509. /@mandir@/p'
  18510. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18511. *datarootdir*) ac_datarootdir_seen=yes;;
  18512. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18514. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18515. _ACEOF
  18516. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18517. ac_datarootdir_hack='
  18518. s&@datadir@&$datadir&g
  18519. s&@docdir@&$docdir&g
  18520. s&@infodir@&$infodir&g
  18521. s&@localedir@&$localedir&g
  18522. s&@mandir@&$mandir&g
  18523. s&\\\${datarootdir}&$datarootdir&g' ;;
  18524. esac
  18525. _ACEOF
  18526. # Neutralize VPATH when `$srcdir' = `.'.
  18527. # Shell code in configure.ac might set extrasub.
  18528. # FIXME: do we really want to maintain this feature?
  18529. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18530. ac_sed_extra="$ac_vpsub
  18531. $extrasub
  18532. _ACEOF
  18533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18534. :t
  18535. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18536. s|@configure_input@|$ac_sed_conf_input|;t t
  18537. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18538. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18539. s&@srcdir@&$ac_srcdir&;t t
  18540. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18541. s&@top_srcdir@&$ac_top_srcdir&;t t
  18542. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18543. s&@builddir@&$ac_builddir&;t t
  18544. s&@abs_builddir@&$ac_abs_builddir&;t t
  18545. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18546. s&@INSTALL@&$ac_INSTALL&;t t
  18547. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18548. $ac_datarootdir_hack
  18549. "
  18550. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  18551. if $ac_cs_awk_getline; then
  18552. $AWK -f "$ac_tmp/subs.awk"
  18553. else
  18554. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  18555. fi \
  18556. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18557. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18558. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18559. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18560. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18562. which seems to be undefined. Please make sure it is defined" >&5
  18563. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18564. which seems to be undefined. Please make sure it is defined" >&2;}
  18565. rm -f "$ac_tmp/stdin"
  18566. case $ac_file in
  18567. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18568. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18569. esac \
  18570. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18571. ;;
  18572. :H)
  18573. #
  18574. # CONFIG_HEADER
  18575. #
  18576. if test x"$ac_file" != x-; then
  18577. {
  18578. printf "%s\n" "/* $configure_input */" >&1 \
  18579. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  18580. } >"$ac_tmp/config.h" \
  18581. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18582. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  18583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18584. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  18585. else
  18586. rm -f "$ac_file"
  18587. mv "$ac_tmp/config.h" "$ac_file" \
  18588. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18589. fi
  18590. else
  18591. printf "%s\n" "/* $configure_input */" >&1 \
  18592. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  18593. || as_fn_error $? "could not create -" "$LINENO" 5
  18594. fi
  18595. # Compute "$ac_file"'s index in $config_headers.
  18596. _am_arg="$ac_file"
  18597. _am_stamp_count=1
  18598. for _am_header in $config_headers :; do
  18599. case $_am_header in
  18600. $_am_arg | $_am_arg:* )
  18601. break ;;
  18602. * )
  18603. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  18604. esac
  18605. done
  18606. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  18607. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18608. X"$_am_arg" : 'X\(//\)[^/]' \| \
  18609. X"$_am_arg" : 'X\(//\)$' \| \
  18610. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  18611. printf "%s\n" X"$_am_arg" |
  18612. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18613. s//\1/
  18614. q
  18615. }
  18616. /^X\(\/\/\)[^/].*/{
  18617. s//\1/
  18618. q
  18619. }
  18620. /^X\(\/\/\)$/{
  18621. s//\1/
  18622. q
  18623. }
  18624. /^X\(\/\).*/{
  18625. s//\1/
  18626. q
  18627. }
  18628. s/.*/./; q'`/stamp-h$_am_stamp_count
  18629. ;;
  18630. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  18631. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  18632. ;;
  18633. esac
  18634. case $ac_file$ac_mode in
  18635. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  18636. # Older Autoconf quotes --file arguments for eval, but not when files
  18637. # are listed without --file. Let's play safe and only enable the eval
  18638. # if we detect the quoting.
  18639. # TODO: see whether this extra hack can be removed once we start
  18640. # requiring Autoconf 2.70 or later.
  18641. case $CONFIG_FILES in #(
  18642. *\'*) :
  18643. eval set x "$CONFIG_FILES" ;; #(
  18644. *) :
  18645. set x $CONFIG_FILES ;; #(
  18646. *) :
  18647. ;;
  18648. esac
  18649. shift
  18650. # Used to flag and report bootstrapping failures.
  18651. am_rc=0
  18652. for am_mf
  18653. do
  18654. # Strip MF so we end up with the name of the file.
  18655. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  18656. # Check whether this is an Automake generated Makefile which includes
  18657. # dependency-tracking related rules and includes.
  18658. # Grep'ing the whole file directly is not great: AIX grep has a line
  18659. # limit of 2048, but all sed's we know have understand at least 4000.
  18660. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  18661. || continue
  18662. am_dirpart=`$as_dirname -- "$am_mf" ||
  18663. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18664. X"$am_mf" : 'X\(//\)[^/]' \| \
  18665. X"$am_mf" : 'X\(//\)$' \| \
  18666. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  18667. printf "%s\n" X"$am_mf" |
  18668. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18669. s//\1/
  18670. q
  18671. }
  18672. /^X\(\/\/\)[^/].*/{
  18673. s//\1/
  18674. q
  18675. }
  18676. /^X\(\/\/\)$/{
  18677. s//\1/
  18678. q
  18679. }
  18680. /^X\(\/\).*/{
  18681. s//\1/
  18682. q
  18683. }
  18684. s/.*/./; q'`
  18685. am_filepart=`$as_basename -- "$am_mf" ||
  18686. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  18687. X"$am_mf" : 'X\(//\)$' \| \
  18688. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  18689. printf "%s\n" X/"$am_mf" |
  18690. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18691. s//\1/
  18692. q
  18693. }
  18694. /^X\/\(\/\/\)$/{
  18695. s//\1/
  18696. q
  18697. }
  18698. /^X\/\(\/\).*/{
  18699. s//\1/
  18700. q
  18701. }
  18702. s/.*/./; q'`
  18703. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  18704. && sed -e '/# am--include-marker/d' "$am_filepart" \
  18705. | $MAKE -f - am--depfiles" >&5
  18706. (cd "$am_dirpart" \
  18707. && sed -e '/# am--include-marker/d' "$am_filepart" \
  18708. | $MAKE -f - am--depfiles) >&5 2>&5
  18709. ac_status=$?
  18710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18711. (exit $ac_status); } || am_rc=$?
  18712. done
  18713. if test $am_rc -ne 0; then
  18714. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18715. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18716. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  18717. for automatic dependency tracking. If GNU make was not used, consider
  18718. re-running the configure script with MAKE=\"gmake\" (or whatever is
  18719. necessary). You can also try re-running configure with the
  18720. '--disable-dependency-tracking' option to at least be able to build
  18721. the package (albeit without support for automatic dependency tracking).
  18722. See \`config.log' for more details" "$LINENO" 5; }
  18723. fi
  18724. { am_dirpart=; unset am_dirpart;}
  18725. { am_filepart=; unset am_filepart;}
  18726. { am_mf=; unset am_mf;}
  18727. { am_rc=; unset am_rc;}
  18728. rm -f conftest-deps.mk
  18729. }
  18730. ;;
  18731. "libtool":C)
  18732. # See if we are running on zsh, and set the options that allow our
  18733. # commands through without removal of \ escapes.
  18734. if test -n "${ZSH_VERSION+set}"; then
  18735. setopt NO_GLOB_SUBST
  18736. fi
  18737. cfgfile=${ofile}T
  18738. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  18739. $RM "$cfgfile"
  18740. cat <<_LT_EOF >> "$cfgfile"
  18741. #! $SHELL
  18742. # Generated automatically by $as_me ($PACKAGE) $VERSION
  18743. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18744. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  18745. # Provide generalized library-building support services.
  18746. # Written by Gordon Matzigkeit, 1996
  18747. # Copyright (C) 2014 Free Software Foundation, Inc.
  18748. # This is free software; see the source for copying conditions. There is NO
  18749. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18750. # GNU Libtool is free software; you can redistribute it and/or modify
  18751. # it under the terms of the GNU General Public License as published by
  18752. # the Free Software Foundation; either version 2 of of the License, or
  18753. # (at your option) any later version.
  18754. #
  18755. # As a special exception to the GNU General Public License, if you
  18756. # distribute this file as part of a program or library that is built
  18757. # using GNU Libtool, you may include this file under the same
  18758. # distribution terms that you use for the rest of that program.
  18759. #
  18760. # GNU Libtool is distributed in the hope that it will be useful, but
  18761. # WITHOUT ANY WARRANTY; without even the implied warranty of
  18762. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18763. # GNU General Public License for more details.
  18764. #
  18765. # You should have received a copy of the GNU General Public License
  18766. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18767. # The names of the tagged configurations supported by this script.
  18768. available_tags='CXX '
  18769. # Configured defaults for sys_lib_dlsearch_path munging.
  18770. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  18771. # ### BEGIN LIBTOOL CONFIG
  18772. # Which release of libtool.m4 was used?
  18773. macro_version=$macro_version
  18774. macro_revision=$macro_revision
  18775. # Assembler program.
  18776. AS=$lt_AS
  18777. # DLL creation program.
  18778. DLLTOOL=$lt_DLLTOOL
  18779. # Object dumper program.
  18780. OBJDUMP=$lt_OBJDUMP
  18781. # Whether or not to build shared libraries.
  18782. build_libtool_libs=$enable_shared
  18783. # Whether or not to build static libraries.
  18784. build_old_libs=$enable_static
  18785. # What type of objects to build.
  18786. pic_mode=$pic_mode
  18787. # Whether or not to optimize for fast installation.
  18788. fast_install=$enable_fast_install
  18789. # Shared archive member basename,for filename based shared library versioning on AIX.
  18790. shared_archive_member_spec=$shared_archive_member_spec
  18791. # Shell to use when invoking shell scripts.
  18792. SHELL=$lt_SHELL
  18793. # An echo program that protects backslashes.
  18794. ECHO=$lt_ECHO
  18795. # The PATH separator for the build system.
  18796. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  18797. # The host system.
  18798. host_alias=$host_alias
  18799. host=$host
  18800. host_os=$host_os
  18801. # The build system.
  18802. build_alias=$build_alias
  18803. build=$build
  18804. build_os=$build_os
  18805. # A sed program that does not truncate output.
  18806. SED=$lt_SED
  18807. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  18808. Xsed="\$SED -e 1s/^X//"
  18809. # A grep program that handles long lines.
  18810. GREP=$lt_GREP
  18811. # An ERE matcher.
  18812. EGREP=$lt_EGREP
  18813. # A literal string matcher.
  18814. FGREP=$lt_FGREP
  18815. # A BSD- or MS-compatible name lister.
  18816. NM=$lt_NM
  18817. # Whether we need soft or hard links.
  18818. LN_S=$lt_LN_S
  18819. # What is the maximum length of a command?
  18820. max_cmd_len=$max_cmd_len
  18821. # Object file suffix (normally "o").
  18822. objext=$ac_objext
  18823. # Executable file suffix (normally "").
  18824. exeext=$exeext
  18825. # whether the shell understands "unset".
  18826. lt_unset=$lt_unset
  18827. # turn spaces into newlines.
  18828. SP2NL=$lt_lt_SP2NL
  18829. # turn newlines into spaces.
  18830. NL2SP=$lt_lt_NL2SP
  18831. # convert \$build file names to \$host format.
  18832. to_host_file_cmd=$lt_cv_to_host_file_cmd
  18833. # convert \$build files to toolchain format.
  18834. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  18835. # Method to check whether dependent libraries are shared objects.
  18836. deplibs_check_method=$lt_deplibs_check_method
  18837. # Command to use when deplibs_check_method = "file_magic".
  18838. file_magic_cmd=$lt_file_magic_cmd
  18839. # How to find potential files when deplibs_check_method = "file_magic".
  18840. file_magic_glob=$lt_file_magic_glob
  18841. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  18842. want_nocaseglob=$lt_want_nocaseglob
  18843. # Command to associate shared and link libraries.
  18844. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  18845. # The archiver.
  18846. AR=$lt_AR
  18847. # Flags to create an archive.
  18848. AR_FLAGS=$lt_AR_FLAGS
  18849. # How to feed a file listing to the archiver.
  18850. archiver_list_spec=$lt_archiver_list_spec
  18851. # A symbol stripping program.
  18852. STRIP=$lt_STRIP
  18853. # Commands used to install an old-style archive.
  18854. RANLIB=$lt_RANLIB
  18855. old_postinstall_cmds=$lt_old_postinstall_cmds
  18856. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18857. # Whether to use a lock for old archive extraction.
  18858. lock_old_archive_extraction=$lock_old_archive_extraction
  18859. # A C compiler.
  18860. LTCC=$lt_CC
  18861. # LTCC compiler flags.
  18862. LTCFLAGS=$lt_CFLAGS
  18863. # Take the output of nm and produce a listing of raw symbols and C names.
  18864. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18865. # Transform the output of nm in a proper C declaration.
  18866. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18867. # Transform the output of nm into a list of symbols to manually relocate.
  18868. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  18869. # Transform the output of nm in a C name address pair.
  18870. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  18871. # Transform the output of nm in a C name address pair when lib prefix is needed.
  18872. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  18873. # The name lister interface.
  18874. nm_interface=$lt_lt_cv_nm_interface
  18875. # Specify filename containing input files for \$NM.
  18876. nm_file_list_spec=$lt_nm_file_list_spec
  18877. # The root where to search for dependent libraries,and where our libraries should be installed.
  18878. lt_sysroot=$lt_sysroot
  18879. # Command to truncate a binary pipe.
  18880. lt_truncate_bin=$lt_lt_cv_truncate_bin
  18881. # The name of the directory that contains temporary libtool files.
  18882. objdir=$objdir
  18883. # Used to examine libraries when file_magic_cmd begins with "file".
  18884. MAGIC_CMD=$MAGIC_CMD
  18885. # Must we lock files when doing compilation?
  18886. need_locks=$lt_need_locks
  18887. # Manifest tool.
  18888. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  18889. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  18890. DSYMUTIL=$lt_DSYMUTIL
  18891. # Tool to change global to local symbols on Mac OS X.
  18892. NMEDIT=$lt_NMEDIT
  18893. # Tool to manipulate fat objects and archives on Mac OS X.
  18894. LIPO=$lt_LIPO
  18895. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  18896. OTOOL=$lt_OTOOL
  18897. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  18898. OTOOL64=$lt_OTOOL64
  18899. # Old archive suffix (normally "a").
  18900. libext=$libext
  18901. # Shared library suffix (normally ".so").
  18902. shrext_cmds=$lt_shrext_cmds
  18903. # The commands to extract the exported symbol list from a shared archive.
  18904. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  18905. # Variables whose values should be saved in libtool wrapper scripts and
  18906. # restored at link time.
  18907. variables_saved_for_relink=$lt_variables_saved_for_relink
  18908. # Do we need the "lib" prefix for modules?
  18909. need_lib_prefix=$need_lib_prefix
  18910. # Do we need a version for libraries?
  18911. need_version=$need_version
  18912. # Library versioning type.
  18913. version_type=$version_type
  18914. # Shared library runtime path variable.
  18915. runpath_var=$runpath_var
  18916. # Shared library path variable.
  18917. shlibpath_var=$shlibpath_var
  18918. # Is shlibpath searched before the hard-coded library search path?
  18919. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  18920. # Format of library name prefix.
  18921. libname_spec=$lt_libname_spec
  18922. # List of archive names. First name is the real one, the rest are links.
  18923. # The last name is the one that the linker finds with -lNAME
  18924. library_names_spec=$lt_library_names_spec
  18925. # The coded name of the library, if different from the real name.
  18926. soname_spec=$lt_soname_spec
  18927. # Permission mode override for installation of shared libraries.
  18928. install_override_mode=$lt_install_override_mode
  18929. # Command to use after installation of a shared archive.
  18930. postinstall_cmds=$lt_postinstall_cmds
  18931. # Command to use after uninstallation of a shared archive.
  18932. postuninstall_cmds=$lt_postuninstall_cmds
  18933. # Commands used to finish a libtool library installation in a directory.
  18934. finish_cmds=$lt_finish_cmds
  18935. # As "finish_cmds", except a single script fragment to be evaled but
  18936. # not shown.
  18937. finish_eval=$lt_finish_eval
  18938. # Whether we should hardcode library paths into libraries.
  18939. hardcode_into_libs=$hardcode_into_libs
  18940. # Compile-time system search path for libraries.
  18941. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  18942. # Detected run-time system search path for libraries.
  18943. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  18944. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  18945. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  18946. # Whether dlopen is supported.
  18947. dlopen_support=$enable_dlopen
  18948. # Whether dlopen of programs is supported.
  18949. dlopen_self=$enable_dlopen_self
  18950. # Whether dlopen of statically linked programs is supported.
  18951. dlopen_self_static=$enable_dlopen_self_static
  18952. # Commands to strip libraries.
  18953. old_striplib=$lt_old_striplib
  18954. striplib=$lt_striplib
  18955. # The linker used to build libraries.
  18956. LD=$lt_LD
  18957. # How to create reloadable object files.
  18958. reload_flag=$lt_reload_flag
  18959. reload_cmds=$lt_reload_cmds
  18960. # Commands used to build an old-style archive.
  18961. old_archive_cmds=$lt_old_archive_cmds
  18962. # A language specific compiler.
  18963. CC=$lt_compiler
  18964. # Is the compiler the GNU compiler?
  18965. with_gcc=$GCC
  18966. # Compiler flag to turn off builtin functions.
  18967. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  18968. # Additional compiler flags for building library objects.
  18969. pic_flag=$lt_lt_prog_compiler_pic
  18970. # How to pass a linker flag through the compiler.
  18971. wl=$lt_lt_prog_compiler_wl
  18972. # Compiler flag to prevent dynamic linking.
  18973. link_static_flag=$lt_lt_prog_compiler_static
  18974. # Does compiler simultaneously support -c and -o options?
  18975. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  18976. # Whether or not to add -lc for building shared libraries.
  18977. build_libtool_need_lc=$archive_cmds_need_lc
  18978. # Whether or not to disallow shared libs when runtime libs are static.
  18979. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  18980. # Compiler flag to allow reflexive dlopens.
  18981. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  18982. # Compiler flag to generate shared objects directly from archives.
  18983. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  18984. # Whether the compiler copes with passing no objects directly.
  18985. compiler_needs_object=$lt_compiler_needs_object
  18986. # Create an old-style archive from a shared archive.
  18987. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  18988. # Create a temporary old-style archive to link instead of a shared archive.
  18989. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  18990. # Commands used to build a shared archive.
  18991. archive_cmds=$lt_archive_cmds
  18992. archive_expsym_cmds=$lt_archive_expsym_cmds
  18993. # Commands used to build a loadable module if different from building
  18994. # a shared archive.
  18995. module_cmds=$lt_module_cmds
  18996. module_expsym_cmds=$lt_module_expsym_cmds
  18997. # Whether we are building with GNU ld or not.
  18998. with_gnu_ld=$lt_with_gnu_ld
  18999. # Flag that allows shared libraries with undefined symbols to be built.
  19000. allow_undefined_flag=$lt_allow_undefined_flag
  19001. # Flag that enforces no undefined symbols.
  19002. no_undefined_flag=$lt_no_undefined_flag
  19003. # Flag to hardcode \$libdir into a binary during linking.
  19004. # This must work even if \$libdir does not exist
  19005. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19006. # Whether we need a single "-rpath" flag with a separated argument.
  19007. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19008. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19009. # DIR into the resulting binary.
  19010. hardcode_direct=$hardcode_direct
  19011. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19012. # DIR into the resulting binary and the resulting library dependency is
  19013. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19014. # library is relocated.
  19015. hardcode_direct_absolute=$hardcode_direct_absolute
  19016. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19017. # into the resulting binary.
  19018. hardcode_minus_L=$hardcode_minus_L
  19019. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19020. # into the resulting binary.
  19021. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19022. # Set to "yes" if building a shared library automatically hardcodes DIR
  19023. # into the library and all subsequent libraries and executables linked
  19024. # against it.
  19025. hardcode_automatic=$hardcode_automatic
  19026. # Set to yes if linker adds runtime paths of dependent libraries
  19027. # to runtime path list.
  19028. inherit_rpath=$inherit_rpath
  19029. # Whether libtool must link a program against all its dependency libraries.
  19030. link_all_deplibs=$link_all_deplibs
  19031. # Set to "yes" if exported symbols are required.
  19032. always_export_symbols=$always_export_symbols
  19033. # The commands to list exported symbols.
  19034. export_symbols_cmds=$lt_export_symbols_cmds
  19035. # Symbols that should not be listed in the preloaded symbols.
  19036. exclude_expsyms=$lt_exclude_expsyms
  19037. # Symbols that must always be exported.
  19038. include_expsyms=$lt_include_expsyms
  19039. # Commands necessary for linking programs (against libraries) with templates.
  19040. prelink_cmds=$lt_prelink_cmds
  19041. # Commands necessary for finishing linking programs.
  19042. postlink_cmds=$lt_postlink_cmds
  19043. # Specify filename containing input files.
  19044. file_list_spec=$lt_file_list_spec
  19045. # How to hardcode a shared library path into an executable.
  19046. hardcode_action=$hardcode_action
  19047. # The directories searched by this compiler when creating a shared library.
  19048. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19049. # Dependencies to place before and after the objects being linked to
  19050. # create a shared library.
  19051. predep_objects=$lt_predep_objects
  19052. postdep_objects=$lt_postdep_objects
  19053. predeps=$lt_predeps
  19054. postdeps=$lt_postdeps
  19055. # The library search path used internally by the compiler when linking
  19056. # a shared library.
  19057. compiler_lib_search_path=$lt_compiler_lib_search_path
  19058. # ### END LIBTOOL CONFIG
  19059. _LT_EOF
  19060. cat <<'_LT_EOF' >> "$cfgfile"
  19061. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19062. # func_munge_path_list VARIABLE PATH
  19063. # -----------------------------------
  19064. # VARIABLE is name of variable containing _space_ separated list of
  19065. # directories to be munged by the contents of PATH, which is string
  19066. # having a format:
  19067. # "DIR[:DIR]:"
  19068. # string "DIR[ DIR]" will be prepended to VARIABLE
  19069. # ":DIR[:DIR]"
  19070. # string "DIR[ DIR]" will be appended to VARIABLE
  19071. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19072. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19073. # "DIRA[ DIRA]" will be appended to VARIABLE
  19074. # "DIR[:DIR]"
  19075. # VARIABLE will be replaced by "DIR[ DIR]"
  19076. func_munge_path_list ()
  19077. {
  19078. case x$2 in
  19079. x)
  19080. ;;
  19081. *:)
  19082. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19083. ;;
  19084. x:*)
  19085. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19086. ;;
  19087. *::*)
  19088. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19089. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19090. ;;
  19091. *)
  19092. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19093. ;;
  19094. esac
  19095. }
  19096. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19097. func_cc_basename ()
  19098. {
  19099. for cc_temp in $*""; do
  19100. case $cc_temp in
  19101. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19102. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19103. \-*) ;;
  19104. *) break;;
  19105. esac
  19106. done
  19107. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19108. }
  19109. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19110. _LT_EOF
  19111. case $host_os in
  19112. aix3*)
  19113. cat <<\_LT_EOF >> "$cfgfile"
  19114. # AIX sometimes has problems with the GCC collect2 program. For some
  19115. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19116. # vanish in a puff of smoke.
  19117. if test set != "${COLLECT_NAMES+set}"; then
  19118. COLLECT_NAMES=
  19119. export COLLECT_NAMES
  19120. fi
  19121. _LT_EOF
  19122. ;;
  19123. esac
  19124. ltmain=$ac_aux_dir/ltmain.sh
  19125. # We use sed instead of cat because bash on DJGPP gets confused if
  19126. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19127. # text mode, it properly converts lines to CR/LF. This bash problem
  19128. # is reportedly fixed, but why not run on old versions too?
  19129. sed '$q' "$ltmain" >> "$cfgfile" \
  19130. || (rm -f "$cfgfile"; exit 1)
  19131. mv -f "$cfgfile" "$ofile" ||
  19132. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19133. chmod +x "$ofile"
  19134. cat <<_LT_EOF >> "$ofile"
  19135. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19136. # The linker used to build libraries.
  19137. LD=$lt_LD_CXX
  19138. # How to create reloadable object files.
  19139. reload_flag=$lt_reload_flag_CXX
  19140. reload_cmds=$lt_reload_cmds_CXX
  19141. # Commands used to build an old-style archive.
  19142. old_archive_cmds=$lt_old_archive_cmds_CXX
  19143. # A language specific compiler.
  19144. CC=$lt_compiler_CXX
  19145. # Is the compiler the GNU compiler?
  19146. with_gcc=$GCC_CXX
  19147. # Compiler flag to turn off builtin functions.
  19148. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19149. # Additional compiler flags for building library objects.
  19150. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19151. # How to pass a linker flag through the compiler.
  19152. wl=$lt_lt_prog_compiler_wl_CXX
  19153. # Compiler flag to prevent dynamic linking.
  19154. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19155. # Does compiler simultaneously support -c and -o options?
  19156. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19157. # Whether or not to add -lc for building shared libraries.
  19158. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19159. # Whether or not to disallow shared libs when runtime libs are static.
  19160. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19161. # Compiler flag to allow reflexive dlopens.
  19162. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19163. # Compiler flag to generate shared objects directly from archives.
  19164. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19165. # Whether the compiler copes with passing no objects directly.
  19166. compiler_needs_object=$lt_compiler_needs_object_CXX
  19167. # Create an old-style archive from a shared archive.
  19168. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19169. # Create a temporary old-style archive to link instead of a shared archive.
  19170. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19171. # Commands used to build a shared archive.
  19172. archive_cmds=$lt_archive_cmds_CXX
  19173. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19174. # Commands used to build a loadable module if different from building
  19175. # a shared archive.
  19176. module_cmds=$lt_module_cmds_CXX
  19177. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19178. # Whether we are building with GNU ld or not.
  19179. with_gnu_ld=$lt_with_gnu_ld_CXX
  19180. # Flag that allows shared libraries with undefined symbols to be built.
  19181. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19182. # Flag that enforces no undefined symbols.
  19183. no_undefined_flag=$lt_no_undefined_flag_CXX
  19184. # Flag to hardcode \$libdir into a binary during linking.
  19185. # This must work even if \$libdir does not exist
  19186. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19187. # Whether we need a single "-rpath" flag with a separated argument.
  19188. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19189. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19190. # DIR into the resulting binary.
  19191. hardcode_direct=$hardcode_direct_CXX
  19192. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19193. # DIR into the resulting binary and the resulting library dependency is
  19194. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19195. # library is relocated.
  19196. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19197. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19198. # into the resulting binary.
  19199. hardcode_minus_L=$hardcode_minus_L_CXX
  19200. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19201. # into the resulting binary.
  19202. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19203. # Set to "yes" if building a shared library automatically hardcodes DIR
  19204. # into the library and all subsequent libraries and executables linked
  19205. # against it.
  19206. hardcode_automatic=$hardcode_automatic_CXX
  19207. # Set to yes if linker adds runtime paths of dependent libraries
  19208. # to runtime path list.
  19209. inherit_rpath=$inherit_rpath_CXX
  19210. # Whether libtool must link a program against all its dependency libraries.
  19211. link_all_deplibs=$link_all_deplibs_CXX
  19212. # Set to "yes" if exported symbols are required.
  19213. always_export_symbols=$always_export_symbols_CXX
  19214. # The commands to list exported symbols.
  19215. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19216. # Symbols that should not be listed in the preloaded symbols.
  19217. exclude_expsyms=$lt_exclude_expsyms_CXX
  19218. # Symbols that must always be exported.
  19219. include_expsyms=$lt_include_expsyms_CXX
  19220. # Commands necessary for linking programs (against libraries) with templates.
  19221. prelink_cmds=$lt_prelink_cmds_CXX
  19222. # Commands necessary for finishing linking programs.
  19223. postlink_cmds=$lt_postlink_cmds_CXX
  19224. # Specify filename containing input files.
  19225. file_list_spec=$lt_file_list_spec_CXX
  19226. # How to hardcode a shared library path into an executable.
  19227. hardcode_action=$hardcode_action_CXX
  19228. # The directories searched by this compiler when creating a shared library.
  19229. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19230. # Dependencies to place before and after the objects being linked to
  19231. # create a shared library.
  19232. predep_objects=$lt_predep_objects_CXX
  19233. postdep_objects=$lt_postdep_objects_CXX
  19234. predeps=$lt_predeps_CXX
  19235. postdeps=$lt_postdeps_CXX
  19236. # The library search path used internally by the compiler when linking
  19237. # a shared library.
  19238. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19239. # ### END LIBTOOL TAG CONFIG: CXX
  19240. _LT_EOF
  19241. ;;
  19242. "run.sh":F) chmod +x run.sh ;;
  19243. esac
  19244. done # for ac_tag
  19245. as_fn_exit 0
  19246. _ACEOF
  19247. ac_clean_files=$ac_clean_files_save
  19248. test $ac_write_fail = 0 ||
  19249. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19250. # configure is writing to config.log, and then calls config.status.
  19251. # config.status does its own redirection, appending to config.log.
  19252. # Unfortunately, on DOS this fails, as config.log is still kept open
  19253. # by configure, so config.status won't be able to write to it; its
  19254. # output is simply discarded. So we exec the FD to /dev/null,
  19255. # effectively closing config.log, so it can be properly (re)opened and
  19256. # appended to by config.status. When coming back to configure, we
  19257. # need to make the FD available again.
  19258. if test "$no_create" != yes; then
  19259. ac_cs_success=:
  19260. ac_config_status_args=
  19261. test "$silent" = yes &&
  19262. ac_config_status_args="$ac_config_status_args --quiet"
  19263. exec 5>/dev/null
  19264. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19265. exec 5>>config.log
  19266. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19267. # would make configure fail if this is the last instruction.
  19268. $ac_cs_success || as_fn_exit 1
  19269. fi
  19270. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19272. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19273. fi
  19274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
  19275. Automake flags (can be overridden by user flags):
  19276. AM_CPPFLAGS: ${AM_CPPFLAGS}
  19277. AM_CFLAGS: ${AM_CFLAGS}
  19278. AM_CXXFLAGS: ${AM_CXXFLAGS}
  19279. AM_LDFLAGS: ${AM_LDFLAGS}
  19280. User flags (override Automake flags on conflict):
  19281. CPPFLAGS: ${CPPFLAGS}
  19282. CFLAGS: ${CFLAGS}
  19283. CXXFLAGS: ${CXXFLAGS}
  19284. LDFLAGS: ${LDFLAGS}" >&5
  19285. printf "%s\n" "$as_me:
  19286. Automake flags (can be overridden by user flags):
  19287. AM_CPPFLAGS: ${AM_CPPFLAGS}
  19288. AM_CFLAGS: ${AM_CFLAGS}
  19289. AM_CXXFLAGS: ${AM_CXXFLAGS}
  19290. AM_LDFLAGS: ${AM_LDFLAGS}
  19291. User flags (override Automake flags on conflict):
  19292. CPPFLAGS: ${CPPFLAGS}
  19293. CFLAGS: ${CFLAGS}
  19294. CXXFLAGS: ${CXXFLAGS}
  19295. LDFLAGS: ${LDFLAGS}" >&6;}