configure 583 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for expat 2.2.1.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: [email protected] about your system, including
  260. $0: any error possibly output before this message. Then
  261. $0: install a modern shell, or manually run the script
  262. $0: under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='expat'
  542. PACKAGE_TARNAME='expat'
  543. PACKAGE_VERSION='2.2.1'
  544. PACKAGE_STRING='expat 2.2.1'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="Makefile.in"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_subst_vars='LTLIBOBJS
  585. LIBOBJS
  586. FILEMAP
  587. INSTALL_DATA
  588. INSTALL_SCRIPT
  589. INSTALL_PROGRAM
  590. CXXCPP
  591. ac_ct_CXX
  592. CXXFLAGS
  593. CXX
  594. LIBAGE
  595. LIBREVISION
  596. LIBCURRENT
  597. CPP
  598. LT_SYS_LIBRARY_PATH
  599. OTOOL64
  600. OTOOL
  601. LIPO
  602. NMEDIT
  603. DSYMUTIL
  604. MANIFEST_TOOL
  605. AWK
  606. RANLIB
  607. STRIP
  608. ac_ct_AR
  609. AR
  610. LN_S
  611. NM
  612. ac_ct_DUMPBIN
  613. DUMPBIN
  614. LD
  615. FGREP
  616. EGREP
  617. GREP
  618. SED
  619. OBJEXT
  620. EXEEXT
  621. ac_ct_CC
  622. CPPFLAGS
  623. LDFLAGS
  624. CFLAGS
  625. CC
  626. LIBTOOL
  627. OBJDUMP
  628. DLLTOOL
  629. AS
  630. host_os
  631. host_vendor
  632. host_cpu
  633. host
  634. build_os
  635. build_vendor
  636. build_cpu
  637. build
  638. target_alias
  639. host_alias
  640. build_alias
  641. LIBS
  642. ECHO_T
  643. ECHO_N
  644. ECHO_C
  645. DEFS
  646. mandir
  647. localedir
  648. libdir
  649. psdir
  650. pdfdir
  651. dvidir
  652. htmldir
  653. infodir
  654. docdir
  655. oldincludedir
  656. includedir
  657. localstatedir
  658. sharedstatedir
  659. sysconfdir
  660. datadir
  661. datarootdir
  662. libexecdir
  663. sbindir
  664. bindir
  665. program_transform_name
  666. prefix
  667. exec_prefix
  668. PACKAGE_URL
  669. PACKAGE_BUGREPORT
  670. PACKAGE_STRING
  671. PACKAGE_VERSION
  672. PACKAGE_TARNAME
  673. PACKAGE_NAME
  674. PATH_SEPARATOR
  675. SHELL'
  676. ac_subst_files=''
  677. ac_user_opts='
  678. enable_option_checking
  679. enable_shared
  680. enable_static
  681. with_pic
  682. enable_fast_install
  683. with_aix_soname
  684. with_gnu_ld
  685. with_sysroot
  686. enable_libtool_lock
  687. with_libbsd
  688. enable_xml_context
  689. '
  690. ac_precious_vars='build_alias
  691. host_alias
  692. target_alias
  693. CC
  694. CFLAGS
  695. LDFLAGS
  696. LIBS
  697. CPPFLAGS
  698. LT_SYS_LIBRARY_PATH
  699. CPP
  700. CXX
  701. CXXFLAGS
  702. CCC
  703. CXXCPP'
  704. # Initialize some variables set by options.
  705. ac_init_help=
  706. ac_init_version=false
  707. ac_unrecognized_opts=
  708. ac_unrecognized_sep=
  709. # The variables have the same names as the options, with
  710. # dashes changed to underlines.
  711. cache_file=/dev/null
  712. exec_prefix=NONE
  713. no_create=
  714. no_recursion=
  715. prefix=NONE
  716. program_prefix=NONE
  717. program_suffix=NONE
  718. program_transform_name=s,x,x,
  719. silent=
  720. site=
  721. srcdir=
  722. verbose=
  723. x_includes=NONE
  724. x_libraries=NONE
  725. # Installation directory options.
  726. # These are left unexpanded so users can "make install exec_prefix=/foo"
  727. # and all the variables that are supposed to be based on exec_prefix
  728. # by default will actually change.
  729. # Use braces instead of parens because sh, perl, etc. also accept them.
  730. # (The list follows the same order as the GNU Coding Standards.)
  731. bindir='${exec_prefix}/bin'
  732. sbindir='${exec_prefix}/sbin'
  733. libexecdir='${exec_prefix}/libexec'
  734. datarootdir='${prefix}/share'
  735. datadir='${datarootdir}'
  736. sysconfdir='${prefix}/etc'
  737. sharedstatedir='${prefix}/com'
  738. localstatedir='${prefix}/var'
  739. includedir='${prefix}/include'
  740. oldincludedir='/usr/include'
  741. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  742. infodir='${datarootdir}/info'
  743. htmldir='${docdir}'
  744. dvidir='${docdir}'
  745. pdfdir='${docdir}'
  746. psdir='${docdir}'
  747. libdir='${exec_prefix}/lib'
  748. localedir='${datarootdir}/locale'
  749. mandir='${datarootdir}/man'
  750. ac_prev=
  751. ac_dashdash=
  752. for ac_option
  753. do
  754. # If the previous option needs an argument, assign it.
  755. if test -n "$ac_prev"; then
  756. eval $ac_prev=\$ac_option
  757. ac_prev=
  758. continue
  759. fi
  760. case $ac_option in
  761. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  762. *=) ac_optarg= ;;
  763. *) ac_optarg=yes ;;
  764. esac
  765. # Accept the important Cygnus configure options, so we can diagnose typos.
  766. case $ac_dashdash$ac_option in
  767. --)
  768. ac_dashdash=yes ;;
  769. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  770. ac_prev=bindir ;;
  771. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  772. bindir=$ac_optarg ;;
  773. -build | --build | --buil | --bui | --bu)
  774. ac_prev=build_alias ;;
  775. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  776. build_alias=$ac_optarg ;;
  777. -cache-file | --cache-file | --cache-fil | --cache-fi \
  778. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  779. ac_prev=cache_file ;;
  780. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  781. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  782. cache_file=$ac_optarg ;;
  783. --config-cache | -C)
  784. cache_file=config.cache ;;
  785. -datadir | --datadir | --datadi | --datad)
  786. ac_prev=datadir ;;
  787. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  788. datadir=$ac_optarg ;;
  789. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  790. | --dataroo | --dataro | --datar)
  791. ac_prev=datarootdir ;;
  792. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  793. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  794. datarootdir=$ac_optarg ;;
  795. -disable-* | --disable-*)
  796. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  797. # Reject names that are not valid shell variable names.
  798. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  799. as_fn_error $? "invalid feature name: $ac_useropt"
  800. ac_useropt_orig=$ac_useropt
  801. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  802. case $ac_user_opts in
  803. *"
  804. "enable_$ac_useropt"
  805. "*) ;;
  806. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  807. ac_unrecognized_sep=', ';;
  808. esac
  809. eval enable_$ac_useropt=no ;;
  810. -docdir | --docdir | --docdi | --doc | --do)
  811. ac_prev=docdir ;;
  812. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  813. docdir=$ac_optarg ;;
  814. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  815. ac_prev=dvidir ;;
  816. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  817. dvidir=$ac_optarg ;;
  818. -enable-* | --enable-*)
  819. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  820. # Reject names that are not valid shell variable names.
  821. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  822. as_fn_error $? "invalid feature name: $ac_useropt"
  823. ac_useropt_orig=$ac_useropt
  824. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  825. case $ac_user_opts in
  826. *"
  827. "enable_$ac_useropt"
  828. "*) ;;
  829. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  830. ac_unrecognized_sep=', ';;
  831. esac
  832. eval enable_$ac_useropt=\$ac_optarg ;;
  833. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  834. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  835. | --exec | --exe | --ex)
  836. ac_prev=exec_prefix ;;
  837. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  838. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  839. | --exec=* | --exe=* | --ex=*)
  840. exec_prefix=$ac_optarg ;;
  841. -gas | --gas | --ga | --g)
  842. # Obsolete; use --with-gas.
  843. with_gas=yes ;;
  844. -help | --help | --hel | --he | -h)
  845. ac_init_help=long ;;
  846. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  847. ac_init_help=recursive ;;
  848. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  849. ac_init_help=short ;;
  850. -host | --host | --hos | --ho)
  851. ac_prev=host_alias ;;
  852. -host=* | --host=* | --hos=* | --ho=*)
  853. host_alias=$ac_optarg ;;
  854. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  855. ac_prev=htmldir ;;
  856. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  857. | --ht=*)
  858. htmldir=$ac_optarg ;;
  859. -includedir | --includedir | --includedi | --included | --include \
  860. | --includ | --inclu | --incl | --inc)
  861. ac_prev=includedir ;;
  862. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  863. | --includ=* | --inclu=* | --incl=* | --inc=*)
  864. includedir=$ac_optarg ;;
  865. -infodir | --infodir | --infodi | --infod | --info | --inf)
  866. ac_prev=infodir ;;
  867. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  868. infodir=$ac_optarg ;;
  869. -libdir | --libdir | --libdi | --libd)
  870. ac_prev=libdir ;;
  871. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  872. libdir=$ac_optarg ;;
  873. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  874. | --libexe | --libex | --libe)
  875. ac_prev=libexecdir ;;
  876. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  877. | --libexe=* | --libex=* | --libe=*)
  878. libexecdir=$ac_optarg ;;
  879. -localedir | --localedir | --localedi | --localed | --locale)
  880. ac_prev=localedir ;;
  881. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  882. localedir=$ac_optarg ;;
  883. -localstatedir | --localstatedir | --localstatedi | --localstated \
  884. | --localstate | --localstat | --localsta | --localst | --locals)
  885. ac_prev=localstatedir ;;
  886. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  887. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  888. localstatedir=$ac_optarg ;;
  889. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  890. ac_prev=mandir ;;
  891. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  892. mandir=$ac_optarg ;;
  893. -nfp | --nfp | --nf)
  894. # Obsolete; use --without-fp.
  895. with_fp=no ;;
  896. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  897. | --no-cr | --no-c | -n)
  898. no_create=yes ;;
  899. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  900. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  901. no_recursion=yes ;;
  902. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  903. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  904. | --oldin | --oldi | --old | --ol | --o)
  905. ac_prev=oldincludedir ;;
  906. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  907. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  908. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  909. oldincludedir=$ac_optarg ;;
  910. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  911. ac_prev=prefix ;;
  912. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  913. prefix=$ac_optarg ;;
  914. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  915. | --program-pre | --program-pr | --program-p)
  916. ac_prev=program_prefix ;;
  917. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  918. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  919. program_prefix=$ac_optarg ;;
  920. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  921. | --program-suf | --program-su | --program-s)
  922. ac_prev=program_suffix ;;
  923. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  924. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  925. program_suffix=$ac_optarg ;;
  926. -program-transform-name | --program-transform-name \
  927. | --program-transform-nam | --program-transform-na \
  928. | --program-transform-n | --program-transform- \
  929. | --program-transform | --program-transfor \
  930. | --program-transfo | --program-transf \
  931. | --program-trans | --program-tran \
  932. | --progr-tra | --program-tr | --program-t)
  933. ac_prev=program_transform_name ;;
  934. -program-transform-name=* | --program-transform-name=* \
  935. | --program-transform-nam=* | --program-transform-na=* \
  936. | --program-transform-n=* | --program-transform-=* \
  937. | --program-transform=* | --program-transfor=* \
  938. | --program-transfo=* | --program-transf=* \
  939. | --program-trans=* | --program-tran=* \
  940. | --progr-tra=* | --program-tr=* | --program-t=*)
  941. program_transform_name=$ac_optarg ;;
  942. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  943. ac_prev=pdfdir ;;
  944. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  945. pdfdir=$ac_optarg ;;
  946. -psdir | --psdir | --psdi | --psd | --ps)
  947. ac_prev=psdir ;;
  948. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  949. psdir=$ac_optarg ;;
  950. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  951. | -silent | --silent | --silen | --sile | --sil)
  952. silent=yes ;;
  953. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  954. ac_prev=sbindir ;;
  955. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  956. | --sbi=* | --sb=*)
  957. sbindir=$ac_optarg ;;
  958. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  959. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  960. | --sharedst | --shareds | --shared | --share | --shar \
  961. | --sha | --sh)
  962. ac_prev=sharedstatedir ;;
  963. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  964. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  965. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  966. | --sha=* | --sh=*)
  967. sharedstatedir=$ac_optarg ;;
  968. -site | --site | --sit)
  969. ac_prev=site ;;
  970. -site=* | --site=* | --sit=*)
  971. site=$ac_optarg ;;
  972. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  973. ac_prev=srcdir ;;
  974. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  975. srcdir=$ac_optarg ;;
  976. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  977. | --syscon | --sysco | --sysc | --sys | --sy)
  978. ac_prev=sysconfdir ;;
  979. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  980. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  981. sysconfdir=$ac_optarg ;;
  982. -target | --target | --targe | --targ | --tar | --ta | --t)
  983. ac_prev=target_alias ;;
  984. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  985. target_alias=$ac_optarg ;;
  986. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  987. verbose=yes ;;
  988. -version | --version | --versio | --versi | --vers | -V)
  989. ac_init_version=: ;;
  990. -with-* | --with-*)
  991. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  994. as_fn_error $? "invalid package name: $ac_useropt"
  995. ac_useropt_orig=$ac_useropt
  996. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  997. case $ac_user_opts in
  998. *"
  999. "with_$ac_useropt"
  1000. "*) ;;
  1001. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1002. ac_unrecognized_sep=', ';;
  1003. esac
  1004. eval with_$ac_useropt=\$ac_optarg ;;
  1005. -without-* | --without-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error $? "invalid package name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "with_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval with_$ac_useropt=no ;;
  1020. --x)
  1021. # Obsolete; use --with-x.
  1022. with_x=yes ;;
  1023. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1024. | --x-incl | --x-inc | --x-in | --x-i)
  1025. ac_prev=x_includes ;;
  1026. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1027. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1028. x_includes=$ac_optarg ;;
  1029. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1030. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1031. ac_prev=x_libraries ;;
  1032. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1033. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1034. x_libraries=$ac_optarg ;;
  1035. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1036. Try \`$0 --help' for more information"
  1037. ;;
  1038. *=*)
  1039. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1040. # Reject names that are not valid shell variable names.
  1041. case $ac_envvar in #(
  1042. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1043. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1044. esac
  1045. eval $ac_envvar=\$ac_optarg
  1046. export $ac_envvar ;;
  1047. *)
  1048. # FIXME: should be removed in autoconf 3.0.
  1049. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1050. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1051. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1052. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1053. ;;
  1054. esac
  1055. done
  1056. if test -n "$ac_prev"; then
  1057. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1058. as_fn_error $? "missing argument to $ac_option"
  1059. fi
  1060. if test -n "$ac_unrecognized_opts"; then
  1061. case $enable_option_checking in
  1062. no) ;;
  1063. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1064. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1065. esac
  1066. fi
  1067. # Check all directory arguments for consistency.
  1068. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1069. datadir sysconfdir sharedstatedir localstatedir includedir \
  1070. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1071. libdir localedir mandir
  1072. do
  1073. eval ac_val=\$$ac_var
  1074. # Remove trailing slashes.
  1075. case $ac_val in
  1076. */ )
  1077. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1078. eval $ac_var=\$ac_val;;
  1079. esac
  1080. # Be sure to have absolute directory names.
  1081. case $ac_val in
  1082. [\\/$]* | ?:[\\/]* ) continue;;
  1083. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1084. esac
  1085. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1086. done
  1087. # There might be people who depend on the old broken behavior: `$host'
  1088. # used to hold the argument of --host etc.
  1089. # FIXME: To remove some day.
  1090. build=$build_alias
  1091. host=$host_alias
  1092. target=$target_alias
  1093. # FIXME: To remove some day.
  1094. if test "x$host_alias" != x; then
  1095. if test "x$build_alias" = x; then
  1096. cross_compiling=maybe
  1097. elif test "x$build_alias" != "x$host_alias"; then
  1098. cross_compiling=yes
  1099. fi
  1100. fi
  1101. ac_tool_prefix=
  1102. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1103. test "$silent" = yes && exec 6>/dev/null
  1104. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1105. ac_ls_di=`ls -di .` &&
  1106. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1107. as_fn_error $? "working directory cannot be determined"
  1108. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1109. as_fn_error $? "pwd does not report name of working directory"
  1110. # Find the source files, if location was not specified.
  1111. if test -z "$srcdir"; then
  1112. ac_srcdir_defaulted=yes
  1113. # Try the directory containing this script, then the parent directory.
  1114. ac_confdir=`$as_dirname -- "$as_myself" ||
  1115. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1116. X"$as_myself" : 'X\(//\)[^/]' \| \
  1117. X"$as_myself" : 'X\(//\)$' \| \
  1118. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1119. $as_echo X"$as_myself" |
  1120. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1121. s//\1/
  1122. q
  1123. }
  1124. /^X\(\/\/\)[^/].*/{
  1125. s//\1/
  1126. q
  1127. }
  1128. /^X\(\/\/\)$/{
  1129. s//\1/
  1130. q
  1131. }
  1132. /^X\(\/\).*/{
  1133. s//\1/
  1134. q
  1135. }
  1136. s/.*/./; q'`
  1137. srcdir=$ac_confdir
  1138. if test ! -r "$srcdir/$ac_unique_file"; then
  1139. srcdir=..
  1140. fi
  1141. else
  1142. ac_srcdir_defaulted=no
  1143. fi
  1144. if test ! -r "$srcdir/$ac_unique_file"; then
  1145. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1146. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1147. fi
  1148. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1149. ac_abs_confdir=`(
  1150. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1151. pwd)`
  1152. # When building in place, set srcdir=.
  1153. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1154. srcdir=.
  1155. fi
  1156. # Remove unnecessary trailing slashes from srcdir.
  1157. # Double slashes in file names in object file debugging info
  1158. # mess up M-x gdb in Emacs.
  1159. case $srcdir in
  1160. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1161. esac
  1162. for ac_var in $ac_precious_vars; do
  1163. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1164. eval ac_env_${ac_var}_value=\$${ac_var}
  1165. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1166. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1167. done
  1168. #
  1169. # Report the --help message.
  1170. #
  1171. if test "$ac_init_help" = "long"; then
  1172. # Omit some internal or obsolete options to make the list less imposing.
  1173. # This message is too long to be a string in the A/UX 3.1 sh.
  1174. cat <<_ACEOF
  1175. \`configure' configures expat 2.2.1 to adapt to many kinds of systems.
  1176. Usage: $0 [OPTION]... [VAR=VALUE]...
  1177. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1178. VAR=VALUE. See below for descriptions of some of the useful variables.
  1179. Defaults for the options are specified in brackets.
  1180. Configuration:
  1181. -h, --help display this help and exit
  1182. --help=short display options specific to this package
  1183. --help=recursive display the short help of all the included packages
  1184. -V, --version display version information and exit
  1185. -q, --quiet, --silent do not print \`checking ...' messages
  1186. --cache-file=FILE cache test results in FILE [disabled]
  1187. -C, --config-cache alias for \`--cache-file=config.cache'
  1188. -n, --no-create do not create output files
  1189. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1190. Installation directories:
  1191. --prefix=PREFIX install architecture-independent files in PREFIX
  1192. [$ac_default_prefix]
  1193. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1194. [PREFIX]
  1195. By default, \`make install' will install all the files in
  1196. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1197. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1198. for instance \`--prefix=\$HOME'.
  1199. For better control, use the options below.
  1200. Fine tuning of the installation directories:
  1201. --bindir=DIR user executables [EPREFIX/bin]
  1202. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1203. --libexecdir=DIR program executables [EPREFIX/libexec]
  1204. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1205. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1206. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1207. --libdir=DIR object code libraries [EPREFIX/lib]
  1208. --includedir=DIR C header files [PREFIX/include]
  1209. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1210. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1211. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1212. --infodir=DIR info documentation [DATAROOTDIR/info]
  1213. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1214. --mandir=DIR man documentation [DATAROOTDIR/man]
  1215. --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
  1216. --htmldir=DIR html documentation [DOCDIR]
  1217. --dvidir=DIR dvi documentation [DOCDIR]
  1218. --pdfdir=DIR pdf documentation [DOCDIR]
  1219. --psdir=DIR ps documentation [DOCDIR]
  1220. _ACEOF
  1221. cat <<\_ACEOF
  1222. System types:
  1223. --build=BUILD configure for building on BUILD [guessed]
  1224. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1225. _ACEOF
  1226. fi
  1227. if test -n "$ac_init_help"; then
  1228. case $ac_init_help in
  1229. short | recursive ) echo "Configuration of expat 2.2.1:";;
  1230. esac
  1231. cat <<\_ACEOF
  1232. Optional Features:
  1233. --disable-option-checking ignore unrecognized --enable/--with options
  1234. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1235. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1236. --enable-shared[=PKGS] build shared libraries [default=yes]
  1237. --enable-static[=PKGS] build static libraries [default=yes]
  1238. --enable-fast-install[=PKGS]
  1239. optimize for fast installation [default=yes]
  1240. --disable-libtool-lock avoid locking (might break parallel builds)
  1241. --enable-xml-context [COUNT]
  1242. Retain context around the current parse point;
  1243. default is enabled and a size of 1024 bytes
  1244. --disable-xml-context Do not retain context around the current parse point
  1245. Optional Packages:
  1246. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1247. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1248. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1249. both]
  1250. --with-aix-soname=aix|svr4|both
  1251. shared library versioning (aka "SONAME") variant to
  1252. provide on AIX, [default=aix].
  1253. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1254. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1255. compiler's sysroot if not specified).
  1256. --with-libbsd utilize libbsd (for arc4random_buf)
  1257. Some influential environment variables:
  1258. CC C compiler command
  1259. CFLAGS C compiler flags
  1260. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1261. nonstandard directory <lib dir>
  1262. LIBS libraries to pass to the linker, e.g. -l<library>
  1263. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1264. you have headers in a nonstandard directory <include dir>
  1265. LT_SYS_LIBRARY_PATH
  1266. User-defined run-time library search path.
  1267. CPP C preprocessor
  1268. CXX C++ compiler command
  1269. CXXFLAGS C++ compiler flags
  1270. CXXCPP C++ preprocessor
  1271. Use these variables to override the choices made by `configure' or to help
  1272. it to find libraries and programs with nonstandard names/locations.
  1273. Report bugs to <[email protected]>.
  1274. _ACEOF
  1275. ac_status=$?
  1276. fi
  1277. if test "$ac_init_help" = "recursive"; then
  1278. # If there are subdirs, report their specific --help.
  1279. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1280. test -d "$ac_dir" ||
  1281. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1282. continue
  1283. ac_builddir=.
  1284. case "$ac_dir" in
  1285. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1286. *)
  1287. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1288. # A ".." for each directory in $ac_dir_suffix.
  1289. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1290. case $ac_top_builddir_sub in
  1291. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1292. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1293. esac ;;
  1294. esac
  1295. ac_abs_top_builddir=$ac_pwd
  1296. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1297. # for backward compatibility:
  1298. ac_top_builddir=$ac_top_build_prefix
  1299. case $srcdir in
  1300. .) # We are building in place.
  1301. ac_srcdir=.
  1302. ac_top_srcdir=$ac_top_builddir_sub
  1303. ac_abs_top_srcdir=$ac_pwd ;;
  1304. [\\/]* | ?:[\\/]* ) # Absolute name.
  1305. ac_srcdir=$srcdir$ac_dir_suffix;
  1306. ac_top_srcdir=$srcdir
  1307. ac_abs_top_srcdir=$srcdir ;;
  1308. *) # Relative name.
  1309. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1310. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1311. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1312. esac
  1313. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1314. cd "$ac_dir" || { ac_status=$?; continue; }
  1315. # Check for guested configure.
  1316. if test -f "$ac_srcdir/configure.gnu"; then
  1317. echo &&
  1318. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1319. elif test -f "$ac_srcdir/configure"; then
  1320. echo &&
  1321. $SHELL "$ac_srcdir/configure" --help=recursive
  1322. else
  1323. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1324. fi || ac_status=$?
  1325. cd "$ac_pwd" || { ac_status=$?; break; }
  1326. done
  1327. fi
  1328. test -n "$ac_init_help" && exit $ac_status
  1329. if $ac_init_version; then
  1330. cat <<\_ACEOF
  1331. expat configure 2.2.1
  1332. generated by GNU Autoconf 2.69
  1333. Copyright (C) 2012 Free Software Foundation, Inc.
  1334. This configure script is free software; the Free Software Foundation
  1335. gives unlimited permission to copy, distribute and modify it.
  1336. _ACEOF
  1337. exit
  1338. fi
  1339. ## ------------------------ ##
  1340. ## Autoconf initialization. ##
  1341. ## ------------------------ ##
  1342. # ac_fn_c_try_compile LINENO
  1343. # --------------------------
  1344. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1345. ac_fn_c_try_compile ()
  1346. {
  1347. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1348. rm -f conftest.$ac_objext
  1349. if { { ac_try="$ac_compile"
  1350. case "(($ac_try" in
  1351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1352. *) ac_try_echo=$ac_try;;
  1353. esac
  1354. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1355. $as_echo "$ac_try_echo"; } >&5
  1356. (eval "$ac_compile") 2>conftest.err
  1357. ac_status=$?
  1358. if test -s conftest.err; then
  1359. grep -v '^ *+' conftest.err >conftest.er1
  1360. cat conftest.er1 >&5
  1361. mv -f conftest.er1 conftest.err
  1362. fi
  1363. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1364. test $ac_status = 0; } && {
  1365. test -z "$ac_c_werror_flag" ||
  1366. test ! -s conftest.err
  1367. } && test -s conftest.$ac_objext; then :
  1368. ac_retval=0
  1369. else
  1370. $as_echo "$as_me: failed program was:" >&5
  1371. sed 's/^/| /' conftest.$ac_ext >&5
  1372. ac_retval=1
  1373. fi
  1374. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1375. as_fn_set_status $ac_retval
  1376. } # ac_fn_c_try_compile
  1377. # ac_fn_c_try_link LINENO
  1378. # -----------------------
  1379. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1380. ac_fn_c_try_link ()
  1381. {
  1382. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1383. rm -f conftest.$ac_objext conftest$ac_exeext
  1384. if { { ac_try="$ac_link"
  1385. case "(($ac_try" in
  1386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1387. *) ac_try_echo=$ac_try;;
  1388. esac
  1389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1390. $as_echo "$ac_try_echo"; } >&5
  1391. (eval "$ac_link") 2>conftest.err
  1392. ac_status=$?
  1393. if test -s conftest.err; then
  1394. grep -v '^ *+' conftest.err >conftest.er1
  1395. cat conftest.er1 >&5
  1396. mv -f conftest.er1 conftest.err
  1397. fi
  1398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1399. test $ac_status = 0; } && {
  1400. test -z "$ac_c_werror_flag" ||
  1401. test ! -s conftest.err
  1402. } && test -s conftest$ac_exeext && {
  1403. test "$cross_compiling" = yes ||
  1404. test -x conftest$ac_exeext
  1405. }; then :
  1406. ac_retval=0
  1407. else
  1408. $as_echo "$as_me: failed program was:" >&5
  1409. sed 's/^/| /' conftest.$ac_ext >&5
  1410. ac_retval=1
  1411. fi
  1412. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1413. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1414. # interfere with the next link command; also delete a directory that is
  1415. # left behind by Apple's compiler. We do this before executing the actions.
  1416. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1417. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1418. as_fn_set_status $ac_retval
  1419. } # ac_fn_c_try_link
  1420. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1421. # -------------------------------------------------------
  1422. # Tests whether HEADER exists and can be compiled using the include files in
  1423. # INCLUDES, setting the cache variable VAR accordingly.
  1424. ac_fn_c_check_header_compile ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1428. $as_echo_n "checking for $2... " >&6; }
  1429. if eval \${$3+:} false; then :
  1430. $as_echo_n "(cached) " >&6
  1431. else
  1432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1433. /* end confdefs.h. */
  1434. $4
  1435. #include <$2>
  1436. _ACEOF
  1437. if ac_fn_c_try_compile "$LINENO"; then :
  1438. eval "$3=yes"
  1439. else
  1440. eval "$3=no"
  1441. fi
  1442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1443. fi
  1444. eval ac_res=\$$3
  1445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1446. $as_echo "$ac_res" >&6; }
  1447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1448. } # ac_fn_c_check_header_compile
  1449. # ac_fn_c_try_cpp LINENO
  1450. # ----------------------
  1451. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1452. ac_fn_c_try_cpp ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1456. case "(($ac_try" in
  1457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1458. *) ac_try_echo=$ac_try;;
  1459. esac
  1460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1461. $as_echo "$ac_try_echo"; } >&5
  1462. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1463. ac_status=$?
  1464. if test -s conftest.err; then
  1465. grep -v '^ *+' conftest.err >conftest.er1
  1466. cat conftest.er1 >&5
  1467. mv -f conftest.er1 conftest.err
  1468. fi
  1469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1470. test $ac_status = 0; } > conftest.i && {
  1471. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1472. test ! -s conftest.err
  1473. }; then :
  1474. ac_retval=0
  1475. else
  1476. $as_echo "$as_me: failed program was:" >&5
  1477. sed 's/^/| /' conftest.$ac_ext >&5
  1478. ac_retval=1
  1479. fi
  1480. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1481. as_fn_set_status $ac_retval
  1482. } # ac_fn_c_try_cpp
  1483. # ac_fn_c_try_run LINENO
  1484. # ----------------------
  1485. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1486. # that executables *can* be run.
  1487. ac_fn_c_try_run ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. if { { ac_try="$ac_link"
  1491. case "(($ac_try" in
  1492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1493. *) ac_try_echo=$ac_try;;
  1494. esac
  1495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1496. $as_echo "$ac_try_echo"; } >&5
  1497. (eval "$ac_link") 2>&5
  1498. ac_status=$?
  1499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1500. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1501. { { case "(($ac_try" in
  1502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1503. *) ac_try_echo=$ac_try;;
  1504. esac
  1505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1506. $as_echo "$ac_try_echo"; } >&5
  1507. (eval "$ac_try") 2>&5
  1508. ac_status=$?
  1509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1510. test $ac_status = 0; }; }; then :
  1511. ac_retval=0
  1512. else
  1513. $as_echo "$as_me: program exited with status $ac_status" >&5
  1514. $as_echo "$as_me: failed program was:" >&5
  1515. sed 's/^/| /' conftest.$ac_ext >&5
  1516. ac_retval=$ac_status
  1517. fi
  1518. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1519. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1520. as_fn_set_status $ac_retval
  1521. } # ac_fn_c_try_run
  1522. # ac_fn_c_check_func LINENO FUNC VAR
  1523. # ----------------------------------
  1524. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1525. ac_fn_c_check_func ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1529. $as_echo_n "checking for $2... " >&6; }
  1530. if eval \${$3+:} false; then :
  1531. $as_echo_n "(cached) " >&6
  1532. else
  1533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1534. /* end confdefs.h. */
  1535. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1536. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1537. #define $2 innocuous_$2
  1538. /* System header to define __stub macros and hopefully few prototypes,
  1539. which can conflict with char $2 (); below.
  1540. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1541. <limits.h> exists even on freestanding compilers. */
  1542. #ifdef __STDC__
  1543. # include <limits.h>
  1544. #else
  1545. # include <assert.h>
  1546. #endif
  1547. #undef $2
  1548. /* Override any GCC internal prototype to avoid an error.
  1549. Use char because int might match the return type of a GCC
  1550. builtin and then its argument prototype would still apply. */
  1551. #ifdef __cplusplus
  1552. extern "C"
  1553. #endif
  1554. char $2 ();
  1555. /* The GNU C library defines this for functions which it implements
  1556. to always fail with ENOSYS. Some functions are actually named
  1557. something starting with __ and the normal name is an alias. */
  1558. #if defined __stub_$2 || defined __stub___$2
  1559. choke me
  1560. #endif
  1561. int
  1562. main ()
  1563. {
  1564. return $2 ();
  1565. ;
  1566. return 0;
  1567. }
  1568. _ACEOF
  1569. if ac_fn_c_try_link "$LINENO"; then :
  1570. eval "$3=yes"
  1571. else
  1572. eval "$3=no"
  1573. fi
  1574. rm -f core conftest.err conftest.$ac_objext \
  1575. conftest$ac_exeext conftest.$ac_ext
  1576. fi
  1577. eval ac_res=\$$3
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1579. $as_echo "$ac_res" >&6; }
  1580. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1581. } # ac_fn_c_check_func
  1582. # ac_fn_cxx_try_compile LINENO
  1583. # ----------------------------
  1584. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1585. ac_fn_cxx_try_compile ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. rm -f conftest.$ac_objext
  1589. if { { ac_try="$ac_compile"
  1590. case "(($ac_try" in
  1591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1592. *) ac_try_echo=$ac_try;;
  1593. esac
  1594. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1595. $as_echo "$ac_try_echo"; } >&5
  1596. (eval "$ac_compile") 2>conftest.err
  1597. ac_status=$?
  1598. if test -s conftest.err; then
  1599. grep -v '^ *+' conftest.err >conftest.er1
  1600. cat conftest.er1 >&5
  1601. mv -f conftest.er1 conftest.err
  1602. fi
  1603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1604. test $ac_status = 0; } && {
  1605. test -z "$ac_cxx_werror_flag" ||
  1606. test ! -s conftest.err
  1607. } && test -s conftest.$ac_objext; then :
  1608. ac_retval=0
  1609. else
  1610. $as_echo "$as_me: failed program was:" >&5
  1611. sed 's/^/| /' conftest.$ac_ext >&5
  1612. ac_retval=1
  1613. fi
  1614. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1615. as_fn_set_status $ac_retval
  1616. } # ac_fn_cxx_try_compile
  1617. # ac_fn_cxx_try_cpp LINENO
  1618. # ------------------------
  1619. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1620. ac_fn_cxx_try_cpp ()
  1621. {
  1622. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1623. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1624. case "(($ac_try" in
  1625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1626. *) ac_try_echo=$ac_try;;
  1627. esac
  1628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1629. $as_echo "$ac_try_echo"; } >&5
  1630. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1631. ac_status=$?
  1632. if test -s conftest.err; then
  1633. grep -v '^ *+' conftest.err >conftest.er1
  1634. cat conftest.er1 >&5
  1635. mv -f conftest.er1 conftest.err
  1636. fi
  1637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1638. test $ac_status = 0; } > conftest.i && {
  1639. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1640. test ! -s conftest.err
  1641. }; then :
  1642. ac_retval=0
  1643. else
  1644. $as_echo "$as_me: failed program was:" >&5
  1645. sed 's/^/| /' conftest.$ac_ext >&5
  1646. ac_retval=1
  1647. fi
  1648. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1649. as_fn_set_status $ac_retval
  1650. } # ac_fn_cxx_try_cpp
  1651. # ac_fn_cxx_try_link LINENO
  1652. # -------------------------
  1653. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1654. ac_fn_cxx_try_link ()
  1655. {
  1656. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1657. rm -f conftest.$ac_objext conftest$ac_exeext
  1658. if { { ac_try="$ac_link"
  1659. case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_link") 2>conftest.err
  1666. ac_status=$?
  1667. if test -s conftest.err; then
  1668. grep -v '^ *+' conftest.err >conftest.er1
  1669. cat conftest.er1 >&5
  1670. mv -f conftest.er1 conftest.err
  1671. fi
  1672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1673. test $ac_status = 0; } && {
  1674. test -z "$ac_cxx_werror_flag" ||
  1675. test ! -s conftest.err
  1676. } && test -s conftest$ac_exeext && {
  1677. test "$cross_compiling" = yes ||
  1678. test -x conftest$ac_exeext
  1679. }; then :
  1680. ac_retval=0
  1681. else
  1682. $as_echo "$as_me: failed program was:" >&5
  1683. sed 's/^/| /' conftest.$ac_ext >&5
  1684. ac_retval=1
  1685. fi
  1686. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1687. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1688. # interfere with the next link command; also delete a directory that is
  1689. # left behind by Apple's compiler. We do this before executing the actions.
  1690. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1691. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1692. as_fn_set_status $ac_retval
  1693. } # ac_fn_cxx_try_link
  1694. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1695. # -------------------------------------------
  1696. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1697. # variable VAR accordingly.
  1698. ac_fn_c_check_type ()
  1699. {
  1700. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1702. $as_echo_n "checking for $2... " >&6; }
  1703. if eval \${$3+:} false; then :
  1704. $as_echo_n "(cached) " >&6
  1705. else
  1706. eval "$3=no"
  1707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1708. /* end confdefs.h. */
  1709. $4
  1710. int
  1711. main ()
  1712. {
  1713. if (sizeof ($2))
  1714. return 0;
  1715. ;
  1716. return 0;
  1717. }
  1718. _ACEOF
  1719. if ac_fn_c_try_compile "$LINENO"; then :
  1720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1721. /* end confdefs.h. */
  1722. $4
  1723. int
  1724. main ()
  1725. {
  1726. if (sizeof (($2)))
  1727. return 0;
  1728. ;
  1729. return 0;
  1730. }
  1731. _ACEOF
  1732. if ac_fn_c_try_compile "$LINENO"; then :
  1733. else
  1734. eval "$3=yes"
  1735. fi
  1736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1737. fi
  1738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1739. fi
  1740. eval ac_res=\$$3
  1741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1742. $as_echo "$ac_res" >&6; }
  1743. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1744. } # ac_fn_c_check_type
  1745. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1746. # -------------------------------------------------------
  1747. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1748. # the include files in INCLUDES and setting the cache variable VAR
  1749. # accordingly.
  1750. ac_fn_c_check_header_mongrel ()
  1751. {
  1752. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1753. if eval \${$3+:} false; then :
  1754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1755. $as_echo_n "checking for $2... " >&6; }
  1756. if eval \${$3+:} false; then :
  1757. $as_echo_n "(cached) " >&6
  1758. fi
  1759. eval ac_res=\$$3
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1761. $as_echo "$ac_res" >&6; }
  1762. else
  1763. # Is the header compilable?
  1764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1765. $as_echo_n "checking $2 usability... " >&6; }
  1766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1767. /* end confdefs.h. */
  1768. $4
  1769. #include <$2>
  1770. _ACEOF
  1771. if ac_fn_c_try_compile "$LINENO"; then :
  1772. ac_header_compiler=yes
  1773. else
  1774. ac_header_compiler=no
  1775. fi
  1776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1778. $as_echo "$ac_header_compiler" >&6; }
  1779. # Is the header present?
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1781. $as_echo_n "checking $2 presence... " >&6; }
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. #include <$2>
  1785. _ACEOF
  1786. if ac_fn_c_try_cpp "$LINENO"; then :
  1787. ac_header_preproc=yes
  1788. else
  1789. ac_header_preproc=no
  1790. fi
  1791. rm -f conftest.err conftest.i conftest.$ac_ext
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1793. $as_echo "$ac_header_preproc" >&6; }
  1794. # So? What about this header?
  1795. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1796. yes:no: )
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1798. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1800. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1801. ;;
  1802. no:yes:* )
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1804. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1806. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1808. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1810. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1812. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1813. ( $as_echo "## -------------------------------------- ##
  1814. ## Report this to [email protected] ##
  1815. ## -------------------------------------- ##"
  1816. ) | sed "s/^/$as_me: WARNING: /" >&2
  1817. ;;
  1818. esac
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1820. $as_echo_n "checking for $2... " >&6; }
  1821. if eval \${$3+:} false; then :
  1822. $as_echo_n "(cached) " >&6
  1823. else
  1824. eval "$3=\$ac_header_compiler"
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. fi
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. } # ac_fn_c_check_header_mongrel
  1832. cat >config.log <<_ACEOF
  1833. This file contains any messages produced by compilers while
  1834. running configure, to aid debugging if configure makes a mistake.
  1835. It was created by expat $as_me 2.2.1, which was
  1836. generated by GNU Autoconf 2.69. Invocation command line was
  1837. $ $0 $@
  1838. _ACEOF
  1839. exec 5>>config.log
  1840. {
  1841. cat <<_ASUNAME
  1842. ## --------- ##
  1843. ## Platform. ##
  1844. ## --------- ##
  1845. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1846. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1847. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1848. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1849. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1850. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1851. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1852. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1853. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1854. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1855. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1856. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1857. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1858. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1859. _ASUNAME
  1860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1861. for as_dir in $PATH
  1862. do
  1863. IFS=$as_save_IFS
  1864. test -z "$as_dir" && as_dir=.
  1865. $as_echo "PATH: $as_dir"
  1866. done
  1867. IFS=$as_save_IFS
  1868. } >&5
  1869. cat >&5 <<_ACEOF
  1870. ## ----------- ##
  1871. ## Core tests. ##
  1872. ## ----------- ##
  1873. _ACEOF
  1874. # Keep a trace of the command line.
  1875. # Strip out --no-create and --no-recursion so they do not pile up.
  1876. # Strip out --silent because we don't want to record it for future runs.
  1877. # Also quote any args containing shell meta-characters.
  1878. # Make two passes to allow for proper duplicate-argument suppression.
  1879. ac_configure_args=
  1880. ac_configure_args0=
  1881. ac_configure_args1=
  1882. ac_must_keep_next=false
  1883. for ac_pass in 1 2
  1884. do
  1885. for ac_arg
  1886. do
  1887. case $ac_arg in
  1888. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1889. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1890. | -silent | --silent | --silen | --sile | --sil)
  1891. continue ;;
  1892. *\'*)
  1893. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1894. esac
  1895. case $ac_pass in
  1896. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1897. 2)
  1898. as_fn_append ac_configure_args1 " '$ac_arg'"
  1899. if test $ac_must_keep_next = true; then
  1900. ac_must_keep_next=false # Got value, back to normal.
  1901. else
  1902. case $ac_arg in
  1903. *=* | --config-cache | -C | -disable-* | --disable-* \
  1904. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1905. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1906. | -with-* | --with-* | -without-* | --without-* | --x)
  1907. case "$ac_configure_args0 " in
  1908. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1909. esac
  1910. ;;
  1911. -* ) ac_must_keep_next=true ;;
  1912. esac
  1913. fi
  1914. as_fn_append ac_configure_args " '$ac_arg'"
  1915. ;;
  1916. esac
  1917. done
  1918. done
  1919. { ac_configure_args0=; unset ac_configure_args0;}
  1920. { ac_configure_args1=; unset ac_configure_args1;}
  1921. # When interrupted or exit'd, cleanup temporary files, and complete
  1922. # config.log. We remove comments because anyway the quotes in there
  1923. # would cause problems or look ugly.
  1924. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1925. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1926. trap 'exit_status=$?
  1927. # Save into config.log some information that might help in debugging.
  1928. {
  1929. echo
  1930. $as_echo "## ---------------- ##
  1931. ## Cache variables. ##
  1932. ## ---------------- ##"
  1933. echo
  1934. # The following way of writing the cache mishandles newlines in values,
  1935. (
  1936. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1937. eval ac_val=\$$ac_var
  1938. case $ac_val in #(
  1939. *${as_nl}*)
  1940. case $ac_var in #(
  1941. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1942. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1943. esac
  1944. case $ac_var in #(
  1945. _ | IFS | as_nl) ;; #(
  1946. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1947. *) { eval $ac_var=; unset $ac_var;} ;;
  1948. esac ;;
  1949. esac
  1950. done
  1951. (set) 2>&1 |
  1952. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1953. *${as_nl}ac_space=\ *)
  1954. sed -n \
  1955. "s/'\''/'\''\\\\'\'''\''/g;
  1956. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1957. ;; #(
  1958. *)
  1959. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1960. ;;
  1961. esac |
  1962. sort
  1963. )
  1964. echo
  1965. $as_echo "## ----------------- ##
  1966. ## Output variables. ##
  1967. ## ----------------- ##"
  1968. echo
  1969. for ac_var in $ac_subst_vars
  1970. do
  1971. eval ac_val=\$$ac_var
  1972. case $ac_val in
  1973. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1974. esac
  1975. $as_echo "$ac_var='\''$ac_val'\''"
  1976. done | sort
  1977. echo
  1978. if test -n "$ac_subst_files"; then
  1979. $as_echo "## ------------------- ##
  1980. ## File substitutions. ##
  1981. ## ------------------- ##"
  1982. echo
  1983. for ac_var in $ac_subst_files
  1984. do
  1985. eval ac_val=\$$ac_var
  1986. case $ac_val in
  1987. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1988. esac
  1989. $as_echo "$ac_var='\''$ac_val'\''"
  1990. done | sort
  1991. echo
  1992. fi
  1993. if test -s confdefs.h; then
  1994. $as_echo "## ----------- ##
  1995. ## confdefs.h. ##
  1996. ## ----------- ##"
  1997. echo
  1998. cat confdefs.h
  1999. echo
  2000. fi
  2001. test "$ac_signal" != 0 &&
  2002. $as_echo "$as_me: caught signal $ac_signal"
  2003. $as_echo "$as_me: exit $exit_status"
  2004. } >&5
  2005. rm -f core *.core core.conftest.* &&
  2006. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2007. exit $exit_status
  2008. ' 0
  2009. for ac_signal in 1 2 13 15; do
  2010. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2011. done
  2012. ac_signal=0
  2013. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2014. rm -f -r conftest* confdefs.h
  2015. $as_echo "/* confdefs.h */" > confdefs.h
  2016. # Predefined preprocessor variables.
  2017. cat >>confdefs.h <<_ACEOF
  2018. #define PACKAGE_NAME "$PACKAGE_NAME"
  2019. _ACEOF
  2020. cat >>confdefs.h <<_ACEOF
  2021. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2022. _ACEOF
  2023. cat >>confdefs.h <<_ACEOF
  2024. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2025. _ACEOF
  2026. cat >>confdefs.h <<_ACEOF
  2027. #define PACKAGE_STRING "$PACKAGE_STRING"
  2028. _ACEOF
  2029. cat >>confdefs.h <<_ACEOF
  2030. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2031. _ACEOF
  2032. cat >>confdefs.h <<_ACEOF
  2033. #define PACKAGE_URL "$PACKAGE_URL"
  2034. _ACEOF
  2035. # Let the site file select an alternate cache file if it wants to.
  2036. # Prefer an explicitly selected file to automatically selected ones.
  2037. ac_site_file1=NONE
  2038. ac_site_file2=NONE
  2039. if test -n "$CONFIG_SITE"; then
  2040. # We do not want a PATH search for config.site.
  2041. case $CONFIG_SITE in #((
  2042. -*) ac_site_file1=./$CONFIG_SITE;;
  2043. */*) ac_site_file1=$CONFIG_SITE;;
  2044. *) ac_site_file1=./$CONFIG_SITE;;
  2045. esac
  2046. elif test "x$prefix" != xNONE; then
  2047. ac_site_file1=$prefix/share/config.site
  2048. ac_site_file2=$prefix/etc/config.site
  2049. else
  2050. ac_site_file1=$ac_default_prefix/share/config.site
  2051. ac_site_file2=$ac_default_prefix/etc/config.site
  2052. fi
  2053. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2054. do
  2055. test "x$ac_site_file" = xNONE && continue
  2056. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2058. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2059. sed 's/^/| /' "$ac_site_file" >&5
  2060. . "$ac_site_file" \
  2061. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2063. as_fn_error $? "failed to load site script $ac_site_file
  2064. See \`config.log' for more details" "$LINENO" 5; }
  2065. fi
  2066. done
  2067. if test -r "$cache_file"; then
  2068. # Some versions of bash will fail to source /dev/null (special files
  2069. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2070. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2072. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2073. case $cache_file in
  2074. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2075. *) . "./$cache_file";;
  2076. esac
  2077. fi
  2078. else
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2080. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2081. >$cache_file
  2082. fi
  2083. as_fn_append ac_header_list " stdlib.h"
  2084. as_fn_append ac_header_list " unistd.h"
  2085. as_fn_append ac_header_list " sys/param.h"
  2086. # Check that the precious variables saved in the cache have kept the same
  2087. # value.
  2088. ac_cache_corrupted=false
  2089. for ac_var in $ac_precious_vars; do
  2090. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2091. eval ac_new_set=\$ac_env_${ac_var}_set
  2092. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2093. eval ac_new_val=\$ac_env_${ac_var}_value
  2094. case $ac_old_set,$ac_new_set in
  2095. set,)
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2097. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2098. ac_cache_corrupted=: ;;
  2099. ,set)
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2101. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2102. ac_cache_corrupted=: ;;
  2103. ,);;
  2104. *)
  2105. if test "x$ac_old_val" != "x$ac_new_val"; then
  2106. # differences in whitespace do not lead to failure.
  2107. ac_old_val_w=`echo x $ac_old_val`
  2108. ac_new_val_w=`echo x $ac_new_val`
  2109. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2111. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2112. ac_cache_corrupted=:
  2113. else
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2115. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2116. eval $ac_var=\$ac_old_val
  2117. fi
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2119. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2121. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2122. fi;;
  2123. esac
  2124. # Pass precious variables to config.status.
  2125. if test "$ac_new_set" = set; then
  2126. case $ac_new_val in
  2127. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2128. *) ac_arg=$ac_var=$ac_new_val ;;
  2129. esac
  2130. case " $ac_configure_args " in
  2131. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2132. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2133. esac
  2134. fi
  2135. done
  2136. if $ac_cache_corrupted; then
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2138. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2140. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2141. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2142. fi
  2143. ## -------------------- ##
  2144. ## Main body of script. ##
  2145. ## -------------------- ##
  2146. ac_ext=c
  2147. ac_cpp='$CPP $CPPFLAGS'
  2148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2151. ac_aux_dir=
  2152. for ac_dir in conftools "$srcdir"/conftools; do
  2153. if test -f "$ac_dir/install-sh"; then
  2154. ac_aux_dir=$ac_dir
  2155. ac_install_sh="$ac_aux_dir/install-sh -c"
  2156. break
  2157. elif test -f "$ac_dir/install.sh"; then
  2158. ac_aux_dir=$ac_dir
  2159. ac_install_sh="$ac_aux_dir/install.sh -c"
  2160. break
  2161. elif test -f "$ac_dir/shtool"; then
  2162. ac_aux_dir=$ac_dir
  2163. ac_install_sh="$ac_aux_dir/shtool install -c"
  2164. break
  2165. fi
  2166. done
  2167. if test -z "$ac_aux_dir"; then
  2168. as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
  2169. fi
  2170. # These three variables are undocumented and unsupported,
  2171. # and are intended to be withdrawn in a future Autoconf release.
  2172. # They can cause serious problems if a builder's source tree is in a directory
  2173. # whose full name contains unusual characters.
  2174. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2175. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2176. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2177. LIBCURRENT=7 # sync
  2178. LIBREVISION=3 # with
  2179. LIBAGE=6 # CMakeLists.txt!
  2180. ac_config_headers="$ac_config_headers expat_config.h"
  2181. # Make sure we can run config.sub.
  2182. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2183. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2185. $as_echo_n "checking build system type... " >&6; }
  2186. if ${ac_cv_build+:} false; then :
  2187. $as_echo_n "(cached) " >&6
  2188. else
  2189. ac_build_alias=$build_alias
  2190. test "x$ac_build_alias" = x &&
  2191. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2192. test "x$ac_build_alias" = x &&
  2193. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2194. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2195. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2196. fi
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2198. $as_echo "$ac_cv_build" >&6; }
  2199. case $ac_cv_build in
  2200. *-*-*) ;;
  2201. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2202. esac
  2203. build=$ac_cv_build
  2204. ac_save_IFS=$IFS; IFS='-'
  2205. set x $ac_cv_build
  2206. shift
  2207. build_cpu=$1
  2208. build_vendor=$2
  2209. shift; shift
  2210. # Remember, the first character of IFS is used to create $*,
  2211. # except with old shells:
  2212. build_os=$*
  2213. IFS=$ac_save_IFS
  2214. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2216. $as_echo_n "checking host system type... " >&6; }
  2217. if ${ac_cv_host+:} false; then :
  2218. $as_echo_n "(cached) " >&6
  2219. else
  2220. if test "x$host_alias" = x; then
  2221. ac_cv_host=$ac_cv_build
  2222. else
  2223. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2224. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2225. fi
  2226. fi
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2228. $as_echo "$ac_cv_host" >&6; }
  2229. case $ac_cv_host in
  2230. *-*-*) ;;
  2231. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2232. esac
  2233. host=$ac_cv_host
  2234. ac_save_IFS=$IFS; IFS='-'
  2235. set x $ac_cv_host
  2236. shift
  2237. host_cpu=$1
  2238. host_vendor=$2
  2239. shift; shift
  2240. # Remember, the first character of IFS is used to create $*,
  2241. # except with old shells:
  2242. host_os=$*
  2243. IFS=$ac_save_IFS
  2244. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2245. enable_win32_dll=yes
  2246. case $host in
  2247. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  2248. if test -n "$ac_tool_prefix"; then
  2249. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  2250. set dummy ${ac_tool_prefix}as; ac_word=$2
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2252. $as_echo_n "checking for $ac_word... " >&6; }
  2253. if ${ac_cv_prog_AS+:} false; then :
  2254. $as_echo_n "(cached) " >&6
  2255. else
  2256. if test -n "$AS"; then
  2257. ac_cv_prog_AS="$AS" # Let the user override the test.
  2258. else
  2259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2260. for as_dir in $PATH
  2261. do
  2262. IFS=$as_save_IFS
  2263. test -z "$as_dir" && as_dir=.
  2264. for ac_exec_ext in '' $ac_executable_extensions; do
  2265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2266. ac_cv_prog_AS="${ac_tool_prefix}as"
  2267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2268. break 2
  2269. fi
  2270. done
  2271. done
  2272. IFS=$as_save_IFS
  2273. fi
  2274. fi
  2275. AS=$ac_cv_prog_AS
  2276. if test -n "$AS"; then
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  2278. $as_echo "$AS" >&6; }
  2279. else
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2281. $as_echo "no" >&6; }
  2282. fi
  2283. fi
  2284. if test -z "$ac_cv_prog_AS"; then
  2285. ac_ct_AS=$AS
  2286. # Extract the first word of "as", so it can be a program name with args.
  2287. set dummy as; ac_word=$2
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2289. $as_echo_n "checking for $ac_word... " >&6; }
  2290. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  2291. $as_echo_n "(cached) " >&6
  2292. else
  2293. if test -n "$ac_ct_AS"; then
  2294. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  2295. else
  2296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2297. for as_dir in $PATH
  2298. do
  2299. IFS=$as_save_IFS
  2300. test -z "$as_dir" && as_dir=.
  2301. for ac_exec_ext in '' $ac_executable_extensions; do
  2302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2303. ac_cv_prog_ac_ct_AS="as"
  2304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2305. break 2
  2306. fi
  2307. done
  2308. done
  2309. IFS=$as_save_IFS
  2310. fi
  2311. fi
  2312. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  2313. if test -n "$ac_ct_AS"; then
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  2315. $as_echo "$ac_ct_AS" >&6; }
  2316. else
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2318. $as_echo "no" >&6; }
  2319. fi
  2320. if test "x$ac_ct_AS" = x; then
  2321. AS="false"
  2322. else
  2323. case $cross_compiling:$ac_tool_warned in
  2324. yes:)
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2327. ac_tool_warned=yes ;;
  2328. esac
  2329. AS=$ac_ct_AS
  2330. fi
  2331. else
  2332. AS="$ac_cv_prog_AS"
  2333. fi
  2334. if test -n "$ac_tool_prefix"; then
  2335. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  2336. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2338. $as_echo_n "checking for $ac_word... " >&6; }
  2339. if ${ac_cv_prog_DLLTOOL+:} false; then :
  2340. $as_echo_n "(cached) " >&6
  2341. else
  2342. if test -n "$DLLTOOL"; then
  2343. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  2344. else
  2345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2346. for as_dir in $PATH
  2347. do
  2348. IFS=$as_save_IFS
  2349. test -z "$as_dir" && as_dir=.
  2350. for ac_exec_ext in '' $ac_executable_extensions; do
  2351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2352. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  2353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2354. break 2
  2355. fi
  2356. done
  2357. done
  2358. IFS=$as_save_IFS
  2359. fi
  2360. fi
  2361. DLLTOOL=$ac_cv_prog_DLLTOOL
  2362. if test -n "$DLLTOOL"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  2364. $as_echo "$DLLTOOL" >&6; }
  2365. else
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2367. $as_echo "no" >&6; }
  2368. fi
  2369. fi
  2370. if test -z "$ac_cv_prog_DLLTOOL"; then
  2371. ac_ct_DLLTOOL=$DLLTOOL
  2372. # Extract the first word of "dlltool", so it can be a program name with args.
  2373. set dummy dlltool; ac_word=$2
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2375. $as_echo_n "checking for $ac_word... " >&6; }
  2376. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  2377. $as_echo_n "(cached) " >&6
  2378. else
  2379. if test -n "$ac_ct_DLLTOOL"; then
  2380. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  2381. else
  2382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2383. for as_dir in $PATH
  2384. do
  2385. IFS=$as_save_IFS
  2386. test -z "$as_dir" && as_dir=.
  2387. for ac_exec_ext in '' $ac_executable_extensions; do
  2388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2389. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  2390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2391. break 2
  2392. fi
  2393. done
  2394. done
  2395. IFS=$as_save_IFS
  2396. fi
  2397. fi
  2398. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  2399. if test -n "$ac_ct_DLLTOOL"; then
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  2401. $as_echo "$ac_ct_DLLTOOL" >&6; }
  2402. else
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2404. $as_echo "no" >&6; }
  2405. fi
  2406. if test "x$ac_ct_DLLTOOL" = x; then
  2407. DLLTOOL="false"
  2408. else
  2409. case $cross_compiling:$ac_tool_warned in
  2410. yes:)
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2413. ac_tool_warned=yes ;;
  2414. esac
  2415. DLLTOOL=$ac_ct_DLLTOOL
  2416. fi
  2417. else
  2418. DLLTOOL="$ac_cv_prog_DLLTOOL"
  2419. fi
  2420. if test -n "$ac_tool_prefix"; then
  2421. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  2422. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2424. $as_echo_n "checking for $ac_word... " >&6; }
  2425. if ${ac_cv_prog_OBJDUMP+:} false; then :
  2426. $as_echo_n "(cached) " >&6
  2427. else
  2428. if test -n "$OBJDUMP"; then
  2429. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  2430. else
  2431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2432. for as_dir in $PATH
  2433. do
  2434. IFS=$as_save_IFS
  2435. test -z "$as_dir" && as_dir=.
  2436. for ac_exec_ext in '' $ac_executable_extensions; do
  2437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2438. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  2439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2440. break 2
  2441. fi
  2442. done
  2443. done
  2444. IFS=$as_save_IFS
  2445. fi
  2446. fi
  2447. OBJDUMP=$ac_cv_prog_OBJDUMP
  2448. if test -n "$OBJDUMP"; then
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  2450. $as_echo "$OBJDUMP" >&6; }
  2451. else
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2453. $as_echo "no" >&6; }
  2454. fi
  2455. fi
  2456. if test -z "$ac_cv_prog_OBJDUMP"; then
  2457. ac_ct_OBJDUMP=$OBJDUMP
  2458. # Extract the first word of "objdump", so it can be a program name with args.
  2459. set dummy objdump; ac_word=$2
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2461. $as_echo_n "checking for $ac_word... " >&6; }
  2462. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. if test -n "$ac_ct_OBJDUMP"; then
  2466. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  2467. else
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. for ac_exec_ext in '' $ac_executable_extensions; do
  2474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2475. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  2476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2477. break 2
  2478. fi
  2479. done
  2480. done
  2481. IFS=$as_save_IFS
  2482. fi
  2483. fi
  2484. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  2485. if test -n "$ac_ct_OBJDUMP"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  2487. $as_echo "$ac_ct_OBJDUMP" >&6; }
  2488. else
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2490. $as_echo "no" >&6; }
  2491. fi
  2492. if test "x$ac_ct_OBJDUMP" = x; then
  2493. OBJDUMP="false"
  2494. else
  2495. case $cross_compiling:$ac_tool_warned in
  2496. yes:)
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2498. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2499. ac_tool_warned=yes ;;
  2500. esac
  2501. OBJDUMP=$ac_ct_OBJDUMP
  2502. fi
  2503. else
  2504. OBJDUMP="$ac_cv_prog_OBJDUMP"
  2505. fi
  2506. ;;
  2507. esac
  2508. test -z "$AS" && AS=as
  2509. test -z "$DLLTOOL" && DLLTOOL=dlltool
  2510. test -z "$OBJDUMP" && OBJDUMP=objdump
  2511. case `pwd` in
  2512. *\ * | *\ *)
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2514. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2515. esac
  2516. macro_version='2.4.6'
  2517. macro_revision='2.4.6'
  2518. ltmain=$ac_aux_dir/ltmain.sh
  2519. # Backslashify metacharacters that are still active within
  2520. # double-quoted strings.
  2521. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2522. # Same as above, but do not quote variable references.
  2523. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2524. # Sed substitution to delay expansion of an escaped shell variable in a
  2525. # double_quote_subst'ed string.
  2526. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2527. # Sed substitution to delay expansion of an escaped single quote.
  2528. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2529. # Sed substitution to avoid accidental globbing in evaled expressions
  2530. no_glob_subst='s/\*/\\\*/g'
  2531. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2532. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2533. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2535. $as_echo_n "checking how to print strings... " >&6; }
  2536. # Test print first, because it will be a builtin if present.
  2537. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2538. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2539. ECHO='print -r --'
  2540. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2541. ECHO='printf %s\n'
  2542. else
  2543. # Use this function as a fallback that always works.
  2544. func_fallback_echo ()
  2545. {
  2546. eval 'cat <<_LTECHO_EOF
  2547. $1
  2548. _LTECHO_EOF'
  2549. }
  2550. ECHO='func_fallback_echo'
  2551. fi
  2552. # func_echo_all arg...
  2553. # Invoke $ECHO with all args, space-separated.
  2554. func_echo_all ()
  2555. {
  2556. $ECHO ""
  2557. }
  2558. case $ECHO in
  2559. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2560. $as_echo "printf" >&6; } ;;
  2561. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2562. $as_echo "print -r" >&6; } ;;
  2563. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2564. $as_echo "cat" >&6; } ;;
  2565. esac
  2566. ac_ext=c
  2567. ac_cpp='$CPP $CPPFLAGS'
  2568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2571. if test -n "$ac_tool_prefix"; then
  2572. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2573. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2575. $as_echo_n "checking for $ac_word... " >&6; }
  2576. if ${ac_cv_prog_CC+:} false; then :
  2577. $as_echo_n "(cached) " >&6
  2578. else
  2579. if test -n "$CC"; then
  2580. ac_cv_prog_CC="$CC" # Let the user override the test.
  2581. else
  2582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2583. for as_dir in $PATH
  2584. do
  2585. IFS=$as_save_IFS
  2586. test -z "$as_dir" && as_dir=.
  2587. for ac_exec_ext in '' $ac_executable_extensions; do
  2588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2589. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2591. break 2
  2592. fi
  2593. done
  2594. done
  2595. IFS=$as_save_IFS
  2596. fi
  2597. fi
  2598. CC=$ac_cv_prog_CC
  2599. if test -n "$CC"; then
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2601. $as_echo "$CC" >&6; }
  2602. else
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2604. $as_echo "no" >&6; }
  2605. fi
  2606. fi
  2607. if test -z "$ac_cv_prog_CC"; then
  2608. ac_ct_CC=$CC
  2609. # Extract the first word of "gcc", so it can be a program name with args.
  2610. set dummy gcc; ac_word=$2
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2612. $as_echo_n "checking for $ac_word... " >&6; }
  2613. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. if test -n "$ac_ct_CC"; then
  2617. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2618. else
  2619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2620. for as_dir in $PATH
  2621. do
  2622. IFS=$as_save_IFS
  2623. test -z "$as_dir" && as_dir=.
  2624. for ac_exec_ext in '' $ac_executable_extensions; do
  2625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2626. ac_cv_prog_ac_ct_CC="gcc"
  2627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2628. break 2
  2629. fi
  2630. done
  2631. done
  2632. IFS=$as_save_IFS
  2633. fi
  2634. fi
  2635. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2636. if test -n "$ac_ct_CC"; then
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2638. $as_echo "$ac_ct_CC" >&6; }
  2639. else
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2641. $as_echo "no" >&6; }
  2642. fi
  2643. if test "x$ac_ct_CC" = x; then
  2644. CC=""
  2645. else
  2646. case $cross_compiling:$ac_tool_warned in
  2647. yes:)
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2650. ac_tool_warned=yes ;;
  2651. esac
  2652. CC=$ac_ct_CC
  2653. fi
  2654. else
  2655. CC="$ac_cv_prog_CC"
  2656. fi
  2657. if test -z "$CC"; then
  2658. if test -n "$ac_tool_prefix"; then
  2659. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2660. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2662. $as_echo_n "checking for $ac_word... " >&6; }
  2663. if ${ac_cv_prog_CC+:} false; then :
  2664. $as_echo_n "(cached) " >&6
  2665. else
  2666. if test -n "$CC"; then
  2667. ac_cv_prog_CC="$CC" # Let the user override the test.
  2668. else
  2669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2670. for as_dir in $PATH
  2671. do
  2672. IFS=$as_save_IFS
  2673. test -z "$as_dir" && as_dir=.
  2674. for ac_exec_ext in '' $ac_executable_extensions; do
  2675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2676. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2678. break 2
  2679. fi
  2680. done
  2681. done
  2682. IFS=$as_save_IFS
  2683. fi
  2684. fi
  2685. CC=$ac_cv_prog_CC
  2686. if test -n "$CC"; then
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2688. $as_echo "$CC" >&6; }
  2689. else
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2691. $as_echo "no" >&6; }
  2692. fi
  2693. fi
  2694. fi
  2695. if test -z "$CC"; then
  2696. # Extract the first word of "cc", so it can be a program name with args.
  2697. set dummy cc; ac_word=$2
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2699. $as_echo_n "checking for $ac_word... " >&6; }
  2700. if ${ac_cv_prog_CC+:} false; then :
  2701. $as_echo_n "(cached) " >&6
  2702. else
  2703. if test -n "$CC"; then
  2704. ac_cv_prog_CC="$CC" # Let the user override the test.
  2705. else
  2706. ac_prog_rejected=no
  2707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2708. for as_dir in $PATH
  2709. do
  2710. IFS=$as_save_IFS
  2711. test -z "$as_dir" && as_dir=.
  2712. for ac_exec_ext in '' $ac_executable_extensions; do
  2713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2714. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2715. ac_prog_rejected=yes
  2716. continue
  2717. fi
  2718. ac_cv_prog_CC="cc"
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. IFS=$as_save_IFS
  2725. if test $ac_prog_rejected = yes; then
  2726. # We found a bogon in the path, so make sure we never use it.
  2727. set dummy $ac_cv_prog_CC
  2728. shift
  2729. if test $# != 0; then
  2730. # We chose a different compiler from the bogus one.
  2731. # However, it has the same basename, so the bogon will be chosen
  2732. # first if we set CC to just the basename; use the full file name.
  2733. shift
  2734. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2735. fi
  2736. fi
  2737. fi
  2738. fi
  2739. CC=$ac_cv_prog_CC
  2740. if test -n "$CC"; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2742. $as_echo "$CC" >&6; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2745. $as_echo "no" >&6; }
  2746. fi
  2747. fi
  2748. if test -z "$CC"; then
  2749. if test -n "$ac_tool_prefix"; then
  2750. for ac_prog in cl.exe
  2751. do
  2752. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2753. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2755. $as_echo_n "checking for $ac_word... " >&6; }
  2756. if ${ac_cv_prog_CC+:} false; then :
  2757. $as_echo_n "(cached) " >&6
  2758. else
  2759. if test -n "$CC"; then
  2760. ac_cv_prog_CC="$CC" # Let the user override the test.
  2761. else
  2762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2763. for as_dir in $PATH
  2764. do
  2765. IFS=$as_save_IFS
  2766. test -z "$as_dir" && as_dir=.
  2767. for ac_exec_ext in '' $ac_executable_extensions; do
  2768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2769. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2771. break 2
  2772. fi
  2773. done
  2774. done
  2775. IFS=$as_save_IFS
  2776. fi
  2777. fi
  2778. CC=$ac_cv_prog_CC
  2779. if test -n "$CC"; then
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2781. $as_echo "$CC" >&6; }
  2782. else
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2784. $as_echo "no" >&6; }
  2785. fi
  2786. test -n "$CC" && break
  2787. done
  2788. fi
  2789. if test -z "$CC"; then
  2790. ac_ct_CC=$CC
  2791. for ac_prog in cl.exe
  2792. do
  2793. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2794. set dummy $ac_prog; ac_word=$2
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2796. $as_echo_n "checking for $ac_word... " >&6; }
  2797. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2798. $as_echo_n "(cached) " >&6
  2799. else
  2800. if test -n "$ac_ct_CC"; then
  2801. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2802. else
  2803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2804. for as_dir in $PATH
  2805. do
  2806. IFS=$as_save_IFS
  2807. test -z "$as_dir" && as_dir=.
  2808. for ac_exec_ext in '' $ac_executable_extensions; do
  2809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2810. ac_cv_prog_ac_ct_CC="$ac_prog"
  2811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2812. break 2
  2813. fi
  2814. done
  2815. done
  2816. IFS=$as_save_IFS
  2817. fi
  2818. fi
  2819. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2820. if test -n "$ac_ct_CC"; then
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2822. $as_echo "$ac_ct_CC" >&6; }
  2823. else
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2825. $as_echo "no" >&6; }
  2826. fi
  2827. test -n "$ac_ct_CC" && break
  2828. done
  2829. if test "x$ac_ct_CC" = x; then
  2830. CC=""
  2831. else
  2832. case $cross_compiling:$ac_tool_warned in
  2833. yes:)
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2835. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2836. ac_tool_warned=yes ;;
  2837. esac
  2838. CC=$ac_ct_CC
  2839. fi
  2840. fi
  2841. fi
  2842. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2843. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2844. as_fn_error $? "no acceptable C compiler found in \$PATH
  2845. See \`config.log' for more details" "$LINENO" 5; }
  2846. # Provide some information about the compiler.
  2847. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2848. set X $ac_compile
  2849. ac_compiler=$2
  2850. for ac_option in --version -v -V -qversion; do
  2851. { { ac_try="$ac_compiler $ac_option >&5"
  2852. case "(($ac_try" in
  2853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2854. *) ac_try_echo=$ac_try;;
  2855. esac
  2856. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2857. $as_echo "$ac_try_echo"; } >&5
  2858. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2859. ac_status=$?
  2860. if test -s conftest.err; then
  2861. sed '10a\
  2862. ... rest of stderr output deleted ...
  2863. 10q' conftest.err >conftest.er1
  2864. cat conftest.er1 >&5
  2865. fi
  2866. rm -f conftest.er1 conftest.err
  2867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2868. test $ac_status = 0; }
  2869. done
  2870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2871. /* end confdefs.h. */
  2872. int
  2873. main ()
  2874. {
  2875. ;
  2876. return 0;
  2877. }
  2878. _ACEOF
  2879. ac_clean_files_save=$ac_clean_files
  2880. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2881. # Try to create an executable without -o first, disregard a.out.
  2882. # It will help us diagnose broken compilers, and finding out an intuition
  2883. # of exeext.
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2885. $as_echo_n "checking whether the C compiler works... " >&6; }
  2886. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2887. # The possible output files:
  2888. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2889. ac_rmfiles=
  2890. for ac_file in $ac_files
  2891. do
  2892. case $ac_file in
  2893. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2894. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2895. esac
  2896. done
  2897. rm -f $ac_rmfiles
  2898. if { { ac_try="$ac_link_default"
  2899. case "(($ac_try" in
  2900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2901. *) ac_try_echo=$ac_try;;
  2902. esac
  2903. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2904. $as_echo "$ac_try_echo"; } >&5
  2905. (eval "$ac_link_default") 2>&5
  2906. ac_status=$?
  2907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2908. test $ac_status = 0; }; then :
  2909. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2910. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2911. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2912. # so that the user can short-circuit this test for compilers unknown to
  2913. # Autoconf.
  2914. for ac_file in $ac_files ''
  2915. do
  2916. test -f "$ac_file" || continue
  2917. case $ac_file in
  2918. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2919. ;;
  2920. [ab].out )
  2921. # We found the default executable, but exeext='' is most
  2922. # certainly right.
  2923. break;;
  2924. *.* )
  2925. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2926. then :; else
  2927. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2928. fi
  2929. # We set ac_cv_exeext here because the later test for it is not
  2930. # safe: cross compilers may not add the suffix if given an `-o'
  2931. # argument, so we may need to know it at that point already.
  2932. # Even if this section looks crufty: it has the advantage of
  2933. # actually working.
  2934. break;;
  2935. * )
  2936. break;;
  2937. esac
  2938. done
  2939. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2940. else
  2941. ac_file=''
  2942. fi
  2943. if test -z "$ac_file"; then :
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2945. $as_echo "no" >&6; }
  2946. $as_echo "$as_me: failed program was:" >&5
  2947. sed 's/^/| /' conftest.$ac_ext >&5
  2948. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2949. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2950. as_fn_error 77 "C compiler cannot create executables
  2951. See \`config.log' for more details" "$LINENO" 5; }
  2952. else
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2954. $as_echo "yes" >&6; }
  2955. fi
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2957. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2959. $as_echo "$ac_file" >&6; }
  2960. ac_exeext=$ac_cv_exeext
  2961. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2962. ac_clean_files=$ac_clean_files_save
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2964. $as_echo_n "checking for suffix of executables... " >&6; }
  2965. if { { ac_try="$ac_link"
  2966. case "(($ac_try" in
  2967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2968. *) ac_try_echo=$ac_try;;
  2969. esac
  2970. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2971. $as_echo "$ac_try_echo"; } >&5
  2972. (eval "$ac_link") 2>&5
  2973. ac_status=$?
  2974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2975. test $ac_status = 0; }; then :
  2976. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2977. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2978. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2979. # `rm'.
  2980. for ac_file in conftest.exe conftest conftest.*; do
  2981. test -f "$ac_file" || continue
  2982. case $ac_file in
  2983. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2984. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2985. break;;
  2986. * ) break;;
  2987. esac
  2988. done
  2989. else
  2990. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2991. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2992. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2993. See \`config.log' for more details" "$LINENO" 5; }
  2994. fi
  2995. rm -f conftest conftest$ac_cv_exeext
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2997. $as_echo "$ac_cv_exeext" >&6; }
  2998. rm -f conftest.$ac_ext
  2999. EXEEXT=$ac_cv_exeext
  3000. ac_exeext=$EXEEXT
  3001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3002. /* end confdefs.h. */
  3003. #include <stdio.h>
  3004. int
  3005. main ()
  3006. {
  3007. FILE *f = fopen ("conftest.out", "w");
  3008. return ferror (f) || fclose (f) != 0;
  3009. ;
  3010. return 0;
  3011. }
  3012. _ACEOF
  3013. ac_clean_files="$ac_clean_files conftest.out"
  3014. # Check that the compiler produces executables we can run. If not, either
  3015. # the compiler is broken, or we cross compile.
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3017. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3018. if test "$cross_compiling" != yes; then
  3019. { { ac_try="$ac_link"
  3020. case "(($ac_try" in
  3021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3022. *) ac_try_echo=$ac_try;;
  3023. esac
  3024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3025. $as_echo "$ac_try_echo"; } >&5
  3026. (eval "$ac_link") 2>&5
  3027. ac_status=$?
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3029. test $ac_status = 0; }
  3030. if { ac_try='./conftest$ac_cv_exeext'
  3031. { { case "(($ac_try" in
  3032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3033. *) ac_try_echo=$ac_try;;
  3034. esac
  3035. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3036. $as_echo "$ac_try_echo"; } >&5
  3037. (eval "$ac_try") 2>&5
  3038. ac_status=$?
  3039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3040. test $ac_status = 0; }; }; then
  3041. cross_compiling=no
  3042. else
  3043. if test "$cross_compiling" = maybe; then
  3044. cross_compiling=yes
  3045. else
  3046. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3047. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3048. as_fn_error $? "cannot run C compiled programs.
  3049. If you meant to cross compile, use \`--host'.
  3050. See \`config.log' for more details" "$LINENO" 5; }
  3051. fi
  3052. fi
  3053. fi
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3055. $as_echo "$cross_compiling" >&6; }
  3056. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3057. ac_clean_files=$ac_clean_files_save
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3059. $as_echo_n "checking for suffix of object files... " >&6; }
  3060. if ${ac_cv_objext+:} false; then :
  3061. $as_echo_n "(cached) " >&6
  3062. else
  3063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. rm -f conftest.o conftest.obj
  3073. if { { ac_try="$ac_compile"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_compile") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3083. test $ac_status = 0; }; then :
  3084. for ac_file in conftest.o conftest.obj conftest.*; do
  3085. test -f "$ac_file" || continue;
  3086. case $ac_file in
  3087. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3088. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3089. break;;
  3090. esac
  3091. done
  3092. else
  3093. $as_echo "$as_me: failed program was:" >&5
  3094. sed 's/^/| /' conftest.$ac_ext >&5
  3095. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3097. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3098. See \`config.log' for more details" "$LINENO" 5; }
  3099. fi
  3100. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3103. $as_echo "$ac_cv_objext" >&6; }
  3104. OBJEXT=$ac_cv_objext
  3105. ac_objext=$OBJEXT
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3107. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3108. if ${ac_cv_c_compiler_gnu+:} false; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. int
  3114. main ()
  3115. {
  3116. #ifndef __GNUC__
  3117. choke me
  3118. #endif
  3119. ;
  3120. return 0;
  3121. }
  3122. _ACEOF
  3123. if ac_fn_c_try_compile "$LINENO"; then :
  3124. ac_compiler_gnu=yes
  3125. else
  3126. ac_compiler_gnu=no
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3132. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3133. if test $ac_compiler_gnu = yes; then
  3134. GCC=yes
  3135. else
  3136. GCC=
  3137. fi
  3138. ac_test_CFLAGS=${CFLAGS+set}
  3139. ac_save_CFLAGS=$CFLAGS
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3141. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3142. if ${ac_cv_prog_cc_g+:} false; then :
  3143. $as_echo_n "(cached) " >&6
  3144. else
  3145. ac_save_c_werror_flag=$ac_c_werror_flag
  3146. ac_c_werror_flag=yes
  3147. ac_cv_prog_cc_g=no
  3148. CFLAGS="-g"
  3149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3150. /* end confdefs.h. */
  3151. int
  3152. main ()
  3153. {
  3154. ;
  3155. return 0;
  3156. }
  3157. _ACEOF
  3158. if ac_fn_c_try_compile "$LINENO"; then :
  3159. ac_cv_prog_cc_g=yes
  3160. else
  3161. CFLAGS=""
  3162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3163. /* end confdefs.h. */
  3164. int
  3165. main ()
  3166. {
  3167. ;
  3168. return 0;
  3169. }
  3170. _ACEOF
  3171. if ac_fn_c_try_compile "$LINENO"; then :
  3172. else
  3173. ac_c_werror_flag=$ac_save_c_werror_flag
  3174. CFLAGS="-g"
  3175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3176. /* end confdefs.h. */
  3177. int
  3178. main ()
  3179. {
  3180. ;
  3181. return 0;
  3182. }
  3183. _ACEOF
  3184. if ac_fn_c_try_compile "$LINENO"; then :
  3185. ac_cv_prog_cc_g=yes
  3186. fi
  3187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3188. fi
  3189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3190. fi
  3191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3192. ac_c_werror_flag=$ac_save_c_werror_flag
  3193. fi
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3195. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3196. if test "$ac_test_CFLAGS" = set; then
  3197. CFLAGS=$ac_save_CFLAGS
  3198. elif test $ac_cv_prog_cc_g = yes; then
  3199. if test "$GCC" = yes; then
  3200. CFLAGS="-g -O2"
  3201. else
  3202. CFLAGS="-g"
  3203. fi
  3204. else
  3205. if test "$GCC" = yes; then
  3206. CFLAGS="-O2"
  3207. else
  3208. CFLAGS=
  3209. fi
  3210. fi
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3212. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3213. if ${ac_cv_prog_cc_c89+:} false; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. ac_cv_prog_cc_c89=no
  3217. ac_save_CC=$CC
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. #include <stdarg.h>
  3221. #include <stdio.h>
  3222. struct stat;
  3223. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3224. struct buf { int x; };
  3225. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3226. static char *e (p, i)
  3227. char **p;
  3228. int i;
  3229. {
  3230. return p[i];
  3231. }
  3232. static char *f (char * (*g) (char **, int), char **p, ...)
  3233. {
  3234. char *s;
  3235. va_list v;
  3236. va_start (v,p);
  3237. s = g (p, va_arg (v,int));
  3238. va_end (v);
  3239. return s;
  3240. }
  3241. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3242. function prototypes and stuff, but not '\xHH' hex character constants.
  3243. These don't provoke an error unfortunately, instead are silently treated
  3244. as 'x'. The following induces an error, until -std is added to get
  3245. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3246. array size at least. It's necessary to write '\x00'==0 to get something
  3247. that's true only with -std. */
  3248. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3249. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3250. inside strings and character constants. */
  3251. #define FOO(x) 'x'
  3252. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3253. int test (int i, double x);
  3254. struct s1 {int (*f) (int a);};
  3255. struct s2 {int (*f) (double a);};
  3256. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3257. int argc;
  3258. char **argv;
  3259. int
  3260. main ()
  3261. {
  3262. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3263. ;
  3264. return 0;
  3265. }
  3266. _ACEOF
  3267. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3268. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3269. do
  3270. CC="$ac_save_CC $ac_arg"
  3271. if ac_fn_c_try_compile "$LINENO"; then :
  3272. ac_cv_prog_cc_c89=$ac_arg
  3273. fi
  3274. rm -f core conftest.err conftest.$ac_objext
  3275. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3276. done
  3277. rm -f conftest.$ac_ext
  3278. CC=$ac_save_CC
  3279. fi
  3280. # AC_CACHE_VAL
  3281. case "x$ac_cv_prog_cc_c89" in
  3282. x)
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3284. $as_echo "none needed" >&6; } ;;
  3285. xno)
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3287. $as_echo "unsupported" >&6; } ;;
  3288. *)
  3289. CC="$CC $ac_cv_prog_cc_c89"
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3291. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3292. esac
  3293. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3294. fi
  3295. ac_ext=c
  3296. ac_cpp='$CPP $CPPFLAGS'
  3297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3301. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3302. if ${ac_cv_path_SED+:} false; then :
  3303. $as_echo_n "(cached) " >&6
  3304. else
  3305. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3306. for ac_i in 1 2 3 4 5 6 7; do
  3307. ac_script="$ac_script$as_nl$ac_script"
  3308. done
  3309. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3310. { ac_script=; unset ac_script;}
  3311. if test -z "$SED"; then
  3312. ac_path_SED_found=false
  3313. # Loop through the user's path and test for each of PROGNAME-LIST
  3314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3315. for as_dir in $PATH
  3316. do
  3317. IFS=$as_save_IFS
  3318. test -z "$as_dir" && as_dir=.
  3319. for ac_prog in sed gsed; do
  3320. for ac_exec_ext in '' $ac_executable_extensions; do
  3321. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3322. as_fn_executable_p "$ac_path_SED" || continue
  3323. # Check for GNU ac_path_SED and select it if it is found.
  3324. # Check for GNU $ac_path_SED
  3325. case `"$ac_path_SED" --version 2>&1` in
  3326. *GNU*)
  3327. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3328. *)
  3329. ac_count=0
  3330. $as_echo_n 0123456789 >"conftest.in"
  3331. while :
  3332. do
  3333. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3334. mv "conftest.tmp" "conftest.in"
  3335. cp "conftest.in" "conftest.nl"
  3336. $as_echo '' >> "conftest.nl"
  3337. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3338. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3339. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3340. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3341. # Best one so far, save it but keep looking for a better one
  3342. ac_cv_path_SED="$ac_path_SED"
  3343. ac_path_SED_max=$ac_count
  3344. fi
  3345. # 10*(2^10) chars as input seems more than enough
  3346. test $ac_count -gt 10 && break
  3347. done
  3348. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3349. esac
  3350. $ac_path_SED_found && break 3
  3351. done
  3352. done
  3353. done
  3354. IFS=$as_save_IFS
  3355. if test -z "$ac_cv_path_SED"; then
  3356. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3357. fi
  3358. else
  3359. ac_cv_path_SED=$SED
  3360. fi
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3363. $as_echo "$ac_cv_path_SED" >&6; }
  3364. SED="$ac_cv_path_SED"
  3365. rm -f conftest.sed
  3366. test -z "$SED" && SED=sed
  3367. Xsed="$SED -e 1s/^X//"
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3369. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3370. if ${ac_cv_path_GREP+:} false; then :
  3371. $as_echo_n "(cached) " >&6
  3372. else
  3373. if test -z "$GREP"; then
  3374. ac_path_GREP_found=false
  3375. # Loop through the user's path and test for each of PROGNAME-LIST
  3376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3377. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3378. do
  3379. IFS=$as_save_IFS
  3380. test -z "$as_dir" && as_dir=.
  3381. for ac_prog in grep ggrep; do
  3382. for ac_exec_ext in '' $ac_executable_extensions; do
  3383. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3384. as_fn_executable_p "$ac_path_GREP" || continue
  3385. # Check for GNU ac_path_GREP and select it if it is found.
  3386. # Check for GNU $ac_path_GREP
  3387. case `"$ac_path_GREP" --version 2>&1` in
  3388. *GNU*)
  3389. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3390. *)
  3391. ac_count=0
  3392. $as_echo_n 0123456789 >"conftest.in"
  3393. while :
  3394. do
  3395. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3396. mv "conftest.tmp" "conftest.in"
  3397. cp "conftest.in" "conftest.nl"
  3398. $as_echo 'GREP' >> "conftest.nl"
  3399. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3400. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3401. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3402. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3403. # Best one so far, save it but keep looking for a better one
  3404. ac_cv_path_GREP="$ac_path_GREP"
  3405. ac_path_GREP_max=$ac_count
  3406. fi
  3407. # 10*(2^10) chars as input seems more than enough
  3408. test $ac_count -gt 10 && break
  3409. done
  3410. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3411. esac
  3412. $ac_path_GREP_found && break 3
  3413. done
  3414. done
  3415. done
  3416. IFS=$as_save_IFS
  3417. if test -z "$ac_cv_path_GREP"; then
  3418. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3419. fi
  3420. else
  3421. ac_cv_path_GREP=$GREP
  3422. fi
  3423. fi
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3425. $as_echo "$ac_cv_path_GREP" >&6; }
  3426. GREP="$ac_cv_path_GREP"
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3428. $as_echo_n "checking for egrep... " >&6; }
  3429. if ${ac_cv_path_EGREP+:} false; then :
  3430. $as_echo_n "(cached) " >&6
  3431. else
  3432. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3433. then ac_cv_path_EGREP="$GREP -E"
  3434. else
  3435. if test -z "$EGREP"; then
  3436. ac_path_EGREP_found=false
  3437. # Loop through the user's path and test for each of PROGNAME-LIST
  3438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3439. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3440. do
  3441. IFS=$as_save_IFS
  3442. test -z "$as_dir" && as_dir=.
  3443. for ac_prog in egrep; do
  3444. for ac_exec_ext in '' $ac_executable_extensions; do
  3445. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3446. as_fn_executable_p "$ac_path_EGREP" || continue
  3447. # Check for GNU ac_path_EGREP and select it if it is found.
  3448. # Check for GNU $ac_path_EGREP
  3449. case `"$ac_path_EGREP" --version 2>&1` in
  3450. *GNU*)
  3451. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3452. *)
  3453. ac_count=0
  3454. $as_echo_n 0123456789 >"conftest.in"
  3455. while :
  3456. do
  3457. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3458. mv "conftest.tmp" "conftest.in"
  3459. cp "conftest.in" "conftest.nl"
  3460. $as_echo 'EGREP' >> "conftest.nl"
  3461. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3462. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3463. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3464. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3465. # Best one so far, save it but keep looking for a better one
  3466. ac_cv_path_EGREP="$ac_path_EGREP"
  3467. ac_path_EGREP_max=$ac_count
  3468. fi
  3469. # 10*(2^10) chars as input seems more than enough
  3470. test $ac_count -gt 10 && break
  3471. done
  3472. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3473. esac
  3474. $ac_path_EGREP_found && break 3
  3475. done
  3476. done
  3477. done
  3478. IFS=$as_save_IFS
  3479. if test -z "$ac_cv_path_EGREP"; then
  3480. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3481. fi
  3482. else
  3483. ac_cv_path_EGREP=$EGREP
  3484. fi
  3485. fi
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3488. $as_echo "$ac_cv_path_EGREP" >&6; }
  3489. EGREP="$ac_cv_path_EGREP"
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3491. $as_echo_n "checking for fgrep... " >&6; }
  3492. if ${ac_cv_path_FGREP+:} false; then :
  3493. $as_echo_n "(cached) " >&6
  3494. else
  3495. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3496. then ac_cv_path_FGREP="$GREP -F"
  3497. else
  3498. if test -z "$FGREP"; then
  3499. ac_path_FGREP_found=false
  3500. # Loop through the user's path and test for each of PROGNAME-LIST
  3501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3502. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3503. do
  3504. IFS=$as_save_IFS
  3505. test -z "$as_dir" && as_dir=.
  3506. for ac_prog in fgrep; do
  3507. for ac_exec_ext in '' $ac_executable_extensions; do
  3508. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3509. as_fn_executable_p "$ac_path_FGREP" || continue
  3510. # Check for GNU ac_path_FGREP and select it if it is found.
  3511. # Check for GNU $ac_path_FGREP
  3512. case `"$ac_path_FGREP" --version 2>&1` in
  3513. *GNU*)
  3514. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3515. *)
  3516. ac_count=0
  3517. $as_echo_n 0123456789 >"conftest.in"
  3518. while :
  3519. do
  3520. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3521. mv "conftest.tmp" "conftest.in"
  3522. cp "conftest.in" "conftest.nl"
  3523. $as_echo 'FGREP' >> "conftest.nl"
  3524. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3525. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3526. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3527. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3528. # Best one so far, save it but keep looking for a better one
  3529. ac_cv_path_FGREP="$ac_path_FGREP"
  3530. ac_path_FGREP_max=$ac_count
  3531. fi
  3532. # 10*(2^10) chars as input seems more than enough
  3533. test $ac_count -gt 10 && break
  3534. done
  3535. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3536. esac
  3537. $ac_path_FGREP_found && break 3
  3538. done
  3539. done
  3540. done
  3541. IFS=$as_save_IFS
  3542. if test -z "$ac_cv_path_FGREP"; then
  3543. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3544. fi
  3545. else
  3546. ac_cv_path_FGREP=$FGREP
  3547. fi
  3548. fi
  3549. fi
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3551. $as_echo "$ac_cv_path_FGREP" >&6; }
  3552. FGREP="$ac_cv_path_FGREP"
  3553. test -z "$GREP" && GREP=grep
  3554. # Check whether --with-gnu-ld was given.
  3555. if test "${with_gnu_ld+set}" = set; then :
  3556. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3557. else
  3558. with_gnu_ld=no
  3559. fi
  3560. ac_prog=ld
  3561. if test yes = "$GCC"; then
  3562. # Check if gcc -print-prog-name=ld gives a path.
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3564. $as_echo_n "checking for ld used by $CC... " >&6; }
  3565. case $host in
  3566. *-*-mingw*)
  3567. # gcc leaves a trailing carriage return, which upsets mingw
  3568. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3569. *)
  3570. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3571. esac
  3572. case $ac_prog in
  3573. # Accept absolute paths.
  3574. [\\/]* | ?:[\\/]*)
  3575. re_direlt='/[^/][^/]*/\.\./'
  3576. # Canonicalize the pathname of ld
  3577. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3578. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3579. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3580. done
  3581. test -z "$LD" && LD=$ac_prog
  3582. ;;
  3583. "")
  3584. # If it fails, then pretend we aren't using GCC.
  3585. ac_prog=ld
  3586. ;;
  3587. *)
  3588. # If it is relative, then search for the first ld in PATH.
  3589. with_gnu_ld=unknown
  3590. ;;
  3591. esac
  3592. elif test yes = "$with_gnu_ld"; then
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3594. $as_echo_n "checking for GNU ld... " >&6; }
  3595. else
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3597. $as_echo_n "checking for non-GNU ld... " >&6; }
  3598. fi
  3599. if ${lt_cv_path_LD+:} false; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. if test -z "$LD"; then
  3603. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3604. for ac_dir in $PATH; do
  3605. IFS=$lt_save_ifs
  3606. test -z "$ac_dir" && ac_dir=.
  3607. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3608. lt_cv_path_LD=$ac_dir/$ac_prog
  3609. # Check to see if the program is GNU ld. I'd rather use --version,
  3610. # but apparently some variants of GNU ld only accept -v.
  3611. # Break only if it was the GNU/non-GNU ld that we prefer.
  3612. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3613. *GNU* | *'with BFD'*)
  3614. test no != "$with_gnu_ld" && break
  3615. ;;
  3616. *)
  3617. test yes != "$with_gnu_ld" && break
  3618. ;;
  3619. esac
  3620. fi
  3621. done
  3622. IFS=$lt_save_ifs
  3623. else
  3624. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3625. fi
  3626. fi
  3627. LD=$lt_cv_path_LD
  3628. if test -n "$LD"; then
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3630. $as_echo "$LD" >&6; }
  3631. else
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3633. $as_echo "no" >&6; }
  3634. fi
  3635. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3637. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3638. if ${lt_cv_prog_gnu_ld+:} false; then :
  3639. $as_echo_n "(cached) " >&6
  3640. else
  3641. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3642. case `$LD -v 2>&1 </dev/null` in
  3643. *GNU* | *'with BFD'*)
  3644. lt_cv_prog_gnu_ld=yes
  3645. ;;
  3646. *)
  3647. lt_cv_prog_gnu_ld=no
  3648. ;;
  3649. esac
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3652. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3653. with_gnu_ld=$lt_cv_prog_gnu_ld
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3655. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3656. if ${lt_cv_path_NM+:} false; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. if test -n "$NM"; then
  3660. # Let the user override the test.
  3661. lt_cv_path_NM=$NM
  3662. else
  3663. lt_nm_to_check=${ac_tool_prefix}nm
  3664. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3665. lt_nm_to_check="$lt_nm_to_check nm"
  3666. fi
  3667. for lt_tmp_nm in $lt_nm_to_check; do
  3668. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3669. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3670. IFS=$lt_save_ifs
  3671. test -z "$ac_dir" && ac_dir=.
  3672. tmp_nm=$ac_dir/$lt_tmp_nm
  3673. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3674. # Check to see if the nm accepts a BSD-compat flag.
  3675. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3676. # nm: unknown option "B" ignored
  3677. # Tru64's nm complains that /dev/null is an invalid object file
  3678. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3679. case $build_os in
  3680. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3681. *) lt_bad_file=/dev/null ;;
  3682. esac
  3683. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3684. *$lt_bad_file* | *'Invalid file or object type'*)
  3685. lt_cv_path_NM="$tmp_nm -B"
  3686. break 2
  3687. ;;
  3688. *)
  3689. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3690. */dev/null*)
  3691. lt_cv_path_NM="$tmp_nm -p"
  3692. break 2
  3693. ;;
  3694. *)
  3695. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3696. continue # so that we can try to find one that supports BSD flags
  3697. ;;
  3698. esac
  3699. ;;
  3700. esac
  3701. fi
  3702. done
  3703. IFS=$lt_save_ifs
  3704. done
  3705. : ${lt_cv_path_NM=no}
  3706. fi
  3707. fi
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3709. $as_echo "$lt_cv_path_NM" >&6; }
  3710. if test no != "$lt_cv_path_NM"; then
  3711. NM=$lt_cv_path_NM
  3712. else
  3713. # Didn't find any BSD compatible name lister, look for dumpbin.
  3714. if test -n "$DUMPBIN"; then :
  3715. # Let the user override the test.
  3716. else
  3717. if test -n "$ac_tool_prefix"; then
  3718. for ac_prog in dumpbin "link -dump"
  3719. do
  3720. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3721. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3723. $as_echo_n "checking for $ac_word... " >&6; }
  3724. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3725. $as_echo_n "(cached) " >&6
  3726. else
  3727. if test -n "$DUMPBIN"; then
  3728. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3729. else
  3730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3731. for as_dir in $PATH
  3732. do
  3733. IFS=$as_save_IFS
  3734. test -z "$as_dir" && as_dir=.
  3735. for ac_exec_ext in '' $ac_executable_extensions; do
  3736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3737. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3739. break 2
  3740. fi
  3741. done
  3742. done
  3743. IFS=$as_save_IFS
  3744. fi
  3745. fi
  3746. DUMPBIN=$ac_cv_prog_DUMPBIN
  3747. if test -n "$DUMPBIN"; then
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3749. $as_echo "$DUMPBIN" >&6; }
  3750. else
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3752. $as_echo "no" >&6; }
  3753. fi
  3754. test -n "$DUMPBIN" && break
  3755. done
  3756. fi
  3757. if test -z "$DUMPBIN"; then
  3758. ac_ct_DUMPBIN=$DUMPBIN
  3759. for ac_prog in dumpbin "link -dump"
  3760. do
  3761. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3762. set dummy $ac_prog; ac_word=$2
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3764. $as_echo_n "checking for $ac_word... " >&6; }
  3765. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3766. $as_echo_n "(cached) " >&6
  3767. else
  3768. if test -n "$ac_ct_DUMPBIN"; then
  3769. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3770. else
  3771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3772. for as_dir in $PATH
  3773. do
  3774. IFS=$as_save_IFS
  3775. test -z "$as_dir" && as_dir=.
  3776. for ac_exec_ext in '' $ac_executable_extensions; do
  3777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3778. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3780. break 2
  3781. fi
  3782. done
  3783. done
  3784. IFS=$as_save_IFS
  3785. fi
  3786. fi
  3787. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3788. if test -n "$ac_ct_DUMPBIN"; then
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3790. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3791. else
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3793. $as_echo "no" >&6; }
  3794. fi
  3795. test -n "$ac_ct_DUMPBIN" && break
  3796. done
  3797. if test "x$ac_ct_DUMPBIN" = x; then
  3798. DUMPBIN=":"
  3799. else
  3800. case $cross_compiling:$ac_tool_warned in
  3801. yes:)
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3803. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3804. ac_tool_warned=yes ;;
  3805. esac
  3806. DUMPBIN=$ac_ct_DUMPBIN
  3807. fi
  3808. fi
  3809. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3810. *COFF*)
  3811. DUMPBIN="$DUMPBIN -symbols -headers"
  3812. ;;
  3813. *)
  3814. DUMPBIN=:
  3815. ;;
  3816. esac
  3817. fi
  3818. if test : != "$DUMPBIN"; then
  3819. NM=$DUMPBIN
  3820. fi
  3821. fi
  3822. test -z "$NM" && NM=nm
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3824. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3825. if ${lt_cv_nm_interface+:} false; then :
  3826. $as_echo_n "(cached) " >&6
  3827. else
  3828. lt_cv_nm_interface="BSD nm"
  3829. echo "int some_variable = 0;" > conftest.$ac_ext
  3830. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3831. (eval "$ac_compile" 2>conftest.err)
  3832. cat conftest.err >&5
  3833. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3834. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3835. cat conftest.err >&5
  3836. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3837. cat conftest.out >&5
  3838. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3839. lt_cv_nm_interface="MS dumpbin"
  3840. fi
  3841. rm -f conftest*
  3842. fi
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3844. $as_echo "$lt_cv_nm_interface" >&6; }
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3846. $as_echo_n "checking whether ln -s works... " >&6; }
  3847. LN_S=$as_ln_s
  3848. if test "$LN_S" = "ln -s"; then
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3850. $as_echo "yes" >&6; }
  3851. else
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3853. $as_echo "no, using $LN_S" >&6; }
  3854. fi
  3855. # find the maximum length of command line arguments
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3857. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3858. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3859. $as_echo_n "(cached) " >&6
  3860. else
  3861. i=0
  3862. teststring=ABCD
  3863. case $build_os in
  3864. msdosdjgpp*)
  3865. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3866. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3867. # during glob expansion). Even if it were fixed, the result of this
  3868. # check would be larger than it should be.
  3869. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3870. ;;
  3871. gnu*)
  3872. # Under GNU Hurd, this test is not required because there is
  3873. # no limit to the length of command line arguments.
  3874. # Libtool will interpret -1 as no limit whatsoever
  3875. lt_cv_sys_max_cmd_len=-1;
  3876. ;;
  3877. cygwin* | mingw* | cegcc*)
  3878. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3879. # about 5 minutes as the teststring grows exponentially.
  3880. # Worse, since 9x/ME are not pre-emptively multitasking,
  3881. # you end up with a "frozen" computer, even though with patience
  3882. # the test eventually succeeds (with a max line length of 256k).
  3883. # Instead, let's just punt: use the minimum linelength reported by
  3884. # all of the supported platforms: 8192 (on NT/2K/XP).
  3885. lt_cv_sys_max_cmd_len=8192;
  3886. ;;
  3887. mint*)
  3888. # On MiNT this can take a long time and run out of memory.
  3889. lt_cv_sys_max_cmd_len=8192;
  3890. ;;
  3891. mint*)
  3892. # On MiNT this can take a long time and run out of memory.
  3893. lt_cv_sys_max_cmd_len=8192;
  3894. ;;
  3895. amigaos*)
  3896. # On AmigaOS with pdksh, this test takes hours, literally.
  3897. # So we just punt and use a minimum line length of 8192.
  3898. lt_cv_sys_max_cmd_len=8192;
  3899. ;;
  3900. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  3901. # This has been around since 386BSD, at least. Likely further.
  3902. if test -x /sbin/sysctl; then
  3903. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3904. elif test -x /usr/sbin/sysctl; then
  3905. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3906. else
  3907. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3908. fi
  3909. # And add a safety zone
  3910. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3911. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3912. ;;
  3913. interix*)
  3914. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3915. lt_cv_sys_max_cmd_len=196608
  3916. ;;
  3917. os2*)
  3918. # The test takes a long time on OS/2.
  3919. lt_cv_sys_max_cmd_len=8192
  3920. ;;
  3921. osf*)
  3922. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3923. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3924. # nice to cause kernel panics so lets avoid the loop below.
  3925. # First set a reasonable default.
  3926. lt_cv_sys_max_cmd_len=16384
  3927. #
  3928. if test -x /sbin/sysconfig; then
  3929. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3930. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3931. esac
  3932. fi
  3933. ;;
  3934. sco3.2v5*)
  3935. lt_cv_sys_max_cmd_len=102400
  3936. ;;
  3937. sysv5* | sco5v6* | sysv4.2uw2*)
  3938. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3939. if test -n "$kargmax"; then
  3940. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3941. else
  3942. lt_cv_sys_max_cmd_len=32768
  3943. fi
  3944. ;;
  3945. *)
  3946. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3947. if test -n "$lt_cv_sys_max_cmd_len" && \
  3948. test undefined != "$lt_cv_sys_max_cmd_len"; then
  3949. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3950. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3951. else
  3952. # Make teststring a little bigger before we do anything with it.
  3953. # a 1K string should be a reasonable start.
  3954. for i in 1 2 3 4 5 6 7 8; do
  3955. teststring=$teststring$teststring
  3956. done
  3957. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3958. # If test is not a shell built-in, we'll probably end up computing a
  3959. # maximum length that is only half of the actual maximum length, but
  3960. # we can't tell.
  3961. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  3962. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3963. test 17 != "$i" # 1/2 MB should be enough
  3964. do
  3965. i=`expr $i + 1`
  3966. teststring=$teststring$teststring
  3967. done
  3968. # Only check the string length outside the loop.
  3969. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3970. teststring=
  3971. # Add a significant safety factor because C++ compilers can tack on
  3972. # massive amounts of additional arguments before passing them to the
  3973. # linker. It appears as though 1/2 is a usable value.
  3974. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3975. fi
  3976. ;;
  3977. esac
  3978. fi
  3979. if test -n "$lt_cv_sys_max_cmd_len"; then
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3981. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3982. else
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3984. $as_echo "none" >&6; }
  3985. fi
  3986. max_cmd_len=$lt_cv_sys_max_cmd_len
  3987. : ${CP="cp -f"}
  3988. : ${MV="mv -f"}
  3989. : ${RM="rm -f"}
  3990. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3991. lt_unset=unset
  3992. else
  3993. lt_unset=false
  3994. fi
  3995. # test EBCDIC or ASCII
  3996. case `echo X|tr X '\101'` in
  3997. A) # ASCII based system
  3998. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3999. lt_SP2NL='tr \040 \012'
  4000. lt_NL2SP='tr \015\012 \040\040'
  4001. ;;
  4002. *) # EBCDIC based system
  4003. lt_SP2NL='tr \100 \n'
  4004. lt_NL2SP='tr \r\n \100\100'
  4005. ;;
  4006. esac
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4008. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4009. if ${lt_cv_to_host_file_cmd+:} false; then :
  4010. $as_echo_n "(cached) " >&6
  4011. else
  4012. case $host in
  4013. *-*-mingw* )
  4014. case $build in
  4015. *-*-mingw* ) # actually msys
  4016. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4017. ;;
  4018. *-*-cygwin* )
  4019. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4020. ;;
  4021. * ) # otherwise, assume *nix
  4022. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4023. ;;
  4024. esac
  4025. ;;
  4026. *-*-cygwin* )
  4027. case $build in
  4028. *-*-mingw* ) # actually msys
  4029. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4030. ;;
  4031. *-*-cygwin* )
  4032. lt_cv_to_host_file_cmd=func_convert_file_noop
  4033. ;;
  4034. * ) # otherwise, assume *nix
  4035. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4036. ;;
  4037. esac
  4038. ;;
  4039. * ) # unhandled hosts (and "normal" native builds)
  4040. lt_cv_to_host_file_cmd=func_convert_file_noop
  4041. ;;
  4042. esac
  4043. fi
  4044. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4046. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4048. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4049. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. #assume ordinary cross tools, or native build.
  4053. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4054. case $host in
  4055. *-*-mingw* )
  4056. case $build in
  4057. *-*-mingw* ) # actually msys
  4058. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4059. ;;
  4060. esac
  4061. ;;
  4062. esac
  4063. fi
  4064. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4066. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4068. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4069. if ${lt_cv_ld_reload_flag+:} false; then :
  4070. $as_echo_n "(cached) " >&6
  4071. else
  4072. lt_cv_ld_reload_flag='-r'
  4073. fi
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4075. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4076. reload_flag=$lt_cv_ld_reload_flag
  4077. case $reload_flag in
  4078. "" | " "*) ;;
  4079. *) reload_flag=" $reload_flag" ;;
  4080. esac
  4081. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4082. case $host_os in
  4083. cygwin* | mingw* | pw32* | cegcc*)
  4084. if test yes != "$GCC"; then
  4085. reload_cmds=false
  4086. fi
  4087. ;;
  4088. darwin*)
  4089. if test yes = "$GCC"; then
  4090. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4091. else
  4092. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4093. fi
  4094. ;;
  4095. esac
  4096. if test -n "$ac_tool_prefix"; then
  4097. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4098. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4100. $as_echo_n "checking for $ac_word... " >&6; }
  4101. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4102. $as_echo_n "(cached) " >&6
  4103. else
  4104. if test -n "$OBJDUMP"; then
  4105. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4106. else
  4107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4108. for as_dir in $PATH
  4109. do
  4110. IFS=$as_save_IFS
  4111. test -z "$as_dir" && as_dir=.
  4112. for ac_exec_ext in '' $ac_executable_extensions; do
  4113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4114. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4116. break 2
  4117. fi
  4118. done
  4119. done
  4120. IFS=$as_save_IFS
  4121. fi
  4122. fi
  4123. OBJDUMP=$ac_cv_prog_OBJDUMP
  4124. if test -n "$OBJDUMP"; then
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4126. $as_echo "$OBJDUMP" >&6; }
  4127. else
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4129. $as_echo "no" >&6; }
  4130. fi
  4131. fi
  4132. if test -z "$ac_cv_prog_OBJDUMP"; then
  4133. ac_ct_OBJDUMP=$OBJDUMP
  4134. # Extract the first word of "objdump", so it can be a program name with args.
  4135. set dummy objdump; ac_word=$2
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4137. $as_echo_n "checking for $ac_word... " >&6; }
  4138. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4139. $as_echo_n "(cached) " >&6
  4140. else
  4141. if test -n "$ac_ct_OBJDUMP"; then
  4142. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4143. else
  4144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4145. for as_dir in $PATH
  4146. do
  4147. IFS=$as_save_IFS
  4148. test -z "$as_dir" && as_dir=.
  4149. for ac_exec_ext in '' $ac_executable_extensions; do
  4150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4151. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4153. break 2
  4154. fi
  4155. done
  4156. done
  4157. IFS=$as_save_IFS
  4158. fi
  4159. fi
  4160. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4161. if test -n "$ac_ct_OBJDUMP"; then
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4163. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4164. else
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4166. $as_echo "no" >&6; }
  4167. fi
  4168. if test "x$ac_ct_OBJDUMP" = x; then
  4169. OBJDUMP="false"
  4170. else
  4171. case $cross_compiling:$ac_tool_warned in
  4172. yes:)
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4174. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4175. ac_tool_warned=yes ;;
  4176. esac
  4177. OBJDUMP=$ac_ct_OBJDUMP
  4178. fi
  4179. else
  4180. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4181. fi
  4182. test -z "$OBJDUMP" && OBJDUMP=objdump
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4184. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4185. if ${lt_cv_deplibs_check_method+:} false; then :
  4186. $as_echo_n "(cached) " >&6
  4187. else
  4188. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4189. lt_cv_file_magic_test_file=
  4190. lt_cv_deplibs_check_method='unknown'
  4191. # Need to set the preceding variable on all platforms that support
  4192. # interlibrary dependencies.
  4193. # 'none' -- dependencies not supported.
  4194. # 'unknown' -- same as none, but documents that we really don't know.
  4195. # 'pass_all' -- all dependencies passed with no checks.
  4196. # 'test_compile' -- check by making test program.
  4197. # 'file_magic [[regex]]' -- check by looking for files in library path
  4198. # that responds to the $file_magic_cmd with a given extended regex.
  4199. # If you have 'file' or equivalent on your system and you're not sure
  4200. # whether 'pass_all' will *always* work, you probably want this one.
  4201. case $host_os in
  4202. aix[4-9]*)
  4203. lt_cv_deplibs_check_method=pass_all
  4204. ;;
  4205. beos*)
  4206. lt_cv_deplibs_check_method=pass_all
  4207. ;;
  4208. bsdi[45]*)
  4209. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4210. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4211. lt_cv_file_magic_test_file=/shlib/libc.so
  4212. ;;
  4213. cygwin*)
  4214. # func_win32_libid is a shell function defined in ltmain.sh
  4215. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4216. lt_cv_file_magic_cmd='func_win32_libid'
  4217. ;;
  4218. mingw* | pw32*)
  4219. # Base MSYS/MinGW do not provide the 'file' command needed by
  4220. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4221. # unless we find 'file', for example because we are cross-compiling.
  4222. if ( file / ) >/dev/null 2>&1; then
  4223. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4224. lt_cv_file_magic_cmd='func_win32_libid'
  4225. else
  4226. # Keep this pattern in sync with the one in func_win32_libid.
  4227. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4228. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4229. fi
  4230. ;;
  4231. cegcc*)
  4232. # use the weaker test based on 'objdump'. See mingw*.
  4233. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4234. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4235. ;;
  4236. darwin* | rhapsody*)
  4237. lt_cv_deplibs_check_method=pass_all
  4238. ;;
  4239. freebsd* | dragonfly*)
  4240. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4241. case $host_cpu in
  4242. i*86 )
  4243. # Not sure whether the presence of OpenBSD here was a mistake.
  4244. # Let's accept both of them until this is cleared up.
  4245. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4246. lt_cv_file_magic_cmd=/usr/bin/file
  4247. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4248. ;;
  4249. esac
  4250. else
  4251. lt_cv_deplibs_check_method=pass_all
  4252. fi
  4253. ;;
  4254. haiku*)
  4255. lt_cv_deplibs_check_method=pass_all
  4256. ;;
  4257. hpux10.20* | hpux11*)
  4258. lt_cv_file_magic_cmd=/usr/bin/file
  4259. case $host_cpu in
  4260. ia64*)
  4261. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4262. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4263. ;;
  4264. hppa*64*)
  4265. 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]'
  4266. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4267. ;;
  4268. *)
  4269. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4270. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4271. ;;
  4272. esac
  4273. ;;
  4274. interix[3-9]*)
  4275. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4276. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4277. ;;
  4278. irix5* | irix6* | nonstopux*)
  4279. case $LD in
  4280. *-32|*"-32 ") libmagic=32-bit;;
  4281. *-n32|*"-n32 ") libmagic=N32;;
  4282. *-64|*"-64 ") libmagic=64-bit;;
  4283. *) libmagic=never-match;;
  4284. esac
  4285. lt_cv_deplibs_check_method=pass_all
  4286. ;;
  4287. # This must be glibc/ELF.
  4288. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4289. lt_cv_deplibs_check_method=pass_all
  4290. ;;
  4291. netbsd*)
  4292. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4293. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4294. else
  4295. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4296. fi
  4297. ;;
  4298. newos6*)
  4299. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4300. lt_cv_file_magic_cmd=/usr/bin/file
  4301. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4302. ;;
  4303. *nto* | *qnx*)
  4304. lt_cv_deplibs_check_method=pass_all
  4305. ;;
  4306. openbsd* | bitrig*)
  4307. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4308. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4309. else
  4310. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4311. fi
  4312. ;;
  4313. osf3* | osf4* | osf5*)
  4314. lt_cv_deplibs_check_method=pass_all
  4315. ;;
  4316. rdos*)
  4317. lt_cv_deplibs_check_method=pass_all
  4318. ;;
  4319. solaris*)
  4320. lt_cv_deplibs_check_method=pass_all
  4321. ;;
  4322. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4323. lt_cv_deplibs_check_method=pass_all
  4324. ;;
  4325. sysv4 | sysv4.3*)
  4326. case $host_vendor in
  4327. motorola)
  4328. 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]'
  4329. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4330. ;;
  4331. ncr)
  4332. lt_cv_deplibs_check_method=pass_all
  4333. ;;
  4334. sequent)
  4335. lt_cv_file_magic_cmd='/bin/file'
  4336. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4337. ;;
  4338. sni)
  4339. lt_cv_file_magic_cmd='/bin/file'
  4340. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4341. lt_cv_file_magic_test_file=/lib/libc.so
  4342. ;;
  4343. siemens)
  4344. lt_cv_deplibs_check_method=pass_all
  4345. ;;
  4346. pc)
  4347. lt_cv_deplibs_check_method=pass_all
  4348. ;;
  4349. esac
  4350. ;;
  4351. tpf*)
  4352. lt_cv_deplibs_check_method=pass_all
  4353. ;;
  4354. os2*)
  4355. lt_cv_deplibs_check_method=pass_all
  4356. ;;
  4357. esac
  4358. fi
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4360. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4361. file_magic_glob=
  4362. want_nocaseglob=no
  4363. if test "$build" = "$host"; then
  4364. case $host_os in
  4365. mingw* | pw32*)
  4366. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4367. want_nocaseglob=yes
  4368. else
  4369. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4370. fi
  4371. ;;
  4372. esac
  4373. fi
  4374. file_magic_cmd=$lt_cv_file_magic_cmd
  4375. deplibs_check_method=$lt_cv_deplibs_check_method
  4376. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4377. if test -n "$ac_tool_prefix"; then
  4378. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4379. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4381. $as_echo_n "checking for $ac_word... " >&6; }
  4382. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. if test -n "$DLLTOOL"; then
  4386. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4387. else
  4388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4389. for as_dir in $PATH
  4390. do
  4391. IFS=$as_save_IFS
  4392. test -z "$as_dir" && as_dir=.
  4393. for ac_exec_ext in '' $ac_executable_extensions; do
  4394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4395. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4397. break 2
  4398. fi
  4399. done
  4400. done
  4401. IFS=$as_save_IFS
  4402. fi
  4403. fi
  4404. DLLTOOL=$ac_cv_prog_DLLTOOL
  4405. if test -n "$DLLTOOL"; then
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4407. $as_echo "$DLLTOOL" >&6; }
  4408. else
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4410. $as_echo "no" >&6; }
  4411. fi
  4412. fi
  4413. if test -z "$ac_cv_prog_DLLTOOL"; then
  4414. ac_ct_DLLTOOL=$DLLTOOL
  4415. # Extract the first word of "dlltool", so it can be a program name with args.
  4416. set dummy dlltool; ac_word=$2
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4418. $as_echo_n "checking for $ac_word... " >&6; }
  4419. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4420. $as_echo_n "(cached) " >&6
  4421. else
  4422. if test -n "$ac_ct_DLLTOOL"; then
  4423. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4424. else
  4425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4426. for as_dir in $PATH
  4427. do
  4428. IFS=$as_save_IFS
  4429. test -z "$as_dir" && as_dir=.
  4430. for ac_exec_ext in '' $ac_executable_extensions; do
  4431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4432. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4434. break 2
  4435. fi
  4436. done
  4437. done
  4438. IFS=$as_save_IFS
  4439. fi
  4440. fi
  4441. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4442. if test -n "$ac_ct_DLLTOOL"; then
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4444. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4445. else
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4447. $as_echo "no" >&6; }
  4448. fi
  4449. if test "x$ac_ct_DLLTOOL" = x; then
  4450. DLLTOOL="false"
  4451. else
  4452. case $cross_compiling:$ac_tool_warned in
  4453. yes:)
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4456. ac_tool_warned=yes ;;
  4457. esac
  4458. DLLTOOL=$ac_ct_DLLTOOL
  4459. fi
  4460. else
  4461. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4462. fi
  4463. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4465. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4466. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4467. $as_echo_n "(cached) " >&6
  4468. else
  4469. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4470. case $host_os in
  4471. cygwin* | mingw* | pw32* | cegcc*)
  4472. # two different shell functions defined in ltmain.sh;
  4473. # decide which one to use based on capabilities of $DLLTOOL
  4474. case `$DLLTOOL --help 2>&1` in
  4475. *--identify-strict*)
  4476. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4477. ;;
  4478. *)
  4479. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4480. ;;
  4481. esac
  4482. ;;
  4483. *)
  4484. # fallback: assume linklib IS sharedlib
  4485. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4486. ;;
  4487. esac
  4488. fi
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4490. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4491. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4492. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4493. if test -n "$ac_tool_prefix"; then
  4494. for ac_prog in ar
  4495. do
  4496. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4497. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4499. $as_echo_n "checking for $ac_word... " >&6; }
  4500. if ${ac_cv_prog_AR+:} false; then :
  4501. $as_echo_n "(cached) " >&6
  4502. else
  4503. if test -n "$AR"; then
  4504. ac_cv_prog_AR="$AR" # Let the user override the test.
  4505. else
  4506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4507. for as_dir in $PATH
  4508. do
  4509. IFS=$as_save_IFS
  4510. test -z "$as_dir" && as_dir=.
  4511. for ac_exec_ext in '' $ac_executable_extensions; do
  4512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4513. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4515. break 2
  4516. fi
  4517. done
  4518. done
  4519. IFS=$as_save_IFS
  4520. fi
  4521. fi
  4522. AR=$ac_cv_prog_AR
  4523. if test -n "$AR"; then
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4525. $as_echo "$AR" >&6; }
  4526. else
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4528. $as_echo "no" >&6; }
  4529. fi
  4530. test -n "$AR" && break
  4531. done
  4532. fi
  4533. if test -z "$AR"; then
  4534. ac_ct_AR=$AR
  4535. for ac_prog in ar
  4536. do
  4537. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4538. set dummy $ac_prog; ac_word=$2
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4540. $as_echo_n "checking for $ac_word... " >&6; }
  4541. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. if test -n "$ac_ct_AR"; then
  4545. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4546. else
  4547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4548. for as_dir in $PATH
  4549. do
  4550. IFS=$as_save_IFS
  4551. test -z "$as_dir" && as_dir=.
  4552. for ac_exec_ext in '' $ac_executable_extensions; do
  4553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4554. ac_cv_prog_ac_ct_AR="$ac_prog"
  4555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4556. break 2
  4557. fi
  4558. done
  4559. done
  4560. IFS=$as_save_IFS
  4561. fi
  4562. fi
  4563. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4564. if test -n "$ac_ct_AR"; then
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4566. $as_echo "$ac_ct_AR" >&6; }
  4567. else
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4569. $as_echo "no" >&6; }
  4570. fi
  4571. test -n "$ac_ct_AR" && break
  4572. done
  4573. if test "x$ac_ct_AR" = x; then
  4574. AR="false"
  4575. else
  4576. case $cross_compiling:$ac_tool_warned in
  4577. yes:)
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4579. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4580. ac_tool_warned=yes ;;
  4581. esac
  4582. AR=$ac_ct_AR
  4583. fi
  4584. fi
  4585. : ${AR=ar}
  4586. : ${AR_FLAGS=cru}
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4588. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4589. if ${lt_cv_ar_at_file+:} false; then :
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. lt_cv_ar_at_file=no
  4593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4594. /* end confdefs.h. */
  4595. int
  4596. main ()
  4597. {
  4598. ;
  4599. return 0;
  4600. }
  4601. _ACEOF
  4602. if ac_fn_c_try_compile "$LINENO"; then :
  4603. echo conftest.$ac_objext > conftest.lst
  4604. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4605. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4606. (eval $lt_ar_try) 2>&5
  4607. ac_status=$?
  4608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4609. test $ac_status = 0; }
  4610. if test 0 -eq "$ac_status"; then
  4611. # Ensure the archiver fails upon bogus file names.
  4612. rm -f conftest.$ac_objext libconftest.a
  4613. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4614. (eval $lt_ar_try) 2>&5
  4615. ac_status=$?
  4616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4617. test $ac_status = 0; }
  4618. if test 0 -ne "$ac_status"; then
  4619. lt_cv_ar_at_file=@
  4620. fi
  4621. fi
  4622. rm -f conftest.* libconftest.a
  4623. fi
  4624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4625. fi
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4627. $as_echo "$lt_cv_ar_at_file" >&6; }
  4628. if test no = "$lt_cv_ar_at_file"; then
  4629. archiver_list_spec=
  4630. else
  4631. archiver_list_spec=$lt_cv_ar_at_file
  4632. fi
  4633. if test -n "$ac_tool_prefix"; then
  4634. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4635. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4637. $as_echo_n "checking for $ac_word... " >&6; }
  4638. if ${ac_cv_prog_STRIP+:} false; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. if test -n "$STRIP"; then
  4642. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4643. else
  4644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4645. for as_dir in $PATH
  4646. do
  4647. IFS=$as_save_IFS
  4648. test -z "$as_dir" && as_dir=.
  4649. for ac_exec_ext in '' $ac_executable_extensions; do
  4650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4651. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4653. break 2
  4654. fi
  4655. done
  4656. done
  4657. IFS=$as_save_IFS
  4658. fi
  4659. fi
  4660. STRIP=$ac_cv_prog_STRIP
  4661. if test -n "$STRIP"; then
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4663. $as_echo "$STRIP" >&6; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4666. $as_echo "no" >&6; }
  4667. fi
  4668. fi
  4669. if test -z "$ac_cv_prog_STRIP"; then
  4670. ac_ct_STRIP=$STRIP
  4671. # Extract the first word of "strip", so it can be a program name with args.
  4672. set dummy strip; ac_word=$2
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4674. $as_echo_n "checking for $ac_word... " >&6; }
  4675. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. if test -n "$ac_ct_STRIP"; then
  4679. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4680. else
  4681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4682. for as_dir in $PATH
  4683. do
  4684. IFS=$as_save_IFS
  4685. test -z "$as_dir" && as_dir=.
  4686. for ac_exec_ext in '' $ac_executable_extensions; do
  4687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4688. ac_cv_prog_ac_ct_STRIP="strip"
  4689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4690. break 2
  4691. fi
  4692. done
  4693. done
  4694. IFS=$as_save_IFS
  4695. fi
  4696. fi
  4697. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4698. if test -n "$ac_ct_STRIP"; then
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4700. $as_echo "$ac_ct_STRIP" >&6; }
  4701. else
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4703. $as_echo "no" >&6; }
  4704. fi
  4705. if test "x$ac_ct_STRIP" = x; then
  4706. STRIP=":"
  4707. else
  4708. case $cross_compiling:$ac_tool_warned in
  4709. yes:)
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4711. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4712. ac_tool_warned=yes ;;
  4713. esac
  4714. STRIP=$ac_ct_STRIP
  4715. fi
  4716. else
  4717. STRIP="$ac_cv_prog_STRIP"
  4718. fi
  4719. test -z "$STRIP" && STRIP=:
  4720. if test -n "$ac_tool_prefix"; then
  4721. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4722. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4724. $as_echo_n "checking for $ac_word... " >&6; }
  4725. if ${ac_cv_prog_RANLIB+:} false; then :
  4726. $as_echo_n "(cached) " >&6
  4727. else
  4728. if test -n "$RANLIB"; then
  4729. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4730. else
  4731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4732. for as_dir in $PATH
  4733. do
  4734. IFS=$as_save_IFS
  4735. test -z "$as_dir" && as_dir=.
  4736. for ac_exec_ext in '' $ac_executable_extensions; do
  4737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4738. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4740. break 2
  4741. fi
  4742. done
  4743. done
  4744. IFS=$as_save_IFS
  4745. fi
  4746. fi
  4747. RANLIB=$ac_cv_prog_RANLIB
  4748. if test -n "$RANLIB"; then
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4750. $as_echo "$RANLIB" >&6; }
  4751. else
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4753. $as_echo "no" >&6; }
  4754. fi
  4755. fi
  4756. if test -z "$ac_cv_prog_RANLIB"; then
  4757. ac_ct_RANLIB=$RANLIB
  4758. # Extract the first word of "ranlib", so it can be a program name with args.
  4759. set dummy ranlib; ac_word=$2
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4761. $as_echo_n "checking for $ac_word... " >&6; }
  4762. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. if test -n "$ac_ct_RANLIB"; then
  4766. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4767. else
  4768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4769. for as_dir in $PATH
  4770. do
  4771. IFS=$as_save_IFS
  4772. test -z "$as_dir" && as_dir=.
  4773. for ac_exec_ext in '' $ac_executable_extensions; do
  4774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4775. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4777. break 2
  4778. fi
  4779. done
  4780. done
  4781. IFS=$as_save_IFS
  4782. fi
  4783. fi
  4784. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4785. if test -n "$ac_ct_RANLIB"; then
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4787. $as_echo "$ac_ct_RANLIB" >&6; }
  4788. else
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4790. $as_echo "no" >&6; }
  4791. fi
  4792. if test "x$ac_ct_RANLIB" = x; then
  4793. RANLIB=":"
  4794. else
  4795. case $cross_compiling:$ac_tool_warned in
  4796. yes:)
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4799. ac_tool_warned=yes ;;
  4800. esac
  4801. RANLIB=$ac_ct_RANLIB
  4802. fi
  4803. else
  4804. RANLIB="$ac_cv_prog_RANLIB"
  4805. fi
  4806. test -z "$RANLIB" && RANLIB=:
  4807. # Determine commands to create old-style static archives.
  4808. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4809. old_postinstall_cmds='chmod 644 $oldlib'
  4810. old_postuninstall_cmds=
  4811. if test -n "$RANLIB"; then
  4812. case $host_os in
  4813. bitrig* | openbsd*)
  4814. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4815. ;;
  4816. *)
  4817. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4818. ;;
  4819. esac
  4820. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4821. fi
  4822. case $host_os in
  4823. darwin*)
  4824. lock_old_archive_extraction=yes ;;
  4825. *)
  4826. lock_old_archive_extraction=no ;;
  4827. esac
  4828. for ac_prog in gawk mawk nawk awk
  4829. do
  4830. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4831. set dummy $ac_prog; ac_word=$2
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4833. $as_echo_n "checking for $ac_word... " >&6; }
  4834. if ${ac_cv_prog_AWK+:} false; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. if test -n "$AWK"; then
  4838. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4839. else
  4840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4841. for as_dir in $PATH
  4842. do
  4843. IFS=$as_save_IFS
  4844. test -z "$as_dir" && as_dir=.
  4845. for ac_exec_ext in '' $ac_executable_extensions; do
  4846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4847. ac_cv_prog_AWK="$ac_prog"
  4848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4849. break 2
  4850. fi
  4851. done
  4852. done
  4853. IFS=$as_save_IFS
  4854. fi
  4855. fi
  4856. AWK=$ac_cv_prog_AWK
  4857. if test -n "$AWK"; then
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4859. $as_echo "$AWK" >&6; }
  4860. else
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4862. $as_echo "no" >&6; }
  4863. fi
  4864. test -n "$AWK" && break
  4865. done
  4866. # If no C compiler was specified, use CC.
  4867. LTCC=${LTCC-"$CC"}
  4868. # If no C compiler flags were specified, use CFLAGS.
  4869. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4870. # Allow CC to be a program name with arguments.
  4871. compiler=$CC
  4872. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4874. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4875. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4876. $as_echo_n "(cached) " >&6
  4877. else
  4878. # These are sane defaults that work on at least a few old systems.
  4879. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4880. # Character class describing NM global symbol codes.
  4881. symcode='[BCDEGRST]'
  4882. # Regexp to match symbols that can be accessed directly from C.
  4883. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4884. # Define system-specific variables.
  4885. case $host_os in
  4886. aix*)
  4887. symcode='[BCDT]'
  4888. ;;
  4889. cygwin* | mingw* | pw32* | cegcc*)
  4890. symcode='[ABCDGISTW]'
  4891. ;;
  4892. hpux*)
  4893. if test ia64 = "$host_cpu"; then
  4894. symcode='[ABCDEGRST]'
  4895. fi
  4896. ;;
  4897. irix* | nonstopux*)
  4898. symcode='[BCDEGRST]'
  4899. ;;
  4900. osf*)
  4901. symcode='[BCDEGQRST]'
  4902. ;;
  4903. solaris*)
  4904. symcode='[BDRT]'
  4905. ;;
  4906. sco3.2v5*)
  4907. symcode='[DT]'
  4908. ;;
  4909. sysv4.2uw2*)
  4910. symcode='[DT]'
  4911. ;;
  4912. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4913. symcode='[ABDT]'
  4914. ;;
  4915. sysv4)
  4916. symcode='[DFNSTU]'
  4917. ;;
  4918. esac
  4919. # If we're using GNU nm, then use its standard symbol codes.
  4920. case `$NM -V 2>&1` in
  4921. *GNU* | *'with BFD'*)
  4922. symcode='[ABCDGIRSTW]' ;;
  4923. esac
  4924. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4925. # Gets list of data symbols to import.
  4926. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  4927. # Adjust the below global symbol transforms to fixup imported variables.
  4928. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  4929. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  4930. lt_c_name_lib_hook="\
  4931. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  4932. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  4933. else
  4934. # Disable hooks by default.
  4935. lt_cv_sys_global_symbol_to_import=
  4936. lt_cdecl_hook=
  4937. lt_c_name_hook=
  4938. lt_c_name_lib_hook=
  4939. fi
  4940. # Transform an extracted symbol line into a proper C declaration.
  4941. # Some systems (esp. on ia64) link data and code symbols differently,
  4942. # so use this general approach.
  4943. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  4944. $lt_cdecl_hook\
  4945. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  4946. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  4947. # Transform an extracted symbol line into symbol name and symbol address
  4948. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  4949. $lt_c_name_hook\
  4950. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4951. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  4952. # Transform an extracted symbol line into symbol name with lib prefix and
  4953. # symbol address.
  4954. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  4955. $lt_c_name_lib_hook\
  4956. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4957. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  4958. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  4959. # Handle CRLF in mingw tool chain
  4960. opt_cr=
  4961. case $build_os in
  4962. mingw*)
  4963. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4964. ;;
  4965. esac
  4966. # Try without a prefix underscore, then with it.
  4967. for ac_symprfx in "" "_"; do
  4968. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4969. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4970. # Write the raw and C identifiers.
  4971. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4972. # Fake it for dumpbin and say T for any non-static function,
  4973. # D for any global variable and I for any imported variable.
  4974. # Also find C++ and __fastcall symbols from MSVC++,
  4975. # which start with @ or ?.
  4976. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4977. " {last_section=section; section=\$ 3};"\
  4978. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4979. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4980. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  4981. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  4982. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  4983. " \$ 0!~/External *\|/{next};"\
  4984. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4985. " {if(hide[section]) next};"\
  4986. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  4987. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  4988. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  4989. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  4990. " ' prfx=^$ac_symprfx"
  4991. else
  4992. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4993. fi
  4994. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4995. # Check to see that the pipe works correctly.
  4996. pipe_works=no
  4997. rm -f conftest*
  4998. cat > conftest.$ac_ext <<_LT_EOF
  4999. #ifdef __cplusplus
  5000. extern "C" {
  5001. #endif
  5002. char nm_test_var;
  5003. void nm_test_func(void);
  5004. void nm_test_func(void){}
  5005. #ifdef __cplusplus
  5006. }
  5007. #endif
  5008. int main(){nm_test_var='a';nm_test_func();return(0);}
  5009. _LT_EOF
  5010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5011. (eval $ac_compile) 2>&5
  5012. ac_status=$?
  5013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5014. test $ac_status = 0; }; then
  5015. # Now try to grab the symbols.
  5016. nlist=conftest.nm
  5017. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5018. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5019. ac_status=$?
  5020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5021. test $ac_status = 0; } && test -s "$nlist"; then
  5022. # Try sorting and uniquifying the output.
  5023. if sort "$nlist" | uniq > "$nlist"T; then
  5024. mv -f "$nlist"T "$nlist"
  5025. else
  5026. rm -f "$nlist"T
  5027. fi
  5028. # Make sure that we snagged all the symbols we need.
  5029. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5030. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5031. cat <<_LT_EOF > conftest.$ac_ext
  5032. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5033. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5034. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5035. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5036. # define LT_DLSYM_CONST
  5037. #elif defined __osf__
  5038. /* This system does not cope well with relocations in const data. */
  5039. # define LT_DLSYM_CONST
  5040. #else
  5041. # define LT_DLSYM_CONST const
  5042. #endif
  5043. #ifdef __cplusplus
  5044. extern "C" {
  5045. #endif
  5046. _LT_EOF
  5047. # Now generate the symbol file.
  5048. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5049. cat <<_LT_EOF >> conftest.$ac_ext
  5050. /* The mapping between symbol names and symbols. */
  5051. LT_DLSYM_CONST struct {
  5052. const char *name;
  5053. void *address;
  5054. }
  5055. lt__PROGRAM__LTX_preloaded_symbols[] =
  5056. {
  5057. { "@PROGRAM@", (void *) 0 },
  5058. _LT_EOF
  5059. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5060. cat <<\_LT_EOF >> conftest.$ac_ext
  5061. {0, (void *) 0}
  5062. };
  5063. /* This works around a problem in FreeBSD linker */
  5064. #ifdef FREEBSD_WORKAROUND
  5065. static const void *lt_preloaded_setup() {
  5066. return lt__PROGRAM__LTX_preloaded_symbols;
  5067. }
  5068. #endif
  5069. #ifdef __cplusplus
  5070. }
  5071. #endif
  5072. _LT_EOF
  5073. # Now try linking the two files.
  5074. mv conftest.$ac_objext conftstm.$ac_objext
  5075. lt_globsym_save_LIBS=$LIBS
  5076. lt_globsym_save_CFLAGS=$CFLAGS
  5077. LIBS=conftstm.$ac_objext
  5078. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5079. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5080. (eval $ac_link) 2>&5
  5081. ac_status=$?
  5082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5083. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5084. pipe_works=yes
  5085. fi
  5086. LIBS=$lt_globsym_save_LIBS
  5087. CFLAGS=$lt_globsym_save_CFLAGS
  5088. else
  5089. echo "cannot find nm_test_func in $nlist" >&5
  5090. fi
  5091. else
  5092. echo "cannot find nm_test_var in $nlist" >&5
  5093. fi
  5094. else
  5095. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5096. fi
  5097. else
  5098. echo "$progname: failed program was:" >&5
  5099. cat conftest.$ac_ext >&5
  5100. fi
  5101. rm -rf conftest* conftst*
  5102. # Do not use the global_symbol_pipe unless it works.
  5103. if test yes = "$pipe_works"; then
  5104. break
  5105. else
  5106. lt_cv_sys_global_symbol_pipe=
  5107. fi
  5108. done
  5109. fi
  5110. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5111. lt_cv_sys_global_symbol_to_cdecl=
  5112. fi
  5113. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5115. $as_echo "failed" >&6; }
  5116. else
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5118. $as_echo "ok" >&6; }
  5119. fi
  5120. # Response file support.
  5121. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5122. nm_file_list_spec='@'
  5123. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5124. nm_file_list_spec='@'
  5125. fi
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5127. $as_echo_n "checking for sysroot... " >&6; }
  5128. # Check whether --with-sysroot was given.
  5129. if test "${with_sysroot+set}" = set; then :
  5130. withval=$with_sysroot;
  5131. else
  5132. with_sysroot=no
  5133. fi
  5134. lt_sysroot=
  5135. case $with_sysroot in #(
  5136. yes)
  5137. if test yes = "$GCC"; then
  5138. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5139. fi
  5140. ;; #(
  5141. /*)
  5142. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5143. ;; #(
  5144. no|'')
  5145. ;; #(
  5146. *)
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5148. $as_echo "$with_sysroot" >&6; }
  5149. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5150. ;;
  5151. esac
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5153. $as_echo "${lt_sysroot:-no}" >&6; }
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5155. $as_echo_n "checking for a working dd... " >&6; }
  5156. if ${ac_cv_path_lt_DD+:} false; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. printf 0123456789abcdef0123456789abcdef >conftest.i
  5160. cat conftest.i conftest.i >conftest2.i
  5161. : ${lt_DD:=$DD}
  5162. if test -z "$lt_DD"; then
  5163. ac_path_lt_DD_found=false
  5164. # Loop through the user's path and test for each of PROGNAME-LIST
  5165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5166. for as_dir in $PATH
  5167. do
  5168. IFS=$as_save_IFS
  5169. test -z "$as_dir" && as_dir=.
  5170. for ac_prog in dd; do
  5171. for ac_exec_ext in '' $ac_executable_extensions; do
  5172. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5173. as_fn_executable_p "$ac_path_lt_DD" || continue
  5174. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5175. cmp -s conftest.i conftest.out \
  5176. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5177. fi
  5178. $ac_path_lt_DD_found && break 3
  5179. done
  5180. done
  5181. done
  5182. IFS=$as_save_IFS
  5183. if test -z "$ac_cv_path_lt_DD"; then
  5184. :
  5185. fi
  5186. else
  5187. ac_cv_path_lt_DD=$lt_DD
  5188. fi
  5189. rm -f conftest.i conftest2.i conftest.out
  5190. fi
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5192. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5194. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5195. if ${lt_cv_truncate_bin+:} false; then :
  5196. $as_echo_n "(cached) " >&6
  5197. else
  5198. printf 0123456789abcdef0123456789abcdef >conftest.i
  5199. cat conftest.i conftest.i >conftest2.i
  5200. lt_cv_truncate_bin=
  5201. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5202. cmp -s conftest.i conftest.out \
  5203. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5204. fi
  5205. rm -f conftest.i conftest2.i conftest.out
  5206. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5207. fi
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5209. $as_echo "$lt_cv_truncate_bin" >&6; }
  5210. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5211. func_cc_basename ()
  5212. {
  5213. for cc_temp in $*""; do
  5214. case $cc_temp in
  5215. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5216. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5217. \-*) ;;
  5218. *) break;;
  5219. esac
  5220. done
  5221. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5222. }
  5223. # Check whether --enable-libtool-lock was given.
  5224. if test "${enable_libtool_lock+set}" = set; then :
  5225. enableval=$enable_libtool_lock;
  5226. fi
  5227. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5228. # Some flags need to be propagated to the compiler or linker for good
  5229. # libtool support.
  5230. case $host in
  5231. ia64-*-hpux*)
  5232. # Find out what ABI is being produced by ac_compile, and set mode
  5233. # options accordingly.
  5234. echo 'int i;' > conftest.$ac_ext
  5235. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5236. (eval $ac_compile) 2>&5
  5237. ac_status=$?
  5238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5239. test $ac_status = 0; }; then
  5240. case `/usr/bin/file conftest.$ac_objext` in
  5241. *ELF-32*)
  5242. HPUX_IA64_MODE=32
  5243. ;;
  5244. *ELF-64*)
  5245. HPUX_IA64_MODE=64
  5246. ;;
  5247. esac
  5248. fi
  5249. rm -rf conftest*
  5250. ;;
  5251. *-*-irix6*)
  5252. # Find out what ABI is being produced by ac_compile, and set linker
  5253. # options accordingly.
  5254. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5256. (eval $ac_compile) 2>&5
  5257. ac_status=$?
  5258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5259. test $ac_status = 0; }; then
  5260. if test yes = "$lt_cv_prog_gnu_ld"; then
  5261. case `/usr/bin/file conftest.$ac_objext` in
  5262. *32-bit*)
  5263. LD="${LD-ld} -melf32bsmip"
  5264. ;;
  5265. *N32*)
  5266. LD="${LD-ld} -melf32bmipn32"
  5267. ;;
  5268. *64-bit*)
  5269. LD="${LD-ld} -melf64bmip"
  5270. ;;
  5271. esac
  5272. else
  5273. case `/usr/bin/file conftest.$ac_objext` in
  5274. *32-bit*)
  5275. LD="${LD-ld} -32"
  5276. ;;
  5277. *N32*)
  5278. LD="${LD-ld} -n32"
  5279. ;;
  5280. *64-bit*)
  5281. LD="${LD-ld} -64"
  5282. ;;
  5283. esac
  5284. fi
  5285. fi
  5286. rm -rf conftest*
  5287. ;;
  5288. mips64*-*linux*)
  5289. # Find out what ABI is being produced by ac_compile, and set linker
  5290. # options accordingly.
  5291. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5292. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5293. (eval $ac_compile) 2>&5
  5294. ac_status=$?
  5295. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5296. test $ac_status = 0; }; then
  5297. emul=elf
  5298. case `/usr/bin/file conftest.$ac_objext` in
  5299. *32-bit*)
  5300. emul="${emul}32"
  5301. ;;
  5302. *64-bit*)
  5303. emul="${emul}64"
  5304. ;;
  5305. esac
  5306. case `/usr/bin/file conftest.$ac_objext` in
  5307. *MSB*)
  5308. emul="${emul}btsmip"
  5309. ;;
  5310. *LSB*)
  5311. emul="${emul}ltsmip"
  5312. ;;
  5313. esac
  5314. case `/usr/bin/file conftest.$ac_objext` in
  5315. *N32*)
  5316. emul="${emul}n32"
  5317. ;;
  5318. esac
  5319. LD="${LD-ld} -m $emul"
  5320. fi
  5321. rm -rf conftest*
  5322. ;;
  5323. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5324. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5325. # Find out what ABI is being produced by ac_compile, and set linker
  5326. # options accordingly. Note that the listed cases only cover the
  5327. # situations where additional linker options are needed (such as when
  5328. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5329. # vice versa); the common cases where no linker options are needed do
  5330. # not appear in the list.
  5331. echo 'int i;' > conftest.$ac_ext
  5332. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5333. (eval $ac_compile) 2>&5
  5334. ac_status=$?
  5335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5336. test $ac_status = 0; }; then
  5337. case `/usr/bin/file conftest.o` in
  5338. *32-bit*)
  5339. case $host in
  5340. x86_64-*kfreebsd*-gnu)
  5341. LD="${LD-ld} -m elf_i386_fbsd"
  5342. ;;
  5343. x86_64-*linux*)
  5344. case `/usr/bin/file conftest.o` in
  5345. *x86-64*)
  5346. LD="${LD-ld} -m elf32_x86_64"
  5347. ;;
  5348. *)
  5349. LD="${LD-ld} -m elf_i386"
  5350. ;;
  5351. esac
  5352. ;;
  5353. powerpc64le-*linux*)
  5354. LD="${LD-ld} -m elf32lppclinux"
  5355. ;;
  5356. powerpc64-*linux*)
  5357. LD="${LD-ld} -m elf32ppclinux"
  5358. ;;
  5359. s390x-*linux*)
  5360. LD="${LD-ld} -m elf_s390"
  5361. ;;
  5362. sparc64-*linux*)
  5363. LD="${LD-ld} -m elf32_sparc"
  5364. ;;
  5365. esac
  5366. ;;
  5367. *64-bit*)
  5368. case $host in
  5369. x86_64-*kfreebsd*-gnu)
  5370. LD="${LD-ld} -m elf_x86_64_fbsd"
  5371. ;;
  5372. x86_64-*linux*)
  5373. LD="${LD-ld} -m elf_x86_64"
  5374. ;;
  5375. powerpcle-*linux*|powerpc64le-*linux*)
  5376. LD="${LD-ld} -m elf64lppc"
  5377. ;;
  5378. powerpc-*linux*|powerpc64-*linux*)
  5379. LD="${LD-ld} -m elf64ppc"
  5380. ;;
  5381. s390*-*linux*|s390*-*tpf*)
  5382. LD="${LD-ld} -m elf64_s390"
  5383. ;;
  5384. sparc*-*linux*)
  5385. LD="${LD-ld} -m elf64_sparc"
  5386. ;;
  5387. esac
  5388. ;;
  5389. esac
  5390. fi
  5391. rm -rf conftest*
  5392. ;;
  5393. *-*-sco3.2v5*)
  5394. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5395. SAVE_CFLAGS=$CFLAGS
  5396. CFLAGS="$CFLAGS -belf"
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5398. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5399. if ${lt_cv_cc_needs_belf+:} false; then :
  5400. $as_echo_n "(cached) " >&6
  5401. else
  5402. ac_ext=c
  5403. ac_cpp='$CPP $CPPFLAGS'
  5404. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5405. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5406. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5408. /* end confdefs.h. */
  5409. int
  5410. main ()
  5411. {
  5412. ;
  5413. return 0;
  5414. }
  5415. _ACEOF
  5416. if ac_fn_c_try_link "$LINENO"; then :
  5417. lt_cv_cc_needs_belf=yes
  5418. else
  5419. lt_cv_cc_needs_belf=no
  5420. fi
  5421. rm -f core conftest.err conftest.$ac_objext \
  5422. conftest$ac_exeext conftest.$ac_ext
  5423. ac_ext=c
  5424. ac_cpp='$CPP $CPPFLAGS'
  5425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5428. fi
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5430. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5431. if test yes != "$lt_cv_cc_needs_belf"; then
  5432. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5433. CFLAGS=$SAVE_CFLAGS
  5434. fi
  5435. ;;
  5436. *-*solaris*)
  5437. # Find out what ABI is being produced by ac_compile, and set linker
  5438. # options accordingly.
  5439. echo 'int i;' > conftest.$ac_ext
  5440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5441. (eval $ac_compile) 2>&5
  5442. ac_status=$?
  5443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5444. test $ac_status = 0; }; then
  5445. case `/usr/bin/file conftest.o` in
  5446. *64-bit*)
  5447. case $lt_cv_prog_gnu_ld in
  5448. yes*)
  5449. case $host in
  5450. i?86-*-solaris*|x86_64-*-solaris*)
  5451. LD="${LD-ld} -m elf_x86_64"
  5452. ;;
  5453. sparc*-*-solaris*)
  5454. LD="${LD-ld} -m elf64_sparc"
  5455. ;;
  5456. esac
  5457. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5458. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5459. LD=${LD-ld}_sol2
  5460. fi
  5461. ;;
  5462. *)
  5463. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5464. LD="${LD-ld} -64"
  5465. fi
  5466. ;;
  5467. esac
  5468. ;;
  5469. esac
  5470. fi
  5471. rm -rf conftest*
  5472. ;;
  5473. esac
  5474. need_locks=$enable_libtool_lock
  5475. if test -n "$ac_tool_prefix"; then
  5476. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5477. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5479. $as_echo_n "checking for $ac_word... " >&6; }
  5480. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5481. $as_echo_n "(cached) " >&6
  5482. else
  5483. if test -n "$MANIFEST_TOOL"; then
  5484. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5485. else
  5486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5487. for as_dir in $PATH
  5488. do
  5489. IFS=$as_save_IFS
  5490. test -z "$as_dir" && as_dir=.
  5491. for ac_exec_ext in '' $ac_executable_extensions; do
  5492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5493. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5495. break 2
  5496. fi
  5497. done
  5498. done
  5499. IFS=$as_save_IFS
  5500. fi
  5501. fi
  5502. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5503. if test -n "$MANIFEST_TOOL"; then
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5505. $as_echo "$MANIFEST_TOOL" >&6; }
  5506. else
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5508. $as_echo "no" >&6; }
  5509. fi
  5510. fi
  5511. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5512. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5513. # Extract the first word of "mt", so it can be a program name with args.
  5514. set dummy mt; ac_word=$2
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5516. $as_echo_n "checking for $ac_word... " >&6; }
  5517. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5518. $as_echo_n "(cached) " >&6
  5519. else
  5520. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5521. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5522. else
  5523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5524. for as_dir in $PATH
  5525. do
  5526. IFS=$as_save_IFS
  5527. test -z "$as_dir" && as_dir=.
  5528. for ac_exec_ext in '' $ac_executable_extensions; do
  5529. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5530. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5532. break 2
  5533. fi
  5534. done
  5535. done
  5536. IFS=$as_save_IFS
  5537. fi
  5538. fi
  5539. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5540. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5542. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5543. else
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5545. $as_echo "no" >&6; }
  5546. fi
  5547. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5548. MANIFEST_TOOL=":"
  5549. else
  5550. case $cross_compiling:$ac_tool_warned in
  5551. yes:)
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5553. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5554. ac_tool_warned=yes ;;
  5555. esac
  5556. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5557. fi
  5558. else
  5559. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5560. fi
  5561. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5563. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5564. if ${lt_cv_path_mainfest_tool+:} false; then :
  5565. $as_echo_n "(cached) " >&6
  5566. else
  5567. lt_cv_path_mainfest_tool=no
  5568. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5569. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5570. cat conftest.err >&5
  5571. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5572. lt_cv_path_mainfest_tool=yes
  5573. fi
  5574. rm -f conftest*
  5575. fi
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5577. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5578. if test yes != "$lt_cv_path_mainfest_tool"; then
  5579. MANIFEST_TOOL=:
  5580. fi
  5581. case $host_os in
  5582. rhapsody* | darwin*)
  5583. if test -n "$ac_tool_prefix"; then
  5584. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5585. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5587. $as_echo_n "checking for $ac_word... " >&6; }
  5588. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. if test -n "$DSYMUTIL"; then
  5592. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5593. else
  5594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5595. for as_dir in $PATH
  5596. do
  5597. IFS=$as_save_IFS
  5598. test -z "$as_dir" && as_dir=.
  5599. for ac_exec_ext in '' $ac_executable_extensions; do
  5600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5601. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5603. break 2
  5604. fi
  5605. done
  5606. done
  5607. IFS=$as_save_IFS
  5608. fi
  5609. fi
  5610. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5611. if test -n "$DSYMUTIL"; then
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5613. $as_echo "$DSYMUTIL" >&6; }
  5614. else
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5616. $as_echo "no" >&6; }
  5617. fi
  5618. fi
  5619. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5620. ac_ct_DSYMUTIL=$DSYMUTIL
  5621. # Extract the first word of "dsymutil", so it can be a program name with args.
  5622. set dummy dsymutil; ac_word=$2
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5624. $as_echo_n "checking for $ac_word... " >&6; }
  5625. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. if test -n "$ac_ct_DSYMUTIL"; then
  5629. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5630. else
  5631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5632. for as_dir in $PATH
  5633. do
  5634. IFS=$as_save_IFS
  5635. test -z "$as_dir" && as_dir=.
  5636. for ac_exec_ext in '' $ac_executable_extensions; do
  5637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5638. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5640. break 2
  5641. fi
  5642. done
  5643. done
  5644. IFS=$as_save_IFS
  5645. fi
  5646. fi
  5647. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5648. if test -n "$ac_ct_DSYMUTIL"; then
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5650. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5651. else
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5653. $as_echo "no" >&6; }
  5654. fi
  5655. if test "x$ac_ct_DSYMUTIL" = x; then
  5656. DSYMUTIL=":"
  5657. else
  5658. case $cross_compiling:$ac_tool_warned in
  5659. yes:)
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5661. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5662. ac_tool_warned=yes ;;
  5663. esac
  5664. DSYMUTIL=$ac_ct_DSYMUTIL
  5665. fi
  5666. else
  5667. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5668. fi
  5669. if test -n "$ac_tool_prefix"; then
  5670. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5671. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5673. $as_echo_n "checking for $ac_word... " >&6; }
  5674. if ${ac_cv_prog_NMEDIT+:} false; then :
  5675. $as_echo_n "(cached) " >&6
  5676. else
  5677. if test -n "$NMEDIT"; then
  5678. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5679. else
  5680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5681. for as_dir in $PATH
  5682. do
  5683. IFS=$as_save_IFS
  5684. test -z "$as_dir" && as_dir=.
  5685. for ac_exec_ext in '' $ac_executable_extensions; do
  5686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5687. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5689. break 2
  5690. fi
  5691. done
  5692. done
  5693. IFS=$as_save_IFS
  5694. fi
  5695. fi
  5696. NMEDIT=$ac_cv_prog_NMEDIT
  5697. if test -n "$NMEDIT"; then
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5699. $as_echo "$NMEDIT" >&6; }
  5700. else
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5702. $as_echo "no" >&6; }
  5703. fi
  5704. fi
  5705. if test -z "$ac_cv_prog_NMEDIT"; then
  5706. ac_ct_NMEDIT=$NMEDIT
  5707. # Extract the first word of "nmedit", so it can be a program name with args.
  5708. set dummy nmedit; ac_word=$2
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5710. $as_echo_n "checking for $ac_word... " >&6; }
  5711. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. if test -n "$ac_ct_NMEDIT"; then
  5715. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5716. else
  5717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5718. for as_dir in $PATH
  5719. do
  5720. IFS=$as_save_IFS
  5721. test -z "$as_dir" && as_dir=.
  5722. for ac_exec_ext in '' $ac_executable_extensions; do
  5723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5724. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5726. break 2
  5727. fi
  5728. done
  5729. done
  5730. IFS=$as_save_IFS
  5731. fi
  5732. fi
  5733. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5734. if test -n "$ac_ct_NMEDIT"; then
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5736. $as_echo "$ac_ct_NMEDIT" >&6; }
  5737. else
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5739. $as_echo "no" >&6; }
  5740. fi
  5741. if test "x$ac_ct_NMEDIT" = x; then
  5742. NMEDIT=":"
  5743. else
  5744. case $cross_compiling:$ac_tool_warned in
  5745. yes:)
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5747. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5748. ac_tool_warned=yes ;;
  5749. esac
  5750. NMEDIT=$ac_ct_NMEDIT
  5751. fi
  5752. else
  5753. NMEDIT="$ac_cv_prog_NMEDIT"
  5754. fi
  5755. if test -n "$ac_tool_prefix"; then
  5756. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5757. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5759. $as_echo_n "checking for $ac_word... " >&6; }
  5760. if ${ac_cv_prog_LIPO+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. if test -n "$LIPO"; then
  5764. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5765. else
  5766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5767. for as_dir in $PATH
  5768. do
  5769. IFS=$as_save_IFS
  5770. test -z "$as_dir" && as_dir=.
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5773. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. LIPO=$ac_cv_prog_LIPO
  5783. if test -n "$LIPO"; then
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5785. $as_echo "$LIPO" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. $as_echo "no" >&6; }
  5789. fi
  5790. fi
  5791. if test -z "$ac_cv_prog_LIPO"; then
  5792. ac_ct_LIPO=$LIPO
  5793. # Extract the first word of "lipo", so it can be a program name with args.
  5794. set dummy lipo; ac_word=$2
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5796. $as_echo_n "checking for $ac_word... " >&6; }
  5797. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. if test -n "$ac_ct_LIPO"; then
  5801. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5802. else
  5803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5804. for as_dir in $PATH
  5805. do
  5806. IFS=$as_save_IFS
  5807. test -z "$as_dir" && as_dir=.
  5808. for ac_exec_ext in '' $ac_executable_extensions; do
  5809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5810. ac_cv_prog_ac_ct_LIPO="lipo"
  5811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5812. break 2
  5813. fi
  5814. done
  5815. done
  5816. IFS=$as_save_IFS
  5817. fi
  5818. fi
  5819. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5820. if test -n "$ac_ct_LIPO"; then
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5822. $as_echo "$ac_ct_LIPO" >&6; }
  5823. else
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5825. $as_echo "no" >&6; }
  5826. fi
  5827. if test "x$ac_ct_LIPO" = x; then
  5828. LIPO=":"
  5829. else
  5830. case $cross_compiling:$ac_tool_warned in
  5831. yes:)
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5834. ac_tool_warned=yes ;;
  5835. esac
  5836. LIPO=$ac_ct_LIPO
  5837. fi
  5838. else
  5839. LIPO="$ac_cv_prog_LIPO"
  5840. fi
  5841. if test -n "$ac_tool_prefix"; then
  5842. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5843. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5845. $as_echo_n "checking for $ac_word... " >&6; }
  5846. if ${ac_cv_prog_OTOOL+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. if test -n "$OTOOL"; then
  5850. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5851. else
  5852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. for as_dir in $PATH
  5854. do
  5855. IFS=$as_save_IFS
  5856. test -z "$as_dir" && as_dir=.
  5857. for ac_exec_ext in '' $ac_executable_extensions; do
  5858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5859. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. break 2
  5862. fi
  5863. done
  5864. done
  5865. IFS=$as_save_IFS
  5866. fi
  5867. fi
  5868. OTOOL=$ac_cv_prog_OTOOL
  5869. if test -n "$OTOOL"; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5871. $as_echo "$OTOOL" >&6; }
  5872. else
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5874. $as_echo "no" >&6; }
  5875. fi
  5876. fi
  5877. if test -z "$ac_cv_prog_OTOOL"; then
  5878. ac_ct_OTOOL=$OTOOL
  5879. # Extract the first word of "otool", so it can be a program name with args.
  5880. set dummy otool; ac_word=$2
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5882. $as_echo_n "checking for $ac_word... " >&6; }
  5883. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5884. $as_echo_n "(cached) " >&6
  5885. else
  5886. if test -n "$ac_ct_OTOOL"; then
  5887. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5888. else
  5889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5890. for as_dir in $PATH
  5891. do
  5892. IFS=$as_save_IFS
  5893. test -z "$as_dir" && as_dir=.
  5894. for ac_exec_ext in '' $ac_executable_extensions; do
  5895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5896. ac_cv_prog_ac_ct_OTOOL="otool"
  5897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5898. break 2
  5899. fi
  5900. done
  5901. done
  5902. IFS=$as_save_IFS
  5903. fi
  5904. fi
  5905. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5906. if test -n "$ac_ct_OTOOL"; then
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5908. $as_echo "$ac_ct_OTOOL" >&6; }
  5909. else
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5911. $as_echo "no" >&6; }
  5912. fi
  5913. if test "x$ac_ct_OTOOL" = x; then
  5914. OTOOL=":"
  5915. else
  5916. case $cross_compiling:$ac_tool_warned in
  5917. yes:)
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5920. ac_tool_warned=yes ;;
  5921. esac
  5922. OTOOL=$ac_ct_OTOOL
  5923. fi
  5924. else
  5925. OTOOL="$ac_cv_prog_OTOOL"
  5926. fi
  5927. if test -n "$ac_tool_prefix"; then
  5928. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5929. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5931. $as_echo_n "checking for $ac_word... " >&6; }
  5932. if ${ac_cv_prog_OTOOL64+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. if test -n "$OTOOL64"; then
  5936. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5937. else
  5938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5939. for as_dir in $PATH
  5940. do
  5941. IFS=$as_save_IFS
  5942. test -z "$as_dir" && as_dir=.
  5943. for ac_exec_ext in '' $ac_executable_extensions; do
  5944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5945. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5947. break 2
  5948. fi
  5949. done
  5950. done
  5951. IFS=$as_save_IFS
  5952. fi
  5953. fi
  5954. OTOOL64=$ac_cv_prog_OTOOL64
  5955. if test -n "$OTOOL64"; then
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5957. $as_echo "$OTOOL64" >&6; }
  5958. else
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5960. $as_echo "no" >&6; }
  5961. fi
  5962. fi
  5963. if test -z "$ac_cv_prog_OTOOL64"; then
  5964. ac_ct_OTOOL64=$OTOOL64
  5965. # Extract the first word of "otool64", so it can be a program name with args.
  5966. set dummy otool64; ac_word=$2
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5968. $as_echo_n "checking for $ac_word... " >&6; }
  5969. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5970. $as_echo_n "(cached) " >&6
  5971. else
  5972. if test -n "$ac_ct_OTOOL64"; then
  5973. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5974. else
  5975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5976. for as_dir in $PATH
  5977. do
  5978. IFS=$as_save_IFS
  5979. test -z "$as_dir" && as_dir=.
  5980. for ac_exec_ext in '' $ac_executable_extensions; do
  5981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5982. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5984. break 2
  5985. fi
  5986. done
  5987. done
  5988. IFS=$as_save_IFS
  5989. fi
  5990. fi
  5991. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5992. if test -n "$ac_ct_OTOOL64"; then
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5994. $as_echo "$ac_ct_OTOOL64" >&6; }
  5995. else
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5997. $as_echo "no" >&6; }
  5998. fi
  5999. if test "x$ac_ct_OTOOL64" = x; then
  6000. OTOOL64=":"
  6001. else
  6002. case $cross_compiling:$ac_tool_warned in
  6003. yes:)
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6006. ac_tool_warned=yes ;;
  6007. esac
  6008. OTOOL64=$ac_ct_OTOOL64
  6009. fi
  6010. else
  6011. OTOOL64="$ac_cv_prog_OTOOL64"
  6012. fi
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6014. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6015. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. lt_cv_apple_cc_single_mod=no
  6019. if test -z "$LT_MULTI_MODULE"; then
  6020. # By default we will add the -single_module flag. You can override
  6021. # by either setting the environment variable LT_MULTI_MODULE
  6022. # non-empty at configure time, or by adding -multi_module to the
  6023. # link flags.
  6024. rm -rf libconftest.dylib*
  6025. echo "int foo(void){return 1;}" > conftest.c
  6026. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6027. -dynamiclib -Wl,-single_module conftest.c" >&5
  6028. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6029. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6030. _lt_result=$?
  6031. # If there is a non-empty error log, and "single_module"
  6032. # appears in it, assume the flag caused a linker warning
  6033. if test -s conftest.err && $GREP single_module conftest.err; then
  6034. cat conftest.err >&5
  6035. # Otherwise, if the output was created with a 0 exit code from
  6036. # the compiler, it worked.
  6037. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6038. lt_cv_apple_cc_single_mod=yes
  6039. else
  6040. cat conftest.err >&5
  6041. fi
  6042. rm -rf libconftest.dylib*
  6043. rm -f conftest.*
  6044. fi
  6045. fi
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6047. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6049. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6050. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. lt_cv_ld_exported_symbols_list=no
  6054. save_LDFLAGS=$LDFLAGS
  6055. echo "_main" > conftest.sym
  6056. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6058. /* end confdefs.h. */
  6059. int
  6060. main ()
  6061. {
  6062. ;
  6063. return 0;
  6064. }
  6065. _ACEOF
  6066. if ac_fn_c_try_link "$LINENO"; then :
  6067. lt_cv_ld_exported_symbols_list=yes
  6068. else
  6069. lt_cv_ld_exported_symbols_list=no
  6070. fi
  6071. rm -f core conftest.err conftest.$ac_objext \
  6072. conftest$ac_exeext conftest.$ac_ext
  6073. LDFLAGS=$save_LDFLAGS
  6074. fi
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6076. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6078. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6079. if ${lt_cv_ld_force_load+:} false; then :
  6080. $as_echo_n "(cached) " >&6
  6081. else
  6082. lt_cv_ld_force_load=no
  6083. cat > conftest.c << _LT_EOF
  6084. int forced_loaded() { return 2;}
  6085. _LT_EOF
  6086. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6087. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6088. echo "$AR cru libconftest.a conftest.o" >&5
  6089. $AR cru libconftest.a conftest.o 2>&5
  6090. echo "$RANLIB libconftest.a" >&5
  6091. $RANLIB libconftest.a 2>&5
  6092. cat > conftest.c << _LT_EOF
  6093. int main() { return 0;}
  6094. _LT_EOF
  6095. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6096. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6097. _lt_result=$?
  6098. if test -s conftest.err && $GREP force_load conftest.err; then
  6099. cat conftest.err >&5
  6100. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6101. lt_cv_ld_force_load=yes
  6102. else
  6103. cat conftest.err >&5
  6104. fi
  6105. rm -f conftest.err libconftest.a conftest conftest.c
  6106. rm -rf conftest.dSYM
  6107. fi
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6109. $as_echo "$lt_cv_ld_force_load" >&6; }
  6110. case $host_os in
  6111. rhapsody* | darwin1.[012])
  6112. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6113. darwin1.*)
  6114. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6115. darwin*) # darwin 5.x on
  6116. # if running on 10.5 or later, the deployment target defaults
  6117. # to the OS version, if on x86, and 10.4, the deployment
  6118. # target defaults to 10.4. Don't you love it?
  6119. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6120. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6121. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6122. 10.[012][,.]*)
  6123. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6124. 10.*)
  6125. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6126. esac
  6127. ;;
  6128. esac
  6129. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6130. _lt_dar_single_mod='$single_module'
  6131. fi
  6132. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6133. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6134. else
  6135. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6136. fi
  6137. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6138. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6139. else
  6140. _lt_dsymutil=
  6141. fi
  6142. ;;
  6143. esac
  6144. # func_munge_path_list VARIABLE PATH
  6145. # -----------------------------------
  6146. # VARIABLE is name of variable containing _space_ separated list of
  6147. # directories to be munged by the contents of PATH, which is string
  6148. # having a format:
  6149. # "DIR[:DIR]:"
  6150. # string "DIR[ DIR]" will be prepended to VARIABLE
  6151. # ":DIR[:DIR]"
  6152. # string "DIR[ DIR]" will be appended to VARIABLE
  6153. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6154. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6155. # "DIRA[ DIRA]" will be appended to VARIABLE
  6156. # "DIR[:DIR]"
  6157. # VARIABLE will be replaced by "DIR[ DIR]"
  6158. func_munge_path_list ()
  6159. {
  6160. case x$2 in
  6161. x)
  6162. ;;
  6163. *:)
  6164. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6165. ;;
  6166. x:*)
  6167. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6168. ;;
  6169. *::*)
  6170. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6171. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6172. ;;
  6173. *)
  6174. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6175. ;;
  6176. esac
  6177. }
  6178. ac_ext=c
  6179. ac_cpp='$CPP $CPPFLAGS'
  6180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6184. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6185. # On Suns, sometimes $CPP names a directory.
  6186. if test -n "$CPP" && test -d "$CPP"; then
  6187. CPP=
  6188. fi
  6189. if test -z "$CPP"; then
  6190. if ${ac_cv_prog_CPP+:} false; then :
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. # Double quotes because CPP needs to be expanded
  6194. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6195. do
  6196. ac_preproc_ok=false
  6197. for ac_c_preproc_warn_flag in '' yes
  6198. do
  6199. # Use a header file that comes with gcc, so configuring glibc
  6200. # with a fresh cross-compiler works.
  6201. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6202. # <limits.h> exists even on freestanding compilers.
  6203. # On the NeXT, cc -E runs the code through the compiler's parser,
  6204. # not just through cpp. "Syntax error" is here to catch this case.
  6205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6206. /* end confdefs.h. */
  6207. #ifdef __STDC__
  6208. # include <limits.h>
  6209. #else
  6210. # include <assert.h>
  6211. #endif
  6212. Syntax error
  6213. _ACEOF
  6214. if ac_fn_c_try_cpp "$LINENO"; then :
  6215. else
  6216. # Broken: fails on valid input.
  6217. continue
  6218. fi
  6219. rm -f conftest.err conftest.i conftest.$ac_ext
  6220. # OK, works on sane cases. Now check whether nonexistent headers
  6221. # can be detected and how.
  6222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6223. /* end confdefs.h. */
  6224. #include <ac_nonexistent.h>
  6225. _ACEOF
  6226. if ac_fn_c_try_cpp "$LINENO"; then :
  6227. # Broken: success on invalid input.
  6228. continue
  6229. else
  6230. # Passes both tests.
  6231. ac_preproc_ok=:
  6232. break
  6233. fi
  6234. rm -f conftest.err conftest.i conftest.$ac_ext
  6235. done
  6236. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6237. rm -f conftest.i conftest.err conftest.$ac_ext
  6238. if $ac_preproc_ok; then :
  6239. break
  6240. fi
  6241. done
  6242. ac_cv_prog_CPP=$CPP
  6243. fi
  6244. CPP=$ac_cv_prog_CPP
  6245. else
  6246. ac_cv_prog_CPP=$CPP
  6247. fi
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6249. $as_echo "$CPP" >&6; }
  6250. ac_preproc_ok=false
  6251. for ac_c_preproc_warn_flag in '' yes
  6252. do
  6253. # Use a header file that comes with gcc, so configuring glibc
  6254. # with a fresh cross-compiler works.
  6255. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6256. # <limits.h> exists even on freestanding compilers.
  6257. # On the NeXT, cc -E runs the code through the compiler's parser,
  6258. # not just through cpp. "Syntax error" is here to catch this case.
  6259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6260. /* end confdefs.h. */
  6261. #ifdef __STDC__
  6262. # include <limits.h>
  6263. #else
  6264. # include <assert.h>
  6265. #endif
  6266. Syntax error
  6267. _ACEOF
  6268. if ac_fn_c_try_cpp "$LINENO"; then :
  6269. else
  6270. # Broken: fails on valid input.
  6271. continue
  6272. fi
  6273. rm -f conftest.err conftest.i conftest.$ac_ext
  6274. # OK, works on sane cases. Now check whether nonexistent headers
  6275. # can be detected and how.
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #include <ac_nonexistent.h>
  6279. _ACEOF
  6280. if ac_fn_c_try_cpp "$LINENO"; then :
  6281. # Broken: success on invalid input.
  6282. continue
  6283. else
  6284. # Passes both tests.
  6285. ac_preproc_ok=:
  6286. break
  6287. fi
  6288. rm -f conftest.err conftest.i conftest.$ac_ext
  6289. done
  6290. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6291. rm -f conftest.i conftest.err conftest.$ac_ext
  6292. if $ac_preproc_ok; then :
  6293. else
  6294. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6295. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6296. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6297. See \`config.log' for more details" "$LINENO" 5; }
  6298. fi
  6299. ac_ext=c
  6300. ac_cpp='$CPP $CPPFLAGS'
  6301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6305. $as_echo_n "checking for ANSI C header files... " >&6; }
  6306. if ${ac_cv_header_stdc+:} false; then :
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6310. /* end confdefs.h. */
  6311. #include <stdlib.h>
  6312. #include <stdarg.h>
  6313. #include <string.h>
  6314. #include <float.h>
  6315. int
  6316. main ()
  6317. {
  6318. ;
  6319. return 0;
  6320. }
  6321. _ACEOF
  6322. if ac_fn_c_try_compile "$LINENO"; then :
  6323. ac_cv_header_stdc=yes
  6324. else
  6325. ac_cv_header_stdc=no
  6326. fi
  6327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6328. if test $ac_cv_header_stdc = yes; then
  6329. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. #include <string.h>
  6333. _ACEOF
  6334. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6335. $EGREP "memchr" >/dev/null 2>&1; then :
  6336. else
  6337. ac_cv_header_stdc=no
  6338. fi
  6339. rm -f conftest*
  6340. fi
  6341. if test $ac_cv_header_stdc = yes; then
  6342. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6344. /* end confdefs.h. */
  6345. #include <stdlib.h>
  6346. _ACEOF
  6347. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6348. $EGREP "free" >/dev/null 2>&1; then :
  6349. else
  6350. ac_cv_header_stdc=no
  6351. fi
  6352. rm -f conftest*
  6353. fi
  6354. if test $ac_cv_header_stdc = yes; then
  6355. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6356. if test "$cross_compiling" = yes; then :
  6357. :
  6358. else
  6359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6360. /* end confdefs.h. */
  6361. #include <ctype.h>
  6362. #include <stdlib.h>
  6363. #if ((' ' & 0x0FF) == 0x020)
  6364. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6365. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6366. #else
  6367. # define ISLOWER(c) \
  6368. (('a' <= (c) && (c) <= 'i') \
  6369. || ('j' <= (c) && (c) <= 'r') \
  6370. || ('s' <= (c) && (c) <= 'z'))
  6371. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6372. #endif
  6373. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6374. int
  6375. main ()
  6376. {
  6377. int i;
  6378. for (i = 0; i < 256; i++)
  6379. if (XOR (islower (i), ISLOWER (i))
  6380. || toupper (i) != TOUPPER (i))
  6381. return 2;
  6382. return 0;
  6383. }
  6384. _ACEOF
  6385. if ac_fn_c_try_run "$LINENO"; then :
  6386. else
  6387. ac_cv_header_stdc=no
  6388. fi
  6389. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6390. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6391. fi
  6392. fi
  6393. fi
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6395. $as_echo "$ac_cv_header_stdc" >&6; }
  6396. if test $ac_cv_header_stdc = yes; then
  6397. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6398. fi
  6399. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6400. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6401. inttypes.h stdint.h unistd.h
  6402. do :
  6403. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6404. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6405. "
  6406. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6407. cat >>confdefs.h <<_ACEOF
  6408. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6409. _ACEOF
  6410. fi
  6411. done
  6412. for ac_header in dlfcn.h
  6413. do :
  6414. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6415. "
  6416. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6417. cat >>confdefs.h <<_ACEOF
  6418. #define HAVE_DLFCN_H 1
  6419. _ACEOF
  6420. fi
  6421. done
  6422. # Set options
  6423. enable_dlopen=no
  6424. # Check whether --enable-shared was given.
  6425. if test "${enable_shared+set}" = set; then :
  6426. enableval=$enable_shared; p=${PACKAGE-default}
  6427. case $enableval in
  6428. yes) enable_shared=yes ;;
  6429. no) enable_shared=no ;;
  6430. *)
  6431. enable_shared=no
  6432. # Look at the argument we got. We use all the common list separators.
  6433. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6434. for pkg in $enableval; do
  6435. IFS=$lt_save_ifs
  6436. if test "X$pkg" = "X$p"; then
  6437. enable_shared=yes
  6438. fi
  6439. done
  6440. IFS=$lt_save_ifs
  6441. ;;
  6442. esac
  6443. else
  6444. enable_shared=yes
  6445. fi
  6446. # Check whether --enable-static was given.
  6447. if test "${enable_static+set}" = set; then :
  6448. enableval=$enable_static; p=${PACKAGE-default}
  6449. case $enableval in
  6450. yes) enable_static=yes ;;
  6451. no) enable_static=no ;;
  6452. *)
  6453. enable_static=no
  6454. # Look at the argument we got. We use all the common list separators.
  6455. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6456. for pkg in $enableval; do
  6457. IFS=$lt_save_ifs
  6458. if test "X$pkg" = "X$p"; then
  6459. enable_static=yes
  6460. fi
  6461. done
  6462. IFS=$lt_save_ifs
  6463. ;;
  6464. esac
  6465. else
  6466. enable_static=yes
  6467. fi
  6468. # Check whether --with-pic was given.
  6469. if test "${with_pic+set}" = set; then :
  6470. withval=$with_pic; lt_p=${PACKAGE-default}
  6471. case $withval in
  6472. yes|no) pic_mode=$withval ;;
  6473. *)
  6474. pic_mode=default
  6475. # Look at the argument we got. We use all the common list separators.
  6476. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6477. for lt_pkg in $withval; do
  6478. IFS=$lt_save_ifs
  6479. if test "X$lt_pkg" = "X$lt_p"; then
  6480. pic_mode=yes
  6481. fi
  6482. done
  6483. IFS=$lt_save_ifs
  6484. ;;
  6485. esac
  6486. else
  6487. pic_mode=default
  6488. fi
  6489. # Check whether --enable-fast-install was given.
  6490. if test "${enable_fast_install+set}" = set; then :
  6491. enableval=$enable_fast_install; p=${PACKAGE-default}
  6492. case $enableval in
  6493. yes) enable_fast_install=yes ;;
  6494. no) enable_fast_install=no ;;
  6495. *)
  6496. enable_fast_install=no
  6497. # Look at the argument we got. We use all the common list separators.
  6498. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6499. for pkg in $enableval; do
  6500. IFS=$lt_save_ifs
  6501. if test "X$pkg" = "X$p"; then
  6502. enable_fast_install=yes
  6503. fi
  6504. done
  6505. IFS=$lt_save_ifs
  6506. ;;
  6507. esac
  6508. else
  6509. enable_fast_install=yes
  6510. fi
  6511. shared_archive_member_spec=
  6512. case $host,$enable_shared in
  6513. power*-*-aix[5-9]*,yes)
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6515. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6516. # Check whether --with-aix-soname was given.
  6517. if test "${with_aix_soname+set}" = set; then :
  6518. withval=$with_aix_soname; case $withval in
  6519. aix|svr4|both)
  6520. ;;
  6521. *)
  6522. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6523. ;;
  6524. esac
  6525. lt_cv_with_aix_soname=$with_aix_soname
  6526. else
  6527. if ${lt_cv_with_aix_soname+:} false; then :
  6528. $as_echo_n "(cached) " >&6
  6529. else
  6530. lt_cv_with_aix_soname=aix
  6531. fi
  6532. with_aix_soname=$lt_cv_with_aix_soname
  6533. fi
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6535. $as_echo "$with_aix_soname" >&6; }
  6536. if test aix != "$with_aix_soname"; then
  6537. # For the AIX way of multilib, we name the shared archive member
  6538. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6539. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6540. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6541. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6542. if test 64 = "${OBJECT_MODE-32}"; then
  6543. shared_archive_member_spec=shr_64
  6544. else
  6545. shared_archive_member_spec=shr
  6546. fi
  6547. fi
  6548. ;;
  6549. *)
  6550. with_aix_soname=aix
  6551. ;;
  6552. esac
  6553. # This can be used to rebuild libtool when needed
  6554. LIBTOOL_DEPS=$ltmain
  6555. # Always use our own libtool.
  6556. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6557. test -z "$LN_S" && LN_S="ln -s"
  6558. if test -n "${ZSH_VERSION+set}"; then
  6559. setopt NO_GLOB_SUBST
  6560. fi
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6562. $as_echo_n "checking for objdir... " >&6; }
  6563. if ${lt_cv_objdir+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. rm -f .libs 2>/dev/null
  6567. mkdir .libs 2>/dev/null
  6568. if test -d .libs; then
  6569. lt_cv_objdir=.libs
  6570. else
  6571. # MS-DOS does not allow filenames that begin with a dot.
  6572. lt_cv_objdir=_libs
  6573. fi
  6574. rmdir .libs 2>/dev/null
  6575. fi
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6577. $as_echo "$lt_cv_objdir" >&6; }
  6578. objdir=$lt_cv_objdir
  6579. cat >>confdefs.h <<_ACEOF
  6580. #define LT_OBJDIR "$lt_cv_objdir/"
  6581. _ACEOF
  6582. case $host_os in
  6583. aix3*)
  6584. # AIX sometimes has problems with the GCC collect2 program. For some
  6585. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6586. # vanish in a puff of smoke.
  6587. if test set != "${COLLECT_NAMES+set}"; then
  6588. COLLECT_NAMES=
  6589. export COLLECT_NAMES
  6590. fi
  6591. ;;
  6592. esac
  6593. # Global variables:
  6594. ofile=libtool
  6595. can_build_shared=yes
  6596. # All known linkers require a '.a' archive for static linking (except MSVC,
  6597. # which needs '.lib').
  6598. libext=a
  6599. with_gnu_ld=$lt_cv_prog_gnu_ld
  6600. old_CC=$CC
  6601. old_CFLAGS=$CFLAGS
  6602. # Set sane defaults for various variables
  6603. test -z "$CC" && CC=cc
  6604. test -z "$LTCC" && LTCC=$CC
  6605. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6606. test -z "$LD" && LD=ld
  6607. test -z "$ac_objext" && ac_objext=o
  6608. func_cc_basename $compiler
  6609. cc_basename=$func_cc_basename_result
  6610. # Only perform the check for file, if the check method requires it
  6611. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6612. case $deplibs_check_method in
  6613. file_magic*)
  6614. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6616. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6617. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6618. $as_echo_n "(cached) " >&6
  6619. else
  6620. case $MAGIC_CMD in
  6621. [\\/*] | ?:[\\/]*)
  6622. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  6623. ;;
  6624. *)
  6625. lt_save_MAGIC_CMD=$MAGIC_CMD
  6626. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6627. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6628. for ac_dir in $ac_dummy; do
  6629. IFS=$lt_save_ifs
  6630. test -z "$ac_dir" && ac_dir=.
  6631. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  6632. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  6633. if test -n "$file_magic_test_file"; then
  6634. case $deplibs_check_method in
  6635. "file_magic "*)
  6636. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6637. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6638. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6639. $EGREP "$file_magic_regex" > /dev/null; then
  6640. :
  6641. else
  6642. cat <<_LT_EOF 1>&2
  6643. *** Warning: the command libtool uses to detect shared libraries,
  6644. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6645. *** The result is that libtool may fail to recognize shared libraries
  6646. *** as such. This will affect the creation of libtool libraries that
  6647. *** depend on shared libraries, but programs linked with such libtool
  6648. *** libraries will work regardless of this problem. Nevertheless, you
  6649. *** may want to report the problem to your system manager and/or to
  6650. *** [email protected]
  6651. _LT_EOF
  6652. fi ;;
  6653. esac
  6654. fi
  6655. break
  6656. fi
  6657. done
  6658. IFS=$lt_save_ifs
  6659. MAGIC_CMD=$lt_save_MAGIC_CMD
  6660. ;;
  6661. esac
  6662. fi
  6663. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6664. if test -n "$MAGIC_CMD"; then
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6666. $as_echo "$MAGIC_CMD" >&6; }
  6667. else
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6669. $as_echo "no" >&6; }
  6670. fi
  6671. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6672. if test -n "$ac_tool_prefix"; then
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6674. $as_echo_n "checking for file... " >&6; }
  6675. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6676. $as_echo_n "(cached) " >&6
  6677. else
  6678. case $MAGIC_CMD in
  6679. [\\/*] | ?:[\\/]*)
  6680. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  6681. ;;
  6682. *)
  6683. lt_save_MAGIC_CMD=$MAGIC_CMD
  6684. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6685. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6686. for ac_dir in $ac_dummy; do
  6687. IFS=$lt_save_ifs
  6688. test -z "$ac_dir" && ac_dir=.
  6689. if test -f "$ac_dir/file"; then
  6690. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  6691. if test -n "$file_magic_test_file"; then
  6692. case $deplibs_check_method in
  6693. "file_magic "*)
  6694. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6695. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6696. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6697. $EGREP "$file_magic_regex" > /dev/null; then
  6698. :
  6699. else
  6700. cat <<_LT_EOF 1>&2
  6701. *** Warning: the command libtool uses to detect shared libraries,
  6702. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6703. *** The result is that libtool may fail to recognize shared libraries
  6704. *** as such. This will affect the creation of libtool libraries that
  6705. *** depend on shared libraries, but programs linked with such libtool
  6706. *** libraries will work regardless of this problem. Nevertheless, you
  6707. *** may want to report the problem to your system manager and/or to
  6708. *** [email protected]
  6709. _LT_EOF
  6710. fi ;;
  6711. esac
  6712. fi
  6713. break
  6714. fi
  6715. done
  6716. IFS=$lt_save_ifs
  6717. MAGIC_CMD=$lt_save_MAGIC_CMD
  6718. ;;
  6719. esac
  6720. fi
  6721. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6722. if test -n "$MAGIC_CMD"; then
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6724. $as_echo "$MAGIC_CMD" >&6; }
  6725. else
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6727. $as_echo "no" >&6; }
  6728. fi
  6729. else
  6730. MAGIC_CMD=:
  6731. fi
  6732. fi
  6733. fi
  6734. ;;
  6735. esac
  6736. # Use C for the default configuration in the libtool script
  6737. lt_save_CC=$CC
  6738. ac_ext=c
  6739. ac_cpp='$CPP $CPPFLAGS'
  6740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6743. # Source file extension for C test sources.
  6744. ac_ext=c
  6745. # Object file extension for compiled C test sources.
  6746. objext=o
  6747. objext=$objext
  6748. # Code to be used in simple compile tests
  6749. lt_simple_compile_test_code="int some_variable = 0;"
  6750. # Code to be used in simple link tests
  6751. lt_simple_link_test_code='int main(){return(0);}'
  6752. # If no C compiler was specified, use CC.
  6753. LTCC=${LTCC-"$CC"}
  6754. # If no C compiler flags were specified, use CFLAGS.
  6755. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6756. # Allow CC to be a program name with arguments.
  6757. compiler=$CC
  6758. # Save the default compiler, since it gets overwritten when the other
  6759. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6760. compiler_DEFAULT=$CC
  6761. # save warnings/boilerplate of simple test code
  6762. ac_outfile=conftest.$ac_objext
  6763. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6764. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6765. _lt_compiler_boilerplate=`cat conftest.err`
  6766. $RM conftest*
  6767. ac_outfile=conftest.$ac_objext
  6768. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6769. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6770. _lt_linker_boilerplate=`cat conftest.err`
  6771. $RM -r conftest*
  6772. ## CAVEAT EMPTOR:
  6773. ## There is no encapsulation within the following macros, do not change
  6774. ## the running order or otherwise move them around unless you know exactly
  6775. ## what you are doing...
  6776. if test -n "$compiler"; then
  6777. lt_prog_compiler_no_builtin_flag=
  6778. if test yes = "$GCC"; then
  6779. case $cc_basename in
  6780. nvcc*)
  6781. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6782. *)
  6783. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6784. esac
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6786. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6787. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. lt_cv_prog_compiler_rtti_exceptions=no
  6791. ac_outfile=conftest.$ac_objext
  6792. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6793. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  6794. # Insert the option either (1) after the last *FLAGS variable, or
  6795. # (2) before a word containing "conftest.", or (3) at the end.
  6796. # Note that $ac_compile itself does not contain backslashes and begins
  6797. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6798. # The option is referenced via a variable to avoid confusing sed.
  6799. lt_compile=`echo "$ac_compile" | $SED \
  6800. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6801. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6802. -e 's:$: $lt_compiler_flag:'`
  6803. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6804. (eval "$lt_compile" 2>conftest.err)
  6805. ac_status=$?
  6806. cat conftest.err >&5
  6807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6808. if (exit $ac_status) && test -s "$ac_outfile"; then
  6809. # The compiler can only warn and ignore the option if not recognized
  6810. # So say no if there are warnings other than the usual output.
  6811. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6812. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6813. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6814. lt_cv_prog_compiler_rtti_exceptions=yes
  6815. fi
  6816. fi
  6817. $RM conftest*
  6818. fi
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6820. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6821. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  6822. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6823. else
  6824. :
  6825. fi
  6826. fi
  6827. lt_prog_compiler_wl=
  6828. lt_prog_compiler_pic=
  6829. lt_prog_compiler_static=
  6830. if test yes = "$GCC"; then
  6831. lt_prog_compiler_wl='-Wl,'
  6832. lt_prog_compiler_static='-static'
  6833. case $host_os in
  6834. aix*)
  6835. # All AIX code is PIC.
  6836. if test ia64 = "$host_cpu"; then
  6837. # AIX 5 now supports IA64 processor
  6838. lt_prog_compiler_static='-Bstatic'
  6839. fi
  6840. lt_prog_compiler_pic='-fPIC'
  6841. ;;
  6842. amigaos*)
  6843. case $host_cpu in
  6844. powerpc)
  6845. # see comment about AmigaOS4 .so support
  6846. lt_prog_compiler_pic='-fPIC'
  6847. ;;
  6848. m68k)
  6849. # FIXME: we need at least 68020 code to build shared libraries, but
  6850. # adding the '-m68020' flag to GCC prevents building anything better,
  6851. # like '-m68040'.
  6852. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6853. ;;
  6854. esac
  6855. ;;
  6856. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6857. # PIC is the default for these OSes.
  6858. ;;
  6859. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6860. # This hack is so that the source file can tell whether it is being
  6861. # built for inclusion in a dll (and should export symbols for example).
  6862. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6863. # (--disable-auto-import) libraries
  6864. lt_prog_compiler_pic='-DDLL_EXPORT'
  6865. case $host_os in
  6866. os2*)
  6867. lt_prog_compiler_static='$wl-static'
  6868. ;;
  6869. esac
  6870. ;;
  6871. darwin* | rhapsody*)
  6872. # PIC is the default on this platform
  6873. # Common symbols not allowed in MH_DYLIB files
  6874. lt_prog_compiler_pic='-fno-common'
  6875. ;;
  6876. haiku*)
  6877. # PIC is the default for Haiku.
  6878. # The "-static" flag exists, but is broken.
  6879. lt_prog_compiler_static=
  6880. ;;
  6881. hpux*)
  6882. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6883. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6884. # sets the default TLS model and affects inlining.
  6885. case $host_cpu in
  6886. hppa*64*)
  6887. # +Z the default
  6888. ;;
  6889. *)
  6890. lt_prog_compiler_pic='-fPIC'
  6891. ;;
  6892. esac
  6893. ;;
  6894. interix[3-9]*)
  6895. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6896. # Instead, we relocate shared libraries at runtime.
  6897. ;;
  6898. msdosdjgpp*)
  6899. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6900. # on systems that don't support them.
  6901. lt_prog_compiler_can_build_shared=no
  6902. enable_shared=no
  6903. ;;
  6904. *nto* | *qnx*)
  6905. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6906. # it will coredump.
  6907. lt_prog_compiler_pic='-fPIC -shared'
  6908. ;;
  6909. sysv4*MP*)
  6910. if test -d /usr/nec; then
  6911. lt_prog_compiler_pic=-Kconform_pic
  6912. fi
  6913. ;;
  6914. *)
  6915. lt_prog_compiler_pic='-fPIC'
  6916. ;;
  6917. esac
  6918. case $cc_basename in
  6919. nvcc*) # Cuda Compiler Driver 2.2
  6920. lt_prog_compiler_wl='-Xlinker '
  6921. if test -n "$lt_prog_compiler_pic"; then
  6922. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6923. fi
  6924. ;;
  6925. esac
  6926. else
  6927. # PORTME Check for flag to pass linker flags through the system compiler.
  6928. case $host_os in
  6929. aix*)
  6930. lt_prog_compiler_wl='-Wl,'
  6931. if test ia64 = "$host_cpu"; then
  6932. # AIX 5 now supports IA64 processor
  6933. lt_prog_compiler_static='-Bstatic'
  6934. else
  6935. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6936. fi
  6937. ;;
  6938. darwin* | rhapsody*)
  6939. # PIC is the default on this platform
  6940. # Common symbols not allowed in MH_DYLIB files
  6941. lt_prog_compiler_pic='-fno-common'
  6942. case $cc_basename in
  6943. nagfor*)
  6944. # NAG Fortran compiler
  6945. lt_prog_compiler_wl='-Wl,-Wl,,'
  6946. lt_prog_compiler_pic='-PIC'
  6947. lt_prog_compiler_static='-Bstatic'
  6948. ;;
  6949. esac
  6950. ;;
  6951. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6952. # This hack is so that the source file can tell whether it is being
  6953. # built for inclusion in a dll (and should export symbols for example).
  6954. lt_prog_compiler_pic='-DDLL_EXPORT'
  6955. case $host_os in
  6956. os2*)
  6957. lt_prog_compiler_static='$wl-static'
  6958. ;;
  6959. esac
  6960. ;;
  6961. hpux9* | hpux10* | hpux11*)
  6962. lt_prog_compiler_wl='-Wl,'
  6963. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6964. # not for PA HP-UX.
  6965. case $host_cpu in
  6966. hppa*64*|ia64*)
  6967. # +Z the default
  6968. ;;
  6969. *)
  6970. lt_prog_compiler_pic='+Z'
  6971. ;;
  6972. esac
  6973. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6974. lt_prog_compiler_static='$wl-a ${wl}archive'
  6975. ;;
  6976. irix5* | irix6* | nonstopux*)
  6977. lt_prog_compiler_wl='-Wl,'
  6978. # PIC (with -KPIC) is the default.
  6979. lt_prog_compiler_static='-non_shared'
  6980. ;;
  6981. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6982. case $cc_basename in
  6983. # old Intel for x86_64, which still supported -KPIC.
  6984. ecc*)
  6985. lt_prog_compiler_wl='-Wl,'
  6986. lt_prog_compiler_pic='-KPIC'
  6987. lt_prog_compiler_static='-static'
  6988. ;;
  6989. # icc used to be incompatible with GCC.
  6990. # ICC 10 doesn't accept -KPIC any more.
  6991. icc* | ifort*)
  6992. lt_prog_compiler_wl='-Wl,'
  6993. lt_prog_compiler_pic='-fPIC'
  6994. lt_prog_compiler_static='-static'
  6995. ;;
  6996. # Lahey Fortran 8.1.
  6997. lf95*)
  6998. lt_prog_compiler_wl='-Wl,'
  6999. lt_prog_compiler_pic='--shared'
  7000. lt_prog_compiler_static='--static'
  7001. ;;
  7002. nagfor*)
  7003. # NAG Fortran compiler
  7004. lt_prog_compiler_wl='-Wl,-Wl,,'
  7005. lt_prog_compiler_pic='-PIC'
  7006. lt_prog_compiler_static='-Bstatic'
  7007. ;;
  7008. tcc*)
  7009. # Fabrice Bellard et al's Tiny C Compiler
  7010. lt_prog_compiler_wl='-Wl,'
  7011. lt_prog_compiler_pic='-fPIC'
  7012. lt_prog_compiler_static='-static'
  7013. ;;
  7014. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7015. # Portland Group compilers (*not* the Pentium gcc compiler,
  7016. # which looks to be a dead project)
  7017. lt_prog_compiler_wl='-Wl,'
  7018. lt_prog_compiler_pic='-fpic'
  7019. lt_prog_compiler_static='-Bstatic'
  7020. ;;
  7021. ccc*)
  7022. lt_prog_compiler_wl='-Wl,'
  7023. # All Alpha code is PIC.
  7024. lt_prog_compiler_static='-non_shared'
  7025. ;;
  7026. xl* | bgxl* | bgf* | mpixl*)
  7027. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7028. lt_prog_compiler_wl='-Wl,'
  7029. lt_prog_compiler_pic='-qpic'
  7030. lt_prog_compiler_static='-qstaticlink'
  7031. ;;
  7032. *)
  7033. case `$CC -V 2>&1 | sed 5q` in
  7034. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7035. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7036. lt_prog_compiler_pic='-KPIC'
  7037. lt_prog_compiler_static='-Bstatic'
  7038. lt_prog_compiler_wl=''
  7039. ;;
  7040. *Sun\ F* | *Sun*Fortran*)
  7041. lt_prog_compiler_pic='-KPIC'
  7042. lt_prog_compiler_static='-Bstatic'
  7043. lt_prog_compiler_wl='-Qoption ld '
  7044. ;;
  7045. *Sun\ C*)
  7046. # Sun C 5.9
  7047. lt_prog_compiler_pic='-KPIC'
  7048. lt_prog_compiler_static='-Bstatic'
  7049. lt_prog_compiler_wl='-Wl,'
  7050. ;;
  7051. *Intel*\ [CF]*Compiler*)
  7052. lt_prog_compiler_wl='-Wl,'
  7053. lt_prog_compiler_pic='-fPIC'
  7054. lt_prog_compiler_static='-static'
  7055. ;;
  7056. *Portland\ Group*)
  7057. lt_prog_compiler_wl='-Wl,'
  7058. lt_prog_compiler_pic='-fpic'
  7059. lt_prog_compiler_static='-Bstatic'
  7060. ;;
  7061. esac
  7062. ;;
  7063. esac
  7064. ;;
  7065. newsos6)
  7066. lt_prog_compiler_pic='-KPIC'
  7067. lt_prog_compiler_static='-Bstatic'
  7068. ;;
  7069. *nto* | *qnx*)
  7070. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7071. # it will coredump.
  7072. lt_prog_compiler_pic='-fPIC -shared'
  7073. ;;
  7074. osf3* | osf4* | osf5*)
  7075. lt_prog_compiler_wl='-Wl,'
  7076. # All OSF/1 code is PIC.
  7077. lt_prog_compiler_static='-non_shared'
  7078. ;;
  7079. rdos*)
  7080. lt_prog_compiler_static='-non_shared'
  7081. ;;
  7082. solaris*)
  7083. lt_prog_compiler_pic='-KPIC'
  7084. lt_prog_compiler_static='-Bstatic'
  7085. case $cc_basename in
  7086. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7087. lt_prog_compiler_wl='-Qoption ld ';;
  7088. *)
  7089. lt_prog_compiler_wl='-Wl,';;
  7090. esac
  7091. ;;
  7092. sunos4*)
  7093. lt_prog_compiler_wl='-Qoption ld '
  7094. lt_prog_compiler_pic='-PIC'
  7095. lt_prog_compiler_static='-Bstatic'
  7096. ;;
  7097. sysv4 | sysv4.2uw2* | sysv4.3*)
  7098. lt_prog_compiler_wl='-Wl,'
  7099. lt_prog_compiler_pic='-KPIC'
  7100. lt_prog_compiler_static='-Bstatic'
  7101. ;;
  7102. sysv4*MP*)
  7103. if test -d /usr/nec; then
  7104. lt_prog_compiler_pic='-Kconform_pic'
  7105. lt_prog_compiler_static='-Bstatic'
  7106. fi
  7107. ;;
  7108. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7109. lt_prog_compiler_wl='-Wl,'
  7110. lt_prog_compiler_pic='-KPIC'
  7111. lt_prog_compiler_static='-Bstatic'
  7112. ;;
  7113. unicos*)
  7114. lt_prog_compiler_wl='-Wl,'
  7115. lt_prog_compiler_can_build_shared=no
  7116. ;;
  7117. uts4*)
  7118. lt_prog_compiler_pic='-pic'
  7119. lt_prog_compiler_static='-Bstatic'
  7120. ;;
  7121. *)
  7122. lt_prog_compiler_can_build_shared=no
  7123. ;;
  7124. esac
  7125. fi
  7126. case $host_os in
  7127. # For platforms that do not support PIC, -DPIC is meaningless:
  7128. *djgpp*)
  7129. lt_prog_compiler_pic=
  7130. ;;
  7131. *)
  7132. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7133. ;;
  7134. esac
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7136. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7137. if ${lt_cv_prog_compiler_pic+:} false; then :
  7138. $as_echo_n "(cached) " >&6
  7139. else
  7140. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7141. fi
  7142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7143. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7144. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7145. #
  7146. # Check to make sure the PIC flag actually works.
  7147. #
  7148. if test -n "$lt_prog_compiler_pic"; then
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7150. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7151. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7152. $as_echo_n "(cached) " >&6
  7153. else
  7154. lt_cv_prog_compiler_pic_works=no
  7155. ac_outfile=conftest.$ac_objext
  7156. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7157. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7158. # Insert the option either (1) after the last *FLAGS variable, or
  7159. # (2) before a word containing "conftest.", or (3) at the end.
  7160. # Note that $ac_compile itself does not contain backslashes and begins
  7161. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7162. # The option is referenced via a variable to avoid confusing sed.
  7163. lt_compile=`echo "$ac_compile" | $SED \
  7164. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7165. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7166. -e 's:$: $lt_compiler_flag:'`
  7167. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7168. (eval "$lt_compile" 2>conftest.err)
  7169. ac_status=$?
  7170. cat conftest.err >&5
  7171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7172. if (exit $ac_status) && test -s "$ac_outfile"; then
  7173. # The compiler can only warn and ignore the option if not recognized
  7174. # So say no if there are warnings other than the usual output.
  7175. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7176. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7177. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7178. lt_cv_prog_compiler_pic_works=yes
  7179. fi
  7180. fi
  7181. $RM conftest*
  7182. fi
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7184. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7185. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7186. case $lt_prog_compiler_pic in
  7187. "" | " "*) ;;
  7188. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7189. esac
  7190. else
  7191. lt_prog_compiler_pic=
  7192. lt_prog_compiler_can_build_shared=no
  7193. fi
  7194. fi
  7195. #
  7196. # Check to make sure the static flag actually works.
  7197. #
  7198. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7200. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7201. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7202. $as_echo_n "(cached) " >&6
  7203. else
  7204. lt_cv_prog_compiler_static_works=no
  7205. save_LDFLAGS=$LDFLAGS
  7206. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7207. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7208. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7209. # The linker can only warn and ignore the option if not recognized
  7210. # So say no if there are warnings
  7211. if test -s conftest.err; then
  7212. # Append any errors to the config.log.
  7213. cat conftest.err 1>&5
  7214. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7215. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7216. if diff conftest.exp conftest.er2 >/dev/null; then
  7217. lt_cv_prog_compiler_static_works=yes
  7218. fi
  7219. else
  7220. lt_cv_prog_compiler_static_works=yes
  7221. fi
  7222. fi
  7223. $RM -r conftest*
  7224. LDFLAGS=$save_LDFLAGS
  7225. fi
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7227. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7228. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7229. :
  7230. else
  7231. lt_prog_compiler_static=
  7232. fi
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7234. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7235. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. lt_cv_prog_compiler_c_o=no
  7239. $RM -r conftest 2>/dev/null
  7240. mkdir conftest
  7241. cd conftest
  7242. mkdir out
  7243. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7244. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7245. # Insert the option either (1) after the last *FLAGS variable, or
  7246. # (2) before a word containing "conftest.", or (3) at the end.
  7247. # Note that $ac_compile itself does not contain backslashes and begins
  7248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7249. lt_compile=`echo "$ac_compile" | $SED \
  7250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7252. -e 's:$: $lt_compiler_flag:'`
  7253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7254. (eval "$lt_compile" 2>out/conftest.err)
  7255. ac_status=$?
  7256. cat out/conftest.err >&5
  7257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7258. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7259. then
  7260. # The compiler can only warn and ignore the option if not recognized
  7261. # So say no if there are warnings
  7262. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7263. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7264. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7265. lt_cv_prog_compiler_c_o=yes
  7266. fi
  7267. fi
  7268. chmod u+w . 2>&5
  7269. $RM conftest*
  7270. # SGI C++ compiler will create directory out/ii_files/ for
  7271. # template instantiation
  7272. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7273. $RM out/* && rmdir out
  7274. cd ..
  7275. $RM -r conftest
  7276. $RM conftest*
  7277. fi
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7279. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7281. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7282. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. lt_cv_prog_compiler_c_o=no
  7286. $RM -r conftest 2>/dev/null
  7287. mkdir conftest
  7288. cd conftest
  7289. mkdir out
  7290. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7291. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7292. # Insert the option either (1) after the last *FLAGS variable, or
  7293. # (2) before a word containing "conftest.", or (3) at the end.
  7294. # Note that $ac_compile itself does not contain backslashes and begins
  7295. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7296. lt_compile=`echo "$ac_compile" | $SED \
  7297. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7298. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7299. -e 's:$: $lt_compiler_flag:'`
  7300. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7301. (eval "$lt_compile" 2>out/conftest.err)
  7302. ac_status=$?
  7303. cat out/conftest.err >&5
  7304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7305. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7306. then
  7307. # The compiler can only warn and ignore the option if not recognized
  7308. # So say no if there are warnings
  7309. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7310. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7311. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7312. lt_cv_prog_compiler_c_o=yes
  7313. fi
  7314. fi
  7315. chmod u+w . 2>&5
  7316. $RM conftest*
  7317. # SGI C++ compiler will create directory out/ii_files/ for
  7318. # template instantiation
  7319. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7320. $RM out/* && rmdir out
  7321. cd ..
  7322. $RM -r conftest
  7323. $RM conftest*
  7324. fi
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7326. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7327. hard_links=nottested
  7328. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7329. # do not overwrite the value of need_locks provided by the user
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7331. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7332. hard_links=yes
  7333. $RM conftest*
  7334. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7335. touch conftest.a
  7336. ln conftest.a conftest.b 2>&5 || hard_links=no
  7337. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7339. $as_echo "$hard_links" >&6; }
  7340. if test no = "$hard_links"; then
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7342. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7343. need_locks=warn
  7344. fi
  7345. else
  7346. need_locks=no
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7349. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7350. runpath_var=
  7351. allow_undefined_flag=
  7352. always_export_symbols=no
  7353. archive_cmds=
  7354. archive_expsym_cmds=
  7355. compiler_needs_object=no
  7356. enable_shared_with_static_runtimes=no
  7357. export_dynamic_flag_spec=
  7358. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7359. hardcode_automatic=no
  7360. hardcode_direct=no
  7361. hardcode_direct_absolute=no
  7362. hardcode_libdir_flag_spec=
  7363. hardcode_libdir_separator=
  7364. hardcode_minus_L=no
  7365. hardcode_shlibpath_var=unsupported
  7366. inherit_rpath=no
  7367. link_all_deplibs=unknown
  7368. module_cmds=
  7369. module_expsym_cmds=
  7370. old_archive_from_new_cmds=
  7371. old_archive_from_expsyms_cmds=
  7372. thread_safe_flag_spec=
  7373. whole_archive_flag_spec=
  7374. # include_expsyms should be a list of space-separated symbols to be *always*
  7375. # included in the symbol list
  7376. include_expsyms=
  7377. # exclude_expsyms can be an extended regexp of symbols to exclude
  7378. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7379. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7380. # as well as any symbol that contains 'd'.
  7381. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7382. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7383. # platforms (ab)use it in PIC code, but their linkers get confused if
  7384. # the symbol is explicitly referenced. Since portable code cannot
  7385. # rely on this symbol name, it's probably fine to never include it in
  7386. # preloaded symbol tables.
  7387. # Exclude shared library initialization/finalization symbols.
  7388. extract_expsyms_cmds=
  7389. case $host_os in
  7390. cygwin* | mingw* | pw32* | cegcc*)
  7391. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7392. # When not using gcc, we currently assume that we are using
  7393. # Microsoft Visual C++.
  7394. if test yes != "$GCC"; then
  7395. with_gnu_ld=no
  7396. fi
  7397. ;;
  7398. interix*)
  7399. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7400. with_gnu_ld=yes
  7401. ;;
  7402. openbsd* | bitrig*)
  7403. with_gnu_ld=no
  7404. ;;
  7405. esac
  7406. ld_shlibs=yes
  7407. # On some targets, GNU ld is compatible enough with the native linker
  7408. # that we're better off using the native interface for both.
  7409. lt_use_gnu_ld_interface=no
  7410. if test yes = "$with_gnu_ld"; then
  7411. case $host_os in
  7412. aix*)
  7413. # The AIX port of GNU ld has always aspired to compatibility
  7414. # with the native linker. However, as the warning in the GNU ld
  7415. # block says, versions before 2.19.5* couldn't really create working
  7416. # shared libraries, regardless of the interface used.
  7417. case `$LD -v 2>&1` in
  7418. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7419. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7420. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7421. *)
  7422. lt_use_gnu_ld_interface=yes
  7423. ;;
  7424. esac
  7425. ;;
  7426. *)
  7427. lt_use_gnu_ld_interface=yes
  7428. ;;
  7429. esac
  7430. fi
  7431. if test yes = "$lt_use_gnu_ld_interface"; then
  7432. # If archive_cmds runs LD, not CC, wlarc should be empty
  7433. wlarc='$wl'
  7434. # Set some defaults for GNU ld with shared library support. These
  7435. # are reset later if shared libraries are not supported. Putting them
  7436. # here allows them to be overridden if necessary.
  7437. runpath_var=LD_RUN_PATH
  7438. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7439. export_dynamic_flag_spec='$wl--export-dynamic'
  7440. # ancient GNU ld didn't support --whole-archive et. al.
  7441. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7442. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7443. else
  7444. whole_archive_flag_spec=
  7445. fi
  7446. supports_anon_versioning=no
  7447. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7448. *GNU\ gold*) supports_anon_versioning=yes ;;
  7449. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7450. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7451. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7452. *\ 2.11.*) ;; # other 2.11 versions
  7453. *) supports_anon_versioning=yes ;;
  7454. esac
  7455. # See if GNU ld supports shared libraries.
  7456. case $host_os in
  7457. aix[3-9]*)
  7458. # On AIX/PPC, the GNU linker is very broken
  7459. if test ia64 != "$host_cpu"; then
  7460. ld_shlibs=no
  7461. cat <<_LT_EOF 1>&2
  7462. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7463. *** to be unable to reliably create shared libraries on AIX.
  7464. *** Therefore, libtool is disabling shared libraries support. If you
  7465. *** really care for shared libraries, you may want to install binutils
  7466. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7467. *** You will then need to restart the configuration process.
  7468. _LT_EOF
  7469. fi
  7470. ;;
  7471. amigaos*)
  7472. case $host_cpu in
  7473. powerpc)
  7474. # see comment about AmigaOS4 .so support
  7475. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7476. archive_expsym_cmds=''
  7477. ;;
  7478. m68k)
  7479. 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)'
  7480. hardcode_libdir_flag_spec='-L$libdir'
  7481. hardcode_minus_L=yes
  7482. ;;
  7483. esac
  7484. ;;
  7485. beos*)
  7486. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7487. allow_undefined_flag=unsupported
  7488. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7489. # support --undefined. This deserves some investigation. FIXME
  7490. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7491. else
  7492. ld_shlibs=no
  7493. fi
  7494. ;;
  7495. cygwin* | mingw* | pw32* | cegcc*)
  7496. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7497. # as there is no search path for DLLs.
  7498. hardcode_libdir_flag_spec='-L$libdir'
  7499. export_dynamic_flag_spec='$wl--export-all-symbols'
  7500. allow_undefined_flag=unsupported
  7501. always_export_symbols=no
  7502. enable_shared_with_static_runtimes=yes
  7503. 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'
  7504. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7505. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7506. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7507. # If the export-symbols file already is a .def file, use it as
  7508. # is; otherwise, prepend EXPORTS...
  7509. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7510. cp $export_symbols $output_objdir/$soname.def;
  7511. else
  7512. echo EXPORTS > $output_objdir/$soname.def;
  7513. cat $export_symbols >> $output_objdir/$soname.def;
  7514. fi~
  7515. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7516. else
  7517. ld_shlibs=no
  7518. fi
  7519. ;;
  7520. haiku*)
  7521. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7522. link_all_deplibs=yes
  7523. ;;
  7524. os2*)
  7525. hardcode_libdir_flag_spec='-L$libdir'
  7526. hardcode_minus_L=yes
  7527. allow_undefined_flag=unsupported
  7528. shrext_cmds=.dll
  7529. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7530. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7531. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7532. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7533. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7534. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7535. emximp -o $lib $output_objdir/$libname.def'
  7536. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7537. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7538. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7539. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7540. prefix_cmds="$SED"~
  7541. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7542. prefix_cmds="$prefix_cmds -e 1d";
  7543. fi~
  7544. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7545. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7546. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7547. emximp -o $lib $output_objdir/$libname.def'
  7548. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7549. enable_shared_with_static_runtimes=yes
  7550. ;;
  7551. interix[3-9]*)
  7552. hardcode_direct=no
  7553. hardcode_shlibpath_var=no
  7554. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7555. export_dynamic_flag_spec='$wl-E'
  7556. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7557. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7558. # default) and relocated if they conflict, which is a slow very memory
  7559. # consuming and fragmenting process. To avoid this, we pick a random,
  7560. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7561. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7562. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7563. 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'
  7564. ;;
  7565. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7566. tmp_diet=no
  7567. if test linux-dietlibc = "$host_os"; then
  7568. case $cc_basename in
  7569. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7570. esac
  7571. fi
  7572. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7573. && test no = "$tmp_diet"
  7574. then
  7575. tmp_addflag=' $pic_flag'
  7576. tmp_sharedflag='-shared'
  7577. case $cc_basename,$host_cpu in
  7578. pgcc*) # Portland Group C compiler
  7579. 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'
  7580. tmp_addflag=' $pic_flag'
  7581. ;;
  7582. pgf77* | pgf90* | pgf95* | pgfortran*)
  7583. # Portland Group f77 and f90 compilers
  7584. 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'
  7585. tmp_addflag=' $pic_flag -Mnomain' ;;
  7586. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7587. tmp_addflag=' -i_dynamic' ;;
  7588. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7589. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7590. ifc* | ifort*) # Intel Fortran compiler
  7591. tmp_addflag=' -nofor_main' ;;
  7592. lf95*) # Lahey Fortran 8.1
  7593. whole_archive_flag_spec=
  7594. tmp_sharedflag='--shared' ;;
  7595. nagfor*) # NAGFOR 5.3
  7596. tmp_sharedflag='-Wl,-shared' ;;
  7597. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7598. tmp_sharedflag='-qmkshrobj'
  7599. tmp_addflag= ;;
  7600. nvcc*) # Cuda Compiler Driver 2.2
  7601. 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'
  7602. compiler_needs_object=yes
  7603. ;;
  7604. esac
  7605. case `$CC -V 2>&1 | sed 5q` in
  7606. *Sun\ C*) # Sun C 5.9
  7607. 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'
  7608. compiler_needs_object=yes
  7609. tmp_sharedflag='-G' ;;
  7610. *Sun\ F*) # Sun Fortran 8.3
  7611. tmp_sharedflag='-G' ;;
  7612. esac
  7613. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7614. if test yes = "$supports_anon_versioning"; then
  7615. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7616. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7617. echo "local: *; };" >> $output_objdir/$libname.ver~
  7618. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  7619. fi
  7620. case $cc_basename in
  7621. tcc*)
  7622. export_dynamic_flag_spec='-rdynamic'
  7623. ;;
  7624. xlf* | bgf* | bgxlf* | mpixlf*)
  7625. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7626. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7627. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7628. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7629. if test yes = "$supports_anon_versioning"; then
  7630. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7631. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7632. echo "local: *; };" >> $output_objdir/$libname.ver~
  7633. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7634. fi
  7635. ;;
  7636. esac
  7637. else
  7638. ld_shlibs=no
  7639. fi
  7640. ;;
  7641. netbsd*)
  7642. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7643. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7644. wlarc=
  7645. else
  7646. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7647. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7648. fi
  7649. ;;
  7650. solaris*)
  7651. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7652. ld_shlibs=no
  7653. cat <<_LT_EOF 1>&2
  7654. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7655. *** create shared libraries on Solaris systems. Therefore, libtool
  7656. *** is disabling shared libraries support. We urge you to upgrade GNU
  7657. *** binutils to release 2.9.1 or newer. Another option is to modify
  7658. *** your PATH or compiler configuration so that the native linker is
  7659. *** used, and then restart.
  7660. _LT_EOF
  7661. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7662. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7663. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7664. else
  7665. ld_shlibs=no
  7666. fi
  7667. ;;
  7668. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7669. case `$LD -v 2>&1` in
  7670. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7671. ld_shlibs=no
  7672. cat <<_LT_EOF 1>&2
  7673. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  7674. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7675. *** is disabling shared libraries support. We urge you to upgrade GNU
  7676. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7677. *** your PATH or compiler configuration so that the native linker is
  7678. *** used, and then restart.
  7679. _LT_EOF
  7680. ;;
  7681. *)
  7682. # For security reasons, it is highly recommended that you always
  7683. # use absolute paths for naming shared libraries, and exclude the
  7684. # DT_RUNPATH tag from executables and libraries. But doing so
  7685. # requires that you compile everything twice, which is a pain.
  7686. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7687. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7688. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7689. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7690. else
  7691. ld_shlibs=no
  7692. fi
  7693. ;;
  7694. esac
  7695. ;;
  7696. sunos4*)
  7697. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7698. wlarc=
  7699. hardcode_direct=yes
  7700. hardcode_shlibpath_var=no
  7701. ;;
  7702. *)
  7703. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7704. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7705. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7706. else
  7707. ld_shlibs=no
  7708. fi
  7709. ;;
  7710. esac
  7711. if test no = "$ld_shlibs"; then
  7712. runpath_var=
  7713. hardcode_libdir_flag_spec=
  7714. export_dynamic_flag_spec=
  7715. whole_archive_flag_spec=
  7716. fi
  7717. else
  7718. # PORTME fill in a description of your system's linker (not GNU ld)
  7719. case $host_os in
  7720. aix3*)
  7721. allow_undefined_flag=unsupported
  7722. always_export_symbols=yes
  7723. 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'
  7724. # Note: this linker hardcodes the directories in LIBPATH if there
  7725. # are no directories specified by -L.
  7726. hardcode_minus_L=yes
  7727. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  7728. # Neither direct hardcoding nor static linking is supported with a
  7729. # broken collect2.
  7730. hardcode_direct=unsupported
  7731. fi
  7732. ;;
  7733. aix[4-9]*)
  7734. if test ia64 = "$host_cpu"; then
  7735. # On IA64, the linker does run time linking by default, so we don't
  7736. # have to do anything special.
  7737. aix_use_runtimelinking=no
  7738. exp_sym_flag='-Bexport'
  7739. no_entry_flag=
  7740. else
  7741. # If we're using GNU nm, then we don't want the "-C" option.
  7742. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  7743. # Without the "-l" option, or with the "-B" option, AIX nm treats
  7744. # weak defined symbols like other global defined symbols, whereas
  7745. # GNU nm marks them as "W".
  7746. # While the 'weak' keyword is ignored in the Export File, we need
  7747. # it in the Import File for the 'aix-soname' feature, so we have
  7748. # to replace the "-B" option with "-P" for AIX nm.
  7749. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7750. 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'
  7751. else
  7752. 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'
  7753. fi
  7754. aix_use_runtimelinking=no
  7755. # Test if we are trying to use run time linking or normal
  7756. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7757. # have runtime linking enabled, and use it for executables.
  7758. # For shared libraries, we enable/disable runtime linking
  7759. # depending on the kind of the shared library created -
  7760. # when "with_aix_soname,aix_use_runtimelinking" is:
  7761. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  7762. # "aix,yes" lib.so shared, rtl:yes, for executables
  7763. # lib.a static archive
  7764. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  7765. # lib.a(lib.so.V) shared, rtl:no, for executables
  7766. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  7767. # lib.a(lib.so.V) shared, rtl:no
  7768. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  7769. # lib.a static archive
  7770. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7771. for ld_flag in $LDFLAGS; do
  7772. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  7773. aix_use_runtimelinking=yes
  7774. break
  7775. fi
  7776. done
  7777. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  7778. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  7779. # so we don't have lib.a shared libs to link our executables.
  7780. # We have to force runtime linking in this case.
  7781. aix_use_runtimelinking=yes
  7782. LDFLAGS="$LDFLAGS -Wl,-brtl"
  7783. fi
  7784. ;;
  7785. esac
  7786. exp_sym_flag='-bexport'
  7787. no_entry_flag='-bnoentry'
  7788. fi
  7789. # When large executables or shared objects are built, AIX ld can
  7790. # have problems creating the table of contents. If linking a library
  7791. # or program results in "error TOC overflow" add -mminimal-toc to
  7792. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7793. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7794. archive_cmds=''
  7795. hardcode_direct=yes
  7796. hardcode_direct_absolute=yes
  7797. hardcode_libdir_separator=':'
  7798. link_all_deplibs=yes
  7799. file_list_spec='$wl-f,'
  7800. case $with_aix_soname,$aix_use_runtimelinking in
  7801. aix,*) ;; # traditional, no import file
  7802. svr4,* | *,yes) # use import file
  7803. # The Import File defines what to hardcode.
  7804. hardcode_direct=no
  7805. hardcode_direct_absolute=no
  7806. ;;
  7807. esac
  7808. if test yes = "$GCC"; then
  7809. case $host_os in aix4.[012]|aix4.[012].*)
  7810. # We only want to do this on AIX 4.2 and lower, the check
  7811. # below for broken collect2 doesn't work under 4.3+
  7812. collect2name=`$CC -print-prog-name=collect2`
  7813. if test -f "$collect2name" &&
  7814. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7815. then
  7816. # We have reworked collect2
  7817. :
  7818. else
  7819. # We have old collect2
  7820. hardcode_direct=unsupported
  7821. # It fails to find uninstalled libraries when the uninstalled
  7822. # path is not listed in the libpath. Setting hardcode_minus_L
  7823. # to unsupported forces relinking
  7824. hardcode_minus_L=yes
  7825. hardcode_libdir_flag_spec='-L$libdir'
  7826. hardcode_libdir_separator=
  7827. fi
  7828. ;;
  7829. esac
  7830. shared_flag='-shared'
  7831. if test yes = "$aix_use_runtimelinking"; then
  7832. shared_flag="$shared_flag "'$wl-G'
  7833. fi
  7834. # Need to ensure runtime linking is disabled for the traditional
  7835. # shared library, or the linker may eventually find shared libraries
  7836. # /with/ Import File - we do not want to mix them.
  7837. shared_flag_aix='-shared'
  7838. shared_flag_svr4='-shared $wl-G'
  7839. else
  7840. # not using gcc
  7841. if test ia64 = "$host_cpu"; then
  7842. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7843. # chokes on -Wl,-G. The following line is correct:
  7844. shared_flag='-G'
  7845. else
  7846. if test yes = "$aix_use_runtimelinking"; then
  7847. shared_flag='$wl-G'
  7848. else
  7849. shared_flag='$wl-bM:SRE'
  7850. fi
  7851. shared_flag_aix='$wl-bM:SRE'
  7852. shared_flag_svr4='$wl-G'
  7853. fi
  7854. fi
  7855. export_dynamic_flag_spec='$wl-bexpall'
  7856. # It seems that -bexpall does not export symbols beginning with
  7857. # underscore (_), so it is better to generate a list of symbols to export.
  7858. always_export_symbols=yes
  7859. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  7860. # Warning - without using the other runtime loading flags (-brtl),
  7861. # -berok will link without error, but may produce a broken library.
  7862. allow_undefined_flag='-berok'
  7863. # Determine the default libpath from the value encoded in an
  7864. # empty executable.
  7865. if test set = "${lt_cv_aix_libpath+set}"; then
  7866. aix_libpath=$lt_cv_aix_libpath
  7867. else
  7868. if ${lt_cv_aix_libpath_+:} false; then :
  7869. $as_echo_n "(cached) " >&6
  7870. else
  7871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7872. /* end confdefs.h. */
  7873. int
  7874. main ()
  7875. {
  7876. ;
  7877. return 0;
  7878. }
  7879. _ACEOF
  7880. if ac_fn_c_try_link "$LINENO"; then :
  7881. lt_aix_libpath_sed='
  7882. /Import File Strings/,/^$/ {
  7883. /^0/ {
  7884. s/^0 *\([^ ]*\) *$/\1/
  7885. p
  7886. }
  7887. }'
  7888. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7889. # Check for a 64-bit object if we didn't find anything.
  7890. if test -z "$lt_cv_aix_libpath_"; then
  7891. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7892. fi
  7893. fi
  7894. rm -f core conftest.err conftest.$ac_objext \
  7895. conftest$ac_exeext conftest.$ac_ext
  7896. if test -z "$lt_cv_aix_libpath_"; then
  7897. lt_cv_aix_libpath_=/usr/lib:/lib
  7898. fi
  7899. fi
  7900. aix_libpath=$lt_cv_aix_libpath_
  7901. fi
  7902. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  7903. 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
  7904. else
  7905. if test ia64 = "$host_cpu"; then
  7906. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  7907. allow_undefined_flag="-z nodefs"
  7908. 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"
  7909. else
  7910. # Determine the default libpath from the value encoded in an
  7911. # empty executable.
  7912. if test set = "${lt_cv_aix_libpath+set}"; then
  7913. aix_libpath=$lt_cv_aix_libpath
  7914. else
  7915. if ${lt_cv_aix_libpath_+:} false; then :
  7916. $as_echo_n "(cached) " >&6
  7917. else
  7918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7919. /* end confdefs.h. */
  7920. int
  7921. main ()
  7922. {
  7923. ;
  7924. return 0;
  7925. }
  7926. _ACEOF
  7927. if ac_fn_c_try_link "$LINENO"; then :
  7928. lt_aix_libpath_sed='
  7929. /Import File Strings/,/^$/ {
  7930. /^0/ {
  7931. s/^0 *\([^ ]*\) *$/\1/
  7932. p
  7933. }
  7934. }'
  7935. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7936. # Check for a 64-bit object if we didn't find anything.
  7937. if test -z "$lt_cv_aix_libpath_"; then
  7938. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7939. fi
  7940. fi
  7941. rm -f core conftest.err conftest.$ac_objext \
  7942. conftest$ac_exeext conftest.$ac_ext
  7943. if test -z "$lt_cv_aix_libpath_"; then
  7944. lt_cv_aix_libpath_=/usr/lib:/lib
  7945. fi
  7946. fi
  7947. aix_libpath=$lt_cv_aix_libpath_
  7948. fi
  7949. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  7950. # Warning - without using the other run time loading flags,
  7951. # -berok will link without error, but may produce a broken library.
  7952. no_undefined_flag=' $wl-bernotok'
  7953. allow_undefined_flag=' $wl-berok'
  7954. if test yes = "$with_gnu_ld"; then
  7955. # We only use this code for GNU lds that support --whole-archive.
  7956. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  7957. else
  7958. # Exported symbols can be pulled into shared objects from archives
  7959. whole_archive_flag_spec='$convenience'
  7960. fi
  7961. archive_cmds_need_lc=yes
  7962. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  7963. # -brtl affects multiple linker settings, -berok does not and is overridden later
  7964. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  7965. if test svr4 != "$with_aix_soname"; then
  7966. # This is similar to how AIX traditionally builds its shared libraries.
  7967. 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'
  7968. fi
  7969. if test aix != "$with_aix_soname"; then
  7970. 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'
  7971. else
  7972. # used by -dlpreopen to get the symbols
  7973. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  7974. fi
  7975. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  7976. fi
  7977. fi
  7978. ;;
  7979. amigaos*)
  7980. case $host_cpu in
  7981. powerpc)
  7982. # see comment about AmigaOS4 .so support
  7983. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7984. archive_expsym_cmds=''
  7985. ;;
  7986. m68k)
  7987. 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)'
  7988. hardcode_libdir_flag_spec='-L$libdir'
  7989. hardcode_minus_L=yes
  7990. ;;
  7991. esac
  7992. ;;
  7993. bsdi[45]*)
  7994. export_dynamic_flag_spec=-rdynamic
  7995. ;;
  7996. cygwin* | mingw* | pw32* | cegcc*)
  7997. # When not using gcc, we currently assume that we are using
  7998. # Microsoft Visual C++.
  7999. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8000. # no search path for DLLs.
  8001. case $cc_basename in
  8002. cl*)
  8003. # Native MSVC
  8004. hardcode_libdir_flag_spec=' '
  8005. allow_undefined_flag=unsupported
  8006. always_export_symbols=yes
  8007. file_list_spec='@'
  8008. # Tell ltmain to make .lib files, not .a files.
  8009. libext=lib
  8010. # Tell ltmain to make .dll files, not .so files.
  8011. shrext_cmds=.dll
  8012. # FIXME: Setting linknames here is a bad hack.
  8013. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8014. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8015. cp "$export_symbols" "$output_objdir/$soname.def";
  8016. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8017. else
  8018. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8019. fi~
  8020. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8021. linknames='
  8022. # The linker will not automatically build a static lib if we build a DLL.
  8023. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8024. enable_shared_with_static_runtimes=yes
  8025. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8026. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8027. # Don't use ranlib
  8028. old_postinstall_cmds='chmod 644 $oldlib'
  8029. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8030. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8031. case $lt_outputfile in
  8032. *.exe|*.EXE) ;;
  8033. *)
  8034. lt_outputfile=$lt_outputfile.exe
  8035. lt_tool_outputfile=$lt_tool_outputfile.exe
  8036. ;;
  8037. esac~
  8038. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8039. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8040. $RM "$lt_outputfile.manifest";
  8041. fi'
  8042. ;;
  8043. *)
  8044. # Assume MSVC wrapper
  8045. hardcode_libdir_flag_spec=' '
  8046. allow_undefined_flag=unsupported
  8047. # Tell ltmain to make .lib files, not .a files.
  8048. libext=lib
  8049. # Tell ltmain to make .dll files, not .so files.
  8050. shrext_cmds=.dll
  8051. # FIXME: Setting linknames here is a bad hack.
  8052. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8053. # The linker will automatically build a .lib file if we build a DLL.
  8054. old_archive_from_new_cmds='true'
  8055. # FIXME: Should let the user specify the lib program.
  8056. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8057. enable_shared_with_static_runtimes=yes
  8058. ;;
  8059. esac
  8060. ;;
  8061. darwin* | rhapsody*)
  8062. archive_cmds_need_lc=no
  8063. hardcode_direct=no
  8064. hardcode_automatic=yes
  8065. hardcode_shlibpath_var=unsupported
  8066. if test yes = "$lt_cv_ld_force_load"; then
  8067. 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\"`'
  8068. else
  8069. whole_archive_flag_spec=''
  8070. fi
  8071. link_all_deplibs=yes
  8072. allow_undefined_flag=$_lt_dar_allow_undefined
  8073. case $cc_basename in
  8074. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8075. *) _lt_dar_can_shared=$GCC ;;
  8076. esac
  8077. if test yes = "$_lt_dar_can_shared"; then
  8078. output_verbose_link_cmd=func_echo_all
  8079. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8080. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8081. 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"
  8082. 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"
  8083. else
  8084. ld_shlibs=no
  8085. fi
  8086. ;;
  8087. dgux*)
  8088. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8089. hardcode_libdir_flag_spec='-L$libdir'
  8090. hardcode_shlibpath_var=no
  8091. ;;
  8092. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8093. # support. Future versions do this automatically, but an explicit c++rt0.o
  8094. # does not break anything, and helps significantly (at the cost of a little
  8095. # extra space).
  8096. freebsd2.2*)
  8097. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8098. hardcode_libdir_flag_spec='-R$libdir'
  8099. hardcode_direct=yes
  8100. hardcode_shlibpath_var=no
  8101. ;;
  8102. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8103. freebsd2.*)
  8104. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8105. hardcode_direct=yes
  8106. hardcode_minus_L=yes
  8107. hardcode_shlibpath_var=no
  8108. ;;
  8109. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8110. freebsd* | dragonfly*)
  8111. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8112. hardcode_libdir_flag_spec='-R$libdir'
  8113. hardcode_direct=yes
  8114. hardcode_shlibpath_var=no
  8115. ;;
  8116. hpux9*)
  8117. if test yes = "$GCC"; then
  8118. 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'
  8119. else
  8120. 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'
  8121. fi
  8122. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8123. hardcode_libdir_separator=:
  8124. hardcode_direct=yes
  8125. # hardcode_minus_L: Not really in the search PATH,
  8126. # but as the default location of the library.
  8127. hardcode_minus_L=yes
  8128. export_dynamic_flag_spec='$wl-E'
  8129. ;;
  8130. hpux10*)
  8131. if test yes,no = "$GCC,$with_gnu_ld"; then
  8132. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8133. else
  8134. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8135. fi
  8136. if test no = "$with_gnu_ld"; then
  8137. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8138. hardcode_libdir_separator=:
  8139. hardcode_direct=yes
  8140. hardcode_direct_absolute=yes
  8141. export_dynamic_flag_spec='$wl-E'
  8142. # hardcode_minus_L: Not really in the search PATH,
  8143. # but as the default location of the library.
  8144. hardcode_minus_L=yes
  8145. fi
  8146. ;;
  8147. hpux11*)
  8148. if test yes,no = "$GCC,$with_gnu_ld"; then
  8149. case $host_cpu in
  8150. hppa*64*)
  8151. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8152. ;;
  8153. ia64*)
  8154. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8155. ;;
  8156. *)
  8157. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8158. ;;
  8159. esac
  8160. else
  8161. case $host_cpu in
  8162. hppa*64*)
  8163. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8164. ;;
  8165. ia64*)
  8166. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8167. ;;
  8168. *)
  8169. # Older versions of the 11.00 compiler do not understand -b yet
  8170. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8172. $as_echo_n "checking if $CC understands -b... " >&6; }
  8173. if ${lt_cv_prog_compiler__b+:} false; then :
  8174. $as_echo_n "(cached) " >&6
  8175. else
  8176. lt_cv_prog_compiler__b=no
  8177. save_LDFLAGS=$LDFLAGS
  8178. LDFLAGS="$LDFLAGS -b"
  8179. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8180. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8181. # The linker can only warn and ignore the option if not recognized
  8182. # So say no if there are warnings
  8183. if test -s conftest.err; then
  8184. # Append any errors to the config.log.
  8185. cat conftest.err 1>&5
  8186. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8187. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8188. if diff conftest.exp conftest.er2 >/dev/null; then
  8189. lt_cv_prog_compiler__b=yes
  8190. fi
  8191. else
  8192. lt_cv_prog_compiler__b=yes
  8193. fi
  8194. fi
  8195. $RM -r conftest*
  8196. LDFLAGS=$save_LDFLAGS
  8197. fi
  8198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8199. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8200. if test yes = "$lt_cv_prog_compiler__b"; then
  8201. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8202. else
  8203. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8204. fi
  8205. ;;
  8206. esac
  8207. fi
  8208. if test no = "$with_gnu_ld"; then
  8209. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8210. hardcode_libdir_separator=:
  8211. case $host_cpu in
  8212. hppa*64*|ia64*)
  8213. hardcode_direct=no
  8214. hardcode_shlibpath_var=no
  8215. ;;
  8216. *)
  8217. hardcode_direct=yes
  8218. hardcode_direct_absolute=yes
  8219. export_dynamic_flag_spec='$wl-E'
  8220. # hardcode_minus_L: Not really in the search PATH,
  8221. # but as the default location of the library.
  8222. hardcode_minus_L=yes
  8223. ;;
  8224. esac
  8225. fi
  8226. ;;
  8227. irix5* | irix6* | nonstopux*)
  8228. if test yes = "$GCC"; then
  8229. 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'
  8230. # Try to use the -exported_symbol ld option, if it does not
  8231. # work, assume that -exports_file does not work either and
  8232. # implicitly export all symbols.
  8233. # This should be the same for all languages, so no per-tag cache variable.
  8234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8235. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8236. if ${lt_cv_irix_exported_symbol+:} false; then :
  8237. $as_echo_n "(cached) " >&6
  8238. else
  8239. save_LDFLAGS=$LDFLAGS
  8240. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8242. /* end confdefs.h. */
  8243. int foo (void) { return 0; }
  8244. _ACEOF
  8245. if ac_fn_c_try_link "$LINENO"; then :
  8246. lt_cv_irix_exported_symbol=yes
  8247. else
  8248. lt_cv_irix_exported_symbol=no
  8249. fi
  8250. rm -f core conftest.err conftest.$ac_objext \
  8251. conftest$ac_exeext conftest.$ac_ext
  8252. LDFLAGS=$save_LDFLAGS
  8253. fi
  8254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8255. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8256. if test yes = "$lt_cv_irix_exported_symbol"; then
  8257. 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'
  8258. fi
  8259. else
  8260. 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'
  8261. 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'
  8262. fi
  8263. archive_cmds_need_lc='no'
  8264. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8265. hardcode_libdir_separator=:
  8266. inherit_rpath=yes
  8267. link_all_deplibs=yes
  8268. ;;
  8269. linux*)
  8270. case $cc_basename in
  8271. tcc*)
  8272. # Fabrice Bellard et al's Tiny C Compiler
  8273. ld_shlibs=yes
  8274. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8275. ;;
  8276. esac
  8277. ;;
  8278. netbsd*)
  8279. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8280. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8281. else
  8282. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8283. fi
  8284. hardcode_libdir_flag_spec='-R$libdir'
  8285. hardcode_direct=yes
  8286. hardcode_shlibpath_var=no
  8287. ;;
  8288. newsos6)
  8289. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8290. hardcode_direct=yes
  8291. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8292. hardcode_libdir_separator=:
  8293. hardcode_shlibpath_var=no
  8294. ;;
  8295. *nto* | *qnx*)
  8296. ;;
  8297. openbsd* | bitrig*)
  8298. if test -f /usr/libexec/ld.so; then
  8299. hardcode_direct=yes
  8300. hardcode_shlibpath_var=no
  8301. hardcode_direct_absolute=yes
  8302. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8303. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8304. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8305. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8306. export_dynamic_flag_spec='$wl-E'
  8307. else
  8308. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8309. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8310. fi
  8311. else
  8312. ld_shlibs=no
  8313. fi
  8314. ;;
  8315. os2*)
  8316. hardcode_libdir_flag_spec='-L$libdir'
  8317. hardcode_minus_L=yes
  8318. allow_undefined_flag=unsupported
  8319. shrext_cmds=.dll
  8320. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8321. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8322. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8323. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8324. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8325. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8326. emximp -o $lib $output_objdir/$libname.def'
  8327. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8328. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8329. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8330. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8331. prefix_cmds="$SED"~
  8332. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8333. prefix_cmds="$prefix_cmds -e 1d";
  8334. fi~
  8335. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8336. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8337. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8338. emximp -o $lib $output_objdir/$libname.def'
  8339. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8340. enable_shared_with_static_runtimes=yes
  8341. ;;
  8342. osf3*)
  8343. if test yes = "$GCC"; then
  8344. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8345. 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'
  8346. else
  8347. allow_undefined_flag=' -expect_unresolved \*'
  8348. 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'
  8349. fi
  8350. archive_cmds_need_lc='no'
  8351. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8352. hardcode_libdir_separator=:
  8353. ;;
  8354. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8355. if test yes = "$GCC"; then
  8356. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8357. 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'
  8358. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8359. else
  8360. allow_undefined_flag=' -expect_unresolved \*'
  8361. 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'
  8362. 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~
  8363. $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'
  8364. # Both c and cxx compiler support -rpath directly
  8365. hardcode_libdir_flag_spec='-rpath $libdir'
  8366. fi
  8367. archive_cmds_need_lc='no'
  8368. hardcode_libdir_separator=:
  8369. ;;
  8370. solaris*)
  8371. no_undefined_flag=' -z defs'
  8372. if test yes = "$GCC"; then
  8373. wlarc='$wl'
  8374. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8375. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8376. $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'
  8377. else
  8378. case `$CC -V 2>&1` in
  8379. *"Compilers 5.0"*)
  8380. wlarc=''
  8381. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8382. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8383. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8384. ;;
  8385. *)
  8386. wlarc='$wl'
  8387. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8388. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8389. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8390. ;;
  8391. esac
  8392. fi
  8393. hardcode_libdir_flag_spec='-R$libdir'
  8394. hardcode_shlibpath_var=no
  8395. case $host_os in
  8396. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8397. *)
  8398. # The compiler driver will combine and reorder linker options,
  8399. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8400. # but is careful enough not to reorder.
  8401. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8402. if test yes = "$GCC"; then
  8403. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8404. else
  8405. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8406. fi
  8407. ;;
  8408. esac
  8409. link_all_deplibs=yes
  8410. ;;
  8411. sunos4*)
  8412. if test sequent = "$host_vendor"; then
  8413. # Use $CC to link under sequent, because it throws in some extra .o
  8414. # files that make .init and .fini sections work.
  8415. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8416. else
  8417. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8418. fi
  8419. hardcode_libdir_flag_spec='-L$libdir'
  8420. hardcode_direct=yes
  8421. hardcode_minus_L=yes
  8422. hardcode_shlibpath_var=no
  8423. ;;
  8424. sysv4)
  8425. case $host_vendor in
  8426. sni)
  8427. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8428. hardcode_direct=yes # is this really true???
  8429. ;;
  8430. siemens)
  8431. ## LD is ld it makes a PLAMLIB
  8432. ## CC just makes a GrossModule.
  8433. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8434. reload_cmds='$CC -r -o $output$reload_objs'
  8435. hardcode_direct=no
  8436. ;;
  8437. motorola)
  8438. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8439. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8440. ;;
  8441. esac
  8442. runpath_var='LD_RUN_PATH'
  8443. hardcode_shlibpath_var=no
  8444. ;;
  8445. sysv4.3*)
  8446. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8447. hardcode_shlibpath_var=no
  8448. export_dynamic_flag_spec='-Bexport'
  8449. ;;
  8450. sysv4*MP*)
  8451. if test -d /usr/nec; then
  8452. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8453. hardcode_shlibpath_var=no
  8454. runpath_var=LD_RUN_PATH
  8455. hardcode_runpath_var=yes
  8456. ld_shlibs=yes
  8457. fi
  8458. ;;
  8459. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8460. no_undefined_flag='$wl-z,text'
  8461. archive_cmds_need_lc=no
  8462. hardcode_shlibpath_var=no
  8463. runpath_var='LD_RUN_PATH'
  8464. if test yes = "$GCC"; then
  8465. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. else
  8468. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. fi
  8471. ;;
  8472. sysv5* | sco3.2v5* | sco5v6*)
  8473. # Note: We CANNOT use -z defs as we might desire, because we do not
  8474. # link with -lc, and that would cause any symbols used from libc to
  8475. # always be unresolved, which means just about no library would
  8476. # ever link correctly. If we're not using GNU ld we use -z text
  8477. # though, which does catch some bad symbols but isn't as heavy-handed
  8478. # as -z defs.
  8479. no_undefined_flag='$wl-z,text'
  8480. allow_undefined_flag='$wl-z,nodefs'
  8481. archive_cmds_need_lc=no
  8482. hardcode_shlibpath_var=no
  8483. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8484. hardcode_libdir_separator=':'
  8485. link_all_deplibs=yes
  8486. export_dynamic_flag_spec='$wl-Bexport'
  8487. runpath_var='LD_RUN_PATH'
  8488. if test yes = "$GCC"; then
  8489. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8490. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8491. else
  8492. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8493. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8494. fi
  8495. ;;
  8496. uts4*)
  8497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8498. hardcode_libdir_flag_spec='-L$libdir'
  8499. hardcode_shlibpath_var=no
  8500. ;;
  8501. *)
  8502. ld_shlibs=no
  8503. ;;
  8504. esac
  8505. if test sni = "$host_vendor"; then
  8506. case $host in
  8507. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8508. export_dynamic_flag_spec='$wl-Blargedynsym'
  8509. ;;
  8510. esac
  8511. fi
  8512. fi
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8514. $as_echo "$ld_shlibs" >&6; }
  8515. test no = "$ld_shlibs" && can_build_shared=no
  8516. with_gnu_ld=$with_gnu_ld
  8517. #
  8518. # Do we need to explicitly link libc?
  8519. #
  8520. case "x$archive_cmds_need_lc" in
  8521. x|xyes)
  8522. # Assume -lc should be added
  8523. archive_cmds_need_lc=yes
  8524. if test yes,yes = "$GCC,$enable_shared"; then
  8525. case $archive_cmds in
  8526. *'~'*)
  8527. # FIXME: we may have to deal with multi-command sequences.
  8528. ;;
  8529. '$CC '*)
  8530. # Test whether the compiler implicitly links with -lc since on some
  8531. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8532. # to ld, don't add -lc before -lgcc.
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8534. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8535. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8536. $as_echo_n "(cached) " >&6
  8537. else
  8538. $RM conftest*
  8539. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8540. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8541. (eval $ac_compile) 2>&5
  8542. ac_status=$?
  8543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8544. test $ac_status = 0; } 2>conftest.err; then
  8545. soname=conftest
  8546. lib=conftest
  8547. libobjs=conftest.$ac_objext
  8548. deplibs=
  8549. wl=$lt_prog_compiler_wl
  8550. pic_flag=$lt_prog_compiler_pic
  8551. compiler_flags=-v
  8552. linker_flags=-v
  8553. verstring=
  8554. output_objdir=.
  8555. libname=conftest
  8556. lt_save_allow_undefined_flag=$allow_undefined_flag
  8557. allow_undefined_flag=
  8558. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8559. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8560. ac_status=$?
  8561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8562. test $ac_status = 0; }
  8563. then
  8564. lt_cv_archive_cmds_need_lc=no
  8565. else
  8566. lt_cv_archive_cmds_need_lc=yes
  8567. fi
  8568. allow_undefined_flag=$lt_save_allow_undefined_flag
  8569. else
  8570. cat conftest.err 1>&5
  8571. fi
  8572. $RM conftest*
  8573. fi
  8574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8575. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8576. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8577. ;;
  8578. esac
  8579. fi
  8580. ;;
  8581. esac
  8582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8583. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8584. if test yes = "$GCC"; then
  8585. case $host_os in
  8586. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  8587. *) lt_awk_arg='/^libraries:/' ;;
  8588. esac
  8589. case $host_os in
  8590. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  8591. *) lt_sed_strip_eq='s|=/|/|g' ;;
  8592. esac
  8593. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8594. case $lt_search_path_spec in
  8595. *\;*)
  8596. # if the path contains ";" then we assume it to be the separator
  8597. # otherwise default to the standard path separator (i.e. ":") - it is
  8598. # assumed that no part of a normal pathname contains ";" but that should
  8599. # okay in the real world where ";" in dirpaths is itself problematic.
  8600. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8601. ;;
  8602. *)
  8603. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8604. ;;
  8605. esac
  8606. # Ok, now we have the path, separated by spaces, we can step through it
  8607. # and add multilib dir if necessary...
  8608. lt_tmp_lt_search_path_spec=
  8609. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8610. # ...but if some path component already ends with the multilib dir we assume
  8611. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  8612. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8613. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8614. lt_multi_os_dir=
  8615. ;;
  8616. esac
  8617. for lt_sys_path in $lt_search_path_spec; do
  8618. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8619. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8620. elif test -n "$lt_multi_os_dir"; then
  8621. test -d "$lt_sys_path" && \
  8622. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8623. fi
  8624. done
  8625. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8626. BEGIN {RS = " "; FS = "/|\n";} {
  8627. lt_foo = "";
  8628. lt_count = 0;
  8629. for (lt_i = NF; lt_i > 0; lt_i--) {
  8630. if ($lt_i != "" && $lt_i != ".") {
  8631. if ($lt_i == "..") {
  8632. lt_count++;
  8633. } else {
  8634. if (lt_count == 0) {
  8635. lt_foo = "/" $lt_i lt_foo;
  8636. } else {
  8637. lt_count--;
  8638. }
  8639. }
  8640. }
  8641. }
  8642. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8643. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8644. }'`
  8645. # AWK program above erroneously prepends '/' to C:/dos/paths
  8646. # for these hosts.
  8647. case $host_os in
  8648. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8649. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  8650. esac
  8651. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8652. else
  8653. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8654. fi
  8655. library_names_spec=
  8656. libname_spec='lib$name'
  8657. soname_spec=
  8658. shrext_cmds=.so
  8659. postinstall_cmds=
  8660. postuninstall_cmds=
  8661. finish_cmds=
  8662. finish_eval=
  8663. shlibpath_var=
  8664. shlibpath_overrides_runpath=unknown
  8665. version_type=none
  8666. dynamic_linker="$host_os ld.so"
  8667. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8668. need_lib_prefix=unknown
  8669. hardcode_into_libs=no
  8670. # when you set need_version to no, make sure it does not cause -set_version
  8671. # flags to be left without arguments
  8672. need_version=unknown
  8673. case $host_os in
  8674. aix3*)
  8675. version_type=linux # correct to gnu/linux during the next big refactor
  8676. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  8677. shlibpath_var=LIBPATH
  8678. # AIX 3 has no versioning support, so we append a major version to the name.
  8679. soname_spec='$libname$release$shared_ext$major'
  8680. ;;
  8681. aix[4-9]*)
  8682. version_type=linux # correct to gnu/linux during the next big refactor
  8683. need_lib_prefix=no
  8684. need_version=no
  8685. hardcode_into_libs=yes
  8686. if test ia64 = "$host_cpu"; then
  8687. # AIX 5 supports IA64
  8688. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  8689. shlibpath_var=LD_LIBRARY_PATH
  8690. else
  8691. # With GCC up to 2.95.x, collect2 would create an import file
  8692. # for dependence libraries. The import file would start with
  8693. # the line '#! .'. This would cause the generated library to
  8694. # depend on '.', always an invalid library. This was fixed in
  8695. # development snapshots of GCC prior to 3.0.
  8696. case $host_os in
  8697. aix4 | aix4.[01] | aix4.[01].*)
  8698. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8699. echo ' yes '
  8700. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  8701. :
  8702. else
  8703. can_build_shared=no
  8704. fi
  8705. ;;
  8706. esac
  8707. # Using Import Files as archive members, it is possible to support
  8708. # filename-based versioning of shared library archives on AIX. While
  8709. # this would work for both with and without runtime linking, it will
  8710. # prevent static linking of such archives. So we do filename-based
  8711. # shared library versioning with .so extension only, which is used
  8712. # when both runtime linking and shared linking is enabled.
  8713. # Unfortunately, runtime linking may impact performance, so we do
  8714. # not want this to be the default eventually. Also, we use the
  8715. # versioned .so libs for executables only if there is the -brtl
  8716. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  8717. # To allow for filename-based versioning support, we need to create
  8718. # libNAME.so.V as an archive file, containing:
  8719. # *) an Import File, referring to the versioned filename of the
  8720. # archive as well as the shared archive member, telling the
  8721. # bitwidth (32 or 64) of that shared object, and providing the
  8722. # list of exported symbols of that shared object, eventually
  8723. # decorated with the 'weak' keyword
  8724. # *) the shared object with the F_LOADONLY flag set, to really avoid
  8725. # it being seen by the linker.
  8726. # At run time we better use the real file rather than another symlink,
  8727. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  8728. case $with_aix_soname,$aix_use_runtimelinking in
  8729. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  8730. # soname into executable. Probably we can add versioning support to
  8731. # collect2, so additional links can be useful in future.
  8732. aix,yes) # traditional libtool
  8733. dynamic_linker='AIX unversionable lib.so'
  8734. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8735. # instead of lib<name>.a to let people know that these are not
  8736. # typical AIX shared libraries.
  8737. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8738. ;;
  8739. aix,no) # traditional AIX only
  8740. dynamic_linker='AIX lib.a(lib.so.V)'
  8741. # We preserve .a as extension for shared libraries through AIX4.2
  8742. # and later when we are not doing run time linking.
  8743. library_names_spec='$libname$release.a $libname.a'
  8744. soname_spec='$libname$release$shared_ext$major'
  8745. ;;
  8746. svr4,*) # full svr4 only
  8747. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  8748. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  8749. # We do not specify a path in Import Files, so LIBPATH fires.
  8750. shlibpath_overrides_runpath=yes
  8751. ;;
  8752. *,yes) # both, prefer svr4
  8753. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  8754. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  8755. # unpreferred sharedlib libNAME.a needs extra handling
  8756. 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"'
  8757. 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"'
  8758. # We do not specify a path in Import Files, so LIBPATH fires.
  8759. shlibpath_overrides_runpath=yes
  8760. ;;
  8761. *,no) # both, prefer aix
  8762. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  8763. library_names_spec='$libname$release.a $libname.a'
  8764. soname_spec='$libname$release$shared_ext$major'
  8765. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  8766. 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)'
  8767. 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"'
  8768. ;;
  8769. esac
  8770. shlibpath_var=LIBPATH
  8771. fi
  8772. ;;
  8773. amigaos*)
  8774. case $host_cpu in
  8775. powerpc)
  8776. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8777. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8778. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8779. ;;
  8780. m68k)
  8781. library_names_spec='$libname.ixlibrary $libname.a'
  8782. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8783. 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'
  8784. ;;
  8785. esac
  8786. ;;
  8787. beos*)
  8788. library_names_spec='$libname$shared_ext'
  8789. dynamic_linker="$host_os ld.so"
  8790. shlibpath_var=LIBRARY_PATH
  8791. ;;
  8792. bsdi[45]*)
  8793. version_type=linux # correct to gnu/linux during the next big refactor
  8794. need_version=no
  8795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8796. soname_spec='$libname$release$shared_ext$major'
  8797. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8798. shlibpath_var=LD_LIBRARY_PATH
  8799. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8800. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8801. # the default ld.so.conf also contains /usr/contrib/lib and
  8802. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8803. # libtool to hard-code these into programs
  8804. ;;
  8805. cygwin* | mingw* | pw32* | cegcc*)
  8806. version_type=windows
  8807. shrext_cmds=.dll
  8808. need_version=no
  8809. need_lib_prefix=no
  8810. case $GCC,$cc_basename in
  8811. yes,*)
  8812. # gcc
  8813. library_names_spec='$libname.dll.a'
  8814. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8815. postinstall_cmds='base_file=`basename \$file`~
  8816. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  8817. dldir=$destdir/`dirname \$dlpath`~
  8818. test -d \$dldir || mkdir -p \$dldir~
  8819. $install_prog $dir/$dlname \$dldir/$dlname~
  8820. chmod a+x \$dldir/$dlname~
  8821. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8822. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8823. fi'
  8824. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8825. dlpath=$dir/\$dldll~
  8826. $RM \$dlpath'
  8827. shlibpath_overrides_runpath=yes
  8828. case $host_os in
  8829. cygwin*)
  8830. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8831. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8832. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8833. ;;
  8834. mingw* | cegcc*)
  8835. # MinGW DLLs use traditional 'lib' prefix
  8836. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8837. ;;
  8838. pw32*)
  8839. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8840. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8841. ;;
  8842. esac
  8843. dynamic_linker='Win32 ld.exe'
  8844. ;;
  8845. *,cl*)
  8846. # Native MSVC
  8847. libname_spec='$name'
  8848. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8849. library_names_spec='$libname.dll.lib'
  8850. case $build_os in
  8851. mingw*)
  8852. sys_lib_search_path_spec=
  8853. lt_save_ifs=$IFS
  8854. IFS=';'
  8855. for lt_path in $LIB
  8856. do
  8857. IFS=$lt_save_ifs
  8858. # Let DOS variable expansion print the short 8.3 style file name.
  8859. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8860. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8861. done
  8862. IFS=$lt_save_ifs
  8863. # Convert to MSYS style.
  8864. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8865. ;;
  8866. cygwin*)
  8867. # Convert to unix form, then to dos form, then back to unix form
  8868. # but this time dos style (no spaces!) so that the unix form looks
  8869. # like /cygdrive/c/PROGRA~1:/cygdr...
  8870. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8871. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8872. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8873. ;;
  8874. *)
  8875. sys_lib_search_path_spec=$LIB
  8876. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8877. # It is most probably a Windows format PATH.
  8878. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8879. else
  8880. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8881. fi
  8882. # FIXME: find the short name or the path components, as spaces are
  8883. # common. (e.g. "Program Files" -> "PROGRA~1")
  8884. ;;
  8885. esac
  8886. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8887. postinstall_cmds='base_file=`basename \$file`~
  8888. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  8889. dldir=$destdir/`dirname \$dlpath`~
  8890. test -d \$dldir || mkdir -p \$dldir~
  8891. $install_prog $dir/$dlname \$dldir/$dlname'
  8892. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8893. dlpath=$dir/\$dldll~
  8894. $RM \$dlpath'
  8895. shlibpath_overrides_runpath=yes
  8896. dynamic_linker='Win32 link.exe'
  8897. ;;
  8898. *)
  8899. # Assume MSVC wrapper
  8900. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  8901. dynamic_linker='Win32 ld.exe'
  8902. ;;
  8903. esac
  8904. # FIXME: first we should search . and the directory the executable is in
  8905. shlibpath_var=PATH
  8906. ;;
  8907. darwin* | rhapsody*)
  8908. dynamic_linker="$host_os dyld"
  8909. version_type=darwin
  8910. need_lib_prefix=no
  8911. need_version=no
  8912. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  8913. soname_spec='$libname$release$major$shared_ext'
  8914. shlibpath_overrides_runpath=yes
  8915. shlibpath_var=DYLD_LIBRARY_PATH
  8916. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  8917. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8918. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8919. ;;
  8920. dgux*)
  8921. version_type=linux # correct to gnu/linux during the next big refactor
  8922. need_lib_prefix=no
  8923. need_version=no
  8924. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8925. soname_spec='$libname$release$shared_ext$major'
  8926. shlibpath_var=LD_LIBRARY_PATH
  8927. ;;
  8928. freebsd* | dragonfly*)
  8929. # DragonFly does not have aout. When/if they implement a new
  8930. # versioning mechanism, adjust this.
  8931. if test -x /usr/bin/objformat; then
  8932. objformat=`/usr/bin/objformat`
  8933. else
  8934. case $host_os in
  8935. freebsd[23].*) objformat=aout ;;
  8936. *) objformat=elf ;;
  8937. esac
  8938. fi
  8939. # Handle Gentoo/FreeBSD as it was Linux
  8940. case $host_vendor in
  8941. gentoo)
  8942. version_type=linux ;;
  8943. *)
  8944. version_type=freebsd-$objformat ;;
  8945. esac
  8946. case $version_type in
  8947. freebsd-elf*)
  8948. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8949. soname_spec='$libname$release$shared_ext$major'
  8950. need_version=no
  8951. need_lib_prefix=no
  8952. ;;
  8953. freebsd-*)
  8954. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  8955. need_version=yes
  8956. ;;
  8957. linux)
  8958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8959. soname_spec='${libname}${release}${shared_ext}$major'
  8960. need_lib_prefix=no
  8961. need_version=no
  8962. ;;
  8963. esac
  8964. shlibpath_var=LD_LIBRARY_PATH
  8965. case $host_os in
  8966. freebsd2.*)
  8967. shlibpath_overrides_runpath=yes
  8968. ;;
  8969. freebsd3.[01]* | freebsdelf3.[01]*)
  8970. shlibpath_overrides_runpath=yes
  8971. hardcode_into_libs=yes
  8972. ;;
  8973. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8974. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8975. shlibpath_overrides_runpath=no
  8976. hardcode_into_libs=yes
  8977. ;;
  8978. *) # from 4.6 on, and DragonFly
  8979. shlibpath_overrides_runpath=yes
  8980. hardcode_into_libs=yes
  8981. ;;
  8982. esac
  8983. ;;
  8984. haiku*)
  8985. version_type=linux # correct to gnu/linux during the next big refactor
  8986. need_lib_prefix=no
  8987. need_version=no
  8988. dynamic_linker="$host_os runtime_loader"
  8989. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8990. soname_spec='$libname$release$shared_ext$major'
  8991. shlibpath_var=LIBRARY_PATH
  8992. shlibpath_overrides_runpath=no
  8993. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8994. hardcode_into_libs=yes
  8995. ;;
  8996. hpux9* | hpux10* | hpux11*)
  8997. # Give a soname corresponding to the major version so that dld.sl refuses to
  8998. # link against other versions.
  8999. version_type=sunos
  9000. need_lib_prefix=no
  9001. need_version=no
  9002. case $host_cpu in
  9003. ia64*)
  9004. shrext_cmds='.so'
  9005. hardcode_into_libs=yes
  9006. dynamic_linker="$host_os dld.so"
  9007. shlibpath_var=LD_LIBRARY_PATH
  9008. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9009. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9010. soname_spec='$libname$release$shared_ext$major'
  9011. if test 32 = "$HPUX_IA64_MODE"; then
  9012. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9013. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9014. else
  9015. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9016. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9017. fi
  9018. ;;
  9019. hppa*64*)
  9020. shrext_cmds='.sl'
  9021. hardcode_into_libs=yes
  9022. dynamic_linker="$host_os dld.sl"
  9023. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9024. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9025. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9026. soname_spec='$libname$release$shared_ext$major'
  9027. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9028. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9029. ;;
  9030. *)
  9031. shrext_cmds='.sl'
  9032. dynamic_linker="$host_os dld.sl"
  9033. shlibpath_var=SHLIB_PATH
  9034. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9035. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9036. soname_spec='$libname$release$shared_ext$major'
  9037. ;;
  9038. esac
  9039. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9040. postinstall_cmds='chmod 555 $lib'
  9041. # or fails outright, so override atomically:
  9042. install_override_mode=555
  9043. ;;
  9044. interix[3-9]*)
  9045. version_type=linux # correct to gnu/linux during the next big refactor
  9046. need_lib_prefix=no
  9047. need_version=no
  9048. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9049. soname_spec='$libname$release$shared_ext$major'
  9050. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9051. shlibpath_var=LD_LIBRARY_PATH
  9052. shlibpath_overrides_runpath=no
  9053. hardcode_into_libs=yes
  9054. ;;
  9055. irix5* | irix6* | nonstopux*)
  9056. case $host_os in
  9057. nonstopux*) version_type=nonstopux ;;
  9058. *)
  9059. if test yes = "$lt_cv_prog_gnu_ld"; then
  9060. version_type=linux # correct to gnu/linux during the next big refactor
  9061. else
  9062. version_type=irix
  9063. fi ;;
  9064. esac
  9065. need_lib_prefix=no
  9066. need_version=no
  9067. soname_spec='$libname$release$shared_ext$major'
  9068. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9069. case $host_os in
  9070. irix5* | nonstopux*)
  9071. libsuff= shlibsuff=
  9072. ;;
  9073. *)
  9074. case $LD in # libtool.m4 will add one of these switches to LD
  9075. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9076. libsuff= shlibsuff= libmagic=32-bit;;
  9077. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9078. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9079. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9080. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9081. *) libsuff= shlibsuff= libmagic=never-match;;
  9082. esac
  9083. ;;
  9084. esac
  9085. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9086. shlibpath_overrides_runpath=no
  9087. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9088. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9089. hardcode_into_libs=yes
  9090. ;;
  9091. # No shared lib support for Linux oldld, aout, or coff.
  9092. linux*oldld* | linux*aout* | linux*coff*)
  9093. dynamic_linker=no
  9094. ;;
  9095. linux*android*)
  9096. version_type=none # Android doesn't support versioned libraries.
  9097. need_lib_prefix=no
  9098. need_version=no
  9099. library_names_spec='$libname$release$shared_ext'
  9100. soname_spec='$libname$release$shared_ext'
  9101. finish_cmds=
  9102. shlibpath_var=LD_LIBRARY_PATH
  9103. shlibpath_overrides_runpath=yes
  9104. # This implies no fast_install, which is unacceptable.
  9105. # Some rework will be needed to allow for fast_install
  9106. # before this can be enabled.
  9107. hardcode_into_libs=yes
  9108. dynamic_linker='Android linker'
  9109. # Don't embed -rpath directories since the linker doesn't support them.
  9110. hardcode_libdir_flag_spec='-L$libdir'
  9111. ;;
  9112. # This must be glibc/ELF.
  9113. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9114. version_type=linux # correct to gnu/linux during the next big refactor
  9115. need_lib_prefix=no
  9116. need_version=no
  9117. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9118. soname_spec='$libname$release$shared_ext$major'
  9119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9120. shlibpath_var=LD_LIBRARY_PATH
  9121. shlibpath_overrides_runpath=no
  9122. # Some binutils ld are patched to set DT_RUNPATH
  9123. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9124. $as_echo_n "(cached) " >&6
  9125. else
  9126. lt_cv_shlibpath_overrides_runpath=no
  9127. save_LDFLAGS=$LDFLAGS
  9128. save_libdir=$libdir
  9129. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9130. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. /* end confdefs.h. */
  9133. int
  9134. main ()
  9135. {
  9136. ;
  9137. return 0;
  9138. }
  9139. _ACEOF
  9140. if ac_fn_c_try_link "$LINENO"; then :
  9141. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9142. lt_cv_shlibpath_overrides_runpath=yes
  9143. fi
  9144. fi
  9145. rm -f core conftest.err conftest.$ac_objext \
  9146. conftest$ac_exeext conftest.$ac_ext
  9147. LDFLAGS=$save_LDFLAGS
  9148. libdir=$save_libdir
  9149. fi
  9150. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9151. # This implies no fast_install, which is unacceptable.
  9152. # Some rework will be needed to allow for fast_install
  9153. # before this can be enabled.
  9154. hardcode_into_libs=yes
  9155. # Ideally, we could use ldconfig to report *all* directores which are
  9156. # searched for libraries, however this is still not possible. Aside from not
  9157. # being certain /sbin/ldconfig is available, command
  9158. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9159. # even though it is searched at run-time. Try to do the best guess by
  9160. # appending ld.so.conf contents (and includes) to the search path.
  9161. if test -f /etc/ld.so.conf; then
  9162. 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' ' '`
  9163. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9164. fi
  9165. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9166. # powerpc, because MkLinux only supported shared libraries with the
  9167. # GNU dynamic linker. Since this was broken with cross compilers,
  9168. # most powerpc-linux boxes support dynamic linking these days and
  9169. # people can always --disable-shared, the test was removed, and we
  9170. # assume the GNU/Linux dynamic linker is in use.
  9171. dynamic_linker='GNU/Linux ld.so'
  9172. ;;
  9173. netbsd*)
  9174. version_type=sunos
  9175. need_lib_prefix=no
  9176. need_version=no
  9177. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9178. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9179. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9180. dynamic_linker='NetBSD (a.out) ld.so'
  9181. else
  9182. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9183. soname_spec='$libname$release$shared_ext$major'
  9184. dynamic_linker='NetBSD ld.elf_so'
  9185. fi
  9186. shlibpath_var=LD_LIBRARY_PATH
  9187. shlibpath_overrides_runpath=yes
  9188. hardcode_into_libs=yes
  9189. ;;
  9190. newsos6)
  9191. version_type=linux # correct to gnu/linux during the next big refactor
  9192. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9193. shlibpath_var=LD_LIBRARY_PATH
  9194. shlibpath_overrides_runpath=yes
  9195. ;;
  9196. *nto* | *qnx*)
  9197. version_type=qnx
  9198. need_lib_prefix=no
  9199. need_version=no
  9200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9201. soname_spec='$libname$release$shared_ext$major'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. shlibpath_overrides_runpath=no
  9204. hardcode_into_libs=yes
  9205. dynamic_linker='ldqnx.so'
  9206. ;;
  9207. openbsd* | bitrig*)
  9208. version_type=sunos
  9209. sys_lib_dlsearch_path_spec=/usr/lib
  9210. need_lib_prefix=no
  9211. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9212. need_version=no
  9213. else
  9214. need_version=yes
  9215. fi
  9216. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9217. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9218. shlibpath_var=LD_LIBRARY_PATH
  9219. shlibpath_overrides_runpath=yes
  9220. ;;
  9221. os2*)
  9222. libname_spec='$name'
  9223. version_type=windows
  9224. shrext_cmds=.dll
  9225. need_version=no
  9226. need_lib_prefix=no
  9227. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9228. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9229. v=$($ECHO $release$versuffix | tr -d .-);
  9230. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9231. $ECHO $n$v`$shared_ext'
  9232. library_names_spec='${libname}_dll.$libext'
  9233. dynamic_linker='OS/2 ld.exe'
  9234. shlibpath_var=BEGINLIBPATH
  9235. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9236. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9237. postinstall_cmds='base_file=`basename \$file`~
  9238. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9239. dldir=$destdir/`dirname \$dlpath`~
  9240. test -d \$dldir || mkdir -p \$dldir~
  9241. $install_prog $dir/$dlname \$dldir/$dlname~
  9242. chmod a+x \$dldir/$dlname~
  9243. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9244. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9245. fi'
  9246. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9247. dlpath=$dir/\$dldll~
  9248. $RM \$dlpath'
  9249. ;;
  9250. osf3* | osf4* | osf5*)
  9251. version_type=osf
  9252. need_lib_prefix=no
  9253. need_version=no
  9254. soname_spec='$libname$release$shared_ext$major'
  9255. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9256. shlibpath_var=LD_LIBRARY_PATH
  9257. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9258. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9259. ;;
  9260. rdos*)
  9261. dynamic_linker=no
  9262. ;;
  9263. solaris*)
  9264. version_type=linux # correct to gnu/linux during the next big refactor
  9265. need_lib_prefix=no
  9266. need_version=no
  9267. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9268. soname_spec='$libname$release$shared_ext$major'
  9269. shlibpath_var=LD_LIBRARY_PATH
  9270. shlibpath_overrides_runpath=yes
  9271. hardcode_into_libs=yes
  9272. # ldd complains unless libraries are executable
  9273. postinstall_cmds='chmod +x $lib'
  9274. ;;
  9275. sunos4*)
  9276. version_type=sunos
  9277. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9278. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9279. shlibpath_var=LD_LIBRARY_PATH
  9280. shlibpath_overrides_runpath=yes
  9281. if test yes = "$with_gnu_ld"; then
  9282. need_lib_prefix=no
  9283. fi
  9284. need_version=yes
  9285. ;;
  9286. sysv4 | sysv4.3*)
  9287. version_type=linux # correct to gnu/linux during the next big refactor
  9288. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9289. soname_spec='$libname$release$shared_ext$major'
  9290. shlibpath_var=LD_LIBRARY_PATH
  9291. case $host_vendor in
  9292. sni)
  9293. shlibpath_overrides_runpath=no
  9294. need_lib_prefix=no
  9295. runpath_var=LD_RUN_PATH
  9296. ;;
  9297. siemens)
  9298. need_lib_prefix=no
  9299. ;;
  9300. motorola)
  9301. need_lib_prefix=no
  9302. need_version=no
  9303. shlibpath_overrides_runpath=no
  9304. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9305. ;;
  9306. esac
  9307. ;;
  9308. sysv4*MP*)
  9309. if test -d /usr/nec; then
  9310. version_type=linux # correct to gnu/linux during the next big refactor
  9311. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9312. soname_spec='$libname$shared_ext.$major'
  9313. shlibpath_var=LD_LIBRARY_PATH
  9314. fi
  9315. ;;
  9316. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9317. version_type=sco
  9318. need_lib_prefix=no
  9319. need_version=no
  9320. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9321. soname_spec='$libname$release$shared_ext$major'
  9322. shlibpath_var=LD_LIBRARY_PATH
  9323. shlibpath_overrides_runpath=yes
  9324. hardcode_into_libs=yes
  9325. if test yes = "$with_gnu_ld"; then
  9326. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9327. else
  9328. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9329. case $host_os in
  9330. sco3.2v5*)
  9331. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9332. ;;
  9333. esac
  9334. fi
  9335. sys_lib_dlsearch_path_spec='/usr/lib'
  9336. ;;
  9337. tpf*)
  9338. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9339. version_type=linux # correct to gnu/linux during the next big refactor
  9340. need_lib_prefix=no
  9341. need_version=no
  9342. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. shlibpath_overrides_runpath=no
  9345. hardcode_into_libs=yes
  9346. ;;
  9347. uts4*)
  9348. version_type=linux # correct to gnu/linux during the next big refactor
  9349. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9350. soname_spec='$libname$release$shared_ext$major'
  9351. shlibpath_var=LD_LIBRARY_PATH
  9352. ;;
  9353. *)
  9354. dynamic_linker=no
  9355. ;;
  9356. esac
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9358. $as_echo "$dynamic_linker" >&6; }
  9359. test no = "$dynamic_linker" && can_build_shared=no
  9360. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9361. if test yes = "$GCC"; then
  9362. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9363. fi
  9364. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9365. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9366. fi
  9367. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9368. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9369. fi
  9370. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9371. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9372. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9373. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9374. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9375. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9377. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9378. hardcode_action=
  9379. if test -n "$hardcode_libdir_flag_spec" ||
  9380. test -n "$runpath_var" ||
  9381. test yes = "$hardcode_automatic"; then
  9382. # We can hardcode non-existent directories.
  9383. if test no != "$hardcode_direct" &&
  9384. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9385. # have to relink, otherwise we might link with an installed library
  9386. # when we should be linking with a yet-to-be-installed one
  9387. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9388. test no != "$hardcode_minus_L"; then
  9389. # Linking always hardcodes the temporary library directory.
  9390. hardcode_action=relink
  9391. else
  9392. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9393. hardcode_action=immediate
  9394. fi
  9395. else
  9396. # We cannot hardcode anything, or else we can only hardcode existing
  9397. # directories.
  9398. hardcode_action=unsupported
  9399. fi
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9401. $as_echo "$hardcode_action" >&6; }
  9402. if test relink = "$hardcode_action" ||
  9403. test yes = "$inherit_rpath"; then
  9404. # Fast installation is not supported
  9405. enable_fast_install=no
  9406. elif test yes = "$shlibpath_overrides_runpath" ||
  9407. test no = "$enable_shared"; then
  9408. # Fast installation is not necessary
  9409. enable_fast_install=needless
  9410. fi
  9411. if test yes != "$enable_dlopen"; then
  9412. enable_dlopen=unknown
  9413. enable_dlopen_self=unknown
  9414. enable_dlopen_self_static=unknown
  9415. else
  9416. lt_cv_dlopen=no
  9417. lt_cv_dlopen_libs=
  9418. case $host_os in
  9419. beos*)
  9420. lt_cv_dlopen=load_add_on
  9421. lt_cv_dlopen_libs=
  9422. lt_cv_dlopen_self=yes
  9423. ;;
  9424. mingw* | pw32* | cegcc*)
  9425. lt_cv_dlopen=LoadLibrary
  9426. lt_cv_dlopen_libs=
  9427. ;;
  9428. cygwin*)
  9429. lt_cv_dlopen=dlopen
  9430. lt_cv_dlopen_libs=
  9431. ;;
  9432. darwin*)
  9433. # if libdl is installed we need to link against it
  9434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9435. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9436. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9437. $as_echo_n "(cached) " >&6
  9438. else
  9439. ac_check_lib_save_LIBS=$LIBS
  9440. LIBS="-ldl $LIBS"
  9441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9442. /* end confdefs.h. */
  9443. /* Override any GCC internal prototype to avoid an error.
  9444. Use char because int might match the return type of a GCC
  9445. builtin and then its argument prototype would still apply. */
  9446. #ifdef __cplusplus
  9447. extern "C"
  9448. #endif
  9449. char dlopen ();
  9450. int
  9451. main ()
  9452. {
  9453. return dlopen ();
  9454. ;
  9455. return 0;
  9456. }
  9457. _ACEOF
  9458. if ac_fn_c_try_link "$LINENO"; then :
  9459. ac_cv_lib_dl_dlopen=yes
  9460. else
  9461. ac_cv_lib_dl_dlopen=no
  9462. fi
  9463. rm -f core conftest.err conftest.$ac_objext \
  9464. conftest$ac_exeext conftest.$ac_ext
  9465. LIBS=$ac_check_lib_save_LIBS
  9466. fi
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9468. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9469. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9470. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9471. else
  9472. lt_cv_dlopen=dyld
  9473. lt_cv_dlopen_libs=
  9474. lt_cv_dlopen_self=yes
  9475. fi
  9476. ;;
  9477. tpf*)
  9478. # Don't try to run any link tests for TPF. We know it's impossible
  9479. # because TPF is a cross-compiler, and we know how we open DSOs.
  9480. lt_cv_dlopen=dlopen
  9481. lt_cv_dlopen_libs=
  9482. lt_cv_dlopen_self=no
  9483. ;;
  9484. *)
  9485. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9486. if test "x$ac_cv_func_shl_load" = xyes; then :
  9487. lt_cv_dlopen=shl_load
  9488. else
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9490. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9491. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9492. $as_echo_n "(cached) " >&6
  9493. else
  9494. ac_check_lib_save_LIBS=$LIBS
  9495. LIBS="-ldld $LIBS"
  9496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9497. /* end confdefs.h. */
  9498. /* Override any GCC internal prototype to avoid an error.
  9499. Use char because int might match the return type of a GCC
  9500. builtin and then its argument prototype would still apply. */
  9501. #ifdef __cplusplus
  9502. extern "C"
  9503. #endif
  9504. char shl_load ();
  9505. int
  9506. main ()
  9507. {
  9508. return shl_load ();
  9509. ;
  9510. return 0;
  9511. }
  9512. _ACEOF
  9513. if ac_fn_c_try_link "$LINENO"; then :
  9514. ac_cv_lib_dld_shl_load=yes
  9515. else
  9516. ac_cv_lib_dld_shl_load=no
  9517. fi
  9518. rm -f core conftest.err conftest.$ac_objext \
  9519. conftest$ac_exeext conftest.$ac_ext
  9520. LIBS=$ac_check_lib_save_LIBS
  9521. fi
  9522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9523. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9524. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9525. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9526. else
  9527. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9528. if test "x$ac_cv_func_dlopen" = xyes; then :
  9529. lt_cv_dlopen=dlopen
  9530. else
  9531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9532. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9533. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9534. $as_echo_n "(cached) " >&6
  9535. else
  9536. ac_check_lib_save_LIBS=$LIBS
  9537. LIBS="-ldl $LIBS"
  9538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9539. /* end confdefs.h. */
  9540. /* Override any GCC internal prototype to avoid an error.
  9541. Use char because int might match the return type of a GCC
  9542. builtin and then its argument prototype would still apply. */
  9543. #ifdef __cplusplus
  9544. extern "C"
  9545. #endif
  9546. char dlopen ();
  9547. int
  9548. main ()
  9549. {
  9550. return dlopen ();
  9551. ;
  9552. return 0;
  9553. }
  9554. _ACEOF
  9555. if ac_fn_c_try_link "$LINENO"; then :
  9556. ac_cv_lib_dl_dlopen=yes
  9557. else
  9558. ac_cv_lib_dl_dlopen=no
  9559. fi
  9560. rm -f core conftest.err conftest.$ac_objext \
  9561. conftest$ac_exeext conftest.$ac_ext
  9562. LIBS=$ac_check_lib_save_LIBS
  9563. fi
  9564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9565. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9566. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9567. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9568. else
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9570. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9571. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9572. $as_echo_n "(cached) " >&6
  9573. else
  9574. ac_check_lib_save_LIBS=$LIBS
  9575. LIBS="-lsvld $LIBS"
  9576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9577. /* end confdefs.h. */
  9578. /* Override any GCC internal prototype to avoid an error.
  9579. Use char because int might match the return type of a GCC
  9580. builtin and then its argument prototype would still apply. */
  9581. #ifdef __cplusplus
  9582. extern "C"
  9583. #endif
  9584. char dlopen ();
  9585. int
  9586. main ()
  9587. {
  9588. return dlopen ();
  9589. ;
  9590. return 0;
  9591. }
  9592. _ACEOF
  9593. if ac_fn_c_try_link "$LINENO"; then :
  9594. ac_cv_lib_svld_dlopen=yes
  9595. else
  9596. ac_cv_lib_svld_dlopen=no
  9597. fi
  9598. rm -f core conftest.err conftest.$ac_objext \
  9599. conftest$ac_exeext conftest.$ac_ext
  9600. LIBS=$ac_check_lib_save_LIBS
  9601. fi
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9603. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9604. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9605. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  9606. else
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9608. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9609. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9610. $as_echo_n "(cached) " >&6
  9611. else
  9612. ac_check_lib_save_LIBS=$LIBS
  9613. LIBS="-ldld $LIBS"
  9614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9615. /* end confdefs.h. */
  9616. /* Override any GCC internal prototype to avoid an error.
  9617. Use char because int might match the return type of a GCC
  9618. builtin and then its argument prototype would still apply. */
  9619. #ifdef __cplusplus
  9620. extern "C"
  9621. #endif
  9622. char dld_link ();
  9623. int
  9624. main ()
  9625. {
  9626. return dld_link ();
  9627. ;
  9628. return 0;
  9629. }
  9630. _ACEOF
  9631. if ac_fn_c_try_link "$LINENO"; then :
  9632. ac_cv_lib_dld_dld_link=yes
  9633. else
  9634. ac_cv_lib_dld_dld_link=no
  9635. fi
  9636. rm -f core conftest.err conftest.$ac_objext \
  9637. conftest$ac_exeext conftest.$ac_ext
  9638. LIBS=$ac_check_lib_save_LIBS
  9639. fi
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9641. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9642. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9643. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  9644. fi
  9645. fi
  9646. fi
  9647. fi
  9648. fi
  9649. fi
  9650. ;;
  9651. esac
  9652. if test no = "$lt_cv_dlopen"; then
  9653. enable_dlopen=no
  9654. else
  9655. enable_dlopen=yes
  9656. fi
  9657. case $lt_cv_dlopen in
  9658. dlopen)
  9659. save_CPPFLAGS=$CPPFLAGS
  9660. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9661. save_LDFLAGS=$LDFLAGS
  9662. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9663. save_LIBS=$LIBS
  9664. LIBS="$lt_cv_dlopen_libs $LIBS"
  9665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9666. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9667. if ${lt_cv_dlopen_self+:} false; then :
  9668. $as_echo_n "(cached) " >&6
  9669. else
  9670. if test yes = "$cross_compiling"; then :
  9671. lt_cv_dlopen_self=cross
  9672. else
  9673. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9674. lt_status=$lt_dlunknown
  9675. cat > conftest.$ac_ext <<_LT_EOF
  9676. #line $LINENO "configure"
  9677. #include "confdefs.h"
  9678. #if HAVE_DLFCN_H
  9679. #include <dlfcn.h>
  9680. #endif
  9681. #include <stdio.h>
  9682. #ifdef RTLD_GLOBAL
  9683. # define LT_DLGLOBAL RTLD_GLOBAL
  9684. #else
  9685. # ifdef DL_GLOBAL
  9686. # define LT_DLGLOBAL DL_GLOBAL
  9687. # else
  9688. # define LT_DLGLOBAL 0
  9689. # endif
  9690. #endif
  9691. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9692. find out it does not work in some platform. */
  9693. #ifndef LT_DLLAZY_OR_NOW
  9694. # ifdef RTLD_LAZY
  9695. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9696. # else
  9697. # ifdef DL_LAZY
  9698. # define LT_DLLAZY_OR_NOW DL_LAZY
  9699. # else
  9700. # ifdef RTLD_NOW
  9701. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9702. # else
  9703. # ifdef DL_NOW
  9704. # define LT_DLLAZY_OR_NOW DL_NOW
  9705. # else
  9706. # define LT_DLLAZY_OR_NOW 0
  9707. # endif
  9708. # endif
  9709. # endif
  9710. # endif
  9711. #endif
  9712. /* When -fvisibility=hidden is used, assume the code has been annotated
  9713. correspondingly for the symbols needed. */
  9714. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9715. int fnord () __attribute__((visibility("default")));
  9716. #endif
  9717. int fnord () { return 42; }
  9718. int main ()
  9719. {
  9720. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9721. int status = $lt_dlunknown;
  9722. if (self)
  9723. {
  9724. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9725. else
  9726. {
  9727. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9728. else puts (dlerror ());
  9729. }
  9730. /* dlclose (self); */
  9731. }
  9732. else
  9733. puts (dlerror ());
  9734. return status;
  9735. }
  9736. _LT_EOF
  9737. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9738. (eval $ac_link) 2>&5
  9739. ac_status=$?
  9740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9741. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  9742. (./conftest; exit; ) >&5 2>/dev/null
  9743. lt_status=$?
  9744. case x$lt_status in
  9745. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9746. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9747. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9748. esac
  9749. else :
  9750. # compilation failed
  9751. lt_cv_dlopen_self=no
  9752. fi
  9753. fi
  9754. rm -fr conftest*
  9755. fi
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9757. $as_echo "$lt_cv_dlopen_self" >&6; }
  9758. if test yes = "$lt_cv_dlopen_self"; then
  9759. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9761. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9762. if ${lt_cv_dlopen_self_static+:} false; then :
  9763. $as_echo_n "(cached) " >&6
  9764. else
  9765. if test yes = "$cross_compiling"; then :
  9766. lt_cv_dlopen_self_static=cross
  9767. else
  9768. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9769. lt_status=$lt_dlunknown
  9770. cat > conftest.$ac_ext <<_LT_EOF
  9771. #line $LINENO "configure"
  9772. #include "confdefs.h"
  9773. #if HAVE_DLFCN_H
  9774. #include <dlfcn.h>
  9775. #endif
  9776. #include <stdio.h>
  9777. #ifdef RTLD_GLOBAL
  9778. # define LT_DLGLOBAL RTLD_GLOBAL
  9779. #else
  9780. # ifdef DL_GLOBAL
  9781. # define LT_DLGLOBAL DL_GLOBAL
  9782. # else
  9783. # define LT_DLGLOBAL 0
  9784. # endif
  9785. #endif
  9786. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9787. find out it does not work in some platform. */
  9788. #ifndef LT_DLLAZY_OR_NOW
  9789. # ifdef RTLD_LAZY
  9790. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9791. # else
  9792. # ifdef DL_LAZY
  9793. # define LT_DLLAZY_OR_NOW DL_LAZY
  9794. # else
  9795. # ifdef RTLD_NOW
  9796. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9797. # else
  9798. # ifdef DL_NOW
  9799. # define LT_DLLAZY_OR_NOW DL_NOW
  9800. # else
  9801. # define LT_DLLAZY_OR_NOW 0
  9802. # endif
  9803. # endif
  9804. # endif
  9805. # endif
  9806. #endif
  9807. /* When -fvisibility=hidden is used, assume the code has been annotated
  9808. correspondingly for the symbols needed. */
  9809. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9810. int fnord () __attribute__((visibility("default")));
  9811. #endif
  9812. int fnord () { return 42; }
  9813. int main ()
  9814. {
  9815. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9816. int status = $lt_dlunknown;
  9817. if (self)
  9818. {
  9819. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9820. else
  9821. {
  9822. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9823. else puts (dlerror ());
  9824. }
  9825. /* dlclose (self); */
  9826. }
  9827. else
  9828. puts (dlerror ());
  9829. return status;
  9830. }
  9831. _LT_EOF
  9832. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9833. (eval $ac_link) 2>&5
  9834. ac_status=$?
  9835. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9836. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  9837. (./conftest; exit; ) >&5 2>/dev/null
  9838. lt_status=$?
  9839. case x$lt_status in
  9840. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9841. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9842. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9843. esac
  9844. else :
  9845. # compilation failed
  9846. lt_cv_dlopen_self_static=no
  9847. fi
  9848. fi
  9849. rm -fr conftest*
  9850. fi
  9851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9852. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9853. fi
  9854. CPPFLAGS=$save_CPPFLAGS
  9855. LDFLAGS=$save_LDFLAGS
  9856. LIBS=$save_LIBS
  9857. ;;
  9858. esac
  9859. case $lt_cv_dlopen_self in
  9860. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9861. *) enable_dlopen_self=unknown ;;
  9862. esac
  9863. case $lt_cv_dlopen_self_static in
  9864. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9865. *) enable_dlopen_self_static=unknown ;;
  9866. esac
  9867. fi
  9868. striplib=
  9869. old_striplib=
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9871. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9872. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9873. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9874. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9876. $as_echo "yes" >&6; }
  9877. else
  9878. # FIXME - insert some real tests, host_os isn't really good enough
  9879. case $host_os in
  9880. darwin*)
  9881. if test -n "$STRIP"; then
  9882. striplib="$STRIP -x"
  9883. old_striplib="$STRIP -S"
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9885. $as_echo "yes" >&6; }
  9886. else
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9888. $as_echo "no" >&6; }
  9889. fi
  9890. ;;
  9891. *)
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9893. $as_echo "no" >&6; }
  9894. ;;
  9895. esac
  9896. fi
  9897. # Report what library types will actually be built
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9899. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9901. $as_echo "$can_build_shared" >&6; }
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9903. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9904. test no = "$can_build_shared" && enable_shared=no
  9905. # On AIX, shared libraries and static libraries use the same namespace, and
  9906. # are all built from PIC.
  9907. case $host_os in
  9908. aix3*)
  9909. test yes = "$enable_shared" && enable_static=no
  9910. if test -n "$RANLIB"; then
  9911. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9912. postinstall_cmds='$RANLIB $lib'
  9913. fi
  9914. ;;
  9915. aix[4-9]*)
  9916. if test ia64 != "$host_cpu"; then
  9917. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  9918. yes,aix,yes) ;; # shared object as lib.so file only
  9919. yes,svr4,*) ;; # shared object as lib.so archive member only
  9920. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  9921. esac
  9922. fi
  9923. ;;
  9924. esac
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9926. $as_echo "$enable_shared" >&6; }
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9928. $as_echo_n "checking whether to build static libraries... " >&6; }
  9929. # Make sure either enable_shared or enable_static is yes.
  9930. test yes = "$enable_shared" || enable_static=yes
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9932. $as_echo "$enable_static" >&6; }
  9933. fi
  9934. ac_ext=c
  9935. ac_cpp='$CPP $CPPFLAGS'
  9936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9939. CC=$lt_save_CC
  9940. ac_config_commands="$ac_config_commands libtool"
  9941. # Only expand once:
  9942. ac_ext=c
  9943. ac_cpp='$CPP $CPPFLAGS'
  9944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9947. if test -n "$ac_tool_prefix"; then
  9948. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9949. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9951. $as_echo_n "checking for $ac_word... " >&6; }
  9952. if ${ac_cv_prog_CC+:} false; then :
  9953. $as_echo_n "(cached) " >&6
  9954. else
  9955. if test -n "$CC"; then
  9956. ac_cv_prog_CC="$CC" # Let the user override the test.
  9957. else
  9958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9959. for as_dir in $PATH
  9960. do
  9961. IFS=$as_save_IFS
  9962. test -z "$as_dir" && as_dir=.
  9963. for ac_exec_ext in '' $ac_executable_extensions; do
  9964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9965. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9967. break 2
  9968. fi
  9969. done
  9970. done
  9971. IFS=$as_save_IFS
  9972. fi
  9973. fi
  9974. CC=$ac_cv_prog_CC
  9975. if test -n "$CC"; then
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9977. $as_echo "$CC" >&6; }
  9978. else
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9980. $as_echo "no" >&6; }
  9981. fi
  9982. fi
  9983. if test -z "$ac_cv_prog_CC"; then
  9984. ac_ct_CC=$CC
  9985. # Extract the first word of "gcc", so it can be a program name with args.
  9986. set dummy gcc; ac_word=$2
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9988. $as_echo_n "checking for $ac_word... " >&6; }
  9989. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. if test -n "$ac_ct_CC"; then
  9993. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9994. else
  9995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9996. for as_dir in $PATH
  9997. do
  9998. IFS=$as_save_IFS
  9999. test -z "$as_dir" && as_dir=.
  10000. for ac_exec_ext in '' $ac_executable_extensions; do
  10001. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10002. ac_cv_prog_ac_ct_CC="gcc"
  10003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10004. break 2
  10005. fi
  10006. done
  10007. done
  10008. IFS=$as_save_IFS
  10009. fi
  10010. fi
  10011. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10012. if test -n "$ac_ct_CC"; then
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10014. $as_echo "$ac_ct_CC" >&6; }
  10015. else
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10017. $as_echo "no" >&6; }
  10018. fi
  10019. if test "x$ac_ct_CC" = x; then
  10020. CC=""
  10021. else
  10022. case $cross_compiling:$ac_tool_warned in
  10023. yes:)
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10025. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10026. ac_tool_warned=yes ;;
  10027. esac
  10028. CC=$ac_ct_CC
  10029. fi
  10030. else
  10031. CC="$ac_cv_prog_CC"
  10032. fi
  10033. if test -z "$CC"; then
  10034. if test -n "$ac_tool_prefix"; then
  10035. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10036. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10038. $as_echo_n "checking for $ac_word... " >&6; }
  10039. if ${ac_cv_prog_CC+:} false; then :
  10040. $as_echo_n "(cached) " >&6
  10041. else
  10042. if test -n "$CC"; then
  10043. ac_cv_prog_CC="$CC" # Let the user override the test.
  10044. else
  10045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10046. for as_dir in $PATH
  10047. do
  10048. IFS=$as_save_IFS
  10049. test -z "$as_dir" && as_dir=.
  10050. for ac_exec_ext in '' $ac_executable_extensions; do
  10051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10052. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10054. break 2
  10055. fi
  10056. done
  10057. done
  10058. IFS=$as_save_IFS
  10059. fi
  10060. fi
  10061. CC=$ac_cv_prog_CC
  10062. if test -n "$CC"; then
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10064. $as_echo "$CC" >&6; }
  10065. else
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10067. $as_echo "no" >&6; }
  10068. fi
  10069. fi
  10070. fi
  10071. if test -z "$CC"; then
  10072. # Extract the first word of "cc", so it can be a program name with args.
  10073. set dummy cc; ac_word=$2
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10075. $as_echo_n "checking for $ac_word... " >&6; }
  10076. if ${ac_cv_prog_CC+:} false; then :
  10077. $as_echo_n "(cached) " >&6
  10078. else
  10079. if test -n "$CC"; then
  10080. ac_cv_prog_CC="$CC" # Let the user override the test.
  10081. else
  10082. ac_prog_rejected=no
  10083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10084. for as_dir in $PATH
  10085. do
  10086. IFS=$as_save_IFS
  10087. test -z "$as_dir" && as_dir=.
  10088. for ac_exec_ext in '' $ac_executable_extensions; do
  10089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10090. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10091. ac_prog_rejected=yes
  10092. continue
  10093. fi
  10094. ac_cv_prog_CC="cc"
  10095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10096. break 2
  10097. fi
  10098. done
  10099. done
  10100. IFS=$as_save_IFS
  10101. if test $ac_prog_rejected = yes; then
  10102. # We found a bogon in the path, so make sure we never use it.
  10103. set dummy $ac_cv_prog_CC
  10104. shift
  10105. if test $# != 0; then
  10106. # We chose a different compiler from the bogus one.
  10107. # However, it has the same basename, so the bogon will be chosen
  10108. # first if we set CC to just the basename; use the full file name.
  10109. shift
  10110. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10111. fi
  10112. fi
  10113. fi
  10114. fi
  10115. CC=$ac_cv_prog_CC
  10116. if test -n "$CC"; then
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10118. $as_echo "$CC" >&6; }
  10119. else
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10121. $as_echo "no" >&6; }
  10122. fi
  10123. fi
  10124. if test -z "$CC"; then
  10125. if test -n "$ac_tool_prefix"; then
  10126. for ac_prog in cl.exe
  10127. do
  10128. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10129. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10131. $as_echo_n "checking for $ac_word... " >&6; }
  10132. if ${ac_cv_prog_CC+:} false; then :
  10133. $as_echo_n "(cached) " >&6
  10134. else
  10135. if test -n "$CC"; then
  10136. ac_cv_prog_CC="$CC" # Let the user override the test.
  10137. else
  10138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10139. for as_dir in $PATH
  10140. do
  10141. IFS=$as_save_IFS
  10142. test -z "$as_dir" && as_dir=.
  10143. for ac_exec_ext in '' $ac_executable_extensions; do
  10144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10145. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10147. break 2
  10148. fi
  10149. done
  10150. done
  10151. IFS=$as_save_IFS
  10152. fi
  10153. fi
  10154. CC=$ac_cv_prog_CC
  10155. if test -n "$CC"; then
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10157. $as_echo "$CC" >&6; }
  10158. else
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10160. $as_echo "no" >&6; }
  10161. fi
  10162. test -n "$CC" && break
  10163. done
  10164. fi
  10165. if test -z "$CC"; then
  10166. ac_ct_CC=$CC
  10167. for ac_prog in cl.exe
  10168. do
  10169. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10170. set dummy $ac_prog; ac_word=$2
  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10172. $as_echo_n "checking for $ac_word... " >&6; }
  10173. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10174. $as_echo_n "(cached) " >&6
  10175. else
  10176. if test -n "$ac_ct_CC"; then
  10177. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10178. else
  10179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10180. for as_dir in $PATH
  10181. do
  10182. IFS=$as_save_IFS
  10183. test -z "$as_dir" && as_dir=.
  10184. for ac_exec_ext in '' $ac_executable_extensions; do
  10185. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10186. ac_cv_prog_ac_ct_CC="$ac_prog"
  10187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10188. break 2
  10189. fi
  10190. done
  10191. done
  10192. IFS=$as_save_IFS
  10193. fi
  10194. fi
  10195. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10196. if test -n "$ac_ct_CC"; then
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10198. $as_echo "$ac_ct_CC" >&6; }
  10199. else
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10201. $as_echo "no" >&6; }
  10202. fi
  10203. test -n "$ac_ct_CC" && break
  10204. done
  10205. if test "x$ac_ct_CC" = x; then
  10206. CC=""
  10207. else
  10208. case $cross_compiling:$ac_tool_warned in
  10209. yes:)
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10211. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10212. ac_tool_warned=yes ;;
  10213. esac
  10214. CC=$ac_ct_CC
  10215. fi
  10216. fi
  10217. fi
  10218. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10219. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10220. as_fn_error $? "no acceptable C compiler found in \$PATH
  10221. See \`config.log' for more details" "$LINENO" 5; }
  10222. # Provide some information about the compiler.
  10223. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10224. set X $ac_compile
  10225. ac_compiler=$2
  10226. for ac_option in --version -v -V -qversion; do
  10227. { { ac_try="$ac_compiler $ac_option >&5"
  10228. case "(($ac_try" in
  10229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10230. *) ac_try_echo=$ac_try;;
  10231. esac
  10232. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10233. $as_echo "$ac_try_echo"; } >&5
  10234. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10235. ac_status=$?
  10236. if test -s conftest.err; then
  10237. sed '10a\
  10238. ... rest of stderr output deleted ...
  10239. 10q' conftest.err >conftest.er1
  10240. cat conftest.er1 >&5
  10241. fi
  10242. rm -f conftest.er1 conftest.err
  10243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10244. test $ac_status = 0; }
  10245. done
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10247. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10248. if ${ac_cv_c_compiler_gnu+:} false; then :
  10249. $as_echo_n "(cached) " >&6
  10250. else
  10251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10252. /* end confdefs.h. */
  10253. int
  10254. main ()
  10255. {
  10256. #ifndef __GNUC__
  10257. choke me
  10258. #endif
  10259. ;
  10260. return 0;
  10261. }
  10262. _ACEOF
  10263. if ac_fn_c_try_compile "$LINENO"; then :
  10264. ac_compiler_gnu=yes
  10265. else
  10266. ac_compiler_gnu=no
  10267. fi
  10268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10269. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10270. fi
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10272. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10273. if test $ac_compiler_gnu = yes; then
  10274. GCC=yes
  10275. else
  10276. GCC=
  10277. fi
  10278. ac_test_CFLAGS=${CFLAGS+set}
  10279. ac_save_CFLAGS=$CFLAGS
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10281. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10282. if ${ac_cv_prog_cc_g+:} false; then :
  10283. $as_echo_n "(cached) " >&6
  10284. else
  10285. ac_save_c_werror_flag=$ac_c_werror_flag
  10286. ac_c_werror_flag=yes
  10287. ac_cv_prog_cc_g=no
  10288. CFLAGS="-g"
  10289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10290. /* end confdefs.h. */
  10291. int
  10292. main ()
  10293. {
  10294. ;
  10295. return 0;
  10296. }
  10297. _ACEOF
  10298. if ac_fn_c_try_compile "$LINENO"; then :
  10299. ac_cv_prog_cc_g=yes
  10300. else
  10301. CFLAGS=""
  10302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10303. /* end confdefs.h. */
  10304. int
  10305. main ()
  10306. {
  10307. ;
  10308. return 0;
  10309. }
  10310. _ACEOF
  10311. if ac_fn_c_try_compile "$LINENO"; then :
  10312. else
  10313. ac_c_werror_flag=$ac_save_c_werror_flag
  10314. CFLAGS="-g"
  10315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10316. /* end confdefs.h. */
  10317. int
  10318. main ()
  10319. {
  10320. ;
  10321. return 0;
  10322. }
  10323. _ACEOF
  10324. if ac_fn_c_try_compile "$LINENO"; then :
  10325. ac_cv_prog_cc_g=yes
  10326. fi
  10327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10328. fi
  10329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10330. fi
  10331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10332. ac_c_werror_flag=$ac_save_c_werror_flag
  10333. fi
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10335. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10336. if test "$ac_test_CFLAGS" = set; then
  10337. CFLAGS=$ac_save_CFLAGS
  10338. elif test $ac_cv_prog_cc_g = yes; then
  10339. if test "$GCC" = yes; then
  10340. CFLAGS="-g -O2"
  10341. else
  10342. CFLAGS="-g"
  10343. fi
  10344. else
  10345. if test "$GCC" = yes; then
  10346. CFLAGS="-O2"
  10347. else
  10348. CFLAGS=
  10349. fi
  10350. fi
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10352. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10353. if ${ac_cv_prog_cc_c89+:} false; then :
  10354. $as_echo_n "(cached) " >&6
  10355. else
  10356. ac_cv_prog_cc_c89=no
  10357. ac_save_CC=$CC
  10358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10359. /* end confdefs.h. */
  10360. #include <stdarg.h>
  10361. #include <stdio.h>
  10362. struct stat;
  10363. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10364. struct buf { int x; };
  10365. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10366. static char *e (p, i)
  10367. char **p;
  10368. int i;
  10369. {
  10370. return p[i];
  10371. }
  10372. static char *f (char * (*g) (char **, int), char **p, ...)
  10373. {
  10374. char *s;
  10375. va_list v;
  10376. va_start (v,p);
  10377. s = g (p, va_arg (v,int));
  10378. va_end (v);
  10379. return s;
  10380. }
  10381. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10382. function prototypes and stuff, but not '\xHH' hex character constants.
  10383. These don't provoke an error unfortunately, instead are silently treated
  10384. as 'x'. The following induces an error, until -std is added to get
  10385. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10386. array size at least. It's necessary to write '\x00'==0 to get something
  10387. that's true only with -std. */
  10388. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10389. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10390. inside strings and character constants. */
  10391. #define FOO(x) 'x'
  10392. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10393. int test (int i, double x);
  10394. struct s1 {int (*f) (int a);};
  10395. struct s2 {int (*f) (double a);};
  10396. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10397. int argc;
  10398. char **argv;
  10399. int
  10400. main ()
  10401. {
  10402. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10403. ;
  10404. return 0;
  10405. }
  10406. _ACEOF
  10407. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10408. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10409. do
  10410. CC="$ac_save_CC $ac_arg"
  10411. if ac_fn_c_try_compile "$LINENO"; then :
  10412. ac_cv_prog_cc_c89=$ac_arg
  10413. fi
  10414. rm -f core conftest.err conftest.$ac_objext
  10415. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10416. done
  10417. rm -f conftest.$ac_ext
  10418. CC=$ac_save_CC
  10419. fi
  10420. # AC_CACHE_VAL
  10421. case "x$ac_cv_prog_cc_c89" in
  10422. x)
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10424. $as_echo "none needed" >&6; } ;;
  10425. xno)
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10427. $as_echo "unsupported" >&6; } ;;
  10428. *)
  10429. CC="$CC $ac_cv_prog_cc_c89"
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10431. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10432. esac
  10433. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10434. fi
  10435. ac_ext=c
  10436. ac_cpp='$CPP $CPPFLAGS'
  10437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10440. ac_ext=cpp
  10441. ac_cpp='$CXXCPP $CPPFLAGS'
  10442. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10443. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10445. if test -z "$CXX"; then
  10446. if test -n "$CCC"; then
  10447. CXX=$CCC
  10448. else
  10449. if test -n "$ac_tool_prefix"; then
  10450. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10451. do
  10452. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10453. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10455. $as_echo_n "checking for $ac_word... " >&6; }
  10456. if ${ac_cv_prog_CXX+:} false; then :
  10457. $as_echo_n "(cached) " >&6
  10458. else
  10459. if test -n "$CXX"; then
  10460. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10461. else
  10462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10463. for as_dir in $PATH
  10464. do
  10465. IFS=$as_save_IFS
  10466. test -z "$as_dir" && as_dir=.
  10467. for ac_exec_ext in '' $ac_executable_extensions; do
  10468. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10469. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10471. break 2
  10472. fi
  10473. done
  10474. done
  10475. IFS=$as_save_IFS
  10476. fi
  10477. fi
  10478. CXX=$ac_cv_prog_CXX
  10479. if test -n "$CXX"; then
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10481. $as_echo "$CXX" >&6; }
  10482. else
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10484. $as_echo "no" >&6; }
  10485. fi
  10486. test -n "$CXX" && break
  10487. done
  10488. fi
  10489. if test -z "$CXX"; then
  10490. ac_ct_CXX=$CXX
  10491. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10492. do
  10493. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10494. set dummy $ac_prog; ac_word=$2
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10496. $as_echo_n "checking for $ac_word... " >&6; }
  10497. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. if test -n "$ac_ct_CXX"; then
  10501. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10502. else
  10503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10504. for as_dir in $PATH
  10505. do
  10506. IFS=$as_save_IFS
  10507. test -z "$as_dir" && as_dir=.
  10508. for ac_exec_ext in '' $ac_executable_extensions; do
  10509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10510. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10512. break 2
  10513. fi
  10514. done
  10515. done
  10516. IFS=$as_save_IFS
  10517. fi
  10518. fi
  10519. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10520. if test -n "$ac_ct_CXX"; then
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10522. $as_echo "$ac_ct_CXX" >&6; }
  10523. else
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10525. $as_echo "no" >&6; }
  10526. fi
  10527. test -n "$ac_ct_CXX" && break
  10528. done
  10529. if test "x$ac_ct_CXX" = x; then
  10530. CXX="g++"
  10531. else
  10532. case $cross_compiling:$ac_tool_warned in
  10533. yes:)
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10535. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10536. ac_tool_warned=yes ;;
  10537. esac
  10538. CXX=$ac_ct_CXX
  10539. fi
  10540. fi
  10541. fi
  10542. fi
  10543. # Provide some information about the compiler.
  10544. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10545. set X $ac_compile
  10546. ac_compiler=$2
  10547. for ac_option in --version -v -V -qversion; do
  10548. { { ac_try="$ac_compiler $ac_option >&5"
  10549. case "(($ac_try" in
  10550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10551. *) ac_try_echo=$ac_try;;
  10552. esac
  10553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10554. $as_echo "$ac_try_echo"; } >&5
  10555. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10556. ac_status=$?
  10557. if test -s conftest.err; then
  10558. sed '10a\
  10559. ... rest of stderr output deleted ...
  10560. 10q' conftest.err >conftest.er1
  10561. cat conftest.er1 >&5
  10562. fi
  10563. rm -f conftest.er1 conftest.err
  10564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10565. test $ac_status = 0; }
  10566. done
  10567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10568. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10569. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10570. $as_echo_n "(cached) " >&6
  10571. else
  10572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10573. /* end confdefs.h. */
  10574. int
  10575. main ()
  10576. {
  10577. #ifndef __GNUC__
  10578. choke me
  10579. #endif
  10580. ;
  10581. return 0;
  10582. }
  10583. _ACEOF
  10584. if ac_fn_cxx_try_compile "$LINENO"; then :
  10585. ac_compiler_gnu=yes
  10586. else
  10587. ac_compiler_gnu=no
  10588. fi
  10589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10590. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10591. fi
  10592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10593. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10594. if test $ac_compiler_gnu = yes; then
  10595. GXX=yes
  10596. else
  10597. GXX=
  10598. fi
  10599. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10600. ac_save_CXXFLAGS=$CXXFLAGS
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10602. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10603. if ${ac_cv_prog_cxx_g+:} false; then :
  10604. $as_echo_n "(cached) " >&6
  10605. else
  10606. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10607. ac_cxx_werror_flag=yes
  10608. ac_cv_prog_cxx_g=no
  10609. CXXFLAGS="-g"
  10610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10611. /* end confdefs.h. */
  10612. int
  10613. main ()
  10614. {
  10615. ;
  10616. return 0;
  10617. }
  10618. _ACEOF
  10619. if ac_fn_cxx_try_compile "$LINENO"; then :
  10620. ac_cv_prog_cxx_g=yes
  10621. else
  10622. CXXFLAGS=""
  10623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10624. /* end confdefs.h. */
  10625. int
  10626. main ()
  10627. {
  10628. ;
  10629. return 0;
  10630. }
  10631. _ACEOF
  10632. if ac_fn_cxx_try_compile "$LINENO"; then :
  10633. else
  10634. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10635. CXXFLAGS="-g"
  10636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10637. /* end confdefs.h. */
  10638. int
  10639. main ()
  10640. {
  10641. ;
  10642. return 0;
  10643. }
  10644. _ACEOF
  10645. if ac_fn_cxx_try_compile "$LINENO"; then :
  10646. ac_cv_prog_cxx_g=yes
  10647. fi
  10648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10649. fi
  10650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10651. fi
  10652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10653. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10654. fi
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10656. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10657. if test "$ac_test_CXXFLAGS" = set; then
  10658. CXXFLAGS=$ac_save_CXXFLAGS
  10659. elif test $ac_cv_prog_cxx_g = yes; then
  10660. if test "$GXX" = yes; then
  10661. CXXFLAGS="-g -O2"
  10662. else
  10663. CXXFLAGS="-g"
  10664. fi
  10665. else
  10666. if test "$GXX" = yes; then
  10667. CXXFLAGS="-O2"
  10668. else
  10669. CXXFLAGS=
  10670. fi
  10671. fi
  10672. ac_ext=c
  10673. ac_cpp='$CPP $CPPFLAGS'
  10674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10677. func_stripname_cnf ()
  10678. {
  10679. case $2 in
  10680. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  10681. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  10682. esac
  10683. } # func_stripname_cnf
  10684. if test -n "$CXX" && ( test no != "$CXX" &&
  10685. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  10686. (test g++ != "$CXX"))); then
  10687. ac_ext=cpp
  10688. ac_cpp='$CXXCPP $CPPFLAGS'
  10689. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10690. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10691. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10693. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10694. if test -z "$CXXCPP"; then
  10695. if ${ac_cv_prog_CXXCPP+:} false; then :
  10696. $as_echo_n "(cached) " >&6
  10697. else
  10698. # Double quotes because CXXCPP needs to be expanded
  10699. for CXXCPP in "$CXX -E" "/lib/cpp"
  10700. do
  10701. ac_preproc_ok=false
  10702. for ac_cxx_preproc_warn_flag in '' yes
  10703. do
  10704. # Use a header file that comes with gcc, so configuring glibc
  10705. # with a fresh cross-compiler works.
  10706. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10707. # <limits.h> exists even on freestanding compilers.
  10708. # On the NeXT, cc -E runs the code through the compiler's parser,
  10709. # not just through cpp. "Syntax error" is here to catch this case.
  10710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10711. /* end confdefs.h. */
  10712. #ifdef __STDC__
  10713. # include <limits.h>
  10714. #else
  10715. # include <assert.h>
  10716. #endif
  10717. Syntax error
  10718. _ACEOF
  10719. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10720. else
  10721. # Broken: fails on valid input.
  10722. continue
  10723. fi
  10724. rm -f conftest.err conftest.i conftest.$ac_ext
  10725. # OK, works on sane cases. Now check whether nonexistent headers
  10726. # can be detected and how.
  10727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10728. /* end confdefs.h. */
  10729. #include <ac_nonexistent.h>
  10730. _ACEOF
  10731. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10732. # Broken: success on invalid input.
  10733. continue
  10734. else
  10735. # Passes both tests.
  10736. ac_preproc_ok=:
  10737. break
  10738. fi
  10739. rm -f conftest.err conftest.i conftest.$ac_ext
  10740. done
  10741. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10742. rm -f conftest.i conftest.err conftest.$ac_ext
  10743. if $ac_preproc_ok; then :
  10744. break
  10745. fi
  10746. done
  10747. ac_cv_prog_CXXCPP=$CXXCPP
  10748. fi
  10749. CXXCPP=$ac_cv_prog_CXXCPP
  10750. else
  10751. ac_cv_prog_CXXCPP=$CXXCPP
  10752. fi
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10754. $as_echo "$CXXCPP" >&6; }
  10755. ac_preproc_ok=false
  10756. for ac_cxx_preproc_warn_flag in '' yes
  10757. do
  10758. # Use a header file that comes with gcc, so configuring glibc
  10759. # with a fresh cross-compiler works.
  10760. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10761. # <limits.h> exists even on freestanding compilers.
  10762. # On the NeXT, cc -E runs the code through the compiler's parser,
  10763. # not just through cpp. "Syntax error" is here to catch this case.
  10764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10765. /* end confdefs.h. */
  10766. #ifdef __STDC__
  10767. # include <limits.h>
  10768. #else
  10769. # include <assert.h>
  10770. #endif
  10771. Syntax error
  10772. _ACEOF
  10773. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10774. else
  10775. # Broken: fails on valid input.
  10776. continue
  10777. fi
  10778. rm -f conftest.err conftest.i conftest.$ac_ext
  10779. # OK, works on sane cases. Now check whether nonexistent headers
  10780. # can be detected and how.
  10781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10782. /* end confdefs.h. */
  10783. #include <ac_nonexistent.h>
  10784. _ACEOF
  10785. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10786. # Broken: success on invalid input.
  10787. continue
  10788. else
  10789. # Passes both tests.
  10790. ac_preproc_ok=:
  10791. break
  10792. fi
  10793. rm -f conftest.err conftest.i conftest.$ac_ext
  10794. done
  10795. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10796. rm -f conftest.i conftest.err conftest.$ac_ext
  10797. if $ac_preproc_ok; then :
  10798. else
  10799. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10800. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10801. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10802. See \`config.log' for more details" "$LINENO" 5; }
  10803. fi
  10804. ac_ext=c
  10805. ac_cpp='$CPP $CPPFLAGS'
  10806. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10807. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10808. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10809. else
  10810. _lt_caught_CXX_error=yes
  10811. fi
  10812. ac_ext=cpp
  10813. ac_cpp='$CXXCPP $CPPFLAGS'
  10814. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10815. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10816. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10817. archive_cmds_need_lc_CXX=no
  10818. allow_undefined_flag_CXX=
  10819. always_export_symbols_CXX=no
  10820. archive_expsym_cmds_CXX=
  10821. compiler_needs_object_CXX=no
  10822. export_dynamic_flag_spec_CXX=
  10823. hardcode_direct_CXX=no
  10824. hardcode_direct_absolute_CXX=no
  10825. hardcode_libdir_flag_spec_CXX=
  10826. hardcode_libdir_separator_CXX=
  10827. hardcode_minus_L_CXX=no
  10828. hardcode_shlibpath_var_CXX=unsupported
  10829. hardcode_automatic_CXX=no
  10830. inherit_rpath_CXX=no
  10831. module_cmds_CXX=
  10832. module_expsym_cmds_CXX=
  10833. link_all_deplibs_CXX=unknown
  10834. old_archive_cmds_CXX=$old_archive_cmds
  10835. reload_flag_CXX=$reload_flag
  10836. reload_cmds_CXX=$reload_cmds
  10837. no_undefined_flag_CXX=
  10838. whole_archive_flag_spec_CXX=
  10839. enable_shared_with_static_runtimes_CXX=no
  10840. # Source file extension for C++ test sources.
  10841. ac_ext=cpp
  10842. # Object file extension for compiled C++ test sources.
  10843. objext=o
  10844. objext_CXX=$objext
  10845. # No sense in running all these tests if we already determined that
  10846. # the CXX compiler isn't working. Some variables (like enable_shared)
  10847. # are currently assumed to apply to all compilers on this platform,
  10848. # and will be corrupted by setting them based on a non-working compiler.
  10849. if test yes != "$_lt_caught_CXX_error"; then
  10850. # Code to be used in simple compile tests
  10851. lt_simple_compile_test_code="int some_variable = 0;"
  10852. # Code to be used in simple link tests
  10853. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10854. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10855. # If no C compiler was specified, use CC.
  10856. LTCC=${LTCC-"$CC"}
  10857. # If no C compiler flags were specified, use CFLAGS.
  10858. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10859. # Allow CC to be a program name with arguments.
  10860. compiler=$CC
  10861. # save warnings/boilerplate of simple test code
  10862. ac_outfile=conftest.$ac_objext
  10863. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10864. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10865. _lt_compiler_boilerplate=`cat conftest.err`
  10866. $RM conftest*
  10867. ac_outfile=conftest.$ac_objext
  10868. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10869. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10870. _lt_linker_boilerplate=`cat conftest.err`
  10871. $RM -r conftest*
  10872. # Allow CC to be a program name with arguments.
  10873. lt_save_CC=$CC
  10874. lt_save_CFLAGS=$CFLAGS
  10875. lt_save_LD=$LD
  10876. lt_save_GCC=$GCC
  10877. GCC=$GXX
  10878. lt_save_with_gnu_ld=$with_gnu_ld
  10879. lt_save_path_LD=$lt_cv_path_LD
  10880. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10881. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10882. else
  10883. $as_unset lt_cv_prog_gnu_ld
  10884. fi
  10885. if test -n "${lt_cv_path_LDCXX+set}"; then
  10886. lt_cv_path_LD=$lt_cv_path_LDCXX
  10887. else
  10888. $as_unset lt_cv_path_LD
  10889. fi
  10890. test -z "${LDCXX+set}" || LD=$LDCXX
  10891. CC=${CXX-"c++"}
  10892. CFLAGS=$CXXFLAGS
  10893. compiler=$CC
  10894. compiler_CXX=$CC
  10895. func_cc_basename $compiler
  10896. cc_basename=$func_cc_basename_result
  10897. if test -n "$compiler"; then
  10898. # We don't want -fno-exception when compiling C++ code, so set the
  10899. # no_builtin_flag separately
  10900. if test yes = "$GXX"; then
  10901. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10902. else
  10903. lt_prog_compiler_no_builtin_flag_CXX=
  10904. fi
  10905. if test yes = "$GXX"; then
  10906. # Set up default GNU C++ configuration
  10907. # Check whether --with-gnu-ld was given.
  10908. if test "${with_gnu_ld+set}" = set; then :
  10909. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  10910. else
  10911. with_gnu_ld=no
  10912. fi
  10913. ac_prog=ld
  10914. if test yes = "$GCC"; then
  10915. # Check if gcc -print-prog-name=ld gives a path.
  10916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10917. $as_echo_n "checking for ld used by $CC... " >&6; }
  10918. case $host in
  10919. *-*-mingw*)
  10920. # gcc leaves a trailing carriage return, which upsets mingw
  10921. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10922. *)
  10923. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10924. esac
  10925. case $ac_prog in
  10926. # Accept absolute paths.
  10927. [\\/]* | ?:[\\/]*)
  10928. re_direlt='/[^/][^/]*/\.\./'
  10929. # Canonicalize the pathname of ld
  10930. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10931. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10932. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10933. done
  10934. test -z "$LD" && LD=$ac_prog
  10935. ;;
  10936. "")
  10937. # If it fails, then pretend we aren't using GCC.
  10938. ac_prog=ld
  10939. ;;
  10940. *)
  10941. # If it is relative, then search for the first ld in PATH.
  10942. with_gnu_ld=unknown
  10943. ;;
  10944. esac
  10945. elif test yes = "$with_gnu_ld"; then
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10947. $as_echo_n "checking for GNU ld... " >&6; }
  10948. else
  10949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10950. $as_echo_n "checking for non-GNU ld... " >&6; }
  10951. fi
  10952. if ${lt_cv_path_LD+:} false; then :
  10953. $as_echo_n "(cached) " >&6
  10954. else
  10955. if test -z "$LD"; then
  10956. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10957. for ac_dir in $PATH; do
  10958. IFS=$lt_save_ifs
  10959. test -z "$ac_dir" && ac_dir=.
  10960. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10961. lt_cv_path_LD=$ac_dir/$ac_prog
  10962. # Check to see if the program is GNU ld. I'd rather use --version,
  10963. # but apparently some variants of GNU ld only accept -v.
  10964. # Break only if it was the GNU/non-GNU ld that we prefer.
  10965. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10966. *GNU* | *'with BFD'*)
  10967. test no != "$with_gnu_ld" && break
  10968. ;;
  10969. *)
  10970. test yes != "$with_gnu_ld" && break
  10971. ;;
  10972. esac
  10973. fi
  10974. done
  10975. IFS=$lt_save_ifs
  10976. else
  10977. lt_cv_path_LD=$LD # Let the user override the test with a path.
  10978. fi
  10979. fi
  10980. LD=$lt_cv_path_LD
  10981. if test -n "$LD"; then
  10982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10983. $as_echo "$LD" >&6; }
  10984. else
  10985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10986. $as_echo "no" >&6; }
  10987. fi
  10988. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10990. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10991. if ${lt_cv_prog_gnu_ld+:} false; then :
  10992. $as_echo_n "(cached) " >&6
  10993. else
  10994. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10995. case `$LD -v 2>&1 </dev/null` in
  10996. *GNU* | *'with BFD'*)
  10997. lt_cv_prog_gnu_ld=yes
  10998. ;;
  10999. *)
  11000. lt_cv_prog_gnu_ld=no
  11001. ;;
  11002. esac
  11003. fi
  11004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11005. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11006. with_gnu_ld=$lt_cv_prog_gnu_ld
  11007. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11008. # archiving commands below assume that GNU ld is being used.
  11009. if test yes = "$with_gnu_ld"; then
  11010. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11011. 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'
  11012. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11013. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11014. # If archive_cmds runs LD, not CC, wlarc should be empty
  11015. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11016. # investigate it a little bit more. (MM)
  11017. wlarc='$wl'
  11018. # ancient GNU ld didn't support --whole-archive et. al.
  11019. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11020. $GREP 'no-whole-archive' > /dev/null; then
  11021. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11022. else
  11023. whole_archive_flag_spec_CXX=
  11024. fi
  11025. else
  11026. with_gnu_ld=no
  11027. wlarc=
  11028. # A generic and very simple default shared library creation
  11029. # command for GNU C++ for the case where it uses the native
  11030. # linker, instead of GNU ld. If possible, this setting should
  11031. # overridden to take advantage of the native linker features on
  11032. # the platform it is being used on.
  11033. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11034. fi
  11035. # Commands to make compiler produce verbose output that lists
  11036. # what "hidden" libraries, object files and flags are used when
  11037. # linking a shared library.
  11038. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11039. else
  11040. GXX=no
  11041. with_gnu_ld=no
  11042. wlarc=
  11043. fi
  11044. # PORTME: fill in a description of your system's C++ link characteristics
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11046. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11047. ld_shlibs_CXX=yes
  11048. case $host_os in
  11049. aix3*)
  11050. # FIXME: insert proper C++ library support
  11051. ld_shlibs_CXX=no
  11052. ;;
  11053. aix[4-9]*)
  11054. if test ia64 = "$host_cpu"; then
  11055. # On IA64, the linker does run time linking by default, so we don't
  11056. # have to do anything special.
  11057. aix_use_runtimelinking=no
  11058. exp_sym_flag='-Bexport'
  11059. no_entry_flag=
  11060. else
  11061. aix_use_runtimelinking=no
  11062. # Test if we are trying to use run time linking or normal
  11063. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11064. # have runtime linking enabled, and use it for executables.
  11065. # For shared libraries, we enable/disable runtime linking
  11066. # depending on the kind of the shared library created -
  11067. # when "with_aix_soname,aix_use_runtimelinking" is:
  11068. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11069. # "aix,yes" lib.so shared, rtl:yes, for executables
  11070. # lib.a static archive
  11071. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11072. # lib.a(lib.so.V) shared, rtl:no, for executables
  11073. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11074. # lib.a(lib.so.V) shared, rtl:no
  11075. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11076. # lib.a static archive
  11077. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11078. for ld_flag in $LDFLAGS; do
  11079. case $ld_flag in
  11080. *-brtl*)
  11081. aix_use_runtimelinking=yes
  11082. break
  11083. ;;
  11084. esac
  11085. done
  11086. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11087. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11088. # so we don't have lib.a shared libs to link our executables.
  11089. # We have to force runtime linking in this case.
  11090. aix_use_runtimelinking=yes
  11091. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11092. fi
  11093. ;;
  11094. esac
  11095. exp_sym_flag='-bexport'
  11096. no_entry_flag='-bnoentry'
  11097. fi
  11098. # When large executables or shared objects are built, AIX ld can
  11099. # have problems creating the table of contents. If linking a library
  11100. # or program results in "error TOC overflow" add -mminimal-toc to
  11101. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11102. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11103. archive_cmds_CXX=''
  11104. hardcode_direct_CXX=yes
  11105. hardcode_direct_absolute_CXX=yes
  11106. hardcode_libdir_separator_CXX=':'
  11107. link_all_deplibs_CXX=yes
  11108. file_list_spec_CXX='$wl-f,'
  11109. case $with_aix_soname,$aix_use_runtimelinking in
  11110. aix,*) ;; # no import file
  11111. svr4,* | *,yes) # use import file
  11112. # The Import File defines what to hardcode.
  11113. hardcode_direct_CXX=no
  11114. hardcode_direct_absolute_CXX=no
  11115. ;;
  11116. esac
  11117. if test yes = "$GXX"; then
  11118. case $host_os in aix4.[012]|aix4.[012].*)
  11119. # We only want to do this on AIX 4.2 and lower, the check
  11120. # below for broken collect2 doesn't work under 4.3+
  11121. collect2name=`$CC -print-prog-name=collect2`
  11122. if test -f "$collect2name" &&
  11123. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11124. then
  11125. # We have reworked collect2
  11126. :
  11127. else
  11128. # We have old collect2
  11129. hardcode_direct_CXX=unsupported
  11130. # It fails to find uninstalled libraries when the uninstalled
  11131. # path is not listed in the libpath. Setting hardcode_minus_L
  11132. # to unsupported forces relinking
  11133. hardcode_minus_L_CXX=yes
  11134. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11135. hardcode_libdir_separator_CXX=
  11136. fi
  11137. esac
  11138. shared_flag='-shared'
  11139. if test yes = "$aix_use_runtimelinking"; then
  11140. shared_flag=$shared_flag' $wl-G'
  11141. fi
  11142. # Need to ensure runtime linking is disabled for the traditional
  11143. # shared library, or the linker may eventually find shared libraries
  11144. # /with/ Import File - we do not want to mix them.
  11145. shared_flag_aix='-shared'
  11146. shared_flag_svr4='-shared $wl-G'
  11147. else
  11148. # not using gcc
  11149. if test ia64 = "$host_cpu"; then
  11150. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11151. # chokes on -Wl,-G. The following line is correct:
  11152. shared_flag='-G'
  11153. else
  11154. if test yes = "$aix_use_runtimelinking"; then
  11155. shared_flag='$wl-G'
  11156. else
  11157. shared_flag='$wl-bM:SRE'
  11158. fi
  11159. shared_flag_aix='$wl-bM:SRE'
  11160. shared_flag_svr4='$wl-G'
  11161. fi
  11162. fi
  11163. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11164. # It seems that -bexpall does not export symbols beginning with
  11165. # underscore (_), so it is better to generate a list of symbols to
  11166. # export.
  11167. always_export_symbols_CXX=yes
  11168. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11169. # Warning - without using the other runtime loading flags (-brtl),
  11170. # -berok will link without error, but may produce a broken library.
  11171. # The "-G" linker flag allows undefined symbols.
  11172. no_undefined_flag_CXX='-bernotok'
  11173. # Determine the default libpath from the value encoded in an empty
  11174. # executable.
  11175. if test set = "${lt_cv_aix_libpath+set}"; then
  11176. aix_libpath=$lt_cv_aix_libpath
  11177. else
  11178. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11179. $as_echo_n "(cached) " >&6
  11180. else
  11181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11182. /* end confdefs.h. */
  11183. int
  11184. main ()
  11185. {
  11186. ;
  11187. return 0;
  11188. }
  11189. _ACEOF
  11190. if ac_fn_cxx_try_link "$LINENO"; then :
  11191. lt_aix_libpath_sed='
  11192. /Import File Strings/,/^$/ {
  11193. /^0/ {
  11194. s/^0 *\([^ ]*\) *$/\1/
  11195. p
  11196. }
  11197. }'
  11198. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11199. # Check for a 64-bit object if we didn't find anything.
  11200. if test -z "$lt_cv_aix_libpath__CXX"; then
  11201. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11202. fi
  11203. fi
  11204. rm -f core conftest.err conftest.$ac_objext \
  11205. conftest$ac_exeext conftest.$ac_ext
  11206. if test -z "$lt_cv_aix_libpath__CXX"; then
  11207. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11208. fi
  11209. fi
  11210. aix_libpath=$lt_cv_aix_libpath__CXX
  11211. fi
  11212. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11213. 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
  11214. else
  11215. if test ia64 = "$host_cpu"; then
  11216. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11217. allow_undefined_flag_CXX="-z nodefs"
  11218. 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"
  11219. else
  11220. # Determine the default libpath from the value encoded in an
  11221. # empty executable.
  11222. if test set = "${lt_cv_aix_libpath+set}"; then
  11223. aix_libpath=$lt_cv_aix_libpath
  11224. else
  11225. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11226. $as_echo_n "(cached) " >&6
  11227. else
  11228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11229. /* end confdefs.h. */
  11230. int
  11231. main ()
  11232. {
  11233. ;
  11234. return 0;
  11235. }
  11236. _ACEOF
  11237. if ac_fn_cxx_try_link "$LINENO"; then :
  11238. lt_aix_libpath_sed='
  11239. /Import File Strings/,/^$/ {
  11240. /^0/ {
  11241. s/^0 *\([^ ]*\) *$/\1/
  11242. p
  11243. }
  11244. }'
  11245. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11246. # Check for a 64-bit object if we didn't find anything.
  11247. if test -z "$lt_cv_aix_libpath__CXX"; then
  11248. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11249. fi
  11250. fi
  11251. rm -f core conftest.err conftest.$ac_objext \
  11252. conftest$ac_exeext conftest.$ac_ext
  11253. if test -z "$lt_cv_aix_libpath__CXX"; then
  11254. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11255. fi
  11256. fi
  11257. aix_libpath=$lt_cv_aix_libpath__CXX
  11258. fi
  11259. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11260. # Warning - without using the other run time loading flags,
  11261. # -berok will link without error, but may produce a broken library.
  11262. no_undefined_flag_CXX=' $wl-bernotok'
  11263. allow_undefined_flag_CXX=' $wl-berok'
  11264. if test yes = "$with_gnu_ld"; then
  11265. # We only use this code for GNU lds that support --whole-archive.
  11266. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11267. else
  11268. # Exported symbols can be pulled into shared objects from archives
  11269. whole_archive_flag_spec_CXX='$convenience'
  11270. fi
  11271. archive_cmds_need_lc_CXX=yes
  11272. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11273. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11274. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11275. if test svr4 != "$with_aix_soname"; then
  11276. # This is similar to how AIX traditionally builds its shared
  11277. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11278. 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'
  11279. fi
  11280. if test aix != "$with_aix_soname"; then
  11281. 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'
  11282. else
  11283. # used by -dlpreopen to get the symbols
  11284. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11285. fi
  11286. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11287. fi
  11288. fi
  11289. ;;
  11290. beos*)
  11291. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11292. allow_undefined_flag_CXX=unsupported
  11293. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11294. # support --undefined. This deserves some investigation. FIXME
  11295. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11296. else
  11297. ld_shlibs_CXX=no
  11298. fi
  11299. ;;
  11300. chorus*)
  11301. case $cc_basename in
  11302. *)
  11303. # FIXME: insert proper C++ library support
  11304. ld_shlibs_CXX=no
  11305. ;;
  11306. esac
  11307. ;;
  11308. cygwin* | mingw* | pw32* | cegcc*)
  11309. case $GXX,$cc_basename in
  11310. ,cl* | no,cl*)
  11311. # Native MSVC
  11312. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11313. # no search path for DLLs.
  11314. hardcode_libdir_flag_spec_CXX=' '
  11315. allow_undefined_flag_CXX=unsupported
  11316. always_export_symbols_CXX=yes
  11317. file_list_spec_CXX='@'
  11318. # Tell ltmain to make .lib files, not .a files.
  11319. libext=lib
  11320. # Tell ltmain to make .dll files, not .so files.
  11321. shrext_cmds=.dll
  11322. # FIXME: Setting linknames here is a bad hack.
  11323. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11324. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11325. cp "$export_symbols" "$output_objdir/$soname.def";
  11326. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11327. else
  11328. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11329. fi~
  11330. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11331. linknames='
  11332. # The linker will not automatically build a static lib if we build a DLL.
  11333. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11334. enable_shared_with_static_runtimes_CXX=yes
  11335. # Don't use ranlib
  11336. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11337. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11338. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11339. case $lt_outputfile in
  11340. *.exe|*.EXE) ;;
  11341. *)
  11342. lt_outputfile=$lt_outputfile.exe
  11343. lt_tool_outputfile=$lt_tool_outputfile.exe
  11344. ;;
  11345. esac~
  11346. func_to_tool_file "$lt_outputfile"~
  11347. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11348. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11349. $RM "$lt_outputfile.manifest";
  11350. fi'
  11351. ;;
  11352. *)
  11353. # g++
  11354. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11355. # as there is no search path for DLLs.
  11356. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11357. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11358. allow_undefined_flag_CXX=unsupported
  11359. always_export_symbols_CXX=no
  11360. enable_shared_with_static_runtimes_CXX=yes
  11361. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11362. 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'
  11363. # If the export-symbols file already is a .def file, use it as
  11364. # is; otherwise, prepend EXPORTS...
  11365. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11366. cp $export_symbols $output_objdir/$soname.def;
  11367. else
  11368. echo EXPORTS > $output_objdir/$soname.def;
  11369. cat $export_symbols >> $output_objdir/$soname.def;
  11370. fi~
  11371. $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'
  11372. else
  11373. ld_shlibs_CXX=no
  11374. fi
  11375. ;;
  11376. esac
  11377. ;;
  11378. darwin* | rhapsody*)
  11379. archive_cmds_need_lc_CXX=no
  11380. hardcode_direct_CXX=no
  11381. hardcode_automatic_CXX=yes
  11382. hardcode_shlibpath_var_CXX=unsupported
  11383. if test yes = "$lt_cv_ld_force_load"; then
  11384. 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\"`'
  11385. else
  11386. whole_archive_flag_spec_CXX=''
  11387. fi
  11388. link_all_deplibs_CXX=yes
  11389. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11390. case $cc_basename in
  11391. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11392. *) _lt_dar_can_shared=$GCC ;;
  11393. esac
  11394. if test yes = "$_lt_dar_can_shared"; then
  11395. output_verbose_link_cmd=func_echo_all
  11396. 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"
  11397. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11398. 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"
  11399. 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"
  11400. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11401. 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"
  11402. 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"
  11403. fi
  11404. else
  11405. ld_shlibs_CXX=no
  11406. fi
  11407. ;;
  11408. os2*)
  11409. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11410. hardcode_minus_L_CXX=yes
  11411. allow_undefined_flag_CXX=unsupported
  11412. shrext_cmds=.dll
  11413. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11414. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11415. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11416. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11417. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11418. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11419. emximp -o $lib $output_objdir/$libname.def'
  11420. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11421. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11422. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11423. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11424. prefix_cmds="$SED"~
  11425. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11426. prefix_cmds="$prefix_cmds -e 1d";
  11427. fi~
  11428. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11429. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11430. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11431. emximp -o $lib $output_objdir/$libname.def'
  11432. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11433. enable_shared_with_static_runtimes_CXX=yes
  11434. ;;
  11435. dgux*)
  11436. case $cc_basename in
  11437. ec++*)
  11438. # FIXME: insert proper C++ library support
  11439. ld_shlibs_CXX=no
  11440. ;;
  11441. ghcx*)
  11442. # Green Hills C++ Compiler
  11443. # FIXME: insert proper C++ library support
  11444. ld_shlibs_CXX=no
  11445. ;;
  11446. *)
  11447. # FIXME: insert proper C++ library support
  11448. ld_shlibs_CXX=no
  11449. ;;
  11450. esac
  11451. ;;
  11452. freebsd2.*)
  11453. # C++ shared libraries reported to be fairly broken before
  11454. # switch to ELF
  11455. ld_shlibs_CXX=no
  11456. ;;
  11457. freebsd-elf*)
  11458. archive_cmds_need_lc_CXX=no
  11459. ;;
  11460. freebsd* | dragonfly*)
  11461. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11462. # conventions
  11463. ld_shlibs_CXX=yes
  11464. ;;
  11465. haiku*)
  11466. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11467. link_all_deplibs_CXX=yes
  11468. ;;
  11469. hpux9*)
  11470. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11471. hardcode_libdir_separator_CXX=:
  11472. export_dynamic_flag_spec_CXX='$wl-E'
  11473. hardcode_direct_CXX=yes
  11474. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11475. # but as the default
  11476. # location of the library.
  11477. case $cc_basename in
  11478. CC*)
  11479. # FIXME: insert proper C++ library support
  11480. ld_shlibs_CXX=no
  11481. ;;
  11482. aCC*)
  11483. 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'
  11484. # Commands to make compiler produce verbose output that lists
  11485. # what "hidden" libraries, object files and flags are used when
  11486. # linking a shared library.
  11487. #
  11488. # There doesn't appear to be a way to prevent this compiler from
  11489. # explicitly linking system object files so we need to strip them
  11490. # from the output so that they don't get included in the library
  11491. # dependencies.
  11492. 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"'
  11493. ;;
  11494. *)
  11495. if test yes = "$GXX"; then
  11496. 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'
  11497. else
  11498. # FIXME: insert proper C++ library support
  11499. ld_shlibs_CXX=no
  11500. fi
  11501. ;;
  11502. esac
  11503. ;;
  11504. hpux10*|hpux11*)
  11505. if test no = "$with_gnu_ld"; then
  11506. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11507. hardcode_libdir_separator_CXX=:
  11508. case $host_cpu in
  11509. hppa*64*|ia64*)
  11510. ;;
  11511. *)
  11512. export_dynamic_flag_spec_CXX='$wl-E'
  11513. ;;
  11514. esac
  11515. fi
  11516. case $host_cpu in
  11517. hppa*64*|ia64*)
  11518. hardcode_direct_CXX=no
  11519. hardcode_shlibpath_var_CXX=no
  11520. ;;
  11521. *)
  11522. hardcode_direct_CXX=yes
  11523. hardcode_direct_absolute_CXX=yes
  11524. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11525. # but as the default
  11526. # location of the library.
  11527. ;;
  11528. esac
  11529. case $cc_basename in
  11530. CC*)
  11531. # FIXME: insert proper C++ library support
  11532. ld_shlibs_CXX=no
  11533. ;;
  11534. aCC*)
  11535. case $host_cpu in
  11536. hppa*64*)
  11537. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11538. ;;
  11539. ia64*)
  11540. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11541. ;;
  11542. *)
  11543. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11544. ;;
  11545. esac
  11546. # Commands to make compiler produce verbose output that lists
  11547. # what "hidden" libraries, object files and flags are used when
  11548. # linking a shared library.
  11549. #
  11550. # There doesn't appear to be a way to prevent this compiler from
  11551. # explicitly linking system object files so we need to strip them
  11552. # from the output so that they don't get included in the library
  11553. # dependencies.
  11554. 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"'
  11555. ;;
  11556. *)
  11557. if test yes = "$GXX"; then
  11558. if test no = "$with_gnu_ld"; then
  11559. case $host_cpu in
  11560. hppa*64*)
  11561. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11562. ;;
  11563. ia64*)
  11564. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11565. ;;
  11566. *)
  11567. 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'
  11568. ;;
  11569. esac
  11570. fi
  11571. else
  11572. # FIXME: insert proper C++ library support
  11573. ld_shlibs_CXX=no
  11574. fi
  11575. ;;
  11576. esac
  11577. ;;
  11578. interix[3-9]*)
  11579. hardcode_direct_CXX=no
  11580. hardcode_shlibpath_var_CXX=no
  11581. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11582. export_dynamic_flag_spec_CXX='$wl-E'
  11583. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11584. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11585. # default) and relocated if they conflict, which is a slow very memory
  11586. # consuming and fragmenting process. To avoid this, we pick a random,
  11587. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11588. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11589. 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'
  11590. 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'
  11591. ;;
  11592. irix5* | irix6*)
  11593. case $cc_basename in
  11594. CC*)
  11595. # SGI C++
  11596. 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'
  11597. # Archives containing C++ object files must be created using
  11598. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11599. # necessary to make sure instantiated templates are included
  11600. # in the archive.
  11601. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11602. ;;
  11603. *)
  11604. if test yes = "$GXX"; then
  11605. if test no = "$with_gnu_ld"; then
  11606. 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'
  11607. else
  11608. 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'
  11609. fi
  11610. fi
  11611. link_all_deplibs_CXX=yes
  11612. ;;
  11613. esac
  11614. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11615. hardcode_libdir_separator_CXX=:
  11616. inherit_rpath_CXX=yes
  11617. ;;
  11618. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11619. case $cc_basename in
  11620. KCC*)
  11621. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11622. # KCC will only create a shared library if the output file
  11623. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11624. # to its proper name (with version) after linking.
  11625. 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'
  11626. 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'
  11627. # Commands to make compiler produce verbose output that lists
  11628. # what "hidden" libraries, object files and flags are used when
  11629. # linking a shared library.
  11630. #
  11631. # There doesn't appear to be a way to prevent this compiler from
  11632. # explicitly linking system object files so we need to strip them
  11633. # from the output so that they don't get included in the library
  11634. # dependencies.
  11635. 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"'
  11636. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11637. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11638. # Archives containing C++ object files must be created using
  11639. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11640. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11641. ;;
  11642. icpc* | ecpc* )
  11643. # Intel C++
  11644. with_gnu_ld=yes
  11645. # version 8.0 and above of icpc choke on multiply defined symbols
  11646. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11647. # earlier do not add the objects themselves.
  11648. case `$CC -V 2>&1` in
  11649. *"Version 7."*)
  11650. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11651. 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'
  11652. ;;
  11653. *) # Version 8.0 or newer
  11654. tmp_idyn=
  11655. case $host_cpu in
  11656. ia64*) tmp_idyn=' -i_dynamic';;
  11657. esac
  11658. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11659. 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'
  11660. ;;
  11661. esac
  11662. archive_cmds_need_lc_CXX=no
  11663. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11664. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11665. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11666. ;;
  11667. pgCC* | pgcpp*)
  11668. # Portland Group C++ compiler
  11669. case `$CC -V` in
  11670. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11671. prelink_cmds_CXX='tpldir=Template.dir~
  11672. rm -rf $tpldir~
  11673. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11674. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11675. old_archive_cmds_CXX='tpldir=Template.dir~
  11676. rm -rf $tpldir~
  11677. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11678. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11679. $RANLIB $oldlib'
  11680. archive_cmds_CXX='tpldir=Template.dir~
  11681. rm -rf $tpldir~
  11682. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11683. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11684. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11685. rm -rf $tpldir~
  11686. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11687. $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'
  11688. ;;
  11689. *) # Version 6 and above use weak symbols
  11690. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11691. 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'
  11692. ;;
  11693. esac
  11694. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  11695. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11696. 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'
  11697. ;;
  11698. cxx*)
  11699. # Compaq C++
  11700. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11701. 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'
  11702. runpath_var=LD_RUN_PATH
  11703. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11704. hardcode_libdir_separator_CXX=:
  11705. # Commands to make compiler produce verbose output that lists
  11706. # what "hidden" libraries, object files and flags are used when
  11707. # linking a shared library.
  11708. #
  11709. # There doesn't appear to be a way to prevent this compiler from
  11710. # explicitly linking system object files so we need to strip them
  11711. # from the output so that they don't get included in the library
  11712. # dependencies.
  11713. 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'
  11714. ;;
  11715. xl* | mpixl* | bgxl*)
  11716. # IBM XL 8.0 on PPC, with GNU ld
  11717. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11718. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11719. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11720. if test yes = "$supports_anon_versioning"; then
  11721. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11722. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11723. echo "local: *; };" >> $output_objdir/$libname.ver~
  11724. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  11725. fi
  11726. ;;
  11727. *)
  11728. case `$CC -V 2>&1 | sed 5q` in
  11729. *Sun\ C*)
  11730. # Sun C++ 5.9
  11731. no_undefined_flag_CXX=' -zdefs'
  11732. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11733. 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'
  11734. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11735. 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'
  11736. compiler_needs_object_CXX=yes
  11737. # Not sure whether something based on
  11738. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11739. # would be better.
  11740. output_verbose_link_cmd='func_echo_all'
  11741. # Archives containing C++ object files must be created using
  11742. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11743. # necessary to make sure instantiated templates are included
  11744. # in the archive.
  11745. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11746. ;;
  11747. esac
  11748. ;;
  11749. esac
  11750. ;;
  11751. lynxos*)
  11752. # FIXME: insert proper C++ library support
  11753. ld_shlibs_CXX=no
  11754. ;;
  11755. m88k*)
  11756. # FIXME: insert proper C++ library support
  11757. ld_shlibs_CXX=no
  11758. ;;
  11759. mvs*)
  11760. case $cc_basename in
  11761. cxx*)
  11762. # FIXME: insert proper C++ library support
  11763. ld_shlibs_CXX=no
  11764. ;;
  11765. *)
  11766. # FIXME: insert proper C++ library support
  11767. ld_shlibs_CXX=no
  11768. ;;
  11769. esac
  11770. ;;
  11771. netbsd*)
  11772. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11773. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11774. wlarc=
  11775. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11776. hardcode_direct_CXX=yes
  11777. hardcode_shlibpath_var_CXX=no
  11778. fi
  11779. # Workaround some broken pre-1.5 toolchains
  11780. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11781. ;;
  11782. *nto* | *qnx*)
  11783. ld_shlibs_CXX=yes
  11784. ;;
  11785. openbsd* | bitrig*)
  11786. if test -f /usr/libexec/ld.so; then
  11787. hardcode_direct_CXX=yes
  11788. hardcode_shlibpath_var_CXX=no
  11789. hardcode_direct_absolute_CXX=yes
  11790. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11791. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11792. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  11793. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  11794. export_dynamic_flag_spec_CXX='$wl-E'
  11795. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11796. fi
  11797. output_verbose_link_cmd=func_echo_all
  11798. else
  11799. ld_shlibs_CXX=no
  11800. fi
  11801. ;;
  11802. osf3* | osf4* | osf5*)
  11803. case $cc_basename in
  11804. KCC*)
  11805. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11806. # KCC will only create a shared library if the output file
  11807. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11808. # to its proper name (with version) after linking.
  11809. 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'
  11810. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11811. hardcode_libdir_separator_CXX=:
  11812. # Archives containing C++ object files must be created using
  11813. # the KAI C++ compiler.
  11814. case $host in
  11815. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11816. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11817. esac
  11818. ;;
  11819. RCC*)
  11820. # Rational C++ 2.4.1
  11821. # FIXME: insert proper C++ library support
  11822. ld_shlibs_CXX=no
  11823. ;;
  11824. cxx*)
  11825. case $host in
  11826. osf3*)
  11827. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  11828. 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'
  11829. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11830. ;;
  11831. *)
  11832. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11833. 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'
  11834. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11835. echo "-hidden">> $lib.exp~
  11836. $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~
  11837. $RM $lib.exp'
  11838. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11839. ;;
  11840. esac
  11841. hardcode_libdir_separator_CXX=:
  11842. # Commands to make compiler produce verbose output that lists
  11843. # what "hidden" libraries, object files and flags are used when
  11844. # linking a shared library.
  11845. #
  11846. # There doesn't appear to be a way to prevent this compiler from
  11847. # explicitly linking system object files so we need to strip them
  11848. # from the output so that they don't get included in the library
  11849. # dependencies.
  11850. 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"'
  11851. ;;
  11852. *)
  11853. if test yes,no = "$GXX,$with_gnu_ld"; then
  11854. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  11855. case $host in
  11856. osf3*)
  11857. 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'
  11858. ;;
  11859. *)
  11860. 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'
  11861. ;;
  11862. esac
  11863. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11864. hardcode_libdir_separator_CXX=:
  11865. # Commands to make compiler produce verbose output that lists
  11866. # what "hidden" libraries, object files and flags are used when
  11867. # linking a shared library.
  11868. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11869. else
  11870. # FIXME: insert proper C++ library support
  11871. ld_shlibs_CXX=no
  11872. fi
  11873. ;;
  11874. esac
  11875. ;;
  11876. psos*)
  11877. # FIXME: insert proper C++ library support
  11878. ld_shlibs_CXX=no
  11879. ;;
  11880. sunos4*)
  11881. case $cc_basename in
  11882. CC*)
  11883. # Sun C++ 4.x
  11884. # FIXME: insert proper C++ library support
  11885. ld_shlibs_CXX=no
  11886. ;;
  11887. lcc*)
  11888. # Lucid
  11889. # FIXME: insert proper C++ library support
  11890. ld_shlibs_CXX=no
  11891. ;;
  11892. *)
  11893. # FIXME: insert proper C++ library support
  11894. ld_shlibs_CXX=no
  11895. ;;
  11896. esac
  11897. ;;
  11898. solaris*)
  11899. case $cc_basename in
  11900. CC* | sunCC*)
  11901. # Sun C++ 4.2, 5.x and Centerline C++
  11902. archive_cmds_need_lc_CXX=yes
  11903. no_undefined_flag_CXX=' -zdefs'
  11904. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11905. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11906. $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'
  11907. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11908. hardcode_shlibpath_var_CXX=no
  11909. case $host_os in
  11910. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11911. *)
  11912. # The compiler driver will combine and reorder linker options,
  11913. # but understands '-z linker_flag'.
  11914. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11915. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11916. ;;
  11917. esac
  11918. link_all_deplibs_CXX=yes
  11919. output_verbose_link_cmd='func_echo_all'
  11920. # Archives containing C++ object files must be created using
  11921. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11922. # necessary to make sure instantiated templates are included
  11923. # in the archive.
  11924. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11925. ;;
  11926. gcx*)
  11927. # Green Hills C++ Compiler
  11928. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  11929. # The C++ compiler must be used to create the archive.
  11930. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11931. ;;
  11932. *)
  11933. # GNU C++ compiler with Solaris linker
  11934. if test yes,no = "$GXX,$with_gnu_ld"; then
  11935. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  11936. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11937. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  11938. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11939. $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'
  11940. # Commands to make compiler produce verbose output that lists
  11941. # what "hidden" libraries, object files and flags are used when
  11942. # linking a shared library.
  11943. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11944. else
  11945. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  11946. # platform.
  11947. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  11948. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11949. $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'
  11950. # Commands to make compiler produce verbose output that lists
  11951. # what "hidden" libraries, object files and flags are used when
  11952. # linking a shared library.
  11953. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11954. fi
  11955. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  11956. case $host_os in
  11957. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11958. *)
  11959. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  11960. ;;
  11961. esac
  11962. fi
  11963. ;;
  11964. esac
  11965. ;;
  11966. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11967. no_undefined_flag_CXX='$wl-z,text'
  11968. archive_cmds_need_lc_CXX=no
  11969. hardcode_shlibpath_var_CXX=no
  11970. runpath_var='LD_RUN_PATH'
  11971. case $cc_basename in
  11972. CC*)
  11973. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11974. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11975. ;;
  11976. *)
  11977. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11978. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11979. ;;
  11980. esac
  11981. ;;
  11982. sysv5* | sco3.2v5* | sco5v6*)
  11983. # Note: We CANNOT use -z defs as we might desire, because we do not
  11984. # link with -lc, and that would cause any symbols used from libc to
  11985. # always be unresolved, which means just about no library would
  11986. # ever link correctly. If we're not using GNU ld we use -z text
  11987. # though, which does catch some bad symbols but isn't as heavy-handed
  11988. # as -z defs.
  11989. no_undefined_flag_CXX='$wl-z,text'
  11990. allow_undefined_flag_CXX='$wl-z,nodefs'
  11991. archive_cmds_need_lc_CXX=no
  11992. hardcode_shlibpath_var_CXX=no
  11993. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  11994. hardcode_libdir_separator_CXX=':'
  11995. link_all_deplibs_CXX=yes
  11996. export_dynamic_flag_spec_CXX='$wl-Bexport'
  11997. runpath_var='LD_RUN_PATH'
  11998. case $cc_basename in
  11999. CC*)
  12000. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12001. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12002. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12003. '"$old_archive_cmds_CXX"
  12004. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12005. '"$reload_cmds_CXX"
  12006. ;;
  12007. *)
  12008. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12009. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12010. ;;
  12011. esac
  12012. ;;
  12013. tandem*)
  12014. case $cc_basename in
  12015. NCC*)
  12016. # NonStop-UX NCC 3.20
  12017. # FIXME: insert proper C++ library support
  12018. ld_shlibs_CXX=no
  12019. ;;
  12020. *)
  12021. # FIXME: insert proper C++ library support
  12022. ld_shlibs_CXX=no
  12023. ;;
  12024. esac
  12025. ;;
  12026. vxworks*)
  12027. # FIXME: insert proper C++ library support
  12028. ld_shlibs_CXX=no
  12029. ;;
  12030. *)
  12031. # FIXME: insert proper C++ library support
  12032. ld_shlibs_CXX=no
  12033. ;;
  12034. esac
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12036. $as_echo "$ld_shlibs_CXX" >&6; }
  12037. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12038. GCC_CXX=$GXX
  12039. LD_CXX=$LD
  12040. ## CAVEAT EMPTOR:
  12041. ## There is no encapsulation within the following macros, do not change
  12042. ## the running order or otherwise move them around unless you know exactly
  12043. ## what you are doing...
  12044. # Dependencies to place before and after the object being linked:
  12045. predep_objects_CXX=
  12046. postdep_objects_CXX=
  12047. predeps_CXX=
  12048. postdeps_CXX=
  12049. compiler_lib_search_path_CXX=
  12050. cat > conftest.$ac_ext <<_LT_EOF
  12051. class Foo
  12052. {
  12053. public:
  12054. Foo (void) { a = 0; }
  12055. private:
  12056. int a;
  12057. };
  12058. _LT_EOF
  12059. _lt_libdeps_save_CFLAGS=$CFLAGS
  12060. case "$CC $CFLAGS " in #(
  12061. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12062. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12063. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12064. esac
  12065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12066. (eval $ac_compile) 2>&5
  12067. ac_status=$?
  12068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12069. test $ac_status = 0; }; then
  12070. # Parse the compiler output and extract the necessary
  12071. # objects, libraries and library flags.
  12072. # Sentinel used to keep track of whether or not we are before
  12073. # the conftest object file.
  12074. pre_test_object_deps_done=no
  12075. for p in `eval "$output_verbose_link_cmd"`; do
  12076. case $prev$p in
  12077. -L* | -R* | -l*)
  12078. # Some compilers place space between "-{L,R}" and the path.
  12079. # Remove the space.
  12080. if test x-L = "$p" ||
  12081. test x-R = "$p"; then
  12082. prev=$p
  12083. continue
  12084. fi
  12085. # Expand the sysroot to ease extracting the directories later.
  12086. if test -z "$prev"; then
  12087. case $p in
  12088. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12089. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12090. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12091. esac
  12092. fi
  12093. case $p in
  12094. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12095. esac
  12096. if test no = "$pre_test_object_deps_done"; then
  12097. case $prev in
  12098. -L | -R)
  12099. # Internal compiler library paths should come after those
  12100. # provided the user. The postdeps already come after the
  12101. # user supplied libs so there is no need to process them.
  12102. if test -z "$compiler_lib_search_path_CXX"; then
  12103. compiler_lib_search_path_CXX=$prev$p
  12104. else
  12105. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12106. fi
  12107. ;;
  12108. # The "-l" case would never come before the object being
  12109. # linked, so don't bother handling this case.
  12110. esac
  12111. else
  12112. if test -z "$postdeps_CXX"; then
  12113. postdeps_CXX=$prev$p
  12114. else
  12115. postdeps_CXX="${postdeps_CXX} $prev$p"
  12116. fi
  12117. fi
  12118. prev=
  12119. ;;
  12120. *.lto.$objext) ;; # Ignore GCC LTO objects
  12121. *.$objext)
  12122. # This assumes that the test object file only shows up
  12123. # once in the compiler output.
  12124. if test "$p" = "conftest.$objext"; then
  12125. pre_test_object_deps_done=yes
  12126. continue
  12127. fi
  12128. if test no = "$pre_test_object_deps_done"; then
  12129. if test -z "$predep_objects_CXX"; then
  12130. predep_objects_CXX=$p
  12131. else
  12132. predep_objects_CXX="$predep_objects_CXX $p"
  12133. fi
  12134. else
  12135. if test -z "$postdep_objects_CXX"; then
  12136. postdep_objects_CXX=$p
  12137. else
  12138. postdep_objects_CXX="$postdep_objects_CXX $p"
  12139. fi
  12140. fi
  12141. ;;
  12142. *) ;; # Ignore the rest.
  12143. esac
  12144. done
  12145. # Clean up.
  12146. rm -f a.out a.exe
  12147. else
  12148. echo "libtool.m4: error: problem compiling CXX test program"
  12149. fi
  12150. $RM -f confest.$objext
  12151. CFLAGS=$_lt_libdeps_save_CFLAGS
  12152. # PORTME: override above test on systems where it is broken
  12153. case $host_os in
  12154. interix[3-9]*)
  12155. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12156. # hack all around it, let's just trust "g++" to DTRT.
  12157. predep_objects_CXX=
  12158. postdep_objects_CXX=
  12159. postdeps_CXX=
  12160. ;;
  12161. esac
  12162. case " $postdeps_CXX " in
  12163. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12164. esac
  12165. compiler_lib_search_dirs_CXX=
  12166. if test -n "${compiler_lib_search_path_CXX}"; then
  12167. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12168. fi
  12169. lt_prog_compiler_wl_CXX=
  12170. lt_prog_compiler_pic_CXX=
  12171. lt_prog_compiler_static_CXX=
  12172. # C++ specific cases for pic, static, wl, etc.
  12173. if test yes = "$GXX"; then
  12174. lt_prog_compiler_wl_CXX='-Wl,'
  12175. lt_prog_compiler_static_CXX='-static'
  12176. case $host_os in
  12177. aix*)
  12178. # All AIX code is PIC.
  12179. if test ia64 = "$host_cpu"; then
  12180. # AIX 5 now supports IA64 processor
  12181. lt_prog_compiler_static_CXX='-Bstatic'
  12182. fi
  12183. lt_prog_compiler_pic_CXX='-fPIC'
  12184. ;;
  12185. amigaos*)
  12186. case $host_cpu in
  12187. powerpc)
  12188. # see comment about AmigaOS4 .so support
  12189. lt_prog_compiler_pic_CXX='-fPIC'
  12190. ;;
  12191. m68k)
  12192. # FIXME: we need at least 68020 code to build shared libraries, but
  12193. # adding the '-m68020' flag to GCC prevents building anything better,
  12194. # like '-m68040'.
  12195. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12196. ;;
  12197. esac
  12198. ;;
  12199. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12200. # PIC is the default for these OSes.
  12201. ;;
  12202. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12203. # This hack is so that the source file can tell whether it is being
  12204. # built for inclusion in a dll (and should export symbols for example).
  12205. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12206. # (--disable-auto-import) libraries
  12207. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12208. case $host_os in
  12209. os2*)
  12210. lt_prog_compiler_static_CXX='$wl-static'
  12211. ;;
  12212. esac
  12213. ;;
  12214. darwin* | rhapsody*)
  12215. # PIC is the default on this platform
  12216. # Common symbols not allowed in MH_DYLIB files
  12217. lt_prog_compiler_pic_CXX='-fno-common'
  12218. ;;
  12219. *djgpp*)
  12220. # DJGPP does not support shared libraries at all
  12221. lt_prog_compiler_pic_CXX=
  12222. ;;
  12223. haiku*)
  12224. # PIC is the default for Haiku.
  12225. # The "-static" flag exists, but is broken.
  12226. lt_prog_compiler_static_CXX=
  12227. ;;
  12228. interix[3-9]*)
  12229. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12230. # Instead, we relocate shared libraries at runtime.
  12231. ;;
  12232. sysv4*MP*)
  12233. if test -d /usr/nec; then
  12234. lt_prog_compiler_pic_CXX=-Kconform_pic
  12235. fi
  12236. ;;
  12237. hpux*)
  12238. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12239. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12240. # sets the default TLS model and affects inlining.
  12241. case $host_cpu in
  12242. hppa*64*)
  12243. ;;
  12244. *)
  12245. lt_prog_compiler_pic_CXX='-fPIC'
  12246. ;;
  12247. esac
  12248. ;;
  12249. *qnx* | *nto*)
  12250. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12251. # it will coredump.
  12252. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12253. ;;
  12254. *)
  12255. lt_prog_compiler_pic_CXX='-fPIC'
  12256. ;;
  12257. esac
  12258. else
  12259. case $host_os in
  12260. aix[4-9]*)
  12261. # All AIX code is PIC.
  12262. if test ia64 = "$host_cpu"; then
  12263. # AIX 5 now supports IA64 processor
  12264. lt_prog_compiler_static_CXX='-Bstatic'
  12265. else
  12266. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12267. fi
  12268. ;;
  12269. chorus*)
  12270. case $cc_basename in
  12271. cxch68*)
  12272. # Green Hills C++ Compiler
  12273. # _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"
  12274. ;;
  12275. esac
  12276. ;;
  12277. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12278. # This hack is so that the source file can tell whether it is being
  12279. # built for inclusion in a dll (and should export symbols for example).
  12280. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12281. ;;
  12282. dgux*)
  12283. case $cc_basename in
  12284. ec++*)
  12285. lt_prog_compiler_pic_CXX='-KPIC'
  12286. ;;
  12287. ghcx*)
  12288. # Green Hills C++ Compiler
  12289. lt_prog_compiler_pic_CXX='-pic'
  12290. ;;
  12291. *)
  12292. ;;
  12293. esac
  12294. ;;
  12295. freebsd* | dragonfly*)
  12296. # FreeBSD uses GNU C++
  12297. ;;
  12298. hpux9* | hpux10* | hpux11*)
  12299. case $cc_basename in
  12300. CC*)
  12301. lt_prog_compiler_wl_CXX='-Wl,'
  12302. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12303. if test ia64 != "$host_cpu"; then
  12304. lt_prog_compiler_pic_CXX='+Z'
  12305. fi
  12306. ;;
  12307. aCC*)
  12308. lt_prog_compiler_wl_CXX='-Wl,'
  12309. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12310. case $host_cpu in
  12311. hppa*64*|ia64*)
  12312. # +Z the default
  12313. ;;
  12314. *)
  12315. lt_prog_compiler_pic_CXX='+Z'
  12316. ;;
  12317. esac
  12318. ;;
  12319. *)
  12320. ;;
  12321. esac
  12322. ;;
  12323. interix*)
  12324. # This is c89, which is MS Visual C++ (no shared libs)
  12325. # Anyone wants to do a port?
  12326. ;;
  12327. irix5* | irix6* | nonstopux*)
  12328. case $cc_basename in
  12329. CC*)
  12330. lt_prog_compiler_wl_CXX='-Wl,'
  12331. lt_prog_compiler_static_CXX='-non_shared'
  12332. # CC pic flag -KPIC is the default.
  12333. ;;
  12334. *)
  12335. ;;
  12336. esac
  12337. ;;
  12338. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12339. case $cc_basename in
  12340. KCC*)
  12341. # KAI C++ Compiler
  12342. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12343. lt_prog_compiler_pic_CXX='-fPIC'
  12344. ;;
  12345. ecpc* )
  12346. # old Intel C++ for x86_64, which still supported -KPIC.
  12347. lt_prog_compiler_wl_CXX='-Wl,'
  12348. lt_prog_compiler_pic_CXX='-KPIC'
  12349. lt_prog_compiler_static_CXX='-static'
  12350. ;;
  12351. icpc* )
  12352. # Intel C++, used to be incompatible with GCC.
  12353. # ICC 10 doesn't accept -KPIC any more.
  12354. lt_prog_compiler_wl_CXX='-Wl,'
  12355. lt_prog_compiler_pic_CXX='-fPIC'
  12356. lt_prog_compiler_static_CXX='-static'
  12357. ;;
  12358. pgCC* | pgcpp*)
  12359. # Portland Group C++ compiler
  12360. lt_prog_compiler_wl_CXX='-Wl,'
  12361. lt_prog_compiler_pic_CXX='-fpic'
  12362. lt_prog_compiler_static_CXX='-Bstatic'
  12363. ;;
  12364. cxx*)
  12365. # Compaq C++
  12366. # Make sure the PIC flag is empty. It appears that all Alpha
  12367. # Linux and Compaq Tru64 Unix objects are PIC.
  12368. lt_prog_compiler_pic_CXX=
  12369. lt_prog_compiler_static_CXX='-non_shared'
  12370. ;;
  12371. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12372. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12373. lt_prog_compiler_wl_CXX='-Wl,'
  12374. lt_prog_compiler_pic_CXX='-qpic'
  12375. lt_prog_compiler_static_CXX='-qstaticlink'
  12376. ;;
  12377. *)
  12378. case `$CC -V 2>&1 | sed 5q` in
  12379. *Sun\ C*)
  12380. # Sun C++ 5.9
  12381. lt_prog_compiler_pic_CXX='-KPIC'
  12382. lt_prog_compiler_static_CXX='-Bstatic'
  12383. lt_prog_compiler_wl_CXX='-Qoption ld '
  12384. ;;
  12385. esac
  12386. ;;
  12387. esac
  12388. ;;
  12389. lynxos*)
  12390. ;;
  12391. m88k*)
  12392. ;;
  12393. mvs*)
  12394. case $cc_basename in
  12395. cxx*)
  12396. lt_prog_compiler_pic_CXX='-W c,exportall'
  12397. ;;
  12398. *)
  12399. ;;
  12400. esac
  12401. ;;
  12402. netbsd*)
  12403. ;;
  12404. *qnx* | *nto*)
  12405. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12406. # it will coredump.
  12407. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12408. ;;
  12409. osf3* | osf4* | osf5*)
  12410. case $cc_basename in
  12411. KCC*)
  12412. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12413. ;;
  12414. RCC*)
  12415. # Rational C++ 2.4.1
  12416. lt_prog_compiler_pic_CXX='-pic'
  12417. ;;
  12418. cxx*)
  12419. # Digital/Compaq C++
  12420. lt_prog_compiler_wl_CXX='-Wl,'
  12421. # Make sure the PIC flag is empty. It appears that all Alpha
  12422. # Linux and Compaq Tru64 Unix objects are PIC.
  12423. lt_prog_compiler_pic_CXX=
  12424. lt_prog_compiler_static_CXX='-non_shared'
  12425. ;;
  12426. *)
  12427. ;;
  12428. esac
  12429. ;;
  12430. psos*)
  12431. ;;
  12432. solaris*)
  12433. case $cc_basename in
  12434. CC* | sunCC*)
  12435. # Sun C++ 4.2, 5.x and Centerline C++
  12436. lt_prog_compiler_pic_CXX='-KPIC'
  12437. lt_prog_compiler_static_CXX='-Bstatic'
  12438. lt_prog_compiler_wl_CXX='-Qoption ld '
  12439. ;;
  12440. gcx*)
  12441. # Green Hills C++ Compiler
  12442. lt_prog_compiler_pic_CXX='-PIC'
  12443. ;;
  12444. *)
  12445. ;;
  12446. esac
  12447. ;;
  12448. sunos4*)
  12449. case $cc_basename in
  12450. CC*)
  12451. # Sun C++ 4.x
  12452. lt_prog_compiler_pic_CXX='-pic'
  12453. lt_prog_compiler_static_CXX='-Bstatic'
  12454. ;;
  12455. lcc*)
  12456. # Lucid
  12457. lt_prog_compiler_pic_CXX='-pic'
  12458. ;;
  12459. *)
  12460. ;;
  12461. esac
  12462. ;;
  12463. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12464. case $cc_basename in
  12465. CC*)
  12466. lt_prog_compiler_wl_CXX='-Wl,'
  12467. lt_prog_compiler_pic_CXX='-KPIC'
  12468. lt_prog_compiler_static_CXX='-Bstatic'
  12469. ;;
  12470. esac
  12471. ;;
  12472. tandem*)
  12473. case $cc_basename in
  12474. NCC*)
  12475. # NonStop-UX NCC 3.20
  12476. lt_prog_compiler_pic_CXX='-KPIC'
  12477. ;;
  12478. *)
  12479. ;;
  12480. esac
  12481. ;;
  12482. vxworks*)
  12483. ;;
  12484. *)
  12485. lt_prog_compiler_can_build_shared_CXX=no
  12486. ;;
  12487. esac
  12488. fi
  12489. case $host_os in
  12490. # For platforms that do not support PIC, -DPIC is meaningless:
  12491. *djgpp*)
  12492. lt_prog_compiler_pic_CXX=
  12493. ;;
  12494. *)
  12495. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12496. ;;
  12497. esac
  12498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12499. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12500. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12501. $as_echo_n "(cached) " >&6
  12502. else
  12503. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12504. fi
  12505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12506. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12507. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12508. #
  12509. # Check to make sure the PIC flag actually works.
  12510. #
  12511. if test -n "$lt_prog_compiler_pic_CXX"; then
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12513. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12514. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12515. $as_echo_n "(cached) " >&6
  12516. else
  12517. lt_cv_prog_compiler_pic_works_CXX=no
  12518. ac_outfile=conftest.$ac_objext
  12519. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12520. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12521. # Insert the option either (1) after the last *FLAGS variable, or
  12522. # (2) before a word containing "conftest.", or (3) at the end.
  12523. # Note that $ac_compile itself does not contain backslashes and begins
  12524. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12525. # The option is referenced via a variable to avoid confusing sed.
  12526. lt_compile=`echo "$ac_compile" | $SED \
  12527. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12528. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12529. -e 's:$: $lt_compiler_flag:'`
  12530. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12531. (eval "$lt_compile" 2>conftest.err)
  12532. ac_status=$?
  12533. cat conftest.err >&5
  12534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12535. if (exit $ac_status) && test -s "$ac_outfile"; then
  12536. # The compiler can only warn and ignore the option if not recognized
  12537. # So say no if there are warnings other than the usual output.
  12538. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12539. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12540. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12541. lt_cv_prog_compiler_pic_works_CXX=yes
  12542. fi
  12543. fi
  12544. $RM conftest*
  12545. fi
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12547. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12548. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  12549. case $lt_prog_compiler_pic_CXX in
  12550. "" | " "*) ;;
  12551. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12552. esac
  12553. else
  12554. lt_prog_compiler_pic_CXX=
  12555. lt_prog_compiler_can_build_shared_CXX=no
  12556. fi
  12557. fi
  12558. #
  12559. # Check to make sure the static flag actually works.
  12560. #
  12561. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12563. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12564. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12565. $as_echo_n "(cached) " >&6
  12566. else
  12567. lt_cv_prog_compiler_static_works_CXX=no
  12568. save_LDFLAGS=$LDFLAGS
  12569. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12570. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12571. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12572. # The linker can only warn and ignore the option if not recognized
  12573. # So say no if there are warnings
  12574. if test -s conftest.err; then
  12575. # Append any errors to the config.log.
  12576. cat conftest.err 1>&5
  12577. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12578. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12579. if diff conftest.exp conftest.er2 >/dev/null; then
  12580. lt_cv_prog_compiler_static_works_CXX=yes
  12581. fi
  12582. else
  12583. lt_cv_prog_compiler_static_works_CXX=yes
  12584. fi
  12585. fi
  12586. $RM -r conftest*
  12587. LDFLAGS=$save_LDFLAGS
  12588. fi
  12589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12590. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12591. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  12592. :
  12593. else
  12594. lt_prog_compiler_static_CXX=
  12595. fi
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12597. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12598. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12599. $as_echo_n "(cached) " >&6
  12600. else
  12601. lt_cv_prog_compiler_c_o_CXX=no
  12602. $RM -r conftest 2>/dev/null
  12603. mkdir conftest
  12604. cd conftest
  12605. mkdir out
  12606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12607. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12608. # Insert the option either (1) after the last *FLAGS variable, or
  12609. # (2) before a word containing "conftest.", or (3) at the end.
  12610. # Note that $ac_compile itself does not contain backslashes and begins
  12611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12612. lt_compile=`echo "$ac_compile" | $SED \
  12613. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12614. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12615. -e 's:$: $lt_compiler_flag:'`
  12616. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12617. (eval "$lt_compile" 2>out/conftest.err)
  12618. ac_status=$?
  12619. cat out/conftest.err >&5
  12620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12621. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12622. then
  12623. # The compiler can only warn and ignore the option if not recognized
  12624. # So say no if there are warnings
  12625. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12626. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12627. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12628. lt_cv_prog_compiler_c_o_CXX=yes
  12629. fi
  12630. fi
  12631. chmod u+w . 2>&5
  12632. $RM conftest*
  12633. # SGI C++ compiler will create directory out/ii_files/ for
  12634. # template instantiation
  12635. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12636. $RM out/* && rmdir out
  12637. cd ..
  12638. $RM -r conftest
  12639. $RM conftest*
  12640. fi
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12642. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12644. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12645. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12646. $as_echo_n "(cached) " >&6
  12647. else
  12648. lt_cv_prog_compiler_c_o_CXX=no
  12649. $RM -r conftest 2>/dev/null
  12650. mkdir conftest
  12651. cd conftest
  12652. mkdir out
  12653. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12654. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12655. # Insert the option either (1) after the last *FLAGS variable, or
  12656. # (2) before a word containing "conftest.", or (3) at the end.
  12657. # Note that $ac_compile itself does not contain backslashes and begins
  12658. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12659. lt_compile=`echo "$ac_compile" | $SED \
  12660. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12661. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12662. -e 's:$: $lt_compiler_flag:'`
  12663. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12664. (eval "$lt_compile" 2>out/conftest.err)
  12665. ac_status=$?
  12666. cat out/conftest.err >&5
  12667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12668. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12669. then
  12670. # The compiler can only warn and ignore the option if not recognized
  12671. # So say no if there are warnings
  12672. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12673. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12674. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12675. lt_cv_prog_compiler_c_o_CXX=yes
  12676. fi
  12677. fi
  12678. chmod u+w . 2>&5
  12679. $RM conftest*
  12680. # SGI C++ compiler will create directory out/ii_files/ for
  12681. # template instantiation
  12682. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12683. $RM out/* && rmdir out
  12684. cd ..
  12685. $RM -r conftest
  12686. $RM conftest*
  12687. fi
  12688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12689. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12690. hard_links=nottested
  12691. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  12692. # do not overwrite the value of need_locks provided by the user
  12693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12694. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12695. hard_links=yes
  12696. $RM conftest*
  12697. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12698. touch conftest.a
  12699. ln conftest.a conftest.b 2>&5 || hard_links=no
  12700. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12702. $as_echo "$hard_links" >&6; }
  12703. if test no = "$hard_links"; then
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  12705. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  12706. need_locks=warn
  12707. fi
  12708. else
  12709. need_locks=no
  12710. fi
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12712. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12713. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12714. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12715. case $host_os in
  12716. aix[4-9]*)
  12717. # If we're using GNU nm, then we don't want the "-C" option.
  12718. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  12719. # Without the "-l" option, or with the "-B" option, AIX nm treats
  12720. # weak defined symbols like other global defined symbols, whereas
  12721. # GNU nm marks them as "W".
  12722. # While the 'weak' keyword is ignored in the Export File, we need
  12723. # it in the Import File for the 'aix-soname' feature, so we have
  12724. # to replace the "-B" option with "-P" for AIX nm.
  12725. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12726. 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'
  12727. else
  12728. 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'
  12729. fi
  12730. ;;
  12731. pw32*)
  12732. export_symbols_cmds_CXX=$ltdll_cmds
  12733. ;;
  12734. cygwin* | mingw* | cegcc*)
  12735. case $cc_basename in
  12736. cl*)
  12737. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12738. ;;
  12739. *)
  12740. 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'
  12741. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12742. ;;
  12743. esac
  12744. ;;
  12745. *)
  12746. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12747. ;;
  12748. esac
  12749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12750. $as_echo "$ld_shlibs_CXX" >&6; }
  12751. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12752. with_gnu_ld_CXX=$with_gnu_ld
  12753. #
  12754. # Do we need to explicitly link libc?
  12755. #
  12756. case "x$archive_cmds_need_lc_CXX" in
  12757. x|xyes)
  12758. # Assume -lc should be added
  12759. archive_cmds_need_lc_CXX=yes
  12760. if test yes,yes = "$GCC,$enable_shared"; then
  12761. case $archive_cmds_CXX in
  12762. *'~'*)
  12763. # FIXME: we may have to deal with multi-command sequences.
  12764. ;;
  12765. '$CC '*)
  12766. # Test whether the compiler implicitly links with -lc since on some
  12767. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12768. # to ld, don't add -lc before -lgcc.
  12769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12770. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12771. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12772. $as_echo_n "(cached) " >&6
  12773. else
  12774. $RM conftest*
  12775. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12776. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12777. (eval $ac_compile) 2>&5
  12778. ac_status=$?
  12779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12780. test $ac_status = 0; } 2>conftest.err; then
  12781. soname=conftest
  12782. lib=conftest
  12783. libobjs=conftest.$ac_objext
  12784. deplibs=
  12785. wl=$lt_prog_compiler_wl_CXX
  12786. pic_flag=$lt_prog_compiler_pic_CXX
  12787. compiler_flags=-v
  12788. linker_flags=-v
  12789. verstring=
  12790. output_objdir=.
  12791. libname=conftest
  12792. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12793. allow_undefined_flag_CXX=
  12794. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12795. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12796. ac_status=$?
  12797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12798. test $ac_status = 0; }
  12799. then
  12800. lt_cv_archive_cmds_need_lc_CXX=no
  12801. else
  12802. lt_cv_archive_cmds_need_lc_CXX=yes
  12803. fi
  12804. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12805. else
  12806. cat conftest.err 1>&5
  12807. fi
  12808. $RM conftest*
  12809. fi
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12811. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12812. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12813. ;;
  12814. esac
  12815. fi
  12816. ;;
  12817. esac
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12819. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12820. library_names_spec=
  12821. libname_spec='lib$name'
  12822. soname_spec=
  12823. shrext_cmds=.so
  12824. postinstall_cmds=
  12825. postuninstall_cmds=
  12826. finish_cmds=
  12827. finish_eval=
  12828. shlibpath_var=
  12829. shlibpath_overrides_runpath=unknown
  12830. version_type=none
  12831. dynamic_linker="$host_os ld.so"
  12832. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12833. need_lib_prefix=unknown
  12834. hardcode_into_libs=no
  12835. # when you set need_version to no, make sure it does not cause -set_version
  12836. # flags to be left without arguments
  12837. need_version=unknown
  12838. case $host_os in
  12839. aix3*)
  12840. version_type=linux # correct to gnu/linux during the next big refactor
  12841. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12842. shlibpath_var=LIBPATH
  12843. # AIX 3 has no versioning support, so we append a major version to the name.
  12844. soname_spec='$libname$release$shared_ext$major'
  12845. ;;
  12846. aix[4-9]*)
  12847. version_type=linux # correct to gnu/linux during the next big refactor
  12848. need_lib_prefix=no
  12849. need_version=no
  12850. hardcode_into_libs=yes
  12851. if test ia64 = "$host_cpu"; then
  12852. # AIX 5 supports IA64
  12853. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12854. shlibpath_var=LD_LIBRARY_PATH
  12855. else
  12856. # With GCC up to 2.95.x, collect2 would create an import file
  12857. # for dependence libraries. The import file would start with
  12858. # the line '#! .'. This would cause the generated library to
  12859. # depend on '.', always an invalid library. This was fixed in
  12860. # development snapshots of GCC prior to 3.0.
  12861. case $host_os in
  12862. aix4 | aix4.[01] | aix4.[01].*)
  12863. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12864. echo ' yes '
  12865. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12866. :
  12867. else
  12868. can_build_shared=no
  12869. fi
  12870. ;;
  12871. esac
  12872. # Using Import Files as archive members, it is possible to support
  12873. # filename-based versioning of shared library archives on AIX. While
  12874. # this would work for both with and without runtime linking, it will
  12875. # prevent static linking of such archives. So we do filename-based
  12876. # shared library versioning with .so extension only, which is used
  12877. # when both runtime linking and shared linking is enabled.
  12878. # Unfortunately, runtime linking may impact performance, so we do
  12879. # not want this to be the default eventually. Also, we use the
  12880. # versioned .so libs for executables only if there is the -brtl
  12881. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12882. # To allow for filename-based versioning support, we need to create
  12883. # libNAME.so.V as an archive file, containing:
  12884. # *) an Import File, referring to the versioned filename of the
  12885. # archive as well as the shared archive member, telling the
  12886. # bitwidth (32 or 64) of that shared object, and providing the
  12887. # list of exported symbols of that shared object, eventually
  12888. # decorated with the 'weak' keyword
  12889. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12890. # it being seen by the linker.
  12891. # At run time we better use the real file rather than another symlink,
  12892. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12893. case $with_aix_soname,$aix_use_runtimelinking in
  12894. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  12895. # soname into executable. Probably we can add versioning support to
  12896. # collect2, so additional links can be useful in future.
  12897. aix,yes) # traditional libtool
  12898. dynamic_linker='AIX unversionable lib.so'
  12899. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12900. # instead of lib<name>.a to let people know that these are not
  12901. # typical AIX shared libraries.
  12902. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12903. ;;
  12904. aix,no) # traditional AIX only
  12905. dynamic_linker='AIX lib.a(lib.so.V)'
  12906. # We preserve .a as extension for shared libraries through AIX4.2
  12907. # and later when we are not doing run time linking.
  12908. library_names_spec='$libname$release.a $libname.a'
  12909. soname_spec='$libname$release$shared_ext$major'
  12910. ;;
  12911. svr4,*) # full svr4 only
  12912. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  12913. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12914. # We do not specify a path in Import Files, so LIBPATH fires.
  12915. shlibpath_overrides_runpath=yes
  12916. ;;
  12917. *,yes) # both, prefer svr4
  12918. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  12919. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12920. # unpreferred sharedlib libNAME.a needs extra handling
  12921. 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"'
  12922. 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"'
  12923. # We do not specify a path in Import Files, so LIBPATH fires.
  12924. shlibpath_overrides_runpath=yes
  12925. ;;
  12926. *,no) # both, prefer aix
  12927. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  12928. library_names_spec='$libname$release.a $libname.a'
  12929. soname_spec='$libname$release$shared_ext$major'
  12930. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  12931. 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)'
  12932. 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"'
  12933. ;;
  12934. esac
  12935. shlibpath_var=LIBPATH
  12936. fi
  12937. ;;
  12938. amigaos*)
  12939. case $host_cpu in
  12940. powerpc)
  12941. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12942. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12943. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12944. ;;
  12945. m68k)
  12946. library_names_spec='$libname.ixlibrary $libname.a'
  12947. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12948. 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'
  12949. ;;
  12950. esac
  12951. ;;
  12952. beos*)
  12953. library_names_spec='$libname$shared_ext'
  12954. dynamic_linker="$host_os ld.so"
  12955. shlibpath_var=LIBRARY_PATH
  12956. ;;
  12957. bsdi[45]*)
  12958. version_type=linux # correct to gnu/linux during the next big refactor
  12959. need_version=no
  12960. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12961. soname_spec='$libname$release$shared_ext$major'
  12962. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12963. shlibpath_var=LD_LIBRARY_PATH
  12964. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12965. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12966. # the default ld.so.conf also contains /usr/contrib/lib and
  12967. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12968. # libtool to hard-code these into programs
  12969. ;;
  12970. cygwin* | mingw* | pw32* | cegcc*)
  12971. version_type=windows
  12972. shrext_cmds=.dll
  12973. need_version=no
  12974. need_lib_prefix=no
  12975. case $GCC,$cc_basename in
  12976. yes,*)
  12977. # gcc
  12978. library_names_spec='$libname.dll.a'
  12979. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12980. postinstall_cmds='base_file=`basename \$file`~
  12981. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12982. dldir=$destdir/`dirname \$dlpath`~
  12983. test -d \$dldir || mkdir -p \$dldir~
  12984. $install_prog $dir/$dlname \$dldir/$dlname~
  12985. chmod a+x \$dldir/$dlname~
  12986. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12987. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12988. fi'
  12989. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12990. dlpath=$dir/\$dldll~
  12991. $RM \$dlpath'
  12992. shlibpath_overrides_runpath=yes
  12993. case $host_os in
  12994. cygwin*)
  12995. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12996. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12997. ;;
  12998. mingw* | cegcc*)
  12999. # MinGW DLLs use traditional 'lib' prefix
  13000. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13001. ;;
  13002. pw32*)
  13003. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13004. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13005. ;;
  13006. esac
  13007. dynamic_linker='Win32 ld.exe'
  13008. ;;
  13009. *,cl*)
  13010. # Native MSVC
  13011. libname_spec='$name'
  13012. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13013. library_names_spec='$libname.dll.lib'
  13014. case $build_os in
  13015. mingw*)
  13016. sys_lib_search_path_spec=
  13017. lt_save_ifs=$IFS
  13018. IFS=';'
  13019. for lt_path in $LIB
  13020. do
  13021. IFS=$lt_save_ifs
  13022. # Let DOS variable expansion print the short 8.3 style file name.
  13023. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13024. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13025. done
  13026. IFS=$lt_save_ifs
  13027. # Convert to MSYS style.
  13028. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13029. ;;
  13030. cygwin*)
  13031. # Convert to unix form, then to dos form, then back to unix form
  13032. # but this time dos style (no spaces!) so that the unix form looks
  13033. # like /cygdrive/c/PROGRA~1:/cygdr...
  13034. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13035. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13036. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13037. ;;
  13038. *)
  13039. sys_lib_search_path_spec=$LIB
  13040. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13041. # It is most probably a Windows format PATH.
  13042. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13043. else
  13044. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13045. fi
  13046. # FIXME: find the short name or the path components, as spaces are
  13047. # common. (e.g. "Program Files" -> "PROGRA~1")
  13048. ;;
  13049. esac
  13050. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13051. postinstall_cmds='base_file=`basename \$file`~
  13052. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13053. dldir=$destdir/`dirname \$dlpath`~
  13054. test -d \$dldir || mkdir -p \$dldir~
  13055. $install_prog $dir/$dlname \$dldir/$dlname'
  13056. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13057. dlpath=$dir/\$dldll~
  13058. $RM \$dlpath'
  13059. shlibpath_overrides_runpath=yes
  13060. dynamic_linker='Win32 link.exe'
  13061. ;;
  13062. *)
  13063. # Assume MSVC wrapper
  13064. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13065. dynamic_linker='Win32 ld.exe'
  13066. ;;
  13067. esac
  13068. # FIXME: first we should search . and the directory the executable is in
  13069. shlibpath_var=PATH
  13070. ;;
  13071. darwin* | rhapsody*)
  13072. dynamic_linker="$host_os dyld"
  13073. version_type=darwin
  13074. need_lib_prefix=no
  13075. need_version=no
  13076. library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
  13077. soname_spec='$libname$release$major$shared_ext'
  13078. shlibpath_overrides_runpath=yes
  13079. shlibpath_var=DYLD_LIBRARY_PATH
  13080. shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
  13081. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13082. ;;
  13083. dgux*)
  13084. version_type=linux # correct to gnu/linux during the next big refactor
  13085. need_lib_prefix=no
  13086. need_version=no
  13087. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13088. soname_spec='$libname$release$shared_ext$major'
  13089. shlibpath_var=LD_LIBRARY_PATH
  13090. ;;
  13091. freebsd* | dragonfly*)
  13092. # DragonFly does not have aout. When/if they implement a new
  13093. # versioning mechanism, adjust this.
  13094. if test -x /usr/bin/objformat; then
  13095. objformat=`/usr/bin/objformat`
  13096. else
  13097. case $host_os in
  13098. freebsd[23].*) objformat=aout ;;
  13099. *) objformat=elf ;;
  13100. esac
  13101. fi
  13102. # Handle Gentoo/FreeBSD as it was Linux
  13103. case $host_vendor in
  13104. gentoo)
  13105. version_type=linux ;;
  13106. *)
  13107. version_type=freebsd-$objformat ;;
  13108. esac
  13109. case $version_type in
  13110. freebsd-elf*)
  13111. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13112. soname_spec='$libname$release$shared_ext$major'
  13113. need_version=no
  13114. need_lib_prefix=no
  13115. ;;
  13116. freebsd-*)
  13117. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13118. need_version=yes
  13119. ;;
  13120. linux)
  13121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13122. soname_spec='${libname}${release}${shared_ext}$major'
  13123. need_lib_prefix=no
  13124. need_version=no
  13125. ;;
  13126. esac
  13127. shlibpath_var=LD_LIBRARY_PATH
  13128. case $host_os in
  13129. freebsd2.*)
  13130. shlibpath_overrides_runpath=yes
  13131. ;;
  13132. freebsd3.[01]* | freebsdelf3.[01]*)
  13133. shlibpath_overrides_runpath=yes
  13134. hardcode_into_libs=yes
  13135. ;;
  13136. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13137. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13138. shlibpath_overrides_runpath=no
  13139. hardcode_into_libs=yes
  13140. ;;
  13141. *) # from 4.6 on, and DragonFly
  13142. shlibpath_overrides_runpath=yes
  13143. hardcode_into_libs=yes
  13144. ;;
  13145. esac
  13146. ;;
  13147. haiku*)
  13148. version_type=linux # correct to gnu/linux during the next big refactor
  13149. need_lib_prefix=no
  13150. need_version=no
  13151. dynamic_linker="$host_os runtime_loader"
  13152. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13153. soname_spec='$libname$release$shared_ext$major'
  13154. shlibpath_var=LIBRARY_PATH
  13155. shlibpath_overrides_runpath=no
  13156. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13157. hardcode_into_libs=yes
  13158. ;;
  13159. hpux9* | hpux10* | hpux11*)
  13160. # Give a soname corresponding to the major version so that dld.sl refuses to
  13161. # link against other versions.
  13162. version_type=sunos
  13163. need_lib_prefix=no
  13164. need_version=no
  13165. case $host_cpu in
  13166. ia64*)
  13167. shrext_cmds='.so'
  13168. hardcode_into_libs=yes
  13169. dynamic_linker="$host_os dld.so"
  13170. shlibpath_var=LD_LIBRARY_PATH
  13171. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13172. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13173. soname_spec='$libname$release$shared_ext$major'
  13174. if test 32 = "$HPUX_IA64_MODE"; then
  13175. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13176. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13177. else
  13178. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13179. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13180. fi
  13181. ;;
  13182. hppa*64*)
  13183. shrext_cmds='.sl'
  13184. hardcode_into_libs=yes
  13185. dynamic_linker="$host_os dld.sl"
  13186. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13187. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13188. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13189. soname_spec='$libname$release$shared_ext$major'
  13190. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13191. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13192. ;;
  13193. *)
  13194. shrext_cmds='.sl'
  13195. dynamic_linker="$host_os dld.sl"
  13196. shlibpath_var=SHLIB_PATH
  13197. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13198. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13199. soname_spec='$libname$release$shared_ext$major'
  13200. ;;
  13201. esac
  13202. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13203. postinstall_cmds='chmod 555 $lib'
  13204. # or fails outright, so override atomically:
  13205. install_override_mode=555
  13206. ;;
  13207. interix[3-9]*)
  13208. version_type=linux # correct to gnu/linux during the next big refactor
  13209. need_lib_prefix=no
  13210. need_version=no
  13211. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13212. soname_spec='$libname$release$shared_ext$major'
  13213. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13214. shlibpath_var=LD_LIBRARY_PATH
  13215. shlibpath_overrides_runpath=no
  13216. hardcode_into_libs=yes
  13217. ;;
  13218. irix5* | irix6* | nonstopux*)
  13219. case $host_os in
  13220. nonstopux*) version_type=nonstopux ;;
  13221. *)
  13222. if test yes = "$lt_cv_prog_gnu_ld"; then
  13223. version_type=linux # correct to gnu/linux during the next big refactor
  13224. else
  13225. version_type=irix
  13226. fi ;;
  13227. esac
  13228. need_lib_prefix=no
  13229. need_version=no
  13230. soname_spec='$libname$release$shared_ext$major'
  13231. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13232. case $host_os in
  13233. irix5* | nonstopux*)
  13234. libsuff= shlibsuff=
  13235. ;;
  13236. *)
  13237. case $LD in # libtool.m4 will add one of these switches to LD
  13238. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13239. libsuff= shlibsuff= libmagic=32-bit;;
  13240. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13241. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13242. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13243. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13244. *) libsuff= shlibsuff= libmagic=never-match;;
  13245. esac
  13246. ;;
  13247. esac
  13248. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13249. shlibpath_overrides_runpath=no
  13250. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13251. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13252. hardcode_into_libs=yes
  13253. ;;
  13254. # No shared lib support for Linux oldld, aout, or coff.
  13255. linux*oldld* | linux*aout* | linux*coff*)
  13256. dynamic_linker=no
  13257. ;;
  13258. linux*android*)
  13259. version_type=none # Android doesn't support versioned libraries.
  13260. need_lib_prefix=no
  13261. need_version=no
  13262. library_names_spec='$libname$release$shared_ext'
  13263. soname_spec='$libname$release$shared_ext'
  13264. finish_cmds=
  13265. shlibpath_var=LD_LIBRARY_PATH
  13266. shlibpath_overrides_runpath=yes
  13267. # This implies no fast_install, which is unacceptable.
  13268. # Some rework will be needed to allow for fast_install
  13269. # before this can be enabled.
  13270. hardcode_into_libs=yes
  13271. dynamic_linker='Android linker'
  13272. # Don't embed -rpath directories since the linker doesn't support them.
  13273. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13274. ;;
  13275. # This must be glibc/ELF.
  13276. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13277. version_type=linux # correct to gnu/linux during the next big refactor
  13278. need_lib_prefix=no
  13279. need_version=no
  13280. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13281. soname_spec='$libname$release$shared_ext$major'
  13282. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13283. shlibpath_var=LD_LIBRARY_PATH
  13284. shlibpath_overrides_runpath=no
  13285. # Some binutils ld are patched to set DT_RUNPATH
  13286. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13287. $as_echo_n "(cached) " >&6
  13288. else
  13289. lt_cv_shlibpath_overrides_runpath=no
  13290. save_LDFLAGS=$LDFLAGS
  13291. save_libdir=$libdir
  13292. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13293. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13295. /* end confdefs.h. */
  13296. int
  13297. main ()
  13298. {
  13299. ;
  13300. return 0;
  13301. }
  13302. _ACEOF
  13303. if ac_fn_cxx_try_link "$LINENO"; then :
  13304. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13305. lt_cv_shlibpath_overrides_runpath=yes
  13306. fi
  13307. fi
  13308. rm -f core conftest.err conftest.$ac_objext \
  13309. conftest$ac_exeext conftest.$ac_ext
  13310. LDFLAGS=$save_LDFLAGS
  13311. libdir=$save_libdir
  13312. fi
  13313. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13314. # This implies no fast_install, which is unacceptable.
  13315. # Some rework will be needed to allow for fast_install
  13316. # before this can be enabled.
  13317. hardcode_into_libs=yes
  13318. # Ideally, we could use ldconfig to report *all* directores which are
  13319. # searched for libraries, however this is still not possible. Aside from not
  13320. # being certain /sbin/ldconfig is available, command
  13321. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13322. # even though it is searched at run-time. Try to do the best guess by
  13323. # appending ld.so.conf contents (and includes) to the search path.
  13324. if test -f /etc/ld.so.conf; then
  13325. 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' ' '`
  13326. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13327. fi
  13328. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13329. # powerpc, because MkLinux only supported shared libraries with the
  13330. # GNU dynamic linker. Since this was broken with cross compilers,
  13331. # most powerpc-linux boxes support dynamic linking these days and
  13332. # people can always --disable-shared, the test was removed, and we
  13333. # assume the GNU/Linux dynamic linker is in use.
  13334. dynamic_linker='GNU/Linux ld.so'
  13335. ;;
  13336. netbsd*)
  13337. version_type=sunos
  13338. need_lib_prefix=no
  13339. need_version=no
  13340. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13341. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13342. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13343. dynamic_linker='NetBSD (a.out) ld.so'
  13344. else
  13345. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13346. soname_spec='$libname$release$shared_ext$major'
  13347. dynamic_linker='NetBSD ld.elf_so'
  13348. fi
  13349. shlibpath_var=LD_LIBRARY_PATH
  13350. shlibpath_overrides_runpath=yes
  13351. hardcode_into_libs=yes
  13352. ;;
  13353. newsos6)
  13354. version_type=linux # correct to gnu/linux during the next big refactor
  13355. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13356. shlibpath_var=LD_LIBRARY_PATH
  13357. shlibpath_overrides_runpath=yes
  13358. ;;
  13359. *nto* | *qnx*)
  13360. version_type=qnx
  13361. need_lib_prefix=no
  13362. need_version=no
  13363. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13364. soname_spec='$libname$release$shared_ext$major'
  13365. shlibpath_var=LD_LIBRARY_PATH
  13366. shlibpath_overrides_runpath=no
  13367. hardcode_into_libs=yes
  13368. dynamic_linker='ldqnx.so'
  13369. ;;
  13370. openbsd* | bitrig*)
  13371. version_type=sunos
  13372. sys_lib_dlsearch_path_spec=/usr/lib
  13373. need_lib_prefix=no
  13374. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13375. need_version=no
  13376. else
  13377. need_version=yes
  13378. fi
  13379. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13380. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13381. shlibpath_var=LD_LIBRARY_PATH
  13382. shlibpath_overrides_runpath=yes
  13383. ;;
  13384. os2*)
  13385. libname_spec='$name'
  13386. version_type=windows
  13387. shrext_cmds=.dll
  13388. need_version=no
  13389. need_lib_prefix=no
  13390. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13391. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13392. v=$($ECHO $release$versuffix | tr -d .-);
  13393. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13394. $ECHO $n$v`$shared_ext'
  13395. library_names_spec='${libname}_dll.$libext'
  13396. dynamic_linker='OS/2 ld.exe'
  13397. shlibpath_var=BEGINLIBPATH
  13398. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13399. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13400. postinstall_cmds='base_file=`basename \$file`~
  13401. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13402. dldir=$destdir/`dirname \$dlpath`~
  13403. test -d \$dldir || mkdir -p \$dldir~
  13404. $install_prog $dir/$dlname \$dldir/$dlname~
  13405. chmod a+x \$dldir/$dlname~
  13406. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13407. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13408. fi'
  13409. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13410. dlpath=$dir/\$dldll~
  13411. $RM \$dlpath'
  13412. ;;
  13413. osf3* | osf4* | osf5*)
  13414. version_type=osf
  13415. need_lib_prefix=no
  13416. need_version=no
  13417. soname_spec='$libname$release$shared_ext$major'
  13418. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13419. shlibpath_var=LD_LIBRARY_PATH
  13420. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13421. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13422. ;;
  13423. rdos*)
  13424. dynamic_linker=no
  13425. ;;
  13426. solaris*)
  13427. version_type=linux # correct to gnu/linux during the next big refactor
  13428. need_lib_prefix=no
  13429. need_version=no
  13430. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13431. soname_spec='$libname$release$shared_ext$major'
  13432. shlibpath_var=LD_LIBRARY_PATH
  13433. shlibpath_overrides_runpath=yes
  13434. hardcode_into_libs=yes
  13435. # ldd complains unless libraries are executable
  13436. postinstall_cmds='chmod +x $lib'
  13437. ;;
  13438. sunos4*)
  13439. version_type=sunos
  13440. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13441. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13442. shlibpath_var=LD_LIBRARY_PATH
  13443. shlibpath_overrides_runpath=yes
  13444. if test yes = "$with_gnu_ld"; then
  13445. need_lib_prefix=no
  13446. fi
  13447. need_version=yes
  13448. ;;
  13449. sysv4 | sysv4.3*)
  13450. version_type=linux # correct to gnu/linux during the next big refactor
  13451. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13452. soname_spec='$libname$release$shared_ext$major'
  13453. shlibpath_var=LD_LIBRARY_PATH
  13454. case $host_vendor in
  13455. sni)
  13456. shlibpath_overrides_runpath=no
  13457. need_lib_prefix=no
  13458. runpath_var=LD_RUN_PATH
  13459. ;;
  13460. siemens)
  13461. need_lib_prefix=no
  13462. ;;
  13463. motorola)
  13464. need_lib_prefix=no
  13465. need_version=no
  13466. shlibpath_overrides_runpath=no
  13467. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13468. ;;
  13469. esac
  13470. ;;
  13471. sysv4*MP*)
  13472. if test -d /usr/nec; then
  13473. version_type=linux # correct to gnu/linux during the next big refactor
  13474. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13475. soname_spec='$libname$shared_ext.$major'
  13476. shlibpath_var=LD_LIBRARY_PATH
  13477. fi
  13478. ;;
  13479. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13480. version_type=sco
  13481. need_lib_prefix=no
  13482. need_version=no
  13483. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13484. soname_spec='$libname$release$shared_ext$major'
  13485. shlibpath_var=LD_LIBRARY_PATH
  13486. shlibpath_overrides_runpath=yes
  13487. hardcode_into_libs=yes
  13488. if test yes = "$with_gnu_ld"; then
  13489. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13490. else
  13491. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13492. case $host_os in
  13493. sco3.2v5*)
  13494. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13495. ;;
  13496. esac
  13497. fi
  13498. sys_lib_dlsearch_path_spec='/usr/lib'
  13499. ;;
  13500. tpf*)
  13501. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13502. version_type=linux # correct to gnu/linux during the next big refactor
  13503. need_lib_prefix=no
  13504. need_version=no
  13505. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13506. shlibpath_var=LD_LIBRARY_PATH
  13507. shlibpath_overrides_runpath=no
  13508. hardcode_into_libs=yes
  13509. ;;
  13510. uts4*)
  13511. version_type=linux # correct to gnu/linux during the next big refactor
  13512. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13513. soname_spec='$libname$release$shared_ext$major'
  13514. shlibpath_var=LD_LIBRARY_PATH
  13515. ;;
  13516. *)
  13517. dynamic_linker=no
  13518. ;;
  13519. esac
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13521. $as_echo "$dynamic_linker" >&6; }
  13522. test no = "$dynamic_linker" && can_build_shared=no
  13523. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13524. if test yes = "$GCC"; then
  13525. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13526. fi
  13527. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13528. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13529. fi
  13530. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13531. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13532. fi
  13533. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13534. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  13535. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  13536. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  13537. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  13538. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  13539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13540. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13541. hardcode_action_CXX=
  13542. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13543. test -n "$runpath_var_CXX" ||
  13544. test yes = "$hardcode_automatic_CXX"; then
  13545. # We can hardcode non-existent directories.
  13546. if test no != "$hardcode_direct_CXX" &&
  13547. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13548. # have to relink, otherwise we might link with an installed library
  13549. # when we should be linking with a yet-to-be-installed one
  13550. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  13551. test no != "$hardcode_minus_L_CXX"; then
  13552. # Linking always hardcodes the temporary library directory.
  13553. hardcode_action_CXX=relink
  13554. else
  13555. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13556. hardcode_action_CXX=immediate
  13557. fi
  13558. else
  13559. # We cannot hardcode anything, or else we can only hardcode existing
  13560. # directories.
  13561. hardcode_action_CXX=unsupported
  13562. fi
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13564. $as_echo "$hardcode_action_CXX" >&6; }
  13565. if test relink = "$hardcode_action_CXX" ||
  13566. test yes = "$inherit_rpath_CXX"; then
  13567. # Fast installation is not supported
  13568. enable_fast_install=no
  13569. elif test yes = "$shlibpath_overrides_runpath" ||
  13570. test no = "$enable_shared"; then
  13571. # Fast installation is not necessary
  13572. enable_fast_install=needless
  13573. fi
  13574. fi # test -n "$compiler"
  13575. CC=$lt_save_CC
  13576. CFLAGS=$lt_save_CFLAGS
  13577. LDCXX=$LD
  13578. LD=$lt_save_LD
  13579. GCC=$lt_save_GCC
  13580. with_gnu_ld=$lt_save_with_gnu_ld
  13581. lt_cv_path_LDCXX=$lt_cv_path_LD
  13582. lt_cv_path_LD=$lt_save_path_LD
  13583. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13584. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13585. fi # test yes != "$_lt_caught_CXX_error"
  13586. ac_ext=c
  13587. ac_cpp='$CPP $CPPFLAGS'
  13588. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13589. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13590. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13591. # Find a good install program. We prefer a C program (faster),
  13592. # so one script is as good as another. But avoid the broken or
  13593. # incompatible versions:
  13594. # SysV /etc/install, /usr/sbin/install
  13595. # SunOS /usr/etc/install
  13596. # IRIX /sbin/install
  13597. # AIX /bin/install
  13598. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13599. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13600. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13601. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13602. # OS/2's system install, which has a completely different semantic
  13603. # ./install, which can be erroneously created by make from ./install.sh.
  13604. # Reject install programs that cannot install multiple files.
  13605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13606. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13607. if test -z "$INSTALL"; then
  13608. if ${ac_cv_path_install+:} false; then :
  13609. $as_echo_n "(cached) " >&6
  13610. else
  13611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13612. for as_dir in $PATH
  13613. do
  13614. IFS=$as_save_IFS
  13615. test -z "$as_dir" && as_dir=.
  13616. # Account for people who put trailing slashes in PATH elements.
  13617. case $as_dir/ in #((
  13618. ./ | .// | /[cC]/* | \
  13619. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13620. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13621. /usr/ucb/* ) ;;
  13622. *)
  13623. # OSF1 and SCO ODT 3.0 have their own names for install.
  13624. # Don't use installbsd from OSF since it installs stuff as root
  13625. # by default.
  13626. for ac_prog in ginstall scoinst install; do
  13627. for ac_exec_ext in '' $ac_executable_extensions; do
  13628. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13629. if test $ac_prog = install &&
  13630. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13631. # AIX install. It has an incompatible calling convention.
  13632. :
  13633. elif test $ac_prog = install &&
  13634. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13635. # program-specific install script used by HP pwplus--don't use.
  13636. :
  13637. else
  13638. rm -rf conftest.one conftest.two conftest.dir
  13639. echo one > conftest.one
  13640. echo two > conftest.two
  13641. mkdir conftest.dir
  13642. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13643. test -s conftest.one && test -s conftest.two &&
  13644. test -s conftest.dir/conftest.one &&
  13645. test -s conftest.dir/conftest.two
  13646. then
  13647. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13648. break 3
  13649. fi
  13650. fi
  13651. fi
  13652. done
  13653. done
  13654. ;;
  13655. esac
  13656. done
  13657. IFS=$as_save_IFS
  13658. rm -rf conftest.one conftest.two conftest.dir
  13659. fi
  13660. if test "${ac_cv_path_install+set}" = set; then
  13661. INSTALL=$ac_cv_path_install
  13662. else
  13663. # As a last resort, use the slow shell script. Don't cache a
  13664. # value for INSTALL within a source directory, because that will
  13665. # break other packages using the cache if that directory is
  13666. # removed, or if the value is a relative name.
  13667. INSTALL=$ac_install_sh
  13668. fi
  13669. fi
  13670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13671. $as_echo "$INSTALL" >&6; }
  13672. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13673. # It thinks the first close brace ends the variable substitution.
  13674. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13675. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13676. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13677. if test "$GCC" = yes ; then
  13678. OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
  13679. CFLAGS="$OLDCFLAGS -fexceptions"
  13680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
  13681. $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
  13682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13683. /* end confdefs.h. */
  13684. int
  13685. main ()
  13686. {
  13687. ;
  13688. return 0;
  13689. }
  13690. _ACEOF
  13691. if ac_fn_c_try_link "$LINENO"; then :
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13693. $as_echo "yes" >&6; }
  13694. else
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13696. $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
  13697. fi
  13698. rm -f core conftest.err conftest.$ac_objext \
  13699. conftest$ac_exeext conftest.$ac_ext
  13700. if test "x$CXXFLAGS" = x ; then
  13701. CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
  13702. fi
  13703. CFLAGS="${CFLAGS} -fno-strict-aliasing"
  13704. CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
  13705. LDFLAGS="${LDFLAGS} -fno-strict-aliasing"
  13706. fi
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13708. $as_echo_n "checking for ANSI C header files... " >&6; }
  13709. if ${ac_cv_header_stdc+:} false; then :
  13710. $as_echo_n "(cached) " >&6
  13711. else
  13712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13713. /* end confdefs.h. */
  13714. #include <stdlib.h>
  13715. #include <stdarg.h>
  13716. #include <string.h>
  13717. #include <float.h>
  13718. int
  13719. main ()
  13720. {
  13721. ;
  13722. return 0;
  13723. }
  13724. _ACEOF
  13725. if ac_fn_c_try_compile "$LINENO"; then :
  13726. ac_cv_header_stdc=yes
  13727. else
  13728. ac_cv_header_stdc=no
  13729. fi
  13730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13731. if test $ac_cv_header_stdc = yes; then
  13732. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13734. /* end confdefs.h. */
  13735. #include <string.h>
  13736. _ACEOF
  13737. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13738. $EGREP "memchr" >/dev/null 2>&1; then :
  13739. else
  13740. ac_cv_header_stdc=no
  13741. fi
  13742. rm -f conftest*
  13743. fi
  13744. if test $ac_cv_header_stdc = yes; then
  13745. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13747. /* end confdefs.h. */
  13748. #include <stdlib.h>
  13749. _ACEOF
  13750. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13751. $EGREP "free" >/dev/null 2>&1; then :
  13752. else
  13753. ac_cv_header_stdc=no
  13754. fi
  13755. rm -f conftest*
  13756. fi
  13757. if test $ac_cv_header_stdc = yes; then
  13758. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13759. if test "$cross_compiling" = yes; then :
  13760. :
  13761. else
  13762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13763. /* end confdefs.h. */
  13764. #include <ctype.h>
  13765. #include <stdlib.h>
  13766. #if ((' ' & 0x0FF) == 0x020)
  13767. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13768. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13769. #else
  13770. # define ISLOWER(c) \
  13771. (('a' <= (c) && (c) <= 'i') \
  13772. || ('j' <= (c) && (c) <= 'r') \
  13773. || ('s' <= (c) && (c) <= 'z'))
  13774. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13775. #endif
  13776. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13777. int
  13778. main ()
  13779. {
  13780. int i;
  13781. for (i = 0; i < 256; i++)
  13782. if (XOR (islower (i), ISLOWER (i))
  13783. || toupper (i) != TOUPPER (i))
  13784. return 2;
  13785. return 0;
  13786. }
  13787. _ACEOF
  13788. if ac_fn_c_try_run "$LINENO"; then :
  13789. else
  13790. ac_cv_header_stdc=no
  13791. fi
  13792. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13793. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13794. fi
  13795. fi
  13796. fi
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13798. $as_echo "$ac_cv_header_stdc" >&6; }
  13799. if test $ac_cv_header_stdc = yes; then
  13800. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13801. fi
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13803. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13804. if ${ac_cv_c_bigendian+:} false; then :
  13805. $as_echo_n "(cached) " >&6
  13806. else
  13807. ac_cv_c_bigendian=unknown
  13808. # See if sys/param.h defines the BYTE_ORDER macro.
  13809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13810. /* end confdefs.h. */
  13811. #include <sys/types.h>
  13812. #include <sys/param.h>
  13813. int
  13814. main ()
  13815. {
  13816. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  13817. bogus endian macros
  13818. #endif
  13819. ;
  13820. return 0;
  13821. }
  13822. _ACEOF
  13823. if ac_fn_c_try_compile "$LINENO"; then :
  13824. # It does; now see whether it defined to BIG_ENDIAN or not.
  13825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13826. /* end confdefs.h. */
  13827. #include <sys/types.h>
  13828. #include <sys/param.h>
  13829. int
  13830. main ()
  13831. {
  13832. #if BYTE_ORDER != BIG_ENDIAN
  13833. not big endian
  13834. #endif
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. if ac_fn_c_try_compile "$LINENO"; then :
  13840. ac_cv_c_bigendian=yes
  13841. else
  13842. ac_cv_c_bigendian=no
  13843. fi
  13844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13845. fi
  13846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13847. if test $ac_cv_c_bigendian = unknown; then
  13848. if test "$cross_compiling" = yes; then :
  13849. echo $ac_n "cross-compiling... " 2>&6
  13850. else
  13851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13852. /* end confdefs.h. */
  13853. main () {
  13854. /* Are we little or big endian? From Harbison&Steele. */
  13855. union
  13856. {
  13857. long l;
  13858. char c[sizeof (long)];
  13859. } u;
  13860. u.l = 1;
  13861. exit (u.c[sizeof (long) - 1] == 1);
  13862. }
  13863. _ACEOF
  13864. if ac_fn_c_try_run "$LINENO"; then :
  13865. ac_cv_c_bigendian=no
  13866. else
  13867. ac_cv_c_bigendian=yes
  13868. fi
  13869. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13870. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13871. fi
  13872. fi
  13873. fi
  13874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13875. $as_echo "$ac_cv_c_bigendian" >&6; }
  13876. if test $ac_cv_c_bigendian = unknown; then
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
  13878. $as_echo_n "checking to probe for byte ordering... " >&6; }
  13879. cat >conftest.c <<EOF
  13880. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13881. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13882. void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
  13883. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13884. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13885. void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
  13886. int main() { _ascii (); _ebcdic (); return 0; }
  13887. EOF
  13888. if test -f conftest.c ; then
  13889. if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
  13890. if test `grep -l BIGenDianSyS conftest.o` ; then
  13891. echo $ac_n ' big endian probe OK, ' 1>&6
  13892. ac_cv_c_bigendian=yes
  13893. fi
  13894. if test `grep -l LiTTleEnDian conftest.o` ; then
  13895. echo $ac_n ' little endian probe OK, ' 1>&6
  13896. if test $ac_cv_c_bigendian = yes ; then
  13897. ac_cv_c_bigendian=unknown;
  13898. else
  13899. ac_cv_c_bigendian=no
  13900. fi
  13901. fi
  13902. echo $ac_n 'guessing bigendian ... ' >&6
  13903. fi
  13904. fi
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13906. $as_echo "$ac_cv_c_bigendian" >&6; }
  13907. fi
  13908. if test $ac_cv_c_bigendian = yes; then
  13909. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  13910. BYTEORDER=4321
  13911. else
  13912. BYTEORDER=1234
  13913. fi
  13914. cat >>confdefs.h <<_ACEOF
  13915. #define BYTEORDER $BYTEORDER
  13916. _ACEOF
  13917. if test $ac_cv_c_bigendian = unknown; then
  13918. as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
  13919. fi
  13920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13921. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13922. if ${ac_cv_c_const+:} false; then :
  13923. $as_echo_n "(cached) " >&6
  13924. else
  13925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13926. /* end confdefs.h. */
  13927. int
  13928. main ()
  13929. {
  13930. #ifndef __cplusplus
  13931. /* Ultrix mips cc rejects this sort of thing. */
  13932. typedef int charset[2];
  13933. const charset cs = { 0, 0 };
  13934. /* SunOS 4.1.1 cc rejects this. */
  13935. char const *const *pcpcc;
  13936. char **ppc;
  13937. /* NEC SVR4.0.2 mips cc rejects this. */
  13938. struct point {int x, y;};
  13939. static struct point const zero = {0,0};
  13940. /* AIX XL C 1.02.0.0 rejects this.
  13941. It does not let you subtract one const X* pointer from another in
  13942. an arm of an if-expression whose if-part is not a constant
  13943. expression */
  13944. const char *g = "string";
  13945. pcpcc = &g + (g ? g-g : 0);
  13946. /* HPUX 7.0 cc rejects these. */
  13947. ++pcpcc;
  13948. ppc = (char**) pcpcc;
  13949. pcpcc = (char const *const *) ppc;
  13950. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13951. char tx;
  13952. char *t = &tx;
  13953. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13954. *t++ = 0;
  13955. if (s) return 0;
  13956. }
  13957. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13958. int x[] = {25, 17};
  13959. const int *foo = &x[0];
  13960. ++foo;
  13961. }
  13962. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13963. typedef const int *iptr;
  13964. iptr p = 0;
  13965. ++p;
  13966. }
  13967. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13968. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13969. struct s { int j; const int *ap[3]; } bx;
  13970. struct s *b = &bx; b->j = 5;
  13971. }
  13972. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13973. const int foo = 10;
  13974. if (!foo) return 0;
  13975. }
  13976. return !cs[0] && !zero.x;
  13977. #endif
  13978. ;
  13979. return 0;
  13980. }
  13981. _ACEOF
  13982. if ac_fn_c_try_compile "$LINENO"; then :
  13983. ac_cv_c_const=yes
  13984. else
  13985. ac_cv_c_const=no
  13986. fi
  13987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13988. fi
  13989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13990. $as_echo "$ac_cv_c_const" >&6; }
  13991. if test $ac_cv_c_const = no; then
  13992. $as_echo "#define const /**/" >>confdefs.h
  13993. fi
  13994. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13995. if test "x$ac_cv_type_size_t" = xyes; then :
  13996. else
  13997. cat >>confdefs.h <<_ACEOF
  13998. #define size_t unsigned int
  13999. _ACEOF
  14000. fi
  14001. for ac_func in memmove bcopy
  14002. do :
  14003. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14004. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14005. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14006. cat >>confdefs.h <<_ACEOF
  14007. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14008. _ACEOF
  14009. fi
  14010. done
  14011. # Check whether --with-libbsd was given.
  14012. if test "${with_libbsd+set}" = set; then :
  14013. withval=$with_libbsd;
  14014. else
  14015. with_libbsd=no
  14016. fi
  14017. if test "x${with_libbsd}" != xno; then :
  14018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
  14019. $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
  14020. if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
  14021. $as_echo_n "(cached) " >&6
  14022. else
  14023. ac_check_lib_save_LIBS=$LIBS
  14024. LIBS="-lbsd $LIBS"
  14025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14026. /* end confdefs.h. */
  14027. /* Override any GCC internal prototype to avoid an error.
  14028. Use char because int might match the return type of a GCC
  14029. builtin and then its argument prototype would still apply. */
  14030. #ifdef __cplusplus
  14031. extern "C"
  14032. #endif
  14033. char arc4random_buf ();
  14034. int
  14035. main ()
  14036. {
  14037. return arc4random_buf ();
  14038. ;
  14039. return 0;
  14040. }
  14041. _ACEOF
  14042. if ac_fn_c_try_link "$LINENO"; then :
  14043. ac_cv_lib_bsd_arc4random_buf=yes
  14044. else
  14045. ac_cv_lib_bsd_arc4random_buf=no
  14046. fi
  14047. rm -f core conftest.err conftest.$ac_objext \
  14048. conftest$ac_exeext conftest.$ac_ext
  14049. LIBS=$ac_check_lib_save_LIBS
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
  14052. $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
  14053. if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
  14054. cat >>confdefs.h <<_ACEOF
  14055. #define HAVE_LIBBSD 1
  14056. _ACEOF
  14057. LIBS="-lbsd $LIBS"
  14058. else
  14059. if test "x${with_libbsd}" = xyes; then :
  14060. as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
  14061. fi
  14062. fi
  14063. fi
  14064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
  14065. $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
  14066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14067. /* end confdefs.h. */
  14068. #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
  14069. #if defined(HAVE_LIBBSD)
  14070. # include <bsd/stdlib.h>
  14071. #endif
  14072. int main() {
  14073. arc4random_buf(NULL, 0U);
  14074. return 0;
  14075. }
  14076. _ACEOF
  14077. if ac_fn_c_try_link "$LINENO"; then :
  14078. $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  14079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14080. $as_echo "yes" >&6; }
  14081. else
  14082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14083. $as_echo "no" >&6; }
  14084. fi
  14085. rm -f core conftest.err conftest.$ac_objext \
  14086. conftest$ac_exeext conftest.$ac_ext
  14087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
  14088. $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
  14089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14090. /* end confdefs.h. */
  14091. #include <stdlib.h> /* for NULL */
  14092. #include <sys/random.h>
  14093. int main() {
  14094. return getrandom(NULL, 0U, 0U);
  14095. }
  14096. _ACEOF
  14097. if ac_fn_c_try_compile "$LINENO"; then :
  14098. $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
  14099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14100. $as_echo "yes" >&6; }
  14101. else
  14102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14103. $as_echo "no" >&6; }
  14104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
  14105. $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
  14106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14107. /* end confdefs.h. */
  14108. #include <stdlib.h> /* for NULL */
  14109. #include <unistd.h> /* for syscall */
  14110. #include <sys/syscall.h> /* for SYS_getrandom */
  14111. int main() {
  14112. syscall(SYS_getrandom, NULL, 0, 0);
  14113. return 0;
  14114. }
  14115. _ACEOF
  14116. if ac_fn_c_try_link "$LINENO"; then :
  14117. $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14119. $as_echo "yes" >&6; }
  14120. else
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14122. $as_echo "no" >&6; }
  14123. fi
  14124. rm -f core conftest.err conftest.$ac_objext \
  14125. conftest$ac_exeext conftest.$ac_ext
  14126. fi
  14127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14128. for ac_header in fcntl.h unistd.h
  14129. do :
  14130. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14131. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14132. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14133. cat >>confdefs.h <<_ACEOF
  14134. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14135. _ACEOF
  14136. fi
  14137. done
  14138. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  14139. if test "x$ac_cv_type_off_t" = xyes; then :
  14140. else
  14141. cat >>confdefs.h <<_ACEOF
  14142. #define off_t long int
  14143. _ACEOF
  14144. fi
  14145. for ac_header in $ac_header_list
  14146. do :
  14147. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14148. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14149. "
  14150. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14151. cat >>confdefs.h <<_ACEOF
  14152. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14153. _ACEOF
  14154. fi
  14155. done
  14156. for ac_func in getpagesize
  14157. do :
  14158. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14159. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14160. cat >>confdefs.h <<_ACEOF
  14161. #define HAVE_GETPAGESIZE 1
  14162. _ACEOF
  14163. fi
  14164. done
  14165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14166. $as_echo_n "checking for working mmap... " >&6; }
  14167. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14168. $as_echo_n "(cached) " >&6
  14169. else
  14170. if test "$cross_compiling" = yes; then :
  14171. ac_cv_func_mmap_fixed_mapped=no
  14172. else
  14173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14174. /* end confdefs.h. */
  14175. $ac_includes_default
  14176. /* malloc might have been renamed as rpl_malloc. */
  14177. #undef malloc
  14178. /* Thanks to Mike Haertel and Jim Avera for this test.
  14179. Here is a matrix of mmap possibilities:
  14180. mmap private not fixed
  14181. mmap private fixed at somewhere currently unmapped
  14182. mmap private fixed at somewhere already mapped
  14183. mmap shared not fixed
  14184. mmap shared fixed at somewhere currently unmapped
  14185. mmap shared fixed at somewhere already mapped
  14186. For private mappings, we should verify that changes cannot be read()
  14187. back from the file, nor mmap's back from the file at a different
  14188. address. (There have been systems where private was not correctly
  14189. implemented like the infamous i386 svr4.0, and systems where the
  14190. VM page cache was not coherent with the file system buffer cache
  14191. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14192. For shared mappings, we should conversely verify that changes get
  14193. propagated back to all the places they're supposed to be.
  14194. Grep wants private fixed already mapped.
  14195. The main things grep needs to know about mmap are:
  14196. * does it exist and is it safe to write into the mmap'd area
  14197. * how to use it (BSD variants) */
  14198. #include <fcntl.h>
  14199. #include <sys/mman.h>
  14200. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14201. char *malloc ();
  14202. #endif
  14203. /* This mess was copied from the GNU getpagesize.h. */
  14204. #ifndef HAVE_GETPAGESIZE
  14205. # ifdef _SC_PAGESIZE
  14206. # define getpagesize() sysconf(_SC_PAGESIZE)
  14207. # else /* no _SC_PAGESIZE */
  14208. # ifdef HAVE_SYS_PARAM_H
  14209. # include <sys/param.h>
  14210. # ifdef EXEC_PAGESIZE
  14211. # define getpagesize() EXEC_PAGESIZE
  14212. # else /* no EXEC_PAGESIZE */
  14213. # ifdef NBPG
  14214. # define getpagesize() NBPG * CLSIZE
  14215. # ifndef CLSIZE
  14216. # define CLSIZE 1
  14217. # endif /* no CLSIZE */
  14218. # else /* no NBPG */
  14219. # ifdef NBPC
  14220. # define getpagesize() NBPC
  14221. # else /* no NBPC */
  14222. # ifdef PAGESIZE
  14223. # define getpagesize() PAGESIZE
  14224. # endif /* PAGESIZE */
  14225. # endif /* no NBPC */
  14226. # endif /* no NBPG */
  14227. # endif /* no EXEC_PAGESIZE */
  14228. # else /* no HAVE_SYS_PARAM_H */
  14229. # define getpagesize() 8192 /* punt totally */
  14230. # endif /* no HAVE_SYS_PARAM_H */
  14231. # endif /* no _SC_PAGESIZE */
  14232. #endif /* no HAVE_GETPAGESIZE */
  14233. int
  14234. main ()
  14235. {
  14236. char *data, *data2, *data3;
  14237. const char *cdata2;
  14238. int i, pagesize;
  14239. int fd, fd2;
  14240. pagesize = getpagesize ();
  14241. /* First, make a file with some known garbage in it. */
  14242. data = (char *) malloc (pagesize);
  14243. if (!data)
  14244. return 1;
  14245. for (i = 0; i < pagesize; ++i)
  14246. *(data + i) = rand ();
  14247. umask (0);
  14248. fd = creat ("conftest.mmap", 0600);
  14249. if (fd < 0)
  14250. return 2;
  14251. if (write (fd, data, pagesize) != pagesize)
  14252. return 3;
  14253. close (fd);
  14254. /* Next, check that the tail of a page is zero-filled. File must have
  14255. non-zero length, otherwise we risk SIGBUS for entire page. */
  14256. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14257. if (fd2 < 0)
  14258. return 4;
  14259. cdata2 = "";
  14260. if (write (fd2, cdata2, 1) != 1)
  14261. return 5;
  14262. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14263. if (data2 == MAP_FAILED)
  14264. return 6;
  14265. for (i = 0; i < pagesize; ++i)
  14266. if (*(data2 + i))
  14267. return 7;
  14268. close (fd2);
  14269. if (munmap (data2, pagesize))
  14270. return 8;
  14271. /* Next, try to mmap the file at a fixed address which already has
  14272. something else allocated at it. If we can, also make sure that
  14273. we see the same garbage. */
  14274. fd = open ("conftest.mmap", O_RDWR);
  14275. if (fd < 0)
  14276. return 9;
  14277. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14278. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14279. return 10;
  14280. for (i = 0; i < pagesize; ++i)
  14281. if (*(data + i) != *(data2 + i))
  14282. return 11;
  14283. /* Finally, make sure that changes to the mapped area do not
  14284. percolate back to the file as seen by read(). (This is a bug on
  14285. some variants of i386 svr4.0.) */
  14286. for (i = 0; i < pagesize; ++i)
  14287. *(data2 + i) = *(data2 + i) + 1;
  14288. data3 = (char *) malloc (pagesize);
  14289. if (!data3)
  14290. return 12;
  14291. if (read (fd, data3, pagesize) != pagesize)
  14292. return 13;
  14293. for (i = 0; i < pagesize; ++i)
  14294. if (*(data + i) != *(data3 + i))
  14295. return 14;
  14296. close (fd);
  14297. return 0;
  14298. }
  14299. _ACEOF
  14300. if ac_fn_c_try_run "$LINENO"; then :
  14301. ac_cv_func_mmap_fixed_mapped=yes
  14302. else
  14303. ac_cv_func_mmap_fixed_mapped=no
  14304. fi
  14305. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14306. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14307. fi
  14308. fi
  14309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14310. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14311. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14312. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14313. fi
  14314. rm -f conftest.mmap conftest.txt
  14315. if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
  14316. FILEMAP=unixfilemap
  14317. else
  14318. FILEMAP=readfilemap
  14319. fi
  14320. # AC_CPP_FUNC
  14321. # ------------------ #
  14322. # Checks to see if ANSI C99 CPP variable __func__ works.
  14323. # If not, perhaps __FUNCTION__ works instead.
  14324. # If not, we'll just define __func__ to "".
  14325. # AC_CPP_FUNC
  14326. case $ac_cv_prog_cc_stdc in #(
  14327. no) :
  14328. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  14329. *) :
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  14331. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  14332. if ${ac_cv_prog_cc_c99+:} false; then :
  14333. $as_echo_n "(cached) " >&6
  14334. else
  14335. ac_cv_prog_cc_c99=no
  14336. ac_save_CC=$CC
  14337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14338. /* end confdefs.h. */
  14339. #include <stdarg.h>
  14340. #include <stdbool.h>
  14341. #include <stdlib.h>
  14342. #include <wchar.h>
  14343. #include <stdio.h>
  14344. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  14345. #define debug(...) fprintf (stderr, __VA_ARGS__)
  14346. #define showlist(...) puts (#__VA_ARGS__)
  14347. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  14348. static void
  14349. test_varargs_macros (void)
  14350. {
  14351. int x = 1234;
  14352. int y = 5678;
  14353. debug ("Flag");
  14354. debug ("X = %d\n", x);
  14355. showlist (The first, second, and third items.);
  14356. report (x>y, "x is %d but y is %d", x, y);
  14357. }
  14358. // Check long long types.
  14359. #define BIG64 18446744073709551615ull
  14360. #define BIG32 4294967295ul
  14361. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  14362. #if !BIG_OK
  14363. your preprocessor is broken;
  14364. #endif
  14365. #if BIG_OK
  14366. #else
  14367. your preprocessor is broken;
  14368. #endif
  14369. static long long int bignum = -9223372036854775807LL;
  14370. static unsigned long long int ubignum = BIG64;
  14371. struct incomplete_array
  14372. {
  14373. int datasize;
  14374. double data[];
  14375. };
  14376. struct named_init {
  14377. int number;
  14378. const wchar_t *name;
  14379. double average;
  14380. };
  14381. typedef const char *ccp;
  14382. static inline int
  14383. test_restrict (ccp restrict text)
  14384. {
  14385. // See if C++-style comments work.
  14386. // Iterate through items via the restricted pointer.
  14387. // Also check for declarations in for loops.
  14388. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  14389. continue;
  14390. return 0;
  14391. }
  14392. // Check varargs and va_copy.
  14393. static void
  14394. test_varargs (const char *format, ...)
  14395. {
  14396. va_list args;
  14397. va_start (args, format);
  14398. va_list args_copy;
  14399. va_copy (args_copy, args);
  14400. const char *str;
  14401. int number;
  14402. float fnumber;
  14403. while (*format)
  14404. {
  14405. switch (*format++)
  14406. {
  14407. case 's': // string
  14408. str = va_arg (args_copy, const char *);
  14409. break;
  14410. case 'd': // int
  14411. number = va_arg (args_copy, int);
  14412. break;
  14413. case 'f': // float
  14414. fnumber = va_arg (args_copy, double);
  14415. break;
  14416. default:
  14417. break;
  14418. }
  14419. }
  14420. va_end (args_copy);
  14421. va_end (args);
  14422. }
  14423. int
  14424. main ()
  14425. {
  14426. // Check bool.
  14427. _Bool success = false;
  14428. // Check restrict.
  14429. if (test_restrict ("String literal") == 0)
  14430. success = true;
  14431. char *restrict newvar = "Another string";
  14432. // Check varargs.
  14433. test_varargs ("s, d' f .", "string", 65, 34.234);
  14434. test_varargs_macros ();
  14435. // Check flexible array members.
  14436. struct incomplete_array *ia =
  14437. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  14438. ia->datasize = 10;
  14439. for (int i = 0; i < ia->datasize; ++i)
  14440. ia->data[i] = i * 1.234;
  14441. // Check named initializers.
  14442. struct named_init ni = {
  14443. .number = 34,
  14444. .name = L"Test wide string",
  14445. .average = 543.34343,
  14446. };
  14447. ni.number = 58;
  14448. int dynamic_array[ni.number];
  14449. dynamic_array[ni.number - 1] = 543;
  14450. // work around unused variable warnings
  14451. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  14452. || dynamic_array[ni.number - 1] != 543);
  14453. ;
  14454. return 0;
  14455. }
  14456. _ACEOF
  14457. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  14458. do
  14459. CC="$ac_save_CC $ac_arg"
  14460. if ac_fn_c_try_compile "$LINENO"; then :
  14461. ac_cv_prog_cc_c99=$ac_arg
  14462. fi
  14463. rm -f core conftest.err conftest.$ac_objext
  14464. test "x$ac_cv_prog_cc_c99" != "xno" && break
  14465. done
  14466. rm -f conftest.$ac_ext
  14467. CC=$ac_save_CC
  14468. fi
  14469. # AC_CACHE_VAL
  14470. case "x$ac_cv_prog_cc_c99" in
  14471. x)
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  14473. $as_echo "none needed" >&6; } ;;
  14474. xno)
  14475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  14476. $as_echo "unsupported" >&6; } ;;
  14477. *)
  14478. CC="$CC $ac_cv_prog_cc_c99"
  14479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  14480. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  14481. esac
  14482. if test "x$ac_cv_prog_cc_c99" != xno; then :
  14483. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  14484. else
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  14486. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  14487. if ${ac_cv_prog_cc_c89+:} false; then :
  14488. $as_echo_n "(cached) " >&6
  14489. else
  14490. ac_cv_prog_cc_c89=no
  14491. ac_save_CC=$CC
  14492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14493. /* end confdefs.h. */
  14494. #include <stdarg.h>
  14495. #include <stdio.h>
  14496. struct stat;
  14497. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  14498. struct buf { int x; };
  14499. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  14500. static char *e (p, i)
  14501. char **p;
  14502. int i;
  14503. {
  14504. return p[i];
  14505. }
  14506. static char *f (char * (*g) (char **, int), char **p, ...)
  14507. {
  14508. char *s;
  14509. va_list v;
  14510. va_start (v,p);
  14511. s = g (p, va_arg (v,int));
  14512. va_end (v);
  14513. return s;
  14514. }
  14515. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  14516. function prototypes and stuff, but not '\xHH' hex character constants.
  14517. These don't provoke an error unfortunately, instead are silently treated
  14518. as 'x'. The following induces an error, until -std is added to get
  14519. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  14520. array size at least. It's necessary to write '\x00'==0 to get something
  14521. that's true only with -std. */
  14522. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  14523. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  14524. inside strings and character constants. */
  14525. #define FOO(x) 'x'
  14526. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  14527. int test (int i, double x);
  14528. struct s1 {int (*f) (int a);};
  14529. struct s2 {int (*f) (double a);};
  14530. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  14531. int argc;
  14532. char **argv;
  14533. int
  14534. main ()
  14535. {
  14536. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  14537. ;
  14538. return 0;
  14539. }
  14540. _ACEOF
  14541. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  14542. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  14543. do
  14544. CC="$ac_save_CC $ac_arg"
  14545. if ac_fn_c_try_compile "$LINENO"; then :
  14546. ac_cv_prog_cc_c89=$ac_arg
  14547. fi
  14548. rm -f core conftest.err conftest.$ac_objext
  14549. test "x$ac_cv_prog_cc_c89" != "xno" && break
  14550. done
  14551. rm -f conftest.$ac_ext
  14552. CC=$ac_save_CC
  14553. fi
  14554. # AC_CACHE_VAL
  14555. case "x$ac_cv_prog_cc_c89" in
  14556. x)
  14557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  14558. $as_echo "none needed" >&6; } ;;
  14559. xno)
  14560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  14561. $as_echo "unsupported" >&6; } ;;
  14562. *)
  14563. CC="$CC $ac_cv_prog_cc_c89"
  14564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  14565. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  14566. esac
  14567. if test "x$ac_cv_prog_cc_c89" != xno; then :
  14568. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  14569. else
  14570. ac_cv_prog_cc_stdc=no
  14571. fi
  14572. fi
  14573. ;;
  14574. esac
  14575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  14576. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  14577. if ${ac_cv_prog_cc_stdc+:} false; then :
  14578. $as_echo_n "(cached) " >&6
  14579. fi
  14580. case $ac_cv_prog_cc_stdc in #(
  14581. no) :
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  14583. $as_echo "unsupported" >&6; } ;; #(
  14584. '') :
  14585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  14586. $as_echo "none needed" >&6; } ;; #(
  14587. *) :
  14588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  14589. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  14590. esac
  14591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
  14592. $as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
  14593. if ${ac_cv_cpp_func+:} false; then :
  14594. $as_echo_n "(cached) " >&6
  14595. else
  14596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14597. /* end confdefs.h. */
  14598. int
  14599. main ()
  14600. {
  14601. const char *foo = __func__;
  14602. ;
  14603. return 0;
  14604. }
  14605. _ACEOF
  14606. if ac_fn_c_try_compile "$LINENO"; then :
  14607. ac_cv_cpp_func=yes
  14608. else
  14609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14610. /* end confdefs.h. */
  14611. int
  14612. main ()
  14613. {
  14614. const char *foo = __FUNCTION__;
  14615. ;
  14616. return 0;
  14617. }
  14618. _ACEOF
  14619. if ac_fn_c_try_compile "$LINENO"; then :
  14620. ac_cv_cpp_func=__FUNCTION__
  14621. else
  14622. ac_cv_cpp_func=no
  14623. fi
  14624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14625. fi
  14626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14627. fi
  14628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
  14629. $as_echo "$ac_cv_cpp_func" >&6; }
  14630. if test $ac_cv_cpp_func = __FUNCTION__; then
  14631. $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
  14632. elif test $ac_cv_cpp_func = no; then
  14633. $as_echo "#define __func__ \"\"" >>confdefs.h
  14634. fi
  14635. $as_echo "#define XML_NS 1" >>confdefs.h
  14636. $as_echo "#define XML_DTD 1" >>confdefs.h
  14637. # Check whether --enable-xml-context was given.
  14638. if test "${enable_xml_context+set}" = set; then :
  14639. enableval=$enable_xml_context; enable_xml_context=${enableval}
  14640. fi
  14641. if test "x${enable_xml_context}" != "xno"; then :
  14642. if test "x${enable_xml_context}" == "xyes" \
  14643. -o "x${enable_xml_context}" == "x"; then :
  14644. enable_xml_context=1024
  14645. fi
  14646. cat >>confdefs.h <<_ACEOF
  14647. #define XML_CONTEXT_BYTES ${enable_xml_context}
  14648. _ACEOF
  14649. fi
  14650. ac_config_files="$ac_config_files Makefile expat.pc"
  14651. ac_config_files="$ac_config_files run.sh"
  14652. cat >confcache <<\_ACEOF
  14653. # This file is a shell script that caches the results of configure
  14654. # tests run on this system so they can be shared between configure
  14655. # scripts and configure runs, see configure's option --config-cache.
  14656. # It is not useful on other systems. If it contains results you don't
  14657. # want to keep, you may remove or edit it.
  14658. #
  14659. # config.status only pays attention to the cache file if you give it
  14660. # the --recheck option to rerun configure.
  14661. #
  14662. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14663. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14664. # following values.
  14665. _ACEOF
  14666. # The following way of writing the cache mishandles newlines in values,
  14667. # but we know of no workaround that is simple, portable, and efficient.
  14668. # So, we kill variables containing newlines.
  14669. # Ultrix sh set writes to stderr and can't be redirected directly,
  14670. # and sets the high bit in the cache file unless we assign to the vars.
  14671. (
  14672. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14673. eval ac_val=\$$ac_var
  14674. case $ac_val in #(
  14675. *${as_nl}*)
  14676. case $ac_var in #(
  14677. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14678. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14679. esac
  14680. case $ac_var in #(
  14681. _ | IFS | as_nl) ;; #(
  14682. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14683. *) { eval $ac_var=; unset $ac_var;} ;;
  14684. esac ;;
  14685. esac
  14686. done
  14687. (set) 2>&1 |
  14688. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14689. *${as_nl}ac_space=\ *)
  14690. # `set' does not quote correctly, so add quotes: double-quote
  14691. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14692. sed -n \
  14693. "s/'/'\\\\''/g;
  14694. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14695. ;; #(
  14696. *)
  14697. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14698. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14699. ;;
  14700. esac |
  14701. sort
  14702. ) |
  14703. sed '
  14704. /^ac_cv_env_/b end
  14705. t clear
  14706. :clear
  14707. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14708. t end
  14709. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14710. :end' >>confcache
  14711. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14712. if test -w "$cache_file"; then
  14713. if test "x$cache_file" != "x/dev/null"; then
  14714. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14715. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14716. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14717. cat confcache >"$cache_file"
  14718. else
  14719. case $cache_file in #(
  14720. */* | ?:*)
  14721. mv -f confcache "$cache_file"$$ &&
  14722. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14723. *)
  14724. mv -f confcache "$cache_file" ;;
  14725. esac
  14726. fi
  14727. fi
  14728. else
  14729. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14730. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14731. fi
  14732. fi
  14733. rm -f confcache
  14734. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14735. # Let make expand exec_prefix.
  14736. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14737. DEFS=-DHAVE_CONFIG_H
  14738. ac_libobjs=
  14739. ac_ltlibobjs=
  14740. U=
  14741. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14742. # 1. Remove the extension, and $U if already installed.
  14743. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14744. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14745. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14746. # will be set to the directory where LIBOBJS objects are built.
  14747. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14748. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14749. done
  14750. LIBOBJS=$ac_libobjs
  14751. LTLIBOBJS=$ac_ltlibobjs
  14752. : "${CONFIG_STATUS=./config.status}"
  14753. ac_write_fail=0
  14754. ac_clean_files_save=$ac_clean_files
  14755. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14757. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14758. as_write_fail=0
  14759. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14760. #! $SHELL
  14761. # Generated by $as_me.
  14762. # Run this file to recreate the current configuration.
  14763. # Compiler output produced by configure, useful for debugging
  14764. # configure, is in config.log if it exists.
  14765. debug=false
  14766. ac_cs_recheck=false
  14767. ac_cs_silent=false
  14768. SHELL=\${CONFIG_SHELL-$SHELL}
  14769. export SHELL
  14770. _ASEOF
  14771. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14772. ## -------------------- ##
  14773. ## M4sh Initialization. ##
  14774. ## -------------------- ##
  14775. # Be more Bourne compatible
  14776. DUALCASE=1; export DUALCASE # for MKS sh
  14777. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14778. emulate sh
  14779. NULLCMD=:
  14780. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14781. # is contrary to our usage. Disable this feature.
  14782. alias -g '${1+"$@"}'='"$@"'
  14783. setopt NO_GLOB_SUBST
  14784. else
  14785. case `(set -o) 2>/dev/null` in #(
  14786. *posix*) :
  14787. set -o posix ;; #(
  14788. *) :
  14789. ;;
  14790. esac
  14791. fi
  14792. as_nl='
  14793. '
  14794. export as_nl
  14795. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14796. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14797. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14798. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14799. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14800. # but without wasting forks for bash or zsh.
  14801. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14802. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14803. as_echo='print -r --'
  14804. as_echo_n='print -rn --'
  14805. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14806. as_echo='printf %s\n'
  14807. as_echo_n='printf %s'
  14808. else
  14809. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14810. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14811. as_echo_n='/usr/ucb/echo -n'
  14812. else
  14813. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14814. as_echo_n_body='eval
  14815. arg=$1;
  14816. case $arg in #(
  14817. *"$as_nl"*)
  14818. expr "X$arg" : "X\\(.*\\)$as_nl";
  14819. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14820. esac;
  14821. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14822. '
  14823. export as_echo_n_body
  14824. as_echo_n='sh -c $as_echo_n_body as_echo'
  14825. fi
  14826. export as_echo_body
  14827. as_echo='sh -c $as_echo_body as_echo'
  14828. fi
  14829. # The user is always right.
  14830. if test "${PATH_SEPARATOR+set}" != set; then
  14831. PATH_SEPARATOR=:
  14832. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14833. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14834. PATH_SEPARATOR=';'
  14835. }
  14836. fi
  14837. # IFS
  14838. # We need space, tab and new line, in precisely that order. Quoting is
  14839. # there to prevent editors from complaining about space-tab.
  14840. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14841. # splitting by setting IFS to empty value.)
  14842. IFS=" "" $as_nl"
  14843. # Find who we are. Look in the path if we contain no directory separator.
  14844. as_myself=
  14845. case $0 in #((
  14846. *[\\/]* ) as_myself=$0 ;;
  14847. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14848. for as_dir in $PATH
  14849. do
  14850. IFS=$as_save_IFS
  14851. test -z "$as_dir" && as_dir=.
  14852. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14853. done
  14854. IFS=$as_save_IFS
  14855. ;;
  14856. esac
  14857. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14858. # in which case we are not to be found in the path.
  14859. if test "x$as_myself" = x; then
  14860. as_myself=$0
  14861. fi
  14862. if test ! -f "$as_myself"; then
  14863. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14864. exit 1
  14865. fi
  14866. # Unset variables that we do not need and which cause bugs (e.g. in
  14867. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14868. # suppresses any "Segmentation fault" message there. '((' could
  14869. # trigger a bug in pdksh 5.2.14.
  14870. for as_var in BASH_ENV ENV MAIL MAILPATH
  14871. do eval test x\${$as_var+set} = xset \
  14872. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14873. done
  14874. PS1='$ '
  14875. PS2='> '
  14876. PS4='+ '
  14877. # NLS nuisances.
  14878. LC_ALL=C
  14879. export LC_ALL
  14880. LANGUAGE=C
  14881. export LANGUAGE
  14882. # CDPATH.
  14883. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14884. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14885. # ----------------------------------------
  14886. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14887. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14888. # script with STATUS, using 1 if that was 0.
  14889. as_fn_error ()
  14890. {
  14891. as_status=$1; test $as_status -eq 0 && as_status=1
  14892. if test "$4"; then
  14893. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14894. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14895. fi
  14896. $as_echo "$as_me: error: $2" >&2
  14897. as_fn_exit $as_status
  14898. } # as_fn_error
  14899. # as_fn_set_status STATUS
  14900. # -----------------------
  14901. # Set $? to STATUS, without forking.
  14902. as_fn_set_status ()
  14903. {
  14904. return $1
  14905. } # as_fn_set_status
  14906. # as_fn_exit STATUS
  14907. # -----------------
  14908. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14909. as_fn_exit ()
  14910. {
  14911. set +e
  14912. as_fn_set_status $1
  14913. exit $1
  14914. } # as_fn_exit
  14915. # as_fn_unset VAR
  14916. # ---------------
  14917. # Portably unset VAR.
  14918. as_fn_unset ()
  14919. {
  14920. { eval $1=; unset $1;}
  14921. }
  14922. as_unset=as_fn_unset
  14923. # as_fn_append VAR VALUE
  14924. # ----------------------
  14925. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14926. # advantage of any shell optimizations that allow amortized linear growth over
  14927. # repeated appends, instead of the typical quadratic growth present in naive
  14928. # implementations.
  14929. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14930. eval 'as_fn_append ()
  14931. {
  14932. eval $1+=\$2
  14933. }'
  14934. else
  14935. as_fn_append ()
  14936. {
  14937. eval $1=\$$1\$2
  14938. }
  14939. fi # as_fn_append
  14940. # as_fn_arith ARG...
  14941. # ------------------
  14942. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14943. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14944. # must be portable across $(()) and expr.
  14945. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14946. eval 'as_fn_arith ()
  14947. {
  14948. as_val=$(( $* ))
  14949. }'
  14950. else
  14951. as_fn_arith ()
  14952. {
  14953. as_val=`expr "$@" || test $? -eq 1`
  14954. }
  14955. fi # as_fn_arith
  14956. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14957. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14958. as_expr=expr
  14959. else
  14960. as_expr=false
  14961. fi
  14962. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14963. as_basename=basename
  14964. else
  14965. as_basename=false
  14966. fi
  14967. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14968. as_dirname=dirname
  14969. else
  14970. as_dirname=false
  14971. fi
  14972. as_me=`$as_basename -- "$0" ||
  14973. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14974. X"$0" : 'X\(//\)$' \| \
  14975. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14976. $as_echo X/"$0" |
  14977. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14978. s//\1/
  14979. q
  14980. }
  14981. /^X\/\(\/\/\)$/{
  14982. s//\1/
  14983. q
  14984. }
  14985. /^X\/\(\/\).*/{
  14986. s//\1/
  14987. q
  14988. }
  14989. s/.*/./; q'`
  14990. # Avoid depending upon Character Ranges.
  14991. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14992. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14993. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14994. as_cr_digits='0123456789'
  14995. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14996. ECHO_C= ECHO_N= ECHO_T=
  14997. case `echo -n x` in #(((((
  14998. -n*)
  14999. case `echo 'xy\c'` in
  15000. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15001. xy) ECHO_C='\c';;
  15002. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15003. ECHO_T=' ';;
  15004. esac;;
  15005. *)
  15006. ECHO_N='-n';;
  15007. esac
  15008. rm -f conf$$ conf$$.exe conf$$.file
  15009. if test -d conf$$.dir; then
  15010. rm -f conf$$.dir/conf$$.file
  15011. else
  15012. rm -f conf$$.dir
  15013. mkdir conf$$.dir 2>/dev/null
  15014. fi
  15015. if (echo >conf$$.file) 2>/dev/null; then
  15016. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15017. as_ln_s='ln -s'
  15018. # ... but there are two gotchas:
  15019. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15020. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15021. # In both cases, we have to default to `cp -pR'.
  15022. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15023. as_ln_s='cp -pR'
  15024. elif ln conf$$.file conf$$ 2>/dev/null; then
  15025. as_ln_s=ln
  15026. else
  15027. as_ln_s='cp -pR'
  15028. fi
  15029. else
  15030. as_ln_s='cp -pR'
  15031. fi
  15032. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15033. rmdir conf$$.dir 2>/dev/null
  15034. # as_fn_mkdir_p
  15035. # -------------
  15036. # Create "$as_dir" as a directory, including parents if necessary.
  15037. as_fn_mkdir_p ()
  15038. {
  15039. case $as_dir in #(
  15040. -*) as_dir=./$as_dir;;
  15041. esac
  15042. test -d "$as_dir" || eval $as_mkdir_p || {
  15043. as_dirs=
  15044. while :; do
  15045. case $as_dir in #(
  15046. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15047. *) as_qdir=$as_dir;;
  15048. esac
  15049. as_dirs="'$as_qdir' $as_dirs"
  15050. as_dir=`$as_dirname -- "$as_dir" ||
  15051. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15052. X"$as_dir" : 'X\(//\)[^/]' \| \
  15053. X"$as_dir" : 'X\(//\)$' \| \
  15054. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15055. $as_echo X"$as_dir" |
  15056. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15057. s//\1/
  15058. q
  15059. }
  15060. /^X\(\/\/\)[^/].*/{
  15061. s//\1/
  15062. q
  15063. }
  15064. /^X\(\/\/\)$/{
  15065. s//\1/
  15066. q
  15067. }
  15068. /^X\(\/\).*/{
  15069. s//\1/
  15070. q
  15071. }
  15072. s/.*/./; q'`
  15073. test -d "$as_dir" && break
  15074. done
  15075. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15076. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15077. } # as_fn_mkdir_p
  15078. if mkdir -p . 2>/dev/null; then
  15079. as_mkdir_p='mkdir -p "$as_dir"'
  15080. else
  15081. test -d ./-p && rmdir ./-p
  15082. as_mkdir_p=false
  15083. fi
  15084. # as_fn_executable_p FILE
  15085. # -----------------------
  15086. # Test if FILE is an executable regular file.
  15087. as_fn_executable_p ()
  15088. {
  15089. test -f "$1" && test -x "$1"
  15090. } # as_fn_executable_p
  15091. as_test_x='test -x'
  15092. as_executable_p=as_fn_executable_p
  15093. # Sed expression to map a string onto a valid CPP name.
  15094. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15095. # Sed expression to map a string onto a valid variable name.
  15096. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15097. exec 6>&1
  15098. ## ----------------------------------- ##
  15099. ## Main body of $CONFIG_STATUS script. ##
  15100. ## ----------------------------------- ##
  15101. _ASEOF
  15102. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15103. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15104. # Save the log message, to keep $0 and so on meaningful, and to
  15105. # report actual input values of CONFIG_FILES etc. instead of their
  15106. # values after options handling.
  15107. ac_log="
  15108. This file was extended by expat $as_me 2.2.1, which was
  15109. generated by GNU Autoconf 2.69. Invocation command line was
  15110. CONFIG_FILES = $CONFIG_FILES
  15111. CONFIG_HEADERS = $CONFIG_HEADERS
  15112. CONFIG_LINKS = $CONFIG_LINKS
  15113. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15114. $ $0 $@
  15115. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15116. "
  15117. _ACEOF
  15118. case $ac_config_files in *"
  15119. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15120. esac
  15121. case $ac_config_headers in *"
  15122. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15123. esac
  15124. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15125. # Files that config.status was made for.
  15126. config_files="$ac_config_files"
  15127. config_headers="$ac_config_headers"
  15128. config_commands="$ac_config_commands"
  15129. _ACEOF
  15130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15131. ac_cs_usage="\
  15132. \`$as_me' instantiates files and other configuration actions
  15133. from templates according to the current configuration. Unless the files
  15134. and actions are specified as TAGs, all are instantiated by default.
  15135. Usage: $0 [OPTION]... [TAG]...
  15136. -h, --help print this help, then exit
  15137. -V, --version print version number and configuration settings, then exit
  15138. --config print configuration, then exit
  15139. -q, --quiet, --silent
  15140. do not print progress messages
  15141. -d, --debug don't remove temporary files
  15142. --recheck update $as_me by reconfiguring in the same conditions
  15143. --file=FILE[:TEMPLATE]
  15144. instantiate the configuration file FILE
  15145. --header=FILE[:TEMPLATE]
  15146. instantiate the configuration header FILE
  15147. Configuration files:
  15148. $config_files
  15149. Configuration headers:
  15150. $config_headers
  15151. Configuration commands:
  15152. $config_commands
  15153. Report bugs to <[email protected]>."
  15154. _ACEOF
  15155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15156. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15157. ac_cs_version="\\
  15158. expat config.status 2.2.1
  15159. configured by $0, generated by GNU Autoconf 2.69,
  15160. with options \\"\$ac_cs_config\\"
  15161. Copyright (C) 2012 Free Software Foundation, Inc.
  15162. This config.status script is free software; the Free Software Foundation
  15163. gives unlimited permission to copy, distribute and modify it."
  15164. ac_pwd='$ac_pwd'
  15165. srcdir='$srcdir'
  15166. INSTALL='$INSTALL'
  15167. AWK='$AWK'
  15168. test -n "\$AWK" || AWK=awk
  15169. _ACEOF
  15170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15171. # The default lists apply if the user does not specify any file.
  15172. ac_need_defaults=:
  15173. while test $# != 0
  15174. do
  15175. case $1 in
  15176. --*=?*)
  15177. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15178. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15179. ac_shift=:
  15180. ;;
  15181. --*=)
  15182. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15183. ac_optarg=
  15184. ac_shift=:
  15185. ;;
  15186. *)
  15187. ac_option=$1
  15188. ac_optarg=$2
  15189. ac_shift=shift
  15190. ;;
  15191. esac
  15192. case $ac_option in
  15193. # Handling of the options.
  15194. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15195. ac_cs_recheck=: ;;
  15196. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15197. $as_echo "$ac_cs_version"; exit ;;
  15198. --config | --confi | --conf | --con | --co | --c )
  15199. $as_echo "$ac_cs_config"; exit ;;
  15200. --debug | --debu | --deb | --de | --d | -d )
  15201. debug=: ;;
  15202. --file | --fil | --fi | --f )
  15203. $ac_shift
  15204. case $ac_optarg in
  15205. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15206. '') as_fn_error $? "missing file argument" ;;
  15207. esac
  15208. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15209. ac_need_defaults=false;;
  15210. --header | --heade | --head | --hea )
  15211. $ac_shift
  15212. case $ac_optarg in
  15213. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15214. esac
  15215. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15216. ac_need_defaults=false;;
  15217. --he | --h)
  15218. # Conflict between --help and --header
  15219. as_fn_error $? "ambiguous option: \`$1'
  15220. Try \`$0 --help' for more information.";;
  15221. --help | --hel | -h )
  15222. $as_echo "$ac_cs_usage"; exit ;;
  15223. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15224. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15225. ac_cs_silent=: ;;
  15226. # This is an error.
  15227. -*) as_fn_error $? "unrecognized option: \`$1'
  15228. Try \`$0 --help' for more information." ;;
  15229. *) as_fn_append ac_config_targets " $1"
  15230. ac_need_defaults=false ;;
  15231. esac
  15232. shift
  15233. done
  15234. ac_configure_extra_args=
  15235. if $ac_cs_silent; then
  15236. exec 6>/dev/null
  15237. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15238. fi
  15239. _ACEOF
  15240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15241. if \$ac_cs_recheck; then
  15242. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15243. shift
  15244. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15245. CONFIG_SHELL='$SHELL'
  15246. export CONFIG_SHELL
  15247. exec "\$@"
  15248. fi
  15249. _ACEOF
  15250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15251. exec 5>>config.log
  15252. {
  15253. echo
  15254. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15255. ## Running $as_me. ##
  15256. _ASBOX
  15257. $as_echo "$ac_log"
  15258. } >&5
  15259. _ACEOF
  15260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15261. #
  15262. # INIT-COMMANDS
  15263. #
  15264. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15265. # if CDPATH is set.
  15266. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15267. sed_quote_subst='$sed_quote_subst'
  15268. double_quote_subst='$double_quote_subst'
  15269. delay_variable_subst='$delay_variable_subst'
  15270. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15271. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15272. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15273. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15274. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15275. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15276. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15277. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15278. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15279. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  15280. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15281. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15282. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15283. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15284. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15285. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15286. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15287. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15288. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15289. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15290. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15291. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15292. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15293. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15294. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15295. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15296. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15297. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15298. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15299. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15300. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15301. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15302. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15303. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15304. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15305. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15306. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15307. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15308. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15309. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15310. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15311. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15312. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15313. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15314. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15315. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15316. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15317. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15318. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15319. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15320. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15321. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15322. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15323. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15324. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15325. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15326. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15327. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  15328. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15329. 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"`'
  15330. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  15331. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15332. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15333. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  15334. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15335. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15336. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15337. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15338. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15339. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15340. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15341. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15342. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15343. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15344. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15345. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15346. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15347. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15348. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15349. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15350. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15351. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15352. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15353. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15354. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15355. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15356. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15357. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15358. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15359. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15360. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15361. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15362. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15363. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15364. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15365. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15366. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15367. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15368. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15369. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15370. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15371. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15372. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15373. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15374. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15375. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15376. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15377. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15378. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15379. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15380. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15381. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15382. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15383. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15384. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15385. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15386. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15387. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15388. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15389. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15390. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15391. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15392. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15393. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15394. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15395. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15396. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15397. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15398. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  15399. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  15400. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15401. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15402. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15403. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15404. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15405. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15406. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15407. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15408. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15409. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15410. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15411. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15412. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15413. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15414. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15415. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15416. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15417. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15418. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15419. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15420. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15421. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15422. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15423. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15424. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15425. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15426. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15427. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15428. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15429. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15430. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15431. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15432. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15433. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15434. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15435. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15436. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15437. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15438. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15439. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15440. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15441. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15442. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15443. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15444. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15445. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15446. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15447. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15448. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15449. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15450. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15451. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15452. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15453. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15454. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15455. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15456. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15457. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15458. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15459. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15460. LTCC='$LTCC'
  15461. LTCFLAGS='$LTCFLAGS'
  15462. compiler='$compiler_DEFAULT'
  15463. # A function that is used when there is no print builtin or printf.
  15464. func_fallback_echo ()
  15465. {
  15466. eval 'cat <<_LTECHO_EOF
  15467. \$1
  15468. _LTECHO_EOF'
  15469. }
  15470. # Quote evaled strings.
  15471. for var in AS \
  15472. DLLTOOL \
  15473. OBJDUMP \
  15474. SHELL \
  15475. ECHO \
  15476. PATH_SEPARATOR \
  15477. SED \
  15478. GREP \
  15479. EGREP \
  15480. FGREP \
  15481. LD \
  15482. NM \
  15483. LN_S \
  15484. lt_SP2NL \
  15485. lt_NL2SP \
  15486. reload_flag \
  15487. deplibs_check_method \
  15488. file_magic_cmd \
  15489. file_magic_glob \
  15490. want_nocaseglob \
  15491. sharedlib_from_linklib_cmd \
  15492. AR \
  15493. AR_FLAGS \
  15494. archiver_list_spec \
  15495. STRIP \
  15496. RANLIB \
  15497. CC \
  15498. CFLAGS \
  15499. compiler \
  15500. lt_cv_sys_global_symbol_pipe \
  15501. lt_cv_sys_global_symbol_to_cdecl \
  15502. lt_cv_sys_global_symbol_to_import \
  15503. lt_cv_sys_global_symbol_to_c_name_address \
  15504. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15505. lt_cv_nm_interface \
  15506. nm_file_list_spec \
  15507. lt_cv_truncate_bin \
  15508. lt_prog_compiler_no_builtin_flag \
  15509. lt_prog_compiler_pic \
  15510. lt_prog_compiler_wl \
  15511. lt_prog_compiler_static \
  15512. lt_cv_prog_compiler_c_o \
  15513. need_locks \
  15514. MANIFEST_TOOL \
  15515. DSYMUTIL \
  15516. NMEDIT \
  15517. LIPO \
  15518. OTOOL \
  15519. OTOOL64 \
  15520. shrext_cmds \
  15521. export_dynamic_flag_spec \
  15522. whole_archive_flag_spec \
  15523. compiler_needs_object \
  15524. with_gnu_ld \
  15525. allow_undefined_flag \
  15526. no_undefined_flag \
  15527. hardcode_libdir_flag_spec \
  15528. hardcode_libdir_separator \
  15529. exclude_expsyms \
  15530. include_expsyms \
  15531. file_list_spec \
  15532. variables_saved_for_relink \
  15533. libname_spec \
  15534. library_names_spec \
  15535. soname_spec \
  15536. install_override_mode \
  15537. finish_eval \
  15538. old_striplib \
  15539. striplib \
  15540. compiler_lib_search_dirs \
  15541. predep_objects \
  15542. postdep_objects \
  15543. predeps \
  15544. postdeps \
  15545. compiler_lib_search_path \
  15546. LD_CXX \
  15547. reload_flag_CXX \
  15548. compiler_CXX \
  15549. lt_prog_compiler_no_builtin_flag_CXX \
  15550. lt_prog_compiler_pic_CXX \
  15551. lt_prog_compiler_wl_CXX \
  15552. lt_prog_compiler_static_CXX \
  15553. lt_cv_prog_compiler_c_o_CXX \
  15554. export_dynamic_flag_spec_CXX \
  15555. whole_archive_flag_spec_CXX \
  15556. compiler_needs_object_CXX \
  15557. with_gnu_ld_CXX \
  15558. allow_undefined_flag_CXX \
  15559. no_undefined_flag_CXX \
  15560. hardcode_libdir_flag_spec_CXX \
  15561. hardcode_libdir_separator_CXX \
  15562. exclude_expsyms_CXX \
  15563. include_expsyms_CXX \
  15564. file_list_spec_CXX \
  15565. compiler_lib_search_dirs_CXX \
  15566. predep_objects_CXX \
  15567. postdep_objects_CXX \
  15568. predeps_CXX \
  15569. postdeps_CXX \
  15570. compiler_lib_search_path_CXX; do
  15571. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15572. *[\\\\\\\`\\"\\\$]*)
  15573. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15574. ;;
  15575. *)
  15576. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15577. ;;
  15578. esac
  15579. done
  15580. # Double-quote double-evaled strings.
  15581. for var in reload_cmds \
  15582. old_postinstall_cmds \
  15583. old_postuninstall_cmds \
  15584. old_archive_cmds \
  15585. extract_expsyms_cmds \
  15586. old_archive_from_new_cmds \
  15587. old_archive_from_expsyms_cmds \
  15588. archive_cmds \
  15589. archive_expsym_cmds \
  15590. module_cmds \
  15591. module_expsym_cmds \
  15592. export_symbols_cmds \
  15593. prelink_cmds \
  15594. postlink_cmds \
  15595. postinstall_cmds \
  15596. postuninstall_cmds \
  15597. finish_cmds \
  15598. sys_lib_search_path_spec \
  15599. configure_time_dlsearch_path \
  15600. configure_time_lt_sys_library_path \
  15601. reload_cmds_CXX \
  15602. old_archive_cmds_CXX \
  15603. old_archive_from_new_cmds_CXX \
  15604. old_archive_from_expsyms_cmds_CXX \
  15605. archive_cmds_CXX \
  15606. archive_expsym_cmds_CXX \
  15607. module_cmds_CXX \
  15608. module_expsym_cmds_CXX \
  15609. export_symbols_cmds_CXX \
  15610. prelink_cmds_CXX \
  15611. postlink_cmds_CXX; do
  15612. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15613. *[\\\\\\\`\\"\\\$]*)
  15614. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15615. ;;
  15616. *)
  15617. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15618. ;;
  15619. esac
  15620. done
  15621. ac_aux_dir='$ac_aux_dir'
  15622. # See if we are running on zsh, and set the options that allow our
  15623. # commands through without removal of \ escapes INIT.
  15624. if test -n "\${ZSH_VERSION+set}"; then
  15625. setopt NO_GLOB_SUBST
  15626. fi
  15627. PACKAGE='$PACKAGE'
  15628. VERSION='$VERSION'
  15629. RM='$RM'
  15630. ofile='$ofile'
  15631. _ACEOF
  15632. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15633. # Handling of arguments.
  15634. for ac_config_target in $ac_config_targets
  15635. do
  15636. case $ac_config_target in
  15637. "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
  15638. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15639. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15640. "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
  15641. "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
  15642. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15643. esac
  15644. done
  15645. # If the user did not use the arguments to specify the items to instantiate,
  15646. # then the envvar interface is used. Set only those that are not.
  15647. # We use the long form for the default assignment because of an extremely
  15648. # bizarre bug on SunOS 4.1.3.
  15649. if $ac_need_defaults; then
  15650. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15651. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15652. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15653. fi
  15654. # Have a temporary directory for convenience. Make it in the build tree
  15655. # simply because there is no reason against having it here, and in addition,
  15656. # creating and moving files from /tmp can sometimes cause problems.
  15657. # Hook for its removal unless debugging.
  15658. # Note that there is a small window in which the directory will not be cleaned:
  15659. # after its creation but before its name has been assigned to `$tmp'.
  15660. $debug ||
  15661. {
  15662. tmp= ac_tmp=
  15663. trap 'exit_status=$?
  15664. : "${ac_tmp:=$tmp}"
  15665. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15666. ' 0
  15667. trap 'as_fn_exit 1' 1 2 13 15
  15668. }
  15669. # Create a (secure) tmp directory for tmp files.
  15670. {
  15671. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15672. test -d "$tmp"
  15673. } ||
  15674. {
  15675. tmp=./conf$$-$RANDOM
  15676. (umask 077 && mkdir "$tmp")
  15677. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15678. ac_tmp=$tmp
  15679. # Set up the scripts for CONFIG_FILES section.
  15680. # No need to generate them if there are no CONFIG_FILES.
  15681. # This happens for instance with `./config.status config.h'.
  15682. if test -n "$CONFIG_FILES"; then
  15683. ac_cr=`echo X | tr X '\015'`
  15684. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15685. # But we know of no other shell where ac_cr would be empty at this
  15686. # point, so we can use a bashism as a fallback.
  15687. if test "x$ac_cr" = x; then
  15688. eval ac_cr=\$\'\\r\'
  15689. fi
  15690. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15691. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15692. ac_cs_awk_cr='\\r'
  15693. else
  15694. ac_cs_awk_cr=$ac_cr
  15695. fi
  15696. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15697. _ACEOF
  15698. {
  15699. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15700. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15701. echo "_ACEOF"
  15702. } >conf$$subs.sh ||
  15703. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15704. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15705. ac_delim='%!_!# '
  15706. for ac_last_try in false false false false false :; do
  15707. . ./conf$$subs.sh ||
  15708. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15709. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15710. if test $ac_delim_n = $ac_delim_num; then
  15711. break
  15712. elif $ac_last_try; then
  15713. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15714. else
  15715. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15716. fi
  15717. done
  15718. rm -f conf$$subs.sh
  15719. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15720. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15721. _ACEOF
  15722. sed -n '
  15723. h
  15724. s/^/S["/; s/!.*/"]=/
  15725. p
  15726. g
  15727. s/^[^!]*!//
  15728. :repl
  15729. t repl
  15730. s/'"$ac_delim"'$//
  15731. t delim
  15732. :nl
  15733. h
  15734. s/\(.\{148\}\)..*/\1/
  15735. t more1
  15736. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15737. p
  15738. n
  15739. b repl
  15740. :more1
  15741. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15742. p
  15743. g
  15744. s/.\{148\}//
  15745. t nl
  15746. :delim
  15747. h
  15748. s/\(.\{148\}\)..*/\1/
  15749. t more2
  15750. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15751. p
  15752. b
  15753. :more2
  15754. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15755. p
  15756. g
  15757. s/.\{148\}//
  15758. t delim
  15759. ' <conf$$subs.awk | sed '
  15760. /^[^""]/{
  15761. N
  15762. s/\n//
  15763. }
  15764. ' >>$CONFIG_STATUS || ac_write_fail=1
  15765. rm -f conf$$subs.awk
  15766. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15767. _ACAWK
  15768. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15769. for (key in S) S_is_set[key] = 1
  15770. FS = ""
  15771. }
  15772. {
  15773. line = $ 0
  15774. nfields = split(line, field, "@")
  15775. substed = 0
  15776. len = length(field[1])
  15777. for (i = 2; i < nfields; i++) {
  15778. key = field[i]
  15779. keylen = length(key)
  15780. if (S_is_set[key]) {
  15781. value = S[key]
  15782. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15783. len += length(value) + length(field[++i])
  15784. substed = 1
  15785. } else
  15786. len += 1 + keylen
  15787. }
  15788. print line
  15789. }
  15790. _ACAWK
  15791. _ACEOF
  15792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15793. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15794. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15795. else
  15796. cat
  15797. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15798. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15799. _ACEOF
  15800. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15801. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15802. # trailing colons and then remove the whole line if VPATH becomes empty
  15803. # (actually we leave an empty line to preserve line numbers).
  15804. if test "x$srcdir" = x.; then
  15805. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15806. h
  15807. s///
  15808. s/^/:/
  15809. s/[ ]*$/:/
  15810. s/:\$(srcdir):/:/g
  15811. s/:\${srcdir}:/:/g
  15812. s/:@srcdir@:/:/g
  15813. s/^:*//
  15814. s/:*$//
  15815. x
  15816. s/\(=[ ]*\).*/\1/
  15817. G
  15818. s/\n//
  15819. s/^[^=]*=[ ]*$//
  15820. }'
  15821. fi
  15822. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15823. fi # test -n "$CONFIG_FILES"
  15824. # Set up the scripts for CONFIG_HEADERS section.
  15825. # No need to generate them if there are no CONFIG_HEADERS.
  15826. # This happens for instance with `./config.status Makefile'.
  15827. if test -n "$CONFIG_HEADERS"; then
  15828. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15829. BEGIN {
  15830. _ACEOF
  15831. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15832. # here-document in config.status, that substitutes the proper values into
  15833. # config.h.in to produce config.h.
  15834. # Create a delimiter string that does not exist in confdefs.h, to ease
  15835. # handling of long lines.
  15836. ac_delim='%!_!# '
  15837. for ac_last_try in false false :; do
  15838. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15839. if test -z "$ac_tt"; then
  15840. break
  15841. elif $ac_last_try; then
  15842. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15843. else
  15844. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15845. fi
  15846. done
  15847. # For the awk script, D is an array of macro values keyed by name,
  15848. # likewise P contains macro parameters if any. Preserve backslash
  15849. # newline sequences.
  15850. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15851. sed -n '
  15852. s/.\{148\}/&'"$ac_delim"'/g
  15853. t rset
  15854. :rset
  15855. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15856. t def
  15857. d
  15858. :def
  15859. s/\\$//
  15860. t bsnl
  15861. s/["\\]/\\&/g
  15862. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15863. D["\1"]=" \3"/p
  15864. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15865. d
  15866. :bsnl
  15867. s/["\\]/\\&/g
  15868. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15869. D["\1"]=" \3\\\\\\n"\\/p
  15870. t cont
  15871. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15872. t cont
  15873. d
  15874. :cont
  15875. n
  15876. s/.\{148\}/&'"$ac_delim"'/g
  15877. t clear
  15878. :clear
  15879. s/\\$//
  15880. t bsnlc
  15881. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15882. d
  15883. :bsnlc
  15884. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15885. b cont
  15886. ' <confdefs.h | sed '
  15887. s/'"$ac_delim"'/"\\\
  15888. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15889. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15890. for (key in D) D_is_set[key] = 1
  15891. FS = ""
  15892. }
  15893. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15894. line = \$ 0
  15895. split(line, arg, " ")
  15896. if (arg[1] == "#") {
  15897. defundef = arg[2]
  15898. mac1 = arg[3]
  15899. } else {
  15900. defundef = substr(arg[1], 2)
  15901. mac1 = arg[2]
  15902. }
  15903. split(mac1, mac2, "(") #)
  15904. macro = mac2[1]
  15905. prefix = substr(line, 1, index(line, defundef) - 1)
  15906. if (D_is_set[macro]) {
  15907. # Preserve the white space surrounding the "#".
  15908. print prefix "define", macro P[macro] D[macro]
  15909. next
  15910. } else {
  15911. # Replace #undef with comments. This is necessary, for example,
  15912. # in the case of _POSIX_SOURCE, which is predefined and required
  15913. # on some systems where configure will not decide to define it.
  15914. if (defundef == "undef") {
  15915. print "/*", prefix defundef, macro, "*/"
  15916. next
  15917. }
  15918. }
  15919. }
  15920. { print }
  15921. _ACAWK
  15922. _ACEOF
  15923. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15924. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15925. fi # test -n "$CONFIG_HEADERS"
  15926. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15927. shift
  15928. for ac_tag
  15929. do
  15930. case $ac_tag in
  15931. :[FHLC]) ac_mode=$ac_tag; continue;;
  15932. esac
  15933. case $ac_mode$ac_tag in
  15934. :[FHL]*:*);;
  15935. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15936. :[FH]-) ac_tag=-:-;;
  15937. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15938. esac
  15939. ac_save_IFS=$IFS
  15940. IFS=:
  15941. set x $ac_tag
  15942. IFS=$ac_save_IFS
  15943. shift
  15944. ac_file=$1
  15945. shift
  15946. case $ac_mode in
  15947. :L) ac_source=$1;;
  15948. :[FH])
  15949. ac_file_inputs=
  15950. for ac_f
  15951. do
  15952. case $ac_f in
  15953. -) ac_f="$ac_tmp/stdin";;
  15954. *) # Look for the file first in the build tree, then in the source tree
  15955. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15956. # because $ac_f cannot contain `:'.
  15957. test -f "$ac_f" ||
  15958. case $ac_f in
  15959. [\\/$]*) false;;
  15960. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15961. esac ||
  15962. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15963. esac
  15964. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15965. as_fn_append ac_file_inputs " '$ac_f'"
  15966. done
  15967. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15968. # use $as_me), people would be surprised to read:
  15969. # /* config.h. Generated by config.status. */
  15970. configure_input='Generated from '`
  15971. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15972. `' by configure.'
  15973. if test x"$ac_file" != x-; then
  15974. configure_input="$ac_file. $configure_input"
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15976. $as_echo "$as_me: creating $ac_file" >&6;}
  15977. fi
  15978. # Neutralize special characters interpreted by sed in replacement strings.
  15979. case $configure_input in #(
  15980. *\&* | *\|* | *\\* )
  15981. ac_sed_conf_input=`$as_echo "$configure_input" |
  15982. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15983. *) ac_sed_conf_input=$configure_input;;
  15984. esac
  15985. case $ac_tag in
  15986. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15987. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15988. esac
  15989. ;;
  15990. esac
  15991. ac_dir=`$as_dirname -- "$ac_file" ||
  15992. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15993. X"$ac_file" : 'X\(//\)[^/]' \| \
  15994. X"$ac_file" : 'X\(//\)$' \| \
  15995. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15996. $as_echo X"$ac_file" |
  15997. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15998. s//\1/
  15999. q
  16000. }
  16001. /^X\(\/\/\)[^/].*/{
  16002. s//\1/
  16003. q
  16004. }
  16005. /^X\(\/\/\)$/{
  16006. s//\1/
  16007. q
  16008. }
  16009. /^X\(\/\).*/{
  16010. s//\1/
  16011. q
  16012. }
  16013. s/.*/./; q'`
  16014. as_dir="$ac_dir"; as_fn_mkdir_p
  16015. ac_builddir=.
  16016. case "$ac_dir" in
  16017. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16018. *)
  16019. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16020. # A ".." for each directory in $ac_dir_suffix.
  16021. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16022. case $ac_top_builddir_sub in
  16023. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16024. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16025. esac ;;
  16026. esac
  16027. ac_abs_top_builddir=$ac_pwd
  16028. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16029. # for backward compatibility:
  16030. ac_top_builddir=$ac_top_build_prefix
  16031. case $srcdir in
  16032. .) # We are building in place.
  16033. ac_srcdir=.
  16034. ac_top_srcdir=$ac_top_builddir_sub
  16035. ac_abs_top_srcdir=$ac_pwd ;;
  16036. [\\/]* | ?:[\\/]* ) # Absolute name.
  16037. ac_srcdir=$srcdir$ac_dir_suffix;
  16038. ac_top_srcdir=$srcdir
  16039. ac_abs_top_srcdir=$srcdir ;;
  16040. *) # Relative name.
  16041. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16042. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16043. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16044. esac
  16045. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16046. case $ac_mode in
  16047. :F)
  16048. #
  16049. # CONFIG_FILE
  16050. #
  16051. case $INSTALL in
  16052. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16053. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16054. esac
  16055. _ACEOF
  16056. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16057. # If the template does not know about datarootdir, expand it.
  16058. # FIXME: This hack should be removed a few years after 2.60.
  16059. ac_datarootdir_hack=; ac_datarootdir_seen=
  16060. ac_sed_dataroot='
  16061. /datarootdir/ {
  16062. p
  16063. q
  16064. }
  16065. /@datadir@/p
  16066. /@docdir@/p
  16067. /@infodir@/p
  16068. /@localedir@/p
  16069. /@mandir@/p'
  16070. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16071. *datarootdir*) ac_datarootdir_seen=yes;;
  16072. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16074. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16075. _ACEOF
  16076. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16077. ac_datarootdir_hack='
  16078. s&@datadir@&$datadir&g
  16079. s&@docdir@&$docdir&g
  16080. s&@infodir@&$infodir&g
  16081. s&@localedir@&$localedir&g
  16082. s&@mandir@&$mandir&g
  16083. s&\\\${datarootdir}&$datarootdir&g' ;;
  16084. esac
  16085. _ACEOF
  16086. # Neutralize VPATH when `$srcdir' = `.'.
  16087. # Shell code in configure.ac might set extrasub.
  16088. # FIXME: do we really want to maintain this feature?
  16089. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16090. ac_sed_extra="$ac_vpsub
  16091. $extrasub
  16092. _ACEOF
  16093. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16094. :t
  16095. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16096. s|@configure_input@|$ac_sed_conf_input|;t t
  16097. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16098. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16099. s&@srcdir@&$ac_srcdir&;t t
  16100. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16101. s&@top_srcdir@&$ac_top_srcdir&;t t
  16102. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16103. s&@builddir@&$ac_builddir&;t t
  16104. s&@abs_builddir@&$ac_abs_builddir&;t t
  16105. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16106. s&@INSTALL@&$ac_INSTALL&;t t
  16107. $ac_datarootdir_hack
  16108. "
  16109. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16110. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16111. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16112. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16113. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16114. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16116. which seems to be undefined. Please make sure it is defined" >&5
  16117. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16118. which seems to be undefined. Please make sure it is defined" >&2;}
  16119. rm -f "$ac_tmp/stdin"
  16120. case $ac_file in
  16121. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16122. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16123. esac \
  16124. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16125. ;;
  16126. :H)
  16127. #
  16128. # CONFIG_HEADER
  16129. #
  16130. if test x"$ac_file" != x-; then
  16131. {
  16132. $as_echo "/* $configure_input */" \
  16133. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16134. } >"$ac_tmp/config.h" \
  16135. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16136. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16137. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16138. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16139. else
  16140. rm -f "$ac_file"
  16141. mv "$ac_tmp/config.h" "$ac_file" \
  16142. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16143. fi
  16144. else
  16145. $as_echo "/* $configure_input */" \
  16146. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16147. || as_fn_error $? "could not create -" "$LINENO" 5
  16148. fi
  16149. ;;
  16150. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16151. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16152. ;;
  16153. esac
  16154. case $ac_file$ac_mode in
  16155. "libtool":C)
  16156. # See if we are running on zsh, and set the options that allow our
  16157. # commands through without removal of \ escapes.
  16158. if test -n "${ZSH_VERSION+set}"; then
  16159. setopt NO_GLOB_SUBST
  16160. fi
  16161. cfgfile=${ofile}T
  16162. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16163. $RM "$cfgfile"
  16164. cat <<_LT_EOF >> "$cfgfile"
  16165. #! $SHELL
  16166. # Generated automatically by $as_me ($PACKAGE) $VERSION
  16167. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16168. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16169. # Provide generalized library-building support services.
  16170. # Written by Gordon Matzigkeit, 1996
  16171. # Copyright (C) 2014 Free Software Foundation, Inc.
  16172. # This is free software; see the source for copying conditions. There is NO
  16173. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16174. # GNU Libtool is free software; you can redistribute it and/or modify
  16175. # it under the terms of the GNU General Public License as published by
  16176. # the Free Software Foundation; either version 2 of of the License, or
  16177. # (at your option) any later version.
  16178. #
  16179. # As a special exception to the GNU General Public License, if you
  16180. # distribute this file as part of a program or library that is built
  16181. # using GNU Libtool, you may include this file under the same
  16182. # distribution terms that you use for the rest of that program.
  16183. #
  16184. # GNU Libtool is distributed in the hope that it will be useful, but
  16185. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16186. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16187. # GNU General Public License for more details.
  16188. #
  16189. # You should have received a copy of the GNU General Public License
  16190. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16191. # The names of the tagged configurations supported by this script.
  16192. available_tags='CXX '
  16193. # Configured defaults for sys_lib_dlsearch_path munging.
  16194. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  16195. # ### BEGIN LIBTOOL CONFIG
  16196. # Assembler program.
  16197. AS=$lt_AS
  16198. # DLL creation program.
  16199. DLLTOOL=$lt_DLLTOOL
  16200. # Object dumper program.
  16201. OBJDUMP=$lt_OBJDUMP
  16202. # Which release of libtool.m4 was used?
  16203. macro_version=$macro_version
  16204. macro_revision=$macro_revision
  16205. # Whether or not to build shared libraries.
  16206. build_libtool_libs=$enable_shared
  16207. # Whether or not to build static libraries.
  16208. build_old_libs=$enable_static
  16209. # What type of objects to build.
  16210. pic_mode=$pic_mode
  16211. # Whether or not to optimize for fast installation.
  16212. fast_install=$enable_fast_install
  16213. # Shared archive member basename,for filename based shared library versioning on AIX.
  16214. shared_archive_member_spec=$shared_archive_member_spec
  16215. # Shell to use when invoking shell scripts.
  16216. SHELL=$lt_SHELL
  16217. # An echo program that protects backslashes.
  16218. ECHO=$lt_ECHO
  16219. # The PATH separator for the build system.
  16220. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16221. # The host system.
  16222. host_alias=$host_alias
  16223. host=$host
  16224. host_os=$host_os
  16225. # The build system.
  16226. build_alias=$build_alias
  16227. build=$build
  16228. build_os=$build_os
  16229. # A sed program that does not truncate output.
  16230. SED=$lt_SED
  16231. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16232. Xsed="\$SED -e 1s/^X//"
  16233. # A grep program that handles long lines.
  16234. GREP=$lt_GREP
  16235. # An ERE matcher.
  16236. EGREP=$lt_EGREP
  16237. # A literal string matcher.
  16238. FGREP=$lt_FGREP
  16239. # A BSD- or MS-compatible name lister.
  16240. NM=$lt_NM
  16241. # Whether we need soft or hard links.
  16242. LN_S=$lt_LN_S
  16243. # What is the maximum length of a command?
  16244. max_cmd_len=$max_cmd_len
  16245. # Object file suffix (normally "o").
  16246. objext=$ac_objext
  16247. # Executable file suffix (normally "").
  16248. exeext=$exeext
  16249. # whether the shell understands "unset".
  16250. lt_unset=$lt_unset
  16251. # turn spaces into newlines.
  16252. SP2NL=$lt_lt_SP2NL
  16253. # turn newlines into spaces.
  16254. NL2SP=$lt_lt_NL2SP
  16255. # convert \$build file names to \$host format.
  16256. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16257. # convert \$build files to toolchain format.
  16258. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16259. # Method to check whether dependent libraries are shared objects.
  16260. deplibs_check_method=$lt_deplibs_check_method
  16261. # Command to use when deplibs_check_method = "file_magic".
  16262. file_magic_cmd=$lt_file_magic_cmd
  16263. # How to find potential files when deplibs_check_method = "file_magic".
  16264. file_magic_glob=$lt_file_magic_glob
  16265. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16266. want_nocaseglob=$lt_want_nocaseglob
  16267. # Command to associate shared and link libraries.
  16268. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16269. # The archiver.
  16270. AR=$lt_AR
  16271. # Flags to create an archive.
  16272. AR_FLAGS=$lt_AR_FLAGS
  16273. # How to feed a file listing to the archiver.
  16274. archiver_list_spec=$lt_archiver_list_spec
  16275. # A symbol stripping program.
  16276. STRIP=$lt_STRIP
  16277. # Commands used to install an old-style archive.
  16278. RANLIB=$lt_RANLIB
  16279. old_postinstall_cmds=$lt_old_postinstall_cmds
  16280. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16281. # Whether to use a lock for old archive extraction.
  16282. lock_old_archive_extraction=$lock_old_archive_extraction
  16283. # A C compiler.
  16284. LTCC=$lt_CC
  16285. # LTCC compiler flags.
  16286. LTCFLAGS=$lt_CFLAGS
  16287. # Take the output of nm and produce a listing of raw symbols and C names.
  16288. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16289. # Transform the output of nm in a proper C declaration.
  16290. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16291. # Transform the output of nm into a list of symbols to manually relocate.
  16292. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  16293. # Transform the output of nm in a C name address pair.
  16294. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16295. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16296. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16297. # The name lister interface.
  16298. nm_interface=$lt_lt_cv_nm_interface
  16299. # Specify filename containing input files for \$NM.
  16300. nm_file_list_spec=$lt_nm_file_list_spec
  16301. # The root where to search for dependent libraries,and where our libraries should be installed.
  16302. lt_sysroot=$lt_sysroot
  16303. # Command to truncate a binary pipe.
  16304. lt_truncate_bin=$lt_lt_cv_truncate_bin
  16305. # The name of the directory that contains temporary libtool files.
  16306. objdir=$objdir
  16307. # Used to examine libraries when file_magic_cmd begins with "file".
  16308. MAGIC_CMD=$MAGIC_CMD
  16309. # Must we lock files when doing compilation?
  16310. need_locks=$lt_need_locks
  16311. # Manifest tool.
  16312. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16313. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16314. DSYMUTIL=$lt_DSYMUTIL
  16315. # Tool to change global to local symbols on Mac OS X.
  16316. NMEDIT=$lt_NMEDIT
  16317. # Tool to manipulate fat objects and archives on Mac OS X.
  16318. LIPO=$lt_LIPO
  16319. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16320. OTOOL=$lt_OTOOL
  16321. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16322. OTOOL64=$lt_OTOOL64
  16323. # Old archive suffix (normally "a").
  16324. libext=$libext
  16325. # Shared library suffix (normally ".so").
  16326. shrext_cmds=$lt_shrext_cmds
  16327. # The commands to extract the exported symbol list from a shared archive.
  16328. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16329. # Variables whose values should be saved in libtool wrapper scripts and
  16330. # restored at link time.
  16331. variables_saved_for_relink=$lt_variables_saved_for_relink
  16332. # Do we need the "lib" prefix for modules?
  16333. need_lib_prefix=$need_lib_prefix
  16334. # Do we need a version for libraries?
  16335. need_version=$need_version
  16336. # Library versioning type.
  16337. version_type=$version_type
  16338. # Shared library runtime path variable.
  16339. runpath_var=$runpath_var
  16340. # Shared library path variable.
  16341. shlibpath_var=$shlibpath_var
  16342. # Is shlibpath searched before the hard-coded library search path?
  16343. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16344. # Format of library name prefix.
  16345. libname_spec=$lt_libname_spec
  16346. # List of archive names. First name is the real one, the rest are links.
  16347. # The last name is the one that the linker finds with -lNAME
  16348. library_names_spec=$lt_library_names_spec
  16349. # The coded name of the library, if different from the real name.
  16350. soname_spec=$lt_soname_spec
  16351. # Permission mode override for installation of shared libraries.
  16352. install_override_mode=$lt_install_override_mode
  16353. # Command to use after installation of a shared archive.
  16354. postinstall_cmds=$lt_postinstall_cmds
  16355. # Command to use after uninstallation of a shared archive.
  16356. postuninstall_cmds=$lt_postuninstall_cmds
  16357. # Commands used to finish a libtool library installation in a directory.
  16358. finish_cmds=$lt_finish_cmds
  16359. # As "finish_cmds", except a single script fragment to be evaled but
  16360. # not shown.
  16361. finish_eval=$lt_finish_eval
  16362. # Whether we should hardcode library paths into libraries.
  16363. hardcode_into_libs=$hardcode_into_libs
  16364. # Compile-time system search path for libraries.
  16365. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16366. # Detected run-time system search path for libraries.
  16367. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  16368. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  16369. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  16370. # Whether dlopen is supported.
  16371. dlopen_support=$enable_dlopen
  16372. # Whether dlopen of programs is supported.
  16373. dlopen_self=$enable_dlopen_self
  16374. # Whether dlopen of statically linked programs is supported.
  16375. dlopen_self_static=$enable_dlopen_self_static
  16376. # Commands to strip libraries.
  16377. old_striplib=$lt_old_striplib
  16378. striplib=$lt_striplib
  16379. # The linker used to build libraries.
  16380. LD=$lt_LD
  16381. # How to create reloadable object files.
  16382. reload_flag=$lt_reload_flag
  16383. reload_cmds=$lt_reload_cmds
  16384. # Commands used to build an old-style archive.
  16385. old_archive_cmds=$lt_old_archive_cmds
  16386. # A language specific compiler.
  16387. CC=$lt_compiler
  16388. # Is the compiler the GNU compiler?
  16389. with_gcc=$GCC
  16390. # Compiler flag to turn off builtin functions.
  16391. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16392. # Additional compiler flags for building library objects.
  16393. pic_flag=$lt_lt_prog_compiler_pic
  16394. # How to pass a linker flag through the compiler.
  16395. wl=$lt_lt_prog_compiler_wl
  16396. # Compiler flag to prevent dynamic linking.
  16397. link_static_flag=$lt_lt_prog_compiler_static
  16398. # Does compiler simultaneously support -c and -o options?
  16399. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16400. # Whether or not to add -lc for building shared libraries.
  16401. build_libtool_need_lc=$archive_cmds_need_lc
  16402. # Whether or not to disallow shared libs when runtime libs are static.
  16403. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16404. # Compiler flag to allow reflexive dlopens.
  16405. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16406. # Compiler flag to generate shared objects directly from archives.
  16407. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16408. # Whether the compiler copes with passing no objects directly.
  16409. compiler_needs_object=$lt_compiler_needs_object
  16410. # Create an old-style archive from a shared archive.
  16411. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16412. # Create a temporary old-style archive to link instead of a shared archive.
  16413. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16414. # Commands used to build a shared archive.
  16415. archive_cmds=$lt_archive_cmds
  16416. archive_expsym_cmds=$lt_archive_expsym_cmds
  16417. # Commands used to build a loadable module if different from building
  16418. # a shared archive.
  16419. module_cmds=$lt_module_cmds
  16420. module_expsym_cmds=$lt_module_expsym_cmds
  16421. # Whether we are building with GNU ld or not.
  16422. with_gnu_ld=$lt_with_gnu_ld
  16423. # Flag that allows shared libraries with undefined symbols to be built.
  16424. allow_undefined_flag=$lt_allow_undefined_flag
  16425. # Flag that enforces no undefined symbols.
  16426. no_undefined_flag=$lt_no_undefined_flag
  16427. # Flag to hardcode \$libdir into a binary during linking.
  16428. # This must work even if \$libdir does not exist
  16429. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16430. # Whether we need a single "-rpath" flag with a separated argument.
  16431. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16432. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16433. # DIR into the resulting binary.
  16434. hardcode_direct=$hardcode_direct
  16435. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16436. # DIR into the resulting binary and the resulting library dependency is
  16437. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16438. # library is relocated.
  16439. hardcode_direct_absolute=$hardcode_direct_absolute
  16440. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16441. # into the resulting binary.
  16442. hardcode_minus_L=$hardcode_minus_L
  16443. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16444. # into the resulting binary.
  16445. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16446. # Set to "yes" if building a shared library automatically hardcodes DIR
  16447. # into the library and all subsequent libraries and executables linked
  16448. # against it.
  16449. hardcode_automatic=$hardcode_automatic
  16450. # Set to yes if linker adds runtime paths of dependent libraries
  16451. # to runtime path list.
  16452. inherit_rpath=$inherit_rpath
  16453. # Whether libtool must link a program against all its dependency libraries.
  16454. link_all_deplibs=$link_all_deplibs
  16455. # Set to "yes" if exported symbols are required.
  16456. always_export_symbols=$always_export_symbols
  16457. # The commands to list exported symbols.
  16458. export_symbols_cmds=$lt_export_symbols_cmds
  16459. # Symbols that should not be listed in the preloaded symbols.
  16460. exclude_expsyms=$lt_exclude_expsyms
  16461. # Symbols that must always be exported.
  16462. include_expsyms=$lt_include_expsyms
  16463. # Commands necessary for linking programs (against libraries) with templates.
  16464. prelink_cmds=$lt_prelink_cmds
  16465. # Commands necessary for finishing linking programs.
  16466. postlink_cmds=$lt_postlink_cmds
  16467. # Specify filename containing input files.
  16468. file_list_spec=$lt_file_list_spec
  16469. # How to hardcode a shared library path into an executable.
  16470. hardcode_action=$hardcode_action
  16471. # The directories searched by this compiler when creating a shared library.
  16472. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16473. # Dependencies to place before and after the objects being linked to
  16474. # create a shared library.
  16475. predep_objects=$lt_predep_objects
  16476. postdep_objects=$lt_postdep_objects
  16477. predeps=$lt_predeps
  16478. postdeps=$lt_postdeps
  16479. # The library search path used internally by the compiler when linking
  16480. # a shared library.
  16481. compiler_lib_search_path=$lt_compiler_lib_search_path
  16482. # ### END LIBTOOL CONFIG
  16483. _LT_EOF
  16484. cat <<'_LT_EOF' >> "$cfgfile"
  16485. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  16486. # func_munge_path_list VARIABLE PATH
  16487. # -----------------------------------
  16488. # VARIABLE is name of variable containing _space_ separated list of
  16489. # directories to be munged by the contents of PATH, which is string
  16490. # having a format:
  16491. # "DIR[:DIR]:"
  16492. # string "DIR[ DIR]" will be prepended to VARIABLE
  16493. # ":DIR[:DIR]"
  16494. # string "DIR[ DIR]" will be appended to VARIABLE
  16495. # "DIRP[:DIRP]::[DIRA:]DIRA"
  16496. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  16497. # "DIRA[ DIRA]" will be appended to VARIABLE
  16498. # "DIR[:DIR]"
  16499. # VARIABLE will be replaced by "DIR[ DIR]"
  16500. func_munge_path_list ()
  16501. {
  16502. case x$2 in
  16503. x)
  16504. ;;
  16505. *:)
  16506. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  16507. ;;
  16508. x:*)
  16509. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  16510. ;;
  16511. *::*)
  16512. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  16513. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  16514. ;;
  16515. *)
  16516. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  16517. ;;
  16518. esac
  16519. }
  16520. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  16521. func_cc_basename ()
  16522. {
  16523. for cc_temp in $*""; do
  16524. case $cc_temp in
  16525. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16526. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16527. \-*) ;;
  16528. *) break;;
  16529. esac
  16530. done
  16531. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  16532. }
  16533. # ### END FUNCTIONS SHARED WITH CONFIGURE
  16534. _LT_EOF
  16535. case $host_os in
  16536. aix3*)
  16537. cat <<\_LT_EOF >> "$cfgfile"
  16538. # AIX sometimes has problems with the GCC collect2 program. For some
  16539. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16540. # vanish in a puff of smoke.
  16541. if test set != "${COLLECT_NAMES+set}"; then
  16542. COLLECT_NAMES=
  16543. export COLLECT_NAMES
  16544. fi
  16545. _LT_EOF
  16546. ;;
  16547. esac
  16548. ltmain=$ac_aux_dir/ltmain.sh
  16549. # We use sed instead of cat because bash on DJGPP gets confused if
  16550. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16551. # text mode, it properly converts lines to CR/LF. This bash problem
  16552. # is reportedly fixed, but why not run on old versions too?
  16553. sed '$q' "$ltmain" >> "$cfgfile" \
  16554. || (rm -f "$cfgfile"; exit 1)
  16555. mv -f "$cfgfile" "$ofile" ||
  16556. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16557. chmod +x "$ofile"
  16558. cat <<_LT_EOF >> "$ofile"
  16559. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16560. # The linker used to build libraries.
  16561. LD=$lt_LD_CXX
  16562. # How to create reloadable object files.
  16563. reload_flag=$lt_reload_flag_CXX
  16564. reload_cmds=$lt_reload_cmds_CXX
  16565. # Commands used to build an old-style archive.
  16566. old_archive_cmds=$lt_old_archive_cmds_CXX
  16567. # A language specific compiler.
  16568. CC=$lt_compiler_CXX
  16569. # Is the compiler the GNU compiler?
  16570. with_gcc=$GCC_CXX
  16571. # Compiler flag to turn off builtin functions.
  16572. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16573. # Additional compiler flags for building library objects.
  16574. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16575. # How to pass a linker flag through the compiler.
  16576. wl=$lt_lt_prog_compiler_wl_CXX
  16577. # Compiler flag to prevent dynamic linking.
  16578. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16579. # Does compiler simultaneously support -c and -o options?
  16580. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16581. # Whether or not to add -lc for building shared libraries.
  16582. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16583. # Whether or not to disallow shared libs when runtime libs are static.
  16584. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16585. # Compiler flag to allow reflexive dlopens.
  16586. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16587. # Compiler flag to generate shared objects directly from archives.
  16588. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16589. # Whether the compiler copes with passing no objects directly.
  16590. compiler_needs_object=$lt_compiler_needs_object_CXX
  16591. # Create an old-style archive from a shared archive.
  16592. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16593. # Create a temporary old-style archive to link instead of a shared archive.
  16594. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16595. # Commands used to build a shared archive.
  16596. archive_cmds=$lt_archive_cmds_CXX
  16597. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16598. # Commands used to build a loadable module if different from building
  16599. # a shared archive.
  16600. module_cmds=$lt_module_cmds_CXX
  16601. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16602. # Whether we are building with GNU ld or not.
  16603. with_gnu_ld=$lt_with_gnu_ld_CXX
  16604. # Flag that allows shared libraries with undefined symbols to be built.
  16605. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16606. # Flag that enforces no undefined symbols.
  16607. no_undefined_flag=$lt_no_undefined_flag_CXX
  16608. # Flag to hardcode \$libdir into a binary during linking.
  16609. # This must work even if \$libdir does not exist
  16610. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16611. # Whether we need a single "-rpath" flag with a separated argument.
  16612. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16613. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16614. # DIR into the resulting binary.
  16615. hardcode_direct=$hardcode_direct_CXX
  16616. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16617. # DIR into the resulting binary and the resulting library dependency is
  16618. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16619. # library is relocated.
  16620. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16621. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16622. # into the resulting binary.
  16623. hardcode_minus_L=$hardcode_minus_L_CXX
  16624. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16625. # into the resulting binary.
  16626. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16627. # Set to "yes" if building a shared library automatically hardcodes DIR
  16628. # into the library and all subsequent libraries and executables linked
  16629. # against it.
  16630. hardcode_automatic=$hardcode_automatic_CXX
  16631. # Set to yes if linker adds runtime paths of dependent libraries
  16632. # to runtime path list.
  16633. inherit_rpath=$inherit_rpath_CXX
  16634. # Whether libtool must link a program against all its dependency libraries.
  16635. link_all_deplibs=$link_all_deplibs_CXX
  16636. # Set to "yes" if exported symbols are required.
  16637. always_export_symbols=$always_export_symbols_CXX
  16638. # The commands to list exported symbols.
  16639. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16640. # Symbols that should not be listed in the preloaded symbols.
  16641. exclude_expsyms=$lt_exclude_expsyms_CXX
  16642. # Symbols that must always be exported.
  16643. include_expsyms=$lt_include_expsyms_CXX
  16644. # Commands necessary for linking programs (against libraries) with templates.
  16645. prelink_cmds=$lt_prelink_cmds_CXX
  16646. # Commands necessary for finishing linking programs.
  16647. postlink_cmds=$lt_postlink_cmds_CXX
  16648. # Specify filename containing input files.
  16649. file_list_spec=$lt_file_list_spec_CXX
  16650. # How to hardcode a shared library path into an executable.
  16651. hardcode_action=$hardcode_action_CXX
  16652. # The directories searched by this compiler when creating a shared library.
  16653. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16654. # Dependencies to place before and after the objects being linked to
  16655. # create a shared library.
  16656. predep_objects=$lt_predep_objects_CXX
  16657. postdep_objects=$lt_postdep_objects_CXX
  16658. predeps=$lt_predeps_CXX
  16659. postdeps=$lt_postdeps_CXX
  16660. # The library search path used internally by the compiler when linking
  16661. # a shared library.
  16662. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16663. # ### END LIBTOOL TAG CONFIG: CXX
  16664. _LT_EOF
  16665. ;;
  16666. "run.sh":F) chmod +x run.sh ;;
  16667. esac
  16668. done # for ac_tag
  16669. as_fn_exit 0
  16670. _ACEOF
  16671. ac_clean_files=$ac_clean_files_save
  16672. test $ac_write_fail = 0 ||
  16673. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16674. # configure is writing to config.log, and then calls config.status.
  16675. # config.status does its own redirection, appending to config.log.
  16676. # Unfortunately, on DOS this fails, as config.log is still kept open
  16677. # by configure, so config.status won't be able to write to it; its
  16678. # output is simply discarded. So we exec the FD to /dev/null,
  16679. # effectively closing config.log, so it can be properly (re)opened and
  16680. # appended to by config.status. When coming back to configure, we
  16681. # need to make the FD available again.
  16682. if test "$no_create" != yes; then
  16683. ac_cs_success=:
  16684. ac_config_status_args=
  16685. test "$silent" = yes &&
  16686. ac_config_status_args="$ac_config_status_args --quiet"
  16687. exec 5>/dev/null
  16688. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16689. exec 5>>config.log
  16690. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16691. # would make configure fail if this is the last instruction.
  16692. $ac_cs_success || as_fn_exit 1
  16693. fi
  16694. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16696. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16697. fi
  16698. abs_srcdir="`cd $srcdir && pwd`"
  16699. abs_builddir="`pwd`"
  16700. if test "$abs_srcdir" != "$abs_builddir"; then
  16701. make mkdir-init
  16702. fi