aclocal.m4 239 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877
  1. # generated automatically by aclocal 1.8.3 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  3. # Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  12. # serial 47 AC_PROG_LIBTOOL
  13. # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  14. # -----------------------------------------------------------
  15. # If this macro is not defined by Autoconf, define it here.
  16. m4_ifdef([AC_PROVIDE_IFELSE],
  17. [],
  18. [m4_define([AC_PROVIDE_IFELSE],
  19. [m4_ifdef([AC_PROVIDE_$1],
  20. [$2], [$3])])])
  21. # AC_PROG_LIBTOOL
  22. # ---------------
  23. AC_DEFUN([AC_PROG_LIBTOOL],
  24. [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  25. dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  26. dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  27. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  28. [AC_LIBTOOL_CXX],
  29. [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  30. ])])
  31. dnl And a similar setup for Fortran 77 support
  32. AC_PROVIDE_IFELSE([AC_PROG_F77],
  33. [AC_LIBTOOL_F77],
  34. [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  35. ])])
  36. dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  37. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  38. dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  39. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  40. [AC_LIBTOOL_GCJ],
  41. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  42. [AC_LIBTOOL_GCJ],
  43. [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  44. [AC_LIBTOOL_GCJ],
  45. [ifdef([AC_PROG_GCJ],
  46. [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  47. ifdef([A][M_PROG_GCJ],
  48. [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  49. ifdef([LT_AC_PROG_GCJ],
  50. [define([LT_AC_PROG_GCJ],
  51. defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  52. ])])# AC_PROG_LIBTOOL
  53. # _AC_PROG_LIBTOOL
  54. # ----------------
  55. AC_DEFUN([_AC_PROG_LIBTOOL],
  56. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  57. AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  58. AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  59. AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  60. # This can be used to rebuild libtool when needed
  61. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  62. # Always use our own libtool.
  63. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  64. AC_SUBST(LIBTOOL)dnl
  65. # Prevent multiple expansion
  66. define([AC_PROG_LIBTOOL], [])
  67. ])# _AC_PROG_LIBTOOL
  68. # AC_LIBTOOL_SETUP
  69. # ----------------
  70. AC_DEFUN([AC_LIBTOOL_SETUP],
  71. [AC_PREREQ(2.50)dnl
  72. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  73. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  74. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  75. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  76. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  77. AC_REQUIRE([AC_PROG_CC])dnl
  78. AC_REQUIRE([AC_PROG_LD])dnl
  79. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  80. AC_REQUIRE([AC_PROG_NM])dnl
  81. AC_REQUIRE([AC_PROG_LN_S])dnl
  82. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  83. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  84. AC_REQUIRE([AC_OBJEXT])dnl
  85. AC_REQUIRE([AC_EXEEXT])dnl
  86. dnl
  87. AC_LIBTOOL_SYS_MAX_CMD_LEN
  88. AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  89. AC_LIBTOOL_OBJDIR
  90. AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  91. _LT_AC_PROG_ECHO_BACKSLASH
  92. case $host_os in
  93. aix3*)
  94. # AIX sometimes has problems with the GCC collect2 program. For some
  95. # reason, if we set the COLLECT_NAMES environment variable, the problems
  96. # vanish in a puff of smoke.
  97. if test "X${COLLECT_NAMES+set}" != Xset; then
  98. COLLECT_NAMES=
  99. export COLLECT_NAMES
  100. fi
  101. ;;
  102. esac
  103. # Sed substitution that helps us do robust quoting. It backslashifies
  104. # metacharacters that are still active within double-quoted strings.
  105. Xsed='sed -e s/^X//'
  106. [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  107. # Same as above, but do not quote variable references.
  108. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  109. # Sed substitution to delay expansion of an escaped shell variable in a
  110. # double_quote_subst'ed string.
  111. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  112. # Sed substitution to avoid accidental globbing in evaled expressions
  113. no_glob_subst='s/\*/\\\*/g'
  114. # Constants:
  115. rm="rm -f"
  116. # Global variables:
  117. default_ofile=libtool
  118. can_build_shared=yes
  119. # All known linkers require a `.a' archive for static linking (except M$VC,
  120. # which needs '.lib').
  121. libext=a
  122. ltmain="$ac_aux_dir/ltmain.sh"
  123. ofile="$default_ofile"
  124. with_gnu_ld="$lt_cv_prog_gnu_ld"
  125. AC_CHECK_TOOL(AR, ar, false)
  126. AC_CHECK_TOOL(RANLIB, ranlib, :)
  127. AC_CHECK_TOOL(STRIP, strip, :)
  128. old_CC="$CC"
  129. old_CFLAGS="$CFLAGS"
  130. # Set sane defaults for various variables
  131. test -z "$AR" && AR=ar
  132. test -z "$AR_FLAGS" && AR_FLAGS=cru
  133. test -z "$AS" && AS=as
  134. test -z "$CC" && CC=cc
  135. test -z "$LTCC" && LTCC=$CC
  136. test -z "$DLLTOOL" && DLLTOOL=dlltool
  137. test -z "$LD" && LD=ld
  138. test -z "$LN_S" && LN_S="ln -s"
  139. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  140. test -z "$NM" && NM=nm
  141. test -z "$SED" && SED=sed
  142. test -z "$OBJDUMP" && OBJDUMP=objdump
  143. test -z "$RANLIB" && RANLIB=:
  144. test -z "$STRIP" && STRIP=:
  145. test -z "$ac_objext" && ac_objext=o
  146. # Determine commands to create old-style static archives.
  147. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  148. old_postinstall_cmds='chmod 644 $oldlib'
  149. old_postuninstall_cmds=
  150. if test -n "$RANLIB"; then
  151. case $host_os in
  152. openbsd*)
  153. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  154. ;;
  155. *)
  156. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  157. ;;
  158. esac
  159. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  160. fi
  161. # Only perform the check for file, if the check method requires it
  162. case $deplibs_check_method in
  163. file_magic*)
  164. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  165. AC_PATH_MAGIC
  166. fi
  167. ;;
  168. esac
  169. AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  170. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  171. enable_win32_dll=yes, enable_win32_dll=no)
  172. AC_ARG_ENABLE([libtool-lock],
  173. [AC_HELP_STRING([--disable-libtool-lock],
  174. [avoid locking (might break parallel builds)])])
  175. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  176. AC_ARG_WITH([pic],
  177. [AC_HELP_STRING([--with-pic],
  178. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  179. [pic_mode="$withval"],
  180. [pic_mode=default])
  181. test -z "$pic_mode" && pic_mode=default
  182. # Use C for the default configuration in the libtool script
  183. tagname=
  184. AC_LIBTOOL_LANG_C_CONFIG
  185. _LT_AC_TAGCONFIG
  186. ])# AC_LIBTOOL_SETUP
  187. # _LT_AC_SYS_COMPILER
  188. # -------------------
  189. AC_DEFUN([_LT_AC_SYS_COMPILER],
  190. [AC_REQUIRE([AC_PROG_CC])dnl
  191. # If no C compiler was specified, use CC.
  192. LTCC=${LTCC-"$CC"}
  193. # Allow CC to be a program name with arguments.
  194. compiler=$CC
  195. ])# _LT_AC_SYS_COMPILER
  196. # _LT_AC_SYS_LIBPATH_AIX
  197. # ----------------------
  198. # Links a minimal program and checks the executable
  199. # for the system default hardcoded library path. In most cases,
  200. # this is /usr/lib:/lib, but when the MPI compilers are used
  201. # the location of the communication and MPI libs are included too.
  202. # If we don't find anything, use the default library path according
  203. # to the aix ld manual.
  204. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  205. [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  206. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  207. }'`
  208. # Check for a 64-bit object if we didn't find anything.
  209. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  210. }'`; fi],[])
  211. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  212. ])# _LT_AC_SYS_LIBPATH_AIX
  213. # _LT_AC_SHELL_INIT(ARG)
  214. # ----------------------
  215. AC_DEFUN([_LT_AC_SHELL_INIT],
  216. [ifdef([AC_DIVERSION_NOTICE],
  217. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  218. [AC_DIVERT_PUSH(NOTICE)])
  219. $1
  220. AC_DIVERT_POP
  221. ])# _LT_AC_SHELL_INIT
  222. # _LT_AC_PROG_ECHO_BACKSLASH
  223. # --------------------------
  224. # Add some code to the start of the generated configure script which
  225. # will find an echo command which doesn't interpret backslashes.
  226. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  227. [_LT_AC_SHELL_INIT([
  228. # Check that we are running under the correct shell.
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. case X$ECHO in
  231. X*--fallback-echo)
  232. # Remove one level of quotation (which was required for Make).
  233. ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  234. ;;
  235. esac
  236. echo=${ECHO-echo}
  237. if test "X[$]1" = X--no-reexec; then
  238. # Discard the --no-reexec flag, and continue.
  239. shift
  240. elif test "X[$]1" = X--fallback-echo; then
  241. # Avoid inline document here, it may be left over
  242. :
  243. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  244. # Yippee, $echo works!
  245. :
  246. else
  247. # Restart under the correct shell.
  248. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  249. fi
  250. if test "X[$]1" = X--fallback-echo; then
  251. # used as fallback echo
  252. shift
  253. cat <<EOF
  254. [$]*
  255. EOF
  256. exit 0
  257. fi
  258. # The HP-UX ksh and POSIX shell print the target directory to stdout
  259. # if CDPATH is set.
  260. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  261. if test -z "$ECHO"; then
  262. if test "X${echo_test_string+set}" != Xset; then
  263. # find a string as large as possible, as long as the shell can cope with it
  264. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  265. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  266. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  267. echo_test_string="`eval $cmd`" &&
  268. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  269. then
  270. break
  271. fi
  272. done
  273. fi
  274. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  275. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  276. test "X$echo_testing_string" = "X$echo_test_string"; then
  277. :
  278. else
  279. # The Solaris, AIX, and Digital Unix default echo programs unquote
  280. # backslashes. This makes it impossible to quote backslashes using
  281. # echo "$something" | sed 's/\\/\\\\/g'
  282. #
  283. # So, first we look for a working echo in the user's PATH.
  284. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  285. for dir in $PATH /usr/ucb; do
  286. IFS="$lt_save_ifs"
  287. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  288. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  289. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  290. test "X$echo_testing_string" = "X$echo_test_string"; then
  291. echo="$dir/echo"
  292. break
  293. fi
  294. done
  295. IFS="$lt_save_ifs"
  296. if test "X$echo" = Xecho; then
  297. # We didn't find a better echo, so look for alternatives.
  298. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  299. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  300. test "X$echo_testing_string" = "X$echo_test_string"; then
  301. # This shell has a builtin print -r that does the trick.
  302. echo='print -r'
  303. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  304. test "X$CONFIG_SHELL" != X/bin/ksh; then
  305. # If we have ksh, try running configure again with it.
  306. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  307. export ORIGINAL_CONFIG_SHELL
  308. CONFIG_SHELL=/bin/ksh
  309. export CONFIG_SHELL
  310. exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  311. else
  312. # Try using printf.
  313. echo='printf %s\n'
  314. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  315. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  316. test "X$echo_testing_string" = "X$echo_test_string"; then
  317. # Cool, printf works
  318. :
  319. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  320. test "X$echo_testing_string" = 'X\t' &&
  321. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  322. test "X$echo_testing_string" = "X$echo_test_string"; then
  323. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  324. export CONFIG_SHELL
  325. SHELL="$CONFIG_SHELL"
  326. export SHELL
  327. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  328. elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  329. test "X$echo_testing_string" = 'X\t' &&
  330. echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  331. test "X$echo_testing_string" = "X$echo_test_string"; then
  332. echo="$CONFIG_SHELL [$]0 --fallback-echo"
  333. else
  334. # maybe with a smaller string...
  335. prev=:
  336. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  337. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  338. then
  339. break
  340. fi
  341. prev="$cmd"
  342. done
  343. if test "$prev" != 'sed 50q "[$]0"'; then
  344. echo_test_string=`eval $prev`
  345. export echo_test_string
  346. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  347. else
  348. # Oops. We lost completely, so just stick with echo.
  349. echo=echo
  350. fi
  351. fi
  352. fi
  353. fi
  354. fi
  355. fi
  356. # Copy echo and quote the copy suitably for passing to libtool from
  357. # the Makefile, instead of quoting the original, which is used later.
  358. ECHO=$echo
  359. if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  360. ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  361. fi
  362. AC_SUBST(ECHO)
  363. ])])# _LT_AC_PROG_ECHO_BACKSLASH
  364. # _LT_AC_LOCK
  365. # -----------
  366. AC_DEFUN([_LT_AC_LOCK],
  367. [AC_ARG_ENABLE([libtool-lock],
  368. [AC_HELP_STRING([--disable-libtool-lock],
  369. [avoid locking (might break parallel builds)])])
  370. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  371. # Some flags need to be propagated to the compiler or linker for good
  372. # libtool support.
  373. case $host in
  374. ia64-*-hpux*)
  375. # Find out which ABI we are using.
  376. echo 'int i;' > conftest.$ac_ext
  377. if AC_TRY_EVAL(ac_compile); then
  378. case `/usr/bin/file conftest.$ac_objext` in
  379. *ELF-32*)
  380. HPUX_IA64_MODE="32"
  381. ;;
  382. *ELF-64*)
  383. HPUX_IA64_MODE="64"
  384. ;;
  385. esac
  386. fi
  387. rm -rf conftest*
  388. ;;
  389. *-*-irix6*)
  390. # Find out which ABI we are using.
  391. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  392. if AC_TRY_EVAL(ac_compile); then
  393. if test "$lt_cv_prog_gnu_ld" = yes; then
  394. case `/usr/bin/file conftest.$ac_objext` in
  395. *32-bit*)
  396. LD="${LD-ld} -melf32bsmip"
  397. ;;
  398. *N32*)
  399. LD="${LD-ld} -melf32bmipn32"
  400. ;;
  401. *64-bit*)
  402. LD="${LD-ld} -melf64bmip"
  403. ;;
  404. esac
  405. else
  406. case `/usr/bin/file conftest.$ac_objext` in
  407. *32-bit*)
  408. LD="${LD-ld} -32"
  409. ;;
  410. *N32*)
  411. LD="${LD-ld} -n32"
  412. ;;
  413. *64-bit*)
  414. LD="${LD-ld} -64"
  415. ;;
  416. esac
  417. fi
  418. fi
  419. rm -rf conftest*
  420. ;;
  421. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  422. # Find out which ABI we are using.
  423. echo 'int i;' > conftest.$ac_ext
  424. if AC_TRY_EVAL(ac_compile); then
  425. case "`/usr/bin/file conftest.o`" in
  426. *32-bit*)
  427. case $host in
  428. x86_64-*linux*)
  429. LD="${LD-ld} -m elf_i386"
  430. ;;
  431. ppc64-*linux*|powerpc64-*linux*)
  432. LD="${LD-ld} -m elf32ppclinux"
  433. ;;
  434. s390x-*linux*)
  435. LD="${LD-ld} -m elf_s390"
  436. ;;
  437. sparc64-*linux*)
  438. LD="${LD-ld} -m elf32_sparc"
  439. ;;
  440. esac
  441. ;;
  442. *64-bit*)
  443. case $host in
  444. x86_64-*linux*)
  445. LD="${LD-ld} -m elf_x86_64"
  446. ;;
  447. ppc*-*linux*|powerpc*-*linux*)
  448. LD="${LD-ld} -m elf64ppc"
  449. ;;
  450. s390*-*linux*)
  451. LD="${LD-ld} -m elf64_s390"
  452. ;;
  453. sparc*-*linux*)
  454. LD="${LD-ld} -m elf64_sparc"
  455. ;;
  456. esac
  457. ;;
  458. esac
  459. fi
  460. rm -rf conftest*
  461. ;;
  462. *-*-sco3.2v5*)
  463. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  464. SAVE_CFLAGS="$CFLAGS"
  465. CFLAGS="$CFLAGS -belf"
  466. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  467. [AC_LANG_PUSH(C)
  468. AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  469. AC_LANG_POP])
  470. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  471. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  472. CFLAGS="$SAVE_CFLAGS"
  473. fi
  474. ;;
  475. AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  476. [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  477. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  478. AC_CHECK_TOOL(AS, as, false)
  479. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  480. ;;
  481. ])
  482. esac
  483. need_locks="$enable_libtool_lock"
  484. ])# _LT_AC_LOCK
  485. # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  486. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  487. # ----------------------------------------------------------------
  488. # Check whether the given compiler option works
  489. AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  490. [AC_REQUIRE([LT_AC_PROG_SED])
  491. AC_CACHE_CHECK([$1], [$2],
  492. [$2=no
  493. ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  494. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  495. lt_compiler_flag="$3"
  496. # Insert the option either (1) after the last *FLAGS variable, or
  497. # (2) before a word containing "conftest.", or (3) at the end.
  498. # Note that $ac_compile itself does not contain backslashes and begins
  499. # with a dollar sign (not a hyphen), so the echo should work correctly.
  500. # The option is referenced via a variable to avoid confusing sed.
  501. lt_compile=`echo "$ac_compile" | $SED \
  502. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  503. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  504. -e 's:$: $lt_compiler_flag:'`
  505. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  506. (eval "$lt_compile" 2>conftest.err)
  507. ac_status=$?
  508. cat conftest.err >&AS_MESSAGE_LOG_FD
  509. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  510. if (exit $ac_status) && test -s "$ac_outfile"; then
  511. # The compiler can only warn and ignore the option if not recognized
  512. # So say no if there are warnings
  513. if test ! -s conftest.err; then
  514. $2=yes
  515. fi
  516. fi
  517. $rm conftest*
  518. ])
  519. if test x"[$]$2" = xyes; then
  520. ifelse([$5], , :, [$5])
  521. else
  522. ifelse([$6], , :, [$6])
  523. fi
  524. ])# AC_LIBTOOL_COMPILER_OPTION
  525. # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  526. # [ACTION-SUCCESS], [ACTION-FAILURE])
  527. # ------------------------------------------------------------
  528. # Check whether the given compiler option works
  529. AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  530. [AC_CACHE_CHECK([$1], [$2],
  531. [$2=no
  532. save_LDFLAGS="$LDFLAGS"
  533. LDFLAGS="$LDFLAGS $3"
  534. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  535. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  536. # The compiler can only warn and ignore the option if not recognized
  537. # So say no if there are warnings
  538. if test -s conftest.err; then
  539. # Append any errors to the config.log.
  540. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  541. else
  542. $2=yes
  543. fi
  544. fi
  545. $rm conftest*
  546. LDFLAGS="$save_LDFLAGS"
  547. ])
  548. if test x"[$]$2" = xyes; then
  549. ifelse([$4], , :, [$4])
  550. else
  551. ifelse([$5], , :, [$5])
  552. fi
  553. ])# AC_LIBTOOL_LINKER_OPTION
  554. # AC_LIBTOOL_SYS_MAX_CMD_LEN
  555. # --------------------------
  556. AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  557. [# find the maximum length of command line arguments
  558. AC_MSG_CHECKING([the maximum length of command line arguments])
  559. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  560. i=0
  561. testring="ABCD"
  562. case $build_os in
  563. msdosdjgpp*)
  564. # On DJGPP, this test can blow up pretty badly due to problems in libc
  565. # (any single argument exceeding 2000 bytes causes a buffer overrun
  566. # during glob expansion). Even if it were fixed, the result of this
  567. # check would be larger than it should be.
  568. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  569. ;;
  570. gnu*)
  571. # Under GNU Hurd, this test is not required because there is
  572. # no limit to the length of command line arguments.
  573. # Libtool will interpret -1 as no limit whatsoever
  574. lt_cv_sys_max_cmd_len=-1;
  575. ;;
  576. cygwin* | mingw*)
  577. # On Win9x/ME, this test blows up -- it succeeds, but takes
  578. # about 5 minutes as the teststring grows exponentially.
  579. # Worse, since 9x/ME are not pre-emptively multitasking,
  580. # you end up with a "frozen" computer, even though with patience
  581. # the test eventually succeeds (with a max line length of 256k).
  582. # Instead, let's just punt: use the minimum linelength reported by
  583. # all of the supported platforms: 8192 (on NT/2K/XP).
  584. lt_cv_sys_max_cmd_len=8192;
  585. ;;
  586. amigaos*)
  587. # On AmigaOS with pdksh, this test takes hours, literally.
  588. # So we just punt and use a minimum line length of 8192.
  589. lt_cv_sys_max_cmd_len=8192;
  590. ;;
  591. *)
  592. # If test is not a shell built-in, we'll probably end up computing a
  593. # maximum length that is only half of the actual maximum length, but
  594. # we can't tell.
  595. while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
  596. = "XX$testring") >/dev/null 2>&1 &&
  597. new_result=`expr "X$testring" : ".*" 2>&1` &&
  598. lt_cv_sys_max_cmd_len=$new_result &&
  599. test $i != 17 # 1/2 MB should be enough
  600. do
  601. i=`expr $i + 1`
  602. testring=$testring$testring
  603. done
  604. testring=
  605. # Add a significant safety factor because C++ compilers can tack on massive
  606. # amounts of additional arguments before passing them to the linker.
  607. # It appears as though 1/2 is a usable value.
  608. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  609. ;;
  610. esac
  611. ])
  612. if test -n $lt_cv_sys_max_cmd_len ; then
  613. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  614. else
  615. AC_MSG_RESULT(none)
  616. fi
  617. ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  618. # _LT_AC_CHECK_DLFCN
  619. # --------------------
  620. AC_DEFUN([_LT_AC_CHECK_DLFCN],
  621. [AC_CHECK_HEADERS(dlfcn.h)dnl
  622. ])# _LT_AC_CHECK_DLFCN
  623. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  624. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  625. # ------------------------------------------------------------------
  626. AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  627. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  628. if test "$cross_compiling" = yes; then :
  629. [$4]
  630. else
  631. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  632. lt_status=$lt_dlunknown
  633. cat > conftest.$ac_ext <<EOF
  634. [#line __oline__ "configure"
  635. #include "confdefs.h"
  636. #if HAVE_DLFCN_H
  637. #include <dlfcn.h>
  638. #endif
  639. #include <stdio.h>
  640. #ifdef RTLD_GLOBAL
  641. # define LT_DLGLOBAL RTLD_GLOBAL
  642. #else
  643. # ifdef DL_GLOBAL
  644. # define LT_DLGLOBAL DL_GLOBAL
  645. # else
  646. # define LT_DLGLOBAL 0
  647. # endif
  648. #endif
  649. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  650. find out it does not work in some platform. */
  651. #ifndef LT_DLLAZY_OR_NOW
  652. # ifdef RTLD_LAZY
  653. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  654. # else
  655. # ifdef DL_LAZY
  656. # define LT_DLLAZY_OR_NOW DL_LAZY
  657. # else
  658. # ifdef RTLD_NOW
  659. # define LT_DLLAZY_OR_NOW RTLD_NOW
  660. # else
  661. # ifdef DL_NOW
  662. # define LT_DLLAZY_OR_NOW DL_NOW
  663. # else
  664. # define LT_DLLAZY_OR_NOW 0
  665. # endif
  666. # endif
  667. # endif
  668. # endif
  669. #endif
  670. #ifdef __cplusplus
  671. extern "C" void exit (int);
  672. #endif
  673. void fnord() { int i=42;}
  674. int main ()
  675. {
  676. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  677. int status = $lt_dlunknown;
  678. if (self)
  679. {
  680. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  681. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  682. /* dlclose (self); */
  683. }
  684. exit (status);
  685. }]
  686. EOF
  687. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  688. (./conftest; exit; ) 2>/dev/null
  689. lt_status=$?
  690. case x$lt_status in
  691. x$lt_dlno_uscore) $1 ;;
  692. x$lt_dlneed_uscore) $2 ;;
  693. x$lt_unknown|x*) $3 ;;
  694. esac
  695. else :
  696. # compilation failed
  697. $3
  698. fi
  699. fi
  700. rm -fr conftest*
  701. ])# _LT_AC_TRY_DLOPEN_SELF
  702. # AC_LIBTOOL_DLOPEN_SELF
  703. # -------------------
  704. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  705. [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  706. if test "x$enable_dlopen" != xyes; then
  707. enable_dlopen=unknown
  708. enable_dlopen_self=unknown
  709. enable_dlopen_self_static=unknown
  710. else
  711. lt_cv_dlopen=no
  712. lt_cv_dlopen_libs=
  713. case $host_os in
  714. beos*)
  715. lt_cv_dlopen="load_add_on"
  716. lt_cv_dlopen_libs=
  717. lt_cv_dlopen_self=yes
  718. ;;
  719. mingw* | pw32*)
  720. lt_cv_dlopen="LoadLibrary"
  721. lt_cv_dlopen_libs=
  722. ;;
  723. cygwin*)
  724. lt_cv_dlopen="dlopen"
  725. lt_cv_dlopen_libs=
  726. ;;
  727. darwin*)
  728. # if libdl is installed we need to link against it
  729. AC_CHECK_LIB([dl], [dlopen],
  730. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  731. lt_cv_dlopen="dyld"
  732. lt_cv_dlopen_libs=
  733. lt_cv_dlopen_self=yes
  734. ])
  735. ;;
  736. *)
  737. AC_CHECK_FUNC([shl_load],
  738. [lt_cv_dlopen="shl_load"],
  739. [AC_CHECK_LIB([dld], [shl_load],
  740. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  741. [AC_CHECK_FUNC([dlopen],
  742. [lt_cv_dlopen="dlopen"],
  743. [AC_CHECK_LIB([dl], [dlopen],
  744. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  745. [AC_CHECK_LIB([svld], [dlopen],
  746. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  747. [AC_CHECK_LIB([dld], [dld_link],
  748. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  749. ])
  750. ])
  751. ])
  752. ])
  753. ])
  754. ;;
  755. esac
  756. if test "x$lt_cv_dlopen" != xno; then
  757. enable_dlopen=yes
  758. else
  759. enable_dlopen=no
  760. fi
  761. case $lt_cv_dlopen in
  762. dlopen)
  763. save_CPPFLAGS="$CPPFLAGS"
  764. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  765. save_LDFLAGS="$LDFLAGS"
  766. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  767. save_LIBS="$LIBS"
  768. LIBS="$lt_cv_dlopen_libs $LIBS"
  769. AC_CACHE_CHECK([whether a program can dlopen itself],
  770. lt_cv_dlopen_self, [dnl
  771. _LT_AC_TRY_DLOPEN_SELF(
  772. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  773. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  774. ])
  775. if test "x$lt_cv_dlopen_self" = xyes; then
  776. LDFLAGS="$LDFLAGS $link_static_flag"
  777. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  778. lt_cv_dlopen_self_static, [dnl
  779. _LT_AC_TRY_DLOPEN_SELF(
  780. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  781. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  782. ])
  783. fi
  784. CPPFLAGS="$save_CPPFLAGS"
  785. LDFLAGS="$save_LDFLAGS"
  786. LIBS="$save_LIBS"
  787. ;;
  788. esac
  789. case $lt_cv_dlopen_self in
  790. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  791. *) enable_dlopen_self=unknown ;;
  792. esac
  793. case $lt_cv_dlopen_self_static in
  794. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  795. *) enable_dlopen_self_static=unknown ;;
  796. esac
  797. fi
  798. ])# AC_LIBTOOL_DLOPEN_SELF
  799. # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  800. # ---------------------------------
  801. # Check to see if options -c and -o are simultaneously supported by compiler
  802. AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  803. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  804. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  805. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  806. [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  807. $rm -r conftest 2>/dev/null
  808. mkdir conftest
  809. cd conftest
  810. mkdir out
  811. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  812. lt_compiler_flag="-o out/conftest2.$ac_objext"
  813. # Insert the option either (1) after the last *FLAGS variable, or
  814. # (2) before a word containing "conftest.", or (3) at the end.
  815. # Note that $ac_compile itself does not contain backslashes and begins
  816. # with a dollar sign (not a hyphen), so the echo should work correctly.
  817. lt_compile=`echo "$ac_compile" | $SED \
  818. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  819. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  820. -e 's:$: $lt_compiler_flag:'`
  821. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  822. (eval "$lt_compile" 2>out/conftest.err)
  823. ac_status=$?
  824. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  825. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  826. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  827. then
  828. # The compiler can only warn and ignore the option if not recognized
  829. # So say no if there are warnings
  830. if test ! -s out/conftest.err; then
  831. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  832. fi
  833. fi
  834. chmod u+w .
  835. $rm conftest*
  836. # SGI C++ compiler will create directory out/ii_files/ for
  837. # template instantiation
  838. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  839. $rm out/* && rmdir out
  840. cd ..
  841. rmdir conftest
  842. $rm conftest*
  843. ])
  844. ])# AC_LIBTOOL_PROG_CC_C_O
  845. # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  846. # -----------------------------------------
  847. # Check to see if we can do hard links to lock some files if needed
  848. AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  849. [AC_REQUIRE([_LT_AC_LOCK])dnl
  850. hard_links="nottested"
  851. if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  852. # do not overwrite the value of need_locks provided by the user
  853. AC_MSG_CHECKING([if we can lock with hard links])
  854. hard_links=yes
  855. $rm conftest*
  856. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  857. touch conftest.a
  858. ln conftest.a conftest.b 2>&5 || hard_links=no
  859. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  860. AC_MSG_RESULT([$hard_links])
  861. if test "$hard_links" = no; then
  862. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  863. need_locks=warn
  864. fi
  865. else
  866. need_locks=no
  867. fi
  868. ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  869. # AC_LIBTOOL_OBJDIR
  870. # -----------------
  871. AC_DEFUN([AC_LIBTOOL_OBJDIR],
  872. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  873. [rm -f .libs 2>/dev/null
  874. mkdir .libs 2>/dev/null
  875. if test -d .libs; then
  876. lt_cv_objdir=.libs
  877. else
  878. # MS-DOS does not allow filenames that begin with a dot.
  879. lt_cv_objdir=_libs
  880. fi
  881. rmdir .libs 2>/dev/null])
  882. objdir=$lt_cv_objdir
  883. ])# AC_LIBTOOL_OBJDIR
  884. # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  885. # ----------------------------------------------
  886. # Check hardcoding attributes.
  887. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  888. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  889. _LT_AC_TAGVAR(hardcode_action, $1)=
  890. if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  891. test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  892. test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  893. # We can hardcode non-existant directories.
  894. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  895. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  896. # have to relink, otherwise we might link with an installed library
  897. # when we should be linking with a yet-to-be-installed one
  898. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  899. test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  900. # Linking always hardcodes the temporary library directory.
  901. _LT_AC_TAGVAR(hardcode_action, $1)=relink
  902. else
  903. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  904. _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  905. fi
  906. else
  907. # We cannot hardcode anything, or else we can only hardcode existing
  908. # directories.
  909. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  910. fi
  911. AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  912. if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  913. # Fast installation is not supported
  914. enable_fast_install=no
  915. elif test "$shlibpath_overrides_runpath" = yes ||
  916. test "$enable_shared" = no; then
  917. # Fast installation is not necessary
  918. enable_fast_install=needless
  919. fi
  920. ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  921. # AC_LIBTOOL_SYS_LIB_STRIP
  922. # ------------------------
  923. AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  924. [striplib=
  925. old_striplib=
  926. AC_MSG_CHECKING([whether stripping libraries is possible])
  927. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  928. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  929. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  930. AC_MSG_RESULT([yes])
  931. else
  932. # FIXME - insert some real tests, host_os isn't really good enough
  933. case $host_os in
  934. darwin*)
  935. if test -n "$STRIP" ; then
  936. striplib="$STRIP -x"
  937. AC_MSG_RESULT([yes])
  938. else
  939. AC_MSG_RESULT([no])
  940. fi
  941. ;;
  942. *)
  943. AC_MSG_RESULT([no])
  944. ;;
  945. esac
  946. fi
  947. ])# AC_LIBTOOL_SYS_LIB_STRIP
  948. # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  949. # -----------------------------
  950. # PORTME Fill in your ld.so characteristics
  951. AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  952. [AC_MSG_CHECKING([dynamic linker characteristics])
  953. library_names_spec=
  954. libname_spec='lib$name'
  955. soname_spec=
  956. shrext=".so"
  957. postinstall_cmds=
  958. postuninstall_cmds=
  959. finish_cmds=
  960. finish_eval=
  961. shlibpath_var=
  962. shlibpath_overrides_runpath=unknown
  963. version_type=none
  964. dynamic_linker="$host_os ld.so"
  965. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  966. if test "$GCC" = yes; then
  967. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  968. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  969. # if the path contains ";" then we assume it to be the separator
  970. # otherwise default to the standard path separator (i.e. ":") - it is
  971. # assumed that no part of a normal pathname contains ";" but that should
  972. # okay in the real world where ";" in dirpaths is itself problematic.
  973. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  974. else
  975. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  976. fi
  977. else
  978. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  979. fi
  980. need_lib_prefix=unknown
  981. hardcode_into_libs=no
  982. # when you set need_version to no, make sure it does not cause -set_version
  983. # flags to be left without arguments
  984. need_version=unknown
  985. case $host_os in
  986. aix3*)
  987. version_type=linux
  988. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  989. shlibpath_var=LIBPATH
  990. # AIX 3 has no versioning support, so we append a major version to the name.
  991. soname_spec='${libname}${release}${shared_ext}$major'
  992. ;;
  993. aix4* | aix5*)
  994. version_type=linux
  995. need_lib_prefix=no
  996. need_version=no
  997. hardcode_into_libs=yes
  998. if test "$host_cpu" = ia64; then
  999. # AIX 5 supports IA64
  1000. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1001. shlibpath_var=LD_LIBRARY_PATH
  1002. else
  1003. # With GCC up to 2.95.x, collect2 would create an import file
  1004. # for dependence libraries. The import file would start with
  1005. # the line `#! .'. This would cause the generated library to
  1006. # depend on `.', always an invalid library. This was fixed in
  1007. # development snapshots of GCC prior to 3.0.
  1008. case $host_os in
  1009. aix4 | aix4.[[01]] | aix4.[[01]].*)
  1010. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1011. echo ' yes '
  1012. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1013. :
  1014. else
  1015. can_build_shared=no
  1016. fi
  1017. ;;
  1018. esac
  1019. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1020. # soname into executable. Probably we can add versioning support to
  1021. # collect2, so additional links can be useful in future.
  1022. if test "$aix_use_runtimelinking" = yes; then
  1023. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1024. # instead of lib<name>.a to let people know that these are not
  1025. # typical AIX shared libraries.
  1026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1027. else
  1028. # We preserve .a as extension for shared libraries through AIX4.2
  1029. # and later when we are not doing run time linking.
  1030. library_names_spec='${libname}${release}.a $libname.a'
  1031. soname_spec='${libname}${release}${shared_ext}$major'
  1032. fi
  1033. shlibpath_var=LIBPATH
  1034. fi
  1035. ;;
  1036. amigaos*)
  1037. library_names_spec='$libname.ixlibrary $libname.a'
  1038. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1039. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  1040. ;;
  1041. beos*)
  1042. library_names_spec='${libname}${shared_ext}'
  1043. dynamic_linker="$host_os ld.so"
  1044. shlibpath_var=LIBRARY_PATH
  1045. ;;
  1046. bsdi4*)
  1047. version_type=linux
  1048. need_version=no
  1049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1050. soname_spec='${libname}${release}${shared_ext}$major'
  1051. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1052. shlibpath_var=LD_LIBRARY_PATH
  1053. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1054. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1055. # the default ld.so.conf also contains /usr/contrib/lib and
  1056. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1057. # libtool to hard-code these into programs
  1058. ;;
  1059. cygwin* | mingw* | pw32*)
  1060. version_type=windows
  1061. shrext=".dll"
  1062. need_version=no
  1063. need_lib_prefix=no
  1064. case $GCC,$host_os in
  1065. yes,cygwin* | yes,mingw* | yes,pw32*)
  1066. library_names_spec='$libname.dll.a'
  1067. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1068. postinstall_cmds='base_file=`basename \${file}`~
  1069. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1070. dldir=$destdir/`dirname \$dlpath`~
  1071. test -d \$dldir || mkdir -p \$dldir~
  1072. $install_prog $dir/$dlname \$dldir/$dlname'
  1073. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1074. dlpath=$dir/\$dldll~
  1075. $rm \$dlpath'
  1076. shlibpath_overrides_runpath=yes
  1077. case $host_os in
  1078. cygwin*)
  1079. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1080. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1081. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1082. ;;
  1083. mingw*)
  1084. # MinGW DLLs use traditional 'lib' prefix
  1085. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1086. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1087. if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1088. # It is most probably a Windows format PATH printed by
  1089. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1090. # path with ; separators, and with drive letters. We can handle the
  1091. # drive letters (cygwin fileutils understands them), so leave them,
  1092. # especially as we might pass files found there to a mingw objdump,
  1093. # which wouldn't understand a cygwinified path. Ahh.
  1094. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1095. else
  1096. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1097. fi
  1098. ;;
  1099. pw32*)
  1100. # pw32 DLLs use 'pw' prefix rather than 'lib'
  1101. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  1102. ;;
  1103. esac
  1104. ;;
  1105. *)
  1106. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1107. ;;
  1108. esac
  1109. dynamic_linker='Win32 ld.exe'
  1110. # FIXME: first we should search . and the directory the executable is in
  1111. shlibpath_var=PATH
  1112. ;;
  1113. darwin* | rhapsody*)
  1114. dynamic_linker="$host_os dyld"
  1115. version_type=darwin
  1116. need_lib_prefix=no
  1117. need_version=no
  1118. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1119. soname_spec='${libname}${release}${major}$shared_ext'
  1120. shlibpath_overrides_runpath=yes
  1121. shlibpath_var=DYLD_LIBRARY_PATH
  1122. shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  1123. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  1124. if test "$GCC" = yes; then
  1125. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  1126. else
  1127. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  1128. fi
  1129. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1130. ;;
  1131. dgux*)
  1132. version_type=linux
  1133. need_lib_prefix=no
  1134. need_version=no
  1135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1136. soname_spec='${libname}${release}${shared_ext}$major'
  1137. shlibpath_var=LD_LIBRARY_PATH
  1138. ;;
  1139. freebsd1*)
  1140. dynamic_linker=no
  1141. ;;
  1142. kfreebsd*-gnu)
  1143. version_type=linux
  1144. need_lib_prefix=no
  1145. need_version=no
  1146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1147. soname_spec='${libname}${release}${shared_ext}$major'
  1148. shlibpath_var=LD_LIBRARY_PATH
  1149. shlibpath_overrides_runpath=no
  1150. hardcode_into_libs=yes
  1151. dynamic_linker='GNU ld.so'
  1152. ;;
  1153. freebsd*)
  1154. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  1155. version_type=freebsd-$objformat
  1156. case $version_type in
  1157. freebsd-elf*)
  1158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1159. need_version=no
  1160. need_lib_prefix=no
  1161. ;;
  1162. freebsd-*)
  1163. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1164. need_version=yes
  1165. ;;
  1166. esac
  1167. shlibpath_var=LD_LIBRARY_PATH
  1168. case $host_os in
  1169. freebsd2*)
  1170. shlibpath_overrides_runpath=yes
  1171. ;;
  1172. freebsd3.[01]* | freebsdelf3.[01]*)
  1173. shlibpath_overrides_runpath=yes
  1174. hardcode_into_libs=yes
  1175. ;;
  1176. *) # from 3.2 on
  1177. shlibpath_overrides_runpath=no
  1178. hardcode_into_libs=yes
  1179. ;;
  1180. esac
  1181. ;;
  1182. gnu*)
  1183. version_type=linux
  1184. need_lib_prefix=no
  1185. need_version=no
  1186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1187. soname_spec='${libname}${release}${shared_ext}$major'
  1188. shlibpath_var=LD_LIBRARY_PATH
  1189. hardcode_into_libs=yes
  1190. ;;
  1191. hpux9* | hpux10* | hpux11*)
  1192. # Give a soname corresponding to the major version so that dld.sl refuses to
  1193. # link against other versions.
  1194. version_type=sunos
  1195. need_lib_prefix=no
  1196. need_version=no
  1197. case "$host_cpu" in
  1198. ia64*)
  1199. shrext='.so'
  1200. hardcode_into_libs=yes
  1201. dynamic_linker="$host_os dld.so"
  1202. shlibpath_var=LD_LIBRARY_PATH
  1203. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1205. soname_spec='${libname}${release}${shared_ext}$major'
  1206. if test "X$HPUX_IA64_MODE" = X32; then
  1207. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1208. else
  1209. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1210. fi
  1211. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1212. ;;
  1213. hppa*64*)
  1214. shrext='.sl'
  1215. hardcode_into_libs=yes
  1216. dynamic_linker="$host_os dld.sl"
  1217. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1218. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1220. soname_spec='${libname}${release}${shared_ext}$major'
  1221. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1222. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1223. ;;
  1224. *)
  1225. shrext='.sl'
  1226. dynamic_linker="$host_os dld.sl"
  1227. shlibpath_var=SHLIB_PATH
  1228. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1230. soname_spec='${libname}${release}${shared_ext}$major'
  1231. ;;
  1232. esac
  1233. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1234. postinstall_cmds='chmod 555 $lib'
  1235. ;;
  1236. irix5* | irix6* | nonstopux*)
  1237. case $host_os in
  1238. nonstopux*) version_type=nonstopux ;;
  1239. *)
  1240. if test "$lt_cv_prog_gnu_ld" = yes; then
  1241. version_type=linux
  1242. else
  1243. version_type=irix
  1244. fi ;;
  1245. esac
  1246. need_lib_prefix=no
  1247. need_version=no
  1248. soname_spec='${libname}${release}${shared_ext}$major'
  1249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1250. case $host_os in
  1251. irix5* | nonstopux*)
  1252. libsuff= shlibsuff=
  1253. ;;
  1254. *)
  1255. case $LD in # libtool.m4 will add one of these switches to LD
  1256. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1257. libsuff= shlibsuff= libmagic=32-bit;;
  1258. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1259. libsuff=32 shlibsuff=N32 libmagic=N32;;
  1260. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1261. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1262. *) libsuff= shlibsuff= libmagic=never-match;;
  1263. esac
  1264. ;;
  1265. esac
  1266. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1267. shlibpath_overrides_runpath=no
  1268. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1269. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1270. hardcode_into_libs=yes
  1271. ;;
  1272. # No shared lib support for Linux oldld, aout, or coff.
  1273. linux*oldld* | linux*aout* | linux*coff*)
  1274. dynamic_linker=no
  1275. ;;
  1276. # This must be Linux ELF.
  1277. linux*)
  1278. version_type=linux
  1279. need_lib_prefix=no
  1280. need_version=no
  1281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1282. soname_spec='${libname}${release}${shared_ext}$major'
  1283. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1284. shlibpath_var=LD_LIBRARY_PATH
  1285. shlibpath_overrides_runpath=no
  1286. # This implies no fast_install, which is unacceptable.
  1287. # Some rework will be needed to allow for fast_install
  1288. # before this can be enabled.
  1289. hardcode_into_libs=yes
  1290. # Append ld.so.conf contents to the search path
  1291. if test -f /etc/ld.so.conf; then
  1292. ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
  1293. sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  1294. fi
  1295. # We used to test for /lib/ld.so.1 and disable shared libraries on
  1296. # powerpc, because MkLinux only supported shared libraries with the
  1297. # GNU dynamic linker. Since this was broken with cross compilers,
  1298. # most powerpc-linux boxes support dynamic linking these days and
  1299. # people can always --disable-shared, the test was removed, and we
  1300. # assume the GNU/Linux dynamic linker is in use.
  1301. dynamic_linker='GNU/Linux ld.so'
  1302. ;;
  1303. knetbsd*-gnu)
  1304. version_type=linux
  1305. need_lib_prefix=no
  1306. need_version=no
  1307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1308. soname_spec='${libname}${release}${shared_ext}$major'
  1309. shlibpath_var=LD_LIBRARY_PATH
  1310. shlibpath_overrides_runpath=no
  1311. hardcode_into_libs=yes
  1312. dynamic_linker='GNU ld.so'
  1313. ;;
  1314. netbsd*)
  1315. version_type=sunos
  1316. need_lib_prefix=no
  1317. need_version=no
  1318. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1320. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1321. dynamic_linker='NetBSD (a.out) ld.so'
  1322. else
  1323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1324. soname_spec='${libname}${release}${shared_ext}$major'
  1325. dynamic_linker='NetBSD ld.elf_so'
  1326. fi
  1327. shlibpath_var=LD_LIBRARY_PATH
  1328. shlibpath_overrides_runpath=yes
  1329. hardcode_into_libs=yes
  1330. ;;
  1331. newsos6)
  1332. version_type=linux
  1333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1334. shlibpath_var=LD_LIBRARY_PATH
  1335. shlibpath_overrides_runpath=yes
  1336. ;;
  1337. nto-qnx*)
  1338. version_type=linux
  1339. need_lib_prefix=no
  1340. need_version=no
  1341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1342. soname_spec='${libname}${release}${shared_ext}$major'
  1343. shlibpath_var=LD_LIBRARY_PATH
  1344. shlibpath_overrides_runpath=yes
  1345. ;;
  1346. openbsd*)
  1347. version_type=sunos
  1348. need_lib_prefix=no
  1349. need_version=yes
  1350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1351. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1352. shlibpath_var=LD_LIBRARY_PATH
  1353. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1354. case $host_os in
  1355. openbsd2.[[89]] | openbsd2.[[89]].*)
  1356. shlibpath_overrides_runpath=no
  1357. ;;
  1358. *)
  1359. shlibpath_overrides_runpath=yes
  1360. ;;
  1361. esac
  1362. else
  1363. shlibpath_overrides_runpath=yes
  1364. fi
  1365. ;;
  1366. os2*)
  1367. libname_spec='$name'
  1368. shrext=".dll"
  1369. need_lib_prefix=no
  1370. library_names_spec='$libname${shared_ext} $libname.a'
  1371. dynamic_linker='OS/2 ld.exe'
  1372. shlibpath_var=LIBPATH
  1373. ;;
  1374. osf3* | osf4* | osf5*)
  1375. version_type=osf
  1376. need_lib_prefix=no
  1377. need_version=no
  1378. soname_spec='${libname}${release}${shared_ext}$major'
  1379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1380. shlibpath_var=LD_LIBRARY_PATH
  1381. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1382. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1383. ;;
  1384. sco3.2v5*)
  1385. version_type=osf
  1386. soname_spec='${libname}${release}${shared_ext}$major'
  1387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1388. shlibpath_var=LD_LIBRARY_PATH
  1389. ;;
  1390. solaris*)
  1391. version_type=linux
  1392. need_lib_prefix=no
  1393. need_version=no
  1394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1395. soname_spec='${libname}${release}${shared_ext}$major'
  1396. shlibpath_var=LD_LIBRARY_PATH
  1397. shlibpath_overrides_runpath=yes
  1398. hardcode_into_libs=yes
  1399. # ldd complains unless libraries are executable
  1400. postinstall_cmds='chmod +x $lib'
  1401. ;;
  1402. sunos4*)
  1403. version_type=sunos
  1404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1405. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1406. shlibpath_var=LD_LIBRARY_PATH
  1407. shlibpath_overrides_runpath=yes
  1408. if test "$with_gnu_ld" = yes; then
  1409. need_lib_prefix=no
  1410. fi
  1411. need_version=yes
  1412. ;;
  1413. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1414. version_type=linux
  1415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1416. soname_spec='${libname}${release}${shared_ext}$major'
  1417. shlibpath_var=LD_LIBRARY_PATH
  1418. case $host_vendor in
  1419. sni)
  1420. shlibpath_overrides_runpath=no
  1421. need_lib_prefix=no
  1422. export_dynamic_flag_spec='${wl}-Blargedynsym'
  1423. runpath_var=LD_RUN_PATH
  1424. ;;
  1425. siemens)
  1426. need_lib_prefix=no
  1427. ;;
  1428. motorola)
  1429. need_lib_prefix=no
  1430. need_version=no
  1431. shlibpath_overrides_runpath=no
  1432. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1433. ;;
  1434. esac
  1435. ;;
  1436. sysv4*MP*)
  1437. if test -d /usr/nec ;then
  1438. version_type=linux
  1439. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1440. soname_spec='$libname${shared_ext}.$major'
  1441. shlibpath_var=LD_LIBRARY_PATH
  1442. fi
  1443. ;;
  1444. uts4*)
  1445. version_type=linux
  1446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1447. soname_spec='${libname}${release}${shared_ext}$major'
  1448. shlibpath_var=LD_LIBRARY_PATH
  1449. ;;
  1450. *)
  1451. dynamic_linker=no
  1452. ;;
  1453. esac
  1454. AC_MSG_RESULT([$dynamic_linker])
  1455. test "$dynamic_linker" = no && can_build_shared=no
  1456. ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1457. # _LT_AC_TAGCONFIG
  1458. # ----------------
  1459. AC_DEFUN([_LT_AC_TAGCONFIG],
  1460. [AC_ARG_WITH([tags],
  1461. [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1462. [include additional configurations @<:@automatic@:>@])],
  1463. [tagnames="$withval"])
  1464. if test -f "$ltmain" && test -n "$tagnames"; then
  1465. if test ! -f "${ofile}"; then
  1466. AC_MSG_WARN([output file `$ofile' does not exist])
  1467. fi
  1468. if test -z "$LTCC"; then
  1469. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1470. if test -z "$LTCC"; then
  1471. AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1472. else
  1473. AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1474. fi
  1475. fi
  1476. # Extract list of available tagged configurations in $ofile.
  1477. # Note that this assumes the entire list is on one line.
  1478. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1479. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1480. for tagname in $tagnames; do
  1481. IFS="$lt_save_ifs"
  1482. # Check whether tagname contains only valid characters
  1483. case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1484. "") ;;
  1485. *) AC_MSG_ERROR([invalid tag name: $tagname])
  1486. ;;
  1487. esac
  1488. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1489. then
  1490. AC_MSG_ERROR([tag name \"$tagname\" already exists])
  1491. fi
  1492. # Update the list of available tags.
  1493. if test -n "$tagname"; then
  1494. echo appending configuration tag \"$tagname\" to $ofile
  1495. case $tagname in
  1496. CXX)
  1497. if test -n "$CXX" && test "X$CXX" != "Xno"; then
  1498. AC_LIBTOOL_LANG_CXX_CONFIG
  1499. else
  1500. tagname=""
  1501. fi
  1502. ;;
  1503. F77)
  1504. if test -n "$F77" && test "X$F77" != "Xno"; then
  1505. AC_LIBTOOL_LANG_F77_CONFIG
  1506. else
  1507. tagname=""
  1508. fi
  1509. ;;
  1510. GCJ)
  1511. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  1512. AC_LIBTOOL_LANG_GCJ_CONFIG
  1513. else
  1514. tagname=""
  1515. fi
  1516. ;;
  1517. RC)
  1518. AC_LIBTOOL_LANG_RC_CONFIG
  1519. ;;
  1520. *)
  1521. AC_MSG_ERROR([Unsupported tag name: $tagname])
  1522. ;;
  1523. esac
  1524. # Append the new tag name to the list of available tags.
  1525. if test -n "$tagname" ; then
  1526. available_tags="$available_tags $tagname"
  1527. fi
  1528. fi
  1529. done
  1530. IFS="$lt_save_ifs"
  1531. # Now substitute the updated list of available tags.
  1532. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  1533. mv "${ofile}T" "$ofile"
  1534. chmod +x "$ofile"
  1535. else
  1536. rm -f "${ofile}T"
  1537. AC_MSG_ERROR([unable to update list of available tagged configurations.])
  1538. fi
  1539. fi
  1540. ])# _LT_AC_TAGCONFIG
  1541. # AC_LIBTOOL_DLOPEN
  1542. # -----------------
  1543. # enable checks for dlopen support
  1544. AC_DEFUN([AC_LIBTOOL_DLOPEN],
  1545. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  1546. ])# AC_LIBTOOL_DLOPEN
  1547. # AC_LIBTOOL_WIN32_DLL
  1548. # --------------------
  1549. # declare package support for building win32 dll's
  1550. AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1551. [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1552. ])# AC_LIBTOOL_WIN32_DLL
  1553. # AC_ENABLE_SHARED([DEFAULT])
  1554. # ---------------------------
  1555. # implement the --enable-shared flag
  1556. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1557. AC_DEFUN([AC_ENABLE_SHARED],
  1558. [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  1559. AC_ARG_ENABLE([shared],
  1560. [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  1561. [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  1562. [p=${PACKAGE-default}
  1563. case $enableval in
  1564. yes) enable_shared=yes ;;
  1565. no) enable_shared=no ;;
  1566. *)
  1567. enable_shared=no
  1568. # Look at the argument we got. We use all the common list separators.
  1569. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1570. for pkg in $enableval; do
  1571. IFS="$lt_save_ifs"
  1572. if test "X$pkg" = "X$p"; then
  1573. enable_shared=yes
  1574. fi
  1575. done
  1576. IFS="$lt_save_ifs"
  1577. ;;
  1578. esac],
  1579. [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  1580. ])# AC_ENABLE_SHARED
  1581. # AC_DISABLE_SHARED
  1582. # -----------------
  1583. #- set the default shared flag to --disable-shared
  1584. AC_DEFUN([AC_DISABLE_SHARED],
  1585. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1586. AC_ENABLE_SHARED(no)
  1587. ])# AC_DISABLE_SHARED
  1588. # AC_ENABLE_STATIC([DEFAULT])
  1589. # ---------------------------
  1590. # implement the --enable-static flag
  1591. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1592. AC_DEFUN([AC_ENABLE_STATIC],
  1593. [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  1594. AC_ARG_ENABLE([static],
  1595. [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  1596. [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  1597. [p=${PACKAGE-default}
  1598. case $enableval in
  1599. yes) enable_static=yes ;;
  1600. no) enable_static=no ;;
  1601. *)
  1602. enable_static=no
  1603. # Look at the argument we got. We use all the common list separators.
  1604. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1605. for pkg in $enableval; do
  1606. IFS="$lt_save_ifs"
  1607. if test "X$pkg" = "X$p"; then
  1608. enable_static=yes
  1609. fi
  1610. done
  1611. IFS="$lt_save_ifs"
  1612. ;;
  1613. esac],
  1614. [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  1615. ])# AC_ENABLE_STATIC
  1616. # AC_DISABLE_STATIC
  1617. # -----------------
  1618. # set the default static flag to --disable-static
  1619. AC_DEFUN([AC_DISABLE_STATIC],
  1620. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1621. AC_ENABLE_STATIC(no)
  1622. ])# AC_DISABLE_STATIC
  1623. # AC_ENABLE_FAST_INSTALL([DEFAULT])
  1624. # ---------------------------------
  1625. # implement the --enable-fast-install flag
  1626. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  1627. AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  1628. [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  1629. AC_ARG_ENABLE([fast-install],
  1630. [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  1631. [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  1632. [p=${PACKAGE-default}
  1633. case $enableval in
  1634. yes) enable_fast_install=yes ;;
  1635. no) enable_fast_install=no ;;
  1636. *)
  1637. enable_fast_install=no
  1638. # Look at the argument we got. We use all the common list separators.
  1639. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1640. for pkg in $enableval; do
  1641. IFS="$lt_save_ifs"
  1642. if test "X$pkg" = "X$p"; then
  1643. enable_fast_install=yes
  1644. fi
  1645. done
  1646. IFS="$lt_save_ifs"
  1647. ;;
  1648. esac],
  1649. [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  1650. ])# AC_ENABLE_FAST_INSTALL
  1651. # AC_DISABLE_FAST_INSTALL
  1652. # -----------------------
  1653. # set the default to --disable-fast-install
  1654. AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  1655. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1656. AC_ENABLE_FAST_INSTALL(no)
  1657. ])# AC_DISABLE_FAST_INSTALL
  1658. # AC_LIBTOOL_PICMODE([MODE])
  1659. # --------------------------
  1660. # implement the --with-pic flag
  1661. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  1662. AC_DEFUN([AC_LIBTOOL_PICMODE],
  1663. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1664. pic_mode=ifelse($#,1,$1,default)
  1665. ])# AC_LIBTOOL_PICMODE
  1666. # AC_PROG_EGREP
  1667. # -------------
  1668. # This is predefined starting with Autoconf 2.54, so this conditional
  1669. # definition can be removed once we require Autoconf 2.54 or later.
  1670. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  1671. [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  1672. [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1673. then ac_cv_prog_egrep='grep -E'
  1674. else ac_cv_prog_egrep='egrep'
  1675. fi])
  1676. EGREP=$ac_cv_prog_egrep
  1677. AC_SUBST([EGREP])
  1678. ])])
  1679. # AC_PATH_TOOL_PREFIX
  1680. # -------------------
  1681. # find a file program which can recognise shared library
  1682. AC_DEFUN([AC_PATH_TOOL_PREFIX],
  1683. [AC_REQUIRE([AC_PROG_EGREP])dnl
  1684. AC_MSG_CHECKING([for $1])
  1685. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  1686. [case $MAGIC_CMD in
  1687. [[\\/*] | ?:[\\/]*])
  1688. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  1689. ;;
  1690. *)
  1691. lt_save_MAGIC_CMD="$MAGIC_CMD"
  1692. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1693. dnl $ac_dummy forces splitting on constant user-supplied paths.
  1694. dnl POSIX.2 word splitting is done only on the output of word expansions,
  1695. dnl not every word. This closes a longstanding sh security hole.
  1696. ac_dummy="ifelse([$2], , $PATH, [$2])"
  1697. for ac_dir in $ac_dummy; do
  1698. IFS="$lt_save_ifs"
  1699. test -z "$ac_dir" && ac_dir=.
  1700. if test -f $ac_dir/$1; then
  1701. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  1702. if test -n "$file_magic_test_file"; then
  1703. case $deplibs_check_method in
  1704. "file_magic "*)
  1705. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  1706. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1707. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1708. $EGREP "$file_magic_regex" > /dev/null; then
  1709. :
  1710. else
  1711. cat <<EOF 1>&2
  1712. *** Warning: the command libtool uses to detect shared libraries,
  1713. *** $file_magic_cmd, produces output that libtool cannot recognize.
  1714. *** The result is that libtool may fail to recognize shared libraries
  1715. *** as such. This will affect the creation of libtool libraries that
  1716. *** depend on shared libraries, but programs linked with such libtool
  1717. *** libraries will work regardless of this problem. Nevertheless, you
  1718. *** may want to report the problem to your system manager and/or to
  1719. *** bug-libtool@gnu.org
  1720. EOF
  1721. fi ;;
  1722. esac
  1723. fi
  1724. break
  1725. fi
  1726. done
  1727. IFS="$lt_save_ifs"
  1728. MAGIC_CMD="$lt_save_MAGIC_CMD"
  1729. ;;
  1730. esac])
  1731. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  1732. if test -n "$MAGIC_CMD"; then
  1733. AC_MSG_RESULT($MAGIC_CMD)
  1734. else
  1735. AC_MSG_RESULT(no)
  1736. fi
  1737. ])# AC_PATH_TOOL_PREFIX
  1738. # AC_PATH_MAGIC
  1739. # -------------
  1740. # find a file program which can recognise a shared library
  1741. AC_DEFUN([AC_PATH_MAGIC],
  1742. [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  1743. if test -z "$lt_cv_path_MAGIC_CMD"; then
  1744. if test -n "$ac_tool_prefix"; then
  1745. AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  1746. else
  1747. MAGIC_CMD=:
  1748. fi
  1749. fi
  1750. ])# AC_PATH_MAGIC
  1751. # AC_PROG_LD
  1752. # ----------
  1753. # find the pathname to the GNU or non-GNU linker
  1754. AC_DEFUN([AC_PROG_LD],
  1755. [AC_ARG_WITH([gnu-ld],
  1756. [AC_HELP_STRING([--with-gnu-ld],
  1757. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  1758. [test "$withval" = no || with_gnu_ld=yes],
  1759. [with_gnu_ld=no])
  1760. AC_REQUIRE([LT_AC_PROG_SED])dnl
  1761. AC_REQUIRE([AC_PROG_CC])dnl
  1762. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1763. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1764. ac_prog=ld
  1765. if test "$GCC" = yes; then
  1766. # Check if gcc -print-prog-name=ld gives a path.
  1767. AC_MSG_CHECKING([for ld used by $CC])
  1768. case $host in
  1769. *-*-mingw*)
  1770. # gcc leaves a trailing carriage return which upsets mingw
  1771. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1772. *)
  1773. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1774. esac
  1775. case $ac_prog in
  1776. # Accept absolute paths.
  1777. [[\\/]]* | ?:[[\\/]]*)
  1778. re_direlt='/[[^/]][[^/]]*/\.\./'
  1779. # Canonicalize the pathname of ld
  1780. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  1781. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1782. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  1783. done
  1784. test -z "$LD" && LD="$ac_prog"
  1785. ;;
  1786. "")
  1787. # If it fails, then pretend we aren't using GCC.
  1788. ac_prog=ld
  1789. ;;
  1790. *)
  1791. # If it is relative, then search for the first ld in PATH.
  1792. with_gnu_ld=unknown
  1793. ;;
  1794. esac
  1795. elif test "$with_gnu_ld" = yes; then
  1796. AC_MSG_CHECKING([for GNU ld])
  1797. else
  1798. AC_MSG_CHECKING([for non-GNU ld])
  1799. fi
  1800. AC_CACHE_VAL(lt_cv_path_LD,
  1801. [if test -z "$LD"; then
  1802. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1803. for ac_dir in $PATH; do
  1804. IFS="$lt_save_ifs"
  1805. test -z "$ac_dir" && ac_dir=.
  1806. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1807. lt_cv_path_LD="$ac_dir/$ac_prog"
  1808. # Check to see if the program is GNU ld. I'd rather use --version,
  1809. # but apparently some GNU ld's only accept -v.
  1810. # Break only if it was the GNU/non-GNU ld that we prefer.
  1811. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  1812. *GNU* | *'with BFD'*)
  1813. test "$with_gnu_ld" != no && break
  1814. ;;
  1815. *)
  1816. test "$with_gnu_ld" != yes && break
  1817. ;;
  1818. esac
  1819. fi
  1820. done
  1821. IFS="$lt_save_ifs"
  1822. else
  1823. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  1824. fi])
  1825. LD="$lt_cv_path_LD"
  1826. if test -n "$LD"; then
  1827. AC_MSG_RESULT($LD)
  1828. else
  1829. AC_MSG_RESULT(no)
  1830. fi
  1831. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  1832. AC_PROG_LD_GNU
  1833. ])# AC_PROG_LD
  1834. # AC_PROG_LD_GNU
  1835. # --------------
  1836. AC_DEFUN([AC_PROG_LD_GNU],
  1837. [AC_REQUIRE([AC_PROG_EGREP])dnl
  1838. AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  1839. [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1840. case `$LD -v 2>&1 </dev/null` in
  1841. *GNU* | *'with BFD'*)
  1842. lt_cv_prog_gnu_ld=yes
  1843. ;;
  1844. *)
  1845. lt_cv_prog_gnu_ld=no
  1846. ;;
  1847. esac])
  1848. with_gnu_ld=$lt_cv_prog_gnu_ld
  1849. ])# AC_PROG_LD_GNU
  1850. # AC_PROG_LD_RELOAD_FLAG
  1851. # ----------------------
  1852. # find reload flag for linker
  1853. # -- PORTME Some linkers may need a different reload flag.
  1854. AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  1855. [AC_CACHE_CHECK([for $LD option to reload object files],
  1856. lt_cv_ld_reload_flag,
  1857. [lt_cv_ld_reload_flag='-r'])
  1858. reload_flag=$lt_cv_ld_reload_flag
  1859. case $reload_flag in
  1860. "" | " "*) ;;
  1861. *) reload_flag=" $reload_flag" ;;
  1862. esac
  1863. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1864. ])# AC_PROG_LD_RELOAD_FLAG
  1865. # AC_DEPLIBS_CHECK_METHOD
  1866. # -----------------------
  1867. # how to check for library dependencies
  1868. # -- PORTME fill in with the dynamic library characteristics
  1869. AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  1870. [AC_CACHE_CHECK([how to recognise dependent libraries],
  1871. lt_cv_deplibs_check_method,
  1872. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  1873. lt_cv_file_magic_test_file=
  1874. lt_cv_deplibs_check_method='unknown'
  1875. # Need to set the preceding variable on all platforms that support
  1876. # interlibrary dependencies.
  1877. # 'none' -- dependencies not supported.
  1878. # `unknown' -- same as none, but documents that we really don't know.
  1879. # 'pass_all' -- all dependencies passed with no checks.
  1880. # 'test_compile' -- check by making test program.
  1881. # 'file_magic [[regex]]' -- check by looking for files in library path
  1882. # which responds to the $file_magic_cmd with a given extended regex.
  1883. # If you have `file' or equivalent on your system and you're not sure
  1884. # whether `pass_all' will *always* work, you probably want this one.
  1885. case $host_os in
  1886. aix4* | aix5*)
  1887. lt_cv_deplibs_check_method=pass_all
  1888. ;;
  1889. beos*)
  1890. lt_cv_deplibs_check_method=pass_all
  1891. ;;
  1892. bsdi4*)
  1893. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  1894. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1895. lt_cv_file_magic_test_file=/shlib/libc.so
  1896. ;;
  1897. cygwin*)
  1898. # win32_libid is a shell function defined in ltmain.sh
  1899. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1900. lt_cv_file_magic_cmd='win32_libid'
  1901. ;;
  1902. mingw* | pw32*)
  1903. # Base MSYS/MinGW do not provide the 'file' command needed by
  1904. # win32_libid shell function, so use a weaker test based on 'objdump'.
  1905. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1906. lt_cv_file_magic_cmd='$OBJDUMP -f'
  1907. ;;
  1908. darwin* | rhapsody*)
  1909. lt_cv_deplibs_check_method=pass_all
  1910. ;;
  1911. freebsd* | kfreebsd*-gnu)
  1912. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1913. case $host_cpu in
  1914. i*86 )
  1915. # Not sure whether the presence of OpenBSD here was a mistake.
  1916. # Let's accept both of them until this is cleared up.
  1917. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  1918. lt_cv_file_magic_cmd=/usr/bin/file
  1919. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1920. ;;
  1921. esac
  1922. else
  1923. lt_cv_deplibs_check_method=pass_all
  1924. fi
  1925. ;;
  1926. gnu*)
  1927. lt_cv_deplibs_check_method=pass_all
  1928. ;;
  1929. hpux10.20* | hpux11*)
  1930. lt_cv_file_magic_cmd=/usr/bin/file
  1931. case "$host_cpu" in
  1932. ia64*)
  1933. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  1934. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1935. ;;
  1936. hppa*64*)
  1937. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  1938. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  1939. ;;
  1940. *)
  1941. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  1942. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1943. ;;
  1944. esac
  1945. ;;
  1946. irix5* | irix6* | nonstopux*)
  1947. case $LD in
  1948. *-32|*"-32 ") libmagic=32-bit;;
  1949. *-n32|*"-n32 ") libmagic=N32;;
  1950. *-64|*"-64 ") libmagic=64-bit;;
  1951. *) libmagic=never-match;;
  1952. esac
  1953. lt_cv_deplibs_check_method=pass_all
  1954. ;;
  1955. # This must be Linux ELF.
  1956. linux*)
  1957. case $host_cpu in
  1958. alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
  1959. lt_cv_deplibs_check_method=pass_all ;;
  1960. *)
  1961. # glibc up to 2.1.1 does not perform some relocations on ARM
  1962. # this will be overridden with pass_all, but let us keep it just in case
  1963. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  1964. esac
  1965. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1966. lt_cv_deplibs_check_method=pass_all
  1967. ;;
  1968. netbsd*)
  1969. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1970. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  1971. else
  1972. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  1973. fi
  1974. ;;
  1975. newos6*)
  1976. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  1977. lt_cv_file_magic_cmd=/usr/bin/file
  1978. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1979. ;;
  1980. nto-qnx*)
  1981. lt_cv_deplibs_check_method=unknown
  1982. ;;
  1983. openbsd*)
  1984. lt_cv_file_magic_cmd=/usr/bin/file
  1985. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1986. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1987. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  1988. else
  1989. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  1990. fi
  1991. ;;
  1992. osf3* | osf4* | osf5*)
  1993. lt_cv_deplibs_check_method=pass_all
  1994. ;;
  1995. sco3.2v5*)
  1996. lt_cv_deplibs_check_method=pass_all
  1997. ;;
  1998. solaris*)
  1999. lt_cv_deplibs_check_method=pass_all
  2000. ;;
  2001. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2002. case $host_vendor in
  2003. motorola)
  2004. 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]]'
  2005. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2006. ;;
  2007. ncr)
  2008. lt_cv_deplibs_check_method=pass_all
  2009. ;;
  2010. sequent)
  2011. lt_cv_file_magic_cmd='/bin/file'
  2012. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2013. ;;
  2014. sni)
  2015. lt_cv_file_magic_cmd='/bin/file'
  2016. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2017. lt_cv_file_magic_test_file=/lib/libc.so
  2018. ;;
  2019. siemens)
  2020. lt_cv_deplibs_check_method=pass_all
  2021. ;;
  2022. esac
  2023. ;;
  2024. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  2025. lt_cv_deplibs_check_method=pass_all
  2026. ;;
  2027. esac
  2028. ])
  2029. file_magic_cmd=$lt_cv_file_magic_cmd
  2030. deplibs_check_method=$lt_cv_deplibs_check_method
  2031. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2032. ])# AC_DEPLIBS_CHECK_METHOD
  2033. # AC_PROG_NM
  2034. # ----------
  2035. # find the pathname to a BSD-compatible name lister
  2036. AC_DEFUN([AC_PROG_NM],
  2037. [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2038. [if test -n "$NM"; then
  2039. # Let the user override the test.
  2040. lt_cv_path_NM="$NM"
  2041. else
  2042. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2043. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2044. IFS="$lt_save_ifs"
  2045. test -z "$ac_dir" && ac_dir=.
  2046. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  2047. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2048. # Check to see if the nm accepts a BSD-compat flag.
  2049. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2050. # nm: unknown option "B" ignored
  2051. # Tru64's nm complains that /dev/null is an invalid object file
  2052. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2053. */dev/null* | *'Invalid file or object type'*)
  2054. lt_cv_path_NM="$tmp_nm -B"
  2055. break
  2056. ;;
  2057. *)
  2058. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2059. */dev/null*)
  2060. lt_cv_path_NM="$tmp_nm -p"
  2061. break
  2062. ;;
  2063. *)
  2064. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2065. continue # so that we can try to find one that supports BSD flags
  2066. ;;
  2067. esac
  2068. esac
  2069. fi
  2070. done
  2071. IFS="$lt_save_ifs"
  2072. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2073. fi])
  2074. NM="$lt_cv_path_NM"
  2075. ])# AC_PROG_NM
  2076. # AC_CHECK_LIBM
  2077. # -------------
  2078. # check for math library
  2079. AC_DEFUN([AC_CHECK_LIBM],
  2080. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2081. LIBM=
  2082. case $host in
  2083. *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2084. # These system don't have libm, or don't need it
  2085. ;;
  2086. *-ncr-sysv4.3*)
  2087. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2088. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2089. ;;
  2090. *)
  2091. AC_CHECK_LIB(m, cos, LIBM="-lm")
  2092. ;;
  2093. esac
  2094. ])# AC_CHECK_LIBM
  2095. # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2096. # -----------------------------------
  2097. # sets LIBLTDL to the link flags for the libltdl convenience library and
  2098. # LTDLINCL to the include flags for the libltdl header and adds
  2099. # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  2100. # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  2101. # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  2102. # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  2103. # '${top_srcdir}/' (note the single quotes!). If your package is not
  2104. # flat and you're not using automake, define top_builddir and
  2105. # top_srcdir appropriately in the Makefiles.
  2106. AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2107. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2108. case $enable_ltdl_convenience in
  2109. no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2110. "") enable_ltdl_convenience=yes
  2111. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2112. esac
  2113. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2114. LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2115. # For backwards non-gettext consistent compatibility...
  2116. INCLTDL="$LTDLINCL"
  2117. ])# AC_LIBLTDL_CONVENIENCE
  2118. # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2119. # -----------------------------------
  2120. # sets LIBLTDL to the link flags for the libltdl installable library and
  2121. # LTDLINCL to the include flags for the libltdl header and adds
  2122. # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  2123. # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  2124. # DIRECTORY is not provided and an installed libltdl is not found, it is
  2125. # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  2126. # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  2127. # quotes!). If your package is not flat and you're not using automake,
  2128. # define top_builddir and top_srcdir appropriately in the Makefiles.
  2129. # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2130. AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2131. [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2132. AC_CHECK_LIB(ltdl, lt_dlinit,
  2133. [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2134. [if test x"$enable_ltdl_install" = xno; then
  2135. AC_MSG_WARN([libltdl not installed, but installation disabled])
  2136. else
  2137. enable_ltdl_install=yes
  2138. fi
  2139. ])
  2140. if test x"$enable_ltdl_install" = x"yes"; then
  2141. ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2142. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2143. LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2144. else
  2145. ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2146. LIBLTDL="-lltdl"
  2147. LTDLINCL=
  2148. fi
  2149. # For backwards non-gettext consistent compatibility...
  2150. INCLTDL="$LTDLINCL"
  2151. ])# AC_LIBLTDL_INSTALLABLE
  2152. # AC_LIBTOOL_CXX
  2153. # --------------
  2154. # enable support for C++ libraries
  2155. AC_DEFUN([AC_LIBTOOL_CXX],
  2156. [AC_REQUIRE([_LT_AC_LANG_CXX])
  2157. ])# AC_LIBTOOL_CXX
  2158. # _LT_AC_LANG_CXX
  2159. # ---------------
  2160. AC_DEFUN([_LT_AC_LANG_CXX],
  2161. [AC_REQUIRE([AC_PROG_CXX])
  2162. AC_REQUIRE([AC_PROG_CXXCPP])
  2163. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2164. ])# _LT_AC_LANG_CXX
  2165. # AC_LIBTOOL_F77
  2166. # --------------
  2167. # enable support for Fortran 77 libraries
  2168. AC_DEFUN([AC_LIBTOOL_F77],
  2169. [AC_REQUIRE([_LT_AC_LANG_F77])
  2170. ])# AC_LIBTOOL_F77
  2171. # _LT_AC_LANG_F77
  2172. # ---------------
  2173. AC_DEFUN([_LT_AC_LANG_F77],
  2174. [AC_REQUIRE([AC_PROG_F77])
  2175. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  2176. ])# _LT_AC_LANG_F77
  2177. # AC_LIBTOOL_GCJ
  2178. # --------------
  2179. # enable support for GCJ libraries
  2180. AC_DEFUN([AC_LIBTOOL_GCJ],
  2181. [AC_REQUIRE([_LT_AC_LANG_GCJ])
  2182. ])# AC_LIBTOOL_GCJ
  2183. # _LT_AC_LANG_GCJ
  2184. # ---------------
  2185. AC_DEFUN([_LT_AC_LANG_GCJ],
  2186. [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  2187. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  2188. [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  2189. [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  2190. [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  2191. [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  2192. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  2193. ])# _LT_AC_LANG_GCJ
  2194. # AC_LIBTOOL_RC
  2195. # --------------
  2196. # enable support for Windows resource files
  2197. AC_DEFUN([AC_LIBTOOL_RC],
  2198. [AC_REQUIRE([LT_AC_PROG_RC])
  2199. _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  2200. ])# AC_LIBTOOL_RC
  2201. # AC_LIBTOOL_LANG_C_CONFIG
  2202. # ------------------------
  2203. # Ensure that the configuration vars for the C compiler are
  2204. # suitably defined. Those variables are subsequently used by
  2205. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2206. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2207. AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2208. [lt_save_CC="$CC"
  2209. AC_LANG_PUSH(C)
  2210. # Source file extension for C test sources.
  2211. ac_ext=c
  2212. # Object file extension for compiled C test sources.
  2213. objext=o
  2214. _LT_AC_TAGVAR(objext, $1)=$objext
  2215. # Code to be used in simple compile tests
  2216. lt_simple_compile_test_code="int some_variable = 0;\n"
  2217. # Code to be used in simple link tests
  2218. lt_simple_link_test_code='int main(){return(0);}\n'
  2219. _LT_AC_SYS_COMPILER
  2220. #
  2221. # Check for any special shared library compilation flags.
  2222. #
  2223. _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  2224. if test "$GCC" = no; then
  2225. case $host_os in
  2226. sco3.2v5*)
  2227. _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  2228. ;;
  2229. esac
  2230. fi
  2231. if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  2232. AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  2233. if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  2234. else
  2235. AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  2236. _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  2237. fi
  2238. fi
  2239. #
  2240. # Check to make sure the static flag actually works.
  2241. #
  2242. AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  2243. _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  2244. $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  2245. [],
  2246. [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  2247. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2248. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2249. AC_LIBTOOL_PROG_CC_C_O($1)
  2250. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2251. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2252. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2253. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2254. AC_LIBTOOL_SYS_LIB_STRIP
  2255. AC_LIBTOOL_DLOPEN_SELF($1)
  2256. # Report which librarie types wil actually be built
  2257. AC_MSG_CHECKING([if libtool supports shared libraries])
  2258. AC_MSG_RESULT([$can_build_shared])
  2259. AC_MSG_CHECKING([whether to build shared libraries])
  2260. test "$can_build_shared" = "no" && enable_shared=no
  2261. # On AIX, shared libraries and static libraries use the same namespace, and
  2262. # are all built from PIC.
  2263. case "$host_os" in
  2264. aix3*)
  2265. test "$enable_shared" = yes && enable_static=no
  2266. if test -n "$RANLIB"; then
  2267. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2268. postinstall_cmds='$RANLIB $lib'
  2269. fi
  2270. ;;
  2271. aix4*)
  2272. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2273. test "$enable_shared" = yes && enable_static=no
  2274. fi
  2275. ;;
  2276. darwin* | rhapsody*)
  2277. if test "$GCC" = yes; then
  2278. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2279. case "$host_os" in
  2280. rhapsody* | darwin1.[[012]])
  2281. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  2282. ;;
  2283. *) # Darwin 1.3 on
  2284. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  2285. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  2286. else
  2287. case ${MACOSX_DEPLOYMENT_TARGET} in
  2288. 10.[[012]])
  2289. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  2290. ;;
  2291. 10.*)
  2292. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  2293. ;;
  2294. esac
  2295. fi
  2296. ;;
  2297. esac
  2298. output_verbose_link_cmd='echo'
  2299. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  2300. _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2301. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  2302. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2303. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2304. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2305. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  2306. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2307. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  2308. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2309. else
  2310. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2311. fi
  2312. ;;
  2313. esac
  2314. AC_MSG_RESULT([$enable_shared])
  2315. AC_MSG_CHECKING([whether to build static libraries])
  2316. # Make sure either enable_shared or enable_static is yes.
  2317. test "$enable_shared" = yes || enable_static=yes
  2318. AC_MSG_RESULT([$enable_static])
  2319. AC_LIBTOOL_CONFIG($1)
  2320. AC_LANG_POP
  2321. CC="$lt_save_CC"
  2322. ])# AC_LIBTOOL_LANG_C_CONFIG
  2323. # AC_LIBTOOL_LANG_CXX_CONFIG
  2324. # --------------------------
  2325. # Ensure that the configuration vars for the C compiler are
  2326. # suitably defined. Those variables are subsequently used by
  2327. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2328. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2329. AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2330. [AC_LANG_PUSH(C++)
  2331. AC_REQUIRE([AC_PROG_CXX])
  2332. AC_REQUIRE([AC_PROG_CXXCPP])
  2333. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2334. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2335. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2336. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2337. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2338. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2339. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2340. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2341. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2342. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2343. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2344. _LT_AC_TAGVAR(module_cmds, $1)=
  2345. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2346. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2347. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2348. _LT_AC_TAGVAR(no_undefined_flag, $1)=
  2349. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2350. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2351. # Dependencies to place before and after the object being linked:
  2352. _LT_AC_TAGVAR(predep_objects, $1)=
  2353. _LT_AC_TAGVAR(postdep_objects, $1)=
  2354. _LT_AC_TAGVAR(predeps, $1)=
  2355. _LT_AC_TAGVAR(postdeps, $1)=
  2356. _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2357. # Source file extension for C++ test sources.
  2358. ac_ext=cc
  2359. # Object file extension for compiled C++ test sources.
  2360. objext=o
  2361. _LT_AC_TAGVAR(objext, $1)=$objext
  2362. # Code to be used in simple compile tests
  2363. lt_simple_compile_test_code="int some_variable = 0;\n"
  2364. # Code to be used in simple link tests
  2365. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  2366. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2367. _LT_AC_SYS_COMPILER
  2368. # Allow CC to be a program name with arguments.
  2369. lt_save_CC=$CC
  2370. lt_save_LD=$LD
  2371. lt_save_GCC=$GCC
  2372. GCC=$GXX
  2373. lt_save_with_gnu_ld=$with_gnu_ld
  2374. lt_save_path_LD=$lt_cv_path_LD
  2375. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2376. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2377. else
  2378. unset lt_cv_prog_gnu_ld
  2379. fi
  2380. if test -n "${lt_cv_path_LDCXX+set}"; then
  2381. lt_cv_path_LD=$lt_cv_path_LDCXX
  2382. else
  2383. unset lt_cv_path_LD
  2384. fi
  2385. test -z "${LDCXX+set}" || LD=$LDCXX
  2386. CC=${CXX-"c++"}
  2387. compiler=$CC
  2388. _LT_AC_TAGVAR(compiler, $1)=$CC
  2389. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  2390. # We don't want -fno-exception wen compiling C++ code, so set the
  2391. # no_builtin_flag separately
  2392. if test "$GXX" = yes; then
  2393. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  2394. else
  2395. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  2396. fi
  2397. if test "$GXX" = yes; then
  2398. # Set up default GNU C++ configuration
  2399. AC_PROG_LD
  2400. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  2401. # archiving commands below assume that GNU ld is being used.
  2402. if test "$with_gnu_ld" = yes; then
  2403. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2404. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2405. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  2406. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2407. # If archive_cmds runs LD, not CC, wlarc should be empty
  2408. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  2409. # investigate it a little bit more. (MM)
  2410. wlarc='${wl}'
  2411. # ancient GNU ld didn't support --whole-archive et. al.
  2412. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  2413. grep 'no-whole-archive' > /dev/null; then
  2414. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2415. else
  2416. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2417. fi
  2418. else
  2419. with_gnu_ld=no
  2420. wlarc=
  2421. # A generic and very simple default shared library creation
  2422. # command for GNU C++ for the case where it uses the native
  2423. # linker, instead of GNU ld. If possible, this setting should
  2424. # overridden to take advantage of the native linker features on
  2425. # the platform it is being used on.
  2426. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  2427. fi
  2428. # Commands to make compiler produce verbose output that lists
  2429. # what "hidden" libraries, object files and flags are used when
  2430. # linking a shared library.
  2431. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  2432. else
  2433. GXX=no
  2434. with_gnu_ld=no
  2435. wlarc=
  2436. fi
  2437. # PORTME: fill in a description of your system's C++ link characteristics
  2438. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  2439. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2440. case $host_os in
  2441. aix3*)
  2442. # FIXME: insert proper C++ library support
  2443. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2444. ;;
  2445. aix4* | aix5*)
  2446. if test "$host_cpu" = ia64; then
  2447. # On IA64, the linker does run time linking by default, so we don't
  2448. # have to do anything special.
  2449. aix_use_runtimelinking=no
  2450. exp_sym_flag='-Bexport'
  2451. no_entry_flag=""
  2452. else
  2453. aix_use_runtimelinking=no
  2454. # Test if we are trying to use run time linking or normal
  2455. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  2456. # need to do runtime linking.
  2457. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  2458. for ld_flag in $LDFLAGS; do
  2459. case $ld_flag in
  2460. *-brtl*)
  2461. aix_use_runtimelinking=yes
  2462. break
  2463. ;;
  2464. esac
  2465. done
  2466. esac
  2467. exp_sym_flag='-bexport'
  2468. no_entry_flag='-bnoentry'
  2469. fi
  2470. # When large executables or shared objects are built, AIX ld can
  2471. # have problems creating the table of contents. If linking a library
  2472. # or program results in "error TOC overflow" add -mminimal-toc to
  2473. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  2474. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  2475. _LT_AC_TAGVAR(archive_cmds, $1)=''
  2476. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2477. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  2478. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2479. if test "$GXX" = yes; then
  2480. case $host_os in aix4.[012]|aix4.[012].*)
  2481. # We only want to do this on AIX 4.2 and lower, the check
  2482. # below for broken collect2 doesn't work under 4.3+
  2483. collect2name=`${CC} -print-prog-name=collect2`
  2484. if test -f "$collect2name" && \
  2485. strings "$collect2name" | grep resolve_lib_name >/dev/null
  2486. then
  2487. # We have reworked collect2
  2488. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2489. else
  2490. # We have old collect2
  2491. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  2492. # It fails to find uninstalled libraries when the uninstalled
  2493. # path is not listed in the libpath. Setting hardcode_minus_L
  2494. # to unsupported forces relinking
  2495. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  2496. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2497. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2498. fi
  2499. esac
  2500. shared_flag='-shared'
  2501. else
  2502. # not using gcc
  2503. if test "$host_cpu" = ia64; then
  2504. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  2505. # chokes on -Wl,-G. The following line is correct:
  2506. shared_flag='-G'
  2507. else
  2508. if test "$aix_use_runtimelinking" = yes; then
  2509. shared_flag='${wl}-G'
  2510. else
  2511. shared_flag='${wl}-bM:SRE'
  2512. fi
  2513. fi
  2514. fi
  2515. # It seems that -bexpall does not export symbols beginning with
  2516. # underscore (_), so it is better to generate a list of symbols to export.
  2517. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2518. if test "$aix_use_runtimelinking" = yes; then
  2519. # Warning - without using the other runtime loading flags (-brtl),
  2520. # -berok will link without error, but may produce a broken library.
  2521. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  2522. # Determine the default libpath from the value encoded in an empty executable.
  2523. _LT_AC_SYS_LIBPATH_AIX
  2524. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2525. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  2526. else
  2527. if test "$host_cpu" = ia64; then
  2528. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  2529. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  2530. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  2531. else
  2532. # Determine the default libpath from the value encoded in an empty executable.
  2533. _LT_AC_SYS_LIBPATH_AIX
  2534. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  2535. # Warning - without using the other run time loading flags,
  2536. # -berok will link without error, but may produce a broken library.
  2537. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  2538. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  2539. # -bexpall does not export symbols beginning with underscore (_)
  2540. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  2541. # Exported symbols can be pulled into shared objects from archives
  2542. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  2543. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  2544. # This is similar to how AIX traditionally builds it's shared libraries.
  2545. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  2546. fi
  2547. fi
  2548. ;;
  2549. chorus*)
  2550. case $cc_basename in
  2551. *)
  2552. # FIXME: insert proper C++ library support
  2553. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2554. ;;
  2555. esac
  2556. ;;
  2557. cygwin* | mingw* | pw32*)
  2558. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  2559. # as there is no search path for DLLs.
  2560. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2561. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  2562. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2563. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  2564. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  2565. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  2566. # If the export-symbols file already is a .def file (1st line
  2567. # is EXPORTS), use it as is; otherwise, prepend...
  2568. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  2569. cp $export_symbols $output_objdir/$soname.def;
  2570. else
  2571. echo EXPORTS > $output_objdir/$soname.def;
  2572. cat $export_symbols >> $output_objdir/$soname.def;
  2573. fi~
  2574. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  2575. else
  2576. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2577. fi
  2578. ;;
  2579. darwin* | rhapsody*)
  2580. if test "$GXX" = yes; then
  2581. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2582. case "$host_os" in
  2583. rhapsody* | darwin1.[[012]])
  2584. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  2585. ;;
  2586. *) # Darwin 1.3 on
  2587. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  2588. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  2589. else
  2590. case ${MACOSX_DEPLOYMENT_TARGET} in
  2591. 10.[[012]])
  2592. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  2593. ;;
  2594. 10.*)
  2595. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  2596. ;;
  2597. esac
  2598. fi
  2599. ;;
  2600. esac
  2601. lt_int_apple_cc_single_mod=no
  2602. output_verbose_link_cmd='echo'
  2603. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  2604. lt_int_apple_cc_single_mod=yes
  2605. fi
  2606. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2607. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  2608. else
  2609. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
  2610. fi
  2611. _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  2612. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  2613. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  2614. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2615. else
  2616. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2617. fi
  2618. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2619. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2620. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  2621. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  2622. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  2623. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2624. else
  2625. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2626. fi
  2627. ;;
  2628. dgux*)
  2629. case $cc_basename in
  2630. ec++)
  2631. # FIXME: insert proper C++ library support
  2632. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2633. ;;
  2634. ghcx)
  2635. # Green Hills C++ Compiler
  2636. # FIXME: insert proper C++ library support
  2637. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2638. ;;
  2639. *)
  2640. # FIXME: insert proper C++ library support
  2641. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2642. ;;
  2643. esac
  2644. ;;
  2645. freebsd[12]*)
  2646. # C++ shared libraries reported to be fairly broken before switch to ELF
  2647. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2648. ;;
  2649. freebsd-elf*)
  2650. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2651. ;;
  2652. freebsd* | kfreebsd*-gnu)
  2653. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  2654. # conventions
  2655. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  2656. ;;
  2657. gnu*)
  2658. ;;
  2659. hpux9*)
  2660. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2661. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2662. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2663. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2664. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2665. # but as the default
  2666. # location of the library.
  2667. case $cc_basename in
  2668. CC)
  2669. # FIXME: insert proper C++ library support
  2670. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2671. ;;
  2672. aCC)
  2673. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  2674. # Commands to make compiler produce verbose output that lists
  2675. # what "hidden" libraries, object files and flags are used when
  2676. # linking a shared library.
  2677. #
  2678. # There doesn't appear to be a way to prevent this compiler from
  2679. # explicitly linking system object files so we need to strip them
  2680. # from the output so that they don't get included in the library
  2681. # dependencies.
  2682. 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; echo $list'
  2683. ;;
  2684. *)
  2685. if test "$GXX" = yes; then
  2686. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  2687. else
  2688. # FIXME: insert proper C++ library support
  2689. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2690. fi
  2691. ;;
  2692. esac
  2693. ;;
  2694. hpux10*|hpux11*)
  2695. if test $with_gnu_ld = no; then
  2696. case "$host_cpu" in
  2697. hppa*64*)
  2698. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2699. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  2700. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2701. ;;
  2702. ia64*)
  2703. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2704. ;;
  2705. *)
  2706. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  2707. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2708. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  2709. ;;
  2710. esac
  2711. fi
  2712. case "$host_cpu" in
  2713. hppa*64*)
  2714. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2715. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2716. ;;
  2717. ia64*)
  2718. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2719. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2720. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2721. # but as the default
  2722. # location of the library.
  2723. ;;
  2724. *)
  2725. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2726. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  2727. # but as the default
  2728. # location of the library.
  2729. ;;
  2730. esac
  2731. case $cc_basename in
  2732. CC)
  2733. # FIXME: insert proper C++ library support
  2734. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2735. ;;
  2736. aCC)
  2737. case "$host_cpu" in
  2738. hppa*64*|ia64*)
  2739. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  2740. ;;
  2741. *)
  2742. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2743. ;;
  2744. esac
  2745. # Commands to make compiler produce verbose output that lists
  2746. # what "hidden" libraries, object files and flags are used when
  2747. # linking a shared library.
  2748. #
  2749. # There doesn't appear to be a way to prevent this compiler from
  2750. # explicitly linking system object files so we need to strip them
  2751. # from the output so that they don't get included in the library
  2752. # dependencies.
  2753. 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; echo $list'
  2754. ;;
  2755. *)
  2756. if test "$GXX" = yes; then
  2757. if test $with_gnu_ld = no; then
  2758. case "$host_cpu" in
  2759. ia64*|hppa*64*)
  2760. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  2761. ;;
  2762. *)
  2763. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  2764. ;;
  2765. esac
  2766. fi
  2767. else
  2768. # FIXME: insert proper C++ library support
  2769. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2770. fi
  2771. ;;
  2772. esac
  2773. ;;
  2774. irix5* | irix6*)
  2775. case $cc_basename in
  2776. CC)
  2777. # SGI C++
  2778. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  2779. # Archives containing C++ object files must be created using
  2780. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  2781. # necessary to make sure instantiated templates are included
  2782. # in the archive.
  2783. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  2784. ;;
  2785. *)
  2786. if test "$GXX" = yes; then
  2787. if test "$with_gnu_ld" = no; then
  2788. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  2789. else
  2790. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  2791. fi
  2792. fi
  2793. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  2794. ;;
  2795. esac
  2796. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2797. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2798. ;;
  2799. linux*)
  2800. case $cc_basename in
  2801. KCC)
  2802. # Kuck and Associates, Inc. (KAI) C++ Compiler
  2803. # KCC will only create a shared library if the output file
  2804. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  2805. # to its proper name (with version) after linking.
  2806. _LT_AC_TAGVAR(archive_cmds, $1)='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'
  2807. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
  2808. # Commands to make compiler produce verbose output that lists
  2809. # what "hidden" libraries, object files and flags are used when
  2810. # linking a shared library.
  2811. #
  2812. # There doesn't appear to be a way to prevent this compiler from
  2813. # explicitly linking system object files so we need to strip them
  2814. # from the output so that they don't get included in the library
  2815. # dependencies.
  2816. 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; echo $list'
  2817. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  2818. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2819. # Archives containing C++ object files must be created using
  2820. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  2821. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  2822. ;;
  2823. icpc)
  2824. # Intel C++
  2825. with_gnu_ld=yes
  2826. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2827. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2828. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2829. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2830. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  2831. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  2832. ;;
  2833. cxx)
  2834. # Compaq C++
  2835. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2836. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  2837. runpath_var=LD_RUN_PATH
  2838. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  2839. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2840. # Commands to make compiler produce verbose output that lists
  2841. # what "hidden" libraries, object files and flags are used when
  2842. # linking a shared library.
  2843. #
  2844. # There doesn't appear to be a way to prevent this compiler from
  2845. # explicitly linking system object files so we need to strip them
  2846. # from the output so that they don't get included in the library
  2847. # dependencies.
  2848. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
  2849. ;;
  2850. esac
  2851. ;;
  2852. lynxos*)
  2853. # FIXME: insert proper C++ library support
  2854. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2855. ;;
  2856. m88k*)
  2857. # FIXME: insert proper C++ library support
  2858. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2859. ;;
  2860. mvs*)
  2861. case $cc_basename in
  2862. cxx)
  2863. # FIXME: insert proper C++ library support
  2864. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2865. ;;
  2866. *)
  2867. # FIXME: insert proper C++ library support
  2868. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2869. ;;
  2870. esac
  2871. ;;
  2872. netbsd*)
  2873. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2874. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  2875. wlarc=
  2876. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  2877. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  2878. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  2879. fi
  2880. # Workaround some broken pre-1.5 toolchains
  2881. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  2882. ;;
  2883. osf3*)
  2884. case $cc_basename in
  2885. KCC)
  2886. # Kuck and Associates, Inc. (KAI) C++ Compiler
  2887. # KCC will only create a shared library if the output file
  2888. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  2889. # to its proper name (with version) after linking.
  2890. _LT_AC_TAGVAR(archive_cmds, $1)='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'
  2891. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2892. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2893. # Archives containing C++ object files must be created using
  2894. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  2895. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  2896. ;;
  2897. RCC)
  2898. # Rational C++ 2.4.1
  2899. # FIXME: insert proper C++ library support
  2900. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2901. ;;
  2902. cxx)
  2903. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  2904. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  2905. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2906. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2907. # Commands to make compiler produce verbose output that lists
  2908. # what "hidden" libraries, object files and flags are used when
  2909. # linking a shared library.
  2910. #
  2911. # There doesn't appear to be a way to prevent this compiler from
  2912. # explicitly linking system object files so we need to strip them
  2913. # from the output so that they don't get included in the library
  2914. # dependencies.
  2915. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  2916. ;;
  2917. *)
  2918. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  2919. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  2920. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  2921. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2922. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2923. # Commands to make compiler produce verbose output that lists
  2924. # what "hidden" libraries, object files and flags are used when
  2925. # linking a shared library.
  2926. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  2927. else
  2928. # FIXME: insert proper C++ library support
  2929. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2930. fi
  2931. ;;
  2932. esac
  2933. ;;
  2934. osf4* | osf5*)
  2935. case $cc_basename in
  2936. KCC)
  2937. # Kuck and Associates, Inc. (KAI) C++ Compiler
  2938. # KCC will only create a shared library if the output file
  2939. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  2940. # to its proper name (with version) after linking.
  2941. _LT_AC_TAGVAR(archive_cmds, $1)='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'
  2942. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  2943. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2944. # Archives containing C++ object files must be created using
  2945. # the KAI C++ compiler.
  2946. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  2947. ;;
  2948. RCC)
  2949. # Rational C++ 2.4.1
  2950. # FIXME: insert proper C++ library support
  2951. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2952. ;;
  2953. cxx)
  2954. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  2955. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  2956. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  2957. echo "-hidden">> $lib.exp~
  2958. $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 $objdir/so_locations -o $lib~
  2959. $rm $lib.exp'
  2960. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  2961. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2962. # Commands to make compiler produce verbose output that lists
  2963. # what "hidden" libraries, object files and flags are used when
  2964. # linking a shared library.
  2965. #
  2966. # There doesn't appear to be a way to prevent this compiler from
  2967. # explicitly linking system object files so we need to strip them
  2968. # from the output so that they don't get included in the library
  2969. # dependencies.
  2970. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  2971. ;;
  2972. *)
  2973. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  2974. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  2975. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  2976. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  2977. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  2978. # Commands to make compiler produce verbose output that lists
  2979. # what "hidden" libraries, object files and flags are used when
  2980. # linking a shared library.
  2981. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  2982. else
  2983. # FIXME: insert proper C++ library support
  2984. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2985. fi
  2986. ;;
  2987. esac
  2988. ;;
  2989. psos*)
  2990. # FIXME: insert proper C++ library support
  2991. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2992. ;;
  2993. sco*)
  2994. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2995. case $cc_basename in
  2996. CC)
  2997. # FIXME: insert proper C++ library support
  2998. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  2999. ;;
  3000. *)
  3001. # FIXME: insert proper C++ library support
  3002. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3003. ;;
  3004. esac
  3005. ;;
  3006. sunos4*)
  3007. case $cc_basename in
  3008. CC)
  3009. # Sun C++ 4.x
  3010. # FIXME: insert proper C++ library support
  3011. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3012. ;;
  3013. lcc)
  3014. # Lucid
  3015. # FIXME: insert proper C++ library support
  3016. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3017. ;;
  3018. *)
  3019. # FIXME: insert proper C++ library support
  3020. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3021. ;;
  3022. esac
  3023. ;;
  3024. solaris*)
  3025. case $cc_basename in
  3026. CC)
  3027. # Sun C++ 4.2, 5.x and Centerline C++
  3028. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3029. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3030. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3031. $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3032. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3033. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3034. case $host_os in
  3035. solaris2.[0-5] | solaris2.[0-5].*) ;;
  3036. *)
  3037. # The C++ compiler is used as linker so we must use $wl
  3038. # flag to pass the commands to the underlying system
  3039. # linker.
  3040. # Supported since Solaris 2.6 (maybe 2.5.1?)
  3041. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  3042. ;;
  3043. esac
  3044. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3045. # Commands to make compiler produce verbose output that lists
  3046. # what "hidden" libraries, object files and flags are used when
  3047. # linking a shared library.
  3048. #
  3049. # There doesn't appear to be a way to prevent this compiler from
  3050. # explicitly linking system object files so we need to strip them
  3051. # from the output so that they don't get included in the library
  3052. # dependencies.
  3053. output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  3054. # Archives containing C++ object files must be created using
  3055. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  3056. # necessary to make sure instantiated templates are included
  3057. # in the archive.
  3058. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3059. ;;
  3060. gcx)
  3061. # Green Hills C++ Compiler
  3062. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3063. # The C++ compiler must be used to create the archive.
  3064. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3065. ;;
  3066. *)
  3067. # GNU C++ compiler with Solaris linker
  3068. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3069. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3070. if $CC --version | grep -v '^2\.7' > /dev/null; then
  3071. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3072. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3073. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3074. # Commands to make compiler produce verbose output that lists
  3075. # what "hidden" libraries, object files and flags are used when
  3076. # linking a shared library.
  3077. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3078. else
  3079. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3080. # platform.
  3081. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3082. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3083. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3084. # Commands to make compiler produce verbose output that lists
  3085. # what "hidden" libraries, object files and flags are used when
  3086. # linking a shared library.
  3087. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3088. fi
  3089. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3090. fi
  3091. ;;
  3092. esac
  3093. ;;
  3094. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  3095. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3096. ;;
  3097. tandem*)
  3098. case $cc_basename in
  3099. NCC)
  3100. # NonStop-UX NCC 3.20
  3101. # FIXME: insert proper C++ library support
  3102. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3103. ;;
  3104. *)
  3105. # FIXME: insert proper C++ library support
  3106. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3107. ;;
  3108. esac
  3109. ;;
  3110. vxworks*)
  3111. # FIXME: insert proper C++ library support
  3112. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3113. ;;
  3114. *)
  3115. # FIXME: insert proper C++ library support
  3116. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3117. ;;
  3118. esac
  3119. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3120. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3121. _LT_AC_TAGVAR(GCC, $1)="$GXX"
  3122. _LT_AC_TAGVAR(LD, $1)="$LD"
  3123. AC_LIBTOOL_POSTDEP_PREDEP($1)
  3124. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3125. AC_LIBTOOL_PROG_CC_C_O($1)
  3126. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3127. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3128. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3129. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3130. AC_LIBTOOL_SYS_LIB_STRIP
  3131. AC_LIBTOOL_DLOPEN_SELF($1)
  3132. AC_LIBTOOL_CONFIG($1)
  3133. AC_LANG_POP
  3134. CC=$lt_save_CC
  3135. LDCXX=$LD
  3136. LD=$lt_save_LD
  3137. GCC=$lt_save_GCC
  3138. with_gnu_ldcxx=$with_gnu_ld
  3139. with_gnu_ld=$lt_save_with_gnu_ld
  3140. lt_cv_path_LDCXX=$lt_cv_path_LD
  3141. lt_cv_path_LD=$lt_save_path_LD
  3142. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3143. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3144. ])# AC_LIBTOOL_LANG_CXX_CONFIG
  3145. # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3146. # ------------------------
  3147. # Figure out "hidden" library dependencies from verbose
  3148. # compiler output when linking a shared library.
  3149. # Parse the compiler output and extract the necessary
  3150. # objects, libraries and library flags.
  3151. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  3152. dnl we can't use the lt_simple_compile_test_code here,
  3153. dnl because it contains code intended for an executable,
  3154. dnl not a library. It's possible we should let each
  3155. dnl tag define a new lt_????_link_test_code variable,
  3156. dnl but it's only used here...
  3157. ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3158. int a;
  3159. void foo (void) { a = 0; }
  3160. EOF
  3161. ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3162. class Foo
  3163. {
  3164. public:
  3165. Foo (void) { a = 0; }
  3166. private:
  3167. int a;
  3168. };
  3169. EOF
  3170. ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3171. subroutine foo
  3172. implicit none
  3173. integer*4 a
  3174. a=0
  3175. return
  3176. end
  3177. EOF
  3178. ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3179. public class foo {
  3180. private int a;
  3181. public void bar (void) {
  3182. a = 0;
  3183. }
  3184. };
  3185. EOF
  3186. ])
  3187. dnl Parse the compiler output and extract the necessary
  3188. dnl objects, libraries and library flags.
  3189. if AC_TRY_EVAL(ac_compile); then
  3190. # Parse the compiler output and extract the necessary
  3191. # objects, libraries and library flags.
  3192. # Sentinel used to keep track of whether or not we are before
  3193. # the conftest object file.
  3194. pre_test_object_deps_done=no
  3195. # The `*' in the case matches for architectures that use `case' in
  3196. # $output_verbose_cmd can trigger glob expansion during the loop
  3197. # eval without this substitution.
  3198. output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  3199. for p in `eval $output_verbose_link_cmd`; do
  3200. case $p in
  3201. -L* | -R* | -l*)
  3202. # Some compilers place space between "-{L,R}" and the path.
  3203. # Remove the space.
  3204. if test $p = "-L" \
  3205. || test $p = "-R"; then
  3206. prev=$p
  3207. continue
  3208. else
  3209. prev=
  3210. fi
  3211. if test "$pre_test_object_deps_done" = no; then
  3212. case $p in
  3213. -L* | -R*)
  3214. # Internal compiler library paths should come after those
  3215. # provided the user. The postdeps already come after the
  3216. # user supplied libs so there is no need to process them.
  3217. if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3218. _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3219. else
  3220. _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3221. fi
  3222. ;;
  3223. # The "-l" case would never come before the object being
  3224. # linked, so don't bother handling this case.
  3225. esac
  3226. else
  3227. if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3228. _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3229. else
  3230. _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3231. fi
  3232. fi
  3233. ;;
  3234. *.$objext)
  3235. # This assumes that the test object file only shows up
  3236. # once in the compiler output.
  3237. if test "$p" = "conftest.$objext"; then
  3238. pre_test_object_deps_done=yes
  3239. continue
  3240. fi
  3241. if test "$pre_test_object_deps_done" = no; then
  3242. if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3243. _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3244. else
  3245. _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3246. fi
  3247. else
  3248. if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3249. _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3250. else
  3251. _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3252. fi
  3253. fi
  3254. ;;
  3255. *) ;; # Ignore the rest.
  3256. esac
  3257. done
  3258. # Clean up.
  3259. rm -f a.out a.exe
  3260. else
  3261. echo "libtool.m4: error: problem compiling $1 test program"
  3262. fi
  3263. $rm -f confest.$objext
  3264. case " $_LT_AC_TAGVAR(postdeps, $1) " in
  3265. *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  3266. esac
  3267. ])# AC_LIBTOOL_POSTDEP_PREDEP
  3268. # AC_LIBTOOL_LANG_F77_CONFIG
  3269. # ------------------------
  3270. # Ensure that the configuration vars for the C compiler are
  3271. # suitably defined. Those variables are subsequently used by
  3272. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3273. AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  3274. AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  3275. [AC_REQUIRE([AC_PROG_F77])
  3276. AC_LANG_PUSH(Fortran 77)
  3277. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3278. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3279. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3280. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3281. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3282. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3283. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3284. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3285. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3286. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3287. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3288. _LT_AC_TAGVAR(module_cmds, $1)=
  3289. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3290. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3291. _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3292. _LT_AC_TAGVAR(no_undefined_flag, $1)=
  3293. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3294. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3295. # Source file extension for f77 test sources.
  3296. ac_ext=f
  3297. # Object file extension for compiled f77 test sources.
  3298. objext=o
  3299. _LT_AC_TAGVAR(objext, $1)=$objext
  3300. # Code to be used in simple compile tests
  3301. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  3302. # Code to be used in simple link tests
  3303. lt_simple_link_test_code=" program t\n end\n"
  3304. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3305. _LT_AC_SYS_COMPILER
  3306. # Allow CC to be a program name with arguments.
  3307. lt_save_CC="$CC"
  3308. CC=${F77-"f77"}
  3309. compiler=$CC
  3310. _LT_AC_TAGVAR(compiler, $1)=$CC
  3311. cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  3312. AC_MSG_CHECKING([if libtool supports shared libraries])
  3313. AC_MSG_RESULT([$can_build_shared])
  3314. AC_MSG_CHECKING([whether to build shared libraries])
  3315. test "$can_build_shared" = "no" && enable_shared=no
  3316. # On AIX, shared libraries and static libraries use the same namespace, and
  3317. # are all built from PIC.
  3318. case "$host_os" in
  3319. aix3*)
  3320. test "$enable_shared" = yes && enable_static=no
  3321. if test -n "$RANLIB"; then
  3322. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3323. postinstall_cmds='$RANLIB $lib'
  3324. fi
  3325. ;;
  3326. aix4*)
  3327. test "$enable_shared" = yes && enable_static=no
  3328. ;;
  3329. esac
  3330. AC_MSG_RESULT([$enable_shared])
  3331. AC_MSG_CHECKING([whether to build static libraries])
  3332. # Make sure either enable_shared or enable_static is yes.
  3333. test "$enable_shared" = yes || enable_static=yes
  3334. AC_MSG_RESULT([$enable_static])
  3335. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3336. _LT_AC_TAGVAR(GCC, $1)="$G77"
  3337. _LT_AC_TAGVAR(LD, $1)="$LD"
  3338. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3339. AC_LIBTOOL_PROG_CC_C_O($1)
  3340. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3341. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3342. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3343. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3344. AC_LIBTOOL_SYS_LIB_STRIP
  3345. AC_LIBTOOL_CONFIG($1)
  3346. AC_LANG_POP
  3347. CC="$lt_save_CC"
  3348. ])# AC_LIBTOOL_LANG_F77_CONFIG
  3349. # AC_LIBTOOL_LANG_GCJ_CONFIG
  3350. # --------------------------
  3351. # Ensure that the configuration vars for the C compiler are
  3352. # suitably defined. Those variables are subsequently used by
  3353. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3354. AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  3355. AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  3356. [AC_LANG_SAVE
  3357. # Source file extension for Java test sources.
  3358. ac_ext=java
  3359. # Object file extension for compiled Java test sources.
  3360. objext=o
  3361. _LT_AC_TAGVAR(objext, $1)=$objext
  3362. # Code to be used in simple compile tests
  3363. lt_simple_compile_test_code="class foo {}\n"
  3364. # Code to be used in simple link tests
  3365. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  3366. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3367. _LT_AC_SYS_COMPILER
  3368. # Allow CC to be a program name with arguments.
  3369. lt_save_CC="$CC"
  3370. CC=${GCJ-"gcj"}
  3371. compiler=$CC
  3372. _LT_AC_TAGVAR(compiler, $1)=$CC
  3373. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  3374. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3375. AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3376. AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3377. AC_LIBTOOL_PROG_CC_C_O($1)
  3378. AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3379. AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3380. AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3381. AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3382. AC_LIBTOOL_SYS_LIB_STRIP
  3383. AC_LIBTOOL_DLOPEN_SELF($1)
  3384. AC_LIBTOOL_CONFIG($1)
  3385. AC_LANG_RESTORE
  3386. CC="$lt_save_CC"
  3387. ])# AC_LIBTOOL_LANG_GCJ_CONFIG
  3388. # AC_LIBTOOL_LANG_RC_CONFIG
  3389. # --------------------------
  3390. # Ensure that the configuration vars for the Windows resource compiler are
  3391. # suitably defined. Those variables are subsequently used by
  3392. # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3393. AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  3394. AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  3395. [AC_LANG_SAVE
  3396. # Source file extension for RC test sources.
  3397. ac_ext=rc
  3398. # Object file extension for compiled RC test sources.
  3399. objext=o
  3400. _LT_AC_TAGVAR(objext, $1)=$objext
  3401. # Code to be used in simple compile tests
  3402. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  3403. # Code to be used in simple link tests
  3404. lt_simple_link_test_code="$lt_simple_compile_test_code"
  3405. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3406. _LT_AC_SYS_COMPILER
  3407. # Allow CC to be a program name with arguments.
  3408. lt_save_CC="$CC"
  3409. CC=${RC-"windres"}
  3410. compiler=$CC
  3411. _LT_AC_TAGVAR(compiler, $1)=$CC
  3412. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3413. AC_LIBTOOL_CONFIG($1)
  3414. AC_LANG_RESTORE
  3415. CC="$lt_save_CC"
  3416. ])# AC_LIBTOOL_LANG_RC_CONFIG
  3417. # AC_LIBTOOL_CONFIG([TAGNAME])
  3418. # ----------------------------
  3419. # If TAGNAME is not passed, then create an initial libtool script
  3420. # with a default configuration from the untagged config vars. Otherwise
  3421. # add code to config.status for appending the configuration named by
  3422. # TAGNAME from the matching tagged config vars.
  3423. AC_DEFUN([AC_LIBTOOL_CONFIG],
  3424. [# The else clause should only fire when bootstrapping the
  3425. # libtool distribution, otherwise you forgot to ship ltmain.sh
  3426. # with your package, and you will get complaints that there are
  3427. # no rules to generate ltmain.sh.
  3428. if test -f "$ltmain"; then
  3429. # See if we are running on zsh, and set the options which allow our commands through
  3430. # without removal of \ escapes.
  3431. if test -n "${ZSH_VERSION+set}" ; then
  3432. setopt NO_GLOB_SUBST
  3433. fi
  3434. # Now quote all the things that may contain metacharacters while being
  3435. # careful not to overquote the AC_SUBSTed values. We take copies of the
  3436. # variables and quote the copies for generation of the libtool script.
  3437. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  3438. SED SHELL STRIP \
  3439. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  3440. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  3441. deplibs_check_method reload_flag reload_cmds need_locks \
  3442. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  3443. lt_cv_sys_global_symbol_to_c_name_address \
  3444. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  3445. old_postinstall_cmds old_postuninstall_cmds \
  3446. _LT_AC_TAGVAR(compiler, $1) \
  3447. _LT_AC_TAGVAR(CC, $1) \
  3448. _LT_AC_TAGVAR(LD, $1) \
  3449. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  3450. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  3451. _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  3452. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  3453. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  3454. _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  3455. _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  3456. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  3457. _LT_AC_TAGVAR(old_archive_cmds, $1) \
  3458. _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  3459. _LT_AC_TAGVAR(predep_objects, $1) \
  3460. _LT_AC_TAGVAR(postdep_objects, $1) \
  3461. _LT_AC_TAGVAR(predeps, $1) \
  3462. _LT_AC_TAGVAR(postdeps, $1) \
  3463. _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  3464. _LT_AC_TAGVAR(archive_cmds, $1) \
  3465. _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  3466. _LT_AC_TAGVAR(postinstall_cmds, $1) \
  3467. _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  3468. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  3469. _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  3470. _LT_AC_TAGVAR(no_undefined_flag, $1) \
  3471. _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  3472. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  3473. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  3474. _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  3475. _LT_AC_TAGVAR(hardcode_automatic, $1) \
  3476. _LT_AC_TAGVAR(module_cmds, $1) \
  3477. _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  3478. _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  3479. _LT_AC_TAGVAR(exclude_expsyms, $1) \
  3480. _LT_AC_TAGVAR(include_expsyms, $1); do
  3481. case $var in
  3482. _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  3483. _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  3484. _LT_AC_TAGVAR(archive_cmds, $1) | \
  3485. _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  3486. _LT_AC_TAGVAR(module_cmds, $1) | \
  3487. _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  3488. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  3489. _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  3490. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  3491. postinstall_cmds | postuninstall_cmds | \
  3492. old_postinstall_cmds | old_postuninstall_cmds | \
  3493. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  3494. # Double-quote double-evaled strings.
  3495. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  3496. ;;
  3497. *)
  3498. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  3499. ;;
  3500. esac
  3501. done
  3502. case $lt_echo in
  3503. *'\[$]0 --fallback-echo"')
  3504. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  3505. ;;
  3506. esac
  3507. ifelse([$1], [],
  3508. [cfgfile="${ofile}T"
  3509. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  3510. $rm -f "$cfgfile"
  3511. AC_MSG_NOTICE([creating $ofile])],
  3512. [cfgfile="$ofile"])
  3513. cat <<__EOF__ >> "$cfgfile"
  3514. ifelse([$1], [],
  3515. [#! $SHELL
  3516. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  3517. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  3518. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  3519. #
  3520. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  3521. # Free Software Foundation, Inc.
  3522. #
  3523. # This file is part of GNU Libtool:
  3524. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  3525. #
  3526. # This program is free software; you can redistribute it and/or modify
  3527. # it under the terms of the GNU General Public License as published by
  3528. # the Free Software Foundation; either version 2 of the License, or
  3529. # (at your option) any later version.
  3530. #
  3531. # This program is distributed in the hope that it will be useful, but
  3532. # WITHOUT ANY WARRANTY; without even the implied warranty of
  3533. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  3534. # General Public License for more details.
  3535. #
  3536. # You should have received a copy of the GNU General Public License
  3537. # along with this program; if not, write to the Free Software
  3538. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  3539. #
  3540. # As a special exception to the GNU General Public License, if you
  3541. # distribute this file as part of a program that contains a
  3542. # configuration script generated by Autoconf, you may include it under
  3543. # the same distribution terms that you use for the rest of that program.
  3544. # A sed program that does not truncate output.
  3545. SED=$lt_SED
  3546. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  3547. Xsed="$SED -e s/^X//"
  3548. # The HP-UX ksh and POSIX shell print the target directory to stdout
  3549. # if CDPATH is set.
  3550. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  3551. # The names of the tagged configurations supported by this script.
  3552. available_tags=
  3553. # ### BEGIN LIBTOOL CONFIG],
  3554. [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  3555. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3556. # Shell to use when invoking shell scripts.
  3557. SHELL=$lt_SHELL
  3558. # Whether or not to build shared libraries.
  3559. build_libtool_libs=$enable_shared
  3560. # Whether or not to build static libraries.
  3561. build_old_libs=$enable_static
  3562. # Whether or not to add -lc for building shared libraries.
  3563. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  3564. # Whether or not to disallow shared libs when runtime libs are static
  3565. allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  3566. # Whether or not to optimize for fast installation.
  3567. fast_install=$enable_fast_install
  3568. # The host system.
  3569. host_alias=$host_alias
  3570. host=$host
  3571. # An echo program that does not interpret backslashes.
  3572. echo=$lt_echo
  3573. # The archiver.
  3574. AR=$lt_AR
  3575. AR_FLAGS=$lt_AR_FLAGS
  3576. # A C compiler.
  3577. LTCC=$lt_LTCC
  3578. # A language-specific compiler.
  3579. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  3580. # Is the compiler the GNU C compiler?
  3581. with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  3582. # An ERE matcher.
  3583. EGREP=$lt_EGREP
  3584. # The linker used to build libraries.
  3585. LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  3586. # Whether we need hard or soft links.
  3587. LN_S=$lt_LN_S
  3588. # A BSD-compatible nm program.
  3589. NM=$lt_NM
  3590. # A symbol stripping program
  3591. STRIP=$lt_STRIP
  3592. # Used to examine libraries when file_magic_cmd begins "file"
  3593. MAGIC_CMD=$MAGIC_CMD
  3594. # Used on cygwin: DLL creation program.
  3595. DLLTOOL="$DLLTOOL"
  3596. # Used on cygwin: object dumper.
  3597. OBJDUMP="$OBJDUMP"
  3598. # Used on cygwin: assembler.
  3599. AS="$AS"
  3600. # The name of the directory that contains temporary libtool files.
  3601. objdir=$objdir
  3602. # How to create reloadable object files.
  3603. reload_flag=$lt_reload_flag
  3604. reload_cmds=$lt_reload_cmds
  3605. # How to pass a linker flag through the compiler.
  3606. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  3607. # Object file suffix (normally "o").
  3608. objext="$ac_objext"
  3609. # Old archive suffix (normally "a").
  3610. libext="$libext"
  3611. # Shared library suffix (normally ".so").
  3612. shrext='$shrext'
  3613. # Executable file suffix (normally "").
  3614. exeext="$exeext"
  3615. # Additional compiler flags for building library objects.
  3616. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  3617. pic_mode=$pic_mode
  3618. # What is the maximum length of a command?
  3619. max_cmd_len=$lt_cv_sys_max_cmd_len
  3620. # Does compiler simultaneously support -c and -o options?
  3621. compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  3622. # Must we lock files when doing compilation ?
  3623. need_locks=$lt_need_locks
  3624. # Do we need the lib prefix for modules?
  3625. need_lib_prefix=$need_lib_prefix
  3626. # Do we need a version for libraries?
  3627. need_version=$need_version
  3628. # Whether dlopen is supported.
  3629. dlopen_support=$enable_dlopen
  3630. # Whether dlopen of programs is supported.
  3631. dlopen_self=$enable_dlopen_self
  3632. # Whether dlopen of statically linked programs is supported.
  3633. dlopen_self_static=$enable_dlopen_self_static
  3634. # Compiler flag to prevent dynamic linking.
  3635. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  3636. # Compiler flag to turn off builtin functions.
  3637. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  3638. # Compiler flag to allow reflexive dlopens.
  3639. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  3640. # Compiler flag to generate shared objects directly from archives.
  3641. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  3642. # Compiler flag to generate thread-safe objects.
  3643. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  3644. # Library versioning type.
  3645. version_type=$version_type
  3646. # Format of library name prefix.
  3647. libname_spec=$lt_libname_spec
  3648. # List of archive names. First name is the real one, the rest are links.
  3649. # The last name is the one that the linker finds with -lNAME.
  3650. library_names_spec=$lt_library_names_spec
  3651. # The coded name of the library, if different from the real name.
  3652. soname_spec=$lt_soname_spec
  3653. # Commands used to build and install an old-style archive.
  3654. RANLIB=$lt_RANLIB
  3655. old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  3656. old_postinstall_cmds=$lt_old_postinstall_cmds
  3657. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  3658. # Create an old-style archive from a shared archive.
  3659. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  3660. # Create a temporary old-style archive to link instead of a shared archive.
  3661. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  3662. # Commands used to build and install a shared archive.
  3663. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  3664. archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  3665. postinstall_cmds=$lt_postinstall_cmds
  3666. postuninstall_cmds=$lt_postuninstall_cmds
  3667. # Commands used to build a loadable module (assumed same as above if empty)
  3668. module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  3669. module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  3670. # Commands to strip libraries.
  3671. old_striplib=$lt_old_striplib
  3672. striplib=$lt_striplib
  3673. # Dependencies to place before the objects being linked to create a
  3674. # shared library.
  3675. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  3676. # Dependencies to place after the objects being linked to create a
  3677. # shared library.
  3678. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  3679. # Dependencies to place before the objects being linked to create a
  3680. # shared library.
  3681. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  3682. # Dependencies to place after the objects being linked to create a
  3683. # shared library.
  3684. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  3685. # The library search path used internally by the compiler when linking
  3686. # a shared library.
  3687. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  3688. # Method to check whether dependent libraries are shared objects.
  3689. deplibs_check_method=$lt_deplibs_check_method
  3690. # Command to use when deplibs_check_method == file_magic.
  3691. file_magic_cmd=$lt_file_magic_cmd
  3692. # Flag that allows shared libraries with undefined symbols to be built.
  3693. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  3694. # Flag that forces no undefined symbols.
  3695. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  3696. # Commands used to finish a libtool library installation in a directory.
  3697. finish_cmds=$lt_finish_cmds
  3698. # Same as above, but a single script fragment to be evaled but not shown.
  3699. finish_eval=$lt_finish_eval
  3700. # Take the output of nm and produce a listing of raw symbols and C names.
  3701. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  3702. # Transform the output of nm in a proper C declaration
  3703. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  3704. # Transform the output of nm in a C name address pair
  3705. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  3706. # This is the shared library runtime path variable.
  3707. runpath_var=$runpath_var
  3708. # This is the shared library path variable.
  3709. shlibpath_var=$shlibpath_var
  3710. # Is shlibpath searched before the hard-coded library search path?
  3711. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  3712. # How to hardcode a shared library path into an executable.
  3713. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  3714. # Whether we should hardcode library paths into libraries.
  3715. hardcode_into_libs=$hardcode_into_libs
  3716. # Flag to hardcode \$libdir into a binary during linking.
  3717. # This must work even if \$libdir does not exist.
  3718. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  3719. # If ld is used when linking, flag to hardcode \$libdir into
  3720. # a binary during linking. This must work even if \$libdir does
  3721. # not exist.
  3722. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  3723. # Whether we need a single -rpath flag with a separated argument.
  3724. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  3725. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  3726. # resulting binary.
  3727. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  3728. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  3729. # resulting binary.
  3730. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  3731. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  3732. # the resulting binary.
  3733. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  3734. # Set to yes if building a shared library automatically hardcodes DIR into the library
  3735. # and all subsequent libraries and executables linked against it.
  3736. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  3737. # Variables whose values should be saved in libtool wrapper scripts and
  3738. # restored at relink time.
  3739. variables_saved_for_relink="$variables_saved_for_relink"
  3740. # Whether libtool must link a program against all its dependency libraries.
  3741. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  3742. # Compile-time system search path for libraries
  3743. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  3744. # Run-time system search path for libraries
  3745. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  3746. # Fix the shell variable \$srcfile for the compiler.
  3747. fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  3748. # Set to yes if exported symbols are required.
  3749. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  3750. # The commands to list exported symbols.
  3751. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  3752. # The commands to extract the exported symbol list from a shared archive.
  3753. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  3754. # Symbols that should not be listed in the preloaded symbols.
  3755. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  3756. # Symbols that must always be exported.
  3757. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  3758. ifelse([$1],[],
  3759. [# ### END LIBTOOL CONFIG],
  3760. [# ### END LIBTOOL TAG CONFIG: $tagname])
  3761. __EOF__
  3762. ifelse([$1],[], [
  3763. case $host_os in
  3764. aix3*)
  3765. cat <<\EOF >> "$cfgfile"
  3766. # AIX sometimes has problems with the GCC collect2 program. For some
  3767. # reason, if we set the COLLECT_NAMES environment variable, the problems
  3768. # vanish in a puff of smoke.
  3769. if test "X${COLLECT_NAMES+set}" != Xset; then
  3770. COLLECT_NAMES=
  3771. export COLLECT_NAMES
  3772. fi
  3773. EOF
  3774. ;;
  3775. esac
  3776. # We use sed instead of cat because bash on DJGPP gets confused if
  3777. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  3778. # text mode, it properly converts lines to CR/LF. This bash problem
  3779. # is reportedly fixed, but why not run on old versions too?
  3780. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  3781. mv -f "$cfgfile" "$ofile" || \
  3782. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  3783. chmod +x "$ofile"
  3784. ])
  3785. else
  3786. # If there is no Makefile yet, we rely on a make rule to execute
  3787. # `config.status --recheck' to rerun these tests and create the
  3788. # libtool script then.
  3789. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  3790. if test -f "$ltmain_in"; then
  3791. test -f Makefile && make "$ltmain"
  3792. fi
  3793. fi
  3794. ])# AC_LIBTOOL_CONFIG
  3795. # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  3796. # -------------------------------------------
  3797. AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  3798. [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  3799. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3800. if test "$GCC" = yes; then
  3801. _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3802. AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3803. lt_cv_prog_compiler_rtti_exceptions,
  3804. [-fno-rtti -fno-exceptions], [],
  3805. [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3806. fi
  3807. ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  3808. # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  3809. # ---------------------------------
  3810. AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  3811. [AC_REQUIRE([AC_CANONICAL_HOST])
  3812. AC_REQUIRE([AC_PROG_NM])
  3813. AC_REQUIRE([AC_OBJEXT])
  3814. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3815. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3816. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3817. [
  3818. # These are sane defaults that work on at least a few old systems.
  3819. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3820. # Character class describing NM global symbol codes.
  3821. symcode='[[BCDEGRST]]'
  3822. # Regexp to match symbols that can be accessed directly from C.
  3823. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3824. # Transform the above into a raw symbol and a C symbol.
  3825. symxfrm='\1 \2\3 \3'
  3826. # Transform an extracted symbol line into a proper C declaration
  3827. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  3828. # Transform an extracted symbol line into symbol name and symbol address
  3829. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  3830. # Define system-specific variables.
  3831. case $host_os in
  3832. aix*)
  3833. symcode='[[BCDT]]'
  3834. ;;
  3835. cygwin* | mingw* | pw32*)
  3836. symcode='[[ABCDGISTW]]'
  3837. ;;
  3838. hpux*) # Its linker distinguishes data from code symbols
  3839. if test "$host_cpu" = ia64; then
  3840. symcode='[[ABCDEGRST]]'
  3841. fi
  3842. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3843. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  3844. ;;
  3845. irix* | nonstopux*)
  3846. symcode='[[BCDEGRST]]'
  3847. ;;
  3848. osf*)
  3849. symcode='[[BCDEGQRST]]'
  3850. ;;
  3851. solaris* | sysv5*)
  3852. symcode='[[BDRT]]'
  3853. ;;
  3854. sysv4)
  3855. symcode='[[DFNSTU]]'
  3856. ;;
  3857. esac
  3858. # Handle CRLF in mingw tool chain
  3859. opt_cr=
  3860. case $build_os in
  3861. mingw*)
  3862. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3863. ;;
  3864. esac
  3865. # If we're using GNU nm, then use its standard symbol codes.
  3866. case `$NM -V 2>&1` in
  3867. *GNU* | *'with BFD'*)
  3868. symcode='[[ABCDGIRSTW]]' ;;
  3869. esac
  3870. # Try without a prefix undercore, then with it.
  3871. for ac_symprfx in "" "_"; do
  3872. # Write the raw and C identifiers.
  3873. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  3874. # Check to see that the pipe works correctly.
  3875. pipe_works=no
  3876. rm -f conftest*
  3877. cat > conftest.$ac_ext <<EOF
  3878. #ifdef __cplusplus
  3879. extern "C" {
  3880. #endif
  3881. char nm_test_var;
  3882. void nm_test_func(){}
  3883. #ifdef __cplusplus
  3884. }
  3885. #endif
  3886. int main(){nm_test_var='a';nm_test_func();return(0);}
  3887. EOF
  3888. if AC_TRY_EVAL(ac_compile); then
  3889. # Now try to grab the symbols.
  3890. nlist=conftest.nm
  3891. if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3892. # Try sorting and uniquifying the output.
  3893. if sort "$nlist" | uniq > "$nlist"T; then
  3894. mv -f "$nlist"T "$nlist"
  3895. else
  3896. rm -f "$nlist"T
  3897. fi
  3898. # Make sure that we snagged all the symbols we need.
  3899. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  3900. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  3901. cat <<EOF > conftest.$ac_ext
  3902. #ifdef __cplusplus
  3903. extern "C" {
  3904. #endif
  3905. EOF
  3906. # Now generate the symbol file.
  3907. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  3908. cat <<EOF >> conftest.$ac_ext
  3909. #if defined (__STDC__) && __STDC__
  3910. # define lt_ptr_t void *
  3911. #else
  3912. # define lt_ptr_t char *
  3913. # define const
  3914. #endif
  3915. /* The mapping between symbol names and symbols. */
  3916. const struct {
  3917. const char *name;
  3918. lt_ptr_t address;
  3919. }
  3920. lt_preloaded_symbols[[]] =
  3921. {
  3922. EOF
  3923. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  3924. cat <<\EOF >> conftest.$ac_ext
  3925. {0, (lt_ptr_t) 0}
  3926. };
  3927. #ifdef __cplusplus
  3928. }
  3929. #endif
  3930. EOF
  3931. # Now try linking the two files.
  3932. mv conftest.$ac_objext conftstm.$ac_objext
  3933. lt_save_LIBS="$LIBS"
  3934. lt_save_CFLAGS="$CFLAGS"
  3935. LIBS="conftstm.$ac_objext"
  3936. CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3937. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3938. pipe_works=yes
  3939. fi
  3940. LIBS="$lt_save_LIBS"
  3941. CFLAGS="$lt_save_CFLAGS"
  3942. else
  3943. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3944. fi
  3945. else
  3946. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3947. fi
  3948. else
  3949. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3950. fi
  3951. else
  3952. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3953. cat conftest.$ac_ext >&5
  3954. fi
  3955. rm -f conftest* conftst*
  3956. # Do not use the global_symbol_pipe unless it works.
  3957. if test "$pipe_works" = yes; then
  3958. break
  3959. else
  3960. lt_cv_sys_global_symbol_pipe=
  3961. fi
  3962. done
  3963. ])
  3964. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3965. lt_cv_sys_global_symbol_to_cdecl=
  3966. fi
  3967. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3968. AC_MSG_RESULT(failed)
  3969. else
  3970. AC_MSG_RESULT(ok)
  3971. fi
  3972. ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  3973. # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  3974. # ---------------------------------------
  3975. AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  3976. [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  3977. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  3978. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  3979. AC_MSG_CHECKING([for $compiler option to produce PIC])
  3980. ifelse([$1],[CXX],[
  3981. # C++ specific cases for pic, static, wl, etc.
  3982. if test "$GXX" = yes; then
  3983. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3984. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3985. case $host_os in
  3986. aix*)
  3987. # All AIX code is PIC.
  3988. if test "$host_cpu" = ia64; then
  3989. # AIX 5 now supports IA64 processor
  3990. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3991. fi
  3992. ;;
  3993. amigaos*)
  3994. # FIXME: we need at least 68020 code to build shared libraries, but
  3995. # adding the `-m68020' flag to GCC prevents building anything better,
  3996. # like `-m68040'.
  3997. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3998. ;;
  3999. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4000. # PIC is the default for these OSes.
  4001. ;;
  4002. mingw* | os2* | pw32*)
  4003. # This hack is so that the source file can tell whether it is being
  4004. # built for inclusion in a dll (and should export symbols for example).
  4005. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4006. ;;
  4007. darwin* | rhapsody*)
  4008. # PIC is the default on this platform
  4009. # Common symbols not allowed in MH_DYLIB files
  4010. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4011. ;;
  4012. *djgpp*)
  4013. # DJGPP does not support shared libraries at all
  4014. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4015. ;;
  4016. sysv4*MP*)
  4017. if test -d /usr/nec; then
  4018. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4019. fi
  4020. ;;
  4021. hpux*)
  4022. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4023. # not for PA HP-UX.
  4024. case "$host_cpu" in
  4025. hppa*64*|ia64*)
  4026. ;;
  4027. *)
  4028. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4029. ;;
  4030. esac
  4031. ;;
  4032. *)
  4033. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4034. ;;
  4035. esac
  4036. else
  4037. case $host_os in
  4038. aix4* | aix5*)
  4039. # All AIX code is PIC.
  4040. if test "$host_cpu" = ia64; then
  4041. # AIX 5 now supports IA64 processor
  4042. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4043. else
  4044. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4045. fi
  4046. ;;
  4047. chorus*)
  4048. case $cc_basename in
  4049. cxch68)
  4050. # Green Hills C++ Compiler
  4051. # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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"
  4052. ;;
  4053. esac
  4054. ;;
  4055. dgux*)
  4056. case $cc_basename in
  4057. ec++)
  4058. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4059. ;;
  4060. ghcx)
  4061. # Green Hills C++ Compiler
  4062. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4063. ;;
  4064. *)
  4065. ;;
  4066. esac
  4067. ;;
  4068. freebsd* | kfreebsd*-gnu)
  4069. # FreeBSD uses GNU C++
  4070. ;;
  4071. hpux9* | hpux10* | hpux11*)
  4072. case $cc_basename in
  4073. CC)
  4074. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4075. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  4076. if test "$host_cpu" != ia64; then
  4077. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4078. fi
  4079. ;;
  4080. aCC)
  4081. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4082. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  4083. case "$host_cpu" in
  4084. hppa*64*|ia64*)
  4085. # +Z the default
  4086. ;;
  4087. *)
  4088. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4089. ;;
  4090. esac
  4091. ;;
  4092. *)
  4093. ;;
  4094. esac
  4095. ;;
  4096. irix5* | irix6* | nonstopux*)
  4097. case $cc_basename in
  4098. CC)
  4099. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4100. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4101. # CC pic flag -KPIC is the default.
  4102. ;;
  4103. *)
  4104. ;;
  4105. esac
  4106. ;;
  4107. linux*)
  4108. case $cc_basename in
  4109. KCC)
  4110. # KAI C++ Compiler
  4111. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4112. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4113. ;;
  4114. icpc)
  4115. # Intel C++
  4116. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4117. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4118. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4119. ;;
  4120. cxx)
  4121. # Compaq C++
  4122. # Make sure the PIC flag is empty. It appears that all Alpha
  4123. # Linux and Compaq Tru64 Unix objects are PIC.
  4124. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4125. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4126. ;;
  4127. *)
  4128. ;;
  4129. esac
  4130. ;;
  4131. lynxos*)
  4132. ;;
  4133. m88k*)
  4134. ;;
  4135. mvs*)
  4136. case $cc_basename in
  4137. cxx)
  4138. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4139. ;;
  4140. *)
  4141. ;;
  4142. esac
  4143. ;;
  4144. netbsd*)
  4145. ;;
  4146. osf3* | osf4* | osf5*)
  4147. case $cc_basename in
  4148. KCC)
  4149. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4150. ;;
  4151. RCC)
  4152. # Rational C++ 2.4.1
  4153. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4154. ;;
  4155. cxx)
  4156. # Digital/Compaq C++
  4157. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4158. # Make sure the PIC flag is empty. It appears that all Alpha
  4159. # Linux and Compaq Tru64 Unix objects are PIC.
  4160. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4161. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4162. ;;
  4163. *)
  4164. ;;
  4165. esac
  4166. ;;
  4167. psos*)
  4168. ;;
  4169. sco*)
  4170. case $cc_basename in
  4171. CC)
  4172. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4173. ;;
  4174. *)
  4175. ;;
  4176. esac
  4177. ;;
  4178. solaris*)
  4179. case $cc_basename in
  4180. CC)
  4181. # Sun C++ 4.2, 5.x and Centerline C++
  4182. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4183. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4184. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4185. ;;
  4186. gcx)
  4187. # Green Hills C++ Compiler
  4188. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4189. ;;
  4190. *)
  4191. ;;
  4192. esac
  4193. ;;
  4194. sunos4*)
  4195. case $cc_basename in
  4196. CC)
  4197. # Sun C++ 4.x
  4198. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4199. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4200. ;;
  4201. lcc)
  4202. # Lucid
  4203. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4204. ;;
  4205. *)
  4206. ;;
  4207. esac
  4208. ;;
  4209. tandem*)
  4210. case $cc_basename in
  4211. NCC)
  4212. # NonStop-UX NCC 3.20
  4213. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4214. ;;
  4215. *)
  4216. ;;
  4217. esac
  4218. ;;
  4219. unixware*)
  4220. ;;
  4221. vxworks*)
  4222. ;;
  4223. *)
  4224. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4225. ;;
  4226. esac
  4227. fi
  4228. ],
  4229. [
  4230. if test "$GCC" = yes; then
  4231. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4232. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4233. case $host_os in
  4234. aix*)
  4235. # All AIX code is PIC.
  4236. if test "$host_cpu" = ia64; then
  4237. # AIX 5 now supports IA64 processor
  4238. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4239. fi
  4240. ;;
  4241. amigaos*)
  4242. # FIXME: we need at least 68020 code to build shared libraries, but
  4243. # adding the `-m68020' flag to GCC prevents building anything better,
  4244. # like `-m68040'.
  4245. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4246. ;;
  4247. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4248. # PIC is the default for these OSes.
  4249. ;;
  4250. mingw* | pw32* | os2*)
  4251. # This hack is so that the source file can tell whether it is being
  4252. # built for inclusion in a dll (and should export symbols for example).
  4253. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4254. ;;
  4255. darwin* | rhapsody*)
  4256. # PIC is the default on this platform
  4257. # Common symbols not allowed in MH_DYLIB files
  4258. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4259. ;;
  4260. msdosdjgpp*)
  4261. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4262. # on systems that don't support them.
  4263. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4264. enable_shared=no
  4265. ;;
  4266. sysv4*MP*)
  4267. if test -d /usr/nec; then
  4268. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4269. fi
  4270. ;;
  4271. hpux*)
  4272. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4273. # not for PA HP-UX.
  4274. case "$host_cpu" in
  4275. hppa*64*|ia64*)
  4276. # +Z the default
  4277. ;;
  4278. *)
  4279. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4280. ;;
  4281. esac
  4282. ;;
  4283. *)
  4284. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4285. ;;
  4286. esac
  4287. else
  4288. # PORTME Check for flag to pass linker flags through the system compiler.
  4289. case $host_os in
  4290. aix*)
  4291. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4292. if test "$host_cpu" = ia64; then
  4293. # AIX 5 now supports IA64 processor
  4294. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4295. else
  4296. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4297. fi
  4298. ;;
  4299. mingw* | pw32* | os2*)
  4300. # This hack is so that the source file can tell whether it is being
  4301. # built for inclusion in a dll (and should export symbols for example).
  4302. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4303. ;;
  4304. hpux9* | hpux10* | hpux11*)
  4305. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4306. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4307. # not for PA HP-UX.
  4308. case "$host_cpu" in
  4309. hppa*64*|ia64*)
  4310. # +Z the default
  4311. ;;
  4312. *)
  4313. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4314. ;;
  4315. esac
  4316. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4317. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4318. ;;
  4319. irix5* | irix6* | nonstopux*)
  4320. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4321. # PIC (with -KPIC) is the default.
  4322. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4323. ;;
  4324. newsos6)
  4325. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4326. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4327. ;;
  4328. linux*)
  4329. case $CC in
  4330. icc* | ecc*)
  4331. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4332. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4333. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4334. ;;
  4335. ccc*)
  4336. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4337. # All Alpha code is PIC.
  4338. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4339. ;;
  4340. esac
  4341. ;;
  4342. osf3* | osf4* | osf5*)
  4343. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4344. # All OSF/1 code is PIC.
  4345. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4346. ;;
  4347. sco3.2v5*)
  4348. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  4349. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  4350. ;;
  4351. solaris*)
  4352. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4353. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4354. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4355. ;;
  4356. sunos4*)
  4357. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4358. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4359. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4360. ;;
  4361. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4362. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4363. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4364. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4365. ;;
  4366. sysv4*MP*)
  4367. if test -d /usr/nec ;then
  4368. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4369. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4370. fi
  4371. ;;
  4372. uts4*)
  4373. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4374. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4375. ;;
  4376. *)
  4377. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4378. ;;
  4379. esac
  4380. fi
  4381. ])
  4382. AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  4383. #
  4384. # Check to make sure the PIC flag actually works.
  4385. #
  4386. if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4387. AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  4388. _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  4389. [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  4390. [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  4391. "" | " "*) ;;
  4392. *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4393. esac],
  4394. [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4395. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4396. fi
  4397. case "$host_os" in
  4398. # For platforms which do not support PIC, -DPIC is meaningless:
  4399. *djgpp*)
  4400. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4401. ;;
  4402. *)
  4403. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  4404. ;;
  4405. esac
  4406. ])
  4407. # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  4408. # ------------------------------------
  4409. # See if the linker supports building shared libraries.
  4410. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  4411. [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4412. ifelse([$1],[CXX],[
  4413. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4414. case $host_os in
  4415. aix4* | aix5*)
  4416. # If we're using GNU nm, then we don't want the "-C" option.
  4417. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4418. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  4419. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4420. else
  4421. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4422. fi
  4423. ;;
  4424. pw32*)
  4425. _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4426. ;;
  4427. cygwin* | mingw*)
  4428. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  4429. ;;
  4430. *)
  4431. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4432. ;;
  4433. esac
  4434. ],[
  4435. runpath_var=
  4436. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4437. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4438. _LT_AC_TAGVAR(archive_cmds, $1)=
  4439. _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4440. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  4441. _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4442. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4443. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4444. _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  4445. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4446. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4447. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4448. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4449. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4450. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4451. _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4452. _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4453. _LT_AC_TAGVAR(module_cmds, $1)=
  4454. _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4455. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4456. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4457. # include_expsyms should be a list of space-separated symbols to be *always*
  4458. # included in the symbol list
  4459. _LT_AC_TAGVAR(include_expsyms, $1)=
  4460. # exclude_expsyms can be an extended regexp of symbols to exclude
  4461. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4462. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4463. # as well as any symbol that contains `d'.
  4464. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  4465. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4466. # platforms (ab)use it in PIC code, but their linkers get confused if
  4467. # the symbol is explicitly referenced. Since portable code cannot
  4468. # rely on this symbol name, it's probably fine to never include it in
  4469. # preloaded symbol tables.
  4470. extract_expsyms_cmds=
  4471. case $host_os in
  4472. cygwin* | mingw* | pw32*)
  4473. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4474. # When not using gcc, we currently assume that we are using
  4475. # Microsoft Visual C++.
  4476. if test "$GCC" != yes; then
  4477. with_gnu_ld=no
  4478. fi
  4479. ;;
  4480. openbsd*)
  4481. with_gnu_ld=no
  4482. ;;
  4483. esac
  4484. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4485. if test "$with_gnu_ld" = yes; then
  4486. # If archive_cmds runs LD, not CC, wlarc should be empty
  4487. wlarc='${wl}'
  4488. # See if GNU ld supports shared libraries.
  4489. case $host_os in
  4490. aix3* | aix4* | aix5*)
  4491. # On AIX/PPC, the GNU linker is very broken
  4492. if test "$host_cpu" != ia64; then
  4493. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4494. cat <<EOF 1>&2
  4495. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4496. *** to be unable to reliably create shared libraries on AIX.
  4497. *** Therefore, libtool is disabling shared libraries support. If you
  4498. *** really care for shared libraries, you may want to modify your PATH
  4499. *** so that a non-GNU linker is found, and then restart.
  4500. EOF
  4501. fi
  4502. ;;
  4503. amigaos*)
  4504. _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
  4505. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4506. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4507. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  4508. # that the semantics of dynamic libraries on AmigaOS, at least up
  4509. # to version 4, is to share data among multiple programs linked
  4510. # with the same dynamic library. Since this doesn't match the
  4511. # behavior of shared libraries on other platforms, we can't use
  4512. # them.
  4513. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4514. ;;
  4515. beos*)
  4516. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4517. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4518. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4519. # support --undefined. This deserves some investigation. FIXME
  4520. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4521. else
  4522. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4523. fi
  4524. ;;
  4525. cygwin* | mingw* | pw32*)
  4526. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4527. # as there is no search path for DLLs.
  4528. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4529. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4530. _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4531. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4532. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  4533. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4534. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  4535. # If the export-symbols file already is a .def file (1st line
  4536. # is EXPORTS), use it as is; otherwise, prepend...
  4537. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4538. cp $export_symbols $output_objdir/$soname.def;
  4539. else
  4540. echo EXPORTS > $output_objdir/$soname.def;
  4541. cat $export_symbols >> $output_objdir/$soname.def;
  4542. fi~
  4543. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  4544. else
  4545. ld_shlibs=no
  4546. fi
  4547. ;;
  4548. netbsd*)
  4549. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4550. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4551. wlarc=
  4552. else
  4553. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4554. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4555. fi
  4556. ;;
  4557. solaris* | sysv5*)
  4558. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  4559. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4560. cat <<EOF 1>&2
  4561. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4562. *** create shared libraries on Solaris systems. Therefore, libtool
  4563. *** is disabling shared libraries support. We urge you to upgrade GNU
  4564. *** binutils to release 2.9.1 or newer. Another option is to modify
  4565. *** your PATH or compiler configuration so that the native linker is
  4566. *** used, and then restart.
  4567. EOF
  4568. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4569. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4570. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4571. else
  4572. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4573. fi
  4574. ;;
  4575. sunos4*)
  4576. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4577. wlarc=
  4578. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4579. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4580. ;;
  4581. linux*)
  4582. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  4583. tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4584. _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  4585. supports_anon_versioning=no
  4586. case `$LD -v 2>/dev/null` in
  4587. *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4588. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4589. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4590. *\ 2.11.*) ;; # other 2.11 versions
  4591. *) supports_anon_versioning=yes ;;
  4592. esac
  4593. if test $supports_anon_versioning = yes; then
  4594. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  4595. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4596. $echo "local: *; };" >> $output_objdir/$libname.ver~
  4597. $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4598. else
  4599. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  4600. fi
  4601. else
  4602. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4603. fi
  4604. ;;
  4605. *)
  4606. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  4607. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4608. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4609. else
  4610. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4611. fi
  4612. ;;
  4613. esac
  4614. if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  4615. runpath_var=LD_RUN_PATH
  4616. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4617. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4618. # ancient GNU ld didn't support --whole-archive et. al.
  4619. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  4620. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4621. else
  4622. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4623. fi
  4624. fi
  4625. else
  4626. # PORTME fill in a description of your system's linker (not GNU ld)
  4627. case $host_os in
  4628. aix3*)
  4629. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4630. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4631. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  4632. # Note: this linker hardcodes the directories in LIBPATH if there
  4633. # are no directories specified by -L.
  4634. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4635. if test "$GCC" = yes && test -z "$link_static_flag"; then
  4636. # Neither direct hardcoding nor static linking is supported with a
  4637. # broken collect2.
  4638. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4639. fi
  4640. ;;
  4641. aix4* | aix5*)
  4642. if test "$host_cpu" = ia64; then
  4643. # On IA64, the linker does run time linking by default, so we don't
  4644. # have to do anything special.
  4645. aix_use_runtimelinking=no
  4646. exp_sym_flag='-Bexport'
  4647. no_entry_flag=""
  4648. else
  4649. # If we're using GNU nm, then we don't want the "-C" option.
  4650. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4651. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  4652. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4653. else
  4654. _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  4655. fi
  4656. aix_use_runtimelinking=no
  4657. # Test if we are trying to use run time linking or normal
  4658. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4659. # need to do runtime linking.
  4660. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  4661. for ld_flag in $LDFLAGS; do
  4662. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4663. aix_use_runtimelinking=yes
  4664. break
  4665. fi
  4666. done
  4667. esac
  4668. exp_sym_flag='-bexport'
  4669. no_entry_flag='-bnoentry'
  4670. fi
  4671. # When large executables or shared objects are built, AIX ld can
  4672. # have problems creating the table of contents. If linking a library
  4673. # or program results in "error TOC overflow" add -mminimal-toc to
  4674. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4675. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4676. _LT_AC_TAGVAR(archive_cmds, $1)=''
  4677. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4678. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4679. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4680. if test "$GCC" = yes; then
  4681. case $host_os in aix4.[012]|aix4.[012].*)
  4682. # We only want to do this on AIX 4.2 and lower, the check
  4683. # below for broken collect2 doesn't work under 4.3+
  4684. collect2name=`${CC} -print-prog-name=collect2`
  4685. if test -f "$collect2name" && \
  4686. strings "$collect2name" | grep resolve_lib_name >/dev/null
  4687. then
  4688. # We have reworked collect2
  4689. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4690. else
  4691. # We have old collect2
  4692. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4693. # It fails to find uninstalled libraries when the uninstalled
  4694. # path is not listed in the libpath. Setting hardcode_minus_L
  4695. # to unsupported forces relinking
  4696. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4697. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4698. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4699. fi
  4700. esac
  4701. shared_flag='-shared'
  4702. else
  4703. # not using gcc
  4704. if test "$host_cpu" = ia64; then
  4705. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4706. # chokes on -Wl,-G. The following line is correct:
  4707. shared_flag='-G'
  4708. else
  4709. if test "$aix_use_runtimelinking" = yes; then
  4710. shared_flag='${wl}-G'
  4711. else
  4712. shared_flag='${wl}-bM:SRE'
  4713. fi
  4714. fi
  4715. fi
  4716. # It seems that -bexpall does not export symbols beginning with
  4717. # underscore (_), so it is better to generate a list of symbols to export.
  4718. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4719. if test "$aix_use_runtimelinking" = yes; then
  4720. # Warning - without using the other runtime loading flags (-brtl),
  4721. # -berok will link without error, but may produce a broken library.
  4722. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  4723. # Determine the default libpath from the value encoded in an empty executable.
  4724. _LT_AC_SYS_LIBPATH_AIX
  4725. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4726. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4727. else
  4728. if test "$host_cpu" = ia64; then
  4729. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4730. _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4731. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  4732. else
  4733. # Determine the default libpath from the value encoded in an empty executable.
  4734. _LT_AC_SYS_LIBPATH_AIX
  4735. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4736. # Warning - without using the other run time loading flags,
  4737. # -berok will link without error, but may produce a broken library.
  4738. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4739. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4740. # -bexpall does not export symbols beginning with underscore (_)
  4741. _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4742. # Exported symbols can be pulled into shared objects from archives
  4743. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  4744. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  4745. # This is similar to how AIX traditionally builds it's shared libraries.
  4746. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  4747. fi
  4748. fi
  4749. ;;
  4750. amigaos*)
  4751. _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
  4752. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4753. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4754. # see comment about different semantics on the GNU ld section
  4755. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4756. ;;
  4757. bsdi4*)
  4758. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4759. ;;
  4760. cygwin* | mingw* | pw32*)
  4761. # When not using gcc, we currently assume that we are using
  4762. # Microsoft Visual C++.
  4763. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4764. # no search path for DLLs.
  4765. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4766. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4767. # Tell ltmain to make .lib files, not .a files.
  4768. libext=lib
  4769. # Tell ltmain to make .dll files, not .so files.
  4770. shrext=".dll"
  4771. # FIXME: Setting linknames here is a bad hack.
  4772. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4773. # The linker will automatically build a .lib file if we build a DLL.
  4774. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  4775. # FIXME: Should let the user specify the lib program.
  4776. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  4777. fix_srcfile_path='`cygpath -w "$srcfile"`'
  4778. _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4779. ;;
  4780. darwin* | rhapsody*)
  4781. if test "$GXX" = yes ; then
  4782. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4783. case "$host_os" in
  4784. rhapsody* | darwin1.[[012]])
  4785. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  4786. ;;
  4787. *) # Darwin 1.3 on
  4788. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4789. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4790. else
  4791. case ${MACOSX_DEPLOYMENT_TARGET} in
  4792. 10.[[012]])
  4793. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4794. ;;
  4795. 10.*)
  4796. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  4797. ;;
  4798. esac
  4799. fi
  4800. ;;
  4801. esac
  4802. lt_int_apple_cc_single_mod=no
  4803. output_verbose_link_cmd='echo'
  4804. if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  4805. lt_int_apple_cc_single_mod=yes
  4806. fi
  4807. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4808. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4809. else
  4810. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
  4811. fi
  4812. _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4813. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4814. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4815. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4816. else
  4817. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4818. fi
  4819. _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4820. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4821. _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4822. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4823. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  4824. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4825. else
  4826. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4827. fi
  4828. ;;
  4829. dgux*)
  4830. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4831. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4832. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4833. ;;
  4834. freebsd1*)
  4835. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4836. ;;
  4837. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4838. # support. Future versions do this automatically, but an explicit c++rt0.o
  4839. # does not break anything, and helps significantly (at the cost of a little
  4840. # extra space).
  4841. freebsd2.2*)
  4842. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4843. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4844. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4845. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4846. ;;
  4847. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4848. freebsd2*)
  4849. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4850. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4851. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4852. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4853. ;;
  4854. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4855. freebsd* | kfreebsd*-gnu)
  4856. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4857. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4858. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4859. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4860. ;;
  4861. hpux9*)
  4862. if test "$GCC" = yes; then
  4863. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4864. else
  4865. _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4866. fi
  4867. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4868. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4869. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4870. # hardcode_minus_L: Not really in the search PATH,
  4871. # but as the default location of the library.
  4872. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4873. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4874. ;;
  4875. hpux10* | hpux11*)
  4876. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4877. case "$host_cpu" in
  4878. hppa*64*|ia64*)
  4879. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4880. ;;
  4881. *)
  4882. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4883. ;;
  4884. esac
  4885. else
  4886. case "$host_cpu" in
  4887. hppa*64*|ia64*)
  4888. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  4889. ;;
  4890. *)
  4891. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4892. ;;
  4893. esac
  4894. fi
  4895. if test "$with_gnu_ld" = no; then
  4896. case "$host_cpu" in
  4897. hppa*64*)
  4898. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4899. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4900. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4901. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4902. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4903. ;;
  4904. ia64*)
  4905. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4906. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4907. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4908. # hardcode_minus_L: Not really in the search PATH,
  4909. # but as the default location of the library.
  4910. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4911. ;;
  4912. *)
  4913. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4914. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4915. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4916. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4917. # hardcode_minus_L: Not really in the search PATH,
  4918. # but as the default location of the library.
  4919. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4920. ;;
  4921. esac
  4922. fi
  4923. ;;
  4924. irix5* | irix6* | nonstopux*)
  4925. if test "$GCC" = yes; then
  4926. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4927. else
  4928. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4929. _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4930. fi
  4931. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4932. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4933. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4934. ;;
  4935. netbsd*)
  4936. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4937. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4938. else
  4939. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4940. fi
  4941. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4942. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4943. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4944. ;;
  4945. newsos6)
  4946. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4947. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4948. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4949. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4950. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4951. ;;
  4952. openbsd*)
  4953. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4954. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4955. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4956. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4957. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4958. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4959. else
  4960. case $host_os in
  4961. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4962. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4963. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4964. ;;
  4965. *)
  4966. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4967. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4968. ;;
  4969. esac
  4970. fi
  4971. ;;
  4972. os2*)
  4973. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4974. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4975. _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4976. _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  4977. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4978. ;;
  4979. osf3*)
  4980. if test "$GCC" = yes; then
  4981. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4982. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4983. else
  4984. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4985. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4986. fi
  4987. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4988. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4989. ;;
  4990. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4991. if test "$GCC" = yes; then
  4992. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4993. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4994. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4995. else
  4996. _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4997. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  4998. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  4999. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  5000. # Both c and cxx compiler support -rpath directly
  5001. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5002. fi
  5003. _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5004. ;;
  5005. sco3.2v5*)
  5006. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5007. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5008. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5009. runpath_var=LD_RUN_PATH
  5010. hardcode_runpath_var=yes
  5011. ;;
  5012. solaris*)
  5013. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  5014. if test "$GCC" = yes; then
  5015. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5016. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5017. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  5018. else
  5019. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5020. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5021. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5022. fi
  5023. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5024. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5025. case $host_os in
  5026. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5027. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  5028. _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  5029. esac
  5030. _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5031. ;;
  5032. sunos4*)
  5033. if test "x$host_vendor" = xsequent; then
  5034. # Use $CC to link under sequent, because it throws in some extra .o
  5035. # files that make .init and .fini sections work.
  5036. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5037. else
  5038. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5039. fi
  5040. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5041. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5042. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5043. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5044. ;;
  5045. sysv4)
  5046. case $host_vendor in
  5047. sni)
  5048. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5049. _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5050. ;;
  5051. siemens)
  5052. ## LD is ld it makes a PLAMLIB
  5053. ## CC just makes a GrossModule.
  5054. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5055. _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5056. _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5057. ;;
  5058. motorola)
  5059. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5060. _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5061. ;;
  5062. esac
  5063. runpath_var='LD_RUN_PATH'
  5064. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5065. ;;
  5066. sysv4.3*)
  5067. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5068. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5069. _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5070. ;;
  5071. sysv4*MP*)
  5072. if test -d /usr/nec; then
  5073. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5074. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5075. runpath_var=LD_RUN_PATH
  5076. hardcode_runpath_var=yes
  5077. _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5078. fi
  5079. ;;
  5080. sysv4.2uw2*)
  5081. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5082. _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5083. _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5084. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5085. hardcode_runpath_var=yes
  5086. runpath_var=LD_RUN_PATH
  5087. ;;
  5088. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  5089. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  5090. if test "$GCC" = yes; then
  5091. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5092. else
  5093. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5094. fi
  5095. runpath_var='LD_RUN_PATH'
  5096. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5097. ;;
  5098. sysv5*)
  5099. _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  5100. # $CC -shared without GNU ld will not create a library from C++
  5101. # object files and a static libstdc++, better avoid it by now
  5102. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5103. _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5104. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  5105. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5106. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5107. runpath_var='LD_RUN_PATH'
  5108. ;;
  5109. uts4*)
  5110. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5111. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5112. _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5113. ;;
  5114. *)
  5115. _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5116. ;;
  5117. esac
  5118. fi
  5119. ])
  5120. AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5121. test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5122. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  5123. if test "$GCC" = yes; then
  5124. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  5125. fi
  5126. #
  5127. # Do we need to explicitly link libc?
  5128. #
  5129. case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  5130. x|xyes)
  5131. # Assume -lc should be added
  5132. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5133. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5134. case $_LT_AC_TAGVAR(archive_cmds, $1) in
  5135. *'~'*)
  5136. # FIXME: we may have to deal with multi-command sequences.
  5137. ;;
  5138. '$CC '*)
  5139. # Test whether the compiler implicitly links with -lc since on some
  5140. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5141. # to ld, don't add -lc before -lgcc.
  5142. AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  5143. $rm conftest*
  5144. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5145. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5146. soname=conftest
  5147. lib=conftest
  5148. libobjs=conftest.$ac_objext
  5149. deplibs=
  5150. wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  5151. compiler_flags=-v
  5152. linker_flags=-v
  5153. verstring=
  5154. output_objdir=.
  5155. libname=conftest
  5156. lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  5157. _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5158. if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  5159. then
  5160. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5161. else
  5162. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5163. fi
  5164. _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5165. else
  5166. cat conftest.err 1>&5
  5167. fi
  5168. $rm conftest*
  5169. AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  5170. ;;
  5171. esac
  5172. fi
  5173. ;;
  5174. esac
  5175. ])# AC_LIBTOOL_PROG_LD_SHLIBS
  5176. # _LT_AC_FILE_LTDLL_C
  5177. # -------------------
  5178. # Be careful that the start marker always follows a newline.
  5179. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  5180. # /* ltdll.c starts here */
  5181. # #define WIN32_LEAN_AND_MEAN
  5182. # #include <windows.h>
  5183. # #undef WIN32_LEAN_AND_MEAN
  5184. # #include <stdio.h>
  5185. #
  5186. # #ifndef __CYGWIN__
  5187. # # ifdef __CYGWIN32__
  5188. # # define __CYGWIN__ __CYGWIN32__
  5189. # # endif
  5190. # #endif
  5191. #
  5192. # #ifdef __cplusplus
  5193. # extern "C" {
  5194. # #endif
  5195. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  5196. # #ifdef __cplusplus
  5197. # }
  5198. # #endif
  5199. #
  5200. # #ifdef __CYGWIN__
  5201. # #include <cygwin/cygwin_dll.h>
  5202. # DECLARE_CYGWIN_DLL( DllMain );
  5203. # #endif
  5204. # HINSTANCE __hDllInstance_base;
  5205. #
  5206. # BOOL APIENTRY
  5207. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  5208. # {
  5209. # __hDllInstance_base = hInst;
  5210. # return TRUE;
  5211. # }
  5212. # /* ltdll.c ends here */
  5213. ])# _LT_AC_FILE_LTDLL_C
  5214. # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  5215. # ---------------------------------
  5216. AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  5217. # old names
  5218. AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  5219. AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  5220. AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  5221. AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  5222. AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  5223. AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  5224. AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  5225. # This is just to silence aclocal about the macro not being used
  5226. ifelse([AC_DISABLE_FAST_INSTALL])
  5227. AC_DEFUN([LT_AC_PROG_GCJ],
  5228. [AC_CHECK_TOOL(GCJ, gcj, no)
  5229. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  5230. AC_SUBST(GCJFLAGS)
  5231. ])
  5232. AC_DEFUN([LT_AC_PROG_RC],
  5233. [AC_CHECK_TOOL(RC, windres, no)
  5234. ])
  5235. # NOTE: This macro has been submitted for inclusion into #
  5236. # GNU Autoconf as AC_PROG_SED. When it is available in #
  5237. # a released version of Autoconf we should remove this #
  5238. # macro and use it instead. #
  5239. # LT_AC_PROG_SED
  5240. # --------------
  5241. # Check for a fully-functional sed program, that truncates
  5242. # as few characters as possible. Prefer GNU sed if found.
  5243. AC_DEFUN([LT_AC_PROG_SED],
  5244. [AC_MSG_CHECKING([for a sed that does not truncate output])
  5245. AC_CACHE_VAL(lt_cv_path_SED,
  5246. [# Loop through the user's path and test for sed and gsed.
  5247. # Then use that list of sed's as ones to test for truncation.
  5248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5249. for as_dir in $PATH
  5250. do
  5251. IFS=$as_save_IFS
  5252. test -z "$as_dir" && as_dir=.
  5253. for lt_ac_prog in sed gsed; do
  5254. for ac_exec_ext in '' $ac_executable_extensions; do
  5255. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  5256. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  5257. fi
  5258. done
  5259. done
  5260. done
  5261. lt_ac_max=0
  5262. lt_ac_count=0
  5263. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  5264. # along with /bin/sed that truncates output.
  5265. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  5266. test ! -f $lt_ac_sed && break
  5267. cat /dev/null > conftest.in
  5268. lt_ac_count=0
  5269. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  5270. # Check for GNU sed and select it if it is found.
  5271. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  5272. lt_cv_path_SED=$lt_ac_sed
  5273. break
  5274. fi
  5275. while true; do
  5276. cat conftest.in conftest.in >conftest.tmp
  5277. mv conftest.tmp conftest.in
  5278. cp conftest.in conftest.nl
  5279. echo >>conftest.nl
  5280. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  5281. cmp -s conftest.out conftest.nl || break
  5282. # 10000 chars as input seems more than enough
  5283. test $lt_ac_count -gt 10 && break
  5284. lt_ac_count=`expr $lt_ac_count + 1`
  5285. if test $lt_ac_count -gt $lt_ac_max; then
  5286. lt_ac_max=$lt_ac_count
  5287. lt_cv_path_SED=$lt_ac_sed
  5288. fi
  5289. done
  5290. done
  5291. SED=$lt_cv_path_SED
  5292. ])
  5293. AC_MSG_RESULT([$SED])
  5294. ])
  5295. # -*- Autoconf -*-
  5296. # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
  5297. # Generated from amversion.in; do not edit by hand.
  5298. # This program is free software; you can redistribute it and/or modify
  5299. # it under the terms of the GNU General Public License as published by
  5300. # the Free Software Foundation; either version 2, or (at your option)
  5301. # any later version.
  5302. # This program is distributed in the hope that it will be useful,
  5303. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5304. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5305. # GNU General Public License for more details.
  5306. # You should have received a copy of the GNU General Public License
  5307. # along with this program; if not, write to the Free Software
  5308. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5309. # AM_AUTOMAKE_VERSION(VERSION)
  5310. # ----------------------------
  5311. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  5312. # generated from the m4 files accompanying Automake X.Y.
  5313. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
  5314. # AM_SET_CURRENT_AUTOMAKE_VERSION
  5315. # -------------------------------
  5316. # Call AM_AUTOMAKE_VERSION so it can be traced.
  5317. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  5318. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  5319. [AM_AUTOMAKE_VERSION([1.8.3])])
  5320. # AM_AUX_DIR_EXPAND
  5321. # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  5322. # This program is free software; you can redistribute it and/or modify
  5323. # it under the terms of the GNU General Public License as published by
  5324. # the Free Software Foundation; either version 2, or (at your option)
  5325. # any later version.
  5326. # This program is distributed in the hope that it will be useful,
  5327. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5328. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5329. # GNU General Public License for more details.
  5330. # You should have received a copy of the GNU General Public License
  5331. # along with this program; if not, write to the Free Software
  5332. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5333. # 02111-1307, USA.
  5334. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  5335. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  5336. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  5337. #
  5338. # Of course, Automake must honor this variable whenever it calls a
  5339. # tool from the auxiliary directory. The problem is that $srcdir (and
  5340. # therefore $ac_aux_dir as well) can be either absolute or relative,
  5341. # depending on how configure is run. This is pretty annoying, since
  5342. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  5343. # source directory, any form will work fine, but in subdirectories a
  5344. # relative path needs to be adjusted first.
  5345. #
  5346. # $ac_aux_dir/missing
  5347. # fails when called from a subdirectory if $ac_aux_dir is relative
  5348. # $top_srcdir/$ac_aux_dir/missing
  5349. # fails if $ac_aux_dir is absolute,
  5350. # fails when called from a subdirectory in a VPATH build with
  5351. # a relative $ac_aux_dir
  5352. #
  5353. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  5354. # are both prefixed by $srcdir. In an in-source build this is usually
  5355. # harmless because $srcdir is `.', but things will broke when you
  5356. # start a VPATH build or use an absolute $srcdir.
  5357. #
  5358. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  5359. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  5360. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  5361. # and then we would define $MISSING as
  5362. # MISSING="\${SHELL} $am_aux_dir/missing"
  5363. # This will work as long as MISSING is not called from configure, because
  5364. # unfortunately $(top_srcdir) has no meaning in configure.
  5365. # However there are other variables, like CC, which are often used in
  5366. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  5367. #
  5368. # Another solution, used here, is to always expand $ac_aux_dir to an
  5369. # absolute PATH. The drawback is that using absolute paths prevent a
  5370. # configured tree to be moved without reconfiguration.
  5371. AC_DEFUN([AM_AUX_DIR_EXPAND],
  5372. [dnl Rely on autoconf to set up CDPATH properly.
  5373. AC_PREREQ([2.50])dnl
  5374. # expand $ac_aux_dir to an absolute path
  5375. am_aux_dir=`cd $ac_aux_dir && pwd`
  5376. ])
  5377. # AM_CONDITIONAL -*- Autoconf -*-
  5378. # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  5379. # This program is free software; you can redistribute it and/or modify
  5380. # it under the terms of the GNU General Public License as published by
  5381. # the Free Software Foundation; either version 2, or (at your option)
  5382. # any later version.
  5383. # This program is distributed in the hope that it will be useful,
  5384. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5385. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5386. # GNU General Public License for more details.
  5387. # You should have received a copy of the GNU General Public License
  5388. # along with this program; if not, write to the Free Software
  5389. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5390. # 02111-1307, USA.
  5391. # serial 6
  5392. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  5393. # -------------------------------------
  5394. # Define a conditional.
  5395. AC_DEFUN([AM_CONDITIONAL],
  5396. [AC_PREREQ(2.52)dnl
  5397. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  5398. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  5399. AC_SUBST([$1_TRUE])
  5400. AC_SUBST([$1_FALSE])
  5401. if $2; then
  5402. $1_TRUE=
  5403. $1_FALSE='#'
  5404. else
  5405. $1_TRUE='#'
  5406. $1_FALSE=
  5407. fi
  5408. AC_CONFIG_COMMANDS_PRE(
  5409. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  5410. AC_MSG_ERROR([conditional "$1" was never defined.
  5411. Usually this means the macro was only invoked conditionally.])
  5412. fi])])
  5413. # serial 7 -*- Autoconf -*-
  5414. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
  5415. # Free Software Foundation, Inc.
  5416. # This program is free software; you can redistribute it and/or modify
  5417. # it under the terms of the GNU General Public License as published by
  5418. # the Free Software Foundation; either version 2, or (at your option)
  5419. # any later version.
  5420. # This program is distributed in the hope that it will be useful,
  5421. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5422. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5423. # GNU General Public License for more details.
  5424. # You should have received a copy of the GNU General Public License
  5425. # along with this program; if not, write to the Free Software
  5426. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5427. # 02111-1307, USA.
  5428. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  5429. # written in clear, in which case automake, when reading aclocal.m4,
  5430. # will think it sees a *use*, and therefore will trigger all it's
  5431. # C support machinery. Also note that it means that autoscan, seeing
  5432. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  5433. # _AM_DEPENDENCIES(NAME)
  5434. # ----------------------
  5435. # See how the compiler implements dependency checking.
  5436. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  5437. # We try a few techniques and use that to set a single cache variable.
  5438. #
  5439. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  5440. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  5441. # dependency, and given that the user is not expected to run this macro,
  5442. # just rely on AC_PROG_CC.
  5443. AC_DEFUN([_AM_DEPENDENCIES],
  5444. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  5445. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  5446. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  5447. AC_REQUIRE([AM_DEP_TRACK])dnl
  5448. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  5449. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  5450. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  5451. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  5452. [depcc="$$1" am_compiler_list=])
  5453. AC_CACHE_CHECK([dependency style of $depcc],
  5454. [am_cv_$1_dependencies_compiler_type],
  5455. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5456. # We make a subdir and do the tests there. Otherwise we can end up
  5457. # making bogus files that we don't know about and never remove. For
  5458. # instance it was reported that on HP-UX the gcc test will end up
  5459. # making a dummy file named `D' -- because `-MD' means `put the output
  5460. # in D'.
  5461. mkdir conftest.dir
  5462. # Copy depcomp to subdir because otherwise we won't find it if we're
  5463. # using a relative directory.
  5464. cp "$am_depcomp" conftest.dir
  5465. cd conftest.dir
  5466. # We will build objects and dependencies in a subdirectory because
  5467. # it helps to detect inapplicable dependency modes. For instance
  5468. # both Tru64's cc and ICC support -MD to output dependencies as a
  5469. # side effect of compilation, but ICC will put the dependencies in
  5470. # the current directory while Tru64 will put them in the object
  5471. # directory.
  5472. mkdir sub
  5473. am_cv_$1_dependencies_compiler_type=none
  5474. if test "$am_compiler_list" = ""; then
  5475. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  5476. fi
  5477. for depmode in $am_compiler_list; do
  5478. # Setup a source with many dependencies, because some compilers
  5479. # like to wrap large dependency lists on column 80 (with \), and
  5480. # we should not choose a depcomp mode which is confused by this.
  5481. #
  5482. # We need to recreate these files for each test, as the compiler may
  5483. # overwrite some of them when testing with obscure command lines.
  5484. # This happens at least with the AIX C compiler.
  5485. : > sub/conftest.c
  5486. for i in 1 2 3 4 5 6; do
  5487. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5488. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5489. # Solaris 8's {/usr,}/bin/sh.
  5490. touch sub/conftst$i.h
  5491. done
  5492. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5493. case $depmode in
  5494. nosideeffect)
  5495. # after this tag, mechanisms are not by side-effect, so they'll
  5496. # only be used when explicitly requested
  5497. if test "x$enable_dependency_tracking" = xyes; then
  5498. continue
  5499. else
  5500. break
  5501. fi
  5502. ;;
  5503. none) break ;;
  5504. esac
  5505. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5506. # mode. It turns out that the SunPro C++ compiler does not properly
  5507. # handle `-M -o', and we need to detect this.
  5508. if depmode=$depmode \
  5509. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5510. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5511. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5512. >/dev/null 2>conftest.err &&
  5513. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5514. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5515. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5516. # icc doesn't choke on unknown options, it will just issue warnings
  5517. # (even with -Werror). So we grep stderr for any message
  5518. # that says an option was ignored.
  5519. if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  5520. am_cv_$1_dependencies_compiler_type=$depmode
  5521. break
  5522. fi
  5523. fi
  5524. done
  5525. cd ..
  5526. rm -rf conftest.dir
  5527. else
  5528. am_cv_$1_dependencies_compiler_type=none
  5529. fi
  5530. ])
  5531. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  5532. AM_CONDITIONAL([am__fastdep$1], [
  5533. test "x$enable_dependency_tracking" != xno \
  5534. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  5535. ])
  5536. # AM_SET_DEPDIR
  5537. # -------------
  5538. # Choose a directory name for dependency files.
  5539. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  5540. AC_DEFUN([AM_SET_DEPDIR],
  5541. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  5542. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  5543. ])
  5544. # AM_DEP_TRACK
  5545. # ------------
  5546. AC_DEFUN([AM_DEP_TRACK],
  5547. [AC_ARG_ENABLE(dependency-tracking,
  5548. [ --disable-dependency-tracking speeds up one-time build
  5549. --enable-dependency-tracking do not reject slow dependency extractors])
  5550. if test "x$enable_dependency_tracking" != xno; then
  5551. am_depcomp="$ac_aux_dir/depcomp"
  5552. AMDEPBACKSLASH='\'
  5553. fi
  5554. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  5555. AC_SUBST([AMDEPBACKSLASH])
  5556. ])
  5557. # Generate code to set up dependency tracking. -*- Autoconf -*-
  5558. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  5559. # This program is free software; you can redistribute it and/or modify
  5560. # it under the terms of the GNU General Public License as published by
  5561. # the Free Software Foundation; either version 2, or (at your option)
  5562. # any later version.
  5563. # This program is distributed in the hope that it will be useful,
  5564. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5565. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5566. # GNU General Public License for more details.
  5567. # You should have received a copy of the GNU General Public License
  5568. # along with this program; if not, write to the Free Software
  5569. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5570. # 02111-1307, USA.
  5571. #serial 2
  5572. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  5573. # ------------------------------
  5574. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  5575. [for mf in $CONFIG_FILES; do
  5576. # Strip MF so we end up with the name of the file.
  5577. mf=`echo "$mf" | sed -e 's/:.*$//'`
  5578. # Check whether this is an Automake generated Makefile or not.
  5579. # We used to match only the files named `Makefile.in', but
  5580. # some people rename them; so instead we look at the file content.
  5581. # Grep'ing the first line is not enough: some people post-process
  5582. # each Makefile.in and add a new line on top of each file to say so.
  5583. # So let's grep whole file.
  5584. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  5585. dirpart=`AS_DIRNAME("$mf")`
  5586. else
  5587. continue
  5588. fi
  5589. grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
  5590. # Extract the definition of DEP_FILES from the Makefile without
  5591. # running `make'.
  5592. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  5593. test -z "$DEPDIR" && continue
  5594. # When using ansi2knr, U may be empty or an underscore; expand it
  5595. U=`sed -n 's/^U = //p' < "$mf"`
  5596. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  5597. # We invoke sed twice because it is the simplest approach to
  5598. # changing $(DEPDIR) to its actual value in the expansion.
  5599. for file in `sed -n '
  5600. /^DEP_FILES = .*\\\\$/ {
  5601. s/^DEP_FILES = //
  5602. :loop
  5603. s/\\\\$//
  5604. p
  5605. n
  5606. /\\\\$/ b loop
  5607. p
  5608. }
  5609. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  5610. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  5611. # Make sure the directory exists.
  5612. test -f "$dirpart/$file" && continue
  5613. fdir=`AS_DIRNAME(["$file"])`
  5614. AS_MKDIR_P([$dirpart/$fdir])
  5615. # echo "creating $dirpart/$file"
  5616. echo '# dummy' > "$dirpart/$file"
  5617. done
  5618. done
  5619. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  5620. # AM_OUTPUT_DEPENDENCY_COMMANDS
  5621. # -----------------------------
  5622. # This macro should only be invoked once -- use via AC_REQUIRE.
  5623. #
  5624. # This code is only required when automatic dependency tracking
  5625. # is enabled. FIXME. This creates each `.P' file that we will
  5626. # need in order to bootstrap the dependency handling code.
  5627. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  5628. [AC_CONFIG_COMMANDS([depfiles],
  5629. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  5630. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  5631. ])
  5632. # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
  5633. # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  5634. # This program is free software; you can redistribute it and/or modify
  5635. # it under the terms of the GNU General Public License as published by
  5636. # the Free Software Foundation; either version 2, or (at your option)
  5637. # any later version.
  5638. # This program is distributed in the hope that it will be useful,
  5639. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5640. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5641. # GNU General Public License for more details.
  5642. # You should have received a copy of the GNU General Public License
  5643. # along with this program; if not, write to the Free Software
  5644. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5645. # 02111-1307, USA.
  5646. # serial 7
  5647. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  5648. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  5649. # Do all the work for Automake. -*- Autoconf -*-
  5650. # This macro actually does too much some checks are only needed if
  5651. # your package does certain things. But this isn't really a big deal.
  5652. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
  5653. # Free Software Foundation, Inc.
  5654. # This program is free software; you can redistribute it and/or modify
  5655. # it under the terms of the GNU General Public License as published by
  5656. # the Free Software Foundation; either version 2, or (at your option)
  5657. # any later version.
  5658. # This program is distributed in the hope that it will be useful,
  5659. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5660. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5661. # GNU General Public License for more details.
  5662. # You should have received a copy of the GNU General Public License
  5663. # along with this program; if not, write to the Free Software
  5664. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5665. # 02111-1307, USA.
  5666. # serial 11
  5667. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  5668. # AM_INIT_AUTOMAKE([OPTIONS])
  5669. # -----------------------------------------------
  5670. # The call with PACKAGE and VERSION arguments is the old style
  5671. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  5672. # and VERSION should now be passed to AC_INIT and removed from
  5673. # the call to AM_INIT_AUTOMAKE.
  5674. # We support both call styles for the transition. After
  5675. # the next Automake release, Autoconf can make the AC_INIT
  5676. # arguments mandatory, and then we can depend on a new Autoconf
  5677. # release and drop the old call support.
  5678. AC_DEFUN([AM_INIT_AUTOMAKE],
  5679. [AC_PREREQ([2.58])dnl
  5680. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  5681. dnl the ones we care about.
  5682. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  5683. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  5684. AC_REQUIRE([AC_PROG_INSTALL])dnl
  5685. # test to see if srcdir already configured
  5686. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  5687. test -f $srcdir/config.status; then
  5688. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  5689. fi
  5690. # test whether we have cygpath
  5691. if test -z "$CYGPATH_W"; then
  5692. if (cygpath --version) >/dev/null 2>/dev/null; then
  5693. CYGPATH_W='cygpath -w'
  5694. else
  5695. CYGPATH_W=echo
  5696. fi
  5697. fi
  5698. AC_SUBST([CYGPATH_W])
  5699. # Define the identity of the package.
  5700. dnl Distinguish between old-style and new-style calls.
  5701. m4_ifval([$2],
  5702. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  5703. AC_SUBST([PACKAGE], [$1])dnl
  5704. AC_SUBST([VERSION], [$2])],
  5705. [_AM_SET_OPTIONS([$1])dnl
  5706. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  5707. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  5708. _AM_IF_OPTION([no-define],,
  5709. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  5710. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  5711. # Some tools Automake needs.
  5712. AC_REQUIRE([AM_SANITY_CHECK])dnl
  5713. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  5714. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  5715. AM_MISSING_PROG(AUTOCONF, autoconf)
  5716. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  5717. AM_MISSING_PROG(AUTOHEADER, autoheader)
  5718. AM_MISSING_PROG(MAKEINFO, makeinfo)
  5719. AM_MISSING_PROG(AMTAR, tar)
  5720. AM_PROG_INSTALL_SH
  5721. AM_PROG_INSTALL_STRIP
  5722. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  5723. # We need awk for the "check" target. The system "awk" is bad on
  5724. # some platforms.
  5725. AC_REQUIRE([AC_PROG_AWK])dnl
  5726. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  5727. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  5728. _AM_IF_OPTION([no-dependencies],,
  5729. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  5730. [_AM_DEPENDENCIES(CC)],
  5731. [define([AC_PROG_CC],
  5732. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  5733. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  5734. [_AM_DEPENDENCIES(CXX)],
  5735. [define([AC_PROG_CXX],
  5736. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  5737. ])
  5738. ])
  5739. # When config.status generates a header, we must update the stamp-h file.
  5740. # This file resides in the same directory as the config header
  5741. # that is generated. The stamp files are numbered to have different names.
  5742. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  5743. # loop where config.status creates the headers, so we can generate
  5744. # our stamp files there.
  5745. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  5746. [# Compute $1's index in $config_headers.
  5747. _am_stamp_count=1
  5748. for _am_header in $config_headers :; do
  5749. case $_am_header in
  5750. $1 | $1:* )
  5751. break ;;
  5752. * )
  5753. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  5754. esac
  5755. done
  5756. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  5757. # AM_PROG_INSTALL_SH
  5758. # ------------------
  5759. # Define $install_sh.
  5760. # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  5761. # This program is free software; you can redistribute it and/or modify
  5762. # it under the terms of the GNU General Public License as published by
  5763. # the Free Software Foundation; either version 2, or (at your option)
  5764. # any later version.
  5765. # This program is distributed in the hope that it will be useful,
  5766. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5767. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5768. # GNU General Public License for more details.
  5769. # You should have received a copy of the GNU General Public License
  5770. # along with this program; if not, write to the Free Software
  5771. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5772. # 02111-1307, USA.
  5773. AC_DEFUN([AM_PROG_INSTALL_SH],
  5774. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  5775. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  5776. AC_SUBST(install_sh)])
  5777. # -*- Autoconf -*-
  5778. # Copyright (C) 2003 Free Software Foundation, Inc.
  5779. # This program is free software; you can redistribute it and/or modify
  5780. # it under the terms of the GNU General Public License as published by
  5781. # the Free Software Foundation; either version 2, or (at your option)
  5782. # any later version.
  5783. # This program is distributed in the hope that it will be useful,
  5784. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5785. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5786. # GNU General Public License for more details.
  5787. # You should have received a copy of the GNU General Public License
  5788. # along with this program; if not, write to the Free Software
  5789. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5790. # 02111-1307, USA.
  5791. # serial 1
  5792. # Check whether the underlying file-system supports filenames
  5793. # with a leading dot. For instance MS-DOS doesn't.
  5794. AC_DEFUN([AM_SET_LEADING_DOT],
  5795. [rm -rf .tst 2>/dev/null
  5796. mkdir .tst 2>/dev/null
  5797. if test -d .tst; then
  5798. am__leading_dot=.
  5799. else
  5800. am__leading_dot=_
  5801. fi
  5802. rmdir .tst 2>/dev/null
  5803. AC_SUBST([am__leading_dot])])
  5804. # Add --enable-maintainer-mode option to configure.
  5805. # From Jim Meyering
  5806. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
  5807. # Free Software Foundation, Inc.
  5808. # This program is free software; you can redistribute it and/or modify
  5809. # it under the terms of the GNU General Public License as published by
  5810. # the Free Software Foundation; either version 2, or (at your option)
  5811. # any later version.
  5812. # This program is distributed in the hope that it will be useful,
  5813. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5814. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5815. # GNU General Public License for more details.
  5816. # You should have received a copy of the GNU General Public License
  5817. # along with this program; if not, write to the Free Software
  5818. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5819. # 02111-1307, USA.
  5820. # serial 3
  5821. AC_DEFUN([AM_MAINTAINER_MODE],
  5822. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  5823. dnl maintainer-mode is disabled by default
  5824. AC_ARG_ENABLE(maintainer-mode,
  5825. [ --enable-maintainer-mode enable make rules and dependencies not useful
  5826. (and sometimes confusing) to the casual installer],
  5827. USE_MAINTAINER_MODE=$enableval,
  5828. USE_MAINTAINER_MODE=no)
  5829. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  5830. AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  5831. MAINT=$MAINTAINER_MODE_TRUE
  5832. AC_SUBST(MAINT)dnl
  5833. ]
  5834. )
  5835. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  5836. # Check to see how 'make' treats includes. -*- Autoconf -*-
  5837. # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  5838. # This program is free software; you can redistribute it and/or modify
  5839. # it under the terms of the GNU General Public License as published by
  5840. # the Free Software Foundation; either version 2, or (at your option)
  5841. # any later version.
  5842. # This program is distributed in the hope that it will be useful,
  5843. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5844. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5845. # GNU General Public License for more details.
  5846. # You should have received a copy of the GNU General Public License
  5847. # along with this program; if not, write to the Free Software
  5848. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5849. # 02111-1307, USA.
  5850. # serial 2
  5851. # AM_MAKE_INCLUDE()
  5852. # -----------------
  5853. # Check to see how make treats includes.
  5854. AC_DEFUN([AM_MAKE_INCLUDE],
  5855. [am_make=${MAKE-make}
  5856. cat > confinc << 'END'
  5857. am__doit:
  5858. @echo done
  5859. .PHONY: am__doit
  5860. END
  5861. # If we don't find an include directive, just comment out the code.
  5862. AC_MSG_CHECKING([for style of include used by $am_make])
  5863. am__include="#"
  5864. am__quote=
  5865. _am_result=none
  5866. # First try GNU make style include.
  5867. echo "include confinc" > confmf
  5868. # We grep out `Entering directory' and `Leaving directory'
  5869. # messages which can occur if `w' ends up in MAKEFLAGS.
  5870. # In particular we don't look at `^make:' because GNU make might
  5871. # be invoked under some other name (usually "gmake"), in which
  5872. # case it prints its new name instead of `make'.
  5873. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  5874. am__include=include
  5875. am__quote=
  5876. _am_result=GNU
  5877. fi
  5878. # Now try BSD make style include.
  5879. if test "$am__include" = "#"; then
  5880. echo '.include "confinc"' > confmf
  5881. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  5882. am__include=.include
  5883. am__quote="\""
  5884. _am_result=BSD
  5885. fi
  5886. fi
  5887. AC_SUBST([am__include])
  5888. AC_SUBST([am__quote])
  5889. AC_MSG_RESULT([$_am_result])
  5890. rm -f confinc confmf
  5891. ])
  5892. # -*- Autoconf -*-
  5893. # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  5894. # This program is free software; you can redistribute it and/or modify
  5895. # it under the terms of the GNU General Public License as published by
  5896. # the Free Software Foundation; either version 2, or (at your option)
  5897. # any later version.
  5898. # This program is distributed in the hope that it will be useful,
  5899. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5900. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5901. # GNU General Public License for more details.
  5902. # You should have received a copy of the GNU General Public License
  5903. # along with this program; if not, write to the Free Software
  5904. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5905. # 02111-1307, USA.
  5906. # serial 3
  5907. # AM_MISSING_PROG(NAME, PROGRAM)
  5908. # ------------------------------
  5909. AC_DEFUN([AM_MISSING_PROG],
  5910. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  5911. $1=${$1-"${am_missing_run}$2"}
  5912. AC_SUBST($1)])
  5913. # AM_MISSING_HAS_RUN
  5914. # ------------------
  5915. # Define MISSING if not defined so far and test if it supports --run.
  5916. # If it does, set am_missing_run to use it, otherwise, to nothing.
  5917. AC_DEFUN([AM_MISSING_HAS_RUN],
  5918. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  5919. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  5920. # Use eval to expand $SHELL
  5921. if eval "$MISSING --run true"; then
  5922. am_missing_run="$MISSING --run "
  5923. else
  5924. am_missing_run=
  5925. AC_MSG_WARN([`missing' script is too old or missing])
  5926. fi
  5927. ])
  5928. # AM_PROG_MKDIR_P
  5929. # ---------------
  5930. # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  5931. # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  5932. # This program is free software; you can redistribute it and/or modify
  5933. # it under the terms of the GNU General Public License as published by
  5934. # the Free Software Foundation; either version 2, or (at your option)
  5935. # any later version.
  5936. # This program is distributed in the hope that it will be useful,
  5937. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5938. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5939. # GNU General Public License for more details.
  5940. # You should have received a copy of the GNU General Public License
  5941. # along with this program; if not, write to the Free Software
  5942. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5943. # 02111-1307, USA.
  5944. # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  5945. # created by `make install' are always world readable, even if the
  5946. # installer happens to have an overly restrictive umask (e.g. 077).
  5947. # This was a mistake. There are at least two reasons why we must not
  5948. # use `-m 0755':
  5949. # - it causes special bits like SGID to be ignored,
  5950. # - it may be too restrictive (some setups expect 775 directories).
  5951. #
  5952. # Do not use -m 0755 and let people choose whatever they expect by
  5953. # setting umask.
  5954. #
  5955. # We cannot accept any implementation of `mkdir' that recognizes `-p'.
  5956. # Some implementations (such as Solaris 8's) are not thread-safe: if a
  5957. # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  5958. # concurrently, both version can detect that a/ is missing, but only
  5959. # one can create it and the other will error out. Consequently we
  5960. # restrict ourselves to GNU make (using the --version option ensures
  5961. # this.)
  5962. AC_DEFUN([AM_PROG_MKDIR_P],
  5963. [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  5964. # Keeping the `.' argument allows $(mkdir_p) to be used without
  5965. # argument. Indeed, we sometimes output rules like
  5966. # $(mkdir_p) $(somedir)
  5967. # where $(somedir) is conditionally defined.
  5968. # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  5969. # expensive solution, as it forces Make to start a sub-shell.)
  5970. mkdir_p='mkdir -p -- .'
  5971. else
  5972. # On NextStep and OpenStep, the `mkdir' command does not
  5973. # recognize any option. It will interpret all options as
  5974. # directories to create, and then abort because `.' already
  5975. # exists.
  5976. for d in ./-p ./--version;
  5977. do
  5978. test -d $d && rmdir $d
  5979. done
  5980. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  5981. if test -f "$ac_aux_dir/mkinstalldirs"; then
  5982. mkdir_p='$(mkinstalldirs)'
  5983. else
  5984. mkdir_p='$(install_sh) -d'
  5985. fi
  5986. fi
  5987. AC_SUBST([mkdir_p])])
  5988. # Helper functions for option handling. -*- Autoconf -*-
  5989. # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  5990. # This program is free software; you can redistribute it and/or modify
  5991. # it under the terms of the GNU General Public License as published by
  5992. # the Free Software Foundation; either version 2, or (at your option)
  5993. # any later version.
  5994. # This program is distributed in the hope that it will be useful,
  5995. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  5996. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5997. # GNU General Public License for more details.
  5998. # You should have received a copy of the GNU General Public License
  5999. # along with this program; if not, write to the Free Software
  6000. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  6001. # 02111-1307, USA.
  6002. # serial 2
  6003. # _AM_MANGLE_OPTION(NAME)
  6004. # -----------------------
  6005. AC_DEFUN([_AM_MANGLE_OPTION],
  6006. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  6007. # _AM_SET_OPTION(NAME)
  6008. # ------------------------------
  6009. # Set option NAME. Presently that only means defining a flag for this option.
  6010. AC_DEFUN([_AM_SET_OPTION],
  6011. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  6012. # _AM_SET_OPTIONS(OPTIONS)
  6013. # ----------------------------------
  6014. # OPTIONS is a space-separated list of Automake options.
  6015. AC_DEFUN([_AM_SET_OPTIONS],
  6016. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  6017. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  6018. # -------------------------------------------
  6019. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  6020. AC_DEFUN([_AM_IF_OPTION],
  6021. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  6022. #
  6023. # Check to make sure that the build environment is sane.
  6024. #
  6025. # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  6026. # This program is free software; you can redistribute it and/or modify
  6027. # it under the terms of the GNU General Public License as published by
  6028. # the Free Software Foundation; either version 2, or (at your option)
  6029. # any later version.
  6030. # This program is distributed in the hope that it will be useful,
  6031. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  6032. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  6033. # GNU General Public License for more details.
  6034. # You should have received a copy of the GNU General Public License
  6035. # along with this program; if not, write to the Free Software
  6036. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  6037. # 02111-1307, USA.
  6038. # serial 3
  6039. # AM_SANITY_CHECK
  6040. # ---------------
  6041. AC_DEFUN([AM_SANITY_CHECK],
  6042. [AC_MSG_CHECKING([whether build environment is sane])
  6043. # Just in case
  6044. sleep 1
  6045. echo timestamp > conftest.file
  6046. # Do `set' in a subshell so we don't clobber the current shell's
  6047. # arguments. Must try -L first in case configure is actually a
  6048. # symlink; some systems play weird games with the mod time of symlinks
  6049. # (eg FreeBSD returns the mod time of the symlink's containing
  6050. # directory).
  6051. if (
  6052. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  6053. if test "$[*]" = "X"; then
  6054. # -L didn't work.
  6055. set X `ls -t $srcdir/configure conftest.file`
  6056. fi
  6057. rm -f conftest.file
  6058. if test "$[*]" != "X $srcdir/configure conftest.file" \
  6059. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  6060. # If neither matched, then we have a broken ls. This can happen
  6061. # if, for instance, CONFIG_SHELL is bash and it inherits a
  6062. # broken ls alias from the environment. This has actually
  6063. # happened. Such a system could not be considered "sane".
  6064. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  6065. alias in your environment])
  6066. fi
  6067. test "$[2]" = conftest.file
  6068. )
  6069. then
  6070. # Ok.
  6071. :
  6072. else
  6073. AC_MSG_ERROR([newly created file is older than distributed files!
  6074. Check your system clock])
  6075. fi
  6076. AC_MSG_RESULT(yes)])
  6077. # AM_PROG_INSTALL_STRIP
  6078. # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  6079. # This program is free software; you can redistribute it and/or modify
  6080. # it under the terms of the GNU General Public License as published by
  6081. # the Free Software Foundation; either version 2, or (at your option)
  6082. # any later version.
  6083. # This program is distributed in the hope that it will be useful,
  6084. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  6085. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  6086. # GNU General Public License for more details.
  6087. # You should have received a copy of the GNU General Public License
  6088. # along with this program; if not, write to the Free Software
  6089. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  6090. # 02111-1307, USA.
  6091. # One issue with vendor `install' (even GNU) is that you can't
  6092. # specify the program used to strip binaries. This is especially
  6093. # annoying in cross-compiling environments, where the build's strip
  6094. # is unlikely to handle the host's binaries.
  6095. # Fortunately install-sh will honor a STRIPPROG variable, so we
  6096. # always use install-sh in `make install-strip', and initialize
  6097. # STRIPPROG with the value of the STRIP variable (set by the user).
  6098. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  6099. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  6100. # Installed binaries are usually stripped using `strip' when the user
  6101. # run `make install-strip'. However `strip' might not be the right
  6102. # tool to use in cross-compilation environments, therefore Automake
  6103. # will honor the `STRIP' environment variable to overrule this program.
  6104. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  6105. if test "$cross_compiling" != no; then
  6106. AC_CHECK_TOOL([STRIP], [strip], :)
  6107. fi
  6108. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  6109. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  6110. m4_include([acinclude.m4])