aclocal.m4 275 KB

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