configure 452 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libltdl 2.4.3a.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: [email protected] about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libltdl'
  542. PACKAGE_TARNAME='libltdl'
  543. PACKAGE_VERSION='2.4.3a'
  544. PACKAGE_STRING='libltdl 2.4.3a'
  545. PACKAGE_BUGREPORT='[email protected]'
  546. PACKAGE_URL=''
  547. ac_unique_file="ltdl.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LTDLOPEN
  587. LT_CONFIG_H
  588. CONVENIENCE_LTDL_FALSE
  589. CONVENIENCE_LTDL_TRUE
  590. INSTALL_LTDL_FALSE
  591. INSTALL_LTDL_TRUE
  592. LT_ARGZ_H
  593. LIBOBJS
  594. sys_symbol_underscore
  595. LIBADD_DL
  596. LT_DLPREOPEN
  597. LIBADD_DLD_LINK
  598. LIBADD_SHL_LOAD
  599. LIBADD_DLOPEN
  600. LT_DLLOADERS
  601. CPP
  602. LT_SYS_LIBRARY_PATH
  603. OTOOL64
  604. OTOOL
  605. LIPO
  606. NMEDIT
  607. DSYMUTIL
  608. MANIFEST_TOOL
  609. RANLIB
  610. ac_ct_AR
  611. AR
  612. LN_S
  613. NM
  614. ac_ct_DUMPBIN
  615. DUMPBIN
  616. LD
  617. FGREP
  618. EGREP
  619. GREP
  620. SED
  621. am__fastdepCC_FALSE
  622. am__fastdepCC_TRUE
  623. CCDEPMODE
  624. am__nodep
  625. AMDEPBACKSLASH
  626. AMDEP_FALSE
  627. AMDEP_TRUE
  628. am__include
  629. DEPDIR
  630. OBJEXT
  631. EXEEXT
  632. ac_ct_CC
  633. CPPFLAGS
  634. LDFLAGS
  635. CFLAGS
  636. CC
  637. host_os
  638. host_vendor
  639. host_cpu
  640. host
  641. build_os
  642. build_vendor
  643. build_cpu
  644. build
  645. LIBTOOL
  646. OBJDUMP
  647. DLLTOOL
  648. AS
  649. AM_BACKSLASH
  650. AM_DEFAULT_VERBOSITY
  651. AM_DEFAULT_V
  652. AM_V
  653. am__untar
  654. am__tar
  655. AMTAR
  656. am__leading_dot
  657. SET_MAKE
  658. AWK
  659. mkdir_p
  660. MKDIR_P
  661. INSTALL_STRIP_PROGRAM
  662. STRIP
  663. install_sh
  664. MAKEINFO
  665. AUTOHEADER
  666. AUTOMAKE
  667. AUTOCONF
  668. ACLOCAL
  669. VERSION
  670. PACKAGE
  671. CYGPATH_W
  672. am__isrc
  673. INSTALL_DATA
  674. INSTALL_SCRIPT
  675. INSTALL_PROGRAM
  676. target_alias
  677. host_alias
  678. build_alias
  679. LIBS
  680. ECHO_T
  681. ECHO_N
  682. ECHO_C
  683. DEFS
  684. mandir
  685. localedir
  686. libdir
  687. psdir
  688. pdfdir
  689. dvidir
  690. htmldir
  691. infodir
  692. docdir
  693. oldincludedir
  694. includedir
  695. runstatedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL
  715. am__quote'
  716. ac_subst_files=''
  717. ac_user_opts='
  718. enable_option_checking
  719. enable_silent_rules
  720. enable_shared
  721. enable_static
  722. with_pic
  723. enable_fast_install
  724. with_aix_soname
  725. enable_dependency_tracking
  726. with_gnu_ld
  727. with_sysroot
  728. enable_libtool_lock
  729. enable_ltdl_install
  730. '
  731. ac_precious_vars='build_alias
  732. host_alias
  733. target_alias
  734. CC
  735. CFLAGS
  736. LDFLAGS
  737. LIBS
  738. CPPFLAGS
  739. LT_SYS_LIBRARY_PATH
  740. CPP'
  741. # Initialize some variables set by options.
  742. ac_init_help=
  743. ac_init_version=false
  744. ac_unrecognized_opts=
  745. ac_unrecognized_sep=
  746. # The variables have the same names as the options, with
  747. # dashes changed to underlines.
  748. cache_file=/dev/null
  749. exec_prefix=NONE
  750. no_create=
  751. no_recursion=
  752. prefix=NONE
  753. program_prefix=NONE
  754. program_suffix=NONE
  755. program_transform_name=s,x,x,
  756. silent=
  757. site=
  758. srcdir=
  759. verbose=
  760. x_includes=NONE
  761. x_libraries=NONE
  762. # Installation directory options.
  763. # These are left unexpanded so users can "make install exec_prefix=/foo"
  764. # and all the variables that are supposed to be based on exec_prefix
  765. # by default will actually change.
  766. # Use braces instead of parens because sh, perl, etc. also accept them.
  767. # (The list follows the same order as the GNU Coding Standards.)
  768. bindir='${exec_prefix}/bin'
  769. sbindir='${exec_prefix}/sbin'
  770. libexecdir='${exec_prefix}/libexec'
  771. datarootdir='${prefix}/share'
  772. datadir='${datarootdir}'
  773. sysconfdir='${prefix}/etc'
  774. sharedstatedir='${prefix}/com'
  775. localstatedir='${prefix}/var'
  776. runstatedir='${localstatedir}/run'
  777. includedir='${prefix}/include'
  778. oldincludedir='/usr/include'
  779. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  780. infodir='${datarootdir}/info'
  781. htmldir='${docdir}'
  782. dvidir='${docdir}'
  783. pdfdir='${docdir}'
  784. psdir='${docdir}'
  785. libdir='${exec_prefix}/lib'
  786. localedir='${datarootdir}/locale'
  787. mandir='${datarootdir}/man'
  788. ac_prev=
  789. ac_dashdash=
  790. for ac_option
  791. do
  792. # If the previous option needs an argument, assign it.
  793. if test -n "$ac_prev"; then
  794. eval $ac_prev=\$ac_option
  795. ac_prev=
  796. continue
  797. fi
  798. case $ac_option in
  799. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  800. *=) ac_optarg= ;;
  801. *) ac_optarg=yes ;;
  802. esac
  803. # Accept the important Cygnus configure options, so we can diagnose typos.
  804. case $ac_dashdash$ac_option in
  805. --)
  806. ac_dashdash=yes ;;
  807. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  808. ac_prev=bindir ;;
  809. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  810. bindir=$ac_optarg ;;
  811. -build | --build | --buil | --bui | --bu)
  812. ac_prev=build_alias ;;
  813. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  814. build_alias=$ac_optarg ;;
  815. -cache-file | --cache-file | --cache-fil | --cache-fi \
  816. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  817. ac_prev=cache_file ;;
  818. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  819. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  820. cache_file=$ac_optarg ;;
  821. --config-cache | -C)
  822. cache_file=config.cache ;;
  823. -datadir | --datadir | --datadi | --datad)
  824. ac_prev=datadir ;;
  825. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  826. datadir=$ac_optarg ;;
  827. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  828. | --dataroo | --dataro | --datar)
  829. ac_prev=datarootdir ;;
  830. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  831. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  832. datarootdir=$ac_optarg ;;
  833. -disable-* | --disable-*)
  834. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  835. # Reject names that are not valid shell variable names.
  836. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  837. as_fn_error $? "invalid feature name: $ac_useropt"
  838. ac_useropt_orig=$ac_useropt
  839. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  840. case $ac_user_opts in
  841. *"
  842. "enable_$ac_useropt"
  843. "*) ;;
  844. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  845. ac_unrecognized_sep=', ';;
  846. esac
  847. eval enable_$ac_useropt=no ;;
  848. -docdir | --docdir | --docdi | --doc | --do)
  849. ac_prev=docdir ;;
  850. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  851. docdir=$ac_optarg ;;
  852. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  853. ac_prev=dvidir ;;
  854. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  855. dvidir=$ac_optarg ;;
  856. -enable-* | --enable-*)
  857. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  858. # Reject names that are not valid shell variable names.
  859. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  860. as_fn_error $? "invalid feature name: $ac_useropt"
  861. ac_useropt_orig=$ac_useropt
  862. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  863. case $ac_user_opts in
  864. *"
  865. "enable_$ac_useropt"
  866. "*) ;;
  867. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  868. ac_unrecognized_sep=', ';;
  869. esac
  870. eval enable_$ac_useropt=\$ac_optarg ;;
  871. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  872. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  873. | --exec | --exe | --ex)
  874. ac_prev=exec_prefix ;;
  875. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  876. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  877. | --exec=* | --exe=* | --ex=*)
  878. exec_prefix=$ac_optarg ;;
  879. -gas | --gas | --ga | --g)
  880. # Obsolete; use --with-gas.
  881. with_gas=yes ;;
  882. -help | --help | --hel | --he | -h)
  883. ac_init_help=long ;;
  884. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  885. ac_init_help=recursive ;;
  886. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  887. ac_init_help=short ;;
  888. -host | --host | --hos | --ho)
  889. ac_prev=host_alias ;;
  890. -host=* | --host=* | --hos=* | --ho=*)
  891. host_alias=$ac_optarg ;;
  892. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  893. ac_prev=htmldir ;;
  894. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  895. | --ht=*)
  896. htmldir=$ac_optarg ;;
  897. -includedir | --includedir | --includedi | --included | --include \
  898. | --includ | --inclu | --incl | --inc)
  899. ac_prev=includedir ;;
  900. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  901. | --includ=* | --inclu=* | --incl=* | --inc=*)
  902. includedir=$ac_optarg ;;
  903. -infodir | --infodir | --infodi | --infod | --info | --inf)
  904. ac_prev=infodir ;;
  905. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  906. infodir=$ac_optarg ;;
  907. -libdir | --libdir | --libdi | --libd)
  908. ac_prev=libdir ;;
  909. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  910. libdir=$ac_optarg ;;
  911. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  912. | --libexe | --libex | --libe)
  913. ac_prev=libexecdir ;;
  914. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  915. | --libexe=* | --libex=* | --libe=*)
  916. libexecdir=$ac_optarg ;;
  917. -localedir | --localedir | --localedi | --localed | --locale)
  918. ac_prev=localedir ;;
  919. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  920. localedir=$ac_optarg ;;
  921. -localstatedir | --localstatedir | --localstatedi | --localstated \
  922. | --localstate | --localstat | --localsta | --localst | --locals)
  923. ac_prev=localstatedir ;;
  924. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  925. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  926. localstatedir=$ac_optarg ;;
  927. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  928. ac_prev=mandir ;;
  929. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  930. mandir=$ac_optarg ;;
  931. -nfp | --nfp | --nf)
  932. # Obsolete; use --without-fp.
  933. with_fp=no ;;
  934. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  935. | --no-cr | --no-c | -n)
  936. no_create=yes ;;
  937. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  938. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  939. no_recursion=yes ;;
  940. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  941. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  942. | --oldin | --oldi | --old | --ol | --o)
  943. ac_prev=oldincludedir ;;
  944. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  945. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  946. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  947. oldincludedir=$ac_optarg ;;
  948. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  949. ac_prev=prefix ;;
  950. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  951. prefix=$ac_optarg ;;
  952. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  953. | --program-pre | --program-pr | --program-p)
  954. ac_prev=program_prefix ;;
  955. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  956. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  957. program_prefix=$ac_optarg ;;
  958. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  959. | --program-suf | --program-su | --program-s)
  960. ac_prev=program_suffix ;;
  961. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  962. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  963. program_suffix=$ac_optarg ;;
  964. -program-transform-name | --program-transform-name \
  965. | --program-transform-nam | --program-transform-na \
  966. | --program-transform-n | --program-transform- \
  967. | --program-transform | --program-transfor \
  968. | --program-transfo | --program-transf \
  969. | --program-trans | --program-tran \
  970. | --progr-tra | --program-tr | --program-t)
  971. ac_prev=program_transform_name ;;
  972. -program-transform-name=* | --program-transform-name=* \
  973. | --program-transform-nam=* | --program-transform-na=* \
  974. | --program-transform-n=* | --program-transform-=* \
  975. | --program-transform=* | --program-transfor=* \
  976. | --program-transfo=* | --program-transf=* \
  977. | --program-trans=* | --program-tran=* \
  978. | --progr-tra=* | --program-tr=* | --program-t=*)
  979. program_transform_name=$ac_optarg ;;
  980. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  981. ac_prev=pdfdir ;;
  982. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  983. pdfdir=$ac_optarg ;;
  984. -psdir | --psdir | --psdi | --psd | --ps)
  985. ac_prev=psdir ;;
  986. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  987. psdir=$ac_optarg ;;
  988. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  989. | -silent | --silent | --silen | --sile | --sil)
  990. silent=yes ;;
  991. -runstatedir | --runstatedir | --runstatedi | --runstated \
  992. | --runstate | --runstat | --runsta | --runst | --runs \
  993. | --run | --ru | --r)
  994. ac_prev=runstatedir ;;
  995. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  996. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  997. | --run=* | --ru=* | --r=*)
  998. runstatedir=$ac_optarg ;;
  999. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1000. ac_prev=sbindir ;;
  1001. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1002. | --sbi=* | --sb=*)
  1003. sbindir=$ac_optarg ;;
  1004. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1005. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1006. | --sharedst | --shareds | --shared | --share | --shar \
  1007. | --sha | --sh)
  1008. ac_prev=sharedstatedir ;;
  1009. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1010. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1011. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1012. | --sha=* | --sh=*)
  1013. sharedstatedir=$ac_optarg ;;
  1014. -site | --site | --sit)
  1015. ac_prev=site ;;
  1016. -site=* | --site=* | --sit=*)
  1017. site=$ac_optarg ;;
  1018. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1019. ac_prev=srcdir ;;
  1020. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1021. srcdir=$ac_optarg ;;
  1022. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1023. | --syscon | --sysco | --sysc | --sys | --sy)
  1024. ac_prev=sysconfdir ;;
  1025. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1026. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1027. sysconfdir=$ac_optarg ;;
  1028. -target | --target | --targe | --targ | --tar | --ta | --t)
  1029. ac_prev=target_alias ;;
  1030. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1031. target_alias=$ac_optarg ;;
  1032. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1033. verbose=yes ;;
  1034. -version | --version | --versio | --versi | --vers | -V)
  1035. ac_init_version=: ;;
  1036. -with-* | --with-*)
  1037. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1040. as_fn_error $? "invalid package name: $ac_useropt"
  1041. ac_useropt_orig=$ac_useropt
  1042. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1043. case $ac_user_opts in
  1044. *"
  1045. "with_$ac_useropt"
  1046. "*) ;;
  1047. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1048. ac_unrecognized_sep=', ';;
  1049. esac
  1050. eval with_$ac_useropt=\$ac_optarg ;;
  1051. -without-* | --without-*)
  1052. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1053. # Reject names that are not valid shell variable names.
  1054. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1055. as_fn_error $? "invalid package name: $ac_useropt"
  1056. ac_useropt_orig=$ac_useropt
  1057. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1058. case $ac_user_opts in
  1059. *"
  1060. "with_$ac_useropt"
  1061. "*) ;;
  1062. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1063. ac_unrecognized_sep=', ';;
  1064. esac
  1065. eval with_$ac_useropt=no ;;
  1066. --x)
  1067. # Obsolete; use --with-x.
  1068. with_x=yes ;;
  1069. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1070. | --x-incl | --x-inc | --x-in | --x-i)
  1071. ac_prev=x_includes ;;
  1072. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1073. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1074. x_includes=$ac_optarg ;;
  1075. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1076. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1077. ac_prev=x_libraries ;;
  1078. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1079. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1080. x_libraries=$ac_optarg ;;
  1081. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1082. Try \`$0 --help' for more information"
  1083. ;;
  1084. *=*)
  1085. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1086. # Reject names that are not valid shell variable names.
  1087. case $ac_envvar in #(
  1088. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1089. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1090. esac
  1091. eval $ac_envvar=\$ac_optarg
  1092. export $ac_envvar ;;
  1093. *)
  1094. # FIXME: should be removed in autoconf 3.0.
  1095. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1096. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1097. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1098. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1099. ;;
  1100. esac
  1101. done
  1102. if test -n "$ac_prev"; then
  1103. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1104. as_fn_error $? "missing argument to $ac_option"
  1105. fi
  1106. if test -n "$ac_unrecognized_opts"; then
  1107. case $enable_option_checking in
  1108. no) ;;
  1109. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1110. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1111. esac
  1112. fi
  1113. # Check all directory arguments for consistency.
  1114. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1115. datadir sysconfdir sharedstatedir localstatedir includedir \
  1116. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1117. libdir localedir mandir runstatedir
  1118. do
  1119. eval ac_val=\$$ac_var
  1120. # Remove trailing slashes.
  1121. case $ac_val in
  1122. */ )
  1123. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1124. eval $ac_var=\$ac_val;;
  1125. esac
  1126. # Be sure to have absolute directory names.
  1127. case $ac_val in
  1128. [\\/$]* | ?:[\\/]* ) continue;;
  1129. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1130. esac
  1131. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1132. done
  1133. # There might be people who depend on the old broken behavior: `$host'
  1134. # used to hold the argument of --host etc.
  1135. # FIXME: To remove some day.
  1136. build=$build_alias
  1137. host=$host_alias
  1138. target=$target_alias
  1139. # FIXME: To remove some day.
  1140. if test "x$host_alias" != x; then
  1141. if test "x$build_alias" = x; then
  1142. cross_compiling=maybe
  1143. elif test "x$build_alias" != "x$host_alias"; then
  1144. cross_compiling=yes
  1145. fi
  1146. fi
  1147. ac_tool_prefix=
  1148. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1149. test "$silent" = yes && exec 6>/dev/null
  1150. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1151. ac_ls_di=`ls -di .` &&
  1152. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1153. as_fn_error $? "working directory cannot be determined"
  1154. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1155. as_fn_error $? "pwd does not report name of working directory"
  1156. # Find the source files, if location was not specified.
  1157. if test -z "$srcdir"; then
  1158. ac_srcdir_defaulted=yes
  1159. # Try the directory containing this script, then the parent directory.
  1160. ac_confdir=`$as_dirname -- "$as_myself" ||
  1161. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1162. X"$as_myself" : 'X\(//\)[^/]' \| \
  1163. X"$as_myself" : 'X\(//\)$' \| \
  1164. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1165. $as_echo X"$as_myself" |
  1166. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1167. s//\1/
  1168. q
  1169. }
  1170. /^X\(\/\/\)[^/].*/{
  1171. s//\1/
  1172. q
  1173. }
  1174. /^X\(\/\/\)$/{
  1175. s//\1/
  1176. q
  1177. }
  1178. /^X\(\/\).*/{
  1179. s//\1/
  1180. q
  1181. }
  1182. s/.*/./; q'`
  1183. srcdir=$ac_confdir
  1184. if test ! -r "$srcdir/$ac_unique_file"; then
  1185. srcdir=..
  1186. fi
  1187. else
  1188. ac_srcdir_defaulted=no
  1189. fi
  1190. if test ! -r "$srcdir/$ac_unique_file"; then
  1191. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1192. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1193. fi
  1194. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1195. ac_abs_confdir=`(
  1196. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1197. pwd)`
  1198. # When building in place, set srcdir=.
  1199. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1200. srcdir=.
  1201. fi
  1202. # Remove unnecessary trailing slashes from srcdir.
  1203. # Double slashes in file names in object file debugging info
  1204. # mess up M-x gdb in Emacs.
  1205. case $srcdir in
  1206. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1207. esac
  1208. for ac_var in $ac_precious_vars; do
  1209. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1210. eval ac_env_${ac_var}_value=\$${ac_var}
  1211. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1212. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1213. done
  1214. #
  1215. # Report the --help message.
  1216. #
  1217. if test "$ac_init_help" = "long"; then
  1218. # Omit some internal or obsolete options to make the list less imposing.
  1219. # This message is too long to be a string in the A/UX 3.1 sh.
  1220. cat <<_ACEOF
  1221. \`configure' configures libltdl 2.4.3a to adapt to many kinds of systems.
  1222. Usage: $0 [OPTION]... [VAR=VALUE]...
  1223. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1224. VAR=VALUE. See below for descriptions of some of the useful variables.
  1225. Defaults for the options are specified in brackets.
  1226. Configuration:
  1227. -h, --help display this help and exit
  1228. --help=short display options specific to this package
  1229. --help=recursive display the short help of all the included packages
  1230. -V, --version display version information and exit
  1231. -q, --quiet, --silent do not print \`checking ...' messages
  1232. --cache-file=FILE cache test results in FILE [disabled]
  1233. -C, --config-cache alias for \`--cache-file=config.cache'
  1234. -n, --no-create do not create output files
  1235. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1236. Installation directories:
  1237. --prefix=PREFIX install architecture-independent files in PREFIX
  1238. [$ac_default_prefix]
  1239. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1240. [PREFIX]
  1241. By default, \`make install' will install all the files in
  1242. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1243. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1244. for instance \`--prefix=\$HOME'.
  1245. For better control, use the options below.
  1246. Fine tuning of the installation directories:
  1247. --bindir=DIR user executables [EPREFIX/bin]
  1248. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1249. --libexecdir=DIR program executables [EPREFIX/libexec]
  1250. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1251. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1252. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1253. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1254. --libdir=DIR object code libraries [EPREFIX/lib]
  1255. --includedir=DIR C header files [PREFIX/include]
  1256. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1257. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1258. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1259. --infodir=DIR info documentation [DATAROOTDIR/info]
  1260. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1261. --mandir=DIR man documentation [DATAROOTDIR/man]
  1262. --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
  1263. --htmldir=DIR html documentation [DOCDIR]
  1264. --dvidir=DIR dvi documentation [DOCDIR]
  1265. --pdfdir=DIR pdf documentation [DOCDIR]
  1266. --psdir=DIR ps documentation [DOCDIR]
  1267. _ACEOF
  1268. cat <<\_ACEOF
  1269. Program names:
  1270. --program-prefix=PREFIX prepend PREFIX to installed program names
  1271. --program-suffix=SUFFIX append SUFFIX to installed program names
  1272. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1273. System types:
  1274. --build=BUILD configure for building on BUILD [guessed]
  1275. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1276. _ACEOF
  1277. fi
  1278. if test -n "$ac_init_help"; then
  1279. case $ac_init_help in
  1280. short | recursive ) echo "Configuration of libltdl 2.4.3a:";;
  1281. esac
  1282. cat <<\_ACEOF
  1283. Optional Features:
  1284. --disable-option-checking ignore unrecognized --enable/--with options
  1285. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1286. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1287. --enable-silent-rules less verbose build output (undo: "make V=1")
  1288. --disable-silent-rules verbose build output (undo: "make V=0")
  1289. --enable-shared[=PKGS] build shared libraries [default=yes]
  1290. --enable-static[=PKGS] build static libraries [default=yes]
  1291. --enable-fast-install[=PKGS]
  1292. optimize for fast installation [default=yes]
  1293. --enable-dependency-tracking
  1294. do not reject slow dependency extractors
  1295. --disable-dependency-tracking
  1296. speeds up one-time build
  1297. --disable-libtool-lock avoid locking (might break parallel builds)
  1298. --enable-ltdl-install install libltdl
  1299. Optional Packages:
  1300. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1301. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1302. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1303. both]
  1304. --with-aix-soname=aix|svr4|both
  1305. shared library versioning (aka "SONAME") variant to
  1306. provide on AIX, [default=aix].
  1307. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1308. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1309. compiler's sysroot if not specified).
  1310. Some influential environment variables:
  1311. CC C compiler command
  1312. CFLAGS C compiler flags
  1313. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1314. nonstandard directory <lib dir>
  1315. LIBS libraries to pass to the linker, e.g. -l<library>
  1316. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1317. you have headers in a nonstandard directory <include dir>
  1318. LT_SYS_LIBRARY_PATH
  1319. User-defined run-time library search path.
  1320. CPP C preprocessor
  1321. Use these variables to override the choices made by `configure' or to help
  1322. it to find libraries and programs with nonstandard names/locations.
  1323. Report bugs to <[email protected]>.
  1324. _ACEOF
  1325. ac_status=$?
  1326. fi
  1327. if test "$ac_init_help" = "recursive"; then
  1328. # If there are subdirs, report their specific --help.
  1329. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1330. test -d "$ac_dir" ||
  1331. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1332. continue
  1333. ac_builddir=.
  1334. case "$ac_dir" in
  1335. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *)
  1337. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1338. # A ".." for each directory in $ac_dir_suffix.
  1339. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1340. case $ac_top_builddir_sub in
  1341. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1343. esac ;;
  1344. esac
  1345. ac_abs_top_builddir=$ac_pwd
  1346. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1347. # for backward compatibility:
  1348. ac_top_builddir=$ac_top_build_prefix
  1349. case $srcdir in
  1350. .) # We are building in place.
  1351. ac_srcdir=.
  1352. ac_top_srcdir=$ac_top_builddir_sub
  1353. ac_abs_top_srcdir=$ac_pwd ;;
  1354. [\\/]* | ?:[\\/]* ) # Absolute name.
  1355. ac_srcdir=$srcdir$ac_dir_suffix;
  1356. ac_top_srcdir=$srcdir
  1357. ac_abs_top_srcdir=$srcdir ;;
  1358. *) # Relative name.
  1359. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1360. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1361. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1362. esac
  1363. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1364. cd "$ac_dir" || { ac_status=$?; continue; }
  1365. # Check for guested configure.
  1366. if test -f "$ac_srcdir/configure.gnu"; then
  1367. echo &&
  1368. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1369. elif test -f "$ac_srcdir/configure"; then
  1370. echo &&
  1371. $SHELL "$ac_srcdir/configure" --help=recursive
  1372. else
  1373. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1374. fi || ac_status=$?
  1375. cd "$ac_pwd" || { ac_status=$?; break; }
  1376. done
  1377. fi
  1378. test -n "$ac_init_help" && exit $ac_status
  1379. if $ac_init_version; then
  1380. cat <<\_ACEOF
  1381. libltdl configure 2.4.3a
  1382. generated by GNU Autoconf 2.69
  1383. Copyright (C) 2012 Free Software Foundation, Inc.
  1384. This configure script is free software; the Free Software Foundation
  1385. gives unlimited permission to copy, distribute and modify it.
  1386. _ACEOF
  1387. exit
  1388. fi
  1389. ## ------------------------ ##
  1390. ## Autoconf initialization. ##
  1391. ## ------------------------ ##
  1392. # ac_fn_c_try_compile LINENO
  1393. # --------------------------
  1394. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1395. ac_fn_c_try_compile ()
  1396. {
  1397. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1398. rm -f conftest.$ac_objext
  1399. if { { ac_try="$ac_compile"
  1400. case "(($ac_try" in
  1401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1402. *) ac_try_echo=$ac_try;;
  1403. esac
  1404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1405. $as_echo "$ac_try_echo"; } >&5
  1406. (eval "$ac_compile") 2>conftest.err
  1407. ac_status=$?
  1408. if test -s conftest.err; then
  1409. grep -v '^ *+' conftest.err >conftest.er1
  1410. cat conftest.er1 >&5
  1411. mv -f conftest.er1 conftest.err
  1412. fi
  1413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1414. test $ac_status = 0; } && {
  1415. test -z "$ac_c_werror_flag" ||
  1416. test ! -s conftest.err
  1417. } && test -s conftest.$ac_objext; then :
  1418. ac_retval=0
  1419. else
  1420. $as_echo "$as_me: failed program was:" >&5
  1421. sed 's/^/| /' conftest.$ac_ext >&5
  1422. ac_retval=1
  1423. fi
  1424. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1425. as_fn_set_status $ac_retval
  1426. } # ac_fn_c_try_compile
  1427. # ac_fn_c_try_link LINENO
  1428. # -----------------------
  1429. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1430. ac_fn_c_try_link ()
  1431. {
  1432. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1433. rm -f conftest.$ac_objext conftest$ac_exeext
  1434. if { { ac_try="$ac_link"
  1435. case "(($ac_try" in
  1436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1437. *) ac_try_echo=$ac_try;;
  1438. esac
  1439. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1440. $as_echo "$ac_try_echo"; } >&5
  1441. (eval "$ac_link") 2>conftest.err
  1442. ac_status=$?
  1443. if test -s conftest.err; then
  1444. grep -v '^ *+' conftest.err >conftest.er1
  1445. cat conftest.er1 >&5
  1446. mv -f conftest.er1 conftest.err
  1447. fi
  1448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } && {
  1450. test -z "$ac_c_werror_flag" ||
  1451. test ! -s conftest.err
  1452. } && test -s conftest$ac_exeext && {
  1453. test "$cross_compiling" = yes ||
  1454. test -x conftest$ac_exeext
  1455. }; then :
  1456. ac_retval=0
  1457. else
  1458. $as_echo "$as_me: failed program was:" >&5
  1459. sed 's/^/| /' conftest.$ac_ext >&5
  1460. ac_retval=1
  1461. fi
  1462. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1463. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1464. # interfere with the next link command; also delete a directory that is
  1465. # left behind by Apple's compiler. We do this before executing the actions.
  1466. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1467. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1468. as_fn_set_status $ac_retval
  1469. } # ac_fn_c_try_link
  1470. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1471. # -------------------------------------------------------
  1472. # Tests whether HEADER exists and can be compiled using the include files in
  1473. # INCLUDES, setting the cache variable VAR accordingly.
  1474. ac_fn_c_check_header_compile ()
  1475. {
  1476. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1478. $as_echo_n "checking for $2... " >&6; }
  1479. if eval \${$3+:} false; then :
  1480. $as_echo_n "(cached) " >&6
  1481. else
  1482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1483. /* end confdefs.h. */
  1484. $4
  1485. #include <$2>
  1486. _ACEOF
  1487. if ac_fn_c_try_compile "$LINENO"; then :
  1488. eval "$3=yes"
  1489. else
  1490. eval "$3=no"
  1491. fi
  1492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1493. fi
  1494. eval ac_res=\$$3
  1495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1496. $as_echo "$ac_res" >&6; }
  1497. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1498. } # ac_fn_c_check_header_compile
  1499. # ac_fn_c_try_cpp LINENO
  1500. # ----------------------
  1501. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1502. ac_fn_c_try_cpp ()
  1503. {
  1504. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1505. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1506. case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1511. $as_echo "$ac_try_echo"; } >&5
  1512. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1513. ac_status=$?
  1514. if test -s conftest.err; then
  1515. grep -v '^ *+' conftest.err >conftest.er1
  1516. cat conftest.er1 >&5
  1517. mv -f conftest.er1 conftest.err
  1518. fi
  1519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1520. test $ac_status = 0; } > conftest.i && {
  1521. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1522. test ! -s conftest.err
  1523. }; then :
  1524. ac_retval=0
  1525. else
  1526. $as_echo "$as_me: failed program was:" >&5
  1527. sed 's/^/| /' conftest.$ac_ext >&5
  1528. ac_retval=1
  1529. fi
  1530. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1531. as_fn_set_status $ac_retval
  1532. } # ac_fn_c_try_cpp
  1533. # ac_fn_c_try_run LINENO
  1534. # ----------------------
  1535. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1536. # that executables *can* be run.
  1537. ac_fn_c_try_run ()
  1538. {
  1539. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1540. if { { ac_try="$ac_link"
  1541. case "(($ac_try" in
  1542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1543. *) ac_try_echo=$ac_try;;
  1544. esac
  1545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1546. $as_echo "$ac_try_echo"; } >&5
  1547. (eval "$ac_link") 2>&5
  1548. ac_status=$?
  1549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1550. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1551. { { case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_try") 2>&5
  1558. ac_status=$?
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; }; }; then :
  1561. ac_retval=0
  1562. else
  1563. $as_echo "$as_me: program exited with status $ac_status" >&5
  1564. $as_echo "$as_me: failed program was:" >&5
  1565. sed 's/^/| /' conftest.$ac_ext >&5
  1566. ac_retval=$ac_status
  1567. fi
  1568. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1569. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1570. as_fn_set_status $ac_retval
  1571. } # ac_fn_c_try_run
  1572. # ac_fn_c_check_func LINENO FUNC VAR
  1573. # ----------------------------------
  1574. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1575. ac_fn_c_check_func ()
  1576. {
  1577. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1579. $as_echo_n "checking for $2... " >&6; }
  1580. if eval \${$3+:} false; then :
  1581. $as_echo_n "(cached) " >&6
  1582. else
  1583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1584. /* end confdefs.h. */
  1585. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1586. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1587. #define $2 innocuous_$2
  1588. /* System header to define __stub macros and hopefully few prototypes,
  1589. which can conflict with char $2 (); below.
  1590. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1591. <limits.h> exists even on freestanding compilers. */
  1592. #ifdef __STDC__
  1593. # include <limits.h>
  1594. #else
  1595. # include <assert.h>
  1596. #endif
  1597. #undef $2
  1598. /* Override any GCC internal prototype to avoid an error.
  1599. Use char because int might match the return type of a GCC
  1600. builtin and then its argument prototype would still apply. */
  1601. #ifdef __cplusplus
  1602. extern "C"
  1603. #endif
  1604. char $2 ();
  1605. /* The GNU C library defines this for functions which it implements
  1606. to always fail with ENOSYS. Some functions are actually named
  1607. something starting with __ and the normal name is an alias. */
  1608. #if defined __stub_$2 || defined __stub___$2
  1609. choke me
  1610. #endif
  1611. int
  1612. main ()
  1613. {
  1614. return $2 ();
  1615. ;
  1616. return 0;
  1617. }
  1618. _ACEOF
  1619. if ac_fn_c_try_link "$LINENO"; then :
  1620. eval "$3=yes"
  1621. else
  1622. eval "$3=no"
  1623. fi
  1624. rm -f core conftest.err conftest.$ac_objext \
  1625. conftest$ac_exeext conftest.$ac_ext
  1626. fi
  1627. eval ac_res=\$$3
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. $as_echo "$ac_res" >&6; }
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. } # ac_fn_c_check_func
  1632. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1633. # ---------------------------------------------
  1634. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1635. # accordingly.
  1636. ac_fn_c_check_decl ()
  1637. {
  1638. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1639. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1640. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1642. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1643. if eval \${$3+:} false; then :
  1644. $as_echo_n "(cached) " >&6
  1645. else
  1646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1647. /* end confdefs.h. */
  1648. $4
  1649. int
  1650. main ()
  1651. {
  1652. #ifndef $as_decl_name
  1653. #ifdef __cplusplus
  1654. (void) $as_decl_use;
  1655. #else
  1656. (void) $as_decl_name;
  1657. #endif
  1658. #endif
  1659. ;
  1660. return 0;
  1661. }
  1662. _ACEOF
  1663. if ac_fn_c_try_compile "$LINENO"; then :
  1664. eval "$3=yes"
  1665. else
  1666. eval "$3=no"
  1667. fi
  1668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1669. fi
  1670. eval ac_res=\$$3
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1672. $as_echo "$ac_res" >&6; }
  1673. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1674. } # ac_fn_c_check_decl
  1675. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1676. # -------------------------------------------
  1677. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1678. # variable VAR accordingly.
  1679. ac_fn_c_check_type ()
  1680. {
  1681. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1683. $as_echo_n "checking for $2... " >&6; }
  1684. if eval \${$3+:} false; then :
  1685. $as_echo_n "(cached) " >&6
  1686. else
  1687. eval "$3=no"
  1688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1689. /* end confdefs.h. */
  1690. $4
  1691. int
  1692. main ()
  1693. {
  1694. if (sizeof ($2))
  1695. return 0;
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. if ac_fn_c_try_compile "$LINENO"; then :
  1701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1702. /* end confdefs.h. */
  1703. $4
  1704. int
  1705. main ()
  1706. {
  1707. if (sizeof (($2)))
  1708. return 0;
  1709. ;
  1710. return 0;
  1711. }
  1712. _ACEOF
  1713. if ac_fn_c_try_compile "$LINENO"; then :
  1714. else
  1715. eval "$3=yes"
  1716. fi
  1717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1718. fi
  1719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1720. fi
  1721. eval ac_res=\$$3
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1723. $as_echo "$ac_res" >&6; }
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. } # ac_fn_c_check_type
  1726. cat >config.log <<_ACEOF
  1727. This file contains any messages produced by compilers while
  1728. running configure, to aid debugging if configure makes a mistake.
  1729. It was created by libltdl $as_me 2.4.3a, which was
  1730. generated by GNU Autoconf 2.69. Invocation command line was
  1731. $ $0 $@
  1732. _ACEOF
  1733. exec 5>>config.log
  1734. {
  1735. cat <<_ASUNAME
  1736. ## --------- ##
  1737. ## Platform. ##
  1738. ## --------- ##
  1739. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1740. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1741. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1742. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1743. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1744. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1745. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1746. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1747. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1748. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1749. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1750. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1751. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1752. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1753. _ASUNAME
  1754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1755. for as_dir in $PATH
  1756. do
  1757. IFS=$as_save_IFS
  1758. test -z "$as_dir" && as_dir=.
  1759. $as_echo "PATH: $as_dir"
  1760. done
  1761. IFS=$as_save_IFS
  1762. } >&5
  1763. cat >&5 <<_ACEOF
  1764. ## ----------- ##
  1765. ## Core tests. ##
  1766. ## ----------- ##
  1767. _ACEOF
  1768. # Keep a trace of the command line.
  1769. # Strip out --no-create and --no-recursion so they do not pile up.
  1770. # Strip out --silent because we don't want to record it for future runs.
  1771. # Also quote any args containing shell meta-characters.
  1772. # Make two passes to allow for proper duplicate-argument suppression.
  1773. ac_configure_args=
  1774. ac_configure_args0=
  1775. ac_configure_args1=
  1776. ac_must_keep_next=false
  1777. for ac_pass in 1 2
  1778. do
  1779. for ac_arg
  1780. do
  1781. case $ac_arg in
  1782. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1783. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1784. | -silent | --silent | --silen | --sile | --sil)
  1785. continue ;;
  1786. *\'*)
  1787. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1788. esac
  1789. case $ac_pass in
  1790. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1791. 2)
  1792. as_fn_append ac_configure_args1 " '$ac_arg'"
  1793. if test $ac_must_keep_next = true; then
  1794. ac_must_keep_next=false # Got value, back to normal.
  1795. else
  1796. case $ac_arg in
  1797. *=* | --config-cache | -C | -disable-* | --disable-* \
  1798. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1799. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1800. | -with-* | --with-* | -without-* | --without-* | --x)
  1801. case "$ac_configure_args0 " in
  1802. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1803. esac
  1804. ;;
  1805. -* ) ac_must_keep_next=true ;;
  1806. esac
  1807. fi
  1808. as_fn_append ac_configure_args " '$ac_arg'"
  1809. ;;
  1810. esac
  1811. done
  1812. done
  1813. { ac_configure_args0=; unset ac_configure_args0;}
  1814. { ac_configure_args1=; unset ac_configure_args1;}
  1815. # When interrupted or exit'd, cleanup temporary files, and complete
  1816. # config.log. We remove comments because anyway the quotes in there
  1817. # would cause problems or look ugly.
  1818. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1819. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1820. trap 'exit_status=$?
  1821. # Save into config.log some information that might help in debugging.
  1822. {
  1823. echo
  1824. $as_echo "## ---------------- ##
  1825. ## Cache variables. ##
  1826. ## ---------------- ##"
  1827. echo
  1828. # The following way of writing the cache mishandles newlines in values,
  1829. (
  1830. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1831. eval ac_val=\$$ac_var
  1832. case $ac_val in #(
  1833. *${as_nl}*)
  1834. case $ac_var in #(
  1835. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1836. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1837. esac
  1838. case $ac_var in #(
  1839. _ | IFS | as_nl) ;; #(
  1840. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1841. *) { eval $ac_var=; unset $ac_var;} ;;
  1842. esac ;;
  1843. esac
  1844. done
  1845. (set) 2>&1 |
  1846. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1847. *${as_nl}ac_space=\ *)
  1848. sed -n \
  1849. "s/'\''/'\''\\\\'\'''\''/g;
  1850. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1851. ;; #(
  1852. *)
  1853. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1854. ;;
  1855. esac |
  1856. sort
  1857. )
  1858. echo
  1859. $as_echo "## ----------------- ##
  1860. ## Output variables. ##
  1861. ## ----------------- ##"
  1862. echo
  1863. for ac_var in $ac_subst_vars
  1864. do
  1865. eval ac_val=\$$ac_var
  1866. case $ac_val in
  1867. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1868. esac
  1869. $as_echo "$ac_var='\''$ac_val'\''"
  1870. done | sort
  1871. echo
  1872. if test -n "$ac_subst_files"; then
  1873. $as_echo "## ------------------- ##
  1874. ## File substitutions. ##
  1875. ## ------------------- ##"
  1876. echo
  1877. for ac_var in $ac_subst_files
  1878. do
  1879. eval ac_val=\$$ac_var
  1880. case $ac_val in
  1881. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1882. esac
  1883. $as_echo "$ac_var='\''$ac_val'\''"
  1884. done | sort
  1885. echo
  1886. fi
  1887. if test -s confdefs.h; then
  1888. $as_echo "## ----------- ##
  1889. ## confdefs.h. ##
  1890. ## ----------- ##"
  1891. echo
  1892. cat confdefs.h
  1893. echo
  1894. fi
  1895. test "$ac_signal" != 0 &&
  1896. $as_echo "$as_me: caught signal $ac_signal"
  1897. $as_echo "$as_me: exit $exit_status"
  1898. } >&5
  1899. rm -f core *.core core.conftest.* &&
  1900. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1901. exit $exit_status
  1902. ' 0
  1903. for ac_signal in 1 2 13 15; do
  1904. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1905. done
  1906. ac_signal=0
  1907. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1908. rm -f -r conftest* confdefs.h
  1909. $as_echo "/* confdefs.h */" > confdefs.h
  1910. # Predefined preprocessor variables.
  1911. cat >>confdefs.h <<_ACEOF
  1912. #define PACKAGE_NAME "$PACKAGE_NAME"
  1913. _ACEOF
  1914. cat >>confdefs.h <<_ACEOF
  1915. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1916. _ACEOF
  1917. cat >>confdefs.h <<_ACEOF
  1918. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1919. _ACEOF
  1920. cat >>confdefs.h <<_ACEOF
  1921. #define PACKAGE_STRING "$PACKAGE_STRING"
  1922. _ACEOF
  1923. cat >>confdefs.h <<_ACEOF
  1924. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1925. _ACEOF
  1926. cat >>confdefs.h <<_ACEOF
  1927. #define PACKAGE_URL "$PACKAGE_URL"
  1928. _ACEOF
  1929. # Let the site file select an alternate cache file if it wants to.
  1930. # Prefer an explicitly selected file to automatically selected ones.
  1931. ac_site_file1=NONE
  1932. ac_site_file2=NONE
  1933. if test -n "$CONFIG_SITE"; then
  1934. # We do not want a PATH search for config.site.
  1935. case $CONFIG_SITE in #((
  1936. -*) ac_site_file1=./$CONFIG_SITE;;
  1937. */*) ac_site_file1=$CONFIG_SITE;;
  1938. *) ac_site_file1=./$CONFIG_SITE;;
  1939. esac
  1940. elif test "x$prefix" != xNONE; then
  1941. ac_site_file1=$prefix/share/config.site
  1942. ac_site_file2=$prefix/etc/config.site
  1943. else
  1944. ac_site_file1=$ac_default_prefix/share/config.site
  1945. ac_site_file2=$ac_default_prefix/etc/config.site
  1946. fi
  1947. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1948. do
  1949. test "x$ac_site_file" = xNONE && continue
  1950. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1952. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1953. sed 's/^/| /' "$ac_site_file" >&5
  1954. . "$ac_site_file" \
  1955. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1956. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1957. as_fn_error $? "failed to load site script $ac_site_file
  1958. See \`config.log' for more details" "$LINENO" 5; }
  1959. fi
  1960. done
  1961. if test -r "$cache_file"; then
  1962. # Some versions of bash will fail to source /dev/null (special files
  1963. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1964. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1966. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1967. case $cache_file in
  1968. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1969. *) . "./$cache_file";;
  1970. esac
  1971. fi
  1972. else
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1974. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1975. >$cache_file
  1976. fi
  1977. # Check that the precious variables saved in the cache have kept the same
  1978. # value.
  1979. ac_cache_corrupted=false
  1980. for ac_var in $ac_precious_vars; do
  1981. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1982. eval ac_new_set=\$ac_env_${ac_var}_set
  1983. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1984. eval ac_new_val=\$ac_env_${ac_var}_value
  1985. case $ac_old_set,$ac_new_set in
  1986. set,)
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1988. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1989. ac_cache_corrupted=: ;;
  1990. ,set)
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1992. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1993. ac_cache_corrupted=: ;;
  1994. ,);;
  1995. *)
  1996. if test "x$ac_old_val" != "x$ac_new_val"; then
  1997. # differences in whitespace do not lead to failure.
  1998. ac_old_val_w=`echo x $ac_old_val`
  1999. ac_new_val_w=`echo x $ac_new_val`
  2000. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2002. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2003. ac_cache_corrupted=:
  2004. else
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2006. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2007. eval $ac_var=\$ac_old_val
  2008. fi
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2010. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2012. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2013. fi;;
  2014. esac
  2015. # Pass precious variables to config.status.
  2016. if test "$ac_new_set" = set; then
  2017. case $ac_new_val in
  2018. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2019. *) ac_arg=$ac_var=$ac_new_val ;;
  2020. esac
  2021. case " $ac_configure_args " in
  2022. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2023. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2024. esac
  2025. fi
  2026. done
  2027. if $ac_cache_corrupted; then
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2031. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2032. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2033. fi
  2034. ## -------------------- ##
  2035. ## Main body of script. ##
  2036. ## -------------------- ##
  2037. ac_ext=c
  2038. ac_cpp='$CPP $CPPFLAGS'
  2039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2042. ac_config_headers="$ac_config_headers config.h:config-h.in"
  2043. ac_aux_dir=
  2044. for ac_dir in ../config "$srcdir"/../config; do
  2045. if test -f "$ac_dir/install-sh"; then
  2046. ac_aux_dir=$ac_dir
  2047. ac_install_sh="$ac_aux_dir/install-sh -c"
  2048. break
  2049. elif test -f "$ac_dir/install.sh"; then
  2050. ac_aux_dir=$ac_dir
  2051. ac_install_sh="$ac_aux_dir/install.sh -c"
  2052. break
  2053. elif test -f "$ac_dir/shtool"; then
  2054. ac_aux_dir=$ac_dir
  2055. ac_install_sh="$ac_aux_dir/shtool install -c"
  2056. break
  2057. fi
  2058. done
  2059. if test -z "$ac_aux_dir"; then
  2060. as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../config \"$srcdir\"/../config" "$LINENO" 5
  2061. fi
  2062. # These three variables are undocumented and unsupported,
  2063. # and are intended to be withdrawn in a future Autoconf release.
  2064. # They can cause serious problems if a builder's source tree is in a directory
  2065. # whose full name contains unusual characters.
  2066. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2067. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2068. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2069. # I am me!
  2070. ## ------------------------ ##
  2071. ## Automake Initialisation. ##
  2072. ## ------------------------ ##
  2073. am__api_version='1.16'
  2074. # Find a good install program. We prefer a C program (faster),
  2075. # so one script is as good as another. But avoid the broken or
  2076. # incompatible versions:
  2077. # SysV /etc/install, /usr/sbin/install
  2078. # SunOS /usr/etc/install
  2079. # IRIX /sbin/install
  2080. # AIX /bin/install
  2081. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2082. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2083. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2084. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2085. # OS/2's system install, which has a completely different semantic
  2086. # ./install, which can be erroneously created by make from ./install.sh.
  2087. # Reject install programs that cannot install multiple files.
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2089. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2090. if test -z "$INSTALL"; then
  2091. if ${ac_cv_path_install+:} false; then :
  2092. $as_echo_n "(cached) " >&6
  2093. else
  2094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2095. for as_dir in $PATH
  2096. do
  2097. IFS=$as_save_IFS
  2098. test -z "$as_dir" && as_dir=.
  2099. # Account for people who put trailing slashes in PATH elements.
  2100. case $as_dir/ in #((
  2101. ./ | .// | /[cC]/* | \
  2102. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2103. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2104. /usr/ucb/* ) ;;
  2105. *)
  2106. # OSF1 and SCO ODT 3.0 have their own names for install.
  2107. # Don't use installbsd from OSF since it installs stuff as root
  2108. # by default.
  2109. for ac_prog in ginstall scoinst install; do
  2110. for ac_exec_ext in '' $ac_executable_extensions; do
  2111. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2112. if test $ac_prog = install &&
  2113. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2114. # AIX install. It has an incompatible calling convention.
  2115. :
  2116. elif test $ac_prog = install &&
  2117. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2118. # program-specific install script used by HP pwplus--don't use.
  2119. :
  2120. else
  2121. rm -rf conftest.one conftest.two conftest.dir
  2122. echo one > conftest.one
  2123. echo two > conftest.two
  2124. mkdir conftest.dir
  2125. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2126. test -s conftest.one && test -s conftest.two &&
  2127. test -s conftest.dir/conftest.one &&
  2128. test -s conftest.dir/conftest.two
  2129. then
  2130. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2131. break 3
  2132. fi
  2133. fi
  2134. fi
  2135. done
  2136. done
  2137. ;;
  2138. esac
  2139. done
  2140. IFS=$as_save_IFS
  2141. rm -rf conftest.one conftest.two conftest.dir
  2142. fi
  2143. if test "${ac_cv_path_install+set}" = set; then
  2144. INSTALL=$ac_cv_path_install
  2145. else
  2146. # As a last resort, use the slow shell script. Don't cache a
  2147. # value for INSTALL within a source directory, because that will
  2148. # break other packages using the cache if that directory is
  2149. # removed, or if the value is a relative name.
  2150. INSTALL=$ac_install_sh
  2151. fi
  2152. fi
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2154. $as_echo "$INSTALL" >&6; }
  2155. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2156. # It thinks the first close brace ends the variable substitution.
  2157. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2158. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2159. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2161. $as_echo_n "checking whether build environment is sane... " >&6; }
  2162. # Reject unsafe characters in $srcdir or the absolute working directory
  2163. # name. Accept space and tab only in the latter.
  2164. am_lf='
  2165. '
  2166. case `pwd` in
  2167. *[\\\"\#\$\&\'\`$am_lf]*)
  2168. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2169. esac
  2170. case $srcdir in
  2171. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2172. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2173. esac
  2174. # Do 'set' in a subshell so we don't clobber the current shell's
  2175. # arguments. Must try -L first in case configure is actually a
  2176. # symlink; some systems play weird games with the mod time of symlinks
  2177. # (eg FreeBSD returns the mod time of the symlink's containing
  2178. # directory).
  2179. if (
  2180. am_has_slept=no
  2181. for am_try in 1 2; do
  2182. echo "timestamp, slept: $am_has_slept" > conftest.file
  2183. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2184. if test "$*" = "X"; then
  2185. # -L didn't work.
  2186. set X `ls -t "$srcdir/configure" conftest.file`
  2187. fi
  2188. if test "$*" != "X $srcdir/configure conftest.file" \
  2189. && test "$*" != "X conftest.file $srcdir/configure"; then
  2190. # If neither matched, then we have a broken ls. This can happen
  2191. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2192. # broken ls alias from the environment. This has actually
  2193. # happened. Such a system could not be considered "sane".
  2194. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2195. alias in your environment" "$LINENO" 5
  2196. fi
  2197. if test "$2" = conftest.file || test $am_try -eq 2; then
  2198. break
  2199. fi
  2200. # Just in case.
  2201. sleep 1
  2202. am_has_slept=yes
  2203. done
  2204. test "$2" = conftest.file
  2205. )
  2206. then
  2207. # Ok.
  2208. :
  2209. else
  2210. as_fn_error $? "newly created file is older than distributed files!
  2211. Check your system clock" "$LINENO" 5
  2212. fi
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2214. $as_echo "yes" >&6; }
  2215. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2216. # generated files are strictly newer.
  2217. am_sleep_pid=
  2218. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2219. ( sleep 1 ) &
  2220. am_sleep_pid=$!
  2221. fi
  2222. rm -f conftest.file
  2223. test "$program_prefix" != NONE &&
  2224. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2225. # Use a double $ so make ignores it.
  2226. test "$program_suffix" != NONE &&
  2227. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2228. # Double any \ or $.
  2229. # By default was `s,x,x', remove it if useless.
  2230. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2231. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2232. # Expand $ac_aux_dir to an absolute path.
  2233. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2234. if test x"${MISSING+set}" != xset; then
  2235. case $am_aux_dir in
  2236. *\ * | *\ *)
  2237. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2238. *)
  2239. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2240. esac
  2241. fi
  2242. # Use eval to expand $SHELL
  2243. if eval "$MISSING --is-lightweight"; then
  2244. am_missing_run="$MISSING "
  2245. else
  2246. am_missing_run=
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2248. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2249. fi
  2250. if test x"${install_sh+set}" != xset; then
  2251. case $am_aux_dir in
  2252. *\ * | *\ *)
  2253. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2254. *)
  2255. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2256. esac
  2257. fi
  2258. # Installed binaries are usually stripped using 'strip' when the user
  2259. # run "make install-strip". However 'strip' might not be the right
  2260. # tool to use in cross-compilation environments, therefore Automake
  2261. # will honor the 'STRIP' environment variable to overrule this program.
  2262. if test "$cross_compiling" != no; then
  2263. if test -n "$ac_tool_prefix"; then
  2264. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2265. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2267. $as_echo_n "checking for $ac_word... " >&6; }
  2268. if ${ac_cv_prog_STRIP+:} false; then :
  2269. $as_echo_n "(cached) " >&6
  2270. else
  2271. if test -n "$STRIP"; then
  2272. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2273. else
  2274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2275. for as_dir in $PATH
  2276. do
  2277. IFS=$as_save_IFS
  2278. test -z "$as_dir" && as_dir=.
  2279. for ac_exec_ext in '' $ac_executable_extensions; do
  2280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2281. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2283. break 2
  2284. fi
  2285. done
  2286. done
  2287. IFS=$as_save_IFS
  2288. fi
  2289. fi
  2290. STRIP=$ac_cv_prog_STRIP
  2291. if test -n "$STRIP"; then
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2293. $as_echo "$STRIP" >&6; }
  2294. else
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2296. $as_echo "no" >&6; }
  2297. fi
  2298. fi
  2299. if test -z "$ac_cv_prog_STRIP"; then
  2300. ac_ct_STRIP=$STRIP
  2301. # Extract the first word of "strip", so it can be a program name with args.
  2302. set dummy strip; ac_word=$2
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2304. $as_echo_n "checking for $ac_word... " >&6; }
  2305. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2306. $as_echo_n "(cached) " >&6
  2307. else
  2308. if test -n "$ac_ct_STRIP"; then
  2309. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2310. else
  2311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2312. for as_dir in $PATH
  2313. do
  2314. IFS=$as_save_IFS
  2315. test -z "$as_dir" && as_dir=.
  2316. for ac_exec_ext in '' $ac_executable_extensions; do
  2317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2318. ac_cv_prog_ac_ct_STRIP="strip"
  2319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2320. break 2
  2321. fi
  2322. done
  2323. done
  2324. IFS=$as_save_IFS
  2325. fi
  2326. fi
  2327. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2328. if test -n "$ac_ct_STRIP"; then
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2330. $as_echo "$ac_ct_STRIP" >&6; }
  2331. else
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2333. $as_echo "no" >&6; }
  2334. fi
  2335. if test "x$ac_ct_STRIP" = x; then
  2336. STRIP=":"
  2337. else
  2338. case $cross_compiling:$ac_tool_warned in
  2339. yes:)
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2342. ac_tool_warned=yes ;;
  2343. esac
  2344. STRIP=$ac_ct_STRIP
  2345. fi
  2346. else
  2347. STRIP="$ac_cv_prog_STRIP"
  2348. fi
  2349. fi
  2350. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2352. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2353. if test -z "$MKDIR_P"; then
  2354. if ${ac_cv_path_mkdir+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. for ac_prog in mkdir gmkdir; do
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2365. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2366. 'mkdir (GNU coreutils) '* | \
  2367. 'mkdir (coreutils) '* | \
  2368. 'mkdir (fileutils) '4.1*)
  2369. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2370. break 3;;
  2371. esac
  2372. done
  2373. done
  2374. done
  2375. IFS=$as_save_IFS
  2376. fi
  2377. test -d ./--version && rmdir ./--version
  2378. if test "${ac_cv_path_mkdir+set}" = set; then
  2379. MKDIR_P="$ac_cv_path_mkdir -p"
  2380. else
  2381. # As a last resort, use the slow shell script. Don't cache a
  2382. # value for MKDIR_P within a source directory, because that will
  2383. # break other packages using the cache if that directory is
  2384. # removed, or if the value is a relative name.
  2385. MKDIR_P="$ac_install_sh -d"
  2386. fi
  2387. fi
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2389. $as_echo "$MKDIR_P" >&6; }
  2390. for ac_prog in gawk mawk nawk awk
  2391. do
  2392. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2393. set dummy $ac_prog; ac_word=$2
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2395. $as_echo_n "checking for $ac_word... " >&6; }
  2396. if ${ac_cv_prog_AWK+:} false; then :
  2397. $as_echo_n "(cached) " >&6
  2398. else
  2399. if test -n "$AWK"; then
  2400. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2401. else
  2402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2403. for as_dir in $PATH
  2404. do
  2405. IFS=$as_save_IFS
  2406. test -z "$as_dir" && as_dir=.
  2407. for ac_exec_ext in '' $ac_executable_extensions; do
  2408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2409. ac_cv_prog_AWK="$ac_prog"
  2410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2411. break 2
  2412. fi
  2413. done
  2414. done
  2415. IFS=$as_save_IFS
  2416. fi
  2417. fi
  2418. AWK=$ac_cv_prog_AWK
  2419. if test -n "$AWK"; then
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2421. $as_echo "$AWK" >&6; }
  2422. else
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2424. $as_echo "no" >&6; }
  2425. fi
  2426. test -n "$AWK" && break
  2427. done
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2429. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2430. set x ${MAKE-make}
  2431. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2432. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2433. $as_echo_n "(cached) " >&6
  2434. else
  2435. cat >conftest.make <<\_ACEOF
  2436. SHELL = /bin/sh
  2437. all:
  2438. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2439. _ACEOF
  2440. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2441. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2442. *@@@%%%=?*=@@@%%%*)
  2443. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2444. *)
  2445. eval ac_cv_prog_make_${ac_make}_set=no;;
  2446. esac
  2447. rm -f conftest.make
  2448. fi
  2449. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2451. $as_echo "yes" >&6; }
  2452. SET_MAKE=
  2453. else
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2455. $as_echo "no" >&6; }
  2456. SET_MAKE="MAKE=${MAKE-make}"
  2457. fi
  2458. rm -rf .tst 2>/dev/null
  2459. mkdir .tst 2>/dev/null
  2460. if test -d .tst; then
  2461. am__leading_dot=.
  2462. else
  2463. am__leading_dot=_
  2464. fi
  2465. rmdir .tst 2>/dev/null
  2466. # Check whether --enable-silent-rules was given.
  2467. if test "${enable_silent_rules+set}" = set; then :
  2468. enableval=$enable_silent_rules;
  2469. fi
  2470. case $enable_silent_rules in # (((
  2471. yes) AM_DEFAULT_VERBOSITY=0;;
  2472. no) AM_DEFAULT_VERBOSITY=1;;
  2473. *) AM_DEFAULT_VERBOSITY=1;;
  2474. esac
  2475. am_make=${MAKE-make}
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2477. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2478. if ${am_cv_make_support_nested_variables+:} false; then :
  2479. $as_echo_n "(cached) " >&6
  2480. else
  2481. if $as_echo 'TRUE=$(BAR$(V))
  2482. BAR0=false
  2483. BAR1=true
  2484. V=1
  2485. am__doit:
  2486. @$(TRUE)
  2487. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2488. am_cv_make_support_nested_variables=yes
  2489. else
  2490. am_cv_make_support_nested_variables=no
  2491. fi
  2492. fi
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2494. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2495. if test $am_cv_make_support_nested_variables = yes; then
  2496. AM_V='$(V)'
  2497. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2498. else
  2499. AM_V=$AM_DEFAULT_VERBOSITY
  2500. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2501. fi
  2502. AM_BACKSLASH='\'
  2503. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2504. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2505. # is not polluted with repeated "-I."
  2506. am__isrc=' -I$(srcdir)'
  2507. # test to see if srcdir already configured
  2508. if test -f $srcdir/config.status; then
  2509. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2510. fi
  2511. fi
  2512. # test whether we have cygpath
  2513. if test -z "$CYGPATH_W"; then
  2514. if (cygpath --version) >/dev/null 2>/dev/null; then
  2515. CYGPATH_W='cygpath -w'
  2516. else
  2517. CYGPATH_W=echo
  2518. fi
  2519. fi
  2520. # Define the identity of the package.
  2521. PACKAGE='libltdl'
  2522. VERSION='2.4.3a'
  2523. cat >>confdefs.h <<_ACEOF
  2524. #define PACKAGE "$PACKAGE"
  2525. _ACEOF
  2526. cat >>confdefs.h <<_ACEOF
  2527. #define VERSION "$VERSION"
  2528. _ACEOF
  2529. # Some tools Automake needs.
  2530. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2531. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2532. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2533. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2534. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2535. # For better backward compatibility. To be removed once Automake 1.9.x
  2536. # dies out for good. For more background, see:
  2537. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2538. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2539. mkdir_p='$(MKDIR_P)'
  2540. # We need awk for the "check" target (and possibly the TAP driver). The
  2541. # system "awk" is bad on some platforms.
  2542. # Always define AMTAR for backward compatibility. Yes, it's still used
  2543. # in the wild :-( We should find a proper way to deprecate it ...
  2544. AMTAR='$${TAR-tar}'
  2545. # We'll loop over all known methods to create a tar archive until one works.
  2546. _am_tools='gnutar pax cpio none'
  2547. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2548. # POSIX will say in a future version that running "rm -f" with no argument
  2549. # is OK; and we want to be able to make that assumption in our Makefile
  2550. # recipes. So use an aggressive probe to check that the usage we want is
  2551. # actually supported "in the wild" to an acceptable degree.
  2552. # See automake bug#10828.
  2553. # To make any issue more visible, cause the running configure to be aborted
  2554. # by default if the 'rm' program in use doesn't match our expectations; the
  2555. # user can still override this though.
  2556. if rm -f && rm -fr && rm -rf; then : OK; else
  2557. cat >&2 <<'END'
  2558. Oops!
  2559. Your 'rm' program seems unable to run without file operands specified
  2560. on the command line, even when the '-f' option is present. This is contrary
  2561. to the behaviour of most rm programs out there, and not conforming with
  2562. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2563. Please tell [email protected] about your system, including the value
  2564. of your $PATH and any error possibly output before this message. This
  2565. can help us improve future automake versions.
  2566. END
  2567. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2568. echo 'Configuration will proceed anyway, since you have set the' >&2
  2569. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2570. echo >&2
  2571. else
  2572. cat >&2 <<'END'
  2573. Aborting the configuration process, to ensure you take notice of the issue.
  2574. You can download and install GNU coreutils to get an 'rm' implementation
  2575. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2576. If you want to complete the configuration process using your problematic
  2577. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2578. to "yes", and re-run configure.
  2579. END
  2580. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2581. fi
  2582. fi
  2583. # Check whether --enable-silent-rules was given.
  2584. if test "${enable_silent_rules+set}" = set; then :
  2585. enableval=$enable_silent_rules;
  2586. fi
  2587. case $enable_silent_rules in # (((
  2588. yes) AM_DEFAULT_VERBOSITY=0;;
  2589. no) AM_DEFAULT_VERBOSITY=1;;
  2590. *) AM_DEFAULT_VERBOSITY=0;;
  2591. esac
  2592. am_make=${MAKE-make}
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2594. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2595. if ${am_cv_make_support_nested_variables+:} false; then :
  2596. $as_echo_n "(cached) " >&6
  2597. else
  2598. if $as_echo 'TRUE=$(BAR$(V))
  2599. BAR0=false
  2600. BAR1=true
  2601. V=1
  2602. am__doit:
  2603. @$(TRUE)
  2604. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2605. am_cv_make_support_nested_variables=yes
  2606. else
  2607. am_cv_make_support_nested_variables=no
  2608. fi
  2609. fi
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2611. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2612. if test $am_cv_make_support_nested_variables = yes; then
  2613. AM_V='$(V)'
  2614. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2615. else
  2616. AM_V=$AM_DEFAULT_VERBOSITY
  2617. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2618. fi
  2619. AM_BACKSLASH='\'
  2620. ## ------------------------------- ##
  2621. ## Libtool specific configuration. ##
  2622. ## ------------------------------- ##
  2623. pkgdatadir='$datadir'"/$PACKAGE"
  2624. ## ----------------------- ##
  2625. ## Libtool initialisation. ##
  2626. ## ----------------------- ##
  2627. case `pwd` in
  2628. *\ * | *\ *)
  2629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2630. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2631. esac
  2632. macro_version='2.4.6'
  2633. macro_revision='2.4.6'
  2634. ltmain=$ac_aux_dir/ltmain.sh
  2635. # Make sure we can run config.sub.
  2636. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2637. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2639. $as_echo_n "checking build system type... " >&6; }
  2640. if ${ac_cv_build+:} false; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. ac_build_alias=$build_alias
  2644. test "x$ac_build_alias" = x &&
  2645. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2646. test "x$ac_build_alias" = x &&
  2647. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2648. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2649. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2650. fi
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2652. $as_echo "$ac_cv_build" >&6; }
  2653. case $ac_cv_build in
  2654. *-*-*) ;;
  2655. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2656. esac
  2657. build=$ac_cv_build
  2658. ac_save_IFS=$IFS; IFS='-'
  2659. set x $ac_cv_build
  2660. shift
  2661. build_cpu=$1
  2662. build_vendor=$2
  2663. shift; shift
  2664. # Remember, the first character of IFS is used to create $*,
  2665. # except with old shells:
  2666. build_os=$*
  2667. IFS=$ac_save_IFS
  2668. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2670. $as_echo_n "checking host system type... " >&6; }
  2671. if ${ac_cv_host+:} false; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. if test "x$host_alias" = x; then
  2675. ac_cv_host=$ac_cv_build
  2676. else
  2677. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2678. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2679. fi
  2680. fi
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2682. $as_echo "$ac_cv_host" >&6; }
  2683. case $ac_cv_host in
  2684. *-*-*) ;;
  2685. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2686. esac
  2687. host=$ac_cv_host
  2688. ac_save_IFS=$IFS; IFS='-'
  2689. set x $ac_cv_host
  2690. shift
  2691. host_cpu=$1
  2692. host_vendor=$2
  2693. shift; shift
  2694. # Remember, the first character of IFS is used to create $*,
  2695. # except with old shells:
  2696. host_os=$*
  2697. IFS=$ac_save_IFS
  2698. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2699. # Backslashify metacharacters that are still active within
  2700. # double-quoted strings.
  2701. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2702. # Same as above, but do not quote variable references.
  2703. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2704. # Sed substitution to delay expansion of an escaped shell variable in a
  2705. # double_quote_subst'ed string.
  2706. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2707. # Sed substitution to delay expansion of an escaped single quote.
  2708. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2709. # Sed substitution to avoid accidental globbing in evaled expressions
  2710. no_glob_subst='s/\*/\\\*/g'
  2711. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2712. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2713. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2715. $as_echo_n "checking how to print strings... " >&6; }
  2716. # Test print first, because it will be a builtin if present.
  2717. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2718. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2719. ECHO='print -r --'
  2720. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2721. ECHO='printf %s\n'
  2722. else
  2723. # Use this function as a fallback that always works.
  2724. func_fallback_echo ()
  2725. {
  2726. eval 'cat <<_LTECHO_EOF
  2727. $1
  2728. _LTECHO_EOF'
  2729. }
  2730. ECHO='func_fallback_echo'
  2731. fi
  2732. # func_echo_all arg...
  2733. # Invoke $ECHO with all args, space-separated.
  2734. func_echo_all ()
  2735. {
  2736. $ECHO ""
  2737. }
  2738. case $ECHO in
  2739. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2740. $as_echo "printf" >&6; } ;;
  2741. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2742. $as_echo "print -r" >&6; } ;;
  2743. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2744. $as_echo "cat" >&6; } ;;
  2745. esac
  2746. DEPDIR="${am__leading_dot}deps"
  2747. ac_config_commands="$ac_config_commands depfiles"
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  2749. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  2750. cat > confinc.mk << 'END'
  2751. am__doit:
  2752. @echo this is the am__doit target >confinc.out
  2753. .PHONY: am__doit
  2754. END
  2755. am__include="#"
  2756. am__quote=
  2757. # BSD make does it like this.
  2758. echo '.include "confinc.mk" # ignored' > confmf.BSD
  2759. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  2760. echo 'include confinc.mk # ignored' > confmf.GNU
  2761. _am_result=no
  2762. for s in GNU BSD; do
  2763. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  2764. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  2765. ac_status=$?
  2766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2767. (exit $ac_status); }
  2768. case $?:`cat confinc.out 2>/dev/null` in #(
  2769. '0:this is the am__doit target') :
  2770. case $s in #(
  2771. BSD) :
  2772. am__include='.include' am__quote='"' ;; #(
  2773. *) :
  2774. am__include='include' am__quote='' ;;
  2775. esac ;; #(
  2776. *) :
  2777. ;;
  2778. esac
  2779. if test "$am__include" != "#"; then
  2780. _am_result="yes ($s style)"
  2781. break
  2782. fi
  2783. done
  2784. rm -f confinc.* confmf.*
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  2786. $as_echo "${_am_result}" >&6; }
  2787. # Check whether --enable-dependency-tracking was given.
  2788. if test "${enable_dependency_tracking+set}" = set; then :
  2789. enableval=$enable_dependency_tracking;
  2790. fi
  2791. if test "x$enable_dependency_tracking" != xno; then
  2792. am_depcomp="$ac_aux_dir/depcomp"
  2793. AMDEPBACKSLASH='\'
  2794. am__nodep='_no'
  2795. fi
  2796. if test "x$enable_dependency_tracking" != xno; then
  2797. AMDEP_TRUE=
  2798. AMDEP_FALSE='#'
  2799. else
  2800. AMDEP_TRUE='#'
  2801. AMDEP_FALSE=
  2802. fi
  2803. ac_ext=c
  2804. ac_cpp='$CPP $CPPFLAGS'
  2805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2808. if test -n "$ac_tool_prefix"; then
  2809. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2810. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2812. $as_echo_n "checking for $ac_word... " >&6; }
  2813. if ${ac_cv_prog_CC+:} false; then :
  2814. $as_echo_n "(cached) " >&6
  2815. else
  2816. if test -n "$CC"; then
  2817. ac_cv_prog_CC="$CC" # Let the user override the test.
  2818. else
  2819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2820. for as_dir in $PATH
  2821. do
  2822. IFS=$as_save_IFS
  2823. test -z "$as_dir" && as_dir=.
  2824. for ac_exec_ext in '' $ac_executable_extensions; do
  2825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2826. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. fi
  2834. fi
  2835. CC=$ac_cv_prog_CC
  2836. if test -n "$CC"; then
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2838. $as_echo "$CC" >&6; }
  2839. else
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2841. $as_echo "no" >&6; }
  2842. fi
  2843. fi
  2844. if test -z "$ac_cv_prog_CC"; then
  2845. ac_ct_CC=$CC
  2846. # Extract the first word of "gcc", so it can be a program name with args.
  2847. set dummy gcc; ac_word=$2
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2849. $as_echo_n "checking for $ac_word... " >&6; }
  2850. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2851. $as_echo_n "(cached) " >&6
  2852. else
  2853. if test -n "$ac_ct_CC"; then
  2854. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2855. else
  2856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857. for as_dir in $PATH
  2858. do
  2859. IFS=$as_save_IFS
  2860. test -z "$as_dir" && as_dir=.
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2863. ac_cv_prog_ac_ct_CC="gcc"
  2864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2865. break 2
  2866. fi
  2867. done
  2868. done
  2869. IFS=$as_save_IFS
  2870. fi
  2871. fi
  2872. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2873. if test -n "$ac_ct_CC"; then
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2875. $as_echo "$ac_ct_CC" >&6; }
  2876. else
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2878. $as_echo "no" >&6; }
  2879. fi
  2880. if test "x$ac_ct_CC" = x; then
  2881. CC=""
  2882. else
  2883. case $cross_compiling:$ac_tool_warned in
  2884. yes:)
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2886. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2887. ac_tool_warned=yes ;;
  2888. esac
  2889. CC=$ac_ct_CC
  2890. fi
  2891. else
  2892. CC="$ac_cv_prog_CC"
  2893. fi
  2894. if test -z "$CC"; then
  2895. if test -n "$ac_tool_prefix"; then
  2896. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2897. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2899. $as_echo_n "checking for $ac_word... " >&6; }
  2900. if ${ac_cv_prog_CC+:} false; then :
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. if test -n "$CC"; then
  2904. ac_cv_prog_CC="$CC" # Let the user override the test.
  2905. else
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2913. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2915. break 2
  2916. fi
  2917. done
  2918. done
  2919. IFS=$as_save_IFS
  2920. fi
  2921. fi
  2922. CC=$ac_cv_prog_CC
  2923. if test -n "$CC"; then
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2925. $as_echo "$CC" >&6; }
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2928. $as_echo "no" >&6; }
  2929. fi
  2930. fi
  2931. fi
  2932. if test -z "$CC"; then
  2933. # Extract the first word of "cc", so it can be a program name with args.
  2934. set dummy cc; ac_word=$2
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2936. $as_echo_n "checking for $ac_word... " >&6; }
  2937. if ${ac_cv_prog_CC+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. if test -n "$CC"; then
  2941. ac_cv_prog_CC="$CC" # Let the user override the test.
  2942. else
  2943. ac_prog_rejected=no
  2944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2945. for as_dir in $PATH
  2946. do
  2947. IFS=$as_save_IFS
  2948. test -z "$as_dir" && as_dir=.
  2949. for ac_exec_ext in '' $ac_executable_extensions; do
  2950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2951. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2952. ac_prog_rejected=yes
  2953. continue
  2954. fi
  2955. ac_cv_prog_CC="cc"
  2956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2957. break 2
  2958. fi
  2959. done
  2960. done
  2961. IFS=$as_save_IFS
  2962. if test $ac_prog_rejected = yes; then
  2963. # We found a bogon in the path, so make sure we never use it.
  2964. set dummy $ac_cv_prog_CC
  2965. shift
  2966. if test $# != 0; then
  2967. # We chose a different compiler from the bogus one.
  2968. # However, it has the same basename, so the bogon will be chosen
  2969. # first if we set CC to just the basename; use the full file name.
  2970. shift
  2971. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2972. fi
  2973. fi
  2974. fi
  2975. fi
  2976. CC=$ac_cv_prog_CC
  2977. if test -n "$CC"; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2979. $as_echo "$CC" >&6; }
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982. $as_echo "no" >&6; }
  2983. fi
  2984. fi
  2985. if test -z "$CC"; then
  2986. if test -n "$ac_tool_prefix"; then
  2987. for ac_prog in cl.exe
  2988. do
  2989. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2990. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2992. $as_echo_n "checking for $ac_word... " >&6; }
  2993. if ${ac_cv_prog_CC+:} false; then :
  2994. $as_echo_n "(cached) " >&6
  2995. else
  2996. if test -n "$CC"; then
  2997. ac_cv_prog_CC="$CC" # Let the user override the test.
  2998. else
  2999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3000. for as_dir in $PATH
  3001. do
  3002. IFS=$as_save_IFS
  3003. test -z "$as_dir" && as_dir=.
  3004. for ac_exec_ext in '' $ac_executable_extensions; do
  3005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3006. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3008. break 2
  3009. fi
  3010. done
  3011. done
  3012. IFS=$as_save_IFS
  3013. fi
  3014. fi
  3015. CC=$ac_cv_prog_CC
  3016. if test -n "$CC"; then
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3018. $as_echo "$CC" >&6; }
  3019. else
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3021. $as_echo "no" >&6; }
  3022. fi
  3023. test -n "$CC" && break
  3024. done
  3025. fi
  3026. if test -z "$CC"; then
  3027. ac_ct_CC=$CC
  3028. for ac_prog in cl.exe
  3029. do
  3030. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3031. set dummy $ac_prog; ac_word=$2
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3033. $as_echo_n "checking for $ac_word... " >&6; }
  3034. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3035. $as_echo_n "(cached) " >&6
  3036. else
  3037. if test -n "$ac_ct_CC"; then
  3038. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3039. else
  3040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3041. for as_dir in $PATH
  3042. do
  3043. IFS=$as_save_IFS
  3044. test -z "$as_dir" && as_dir=.
  3045. for ac_exec_ext in '' $ac_executable_extensions; do
  3046. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3047. ac_cv_prog_ac_ct_CC="$ac_prog"
  3048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3049. break 2
  3050. fi
  3051. done
  3052. done
  3053. IFS=$as_save_IFS
  3054. fi
  3055. fi
  3056. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3057. if test -n "$ac_ct_CC"; then
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3059. $as_echo "$ac_ct_CC" >&6; }
  3060. else
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3062. $as_echo "no" >&6; }
  3063. fi
  3064. test -n "$ac_ct_CC" && break
  3065. done
  3066. if test "x$ac_ct_CC" = x; then
  3067. CC=""
  3068. else
  3069. case $cross_compiling:$ac_tool_warned in
  3070. yes:)
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3072. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3073. ac_tool_warned=yes ;;
  3074. esac
  3075. CC=$ac_ct_CC
  3076. fi
  3077. fi
  3078. fi
  3079. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3080. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3081. as_fn_error $? "no acceptable C compiler found in \$PATH
  3082. See \`config.log' for more details" "$LINENO" 5; }
  3083. # Provide some information about the compiler.
  3084. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3085. set X $ac_compile
  3086. ac_compiler=$2
  3087. for ac_option in --version -v -V -qversion; do
  3088. { { ac_try="$ac_compiler $ac_option >&5"
  3089. case "(($ac_try" in
  3090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3091. *) ac_try_echo=$ac_try;;
  3092. esac
  3093. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3094. $as_echo "$ac_try_echo"; } >&5
  3095. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3096. ac_status=$?
  3097. if test -s conftest.err; then
  3098. sed '10a\
  3099. ... rest of stderr output deleted ...
  3100. 10q' conftest.err >conftest.er1
  3101. cat conftest.er1 >&5
  3102. fi
  3103. rm -f conftest.er1 conftest.err
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3105. test $ac_status = 0; }
  3106. done
  3107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3108. /* end confdefs.h. */
  3109. int
  3110. main ()
  3111. {
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. ac_clean_files_save=$ac_clean_files
  3117. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3118. # Try to create an executable without -o first, disregard a.out.
  3119. # It will help us diagnose broken compilers, and finding out an intuition
  3120. # of exeext.
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3122. $as_echo_n "checking whether the C compiler works... " >&6; }
  3123. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3124. # The possible output files:
  3125. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3126. ac_rmfiles=
  3127. for ac_file in $ac_files
  3128. do
  3129. case $ac_file in
  3130. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3131. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3132. esac
  3133. done
  3134. rm -f $ac_rmfiles
  3135. if { { ac_try="$ac_link_default"
  3136. case "(($ac_try" in
  3137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3138. *) ac_try_echo=$ac_try;;
  3139. esac
  3140. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3141. $as_echo "$ac_try_echo"; } >&5
  3142. (eval "$ac_link_default") 2>&5
  3143. ac_status=$?
  3144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3145. test $ac_status = 0; }; then :
  3146. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3147. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3148. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3149. # so that the user can short-circuit this test for compilers unknown to
  3150. # Autoconf.
  3151. for ac_file in $ac_files ''
  3152. do
  3153. test -f "$ac_file" || continue
  3154. case $ac_file in
  3155. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3156. ;;
  3157. [ab].out )
  3158. # We found the default executable, but exeext='' is most
  3159. # certainly right.
  3160. break;;
  3161. *.* )
  3162. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3163. then :; else
  3164. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3165. fi
  3166. # We set ac_cv_exeext here because the later test for it is not
  3167. # safe: cross compilers may not add the suffix if given an `-o'
  3168. # argument, so we may need to know it at that point already.
  3169. # Even if this section looks crufty: it has the advantage of
  3170. # actually working.
  3171. break;;
  3172. * )
  3173. break;;
  3174. esac
  3175. done
  3176. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3177. else
  3178. ac_file=''
  3179. fi
  3180. if test -z "$ac_file"; then :
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3182. $as_echo "no" >&6; }
  3183. $as_echo "$as_me: failed program was:" >&5
  3184. sed 's/^/| /' conftest.$ac_ext >&5
  3185. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3186. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3187. as_fn_error 77 "C compiler cannot create executables
  3188. See \`config.log' for more details" "$LINENO" 5; }
  3189. else
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3191. $as_echo "yes" >&6; }
  3192. fi
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3194. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3196. $as_echo "$ac_file" >&6; }
  3197. ac_exeext=$ac_cv_exeext
  3198. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3199. ac_clean_files=$ac_clean_files_save
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3201. $as_echo_n "checking for suffix of executables... " >&6; }
  3202. if { { ac_try="$ac_link"
  3203. case "(($ac_try" in
  3204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3205. *) ac_try_echo=$ac_try;;
  3206. esac
  3207. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3208. $as_echo "$ac_try_echo"; } >&5
  3209. (eval "$ac_link") 2>&5
  3210. ac_status=$?
  3211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3212. test $ac_status = 0; }; then :
  3213. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3214. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3215. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3216. # `rm'.
  3217. for ac_file in conftest.exe conftest conftest.*; do
  3218. test -f "$ac_file" || continue
  3219. case $ac_file in
  3220. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3221. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3222. break;;
  3223. * ) break;;
  3224. esac
  3225. done
  3226. else
  3227. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3228. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3229. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3230. See \`config.log' for more details" "$LINENO" 5; }
  3231. fi
  3232. rm -f conftest conftest$ac_cv_exeext
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3234. $as_echo "$ac_cv_exeext" >&6; }
  3235. rm -f conftest.$ac_ext
  3236. EXEEXT=$ac_cv_exeext
  3237. ac_exeext=$EXEEXT
  3238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3239. /* end confdefs.h. */
  3240. #include <stdio.h>
  3241. int
  3242. main ()
  3243. {
  3244. FILE *f = fopen ("conftest.out", "w");
  3245. return ferror (f) || fclose (f) != 0;
  3246. ;
  3247. return 0;
  3248. }
  3249. _ACEOF
  3250. ac_clean_files="$ac_clean_files conftest.out"
  3251. # Check that the compiler produces executables we can run. If not, either
  3252. # the compiler is broken, or we cross compile.
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3254. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3255. if test "$cross_compiling" != yes; then
  3256. { { ac_try="$ac_link"
  3257. case "(($ac_try" in
  3258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3259. *) ac_try_echo=$ac_try;;
  3260. esac
  3261. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3262. $as_echo "$ac_try_echo"; } >&5
  3263. (eval "$ac_link") 2>&5
  3264. ac_status=$?
  3265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3266. test $ac_status = 0; }
  3267. if { ac_try='./conftest$ac_cv_exeext'
  3268. { { case "(($ac_try" in
  3269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3270. *) ac_try_echo=$ac_try;;
  3271. esac
  3272. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3273. $as_echo "$ac_try_echo"; } >&5
  3274. (eval "$ac_try") 2>&5
  3275. ac_status=$?
  3276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3277. test $ac_status = 0; }; }; then
  3278. cross_compiling=no
  3279. else
  3280. if test "$cross_compiling" = maybe; then
  3281. cross_compiling=yes
  3282. else
  3283. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3284. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3285. as_fn_error $? "cannot run C compiled programs.
  3286. If you meant to cross compile, use \`--host'.
  3287. See \`config.log' for more details" "$LINENO" 5; }
  3288. fi
  3289. fi
  3290. fi
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3292. $as_echo "$cross_compiling" >&6; }
  3293. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3294. ac_clean_files=$ac_clean_files_save
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3296. $as_echo_n "checking for suffix of object files... " >&6; }
  3297. if ${ac_cv_objext+:} false; then :
  3298. $as_echo_n "(cached) " >&6
  3299. else
  3300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3301. /* end confdefs.h. */
  3302. int
  3303. main ()
  3304. {
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. rm -f conftest.o conftest.obj
  3310. if { { ac_try="$ac_compile"
  3311. case "(($ac_try" in
  3312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3313. *) ac_try_echo=$ac_try;;
  3314. esac
  3315. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3316. $as_echo "$ac_try_echo"; } >&5
  3317. (eval "$ac_compile") 2>&5
  3318. ac_status=$?
  3319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3320. test $ac_status = 0; }; then :
  3321. for ac_file in conftest.o conftest.obj conftest.*; do
  3322. test -f "$ac_file" || continue;
  3323. case $ac_file in
  3324. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3325. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3326. break;;
  3327. esac
  3328. done
  3329. else
  3330. $as_echo "$as_me: failed program was:" >&5
  3331. sed 's/^/| /' conftest.$ac_ext >&5
  3332. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3333. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3334. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3335. See \`config.log' for more details" "$LINENO" 5; }
  3336. fi
  3337. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3338. fi
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3340. $as_echo "$ac_cv_objext" >&6; }
  3341. OBJEXT=$ac_cv_objext
  3342. ac_objext=$OBJEXT
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3344. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3345. if ${ac_cv_c_compiler_gnu+:} false; then :
  3346. $as_echo_n "(cached) " >&6
  3347. else
  3348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3349. /* end confdefs.h. */
  3350. int
  3351. main ()
  3352. {
  3353. #ifndef __GNUC__
  3354. choke me
  3355. #endif
  3356. ;
  3357. return 0;
  3358. }
  3359. _ACEOF
  3360. if ac_fn_c_try_compile "$LINENO"; then :
  3361. ac_compiler_gnu=yes
  3362. else
  3363. ac_compiler_gnu=no
  3364. fi
  3365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3366. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3369. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3370. if test $ac_compiler_gnu = yes; then
  3371. GCC=yes
  3372. else
  3373. GCC=
  3374. fi
  3375. ac_test_CFLAGS=${CFLAGS+set}
  3376. ac_save_CFLAGS=$CFLAGS
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3378. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3379. if ${ac_cv_prog_cc_g+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. ac_save_c_werror_flag=$ac_c_werror_flag
  3383. ac_c_werror_flag=yes
  3384. ac_cv_prog_cc_g=no
  3385. CFLAGS="-g"
  3386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3387. /* end confdefs.h. */
  3388. int
  3389. main ()
  3390. {
  3391. ;
  3392. return 0;
  3393. }
  3394. _ACEOF
  3395. if ac_fn_c_try_compile "$LINENO"; then :
  3396. ac_cv_prog_cc_g=yes
  3397. else
  3398. CFLAGS=""
  3399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3400. /* end confdefs.h. */
  3401. int
  3402. main ()
  3403. {
  3404. ;
  3405. return 0;
  3406. }
  3407. _ACEOF
  3408. if ac_fn_c_try_compile "$LINENO"; then :
  3409. else
  3410. ac_c_werror_flag=$ac_save_c_werror_flag
  3411. CFLAGS="-g"
  3412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3413. /* end confdefs.h. */
  3414. int
  3415. main ()
  3416. {
  3417. ;
  3418. return 0;
  3419. }
  3420. _ACEOF
  3421. if ac_fn_c_try_compile "$LINENO"; then :
  3422. ac_cv_prog_cc_g=yes
  3423. fi
  3424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3425. fi
  3426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3427. fi
  3428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3429. ac_c_werror_flag=$ac_save_c_werror_flag
  3430. fi
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3432. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3433. if test "$ac_test_CFLAGS" = set; then
  3434. CFLAGS=$ac_save_CFLAGS
  3435. elif test $ac_cv_prog_cc_g = yes; then
  3436. if test "$GCC" = yes; then
  3437. CFLAGS="-g -O2"
  3438. else
  3439. CFLAGS="-g"
  3440. fi
  3441. else
  3442. if test "$GCC" = yes; then
  3443. CFLAGS="-O2"
  3444. else
  3445. CFLAGS=
  3446. fi
  3447. fi
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3449. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3450. if ${ac_cv_prog_cc_c89+:} false; then :
  3451. $as_echo_n "(cached) " >&6
  3452. else
  3453. ac_cv_prog_cc_c89=no
  3454. ac_save_CC=$CC
  3455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3456. /* end confdefs.h. */
  3457. #include <stdarg.h>
  3458. #include <stdio.h>
  3459. struct stat;
  3460. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3461. struct buf { int x; };
  3462. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3463. static char *e (p, i)
  3464. char **p;
  3465. int i;
  3466. {
  3467. return p[i];
  3468. }
  3469. static char *f (char * (*g) (char **, int), char **p, ...)
  3470. {
  3471. char *s;
  3472. va_list v;
  3473. va_start (v,p);
  3474. s = g (p, va_arg (v,int));
  3475. va_end (v);
  3476. return s;
  3477. }
  3478. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3479. function prototypes and stuff, but not '\xHH' hex character constants.
  3480. These don't provoke an error unfortunately, instead are silently treated
  3481. as 'x'. The following induces an error, until -std is added to get
  3482. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3483. array size at least. It's necessary to write '\x00'==0 to get something
  3484. that's true only with -std. */
  3485. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3486. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3487. inside strings and character constants. */
  3488. #define FOO(x) 'x'
  3489. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3490. int test (int i, double x);
  3491. struct s1 {int (*f) (int a);};
  3492. struct s2 {int (*f) (double a);};
  3493. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3494. int argc;
  3495. char **argv;
  3496. int
  3497. main ()
  3498. {
  3499. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3500. ;
  3501. return 0;
  3502. }
  3503. _ACEOF
  3504. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3505. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3506. do
  3507. CC="$ac_save_CC $ac_arg"
  3508. if ac_fn_c_try_compile "$LINENO"; then :
  3509. ac_cv_prog_cc_c89=$ac_arg
  3510. fi
  3511. rm -f core conftest.err conftest.$ac_objext
  3512. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3513. done
  3514. rm -f conftest.$ac_ext
  3515. CC=$ac_save_CC
  3516. fi
  3517. # AC_CACHE_VAL
  3518. case "x$ac_cv_prog_cc_c89" in
  3519. x)
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3521. $as_echo "none needed" >&6; } ;;
  3522. xno)
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3524. $as_echo "unsupported" >&6; } ;;
  3525. *)
  3526. CC="$CC $ac_cv_prog_cc_c89"
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3528. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3529. esac
  3530. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3531. fi
  3532. ac_ext=c
  3533. ac_cpp='$CPP $CPPFLAGS'
  3534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3537. ac_ext=c
  3538. ac_cpp='$CPP $CPPFLAGS'
  3539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3543. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3544. if ${am_cv_prog_cc_c_o+:} false; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3548. /* end confdefs.h. */
  3549. int
  3550. main ()
  3551. {
  3552. ;
  3553. return 0;
  3554. }
  3555. _ACEOF
  3556. # Make sure it works both with $CC and with simple cc.
  3557. # Following AC_PROG_CC_C_O, we do the test twice because some
  3558. # compilers refuse to overwrite an existing .o file with -o,
  3559. # though they will create one.
  3560. am_cv_prog_cc_c_o=yes
  3561. for am_i in 1 2; do
  3562. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3563. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3564. ac_status=$?
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); } \
  3567. && test -f conftest2.$ac_objext; then
  3568. : OK
  3569. else
  3570. am_cv_prog_cc_c_o=no
  3571. break
  3572. fi
  3573. done
  3574. rm -f core conftest*
  3575. unset am_i
  3576. fi
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3578. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3579. if test "$am_cv_prog_cc_c_o" != yes; then
  3580. # Losing compiler, so override with the script.
  3581. # FIXME: It is wrong to rewrite CC.
  3582. # But if we don't then we get into trouble of one sort or another.
  3583. # A longer-term fix would be to have automake use am__CC in this case,
  3584. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3585. CC="$am_aux_dir/compile $CC"
  3586. fi
  3587. ac_ext=c
  3588. ac_cpp='$CPP $CPPFLAGS'
  3589. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3590. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3591. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3592. depcc="$CC" am_compiler_list=
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3594. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3595. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3596. $as_echo_n "(cached) " >&6
  3597. else
  3598. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3599. # We make a subdir and do the tests there. Otherwise we can end up
  3600. # making bogus files that we don't know about and never remove. For
  3601. # instance it was reported that on HP-UX the gcc test will end up
  3602. # making a dummy file named 'D' -- because '-MD' means "put the output
  3603. # in D".
  3604. rm -rf conftest.dir
  3605. mkdir conftest.dir
  3606. # Copy depcomp to subdir because otherwise we won't find it if we're
  3607. # using a relative directory.
  3608. cp "$am_depcomp" conftest.dir
  3609. cd conftest.dir
  3610. # We will build objects and dependencies in a subdirectory because
  3611. # it helps to detect inapplicable dependency modes. For instance
  3612. # both Tru64's cc and ICC support -MD to output dependencies as a
  3613. # side effect of compilation, but ICC will put the dependencies in
  3614. # the current directory while Tru64 will put them in the object
  3615. # directory.
  3616. mkdir sub
  3617. am_cv_CC_dependencies_compiler_type=none
  3618. if test "$am_compiler_list" = ""; then
  3619. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3620. fi
  3621. am__universal=false
  3622. case " $depcc " in #(
  3623. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3624. esac
  3625. for depmode in $am_compiler_list; do
  3626. # Setup a source with many dependencies, because some compilers
  3627. # like to wrap large dependency lists on column 80 (with \), and
  3628. # we should not choose a depcomp mode which is confused by this.
  3629. #
  3630. # We need to recreate these files for each test, as the compiler may
  3631. # overwrite some of them when testing with obscure command lines.
  3632. # This happens at least with the AIX C compiler.
  3633. : > sub/conftest.c
  3634. for i in 1 2 3 4 5 6; do
  3635. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3636. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3637. # Solaris 10 /bin/sh.
  3638. echo '/* dummy */' > sub/conftst$i.h
  3639. done
  3640. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3641. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3642. # mode. It turns out that the SunPro C++ compiler does not properly
  3643. # handle '-M -o', and we need to detect this. Also, some Intel
  3644. # versions had trouble with output in subdirs.
  3645. am__obj=sub/conftest.${OBJEXT-o}
  3646. am__minus_obj="-o $am__obj"
  3647. case $depmode in
  3648. gcc)
  3649. # This depmode causes a compiler race in universal mode.
  3650. test "$am__universal" = false || continue
  3651. ;;
  3652. nosideeffect)
  3653. # After this tag, mechanisms are not by side-effect, so they'll
  3654. # only be used when explicitly requested.
  3655. if test "x$enable_dependency_tracking" = xyes; then
  3656. continue
  3657. else
  3658. break
  3659. fi
  3660. ;;
  3661. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3662. # This compiler won't grok '-c -o', but also, the minuso test has
  3663. # not run yet. These depmodes are late enough in the game, and
  3664. # so weak that their functioning should not be impacted.
  3665. am__obj=conftest.${OBJEXT-o}
  3666. am__minus_obj=
  3667. ;;
  3668. none) break ;;
  3669. esac
  3670. if depmode=$depmode \
  3671. source=sub/conftest.c object=$am__obj \
  3672. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3673. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3674. >/dev/null 2>conftest.err &&
  3675. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3676. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3677. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3678. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3679. # icc doesn't choke on unknown options, it will just issue warnings
  3680. # or remarks (even with -Werror). So we grep stderr for any message
  3681. # that says an option was ignored or not supported.
  3682. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3683. # icc: Command line warning: ignoring option '-M'; no argument required
  3684. # The diagnosis changed in icc 8.0:
  3685. # icc: Command line remark: option '-MP' not supported
  3686. if (grep 'ignoring option' conftest.err ||
  3687. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3688. am_cv_CC_dependencies_compiler_type=$depmode
  3689. break
  3690. fi
  3691. fi
  3692. done
  3693. cd ..
  3694. rm -rf conftest.dir
  3695. else
  3696. am_cv_CC_dependencies_compiler_type=none
  3697. fi
  3698. fi
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3700. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3701. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3702. if
  3703. test "x$enable_dependency_tracking" != xno \
  3704. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3705. am__fastdepCC_TRUE=
  3706. am__fastdepCC_FALSE='#'
  3707. else
  3708. am__fastdepCC_TRUE='#'
  3709. am__fastdepCC_FALSE=
  3710. fi
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3712. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3713. if ${ac_cv_path_SED+:} false; then :
  3714. $as_echo_n "(cached) " >&6
  3715. else
  3716. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3717. for ac_i in 1 2 3 4 5 6 7; do
  3718. ac_script="$ac_script$as_nl$ac_script"
  3719. done
  3720. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3721. { ac_script=; unset ac_script;}
  3722. if test -z "$SED"; then
  3723. ac_path_SED_found=false
  3724. # Loop through the user's path and test for each of PROGNAME-LIST
  3725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3726. for as_dir in $PATH
  3727. do
  3728. IFS=$as_save_IFS
  3729. test -z "$as_dir" && as_dir=.
  3730. for ac_prog in sed gsed; do
  3731. for ac_exec_ext in '' $ac_executable_extensions; do
  3732. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3733. as_fn_executable_p "$ac_path_SED" || continue
  3734. # Check for GNU ac_path_SED and select it if it is found.
  3735. # Check for GNU $ac_path_SED
  3736. case `"$ac_path_SED" --version 2>&1` in
  3737. *GNU*)
  3738. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3739. *)
  3740. ac_count=0
  3741. $as_echo_n 0123456789 >"conftest.in"
  3742. while :
  3743. do
  3744. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3745. mv "conftest.tmp" "conftest.in"
  3746. cp "conftest.in" "conftest.nl"
  3747. $as_echo '' >> "conftest.nl"
  3748. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3749. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3750. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3751. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3752. # Best one so far, save it but keep looking for a better one
  3753. ac_cv_path_SED="$ac_path_SED"
  3754. ac_path_SED_max=$ac_count
  3755. fi
  3756. # 10*(2^10) chars as input seems more than enough
  3757. test $ac_count -gt 10 && break
  3758. done
  3759. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3760. esac
  3761. $ac_path_SED_found && break 3
  3762. done
  3763. done
  3764. done
  3765. IFS=$as_save_IFS
  3766. if test -z "$ac_cv_path_SED"; then
  3767. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3768. fi
  3769. else
  3770. ac_cv_path_SED=$SED
  3771. fi
  3772. fi
  3773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3774. $as_echo "$ac_cv_path_SED" >&6; }
  3775. SED="$ac_cv_path_SED"
  3776. rm -f conftest.sed
  3777. test -z "$SED" && SED=sed
  3778. Xsed="$SED -e 1s/^X//"
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3780. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3781. if ${ac_cv_path_GREP+:} false; then :
  3782. $as_echo_n "(cached) " >&6
  3783. else
  3784. if test -z "$GREP"; then
  3785. ac_path_GREP_found=false
  3786. # Loop through the user's path and test for each of PROGNAME-LIST
  3787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3788. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3789. do
  3790. IFS=$as_save_IFS
  3791. test -z "$as_dir" && as_dir=.
  3792. for ac_prog in grep ggrep; do
  3793. for ac_exec_ext in '' $ac_executable_extensions; do
  3794. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3795. as_fn_executable_p "$ac_path_GREP" || continue
  3796. # Check for GNU ac_path_GREP and select it if it is found.
  3797. # Check for GNU $ac_path_GREP
  3798. case `"$ac_path_GREP" --version 2>&1` in
  3799. *GNU*)
  3800. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3801. *)
  3802. ac_count=0
  3803. $as_echo_n 0123456789 >"conftest.in"
  3804. while :
  3805. do
  3806. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3807. mv "conftest.tmp" "conftest.in"
  3808. cp "conftest.in" "conftest.nl"
  3809. $as_echo 'GREP' >> "conftest.nl"
  3810. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3811. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3812. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3813. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3814. # Best one so far, save it but keep looking for a better one
  3815. ac_cv_path_GREP="$ac_path_GREP"
  3816. ac_path_GREP_max=$ac_count
  3817. fi
  3818. # 10*(2^10) chars as input seems more than enough
  3819. test $ac_count -gt 10 && break
  3820. done
  3821. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3822. esac
  3823. $ac_path_GREP_found && break 3
  3824. done
  3825. done
  3826. done
  3827. IFS=$as_save_IFS
  3828. if test -z "$ac_cv_path_GREP"; then
  3829. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3830. fi
  3831. else
  3832. ac_cv_path_GREP=$GREP
  3833. fi
  3834. fi
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3836. $as_echo "$ac_cv_path_GREP" >&6; }
  3837. GREP="$ac_cv_path_GREP"
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3839. $as_echo_n "checking for egrep... " >&6; }
  3840. if ${ac_cv_path_EGREP+:} false; then :
  3841. $as_echo_n "(cached) " >&6
  3842. else
  3843. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3844. then ac_cv_path_EGREP="$GREP -E"
  3845. else
  3846. if test -z "$EGREP"; then
  3847. ac_path_EGREP_found=false
  3848. # Loop through the user's path and test for each of PROGNAME-LIST
  3849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3850. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3851. do
  3852. IFS=$as_save_IFS
  3853. test -z "$as_dir" && as_dir=.
  3854. for ac_prog in egrep; do
  3855. for ac_exec_ext in '' $ac_executable_extensions; do
  3856. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3857. as_fn_executable_p "$ac_path_EGREP" || continue
  3858. # Check for GNU ac_path_EGREP and select it if it is found.
  3859. # Check for GNU $ac_path_EGREP
  3860. case `"$ac_path_EGREP" --version 2>&1` in
  3861. *GNU*)
  3862. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3863. *)
  3864. ac_count=0
  3865. $as_echo_n 0123456789 >"conftest.in"
  3866. while :
  3867. do
  3868. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3869. mv "conftest.tmp" "conftest.in"
  3870. cp "conftest.in" "conftest.nl"
  3871. $as_echo 'EGREP' >> "conftest.nl"
  3872. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3873. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3874. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3875. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3876. # Best one so far, save it but keep looking for a better one
  3877. ac_cv_path_EGREP="$ac_path_EGREP"
  3878. ac_path_EGREP_max=$ac_count
  3879. fi
  3880. # 10*(2^10) chars as input seems more than enough
  3881. test $ac_count -gt 10 && break
  3882. done
  3883. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3884. esac
  3885. $ac_path_EGREP_found && break 3
  3886. done
  3887. done
  3888. done
  3889. IFS=$as_save_IFS
  3890. if test -z "$ac_cv_path_EGREP"; then
  3891. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3892. fi
  3893. else
  3894. ac_cv_path_EGREP=$EGREP
  3895. fi
  3896. fi
  3897. fi
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3899. $as_echo "$ac_cv_path_EGREP" >&6; }
  3900. EGREP="$ac_cv_path_EGREP"
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3902. $as_echo_n "checking for fgrep... " >&6; }
  3903. if ${ac_cv_path_FGREP+:} false; then :
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3907. then ac_cv_path_FGREP="$GREP -F"
  3908. else
  3909. if test -z "$FGREP"; then
  3910. ac_path_FGREP_found=false
  3911. # Loop through the user's path and test for each of PROGNAME-LIST
  3912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3913. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3914. do
  3915. IFS=$as_save_IFS
  3916. test -z "$as_dir" && as_dir=.
  3917. for ac_prog in fgrep; do
  3918. for ac_exec_ext in '' $ac_executable_extensions; do
  3919. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3920. as_fn_executable_p "$ac_path_FGREP" || continue
  3921. # Check for GNU ac_path_FGREP and select it if it is found.
  3922. # Check for GNU $ac_path_FGREP
  3923. case `"$ac_path_FGREP" --version 2>&1` in
  3924. *GNU*)
  3925. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3926. *)
  3927. ac_count=0
  3928. $as_echo_n 0123456789 >"conftest.in"
  3929. while :
  3930. do
  3931. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3932. mv "conftest.tmp" "conftest.in"
  3933. cp "conftest.in" "conftest.nl"
  3934. $as_echo 'FGREP' >> "conftest.nl"
  3935. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3936. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3937. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3938. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3939. # Best one so far, save it but keep looking for a better one
  3940. ac_cv_path_FGREP="$ac_path_FGREP"
  3941. ac_path_FGREP_max=$ac_count
  3942. fi
  3943. # 10*(2^10) chars as input seems more than enough
  3944. test $ac_count -gt 10 && break
  3945. done
  3946. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3947. esac
  3948. $ac_path_FGREP_found && break 3
  3949. done
  3950. done
  3951. done
  3952. IFS=$as_save_IFS
  3953. if test -z "$ac_cv_path_FGREP"; then
  3954. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3955. fi
  3956. else
  3957. ac_cv_path_FGREP=$FGREP
  3958. fi
  3959. fi
  3960. fi
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3962. $as_echo "$ac_cv_path_FGREP" >&6; }
  3963. FGREP="$ac_cv_path_FGREP"
  3964. test -z "$GREP" && GREP=grep
  3965. # Check whether --with-gnu-ld was given.
  3966. if test "${with_gnu_ld+set}" = set; then :
  3967. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3968. else
  3969. with_gnu_ld=no
  3970. fi
  3971. ac_prog=ld
  3972. if test yes = "$GCC"; then
  3973. # Check if gcc -print-prog-name=ld gives a path.
  3974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3975. $as_echo_n "checking for ld used by $CC... " >&6; }
  3976. case $host in
  3977. *-*-mingw*)
  3978. # gcc leaves a trailing carriage return, which upsets mingw
  3979. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3980. *)
  3981. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3982. esac
  3983. case $ac_prog in
  3984. # Accept absolute paths.
  3985. [\\/]* | ?:[\\/]*)
  3986. re_direlt='/[^/][^/]*/\.\./'
  3987. # Canonicalize the pathname of ld
  3988. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3989. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3990. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3991. done
  3992. test -z "$LD" && LD=$ac_prog
  3993. ;;
  3994. "")
  3995. # If it fails, then pretend we aren't using GCC.
  3996. ac_prog=ld
  3997. ;;
  3998. *)
  3999. # If it is relative, then search for the first ld in PATH.
  4000. with_gnu_ld=unknown
  4001. ;;
  4002. esac
  4003. elif test yes = "$with_gnu_ld"; then
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4005. $as_echo_n "checking for GNU ld... " >&6; }
  4006. else
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4008. $as_echo_n "checking for non-GNU ld... " >&6; }
  4009. fi
  4010. if ${lt_cv_path_LD+:} false; then :
  4011. $as_echo_n "(cached) " >&6
  4012. else
  4013. if test -z "$LD"; then
  4014. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4015. for ac_dir in $PATH; do
  4016. IFS=$lt_save_ifs
  4017. test -z "$ac_dir" && ac_dir=.
  4018. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4019. lt_cv_path_LD=$ac_dir/$ac_prog
  4020. # Check to see if the program is GNU ld. I'd rather use --version,
  4021. # but apparently some variants of GNU ld only accept -v.
  4022. # Break only if it was the GNU/non-GNU ld that we prefer.
  4023. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4024. *GNU* | *'with BFD'*)
  4025. test no != "$with_gnu_ld" && break
  4026. ;;
  4027. *)
  4028. test yes != "$with_gnu_ld" && break
  4029. ;;
  4030. esac
  4031. fi
  4032. done
  4033. IFS=$lt_save_ifs
  4034. else
  4035. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4036. fi
  4037. fi
  4038. LD=$lt_cv_path_LD
  4039. if test -n "$LD"; then
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4041. $as_echo "$LD" >&6; }
  4042. else
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4044. $as_echo "no" >&6; }
  4045. fi
  4046. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4048. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4049. if ${lt_cv_prog_gnu_ld+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4053. case `$LD -v 2>&1 </dev/null` in
  4054. *GNU* | *'with BFD'*)
  4055. lt_cv_prog_gnu_ld=yes
  4056. ;;
  4057. *)
  4058. lt_cv_prog_gnu_ld=no
  4059. ;;
  4060. esac
  4061. fi
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4063. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4064. with_gnu_ld=$lt_cv_prog_gnu_ld
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4066. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4067. if ${lt_cv_path_NM+:} false; then :
  4068. $as_echo_n "(cached) " >&6
  4069. else
  4070. if test -n "$NM"; then
  4071. # Let the user override the test.
  4072. lt_cv_path_NM=$NM
  4073. else
  4074. lt_nm_to_check=${ac_tool_prefix}nm
  4075. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4076. lt_nm_to_check="$lt_nm_to_check nm"
  4077. fi
  4078. for lt_tmp_nm in $lt_nm_to_check; do
  4079. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4080. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4081. IFS=$lt_save_ifs
  4082. test -z "$ac_dir" && ac_dir=.
  4083. tmp_nm=$ac_dir/$lt_tmp_nm
  4084. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4085. # Check to see if the nm accepts a BSD-compat flag.
  4086. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4087. # nm: unknown option "B" ignored
  4088. # Tru64's nm complains that /dev/null is an invalid object file
  4089. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4090. case $build_os in
  4091. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4092. *) lt_bad_file=/dev/null ;;
  4093. esac
  4094. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4095. *$lt_bad_file* | *'Invalid file or object type'*)
  4096. lt_cv_path_NM="$tmp_nm -B"
  4097. break 2
  4098. ;;
  4099. *)
  4100. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4101. */dev/null*)
  4102. lt_cv_path_NM="$tmp_nm -p"
  4103. break 2
  4104. ;;
  4105. *)
  4106. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4107. continue # so that we can try to find one that supports BSD flags
  4108. ;;
  4109. esac
  4110. ;;
  4111. esac
  4112. fi
  4113. done
  4114. IFS=$lt_save_ifs
  4115. done
  4116. : ${lt_cv_path_NM=no}
  4117. fi
  4118. fi
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4120. $as_echo "$lt_cv_path_NM" >&6; }
  4121. if test no != "$lt_cv_path_NM"; then
  4122. NM=$lt_cv_path_NM
  4123. else
  4124. # Didn't find any BSD compatible name lister, look for dumpbin.
  4125. if test -n "$DUMPBIN"; then :
  4126. # Let the user override the test.
  4127. else
  4128. if test -n "$ac_tool_prefix"; then
  4129. for ac_prog in dumpbin "link -dump"
  4130. do
  4131. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4132. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4134. $as_echo_n "checking for $ac_word... " >&6; }
  4135. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4136. $as_echo_n "(cached) " >&6
  4137. else
  4138. if test -n "$DUMPBIN"; then
  4139. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4140. else
  4141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4142. for as_dir in $PATH
  4143. do
  4144. IFS=$as_save_IFS
  4145. test -z "$as_dir" && as_dir=.
  4146. for ac_exec_ext in '' $ac_executable_extensions; do
  4147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4148. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4150. break 2
  4151. fi
  4152. done
  4153. done
  4154. IFS=$as_save_IFS
  4155. fi
  4156. fi
  4157. DUMPBIN=$ac_cv_prog_DUMPBIN
  4158. if test -n "$DUMPBIN"; then
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4160. $as_echo "$DUMPBIN" >&6; }
  4161. else
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4163. $as_echo "no" >&6; }
  4164. fi
  4165. test -n "$DUMPBIN" && break
  4166. done
  4167. fi
  4168. if test -z "$DUMPBIN"; then
  4169. ac_ct_DUMPBIN=$DUMPBIN
  4170. for ac_prog in dumpbin "link -dump"
  4171. do
  4172. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4173. set dummy $ac_prog; ac_word=$2
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4175. $as_echo_n "checking for $ac_word... " >&6; }
  4176. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4177. $as_echo_n "(cached) " >&6
  4178. else
  4179. if test -n "$ac_ct_DUMPBIN"; then
  4180. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4181. else
  4182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4183. for as_dir in $PATH
  4184. do
  4185. IFS=$as_save_IFS
  4186. test -z "$as_dir" && as_dir=.
  4187. for ac_exec_ext in '' $ac_executable_extensions; do
  4188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4189. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4191. break 2
  4192. fi
  4193. done
  4194. done
  4195. IFS=$as_save_IFS
  4196. fi
  4197. fi
  4198. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4199. if test -n "$ac_ct_DUMPBIN"; then
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4201. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4202. else
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4204. $as_echo "no" >&6; }
  4205. fi
  4206. test -n "$ac_ct_DUMPBIN" && break
  4207. done
  4208. if test "x$ac_ct_DUMPBIN" = x; then
  4209. DUMPBIN=":"
  4210. else
  4211. case $cross_compiling:$ac_tool_warned in
  4212. yes:)
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4215. ac_tool_warned=yes ;;
  4216. esac
  4217. DUMPBIN=$ac_ct_DUMPBIN
  4218. fi
  4219. fi
  4220. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4221. *COFF*)
  4222. DUMPBIN="$DUMPBIN -symbols -headers"
  4223. ;;
  4224. *)
  4225. DUMPBIN=:
  4226. ;;
  4227. esac
  4228. fi
  4229. if test : != "$DUMPBIN"; then
  4230. NM=$DUMPBIN
  4231. fi
  4232. fi
  4233. test -z "$NM" && NM=nm
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4235. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4236. if ${lt_cv_nm_interface+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. lt_cv_nm_interface="BSD nm"
  4240. echo "int some_variable = 0;" > conftest.$ac_ext
  4241. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4242. (eval "$ac_compile" 2>conftest.err)
  4243. cat conftest.err >&5
  4244. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4245. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4246. cat conftest.err >&5
  4247. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4248. cat conftest.out >&5
  4249. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4250. lt_cv_nm_interface="MS dumpbin"
  4251. fi
  4252. rm -f conftest*
  4253. fi
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4255. $as_echo "$lt_cv_nm_interface" >&6; }
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4257. $as_echo_n "checking whether ln -s works... " >&6; }
  4258. LN_S=$as_ln_s
  4259. if test "$LN_S" = "ln -s"; then
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4261. $as_echo "yes" >&6; }
  4262. else
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4264. $as_echo "no, using $LN_S" >&6; }
  4265. fi
  4266. # find the maximum length of command line arguments
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4268. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4269. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. i=0
  4273. teststring=ABCD
  4274. case $build_os in
  4275. msdosdjgpp*)
  4276. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4277. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4278. # during glob expansion). Even if it were fixed, the result of this
  4279. # check would be larger than it should be.
  4280. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4281. ;;
  4282. gnu*)
  4283. # Under GNU Hurd, this test is not required because there is
  4284. # no limit to the length of command line arguments.
  4285. # Libtool will interpret -1 as no limit whatsoever
  4286. lt_cv_sys_max_cmd_len=-1;
  4287. ;;
  4288. cygwin* | mingw* | cegcc*)
  4289. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4290. # about 5 minutes as the teststring grows exponentially.
  4291. # Worse, since 9x/ME are not pre-emptively multitasking,
  4292. # you end up with a "frozen" computer, even though with patience
  4293. # the test eventually succeeds (with a max line length of 256k).
  4294. # Instead, let's just punt: use the minimum linelength reported by
  4295. # all of the supported platforms: 8192 (on NT/2K/XP).
  4296. lt_cv_sys_max_cmd_len=8192;
  4297. ;;
  4298. mint*)
  4299. # On MiNT this can take a long time and run out of memory.
  4300. lt_cv_sys_max_cmd_len=8192;
  4301. ;;
  4302. amigaos*)
  4303. # On AmigaOS with pdksh, this test takes hours, literally.
  4304. # So we just punt and use a minimum line length of 8192.
  4305. lt_cv_sys_max_cmd_len=8192;
  4306. ;;
  4307. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4308. # This has been around since 386BSD, at least. Likely further.
  4309. if test -x /sbin/sysctl; then
  4310. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4311. elif test -x /usr/sbin/sysctl; then
  4312. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4313. else
  4314. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4315. fi
  4316. # And add a safety zone
  4317. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4318. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4319. ;;
  4320. interix*)
  4321. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4322. lt_cv_sys_max_cmd_len=196608
  4323. ;;
  4324. os2*)
  4325. # The test takes a long time on OS/2.
  4326. lt_cv_sys_max_cmd_len=8192
  4327. ;;
  4328. osf*)
  4329. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4330. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4331. # nice to cause kernel panics so lets avoid the loop below.
  4332. # First set a reasonable default.
  4333. lt_cv_sys_max_cmd_len=16384
  4334. #
  4335. if test -x /sbin/sysconfig; then
  4336. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4337. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4338. esac
  4339. fi
  4340. ;;
  4341. sco3.2v5*)
  4342. lt_cv_sys_max_cmd_len=102400
  4343. ;;
  4344. sysv5* | sco5v6* | sysv4.2uw2*)
  4345. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4346. if test -n "$kargmax"; then
  4347. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4348. else
  4349. lt_cv_sys_max_cmd_len=32768
  4350. fi
  4351. ;;
  4352. *)
  4353. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4354. if test -n "$lt_cv_sys_max_cmd_len" && \
  4355. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4356. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4357. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4358. else
  4359. # Make teststring a little bigger before we do anything with it.
  4360. # a 1K string should be a reasonable start.
  4361. for i in 1 2 3 4 5 6 7 8; do
  4362. teststring=$teststring$teststring
  4363. done
  4364. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4365. # If test is not a shell built-in, we'll probably end up computing a
  4366. # maximum length that is only half of the actual maximum length, but
  4367. # we can't tell.
  4368. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4369. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4370. test 17 != "$i" # 1/2 MB should be enough
  4371. do
  4372. i=`expr $i + 1`
  4373. teststring=$teststring$teststring
  4374. done
  4375. # Only check the string length outside the loop.
  4376. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4377. teststring=
  4378. # Add a significant safety factor because C++ compilers can tack on
  4379. # massive amounts of additional arguments before passing them to the
  4380. # linker. It appears as though 1/2 is a usable value.
  4381. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4382. fi
  4383. ;;
  4384. esac
  4385. fi
  4386. if test -n "$lt_cv_sys_max_cmd_len"; then
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4388. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4389. else
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4391. $as_echo "none" >&6; }
  4392. fi
  4393. max_cmd_len=$lt_cv_sys_max_cmd_len
  4394. : ${CP="cp -f"}
  4395. : ${MV="mv -f"}
  4396. : ${RM="rm -f"}
  4397. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4398. lt_unset=unset
  4399. else
  4400. lt_unset=false
  4401. fi
  4402. # test EBCDIC or ASCII
  4403. case `echo X|tr X '\101'` in
  4404. A) # ASCII based system
  4405. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4406. lt_SP2NL='tr \040 \012'
  4407. lt_NL2SP='tr \015\012 \040\040'
  4408. ;;
  4409. *) # EBCDIC based system
  4410. lt_SP2NL='tr \100 \n'
  4411. lt_NL2SP='tr \r\n \100\100'
  4412. ;;
  4413. esac
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4415. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4416. if ${lt_cv_to_host_file_cmd+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. case $host in
  4420. *-*-mingw* )
  4421. case $build in
  4422. *-*-mingw* ) # actually msys
  4423. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4424. ;;
  4425. *-*-cygwin* )
  4426. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4427. ;;
  4428. * ) # otherwise, assume *nix
  4429. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4430. ;;
  4431. esac
  4432. ;;
  4433. *-*-cygwin* )
  4434. case $build in
  4435. *-*-mingw* ) # actually msys
  4436. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4437. ;;
  4438. *-*-cygwin* )
  4439. lt_cv_to_host_file_cmd=func_convert_file_noop
  4440. ;;
  4441. * ) # otherwise, assume *nix
  4442. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4443. ;;
  4444. esac
  4445. ;;
  4446. * ) # unhandled hosts (and "normal" native builds)
  4447. lt_cv_to_host_file_cmd=func_convert_file_noop
  4448. ;;
  4449. esac
  4450. fi
  4451. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4453. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4455. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4456. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4457. $as_echo_n "(cached) " >&6
  4458. else
  4459. #assume ordinary cross tools, or native build.
  4460. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4461. case $host in
  4462. *-*-mingw* )
  4463. case $build in
  4464. *-*-mingw* ) # actually msys
  4465. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4466. ;;
  4467. esac
  4468. ;;
  4469. esac
  4470. fi
  4471. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4473. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4475. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4476. if ${lt_cv_ld_reload_flag+:} false; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. lt_cv_ld_reload_flag='-r'
  4480. fi
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4482. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4483. reload_flag=$lt_cv_ld_reload_flag
  4484. case $reload_flag in
  4485. "" | " "*) ;;
  4486. *) reload_flag=" $reload_flag" ;;
  4487. esac
  4488. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4489. case $host_os in
  4490. cygwin* | mingw* | pw32* | cegcc*)
  4491. if test yes != "$GCC"; then
  4492. reload_cmds=false
  4493. fi
  4494. ;;
  4495. darwin*)
  4496. if test yes = "$GCC"; then
  4497. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4498. else
  4499. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4500. fi
  4501. ;;
  4502. esac
  4503. if test -n "$ac_tool_prefix"; then
  4504. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4505. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4507. $as_echo_n "checking for $ac_word... " >&6; }
  4508. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4509. $as_echo_n "(cached) " >&6
  4510. else
  4511. if test -n "$OBJDUMP"; then
  4512. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4513. else
  4514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4515. for as_dir in $PATH
  4516. do
  4517. IFS=$as_save_IFS
  4518. test -z "$as_dir" && as_dir=.
  4519. for ac_exec_ext in '' $ac_executable_extensions; do
  4520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4521. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4523. break 2
  4524. fi
  4525. done
  4526. done
  4527. IFS=$as_save_IFS
  4528. fi
  4529. fi
  4530. OBJDUMP=$ac_cv_prog_OBJDUMP
  4531. if test -n "$OBJDUMP"; then
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4533. $as_echo "$OBJDUMP" >&6; }
  4534. else
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4536. $as_echo "no" >&6; }
  4537. fi
  4538. fi
  4539. if test -z "$ac_cv_prog_OBJDUMP"; then
  4540. ac_ct_OBJDUMP=$OBJDUMP
  4541. # Extract the first word of "objdump", so it can be a program name with args.
  4542. set dummy objdump; ac_word=$2
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4544. $as_echo_n "checking for $ac_word... " >&6; }
  4545. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. if test -n "$ac_ct_OBJDUMP"; then
  4549. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4550. else
  4551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4552. for as_dir in $PATH
  4553. do
  4554. IFS=$as_save_IFS
  4555. test -z "$as_dir" && as_dir=.
  4556. for ac_exec_ext in '' $ac_executable_extensions; do
  4557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4558. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4560. break 2
  4561. fi
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. fi
  4566. fi
  4567. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4568. if test -n "$ac_ct_OBJDUMP"; then
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4570. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4571. else
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4573. $as_echo "no" >&6; }
  4574. fi
  4575. if test "x$ac_ct_OBJDUMP" = x; then
  4576. OBJDUMP="false"
  4577. else
  4578. case $cross_compiling:$ac_tool_warned in
  4579. yes:)
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4581. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4582. ac_tool_warned=yes ;;
  4583. esac
  4584. OBJDUMP=$ac_ct_OBJDUMP
  4585. fi
  4586. else
  4587. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4588. fi
  4589. test -z "$OBJDUMP" && OBJDUMP=objdump
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4591. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4592. if ${lt_cv_deplibs_check_method+:} false; then :
  4593. $as_echo_n "(cached) " >&6
  4594. else
  4595. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4596. lt_cv_file_magic_test_file=
  4597. lt_cv_deplibs_check_method='unknown'
  4598. # Need to set the preceding variable on all platforms that support
  4599. # interlibrary dependencies.
  4600. # 'none' -- dependencies not supported.
  4601. # 'unknown' -- same as none, but documents that we really don't know.
  4602. # 'pass_all' -- all dependencies passed with no checks.
  4603. # 'test_compile' -- check by making test program.
  4604. # 'file_magic [[regex]]' -- check by looking for files in library path
  4605. # that responds to the $file_magic_cmd with a given extended regex.
  4606. # If you have 'file' or equivalent on your system and you're not sure
  4607. # whether 'pass_all' will *always* work, you probably want this one.
  4608. case $host_os in
  4609. aix[4-9]*)
  4610. lt_cv_deplibs_check_method=pass_all
  4611. ;;
  4612. beos*)
  4613. lt_cv_deplibs_check_method=pass_all
  4614. ;;
  4615. bsdi[45]*)
  4616. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4617. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4618. lt_cv_file_magic_test_file=/shlib/libc.so
  4619. ;;
  4620. cygwin*)
  4621. # func_win32_libid is a shell function defined in ltmain.sh
  4622. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4623. lt_cv_file_magic_cmd='func_win32_libid'
  4624. ;;
  4625. mingw* | pw32*)
  4626. # Base MSYS/MinGW do not provide the 'file' command needed by
  4627. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4628. # unless we find 'file', for example because we are cross-compiling.
  4629. if ( file / ) >/dev/null 2>&1; then
  4630. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4631. lt_cv_file_magic_cmd='func_win32_libid'
  4632. else
  4633. # Keep this pattern in sync with the one in func_win32_libid.
  4634. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4635. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4636. fi
  4637. ;;
  4638. cegcc*)
  4639. # use the weaker test based on 'objdump'. See mingw*.
  4640. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4641. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4642. ;;
  4643. darwin* | rhapsody*)
  4644. lt_cv_deplibs_check_method=pass_all
  4645. ;;
  4646. freebsd* | dragonfly*)
  4647. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4648. case $host_cpu in
  4649. i*86 )
  4650. # Not sure whether the presence of OpenBSD here was a mistake.
  4651. # Let's accept both of them until this is cleared up.
  4652. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4653. lt_cv_file_magic_cmd=/usr/bin/file
  4654. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4655. ;;
  4656. esac
  4657. else
  4658. lt_cv_deplibs_check_method=pass_all
  4659. fi
  4660. ;;
  4661. haiku*)
  4662. lt_cv_deplibs_check_method=pass_all
  4663. ;;
  4664. hpux10.20* | hpux11*)
  4665. lt_cv_file_magic_cmd=/usr/bin/file
  4666. case $host_cpu in
  4667. ia64*)
  4668. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4669. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4670. ;;
  4671. hppa*64*)
  4672. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4673. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4674. ;;
  4675. *)
  4676. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4677. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4678. ;;
  4679. esac
  4680. ;;
  4681. interix[3-9]*)
  4682. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4683. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4684. ;;
  4685. irix5* | irix6* | nonstopux*)
  4686. case $LD in
  4687. *-32|*"-32 ") libmagic=32-bit;;
  4688. *-n32|*"-n32 ") libmagic=N32;;
  4689. *-64|*"-64 ") libmagic=64-bit;;
  4690. *) libmagic=never-match;;
  4691. esac
  4692. lt_cv_deplibs_check_method=pass_all
  4693. ;;
  4694. # This must be glibc/ELF.
  4695. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4696. lt_cv_deplibs_check_method=pass_all
  4697. ;;
  4698. netbsd* | netbsdelf*-gnu)
  4699. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4700. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4701. else
  4702. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4703. fi
  4704. ;;
  4705. newos6*)
  4706. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4707. lt_cv_file_magic_cmd=/usr/bin/file
  4708. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4709. ;;
  4710. *nto* | *qnx*)
  4711. lt_cv_deplibs_check_method=pass_all
  4712. ;;
  4713. openbsd* | bitrig*)
  4714. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4715. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4716. else
  4717. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4718. fi
  4719. ;;
  4720. osf3* | osf4* | osf5*)
  4721. lt_cv_deplibs_check_method=pass_all
  4722. ;;
  4723. rdos*)
  4724. lt_cv_deplibs_check_method=pass_all
  4725. ;;
  4726. solaris*)
  4727. lt_cv_deplibs_check_method=pass_all
  4728. ;;
  4729. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4730. lt_cv_deplibs_check_method=pass_all
  4731. ;;
  4732. sysv4 | sysv4.3*)
  4733. case $host_vendor in
  4734. motorola)
  4735. 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]'
  4736. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4737. ;;
  4738. ncr)
  4739. lt_cv_deplibs_check_method=pass_all
  4740. ;;
  4741. sequent)
  4742. lt_cv_file_magic_cmd='/bin/file'
  4743. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4744. ;;
  4745. sni)
  4746. lt_cv_file_magic_cmd='/bin/file'
  4747. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4748. lt_cv_file_magic_test_file=/lib/libc.so
  4749. ;;
  4750. siemens)
  4751. lt_cv_deplibs_check_method=pass_all
  4752. ;;
  4753. pc)
  4754. lt_cv_deplibs_check_method=pass_all
  4755. ;;
  4756. esac
  4757. ;;
  4758. tpf*)
  4759. lt_cv_deplibs_check_method=pass_all
  4760. ;;
  4761. os2*)
  4762. lt_cv_deplibs_check_method=pass_all
  4763. ;;
  4764. esac
  4765. fi
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4767. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4768. file_magic_glob=
  4769. want_nocaseglob=no
  4770. if test "$build" = "$host"; then
  4771. case $host_os in
  4772. mingw* | pw32*)
  4773. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4774. want_nocaseglob=yes
  4775. else
  4776. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4777. fi
  4778. ;;
  4779. esac
  4780. fi
  4781. file_magic_cmd=$lt_cv_file_magic_cmd
  4782. deplibs_check_method=$lt_cv_deplibs_check_method
  4783. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4784. if test -n "$ac_tool_prefix"; then
  4785. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4786. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4788. $as_echo_n "checking for $ac_word... " >&6; }
  4789. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4790. $as_echo_n "(cached) " >&6
  4791. else
  4792. if test -n "$DLLTOOL"; then
  4793. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4794. else
  4795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4796. for as_dir in $PATH
  4797. do
  4798. IFS=$as_save_IFS
  4799. test -z "$as_dir" && as_dir=.
  4800. for ac_exec_ext in '' $ac_executable_extensions; do
  4801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4802. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4804. break 2
  4805. fi
  4806. done
  4807. done
  4808. IFS=$as_save_IFS
  4809. fi
  4810. fi
  4811. DLLTOOL=$ac_cv_prog_DLLTOOL
  4812. if test -n "$DLLTOOL"; then
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4814. $as_echo "$DLLTOOL" >&6; }
  4815. else
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4817. $as_echo "no" >&6; }
  4818. fi
  4819. fi
  4820. if test -z "$ac_cv_prog_DLLTOOL"; then
  4821. ac_ct_DLLTOOL=$DLLTOOL
  4822. # Extract the first word of "dlltool", so it can be a program name with args.
  4823. set dummy dlltool; ac_word=$2
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4825. $as_echo_n "checking for $ac_word... " >&6; }
  4826. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4827. $as_echo_n "(cached) " >&6
  4828. else
  4829. if test -n "$ac_ct_DLLTOOL"; then
  4830. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4831. else
  4832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4833. for as_dir in $PATH
  4834. do
  4835. IFS=$as_save_IFS
  4836. test -z "$as_dir" && as_dir=.
  4837. for ac_exec_ext in '' $ac_executable_extensions; do
  4838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4839. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4841. break 2
  4842. fi
  4843. done
  4844. done
  4845. IFS=$as_save_IFS
  4846. fi
  4847. fi
  4848. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4849. if test -n "$ac_ct_DLLTOOL"; then
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4851. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4852. else
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4854. $as_echo "no" >&6; }
  4855. fi
  4856. if test "x$ac_ct_DLLTOOL" = x; then
  4857. DLLTOOL="false"
  4858. else
  4859. case $cross_compiling:$ac_tool_warned in
  4860. yes:)
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4862. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4863. ac_tool_warned=yes ;;
  4864. esac
  4865. DLLTOOL=$ac_ct_DLLTOOL
  4866. fi
  4867. else
  4868. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4869. fi
  4870. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4872. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4873. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4877. case $host_os in
  4878. cygwin* | mingw* | pw32* | cegcc*)
  4879. # two different shell functions defined in ltmain.sh;
  4880. # decide which one to use based on capabilities of $DLLTOOL
  4881. case `$DLLTOOL --help 2>&1` in
  4882. *--identify-strict*)
  4883. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4884. ;;
  4885. *)
  4886. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4887. ;;
  4888. esac
  4889. ;;
  4890. *)
  4891. # fallback: assume linklib IS sharedlib
  4892. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4893. ;;
  4894. esac
  4895. fi
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4897. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4898. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4899. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4900. if test -n "$ac_tool_prefix"; then
  4901. for ac_prog in ar
  4902. do
  4903. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4904. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4906. $as_echo_n "checking for $ac_word... " >&6; }
  4907. if ${ac_cv_prog_AR+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. if test -n "$AR"; then
  4911. ac_cv_prog_AR="$AR" # Let the user override the test.
  4912. else
  4913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4914. for as_dir in $PATH
  4915. do
  4916. IFS=$as_save_IFS
  4917. test -z "$as_dir" && as_dir=.
  4918. for ac_exec_ext in '' $ac_executable_extensions; do
  4919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4920. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4922. break 2
  4923. fi
  4924. done
  4925. done
  4926. IFS=$as_save_IFS
  4927. fi
  4928. fi
  4929. AR=$ac_cv_prog_AR
  4930. if test -n "$AR"; then
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4932. $as_echo "$AR" >&6; }
  4933. else
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4935. $as_echo "no" >&6; }
  4936. fi
  4937. test -n "$AR" && break
  4938. done
  4939. fi
  4940. if test -z "$AR"; then
  4941. ac_ct_AR=$AR
  4942. for ac_prog in ar
  4943. do
  4944. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4945. set dummy $ac_prog; ac_word=$2
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4947. $as_echo_n "checking for $ac_word... " >&6; }
  4948. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$ac_ct_AR"; then
  4952. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4953. else
  4954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4955. for as_dir in $PATH
  4956. do
  4957. IFS=$as_save_IFS
  4958. test -z "$as_dir" && as_dir=.
  4959. for ac_exec_ext in '' $ac_executable_extensions; do
  4960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4961. ac_cv_prog_ac_ct_AR="$ac_prog"
  4962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4963. break 2
  4964. fi
  4965. done
  4966. done
  4967. IFS=$as_save_IFS
  4968. fi
  4969. fi
  4970. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4971. if test -n "$ac_ct_AR"; then
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4973. $as_echo "$ac_ct_AR" >&6; }
  4974. else
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4976. $as_echo "no" >&6; }
  4977. fi
  4978. test -n "$ac_ct_AR" && break
  4979. done
  4980. if test "x$ac_ct_AR" = x; then
  4981. AR="false"
  4982. else
  4983. case $cross_compiling:$ac_tool_warned in
  4984. yes:)
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4986. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4987. ac_tool_warned=yes ;;
  4988. esac
  4989. AR=$ac_ct_AR
  4990. fi
  4991. fi
  4992. : ${AR=ar}
  4993. : ${AR_FLAGS=cr}
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4995. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4996. if ${lt_cv_ar_at_file+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. lt_cv_ar_at_file=no
  5000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5001. /* end confdefs.h. */
  5002. int
  5003. main ()
  5004. {
  5005. ;
  5006. return 0;
  5007. }
  5008. _ACEOF
  5009. if ac_fn_c_try_compile "$LINENO"; then :
  5010. echo conftest.$ac_objext > conftest.lst
  5011. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5012. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5013. (eval $lt_ar_try) 2>&5
  5014. ac_status=$?
  5015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5016. test $ac_status = 0; }
  5017. if test 0 -eq "$ac_status"; then
  5018. # Ensure the archiver fails upon bogus file names.
  5019. rm -f conftest.$ac_objext libconftest.a
  5020. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5021. (eval $lt_ar_try) 2>&5
  5022. ac_status=$?
  5023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5024. test $ac_status = 0; }
  5025. if test 0 -ne "$ac_status"; then
  5026. lt_cv_ar_at_file=@
  5027. fi
  5028. fi
  5029. rm -f conftest.* libconftest.a
  5030. fi
  5031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5032. fi
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5034. $as_echo "$lt_cv_ar_at_file" >&6; }
  5035. if test no = "$lt_cv_ar_at_file"; then
  5036. archiver_list_spec=
  5037. else
  5038. archiver_list_spec=$lt_cv_ar_at_file
  5039. fi
  5040. if test -n "$ac_tool_prefix"; then
  5041. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5042. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5044. $as_echo_n "checking for $ac_word... " >&6; }
  5045. if ${ac_cv_prog_STRIP+:} false; then :
  5046. $as_echo_n "(cached) " >&6
  5047. else
  5048. if test -n "$STRIP"; then
  5049. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5050. else
  5051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5052. for as_dir in $PATH
  5053. do
  5054. IFS=$as_save_IFS
  5055. test -z "$as_dir" && as_dir=.
  5056. for ac_exec_ext in '' $ac_executable_extensions; do
  5057. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5058. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5059. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5060. break 2
  5061. fi
  5062. done
  5063. done
  5064. IFS=$as_save_IFS
  5065. fi
  5066. fi
  5067. STRIP=$ac_cv_prog_STRIP
  5068. if test -n "$STRIP"; then
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5070. $as_echo "$STRIP" >&6; }
  5071. else
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5073. $as_echo "no" >&6; }
  5074. fi
  5075. fi
  5076. if test -z "$ac_cv_prog_STRIP"; then
  5077. ac_ct_STRIP=$STRIP
  5078. # Extract the first word of "strip", so it can be a program name with args.
  5079. set dummy strip; ac_word=$2
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5081. $as_echo_n "checking for $ac_word... " >&6; }
  5082. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5083. $as_echo_n "(cached) " >&6
  5084. else
  5085. if test -n "$ac_ct_STRIP"; then
  5086. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5087. else
  5088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5089. for as_dir in $PATH
  5090. do
  5091. IFS=$as_save_IFS
  5092. test -z "$as_dir" && as_dir=.
  5093. for ac_exec_ext in '' $ac_executable_extensions; do
  5094. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5095. ac_cv_prog_ac_ct_STRIP="strip"
  5096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5097. break 2
  5098. fi
  5099. done
  5100. done
  5101. IFS=$as_save_IFS
  5102. fi
  5103. fi
  5104. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5105. if test -n "$ac_ct_STRIP"; then
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5107. $as_echo "$ac_ct_STRIP" >&6; }
  5108. else
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5110. $as_echo "no" >&6; }
  5111. fi
  5112. if test "x$ac_ct_STRIP" = x; then
  5113. STRIP=":"
  5114. else
  5115. case $cross_compiling:$ac_tool_warned in
  5116. yes:)
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5118. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5119. ac_tool_warned=yes ;;
  5120. esac
  5121. STRIP=$ac_ct_STRIP
  5122. fi
  5123. else
  5124. STRIP="$ac_cv_prog_STRIP"
  5125. fi
  5126. test -z "$STRIP" && STRIP=:
  5127. if test -n "$ac_tool_prefix"; then
  5128. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5129. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5131. $as_echo_n "checking for $ac_word... " >&6; }
  5132. if ${ac_cv_prog_RANLIB+:} false; then :
  5133. $as_echo_n "(cached) " >&6
  5134. else
  5135. if test -n "$RANLIB"; then
  5136. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5137. else
  5138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5139. for as_dir in $PATH
  5140. do
  5141. IFS=$as_save_IFS
  5142. test -z "$as_dir" && as_dir=.
  5143. for ac_exec_ext in '' $ac_executable_extensions; do
  5144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5145. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5147. break 2
  5148. fi
  5149. done
  5150. done
  5151. IFS=$as_save_IFS
  5152. fi
  5153. fi
  5154. RANLIB=$ac_cv_prog_RANLIB
  5155. if test -n "$RANLIB"; then
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5157. $as_echo "$RANLIB" >&6; }
  5158. else
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5160. $as_echo "no" >&6; }
  5161. fi
  5162. fi
  5163. if test -z "$ac_cv_prog_RANLIB"; then
  5164. ac_ct_RANLIB=$RANLIB
  5165. # Extract the first word of "ranlib", so it can be a program name with args.
  5166. set dummy ranlib; ac_word=$2
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5168. $as_echo_n "checking for $ac_word... " >&6; }
  5169. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5170. $as_echo_n "(cached) " >&6
  5171. else
  5172. if test -n "$ac_ct_RANLIB"; then
  5173. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5174. else
  5175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5176. for as_dir in $PATH
  5177. do
  5178. IFS=$as_save_IFS
  5179. test -z "$as_dir" && as_dir=.
  5180. for ac_exec_ext in '' $ac_executable_extensions; do
  5181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5182. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5184. break 2
  5185. fi
  5186. done
  5187. done
  5188. IFS=$as_save_IFS
  5189. fi
  5190. fi
  5191. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5192. if test -n "$ac_ct_RANLIB"; then
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5194. $as_echo "$ac_ct_RANLIB" >&6; }
  5195. else
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5197. $as_echo "no" >&6; }
  5198. fi
  5199. if test "x$ac_ct_RANLIB" = x; then
  5200. RANLIB=":"
  5201. else
  5202. case $cross_compiling:$ac_tool_warned in
  5203. yes:)
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5205. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5206. ac_tool_warned=yes ;;
  5207. esac
  5208. RANLIB=$ac_ct_RANLIB
  5209. fi
  5210. else
  5211. RANLIB="$ac_cv_prog_RANLIB"
  5212. fi
  5213. test -z "$RANLIB" && RANLIB=:
  5214. # Determine commands to create old-style static archives.
  5215. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5216. old_postinstall_cmds='chmod 644 $oldlib'
  5217. old_postuninstall_cmds=
  5218. if test -n "$RANLIB"; then
  5219. case $host_os in
  5220. bitrig* | openbsd*)
  5221. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5222. ;;
  5223. *)
  5224. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5225. ;;
  5226. esac
  5227. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5228. fi
  5229. case $host_os in
  5230. darwin*)
  5231. lock_old_archive_extraction=yes ;;
  5232. *)
  5233. lock_old_archive_extraction=no ;;
  5234. esac
  5235. # If no C compiler was specified, use CC.
  5236. LTCC=${LTCC-"$CC"}
  5237. # If no C compiler flags were specified, use CFLAGS.
  5238. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5239. # Allow CC to be a program name with arguments.
  5240. compiler=$CC
  5241. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5243. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5244. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5245. $as_echo_n "(cached) " >&6
  5246. else
  5247. # These are sane defaults that work on at least a few old systems.
  5248. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5249. # Character class describing NM global symbol codes.
  5250. symcode='[BCDEGRST]'
  5251. # Regexp to match symbols that can be accessed directly from C.
  5252. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5253. # Define system-specific variables.
  5254. case $host_os in
  5255. aix*)
  5256. symcode='[BCDT]'
  5257. ;;
  5258. cygwin* | mingw* | pw32* | cegcc*)
  5259. symcode='[ABCDGISTW]'
  5260. ;;
  5261. hpux*)
  5262. if test ia64 = "$host_cpu"; then
  5263. symcode='[ABCDEGRST]'
  5264. fi
  5265. ;;
  5266. irix* | nonstopux*)
  5267. symcode='[BCDEGRST]'
  5268. ;;
  5269. osf*)
  5270. symcode='[BCDEGQRST]'
  5271. ;;
  5272. solaris*)
  5273. symcode='[BDRT]'
  5274. ;;
  5275. sco3.2v5*)
  5276. symcode='[DT]'
  5277. ;;
  5278. sysv4.2uw2*)
  5279. symcode='[DT]'
  5280. ;;
  5281. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5282. symcode='[ABDT]'
  5283. ;;
  5284. sysv4)
  5285. symcode='[DFNSTU]'
  5286. ;;
  5287. esac
  5288. # If we're using GNU nm, then use its standard symbol codes.
  5289. case `$NM -V 2>&1` in
  5290. *GNU* | *'with BFD'*)
  5291. symcode='[ABCDGIRSTW]' ;;
  5292. esac
  5293. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5294. # Gets list of data symbols to import.
  5295. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5296. # Adjust the below global symbol transforms to fixup imported variables.
  5297. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5298. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5299. lt_c_name_lib_hook="\
  5300. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5301. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5302. else
  5303. # Disable hooks by default.
  5304. lt_cv_sys_global_symbol_to_import=
  5305. lt_cdecl_hook=
  5306. lt_c_name_hook=
  5307. lt_c_name_lib_hook=
  5308. fi
  5309. # Transform an extracted symbol line into a proper C declaration.
  5310. # Some systems (esp. on ia64) link data and code symbols differently,
  5311. # so use this general approach.
  5312. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5313. $lt_cdecl_hook\
  5314. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5315. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5316. # Transform an extracted symbol line into symbol name and symbol address
  5317. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5318. $lt_c_name_hook\
  5319. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5320. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5321. # Transform an extracted symbol line into symbol name with lib prefix and
  5322. # symbol address.
  5323. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5324. $lt_c_name_lib_hook\
  5325. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5326. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5327. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5328. # Handle CRLF in mingw tool chain
  5329. opt_cr=
  5330. case $build_os in
  5331. mingw*)
  5332. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5333. ;;
  5334. esac
  5335. # Try without a prefix underscore, then with it.
  5336. for ac_symprfx in "" "_"; do
  5337. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5338. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5339. # Write the raw and C identifiers.
  5340. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5341. # Fake it for dumpbin and say T for any non-static function,
  5342. # D for any global variable and I for any imported variable.
  5343. # Also find C++ and __fastcall symbols from MSVC++,
  5344. # which start with @ or ?.
  5345. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5346. " {last_section=section; section=\$ 3};"\
  5347. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5348. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5349. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5350. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5351. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5352. " \$ 0!~/External *\|/{next};"\
  5353. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5354. " {if(hide[section]) next};"\
  5355. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5356. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5357. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5358. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5359. " ' prfx=^$ac_symprfx"
  5360. else
  5361. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5362. fi
  5363. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5364. # Check to see that the pipe works correctly.
  5365. pipe_works=no
  5366. rm -f conftest*
  5367. cat > conftest.$ac_ext <<_LT_EOF
  5368. #ifdef __cplusplus
  5369. extern "C" {
  5370. #endif
  5371. char nm_test_var;
  5372. void nm_test_func(void);
  5373. void nm_test_func(void){}
  5374. #ifdef __cplusplus
  5375. }
  5376. #endif
  5377. int main(){nm_test_var='a';nm_test_func();return(0);}
  5378. _LT_EOF
  5379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5380. (eval $ac_compile) 2>&5
  5381. ac_status=$?
  5382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5383. test $ac_status = 0; }; then
  5384. # Now try to grab the symbols.
  5385. nlist=conftest.nm
  5386. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  5387. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  5388. # Try sorting and uniquifying the output.
  5389. if sort "$nlist" | uniq > "$nlist"T; then
  5390. mv -f "$nlist"T "$nlist"
  5391. else
  5392. rm -f "$nlist"T
  5393. fi
  5394. # Make sure that we snagged all the symbols we need.
  5395. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5396. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5397. cat <<_LT_EOF > conftest.$ac_ext
  5398. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5399. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5400. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5401. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5402. # define LT_DLSYM_CONST
  5403. #elif defined __osf__
  5404. /* This system does not cope well with relocations in const data. */
  5405. # define LT_DLSYM_CONST
  5406. #else
  5407. # define LT_DLSYM_CONST const
  5408. #endif
  5409. #ifdef __cplusplus
  5410. extern "C" {
  5411. #endif
  5412. _LT_EOF
  5413. # Now generate the symbol file.
  5414. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5415. cat <<_LT_EOF >> conftest.$ac_ext
  5416. /* The mapping between symbol names and symbols. */
  5417. LT_DLSYM_CONST struct {
  5418. const char *name;
  5419. void *address;
  5420. }
  5421. lt__PROGRAM__LTX_preloaded_symbols[] =
  5422. {
  5423. { "@PROGRAM@", (void *) 0 },
  5424. _LT_EOF
  5425. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5426. cat <<\_LT_EOF >> conftest.$ac_ext
  5427. {0, (void *) 0}
  5428. };
  5429. /* This works around a problem in FreeBSD linker */
  5430. #ifdef FREEBSD_WORKAROUND
  5431. static const void *lt_preloaded_setup() {
  5432. return lt__PROGRAM__LTX_preloaded_symbols;
  5433. }
  5434. #endif
  5435. #ifdef __cplusplus
  5436. }
  5437. #endif
  5438. _LT_EOF
  5439. # Now try linking the two files.
  5440. mv conftest.$ac_objext conftstm.$ac_objext
  5441. lt_globsym_save_LIBS=$LIBS
  5442. lt_globsym_save_CFLAGS=$CFLAGS
  5443. LIBS=conftstm.$ac_objext
  5444. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5445. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5446. (eval $ac_link) 2>&5
  5447. ac_status=$?
  5448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5449. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5450. pipe_works=yes
  5451. fi
  5452. LIBS=$lt_globsym_save_LIBS
  5453. CFLAGS=$lt_globsym_save_CFLAGS
  5454. else
  5455. echo "cannot find nm_test_func in $nlist" >&5
  5456. fi
  5457. else
  5458. echo "cannot find nm_test_var in $nlist" >&5
  5459. fi
  5460. else
  5461. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5462. fi
  5463. else
  5464. echo "$progname: failed program was:" >&5
  5465. cat conftest.$ac_ext >&5
  5466. fi
  5467. rm -rf conftest* conftst*
  5468. # Do not use the global_symbol_pipe unless it works.
  5469. if test yes = "$pipe_works"; then
  5470. break
  5471. else
  5472. lt_cv_sys_global_symbol_pipe=
  5473. fi
  5474. done
  5475. fi
  5476. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5477. lt_cv_sys_global_symbol_to_cdecl=
  5478. fi
  5479. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5481. $as_echo "failed" >&6; }
  5482. else
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5484. $as_echo "ok" >&6; }
  5485. fi
  5486. # Response file support.
  5487. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5488. nm_file_list_spec='@'
  5489. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5490. nm_file_list_spec='@'
  5491. fi
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5493. $as_echo_n "checking for sysroot... " >&6; }
  5494. # Check whether --with-sysroot was given.
  5495. if test "${with_sysroot+set}" = set; then :
  5496. withval=$with_sysroot;
  5497. else
  5498. with_sysroot=no
  5499. fi
  5500. lt_sysroot=
  5501. case $with_sysroot in #(
  5502. yes)
  5503. if test yes = "$GCC"; then
  5504. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5505. fi
  5506. ;; #(
  5507. /*)
  5508. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5509. ;; #(
  5510. no|'')
  5511. ;; #(
  5512. *)
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5514. $as_echo "$with_sysroot" >&6; }
  5515. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5516. ;;
  5517. esac
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5519. $as_echo "${lt_sysroot:-no}" >&6; }
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5521. $as_echo_n "checking for a working dd... " >&6; }
  5522. if ${ac_cv_path_lt_DD+:} false; then :
  5523. $as_echo_n "(cached) " >&6
  5524. else
  5525. printf 0123456789abcdef0123456789abcdef >conftest.i
  5526. cat conftest.i conftest.i >conftest2.i
  5527. : ${lt_DD:=$DD}
  5528. if test -z "$lt_DD"; then
  5529. ac_path_lt_DD_found=false
  5530. # Loop through the user's path and test for each of PROGNAME-LIST
  5531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5532. for as_dir in $PATH
  5533. do
  5534. IFS=$as_save_IFS
  5535. test -z "$as_dir" && as_dir=.
  5536. for ac_prog in dd; do
  5537. for ac_exec_ext in '' $ac_executable_extensions; do
  5538. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5539. as_fn_executable_p "$ac_path_lt_DD" || continue
  5540. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5541. cmp -s conftest.i conftest.out \
  5542. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5543. fi
  5544. $ac_path_lt_DD_found && break 3
  5545. done
  5546. done
  5547. done
  5548. IFS=$as_save_IFS
  5549. if test -z "$ac_cv_path_lt_DD"; then
  5550. :
  5551. fi
  5552. else
  5553. ac_cv_path_lt_DD=$lt_DD
  5554. fi
  5555. rm -f conftest.i conftest2.i conftest.out
  5556. fi
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5558. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5560. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5561. if ${lt_cv_truncate_bin+:} false; then :
  5562. $as_echo_n "(cached) " >&6
  5563. else
  5564. printf 0123456789abcdef0123456789abcdef >conftest.i
  5565. cat conftest.i conftest.i >conftest2.i
  5566. lt_cv_truncate_bin=
  5567. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5568. cmp -s conftest.i conftest.out \
  5569. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5570. fi
  5571. rm -f conftest.i conftest2.i conftest.out
  5572. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5573. fi
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5575. $as_echo "$lt_cv_truncate_bin" >&6; }
  5576. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5577. func_cc_basename ()
  5578. {
  5579. for cc_temp in $*""; do
  5580. case $cc_temp in
  5581. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5582. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5583. \-*) ;;
  5584. *) break;;
  5585. esac
  5586. done
  5587. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5588. }
  5589. # Check whether --enable-libtool-lock was given.
  5590. if test "${enable_libtool_lock+set}" = set; then :
  5591. enableval=$enable_libtool_lock;
  5592. fi
  5593. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5594. # Some flags need to be propagated to the compiler or linker for good
  5595. # libtool support.
  5596. case $host in
  5597. ia64-*-hpux*)
  5598. # Find out what ABI is being produced by ac_compile, and set mode
  5599. # options accordingly.
  5600. echo 'int i;' > conftest.$ac_ext
  5601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5602. (eval $ac_compile) 2>&5
  5603. ac_status=$?
  5604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5605. test $ac_status = 0; }; then
  5606. case `/usr/bin/file conftest.$ac_objext` in
  5607. *ELF-32*)
  5608. HPUX_IA64_MODE=32
  5609. ;;
  5610. *ELF-64*)
  5611. HPUX_IA64_MODE=64
  5612. ;;
  5613. esac
  5614. fi
  5615. rm -rf conftest*
  5616. ;;
  5617. *-*-irix6*)
  5618. # Find out what ABI is being produced by ac_compile, and set linker
  5619. # options accordingly.
  5620. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5621. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5622. (eval $ac_compile) 2>&5
  5623. ac_status=$?
  5624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5625. test $ac_status = 0; }; then
  5626. if test yes = "$lt_cv_prog_gnu_ld"; then
  5627. case `/usr/bin/file conftest.$ac_objext` in
  5628. *32-bit*)
  5629. LD="${LD-ld} -melf32bsmip"
  5630. ;;
  5631. *N32*)
  5632. LD="${LD-ld} -melf32bmipn32"
  5633. ;;
  5634. *64-bit*)
  5635. LD="${LD-ld} -melf64bmip"
  5636. ;;
  5637. esac
  5638. else
  5639. case `/usr/bin/file conftest.$ac_objext` in
  5640. *32-bit*)
  5641. LD="${LD-ld} -32"
  5642. ;;
  5643. *N32*)
  5644. LD="${LD-ld} -n32"
  5645. ;;
  5646. *64-bit*)
  5647. LD="${LD-ld} -64"
  5648. ;;
  5649. esac
  5650. fi
  5651. fi
  5652. rm -rf conftest*
  5653. ;;
  5654. mips64*-*linux*)
  5655. # Find out what ABI is being produced by ac_compile, and set linker
  5656. # options accordingly.
  5657. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5658. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5659. (eval $ac_compile) 2>&5
  5660. ac_status=$?
  5661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5662. test $ac_status = 0; }; then
  5663. emul=elf
  5664. case `/usr/bin/file conftest.$ac_objext` in
  5665. *32-bit*)
  5666. emul="${emul}32"
  5667. ;;
  5668. *64-bit*)
  5669. emul="${emul}64"
  5670. ;;
  5671. esac
  5672. case `/usr/bin/file conftest.$ac_objext` in
  5673. *MSB*)
  5674. emul="${emul}btsmip"
  5675. ;;
  5676. *LSB*)
  5677. emul="${emul}ltsmip"
  5678. ;;
  5679. esac
  5680. case `/usr/bin/file conftest.$ac_objext` in
  5681. *N32*)
  5682. emul="${emul}n32"
  5683. ;;
  5684. esac
  5685. LD="${LD-ld} -m $emul"
  5686. fi
  5687. rm -rf conftest*
  5688. ;;
  5689. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5690. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5691. # Find out what ABI is being produced by ac_compile, and set linker
  5692. # options accordingly. Note that the listed cases only cover the
  5693. # situations where additional linker options are needed (such as when
  5694. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5695. # vice versa); the common cases where no linker options are needed do
  5696. # not appear in the list.
  5697. echo 'int i;' > conftest.$ac_ext
  5698. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5699. (eval $ac_compile) 2>&5
  5700. ac_status=$?
  5701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5702. test $ac_status = 0; }; then
  5703. case `/usr/bin/file conftest.o` in
  5704. *32-bit*)
  5705. case $host in
  5706. x86_64-*kfreebsd*-gnu)
  5707. LD="${LD-ld} -m elf_i386_fbsd"
  5708. ;;
  5709. x86_64-*linux*)
  5710. case `/usr/bin/file conftest.o` in
  5711. *x86-64*)
  5712. LD="${LD-ld} -m elf32_x86_64"
  5713. ;;
  5714. *)
  5715. LD="${LD-ld} -m elf_i386"
  5716. ;;
  5717. esac
  5718. ;;
  5719. powerpc64le-*linux*)
  5720. LD="${LD-ld} -m elf32lppclinux"
  5721. ;;
  5722. powerpc64-*linux*)
  5723. LD="${LD-ld} -m elf32ppclinux"
  5724. ;;
  5725. s390x-*linux*)
  5726. LD="${LD-ld} -m elf_s390"
  5727. ;;
  5728. sparc64-*linux*)
  5729. LD="${LD-ld} -m elf32_sparc"
  5730. ;;
  5731. esac
  5732. ;;
  5733. *64-bit*)
  5734. case $host in
  5735. x86_64-*kfreebsd*-gnu)
  5736. LD="${LD-ld} -m elf_x86_64_fbsd"
  5737. ;;
  5738. x86_64-*linux*)
  5739. LD="${LD-ld} -m elf_x86_64"
  5740. ;;
  5741. powerpcle-*linux*)
  5742. LD="${LD-ld} -m elf64lppc"
  5743. ;;
  5744. powerpc-*linux*)
  5745. LD="${LD-ld} -m elf64ppc"
  5746. ;;
  5747. s390*-*linux*|s390*-*tpf*)
  5748. LD="${LD-ld} -m elf64_s390"
  5749. ;;
  5750. sparc*-*linux*)
  5751. LD="${LD-ld} -m elf64_sparc"
  5752. ;;
  5753. esac
  5754. ;;
  5755. esac
  5756. fi
  5757. rm -rf conftest*
  5758. ;;
  5759. *-*-sco3.2v5*)
  5760. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5761. SAVE_CFLAGS=$CFLAGS
  5762. CFLAGS="$CFLAGS -belf"
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5764. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5765. if ${lt_cv_cc_needs_belf+:} false; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. ac_ext=c
  5769. ac_cpp='$CPP $CPPFLAGS'
  5770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5774. /* end confdefs.h. */
  5775. int
  5776. main ()
  5777. {
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. if ac_fn_c_try_link "$LINENO"; then :
  5783. lt_cv_cc_needs_belf=yes
  5784. else
  5785. lt_cv_cc_needs_belf=no
  5786. fi
  5787. rm -f core conftest.err conftest.$ac_objext \
  5788. conftest$ac_exeext conftest.$ac_ext
  5789. ac_ext=c
  5790. ac_cpp='$CPP $CPPFLAGS'
  5791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5794. fi
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5796. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5797. if test yes != "$lt_cv_cc_needs_belf"; then
  5798. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5799. CFLAGS=$SAVE_CFLAGS
  5800. fi
  5801. ;;
  5802. *-*solaris*)
  5803. # Find out what ABI is being produced by ac_compile, and set linker
  5804. # options accordingly.
  5805. echo 'int i;' > conftest.$ac_ext
  5806. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5807. (eval $ac_compile) 2>&5
  5808. ac_status=$?
  5809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5810. test $ac_status = 0; }; then
  5811. case `/usr/bin/file conftest.o` in
  5812. *64-bit*)
  5813. case $lt_cv_prog_gnu_ld in
  5814. yes*)
  5815. case $host in
  5816. i?86-*-solaris*|x86_64-*-solaris*)
  5817. LD="${LD-ld} -m elf_x86_64"
  5818. ;;
  5819. sparc*-*-solaris*)
  5820. LD="${LD-ld} -m elf64_sparc"
  5821. ;;
  5822. esac
  5823. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5824. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5825. LD=${LD-ld}_sol2
  5826. fi
  5827. ;;
  5828. *)
  5829. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5830. LD="${LD-ld} -64"
  5831. fi
  5832. ;;
  5833. esac
  5834. ;;
  5835. esac
  5836. fi
  5837. rm -rf conftest*
  5838. ;;
  5839. esac
  5840. need_locks=$enable_libtool_lock
  5841. if test -n "$ac_tool_prefix"; then
  5842. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5843. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5845. $as_echo_n "checking for $ac_word... " >&6; }
  5846. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. if test -n "$MANIFEST_TOOL"; then
  5850. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5851. else
  5852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. for as_dir in $PATH
  5854. do
  5855. IFS=$as_save_IFS
  5856. test -z "$as_dir" && as_dir=.
  5857. for ac_exec_ext in '' $ac_executable_extensions; do
  5858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5859. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. break 2
  5862. fi
  5863. done
  5864. done
  5865. IFS=$as_save_IFS
  5866. fi
  5867. fi
  5868. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5869. if test -n "$MANIFEST_TOOL"; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5871. $as_echo "$MANIFEST_TOOL" >&6; }
  5872. else
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5874. $as_echo "no" >&6; }
  5875. fi
  5876. fi
  5877. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5878. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5879. # Extract the first word of "mt", so it can be a program name with args.
  5880. set dummy mt; ac_word=$2
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5882. $as_echo_n "checking for $ac_word... " >&6; }
  5883. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5884. $as_echo_n "(cached) " >&6
  5885. else
  5886. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5887. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5888. else
  5889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5890. for as_dir in $PATH
  5891. do
  5892. IFS=$as_save_IFS
  5893. test -z "$as_dir" && as_dir=.
  5894. for ac_exec_ext in '' $ac_executable_extensions; do
  5895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5896. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5898. break 2
  5899. fi
  5900. done
  5901. done
  5902. IFS=$as_save_IFS
  5903. fi
  5904. fi
  5905. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5906. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5908. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5909. else
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5911. $as_echo "no" >&6; }
  5912. fi
  5913. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5914. MANIFEST_TOOL=":"
  5915. else
  5916. case $cross_compiling:$ac_tool_warned in
  5917. yes:)
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5920. ac_tool_warned=yes ;;
  5921. esac
  5922. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5923. fi
  5924. else
  5925. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5926. fi
  5927. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5929. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5930. if ${lt_cv_path_mainfest_tool+:} false; then :
  5931. $as_echo_n "(cached) " >&6
  5932. else
  5933. lt_cv_path_mainfest_tool=no
  5934. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5935. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5936. cat conftest.err >&5
  5937. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5938. lt_cv_path_mainfest_tool=yes
  5939. fi
  5940. rm -f conftest*
  5941. fi
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5943. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5944. if test yes != "$lt_cv_path_mainfest_tool"; then
  5945. MANIFEST_TOOL=:
  5946. fi
  5947. case $host_os in
  5948. rhapsody* | darwin*)
  5949. if test -n "$ac_tool_prefix"; then
  5950. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5951. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5953. $as_echo_n "checking for $ac_word... " >&6; }
  5954. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. if test -n "$DSYMUTIL"; then
  5958. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5959. else
  5960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5961. for as_dir in $PATH
  5962. do
  5963. IFS=$as_save_IFS
  5964. test -z "$as_dir" && as_dir=.
  5965. for ac_exec_ext in '' $ac_executable_extensions; do
  5966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5967. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5969. break 2
  5970. fi
  5971. done
  5972. done
  5973. IFS=$as_save_IFS
  5974. fi
  5975. fi
  5976. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5977. if test -n "$DSYMUTIL"; then
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5979. $as_echo "$DSYMUTIL" >&6; }
  5980. else
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5982. $as_echo "no" >&6; }
  5983. fi
  5984. fi
  5985. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5986. ac_ct_DSYMUTIL=$DSYMUTIL
  5987. # Extract the first word of "dsymutil", so it can be a program name with args.
  5988. set dummy dsymutil; ac_word=$2
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5990. $as_echo_n "checking for $ac_word... " >&6; }
  5991. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5992. $as_echo_n "(cached) " >&6
  5993. else
  5994. if test -n "$ac_ct_DSYMUTIL"; then
  5995. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5996. else
  5997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5998. for as_dir in $PATH
  5999. do
  6000. IFS=$as_save_IFS
  6001. test -z "$as_dir" && as_dir=.
  6002. for ac_exec_ext in '' $ac_executable_extensions; do
  6003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6004. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6006. break 2
  6007. fi
  6008. done
  6009. done
  6010. IFS=$as_save_IFS
  6011. fi
  6012. fi
  6013. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6014. if test -n "$ac_ct_DSYMUTIL"; then
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6016. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6017. else
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6019. $as_echo "no" >&6; }
  6020. fi
  6021. if test "x$ac_ct_DSYMUTIL" = x; then
  6022. DSYMUTIL=":"
  6023. else
  6024. case $cross_compiling:$ac_tool_warned in
  6025. yes:)
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6027. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6028. ac_tool_warned=yes ;;
  6029. esac
  6030. DSYMUTIL=$ac_ct_DSYMUTIL
  6031. fi
  6032. else
  6033. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6034. fi
  6035. if test -n "$ac_tool_prefix"; then
  6036. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6037. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6039. $as_echo_n "checking for $ac_word... " >&6; }
  6040. if ${ac_cv_prog_NMEDIT+:} false; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. if test -n "$NMEDIT"; then
  6044. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6053. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. NMEDIT=$ac_cv_prog_NMEDIT
  6063. if test -n "$NMEDIT"; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6065. $as_echo "$NMEDIT" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. fi
  6071. if test -z "$ac_cv_prog_NMEDIT"; then
  6072. ac_ct_NMEDIT=$NMEDIT
  6073. # Extract the first word of "nmedit", so it can be a program name with args.
  6074. set dummy nmedit; ac_word=$2
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6076. $as_echo_n "checking for $ac_word... " >&6; }
  6077. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. if test -n "$ac_ct_NMEDIT"; then
  6081. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6082. else
  6083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6084. for as_dir in $PATH
  6085. do
  6086. IFS=$as_save_IFS
  6087. test -z "$as_dir" && as_dir=.
  6088. for ac_exec_ext in '' $ac_executable_extensions; do
  6089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6090. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6092. break 2
  6093. fi
  6094. done
  6095. done
  6096. IFS=$as_save_IFS
  6097. fi
  6098. fi
  6099. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6100. if test -n "$ac_ct_NMEDIT"; then
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6102. $as_echo "$ac_ct_NMEDIT" >&6; }
  6103. else
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6105. $as_echo "no" >&6; }
  6106. fi
  6107. if test "x$ac_ct_NMEDIT" = x; then
  6108. NMEDIT=":"
  6109. else
  6110. case $cross_compiling:$ac_tool_warned in
  6111. yes:)
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6113. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6114. ac_tool_warned=yes ;;
  6115. esac
  6116. NMEDIT=$ac_ct_NMEDIT
  6117. fi
  6118. else
  6119. NMEDIT="$ac_cv_prog_NMEDIT"
  6120. fi
  6121. if test -n "$ac_tool_prefix"; then
  6122. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6123. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6125. $as_echo_n "checking for $ac_word... " >&6; }
  6126. if ${ac_cv_prog_LIPO+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. if test -n "$LIPO"; then
  6130. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6131. else
  6132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6133. for as_dir in $PATH
  6134. do
  6135. IFS=$as_save_IFS
  6136. test -z "$as_dir" && as_dir=.
  6137. for ac_exec_ext in '' $ac_executable_extensions; do
  6138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6139. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6141. break 2
  6142. fi
  6143. done
  6144. done
  6145. IFS=$as_save_IFS
  6146. fi
  6147. fi
  6148. LIPO=$ac_cv_prog_LIPO
  6149. if test -n "$LIPO"; then
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6151. $as_echo "$LIPO" >&6; }
  6152. else
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6154. $as_echo "no" >&6; }
  6155. fi
  6156. fi
  6157. if test -z "$ac_cv_prog_LIPO"; then
  6158. ac_ct_LIPO=$LIPO
  6159. # Extract the first word of "lipo", so it can be a program name with args.
  6160. set dummy lipo; ac_word=$2
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6162. $as_echo_n "checking for $ac_word... " >&6; }
  6163. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. if test -n "$ac_ct_LIPO"; then
  6167. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6168. else
  6169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6170. for as_dir in $PATH
  6171. do
  6172. IFS=$as_save_IFS
  6173. test -z "$as_dir" && as_dir=.
  6174. for ac_exec_ext in '' $ac_executable_extensions; do
  6175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6176. ac_cv_prog_ac_ct_LIPO="lipo"
  6177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6178. break 2
  6179. fi
  6180. done
  6181. done
  6182. IFS=$as_save_IFS
  6183. fi
  6184. fi
  6185. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6186. if test -n "$ac_ct_LIPO"; then
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6188. $as_echo "$ac_ct_LIPO" >&6; }
  6189. else
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6191. $as_echo "no" >&6; }
  6192. fi
  6193. if test "x$ac_ct_LIPO" = x; then
  6194. LIPO=":"
  6195. else
  6196. case $cross_compiling:$ac_tool_warned in
  6197. yes:)
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6199. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6200. ac_tool_warned=yes ;;
  6201. esac
  6202. LIPO=$ac_ct_LIPO
  6203. fi
  6204. else
  6205. LIPO="$ac_cv_prog_LIPO"
  6206. fi
  6207. if test -n "$ac_tool_prefix"; then
  6208. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6209. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6211. $as_echo_n "checking for $ac_word... " >&6; }
  6212. if ${ac_cv_prog_OTOOL+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. if test -n "$OTOOL"; then
  6216. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6217. else
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6225. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. fi
  6233. fi
  6234. OTOOL=$ac_cv_prog_OTOOL
  6235. if test -n "$OTOOL"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6237. $as_echo "$OTOOL" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. fi
  6243. if test -z "$ac_cv_prog_OTOOL"; then
  6244. ac_ct_OTOOL=$OTOOL
  6245. # Extract the first word of "otool", so it can be a program name with args.
  6246. set dummy otool; ac_word=$2
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6248. $as_echo_n "checking for $ac_word... " >&6; }
  6249. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. if test -n "$ac_ct_OTOOL"; then
  6253. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6262. ac_cv_prog_ac_ct_OTOOL="otool"
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6272. if test -n "$ac_ct_OTOOL"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6274. $as_echo "$ac_ct_OTOOL" >&6; }
  6275. else
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. $as_echo "no" >&6; }
  6278. fi
  6279. if test "x$ac_ct_OTOOL" = x; then
  6280. OTOOL=":"
  6281. else
  6282. case $cross_compiling:$ac_tool_warned in
  6283. yes:)
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6285. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6286. ac_tool_warned=yes ;;
  6287. esac
  6288. OTOOL=$ac_ct_OTOOL
  6289. fi
  6290. else
  6291. OTOOL="$ac_cv_prog_OTOOL"
  6292. fi
  6293. if test -n "$ac_tool_prefix"; then
  6294. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6295. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6297. $as_echo_n "checking for $ac_word... " >&6; }
  6298. if ${ac_cv_prog_OTOOL64+:} false; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. if test -n "$OTOOL64"; then
  6302. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6303. else
  6304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6305. for as_dir in $PATH
  6306. do
  6307. IFS=$as_save_IFS
  6308. test -z "$as_dir" && as_dir=.
  6309. for ac_exec_ext in '' $ac_executable_extensions; do
  6310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6311. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6313. break 2
  6314. fi
  6315. done
  6316. done
  6317. IFS=$as_save_IFS
  6318. fi
  6319. fi
  6320. OTOOL64=$ac_cv_prog_OTOOL64
  6321. if test -n "$OTOOL64"; then
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6323. $as_echo "$OTOOL64" >&6; }
  6324. else
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6326. $as_echo "no" >&6; }
  6327. fi
  6328. fi
  6329. if test -z "$ac_cv_prog_OTOOL64"; then
  6330. ac_ct_OTOOL64=$OTOOL64
  6331. # Extract the first word of "otool64", so it can be a program name with args.
  6332. set dummy otool64; ac_word=$2
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6334. $as_echo_n "checking for $ac_word... " >&6; }
  6335. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6336. $as_echo_n "(cached) " >&6
  6337. else
  6338. if test -n "$ac_ct_OTOOL64"; then
  6339. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6340. else
  6341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6342. for as_dir in $PATH
  6343. do
  6344. IFS=$as_save_IFS
  6345. test -z "$as_dir" && as_dir=.
  6346. for ac_exec_ext in '' $ac_executable_extensions; do
  6347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6348. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6350. break 2
  6351. fi
  6352. done
  6353. done
  6354. IFS=$as_save_IFS
  6355. fi
  6356. fi
  6357. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6358. if test -n "$ac_ct_OTOOL64"; then
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6360. $as_echo "$ac_ct_OTOOL64" >&6; }
  6361. else
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6363. $as_echo "no" >&6; }
  6364. fi
  6365. if test "x$ac_ct_OTOOL64" = x; then
  6366. OTOOL64=":"
  6367. else
  6368. case $cross_compiling:$ac_tool_warned in
  6369. yes:)
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6371. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6372. ac_tool_warned=yes ;;
  6373. esac
  6374. OTOOL64=$ac_ct_OTOOL64
  6375. fi
  6376. else
  6377. OTOOL64="$ac_cv_prog_OTOOL64"
  6378. fi
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6380. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6381. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. lt_cv_apple_cc_single_mod=no
  6385. if test -z "$LT_MULTI_MODULE"; then
  6386. # By default we will add the -single_module flag. You can override
  6387. # by either setting the environment variable LT_MULTI_MODULE
  6388. # non-empty at configure time, or by adding -multi_module to the
  6389. # link flags.
  6390. rm -rf libconftest.dylib*
  6391. echo "int foo(void){return 1;}" > conftest.c
  6392. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6393. -dynamiclib -Wl,-single_module conftest.c" >&5
  6394. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6395. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6396. _lt_result=$?
  6397. # If there is a non-empty error log, and "single_module"
  6398. # appears in it, assume the flag caused a linker warning
  6399. if test -s conftest.err && $GREP single_module conftest.err; then
  6400. cat conftest.err >&5
  6401. # Otherwise, if the output was created with a 0 exit code from
  6402. # the compiler, it worked.
  6403. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6404. lt_cv_apple_cc_single_mod=yes
  6405. else
  6406. cat conftest.err >&5
  6407. fi
  6408. rm -rf libconftest.dylib*
  6409. rm -f conftest.*
  6410. fi
  6411. fi
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6413. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6415. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6416. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. lt_cv_ld_exported_symbols_list=no
  6420. save_LDFLAGS=$LDFLAGS
  6421. echo "_main" > conftest.sym
  6422. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h. */
  6425. int
  6426. main ()
  6427. {
  6428. ;
  6429. return 0;
  6430. }
  6431. _ACEOF
  6432. if ac_fn_c_try_link "$LINENO"; then :
  6433. lt_cv_ld_exported_symbols_list=yes
  6434. else
  6435. lt_cv_ld_exported_symbols_list=no
  6436. fi
  6437. rm -f core conftest.err conftest.$ac_objext \
  6438. conftest$ac_exeext conftest.$ac_ext
  6439. LDFLAGS=$save_LDFLAGS
  6440. fi
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6442. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6444. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6445. if ${lt_cv_ld_force_load+:} false; then :
  6446. $as_echo_n "(cached) " >&6
  6447. else
  6448. lt_cv_ld_force_load=no
  6449. cat > conftest.c << _LT_EOF
  6450. int forced_loaded() { return 2;}
  6451. _LT_EOF
  6452. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6453. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6454. echo "$AR cr libconftest.a conftest.o" >&5
  6455. $AR cr libconftest.a conftest.o 2>&5
  6456. echo "$RANLIB libconftest.a" >&5
  6457. $RANLIB libconftest.a 2>&5
  6458. cat > conftest.c << _LT_EOF
  6459. int main() { return 0;}
  6460. _LT_EOF
  6461. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6462. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6463. _lt_result=$?
  6464. if test -s conftest.err && $GREP force_load conftest.err; then
  6465. cat conftest.err >&5
  6466. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6467. lt_cv_ld_force_load=yes
  6468. else
  6469. cat conftest.err >&5
  6470. fi
  6471. rm -f conftest.err libconftest.a conftest conftest.c
  6472. rm -rf conftest.dSYM
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6475. $as_echo "$lt_cv_ld_force_load" >&6; }
  6476. case $host_os in
  6477. rhapsody* | darwin1.[012])
  6478. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6479. darwin1.*)
  6480. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6481. darwin*) # darwin 5.x on
  6482. # if running on 10.5 or later, the deployment target defaults
  6483. # to the OS version, if on x86, and 10.4, the deployment
  6484. # target defaults to 10.4. Don't you love it?
  6485. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6486. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6487. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6488. 10.[012][,.]*)
  6489. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6490. 10.*)
  6491. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6492. esac
  6493. ;;
  6494. esac
  6495. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6496. _lt_dar_single_mod='$single_module'
  6497. fi
  6498. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6499. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6500. else
  6501. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6502. fi
  6503. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6504. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6505. else
  6506. _lt_dsymutil=
  6507. fi
  6508. ;;
  6509. esac
  6510. # func_munge_path_list VARIABLE PATH
  6511. # -----------------------------------
  6512. # VARIABLE is name of variable containing _space_ separated list of
  6513. # directories to be munged by the contents of PATH, which is string
  6514. # having a format:
  6515. # "DIR[:DIR]:"
  6516. # string "DIR[ DIR]" will be prepended to VARIABLE
  6517. # ":DIR[:DIR]"
  6518. # string "DIR[ DIR]" will be appended to VARIABLE
  6519. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6520. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6521. # "DIRA[ DIRA]" will be appended to VARIABLE
  6522. # "DIR[:DIR]"
  6523. # VARIABLE will be replaced by "DIR[ DIR]"
  6524. func_munge_path_list ()
  6525. {
  6526. case x$2 in
  6527. x)
  6528. ;;
  6529. *:)
  6530. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6531. ;;
  6532. x:*)
  6533. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6534. ;;
  6535. *::*)
  6536. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6537. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6538. ;;
  6539. *)
  6540. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6541. ;;
  6542. esac
  6543. }
  6544. ac_ext=c
  6545. ac_cpp='$CPP $CPPFLAGS'
  6546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6550. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6551. # On Suns, sometimes $CPP names a directory.
  6552. if test -n "$CPP" && test -d "$CPP"; then
  6553. CPP=
  6554. fi
  6555. if test -z "$CPP"; then
  6556. if ${ac_cv_prog_CPP+:} false; then :
  6557. $as_echo_n "(cached) " >&6
  6558. else
  6559. # Double quotes because CPP needs to be expanded
  6560. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6561. do
  6562. ac_preproc_ok=false
  6563. for ac_c_preproc_warn_flag in '' yes
  6564. do
  6565. # Use a header file that comes with gcc, so configuring glibc
  6566. # with a fresh cross-compiler works.
  6567. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6568. # <limits.h> exists even on freestanding compilers.
  6569. # On the NeXT, cc -E runs the code through the compiler's parser,
  6570. # not just through cpp. "Syntax error" is here to catch this case.
  6571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6572. /* end confdefs.h. */
  6573. #ifdef __STDC__
  6574. # include <limits.h>
  6575. #else
  6576. # include <assert.h>
  6577. #endif
  6578. Syntax error
  6579. _ACEOF
  6580. if ac_fn_c_try_cpp "$LINENO"; then :
  6581. else
  6582. # Broken: fails on valid input.
  6583. continue
  6584. fi
  6585. rm -f conftest.err conftest.i conftest.$ac_ext
  6586. # OK, works on sane cases. Now check whether nonexistent headers
  6587. # can be detected and how.
  6588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6589. /* end confdefs.h. */
  6590. #include <ac_nonexistent.h>
  6591. _ACEOF
  6592. if ac_fn_c_try_cpp "$LINENO"; then :
  6593. # Broken: success on invalid input.
  6594. continue
  6595. else
  6596. # Passes both tests.
  6597. ac_preproc_ok=:
  6598. break
  6599. fi
  6600. rm -f conftest.err conftest.i conftest.$ac_ext
  6601. done
  6602. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6603. rm -f conftest.i conftest.err conftest.$ac_ext
  6604. if $ac_preproc_ok; then :
  6605. break
  6606. fi
  6607. done
  6608. ac_cv_prog_CPP=$CPP
  6609. fi
  6610. CPP=$ac_cv_prog_CPP
  6611. else
  6612. ac_cv_prog_CPP=$CPP
  6613. fi
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6615. $as_echo "$CPP" >&6; }
  6616. ac_preproc_ok=false
  6617. for ac_c_preproc_warn_flag in '' yes
  6618. do
  6619. # Use a header file that comes with gcc, so configuring glibc
  6620. # with a fresh cross-compiler works.
  6621. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6622. # <limits.h> exists even on freestanding compilers.
  6623. # On the NeXT, cc -E runs the code through the compiler's parser,
  6624. # not just through cpp. "Syntax error" is here to catch this case.
  6625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6626. /* end confdefs.h. */
  6627. #ifdef __STDC__
  6628. # include <limits.h>
  6629. #else
  6630. # include <assert.h>
  6631. #endif
  6632. Syntax error
  6633. _ACEOF
  6634. if ac_fn_c_try_cpp "$LINENO"; then :
  6635. else
  6636. # Broken: fails on valid input.
  6637. continue
  6638. fi
  6639. rm -f conftest.err conftest.i conftest.$ac_ext
  6640. # OK, works on sane cases. Now check whether nonexistent headers
  6641. # can be detected and how.
  6642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6643. /* end confdefs.h. */
  6644. #include <ac_nonexistent.h>
  6645. _ACEOF
  6646. if ac_fn_c_try_cpp "$LINENO"; then :
  6647. # Broken: success on invalid input.
  6648. continue
  6649. else
  6650. # Passes both tests.
  6651. ac_preproc_ok=:
  6652. break
  6653. fi
  6654. rm -f conftest.err conftest.i conftest.$ac_ext
  6655. done
  6656. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6657. rm -f conftest.i conftest.err conftest.$ac_ext
  6658. if $ac_preproc_ok; then :
  6659. else
  6660. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6661. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6662. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6663. See \`config.log' for more details" "$LINENO" 5; }
  6664. fi
  6665. ac_ext=c
  6666. ac_cpp='$CPP $CPPFLAGS'
  6667. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6668. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6669. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6671. $as_echo_n "checking for ANSI C header files... " >&6; }
  6672. if ${ac_cv_header_stdc+:} false; then :
  6673. $as_echo_n "(cached) " >&6
  6674. else
  6675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6676. /* end confdefs.h. */
  6677. #include <stdlib.h>
  6678. #include <stdarg.h>
  6679. #include <string.h>
  6680. #include <float.h>
  6681. int
  6682. main ()
  6683. {
  6684. ;
  6685. return 0;
  6686. }
  6687. _ACEOF
  6688. if ac_fn_c_try_compile "$LINENO"; then :
  6689. ac_cv_header_stdc=yes
  6690. else
  6691. ac_cv_header_stdc=no
  6692. fi
  6693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6694. if test $ac_cv_header_stdc = yes; then
  6695. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6697. /* end confdefs.h. */
  6698. #include <string.h>
  6699. _ACEOF
  6700. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6701. $EGREP "memchr" >/dev/null 2>&1; then :
  6702. else
  6703. ac_cv_header_stdc=no
  6704. fi
  6705. rm -f conftest*
  6706. fi
  6707. if test $ac_cv_header_stdc = yes; then
  6708. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6710. /* end confdefs.h. */
  6711. #include <stdlib.h>
  6712. _ACEOF
  6713. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6714. $EGREP "free" >/dev/null 2>&1; then :
  6715. else
  6716. ac_cv_header_stdc=no
  6717. fi
  6718. rm -f conftest*
  6719. fi
  6720. if test $ac_cv_header_stdc = yes; then
  6721. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6722. if test "$cross_compiling" = yes; then :
  6723. :
  6724. else
  6725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6726. /* end confdefs.h. */
  6727. #include <ctype.h>
  6728. #include <stdlib.h>
  6729. #if ((' ' & 0x0FF) == 0x020)
  6730. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6731. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6732. #else
  6733. # define ISLOWER(c) \
  6734. (('a' <= (c) && (c) <= 'i') \
  6735. || ('j' <= (c) && (c) <= 'r') \
  6736. || ('s' <= (c) && (c) <= 'z'))
  6737. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6738. #endif
  6739. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6740. int
  6741. main ()
  6742. {
  6743. int i;
  6744. for (i = 0; i < 256; i++)
  6745. if (XOR (islower (i), ISLOWER (i))
  6746. || toupper (i) != TOUPPER (i))
  6747. return 2;
  6748. return 0;
  6749. }
  6750. _ACEOF
  6751. if ac_fn_c_try_run "$LINENO"; then :
  6752. else
  6753. ac_cv_header_stdc=no
  6754. fi
  6755. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6756. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6757. fi
  6758. fi
  6759. fi
  6760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6761. $as_echo "$ac_cv_header_stdc" >&6; }
  6762. if test $ac_cv_header_stdc = yes; then
  6763. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6764. fi
  6765. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6766. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6767. inttypes.h stdint.h unistd.h
  6768. do :
  6769. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6770. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6771. "
  6772. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6773. cat >>confdefs.h <<_ACEOF
  6774. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6775. _ACEOF
  6776. fi
  6777. done
  6778. for ac_header in dlfcn.h
  6779. do :
  6780. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6781. "
  6782. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6783. cat >>confdefs.h <<_ACEOF
  6784. #define HAVE_DLFCN_H 1
  6785. _ACEOF
  6786. fi
  6787. done
  6788. # Set options
  6789. enable_dlopen=yes
  6790. enable_win32_dll=yes
  6791. case $host in
  6792. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6793. if test -n "$ac_tool_prefix"; then
  6794. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6795. set dummy ${ac_tool_prefix}as; ac_word=$2
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6797. $as_echo_n "checking for $ac_word... " >&6; }
  6798. if ${ac_cv_prog_AS+:} false; then :
  6799. $as_echo_n "(cached) " >&6
  6800. else
  6801. if test -n "$AS"; then
  6802. ac_cv_prog_AS="$AS" # Let the user override the test.
  6803. else
  6804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6805. for as_dir in $PATH
  6806. do
  6807. IFS=$as_save_IFS
  6808. test -z "$as_dir" && as_dir=.
  6809. for ac_exec_ext in '' $ac_executable_extensions; do
  6810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6811. ac_cv_prog_AS="${ac_tool_prefix}as"
  6812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6813. break 2
  6814. fi
  6815. done
  6816. done
  6817. IFS=$as_save_IFS
  6818. fi
  6819. fi
  6820. AS=$ac_cv_prog_AS
  6821. if test -n "$AS"; then
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6823. $as_echo "$AS" >&6; }
  6824. else
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6826. $as_echo "no" >&6; }
  6827. fi
  6828. fi
  6829. if test -z "$ac_cv_prog_AS"; then
  6830. ac_ct_AS=$AS
  6831. # Extract the first word of "as", so it can be a program name with args.
  6832. set dummy as; ac_word=$2
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6834. $as_echo_n "checking for $ac_word... " >&6; }
  6835. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6836. $as_echo_n "(cached) " >&6
  6837. else
  6838. if test -n "$ac_ct_AS"; then
  6839. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6840. else
  6841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6842. for as_dir in $PATH
  6843. do
  6844. IFS=$as_save_IFS
  6845. test -z "$as_dir" && as_dir=.
  6846. for ac_exec_ext in '' $ac_executable_extensions; do
  6847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6848. ac_cv_prog_ac_ct_AS="as"
  6849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6850. break 2
  6851. fi
  6852. done
  6853. done
  6854. IFS=$as_save_IFS
  6855. fi
  6856. fi
  6857. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6858. if test -n "$ac_ct_AS"; then
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6860. $as_echo "$ac_ct_AS" >&6; }
  6861. else
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6863. $as_echo "no" >&6; }
  6864. fi
  6865. if test "x$ac_ct_AS" = x; then
  6866. AS="false"
  6867. else
  6868. case $cross_compiling:$ac_tool_warned in
  6869. yes:)
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6872. ac_tool_warned=yes ;;
  6873. esac
  6874. AS=$ac_ct_AS
  6875. fi
  6876. else
  6877. AS="$ac_cv_prog_AS"
  6878. fi
  6879. if test -n "$ac_tool_prefix"; then
  6880. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6881. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6883. $as_echo_n "checking for $ac_word... " >&6; }
  6884. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6885. $as_echo_n "(cached) " >&6
  6886. else
  6887. if test -n "$DLLTOOL"; then
  6888. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6889. else
  6890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6891. for as_dir in $PATH
  6892. do
  6893. IFS=$as_save_IFS
  6894. test -z "$as_dir" && as_dir=.
  6895. for ac_exec_ext in '' $ac_executable_extensions; do
  6896. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6897. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6899. break 2
  6900. fi
  6901. done
  6902. done
  6903. IFS=$as_save_IFS
  6904. fi
  6905. fi
  6906. DLLTOOL=$ac_cv_prog_DLLTOOL
  6907. if test -n "$DLLTOOL"; then
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6909. $as_echo "$DLLTOOL" >&6; }
  6910. else
  6911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6912. $as_echo "no" >&6; }
  6913. fi
  6914. fi
  6915. if test -z "$ac_cv_prog_DLLTOOL"; then
  6916. ac_ct_DLLTOOL=$DLLTOOL
  6917. # Extract the first word of "dlltool", so it can be a program name with args.
  6918. set dummy dlltool; ac_word=$2
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6920. $as_echo_n "checking for $ac_word... " >&6; }
  6921. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6922. $as_echo_n "(cached) " >&6
  6923. else
  6924. if test -n "$ac_ct_DLLTOOL"; then
  6925. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6926. else
  6927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6928. for as_dir in $PATH
  6929. do
  6930. IFS=$as_save_IFS
  6931. test -z "$as_dir" && as_dir=.
  6932. for ac_exec_ext in '' $ac_executable_extensions; do
  6933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6934. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6936. break 2
  6937. fi
  6938. done
  6939. done
  6940. IFS=$as_save_IFS
  6941. fi
  6942. fi
  6943. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6944. if test -n "$ac_ct_DLLTOOL"; then
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6946. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6947. else
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6949. $as_echo "no" >&6; }
  6950. fi
  6951. if test "x$ac_ct_DLLTOOL" = x; then
  6952. DLLTOOL="false"
  6953. else
  6954. case $cross_compiling:$ac_tool_warned in
  6955. yes:)
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6957. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6958. ac_tool_warned=yes ;;
  6959. esac
  6960. DLLTOOL=$ac_ct_DLLTOOL
  6961. fi
  6962. else
  6963. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6964. fi
  6965. if test -n "$ac_tool_prefix"; then
  6966. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6967. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6969. $as_echo_n "checking for $ac_word... " >&6; }
  6970. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6971. $as_echo_n "(cached) " >&6
  6972. else
  6973. if test -n "$OBJDUMP"; then
  6974. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6975. else
  6976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6977. for as_dir in $PATH
  6978. do
  6979. IFS=$as_save_IFS
  6980. test -z "$as_dir" && as_dir=.
  6981. for ac_exec_ext in '' $ac_executable_extensions; do
  6982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6983. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6985. break 2
  6986. fi
  6987. done
  6988. done
  6989. IFS=$as_save_IFS
  6990. fi
  6991. fi
  6992. OBJDUMP=$ac_cv_prog_OBJDUMP
  6993. if test -n "$OBJDUMP"; then
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6995. $as_echo "$OBJDUMP" >&6; }
  6996. else
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6998. $as_echo "no" >&6; }
  6999. fi
  7000. fi
  7001. if test -z "$ac_cv_prog_OBJDUMP"; then
  7002. ac_ct_OBJDUMP=$OBJDUMP
  7003. # Extract the first word of "objdump", so it can be a program name with args.
  7004. set dummy objdump; ac_word=$2
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7006. $as_echo_n "checking for $ac_word... " >&6; }
  7007. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7008. $as_echo_n "(cached) " >&6
  7009. else
  7010. if test -n "$ac_ct_OBJDUMP"; then
  7011. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7012. else
  7013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7014. for as_dir in $PATH
  7015. do
  7016. IFS=$as_save_IFS
  7017. test -z "$as_dir" && as_dir=.
  7018. for ac_exec_ext in '' $ac_executable_extensions; do
  7019. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7020. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7022. break 2
  7023. fi
  7024. done
  7025. done
  7026. IFS=$as_save_IFS
  7027. fi
  7028. fi
  7029. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7030. if test -n "$ac_ct_OBJDUMP"; then
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7032. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7033. else
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7035. $as_echo "no" >&6; }
  7036. fi
  7037. if test "x$ac_ct_OBJDUMP" = x; then
  7038. OBJDUMP="false"
  7039. else
  7040. case $cross_compiling:$ac_tool_warned in
  7041. yes:)
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7043. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7044. ac_tool_warned=yes ;;
  7045. esac
  7046. OBJDUMP=$ac_ct_OBJDUMP
  7047. fi
  7048. else
  7049. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7050. fi
  7051. ;;
  7052. esac
  7053. test -z "$AS" && AS=as
  7054. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7055. test -z "$OBJDUMP" && OBJDUMP=objdump
  7056. # Check whether --enable-shared was given.
  7057. if test "${enable_shared+set}" = set; then :
  7058. enableval=$enable_shared; p=${PACKAGE-default}
  7059. case $enableval in
  7060. yes) enable_shared=yes ;;
  7061. no) enable_shared=no ;;
  7062. *)
  7063. enable_shared=no
  7064. # Look at the argument we got. We use all the common list separators.
  7065. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7066. for pkg in $enableval; do
  7067. IFS=$lt_save_ifs
  7068. if test "X$pkg" = "X$p"; then
  7069. enable_shared=yes
  7070. fi
  7071. done
  7072. IFS=$lt_save_ifs
  7073. ;;
  7074. esac
  7075. else
  7076. enable_shared=yes
  7077. fi
  7078. # Check whether --enable-static was given.
  7079. if test "${enable_static+set}" = set; then :
  7080. enableval=$enable_static; p=${PACKAGE-default}
  7081. case $enableval in
  7082. yes) enable_static=yes ;;
  7083. no) enable_static=no ;;
  7084. *)
  7085. enable_static=no
  7086. # Look at the argument we got. We use all the common list separators.
  7087. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7088. for pkg in $enableval; do
  7089. IFS=$lt_save_ifs
  7090. if test "X$pkg" = "X$p"; then
  7091. enable_static=yes
  7092. fi
  7093. done
  7094. IFS=$lt_save_ifs
  7095. ;;
  7096. esac
  7097. else
  7098. enable_static=yes
  7099. fi
  7100. # Check whether --with-pic was given.
  7101. if test "${with_pic+set}" = set; then :
  7102. withval=$with_pic; lt_p=${PACKAGE-default}
  7103. case $withval in
  7104. yes|no) pic_mode=$withval ;;
  7105. *)
  7106. pic_mode=default
  7107. # Look at the argument we got. We use all the common list separators.
  7108. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7109. for lt_pkg in $withval; do
  7110. IFS=$lt_save_ifs
  7111. if test "X$lt_pkg" = "X$lt_p"; then
  7112. pic_mode=yes
  7113. fi
  7114. done
  7115. IFS=$lt_save_ifs
  7116. ;;
  7117. esac
  7118. else
  7119. pic_mode=default
  7120. fi
  7121. # Check whether --enable-fast-install was given.
  7122. if test "${enable_fast_install+set}" = set; then :
  7123. enableval=$enable_fast_install; p=${PACKAGE-default}
  7124. case $enableval in
  7125. yes) enable_fast_install=yes ;;
  7126. no) enable_fast_install=no ;;
  7127. *)
  7128. enable_fast_install=no
  7129. # Look at the argument we got. We use all the common list separators.
  7130. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7131. for pkg in $enableval; do
  7132. IFS=$lt_save_ifs
  7133. if test "X$pkg" = "X$p"; then
  7134. enable_fast_install=yes
  7135. fi
  7136. done
  7137. IFS=$lt_save_ifs
  7138. ;;
  7139. esac
  7140. else
  7141. enable_fast_install=yes
  7142. fi
  7143. shared_archive_member_spec=
  7144. case $host,$enable_shared in
  7145. power*-*-aix[5-9]*,yes)
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7147. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7148. # Check whether --with-aix-soname was given.
  7149. if test "${with_aix_soname+set}" = set; then :
  7150. withval=$with_aix_soname; case $withval in
  7151. aix|svr4|both)
  7152. ;;
  7153. *)
  7154. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7155. ;;
  7156. esac
  7157. lt_cv_with_aix_soname=$with_aix_soname
  7158. else
  7159. if ${lt_cv_with_aix_soname+:} false; then :
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. lt_cv_with_aix_soname=aix
  7163. fi
  7164. with_aix_soname=$lt_cv_with_aix_soname
  7165. fi
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7167. $as_echo "$with_aix_soname" >&6; }
  7168. if test aix != "$with_aix_soname"; then
  7169. # For the AIX way of multilib, we name the shared archive member
  7170. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7171. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7172. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7173. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7174. if test 64 = "${OBJECT_MODE-32}"; then
  7175. shared_archive_member_spec=shr_64
  7176. else
  7177. shared_archive_member_spec=shr
  7178. fi
  7179. fi
  7180. ;;
  7181. *)
  7182. with_aix_soname=aix
  7183. ;;
  7184. esac
  7185. # This can be used to rebuild libtool when needed
  7186. LIBTOOL_DEPS=$ltmain
  7187. # Always use our own libtool.
  7188. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7189. test -z "$LN_S" && LN_S="ln -s"
  7190. if test -n "${ZSH_VERSION+set}"; then
  7191. setopt NO_GLOB_SUBST
  7192. fi
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7194. $as_echo_n "checking for objdir... " >&6; }
  7195. if ${lt_cv_objdir+:} false; then :
  7196. $as_echo_n "(cached) " >&6
  7197. else
  7198. rm -f .libs 2>/dev/null
  7199. mkdir .libs 2>/dev/null
  7200. if test -d .libs; then
  7201. lt_cv_objdir=.libs
  7202. else
  7203. # MS-DOS does not allow filenames that begin with a dot.
  7204. lt_cv_objdir=_libs
  7205. fi
  7206. rmdir .libs 2>/dev/null
  7207. fi
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7209. $as_echo "$lt_cv_objdir" >&6; }
  7210. objdir=$lt_cv_objdir
  7211. cat >>confdefs.h <<_ACEOF
  7212. #define LT_OBJDIR "$lt_cv_objdir/"
  7213. _ACEOF
  7214. case $host_os in
  7215. aix3*)
  7216. # AIX sometimes has problems with the GCC collect2 program. For some
  7217. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7218. # vanish in a puff of smoke.
  7219. if test set != "${COLLECT_NAMES+set}"; then
  7220. COLLECT_NAMES=
  7221. export COLLECT_NAMES
  7222. fi
  7223. ;;
  7224. esac
  7225. # Global variables:
  7226. ofile=libtool
  7227. can_build_shared=yes
  7228. # All known linkers require a '.a' archive for static linking (except MSVC,
  7229. # which needs '.lib').
  7230. libext=a
  7231. with_gnu_ld=$lt_cv_prog_gnu_ld
  7232. old_CC=$CC
  7233. old_CFLAGS=$CFLAGS
  7234. # Set sane defaults for various variables
  7235. test -z "$CC" && CC=cc
  7236. test -z "$LTCC" && LTCC=$CC
  7237. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7238. test -z "$LD" && LD=ld
  7239. test -z "$ac_objext" && ac_objext=o
  7240. func_cc_basename $compiler
  7241. cc_basename=$func_cc_basename_result
  7242. # Only perform the check for file, if the check method requires it
  7243. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7244. case $deplibs_check_method in
  7245. file_magic*)
  7246. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7248. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7249. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7250. $as_echo_n "(cached) " >&6
  7251. else
  7252. case $MAGIC_CMD in
  7253. [\\/*] | ?:[\\/]*)
  7254. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7255. ;;
  7256. *)
  7257. lt_save_MAGIC_CMD=$MAGIC_CMD
  7258. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7259. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7260. for ac_dir in $ac_dummy; do
  7261. IFS=$lt_save_ifs
  7262. test -z "$ac_dir" && ac_dir=.
  7263. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7264. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7265. if test -n "$file_magic_test_file"; then
  7266. case $deplibs_check_method in
  7267. "file_magic "*)
  7268. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7269. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7270. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7271. $EGREP "$file_magic_regex" > /dev/null; then
  7272. :
  7273. else
  7274. cat <<_LT_EOF 1>&2
  7275. *** Warning: the command libtool uses to detect shared libraries,
  7276. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7277. *** The result is that libtool may fail to recognize shared libraries
  7278. *** as such. This will affect the creation of libtool libraries that
  7279. *** depend on shared libraries, but programs linked with such libtool
  7280. *** libraries will work regardless of this problem. Nevertheless, you
  7281. *** may want to report the problem to your system manager and/or to
  7282. *** [email protected]
  7283. _LT_EOF
  7284. fi ;;
  7285. esac
  7286. fi
  7287. break
  7288. fi
  7289. done
  7290. IFS=$lt_save_ifs
  7291. MAGIC_CMD=$lt_save_MAGIC_CMD
  7292. ;;
  7293. esac
  7294. fi
  7295. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7296. if test -n "$MAGIC_CMD"; then
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7298. $as_echo "$MAGIC_CMD" >&6; }
  7299. else
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7301. $as_echo "no" >&6; }
  7302. fi
  7303. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7304. if test -n "$ac_tool_prefix"; then
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7306. $as_echo_n "checking for file... " >&6; }
  7307. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7308. $as_echo_n "(cached) " >&6
  7309. else
  7310. case $MAGIC_CMD in
  7311. [\\/*] | ?:[\\/]*)
  7312. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7313. ;;
  7314. *)
  7315. lt_save_MAGIC_CMD=$MAGIC_CMD
  7316. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7317. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7318. for ac_dir in $ac_dummy; do
  7319. IFS=$lt_save_ifs
  7320. test -z "$ac_dir" && ac_dir=.
  7321. if test -f "$ac_dir/file"; then
  7322. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7323. if test -n "$file_magic_test_file"; then
  7324. case $deplibs_check_method in
  7325. "file_magic "*)
  7326. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7327. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7328. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7329. $EGREP "$file_magic_regex" > /dev/null; then
  7330. :
  7331. else
  7332. cat <<_LT_EOF 1>&2
  7333. *** Warning: the command libtool uses to detect shared libraries,
  7334. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7335. *** The result is that libtool may fail to recognize shared libraries
  7336. *** as such. This will affect the creation of libtool libraries that
  7337. *** depend on shared libraries, but programs linked with such libtool
  7338. *** libraries will work regardless of this problem. Nevertheless, you
  7339. *** may want to report the problem to your system manager and/or to
  7340. *** [email protected]
  7341. _LT_EOF
  7342. fi ;;
  7343. esac
  7344. fi
  7345. break
  7346. fi
  7347. done
  7348. IFS=$lt_save_ifs
  7349. MAGIC_CMD=$lt_save_MAGIC_CMD
  7350. ;;
  7351. esac
  7352. fi
  7353. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7354. if test -n "$MAGIC_CMD"; then
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7356. $as_echo "$MAGIC_CMD" >&6; }
  7357. else
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7359. $as_echo "no" >&6; }
  7360. fi
  7361. else
  7362. MAGIC_CMD=:
  7363. fi
  7364. fi
  7365. fi
  7366. ;;
  7367. esac
  7368. # Use C for the default configuration in the libtool script
  7369. lt_save_CC=$CC
  7370. ac_ext=c
  7371. ac_cpp='$CPP $CPPFLAGS'
  7372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7375. # Source file extension for C test sources.
  7376. ac_ext=c
  7377. # Object file extension for compiled C test sources.
  7378. objext=o
  7379. objext=$objext
  7380. # Code to be used in simple compile tests
  7381. lt_simple_compile_test_code="int some_variable = 0;"
  7382. # Code to be used in simple link tests
  7383. lt_simple_link_test_code='int main(){return(0);}'
  7384. # If no C compiler was specified, use CC.
  7385. LTCC=${LTCC-"$CC"}
  7386. # If no C compiler flags were specified, use CFLAGS.
  7387. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7388. # Allow CC to be a program name with arguments.
  7389. compiler=$CC
  7390. # Save the default compiler, since it gets overwritten when the other
  7391. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7392. compiler_DEFAULT=$CC
  7393. # save warnings/boilerplate of simple test code
  7394. ac_outfile=conftest.$ac_objext
  7395. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7396. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7397. _lt_compiler_boilerplate=`cat conftest.err`
  7398. $RM conftest*
  7399. ac_outfile=conftest.$ac_objext
  7400. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7401. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7402. _lt_linker_boilerplate=`cat conftest.err`
  7403. $RM -r conftest*
  7404. ## CAVEAT EMPTOR:
  7405. ## There is no encapsulation within the following macros, do not change
  7406. ## the running order or otherwise move them around unless you know exactly
  7407. ## what you are doing...
  7408. if test -n "$compiler"; then
  7409. lt_prog_compiler_no_builtin_flag=
  7410. if test yes = "$GCC"; then
  7411. case $cc_basename in
  7412. nvcc*)
  7413. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7414. *)
  7415. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7416. esac
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7418. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7419. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7420. $as_echo_n "(cached) " >&6
  7421. else
  7422. lt_cv_prog_compiler_rtti_exceptions=no
  7423. ac_outfile=conftest.$ac_objext
  7424. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7425. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7426. # Insert the option either (1) after the last *FLAGS variable, or
  7427. # (2) before a word containing "conftest.", or (3) at the end.
  7428. # Note that $ac_compile itself does not contain backslashes and begins
  7429. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7430. # The option is referenced via a variable to avoid confusing sed.
  7431. lt_compile=`echo "$ac_compile" | $SED \
  7432. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7433. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7434. -e 's:$: $lt_compiler_flag:'`
  7435. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7436. (eval "$lt_compile" 2>conftest.err)
  7437. ac_status=$?
  7438. cat conftest.err >&5
  7439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7440. if (exit $ac_status) && test -s "$ac_outfile"; then
  7441. # The compiler can only warn and ignore the option if not recognized
  7442. # So say no if there are warnings other than the usual output.
  7443. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7444. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7445. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7446. lt_cv_prog_compiler_rtti_exceptions=yes
  7447. fi
  7448. fi
  7449. $RM conftest*
  7450. fi
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7452. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7453. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7454. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7455. else
  7456. :
  7457. fi
  7458. fi
  7459. lt_prog_compiler_wl=
  7460. lt_prog_compiler_pic=
  7461. lt_prog_compiler_static=
  7462. if test yes = "$GCC"; then
  7463. lt_prog_compiler_wl='-Wl,'
  7464. lt_prog_compiler_static='-static'
  7465. case $host_os in
  7466. aix*)
  7467. # All AIX code is PIC.
  7468. if test ia64 = "$host_cpu"; then
  7469. # AIX 5 now supports IA64 processor
  7470. lt_prog_compiler_static='-Bstatic'
  7471. fi
  7472. lt_prog_compiler_pic='-fPIC'
  7473. ;;
  7474. amigaos*)
  7475. case $host_cpu in
  7476. powerpc)
  7477. # see comment about AmigaOS4 .so support
  7478. lt_prog_compiler_pic='-fPIC'
  7479. ;;
  7480. m68k)
  7481. # FIXME: we need at least 68020 code to build shared libraries, but
  7482. # adding the '-m68020' flag to GCC prevents building anything better,
  7483. # like '-m68040'.
  7484. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7485. ;;
  7486. esac
  7487. ;;
  7488. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7489. # PIC is the default for these OSes.
  7490. ;;
  7491. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7492. # This hack is so that the source file can tell whether it is being
  7493. # built for inclusion in a dll (and should export symbols for example).
  7494. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7495. # (--disable-auto-import) libraries
  7496. lt_prog_compiler_pic='-DDLL_EXPORT'
  7497. case $host_os in
  7498. os2*)
  7499. lt_prog_compiler_static='$wl-static'
  7500. ;;
  7501. esac
  7502. ;;
  7503. darwin* | rhapsody*)
  7504. # PIC is the default on this platform
  7505. # Common symbols not allowed in MH_DYLIB files
  7506. lt_prog_compiler_pic='-fno-common'
  7507. ;;
  7508. haiku*)
  7509. # PIC is the default for Haiku.
  7510. # The "-static" flag exists, but is broken.
  7511. lt_prog_compiler_static=
  7512. ;;
  7513. hpux*)
  7514. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7515. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7516. # sets the default TLS model and affects inlining.
  7517. case $host_cpu in
  7518. hppa*64*)
  7519. # +Z the default
  7520. ;;
  7521. *)
  7522. lt_prog_compiler_pic='-fPIC'
  7523. ;;
  7524. esac
  7525. ;;
  7526. interix[3-9]*)
  7527. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7528. # Instead, we relocate shared libraries at runtime.
  7529. ;;
  7530. msdosdjgpp*)
  7531. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7532. # on systems that don't support them.
  7533. lt_prog_compiler_can_build_shared=no
  7534. enable_shared=no
  7535. ;;
  7536. *nto* | *qnx*)
  7537. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7538. # it will coredump.
  7539. lt_prog_compiler_pic='-fPIC -shared'
  7540. ;;
  7541. sysv4*MP*)
  7542. if test -d /usr/nec; then
  7543. lt_prog_compiler_pic=-Kconform_pic
  7544. fi
  7545. ;;
  7546. *)
  7547. lt_prog_compiler_pic='-fPIC'
  7548. ;;
  7549. esac
  7550. case $cc_basename in
  7551. nvcc*) # Cuda Compiler Driver 2.2
  7552. lt_prog_compiler_wl='-Xlinker '
  7553. if test -n "$lt_prog_compiler_pic"; then
  7554. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7555. fi
  7556. ;;
  7557. esac
  7558. else
  7559. # PORTME Check for flag to pass linker flags through the system compiler.
  7560. case $host_os in
  7561. aix*)
  7562. lt_prog_compiler_wl='-Wl,'
  7563. if test ia64 = "$host_cpu"; then
  7564. # AIX 5 now supports IA64 processor
  7565. lt_prog_compiler_static='-Bstatic'
  7566. else
  7567. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7568. fi
  7569. ;;
  7570. darwin* | rhapsody*)
  7571. # PIC is the default on this platform
  7572. # Common symbols not allowed in MH_DYLIB files
  7573. lt_prog_compiler_pic='-fno-common'
  7574. case $cc_basename in
  7575. nagfor*)
  7576. # NAG Fortran compiler
  7577. lt_prog_compiler_wl='-Wl,-Wl,,'
  7578. lt_prog_compiler_pic='-PIC'
  7579. lt_prog_compiler_static='-Bstatic'
  7580. ;;
  7581. esac
  7582. ;;
  7583. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7584. # This hack is so that the source file can tell whether it is being
  7585. # built for inclusion in a dll (and should export symbols for example).
  7586. lt_prog_compiler_pic='-DDLL_EXPORT'
  7587. case $host_os in
  7588. os2*)
  7589. lt_prog_compiler_static='$wl-static'
  7590. ;;
  7591. esac
  7592. ;;
  7593. hpux9* | hpux10* | hpux11*)
  7594. lt_prog_compiler_wl='-Wl,'
  7595. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7596. # not for PA HP-UX.
  7597. case $host_cpu in
  7598. hppa*64*|ia64*)
  7599. # +Z the default
  7600. ;;
  7601. *)
  7602. lt_prog_compiler_pic='+Z'
  7603. ;;
  7604. esac
  7605. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7606. lt_prog_compiler_static='$wl-a ${wl}archive'
  7607. ;;
  7608. irix5* | irix6* | nonstopux*)
  7609. lt_prog_compiler_wl='-Wl,'
  7610. # PIC (with -KPIC) is the default.
  7611. lt_prog_compiler_static='-non_shared'
  7612. ;;
  7613. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7614. case $cc_basename in
  7615. # old Intel for x86_64, which still supported -KPIC.
  7616. ecc*)
  7617. lt_prog_compiler_wl='-Wl,'
  7618. lt_prog_compiler_pic='-KPIC'
  7619. lt_prog_compiler_static='-static'
  7620. ;;
  7621. # flang / f18. f95 an alias for gfortran or flang on Debian
  7622. flang* | f18* | f95*)
  7623. lt_prog_compiler_wl='-Wl,'
  7624. lt_prog_compiler_pic='-fPIC'
  7625. lt_prog_compiler_static='-static'
  7626. ;;
  7627. # icc used to be incompatible with GCC.
  7628. # ICC 10 doesn't accept -KPIC any more.
  7629. icc* | ifort*)
  7630. lt_prog_compiler_wl='-Wl,'
  7631. lt_prog_compiler_pic='-fPIC'
  7632. lt_prog_compiler_static='-static'
  7633. ;;
  7634. # Lahey Fortran 8.1.
  7635. lf95*)
  7636. lt_prog_compiler_wl='-Wl,'
  7637. lt_prog_compiler_pic='--shared'
  7638. lt_prog_compiler_static='--static'
  7639. ;;
  7640. nagfor*)
  7641. # NAG Fortran compiler
  7642. lt_prog_compiler_wl='-Wl,-Wl,,'
  7643. lt_prog_compiler_pic='-PIC'
  7644. lt_prog_compiler_static='-Bstatic'
  7645. ;;
  7646. tcc*)
  7647. # Fabrice Bellard et al's Tiny C Compiler
  7648. lt_prog_compiler_wl='-Wl,'
  7649. lt_prog_compiler_pic='-fPIC'
  7650. lt_prog_compiler_static='-static'
  7651. ;;
  7652. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7653. # Portland Group compilers (*not* the Pentium gcc compiler,
  7654. # which looks to be a dead project)
  7655. lt_prog_compiler_wl='-Wl,'
  7656. lt_prog_compiler_pic='-fpic'
  7657. lt_prog_compiler_static='-Bstatic'
  7658. ;;
  7659. ccc*)
  7660. lt_prog_compiler_wl='-Wl,'
  7661. # All Alpha code is PIC.
  7662. lt_prog_compiler_static='-non_shared'
  7663. ;;
  7664. xl* | bgxl* | bgf* | mpixl*)
  7665. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7666. lt_prog_compiler_wl='-Wl,'
  7667. lt_prog_compiler_pic='-qpic'
  7668. lt_prog_compiler_static='-qstaticlink'
  7669. ;;
  7670. *)
  7671. case `$CC -V 2>&1 | sed 5q` in
  7672. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7673. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7674. lt_prog_compiler_pic='-KPIC'
  7675. lt_prog_compiler_static='-Bstatic'
  7676. lt_prog_compiler_wl=''
  7677. ;;
  7678. *Sun\ F* | *Sun*Fortran*)
  7679. lt_prog_compiler_pic='-KPIC'
  7680. lt_prog_compiler_static='-Bstatic'
  7681. lt_prog_compiler_wl='-Qoption ld '
  7682. ;;
  7683. *Sun\ C*)
  7684. # Sun C 5.9
  7685. lt_prog_compiler_pic='-KPIC'
  7686. lt_prog_compiler_static='-Bstatic'
  7687. lt_prog_compiler_wl='-Wl,'
  7688. ;;
  7689. *Intel*\ [CF]*Compiler*)
  7690. lt_prog_compiler_wl='-Wl,'
  7691. lt_prog_compiler_pic='-fPIC'
  7692. lt_prog_compiler_static='-static'
  7693. ;;
  7694. *Portland\ Group*)
  7695. lt_prog_compiler_wl='-Wl,'
  7696. lt_prog_compiler_pic='-fpic'
  7697. lt_prog_compiler_static='-Bstatic'
  7698. ;;
  7699. esac
  7700. ;;
  7701. esac
  7702. ;;
  7703. newsos6)
  7704. lt_prog_compiler_pic='-KPIC'
  7705. lt_prog_compiler_static='-Bstatic'
  7706. ;;
  7707. *nto* | *qnx*)
  7708. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7709. # it will coredump.
  7710. lt_prog_compiler_pic='-fPIC -shared'
  7711. ;;
  7712. osf3* | osf4* | osf5*)
  7713. lt_prog_compiler_wl='-Wl,'
  7714. # All OSF/1 code is PIC.
  7715. lt_prog_compiler_static='-non_shared'
  7716. ;;
  7717. rdos*)
  7718. lt_prog_compiler_static='-non_shared'
  7719. ;;
  7720. solaris*)
  7721. lt_prog_compiler_pic='-KPIC'
  7722. lt_prog_compiler_static='-Bstatic'
  7723. case $cc_basename in
  7724. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7725. lt_prog_compiler_wl='-Qoption ld ';;
  7726. *)
  7727. lt_prog_compiler_wl='-Wl,';;
  7728. esac
  7729. ;;
  7730. sunos4*)
  7731. lt_prog_compiler_wl='-Qoption ld '
  7732. lt_prog_compiler_pic='-PIC'
  7733. lt_prog_compiler_static='-Bstatic'
  7734. ;;
  7735. sysv4 | sysv4.2uw2* | sysv4.3*)
  7736. lt_prog_compiler_wl='-Wl,'
  7737. lt_prog_compiler_pic='-KPIC'
  7738. lt_prog_compiler_static='-Bstatic'
  7739. ;;
  7740. sysv4*MP*)
  7741. if test -d /usr/nec; then
  7742. lt_prog_compiler_pic='-Kconform_pic'
  7743. lt_prog_compiler_static='-Bstatic'
  7744. fi
  7745. ;;
  7746. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7747. lt_prog_compiler_wl='-Wl,'
  7748. lt_prog_compiler_pic='-KPIC'
  7749. lt_prog_compiler_static='-Bstatic'
  7750. ;;
  7751. unicos*)
  7752. lt_prog_compiler_wl='-Wl,'
  7753. lt_prog_compiler_can_build_shared=no
  7754. ;;
  7755. uts4*)
  7756. lt_prog_compiler_pic='-pic'
  7757. lt_prog_compiler_static='-Bstatic'
  7758. ;;
  7759. *)
  7760. lt_prog_compiler_can_build_shared=no
  7761. ;;
  7762. esac
  7763. fi
  7764. case $host_os in
  7765. # For platforms that do not support PIC, -DPIC is meaningless:
  7766. *djgpp*)
  7767. lt_prog_compiler_pic=
  7768. ;;
  7769. *)
  7770. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7771. ;;
  7772. esac
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7774. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7775. if ${lt_cv_prog_compiler_pic+:} false; then :
  7776. $as_echo_n "(cached) " >&6
  7777. else
  7778. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7779. fi
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7781. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7782. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7783. #
  7784. # Check to make sure the PIC flag actually works.
  7785. #
  7786. if test -n "$lt_prog_compiler_pic"; then
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7788. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7789. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7790. $as_echo_n "(cached) " >&6
  7791. else
  7792. lt_cv_prog_compiler_pic_works=no
  7793. ac_outfile=conftest.$ac_objext
  7794. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7795. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7796. # Insert the option either (1) after the last *FLAGS variable, or
  7797. # (2) before a word containing "conftest.", or (3) at the end.
  7798. # Note that $ac_compile itself does not contain backslashes and begins
  7799. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7800. # The option is referenced via a variable to avoid confusing sed.
  7801. lt_compile=`echo "$ac_compile" | $SED \
  7802. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7803. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7804. -e 's:$: $lt_compiler_flag:'`
  7805. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7806. (eval "$lt_compile" 2>conftest.err)
  7807. ac_status=$?
  7808. cat conftest.err >&5
  7809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7810. if (exit $ac_status) && test -s "$ac_outfile"; then
  7811. # The compiler can only warn and ignore the option if not recognized
  7812. # So say no if there are warnings other than the usual output.
  7813. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7814. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7815. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7816. lt_cv_prog_compiler_pic_works=yes
  7817. fi
  7818. fi
  7819. $RM conftest*
  7820. fi
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7822. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7823. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7824. case $lt_prog_compiler_pic in
  7825. "" | " "*) ;;
  7826. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7827. esac
  7828. else
  7829. lt_prog_compiler_pic=
  7830. lt_prog_compiler_can_build_shared=no
  7831. fi
  7832. fi
  7833. #
  7834. # Check to make sure the static flag actually works.
  7835. #
  7836. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7838. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7839. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7840. $as_echo_n "(cached) " >&6
  7841. else
  7842. lt_cv_prog_compiler_static_works=no
  7843. save_LDFLAGS=$LDFLAGS
  7844. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7845. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7846. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7847. # The linker can only warn and ignore the option if not recognized
  7848. # So say no if there are warnings
  7849. if test -s conftest.err; then
  7850. # Append any errors to the config.log.
  7851. cat conftest.err 1>&5
  7852. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7853. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7854. if diff conftest.exp conftest.er2 >/dev/null; then
  7855. lt_cv_prog_compiler_static_works=yes
  7856. fi
  7857. else
  7858. lt_cv_prog_compiler_static_works=yes
  7859. fi
  7860. fi
  7861. $RM -r conftest*
  7862. LDFLAGS=$save_LDFLAGS
  7863. fi
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7865. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7866. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7867. :
  7868. else
  7869. lt_prog_compiler_static=
  7870. fi
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7872. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7873. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7874. $as_echo_n "(cached) " >&6
  7875. else
  7876. lt_cv_prog_compiler_c_o=no
  7877. $RM -r conftest 2>/dev/null
  7878. mkdir conftest
  7879. cd conftest
  7880. mkdir out
  7881. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7882. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7883. # Insert the option either (1) after the last *FLAGS variable, or
  7884. # (2) before a word containing "conftest.", or (3) at the end.
  7885. # Note that $ac_compile itself does not contain backslashes and begins
  7886. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7887. lt_compile=`echo "$ac_compile" | $SED \
  7888. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7889. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7890. -e 's:$: $lt_compiler_flag:'`
  7891. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7892. (eval "$lt_compile" 2>out/conftest.err)
  7893. ac_status=$?
  7894. cat out/conftest.err >&5
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7897. then
  7898. # The compiler can only warn and ignore the option if not recognized
  7899. # So say no if there are warnings
  7900. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7901. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7902. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7903. lt_cv_prog_compiler_c_o=yes
  7904. fi
  7905. fi
  7906. chmod u+w . 2>&5
  7907. $RM conftest*
  7908. # SGI C++ compiler will create directory out/ii_files/ for
  7909. # template instantiation
  7910. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7911. $RM out/* && rmdir out
  7912. cd ..
  7913. $RM -r conftest
  7914. $RM conftest*
  7915. fi
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7917. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7919. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7920. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7921. $as_echo_n "(cached) " >&6
  7922. else
  7923. lt_cv_prog_compiler_c_o=no
  7924. $RM -r conftest 2>/dev/null
  7925. mkdir conftest
  7926. cd conftest
  7927. mkdir out
  7928. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7929. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7930. # Insert the option either (1) after the last *FLAGS variable, or
  7931. # (2) before a word containing "conftest.", or (3) at the end.
  7932. # Note that $ac_compile itself does not contain backslashes and begins
  7933. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7934. lt_compile=`echo "$ac_compile" | $SED \
  7935. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7936. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7937. -e 's:$: $lt_compiler_flag:'`
  7938. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7939. (eval "$lt_compile" 2>out/conftest.err)
  7940. ac_status=$?
  7941. cat out/conftest.err >&5
  7942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7943. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7944. then
  7945. # The compiler can only warn and ignore the option if not recognized
  7946. # So say no if there are warnings
  7947. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7948. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7949. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7950. lt_cv_prog_compiler_c_o=yes
  7951. fi
  7952. fi
  7953. chmod u+w . 2>&5
  7954. $RM conftest*
  7955. # SGI C++ compiler will create directory out/ii_files/ for
  7956. # template instantiation
  7957. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7958. $RM out/* && rmdir out
  7959. cd ..
  7960. $RM -r conftest
  7961. $RM conftest*
  7962. fi
  7963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7964. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7965. hard_links=nottested
  7966. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7967. # do not overwrite the value of need_locks provided by the user
  7968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7969. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7970. hard_links=yes
  7971. $RM conftest*
  7972. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7973. touch conftest.a
  7974. ln conftest.a conftest.b 2>&5 || hard_links=no
  7975. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7977. $as_echo "$hard_links" >&6; }
  7978. if test no = "$hard_links"; then
  7979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7980. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7981. need_locks=warn
  7982. fi
  7983. else
  7984. need_locks=no
  7985. fi
  7986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7987. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7988. runpath_var=
  7989. allow_undefined_flag=
  7990. always_export_symbols=no
  7991. archive_cmds=
  7992. archive_expsym_cmds=
  7993. compiler_needs_object=no
  7994. enable_shared_with_static_runtimes=no
  7995. export_dynamic_flag_spec=
  7996. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7997. hardcode_automatic=no
  7998. hardcode_direct=no
  7999. hardcode_direct_absolute=no
  8000. hardcode_libdir_flag_spec=
  8001. hardcode_libdir_separator=
  8002. hardcode_minus_L=no
  8003. hardcode_shlibpath_var=unsupported
  8004. inherit_rpath=no
  8005. link_all_deplibs=unknown
  8006. module_cmds=
  8007. module_expsym_cmds=
  8008. old_archive_from_new_cmds=
  8009. old_archive_from_expsyms_cmds=
  8010. thread_safe_flag_spec=
  8011. whole_archive_flag_spec=
  8012. # include_expsyms should be a list of space-separated symbols to be *always*
  8013. # included in the symbol list
  8014. include_expsyms=
  8015. # exclude_expsyms can be an extended regexp of symbols to exclude
  8016. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8017. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8018. # as well as any symbol that contains 'd'.
  8019. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8020. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8021. # platforms (ab)use it in PIC code, but their linkers get confused if
  8022. # the symbol is explicitly referenced. Since portable code cannot
  8023. # rely on this symbol name, it's probably fine to never include it in
  8024. # preloaded symbol tables.
  8025. # Exclude shared library initialization/finalization symbols.
  8026. extract_expsyms_cmds=
  8027. case $host_os in
  8028. cygwin* | mingw* | pw32* | cegcc*)
  8029. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8030. # When not using gcc, we currently assume that we are using
  8031. # Microsoft Visual C++.
  8032. if test yes != "$GCC"; then
  8033. with_gnu_ld=no
  8034. fi
  8035. ;;
  8036. interix*)
  8037. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8038. with_gnu_ld=yes
  8039. ;;
  8040. openbsd* | bitrig*)
  8041. with_gnu_ld=no
  8042. ;;
  8043. linux* | k*bsd*-gnu | gnu*)
  8044. link_all_deplibs=no
  8045. ;;
  8046. esac
  8047. ld_shlibs=yes
  8048. # On some targets, GNU ld is compatible enough with the native linker
  8049. # that we're better off using the native interface for both.
  8050. lt_use_gnu_ld_interface=no
  8051. if test yes = "$with_gnu_ld"; then
  8052. case $host_os in
  8053. aix*)
  8054. # The AIX port of GNU ld has always aspired to compatibility
  8055. # with the native linker. However, as the warning in the GNU ld
  8056. # block says, versions before 2.19.5* couldn't really create working
  8057. # shared libraries, regardless of the interface used.
  8058. case `$LD -v 2>&1` in
  8059. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8060. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8061. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8062. *)
  8063. lt_use_gnu_ld_interface=yes
  8064. ;;
  8065. esac
  8066. ;;
  8067. *)
  8068. lt_use_gnu_ld_interface=yes
  8069. ;;
  8070. esac
  8071. fi
  8072. if test yes = "$lt_use_gnu_ld_interface"; then
  8073. # If archive_cmds runs LD, not CC, wlarc should be empty
  8074. wlarc='$wl'
  8075. # Set some defaults for GNU ld with shared library support. These
  8076. # are reset later if shared libraries are not supported. Putting them
  8077. # here allows them to be overridden if necessary.
  8078. runpath_var=LD_RUN_PATH
  8079. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8080. export_dynamic_flag_spec='$wl--export-dynamic'
  8081. # ancient GNU ld didn't support --whole-archive et. al.
  8082. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8083. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8084. else
  8085. whole_archive_flag_spec=
  8086. fi
  8087. supports_anon_versioning=no
  8088. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8089. *GNU\ gold*) supports_anon_versioning=yes ;;
  8090. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8091. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8092. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8093. *\ 2.11.*) ;; # other 2.11 versions
  8094. *) supports_anon_versioning=yes ;;
  8095. esac
  8096. # See if GNU ld supports shared libraries.
  8097. case $host_os in
  8098. aix[3-9]*)
  8099. # On AIX/PPC, the GNU linker is very broken
  8100. if test ia64 != "$host_cpu"; then
  8101. ld_shlibs=no
  8102. cat <<_LT_EOF 1>&2
  8103. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8104. *** to be unable to reliably create shared libraries on AIX.
  8105. *** Therefore, libtool is disabling shared libraries support. If you
  8106. *** really care for shared libraries, you may want to install binutils
  8107. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8108. *** You will then need to restart the configuration process.
  8109. _LT_EOF
  8110. fi
  8111. ;;
  8112. amigaos*)
  8113. case $host_cpu in
  8114. powerpc)
  8115. # see comment about AmigaOS4 .so support
  8116. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8117. archive_expsym_cmds=''
  8118. ;;
  8119. m68k)
  8120. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8121. hardcode_libdir_flag_spec='-L$libdir'
  8122. hardcode_minus_L=yes
  8123. ;;
  8124. esac
  8125. ;;
  8126. beos*)
  8127. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8128. allow_undefined_flag=unsupported
  8129. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8130. # support --undefined. This deserves some investigation. FIXME
  8131. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8132. else
  8133. ld_shlibs=no
  8134. fi
  8135. ;;
  8136. cygwin* | mingw* | pw32* | cegcc*)
  8137. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8138. # as there is no search path for DLLs.
  8139. hardcode_libdir_flag_spec='-L$libdir'
  8140. export_dynamic_flag_spec='$wl--export-all-symbols'
  8141. allow_undefined_flag=unsupported
  8142. always_export_symbols=no
  8143. enable_shared_with_static_runtimes=yes
  8144. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8145. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8146. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8147. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8148. # If the export-symbols file already is a .def file, use it as
  8149. # is; otherwise, prepend EXPORTS...
  8150. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8151. cp $export_symbols $output_objdir/$soname.def;
  8152. else
  8153. echo EXPORTS > $output_objdir/$soname.def;
  8154. cat $export_symbols >> $output_objdir/$soname.def;
  8155. fi~
  8156. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8157. else
  8158. ld_shlibs=no
  8159. fi
  8160. ;;
  8161. haiku*)
  8162. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8163. link_all_deplibs=yes
  8164. ;;
  8165. os2*)
  8166. hardcode_libdir_flag_spec='-L$libdir'
  8167. hardcode_minus_L=yes
  8168. allow_undefined_flag=unsupported
  8169. shrext_cmds=.dll
  8170. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8171. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8172. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8173. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8174. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8175. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8176. emximp -o $lib $output_objdir/$libname.def'
  8177. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8178. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8179. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8180. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8181. prefix_cmds="$SED"~
  8182. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8183. prefix_cmds="$prefix_cmds -e 1d";
  8184. fi~
  8185. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8186. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8187. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8188. emximp -o $lib $output_objdir/$libname.def'
  8189. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8190. enable_shared_with_static_runtimes=yes
  8191. ;;
  8192. interix[3-9]*)
  8193. hardcode_direct=no
  8194. hardcode_shlibpath_var=no
  8195. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8196. export_dynamic_flag_spec='$wl-E'
  8197. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8198. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8199. # default) and relocated if they conflict, which is a slow very memory
  8200. # consuming and fragmenting process. To avoid this, we pick a random,
  8201. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8202. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8203. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8204. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8205. ;;
  8206. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8207. tmp_diet=no
  8208. if test linux-dietlibc = "$host_os"; then
  8209. case $cc_basename in
  8210. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8211. esac
  8212. fi
  8213. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8214. && test no = "$tmp_diet"
  8215. then
  8216. tmp_addflag=' $pic_flag'
  8217. tmp_sharedflag='-shared'
  8218. case $cc_basename,$host_cpu in
  8219. pgcc*) # Portland Group C compiler
  8220. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8221. tmp_addflag=' $pic_flag'
  8222. ;;
  8223. pgf77* | pgf90* | pgf95* | pgfortran*)
  8224. # Portland Group f77 and f90 compilers
  8225. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8226. tmp_addflag=' $pic_flag -Mnomain' ;;
  8227. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8228. tmp_addflag=' -i_dynamic' ;;
  8229. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8230. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8231. ifc* | ifort*) # Intel Fortran compiler
  8232. tmp_addflag=' -nofor_main' ;;
  8233. lf95*) # Lahey Fortran 8.1
  8234. whole_archive_flag_spec=
  8235. tmp_sharedflag='--shared' ;;
  8236. nagfor*) # NAGFOR 5.3
  8237. tmp_sharedflag='-Wl,-shared' ;;
  8238. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8239. tmp_sharedflag='-qmkshrobj'
  8240. tmp_addflag= ;;
  8241. nvcc*) # Cuda Compiler Driver 2.2
  8242. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8243. compiler_needs_object=yes
  8244. ;;
  8245. esac
  8246. case `$CC -V 2>&1 | sed 5q` in
  8247. *Sun\ C*) # Sun C 5.9
  8248. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8249. compiler_needs_object=yes
  8250. tmp_sharedflag='-G' ;;
  8251. *Sun\ F*) # Sun Fortran 8.3
  8252. tmp_sharedflag='-G' ;;
  8253. esac
  8254. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8255. if test yes = "$supports_anon_versioning"; then
  8256. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8257. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8258. echo "local: *; };" >> $output_objdir/$libname.ver~
  8259. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8260. fi
  8261. case $cc_basename in
  8262. tcc*)
  8263. export_dynamic_flag_spec='-rdynamic'
  8264. ;;
  8265. xlf* | bgf* | bgxlf* | mpixlf*)
  8266. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8267. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8268. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8269. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8270. if test yes = "$supports_anon_versioning"; then
  8271. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8272. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8273. echo "local: *; };" >> $output_objdir/$libname.ver~
  8274. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8275. fi
  8276. ;;
  8277. esac
  8278. else
  8279. ld_shlibs=no
  8280. fi
  8281. ;;
  8282. netbsd* | netbsdelf*-gnu)
  8283. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8284. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8285. wlarc=
  8286. else
  8287. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8288. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8289. fi
  8290. ;;
  8291. solaris*)
  8292. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8293. ld_shlibs=no
  8294. cat <<_LT_EOF 1>&2
  8295. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8296. *** create shared libraries on Solaris systems. Therefore, libtool
  8297. *** is disabling shared libraries support. We urge you to upgrade GNU
  8298. *** binutils to release 2.9.1 or newer. Another option is to modify
  8299. *** your PATH or compiler configuration so that the native linker is
  8300. *** used, and then restart.
  8301. _LT_EOF
  8302. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8303. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8304. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8305. else
  8306. ld_shlibs=no
  8307. fi
  8308. ;;
  8309. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8310. case `$LD -v 2>&1` in
  8311. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8312. ld_shlibs=no
  8313. cat <<_LT_EOF 1>&2
  8314. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8315. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8316. *** is disabling shared libraries support. We urge you to upgrade GNU
  8317. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8318. *** your PATH or compiler configuration so that the native linker is
  8319. *** used, and then restart.
  8320. _LT_EOF
  8321. ;;
  8322. *)
  8323. # For security reasons, it is highly recommended that you always
  8324. # use absolute paths for naming shared libraries, and exclude the
  8325. # DT_RUNPATH tag from executables and libraries. But doing so
  8326. # requires that you compile everything twice, which is a pain.
  8327. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8328. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8329. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8330. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8331. else
  8332. ld_shlibs=no
  8333. fi
  8334. ;;
  8335. esac
  8336. ;;
  8337. sunos4*)
  8338. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8339. wlarc=
  8340. hardcode_direct=yes
  8341. hardcode_shlibpath_var=no
  8342. ;;
  8343. *)
  8344. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8345. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8346. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8347. else
  8348. ld_shlibs=no
  8349. fi
  8350. ;;
  8351. esac
  8352. if test no = "$ld_shlibs"; then
  8353. runpath_var=
  8354. hardcode_libdir_flag_spec=
  8355. export_dynamic_flag_spec=
  8356. whole_archive_flag_spec=
  8357. fi
  8358. else
  8359. # PORTME fill in a description of your system's linker (not GNU ld)
  8360. case $host_os in
  8361. aix3*)
  8362. allow_undefined_flag=unsupported
  8363. always_export_symbols=yes
  8364. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8365. # Note: this linker hardcodes the directories in LIBPATH if there
  8366. # are no directories specified by -L.
  8367. hardcode_minus_L=yes
  8368. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8369. # Neither direct hardcoding nor static linking is supported with a
  8370. # broken collect2.
  8371. hardcode_direct=unsupported
  8372. fi
  8373. ;;
  8374. aix[4-9]*)
  8375. if test ia64 = "$host_cpu"; then
  8376. # On IA64, the linker does run time linking by default, so we don't
  8377. # have to do anything special.
  8378. aix_use_runtimelinking=no
  8379. exp_sym_flag='-Bexport'
  8380. no_entry_flag=
  8381. else
  8382. # If we're using GNU nm, then we don't want the "-C" option.
  8383. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8384. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8385. # weak defined symbols like other global defined symbols, whereas
  8386. # GNU nm marks them as "W".
  8387. # While the 'weak' keyword is ignored in the Export File, we need
  8388. # it in the Import File for the 'aix-soname' feature, so we have
  8389. # to replace the "-B" option with "-P" for AIX nm.
  8390. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8391. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8392. else
  8393. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8394. fi
  8395. aix_use_runtimelinking=no
  8396. # Test if we are trying to use run time linking or normal
  8397. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8398. # have runtime linking enabled, and use it for executables.
  8399. # For shared libraries, we enable/disable runtime linking
  8400. # depending on the kind of the shared library created -
  8401. # when "with_aix_soname,aix_use_runtimelinking" is:
  8402. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8403. # "aix,yes" lib.so shared, rtl:yes, for executables
  8404. # lib.a static archive
  8405. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8406. # lib.a(lib.so.V) shared, rtl:no, for executables
  8407. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8408. # lib.a(lib.so.V) shared, rtl:no
  8409. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8410. # lib.a static archive
  8411. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8412. for ld_flag in $LDFLAGS; do
  8413. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8414. aix_use_runtimelinking=yes
  8415. break
  8416. fi
  8417. done
  8418. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8419. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8420. # so we don't have lib.a shared libs to link our executables.
  8421. # We have to force runtime linking in this case.
  8422. aix_use_runtimelinking=yes
  8423. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8424. fi
  8425. ;;
  8426. esac
  8427. exp_sym_flag='-bexport'
  8428. no_entry_flag='-bnoentry'
  8429. fi
  8430. # When large executables or shared objects are built, AIX ld can
  8431. # have problems creating the table of contents. If linking a library
  8432. # or program results in "error TOC overflow" add -mminimal-toc to
  8433. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8434. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8435. archive_cmds=''
  8436. hardcode_direct=yes
  8437. hardcode_direct_absolute=yes
  8438. hardcode_libdir_separator=':'
  8439. link_all_deplibs=yes
  8440. file_list_spec='$wl-f,'
  8441. case $with_aix_soname,$aix_use_runtimelinking in
  8442. aix,*) ;; # traditional, no import file
  8443. svr4,* | *,yes) # use import file
  8444. # The Import File defines what to hardcode.
  8445. hardcode_direct=no
  8446. hardcode_direct_absolute=no
  8447. ;;
  8448. esac
  8449. if test yes = "$GCC"; then
  8450. case $host_os in aix4.[012]|aix4.[012].*)
  8451. # We only want to do this on AIX 4.2 and lower, the check
  8452. # below for broken collect2 doesn't work under 4.3+
  8453. collect2name=`$CC -print-prog-name=collect2`
  8454. if test -f "$collect2name" &&
  8455. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8456. then
  8457. # We have reworked collect2
  8458. :
  8459. else
  8460. # We have old collect2
  8461. hardcode_direct=unsupported
  8462. # It fails to find uninstalled libraries when the uninstalled
  8463. # path is not listed in the libpath. Setting hardcode_minus_L
  8464. # to unsupported forces relinking
  8465. hardcode_minus_L=yes
  8466. hardcode_libdir_flag_spec='-L$libdir'
  8467. hardcode_libdir_separator=
  8468. fi
  8469. ;;
  8470. esac
  8471. shared_flag='-shared'
  8472. if test yes = "$aix_use_runtimelinking"; then
  8473. shared_flag="$shared_flag "'$wl-G'
  8474. fi
  8475. # Need to ensure runtime linking is disabled for the traditional
  8476. # shared library, or the linker may eventually find shared libraries
  8477. # /with/ Import File - we do not want to mix them.
  8478. shared_flag_aix='-shared'
  8479. shared_flag_svr4='-shared $wl-G'
  8480. else
  8481. # not using gcc
  8482. if test ia64 = "$host_cpu"; then
  8483. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8484. # chokes on -Wl,-G. The following line is correct:
  8485. shared_flag='-G'
  8486. else
  8487. if test yes = "$aix_use_runtimelinking"; then
  8488. shared_flag='$wl-G'
  8489. else
  8490. shared_flag='$wl-bM:SRE'
  8491. fi
  8492. shared_flag_aix='$wl-bM:SRE'
  8493. shared_flag_svr4='$wl-G'
  8494. fi
  8495. fi
  8496. export_dynamic_flag_spec='$wl-bexpall'
  8497. # It seems that -bexpall does not export symbols beginning with
  8498. # underscore (_), so it is better to generate a list of symbols to export.
  8499. always_export_symbols=yes
  8500. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8501. # Warning - without using the other runtime loading flags (-brtl),
  8502. # -berok will link without error, but may produce a broken library.
  8503. allow_undefined_flag='-berok'
  8504. # Determine the default libpath from the value encoded in an
  8505. # empty executable.
  8506. if test set = "${lt_cv_aix_libpath+set}"; then
  8507. aix_libpath=$lt_cv_aix_libpath
  8508. else
  8509. if ${lt_cv_aix_libpath_+:} false; then :
  8510. $as_echo_n "(cached) " >&6
  8511. else
  8512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8513. /* end confdefs.h. */
  8514. int
  8515. main ()
  8516. {
  8517. ;
  8518. return 0;
  8519. }
  8520. _ACEOF
  8521. if ac_fn_c_try_link "$LINENO"; then :
  8522. lt_aix_libpath_sed='
  8523. /Import File Strings/,/^$/ {
  8524. /^0/ {
  8525. s/^0 *\([^ ]*\) *$/\1/
  8526. p
  8527. }
  8528. }'
  8529. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8530. # Check for a 64-bit object if we didn't find anything.
  8531. if test -z "$lt_cv_aix_libpath_"; then
  8532. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8533. fi
  8534. fi
  8535. rm -f core conftest.err conftest.$ac_objext \
  8536. conftest$ac_exeext conftest.$ac_ext
  8537. if test -z "$lt_cv_aix_libpath_"; then
  8538. lt_cv_aix_libpath_=/usr/lib:/lib
  8539. fi
  8540. fi
  8541. aix_libpath=$lt_cv_aix_libpath_
  8542. fi
  8543. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8544. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8545. else
  8546. if test ia64 = "$host_cpu"; then
  8547. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8548. allow_undefined_flag="-z nodefs"
  8549. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  8550. else
  8551. # Determine the default libpath from the value encoded in an
  8552. # empty executable.
  8553. if test set = "${lt_cv_aix_libpath+set}"; then
  8554. aix_libpath=$lt_cv_aix_libpath
  8555. else
  8556. if ${lt_cv_aix_libpath_+:} false; then :
  8557. $as_echo_n "(cached) " >&6
  8558. else
  8559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8560. /* end confdefs.h. */
  8561. int
  8562. main ()
  8563. {
  8564. ;
  8565. return 0;
  8566. }
  8567. _ACEOF
  8568. if ac_fn_c_try_link "$LINENO"; then :
  8569. lt_aix_libpath_sed='
  8570. /Import File Strings/,/^$/ {
  8571. /^0/ {
  8572. s/^0 *\([^ ]*\) *$/\1/
  8573. p
  8574. }
  8575. }'
  8576. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8577. # Check for a 64-bit object if we didn't find anything.
  8578. if test -z "$lt_cv_aix_libpath_"; then
  8579. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8580. fi
  8581. fi
  8582. rm -f core conftest.err conftest.$ac_objext \
  8583. conftest$ac_exeext conftest.$ac_ext
  8584. if test -z "$lt_cv_aix_libpath_"; then
  8585. lt_cv_aix_libpath_=/usr/lib:/lib
  8586. fi
  8587. fi
  8588. aix_libpath=$lt_cv_aix_libpath_
  8589. fi
  8590. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8591. # Warning - without using the other run time loading flags,
  8592. # -berok will link without error, but may produce a broken library.
  8593. no_undefined_flag=' $wl-bernotok'
  8594. allow_undefined_flag=' $wl-berok'
  8595. if test yes = "$with_gnu_ld"; then
  8596. # We only use this code for GNU lds that support --whole-archive.
  8597. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8598. else
  8599. # Exported symbols can be pulled into shared objects from archives
  8600. whole_archive_flag_spec='$convenience'
  8601. fi
  8602. archive_cmds_need_lc=yes
  8603. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8604. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8605. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8606. if test svr4 != "$with_aix_soname"; then
  8607. # This is similar to how AIX traditionally builds its shared libraries.
  8608. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8609. fi
  8610. if test aix != "$with_aix_soname"; then
  8611. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8612. else
  8613. # used by -dlpreopen to get the symbols
  8614. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8615. fi
  8616. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8617. fi
  8618. fi
  8619. ;;
  8620. amigaos*)
  8621. case $host_cpu in
  8622. powerpc)
  8623. # see comment about AmigaOS4 .so support
  8624. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8625. archive_expsym_cmds=''
  8626. ;;
  8627. m68k)
  8628. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8629. hardcode_libdir_flag_spec='-L$libdir'
  8630. hardcode_minus_L=yes
  8631. ;;
  8632. esac
  8633. ;;
  8634. bsdi[45]*)
  8635. export_dynamic_flag_spec=-rdynamic
  8636. ;;
  8637. cygwin* | mingw* | pw32* | cegcc*)
  8638. # When not using gcc, we currently assume that we are using
  8639. # Microsoft Visual C++.
  8640. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8641. # no search path for DLLs.
  8642. case $cc_basename in
  8643. cl*)
  8644. # Native MSVC
  8645. hardcode_libdir_flag_spec=' '
  8646. allow_undefined_flag=unsupported
  8647. always_export_symbols=yes
  8648. file_list_spec='@'
  8649. # Tell ltmain to make .lib files, not .a files.
  8650. libext=lib
  8651. # Tell ltmain to make .dll files, not .so files.
  8652. shrext_cmds=.dll
  8653. # FIXME: Setting linknames here is a bad hack.
  8654. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8655. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8656. cp "$export_symbols" "$output_objdir/$soname.def";
  8657. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8658. else
  8659. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8660. fi~
  8661. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8662. linknames='
  8663. # The linker will not automatically build a static lib if we build a DLL.
  8664. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8665. enable_shared_with_static_runtimes=yes
  8666. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8667. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8668. # Don't use ranlib
  8669. old_postinstall_cmds='chmod 644 $oldlib'
  8670. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8671. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8672. case $lt_outputfile in
  8673. *.exe|*.EXE) ;;
  8674. *)
  8675. lt_outputfile=$lt_outputfile.exe
  8676. lt_tool_outputfile=$lt_tool_outputfile.exe
  8677. ;;
  8678. esac~
  8679. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8680. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8681. $RM "$lt_outputfile.manifest";
  8682. fi'
  8683. ;;
  8684. *)
  8685. # Assume MSVC wrapper
  8686. hardcode_libdir_flag_spec=' '
  8687. allow_undefined_flag=unsupported
  8688. # Tell ltmain to make .lib files, not .a files.
  8689. libext=lib
  8690. # Tell ltmain to make .dll files, not .so files.
  8691. shrext_cmds=.dll
  8692. # FIXME: Setting linknames here is a bad hack.
  8693. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8694. # The linker will automatically build a .lib file if we build a DLL.
  8695. old_archive_from_new_cmds='true'
  8696. # FIXME: Should let the user specify the lib program.
  8697. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8698. enable_shared_with_static_runtimes=yes
  8699. ;;
  8700. esac
  8701. ;;
  8702. darwin* | rhapsody*)
  8703. archive_cmds_need_lc=no
  8704. hardcode_direct=no
  8705. hardcode_automatic=yes
  8706. hardcode_shlibpath_var=unsupported
  8707. if test yes = "$lt_cv_ld_force_load"; then
  8708. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8709. else
  8710. whole_archive_flag_spec=''
  8711. fi
  8712. link_all_deplibs=yes
  8713. allow_undefined_flag=$_lt_dar_allow_undefined
  8714. case $cc_basename in
  8715. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8716. *) _lt_dar_can_shared=$GCC ;;
  8717. esac
  8718. if test yes = "$_lt_dar_can_shared"; then
  8719. output_verbose_link_cmd=func_echo_all
  8720. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8721. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8722. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  8723. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  8724. else
  8725. ld_shlibs=no
  8726. fi
  8727. ;;
  8728. dgux*)
  8729. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8730. hardcode_libdir_flag_spec='-L$libdir'
  8731. hardcode_shlibpath_var=no
  8732. ;;
  8733. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8734. # support. Future versions do this automatically, but an explicit c++rt0.o
  8735. # does not break anything, and helps significantly (at the cost of a little
  8736. # extra space).
  8737. freebsd2.2*)
  8738. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8739. hardcode_libdir_flag_spec='-R$libdir'
  8740. hardcode_direct=yes
  8741. hardcode_shlibpath_var=no
  8742. ;;
  8743. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8744. freebsd2.*)
  8745. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8746. hardcode_direct=yes
  8747. hardcode_minus_L=yes
  8748. hardcode_shlibpath_var=no
  8749. ;;
  8750. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8751. freebsd* | dragonfly*)
  8752. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8753. hardcode_libdir_flag_spec='-R$libdir'
  8754. hardcode_direct=yes
  8755. hardcode_shlibpath_var=no
  8756. ;;
  8757. hpux9*)
  8758. if test yes = "$GCC"; then
  8759. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8760. else
  8761. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8762. fi
  8763. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8764. hardcode_libdir_separator=:
  8765. hardcode_direct=yes
  8766. # hardcode_minus_L: Not really in the search PATH,
  8767. # but as the default location of the library.
  8768. hardcode_minus_L=yes
  8769. export_dynamic_flag_spec='$wl-E'
  8770. ;;
  8771. hpux10*)
  8772. if test yes,no = "$GCC,$with_gnu_ld"; then
  8773. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8774. else
  8775. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8776. fi
  8777. if test no = "$with_gnu_ld"; then
  8778. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8779. hardcode_libdir_separator=:
  8780. hardcode_direct=yes
  8781. hardcode_direct_absolute=yes
  8782. export_dynamic_flag_spec='$wl-E'
  8783. # hardcode_minus_L: Not really in the search PATH,
  8784. # but as the default location of the library.
  8785. hardcode_minus_L=yes
  8786. fi
  8787. ;;
  8788. hpux11*)
  8789. if test yes,no = "$GCC,$with_gnu_ld"; then
  8790. case $host_cpu in
  8791. hppa*64*)
  8792. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8793. ;;
  8794. ia64*)
  8795. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8796. ;;
  8797. *)
  8798. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8799. ;;
  8800. esac
  8801. else
  8802. case $host_cpu in
  8803. hppa*64*)
  8804. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8805. ;;
  8806. ia64*)
  8807. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8808. ;;
  8809. *)
  8810. # Older versions of the 11.00 compiler do not understand -b yet
  8811. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8813. $as_echo_n "checking if $CC understands -b... " >&6; }
  8814. if ${lt_cv_prog_compiler__b+:} false; then :
  8815. $as_echo_n "(cached) " >&6
  8816. else
  8817. lt_cv_prog_compiler__b=no
  8818. save_LDFLAGS=$LDFLAGS
  8819. LDFLAGS="$LDFLAGS -b"
  8820. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8821. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8822. # The linker can only warn and ignore the option if not recognized
  8823. # So say no if there are warnings
  8824. if test -s conftest.err; then
  8825. # Append any errors to the config.log.
  8826. cat conftest.err 1>&5
  8827. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8828. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8829. if diff conftest.exp conftest.er2 >/dev/null; then
  8830. lt_cv_prog_compiler__b=yes
  8831. fi
  8832. else
  8833. lt_cv_prog_compiler__b=yes
  8834. fi
  8835. fi
  8836. $RM -r conftest*
  8837. LDFLAGS=$save_LDFLAGS
  8838. fi
  8839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8840. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8841. if test yes = "$lt_cv_prog_compiler__b"; then
  8842. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8843. else
  8844. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8845. fi
  8846. ;;
  8847. esac
  8848. fi
  8849. if test no = "$with_gnu_ld"; then
  8850. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8851. hardcode_libdir_separator=:
  8852. case $host_cpu in
  8853. hppa*64*|ia64*)
  8854. hardcode_direct=no
  8855. hardcode_shlibpath_var=no
  8856. ;;
  8857. *)
  8858. hardcode_direct=yes
  8859. hardcode_direct_absolute=yes
  8860. export_dynamic_flag_spec='$wl-E'
  8861. # hardcode_minus_L: Not really in the search PATH,
  8862. # but as the default location of the library.
  8863. hardcode_minus_L=yes
  8864. ;;
  8865. esac
  8866. fi
  8867. ;;
  8868. irix5* | irix6* | nonstopux*)
  8869. if test yes = "$GCC"; then
  8870. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8871. # Try to use the -exported_symbol ld option, if it does not
  8872. # work, assume that -exports_file does not work either and
  8873. # implicitly export all symbols.
  8874. # This should be the same for all languages, so no per-tag cache variable.
  8875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8876. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8877. if ${lt_cv_irix_exported_symbol+:} false; then :
  8878. $as_echo_n "(cached) " >&6
  8879. else
  8880. save_LDFLAGS=$LDFLAGS
  8881. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8883. /* end confdefs.h. */
  8884. int foo (void) { return 0; }
  8885. _ACEOF
  8886. if ac_fn_c_try_link "$LINENO"; then :
  8887. lt_cv_irix_exported_symbol=yes
  8888. else
  8889. lt_cv_irix_exported_symbol=no
  8890. fi
  8891. rm -f core conftest.err conftest.$ac_objext \
  8892. conftest$ac_exeext conftest.$ac_ext
  8893. LDFLAGS=$save_LDFLAGS
  8894. fi
  8895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8896. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8897. if test yes = "$lt_cv_irix_exported_symbol"; then
  8898. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  8899. fi
  8900. link_all_deplibs=no
  8901. else
  8902. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8903. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  8904. fi
  8905. archive_cmds_need_lc='no'
  8906. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8907. hardcode_libdir_separator=:
  8908. inherit_rpath=yes
  8909. link_all_deplibs=yes
  8910. ;;
  8911. linux*)
  8912. case $cc_basename in
  8913. tcc*)
  8914. # Fabrice Bellard et al's Tiny C Compiler
  8915. ld_shlibs=yes
  8916. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8917. ;;
  8918. esac
  8919. ;;
  8920. netbsd* | netbsdelf*-gnu)
  8921. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8922. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8923. else
  8924. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8925. fi
  8926. hardcode_libdir_flag_spec='-R$libdir'
  8927. hardcode_direct=yes
  8928. hardcode_shlibpath_var=no
  8929. ;;
  8930. newsos6)
  8931. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8932. hardcode_direct=yes
  8933. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8934. hardcode_libdir_separator=:
  8935. hardcode_shlibpath_var=no
  8936. ;;
  8937. *nto* | *qnx*)
  8938. ;;
  8939. openbsd* | bitrig*)
  8940. if test -f /usr/libexec/ld.so; then
  8941. hardcode_direct=yes
  8942. hardcode_shlibpath_var=no
  8943. hardcode_direct_absolute=yes
  8944. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8945. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8946. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8947. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8948. export_dynamic_flag_spec='$wl-E'
  8949. else
  8950. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8951. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8952. fi
  8953. else
  8954. ld_shlibs=no
  8955. fi
  8956. ;;
  8957. os2*)
  8958. hardcode_libdir_flag_spec='-L$libdir'
  8959. hardcode_minus_L=yes
  8960. allow_undefined_flag=unsupported
  8961. shrext_cmds=.dll
  8962. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8963. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8964. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8965. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8966. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8967. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8968. emximp -o $lib $output_objdir/$libname.def'
  8969. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8970. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8971. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8972. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8973. prefix_cmds="$SED"~
  8974. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8975. prefix_cmds="$prefix_cmds -e 1d";
  8976. fi~
  8977. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8978. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8979. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8980. emximp -o $lib $output_objdir/$libname.def'
  8981. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8982. enable_shared_with_static_runtimes=yes
  8983. ;;
  8984. osf3*)
  8985. if test yes = "$GCC"; then
  8986. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8987. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8988. else
  8989. allow_undefined_flag=' -expect_unresolved \*'
  8990. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8991. fi
  8992. archive_cmds_need_lc='no'
  8993. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8994. hardcode_libdir_separator=:
  8995. ;;
  8996. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8997. if test yes = "$GCC"; then
  8998. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8999. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9000. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9001. else
  9002. allow_undefined_flag=' -expect_unresolved \*'
  9003. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9004. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9005. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9006. # Both c and cxx compiler support -rpath directly
  9007. hardcode_libdir_flag_spec='-rpath $libdir'
  9008. fi
  9009. archive_cmds_need_lc='no'
  9010. hardcode_libdir_separator=:
  9011. ;;
  9012. solaris*)
  9013. no_undefined_flag=' -z defs'
  9014. if test yes = "$GCC"; then
  9015. wlarc='$wl'
  9016. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9017. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9018. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9019. else
  9020. case `$CC -V 2>&1` in
  9021. *"Compilers 5.0"*)
  9022. wlarc=''
  9023. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9024. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9025. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9026. ;;
  9027. *)
  9028. wlarc='$wl'
  9029. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9030. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9031. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9032. ;;
  9033. esac
  9034. fi
  9035. hardcode_libdir_flag_spec='-R$libdir'
  9036. hardcode_shlibpath_var=no
  9037. case $host_os in
  9038. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9039. *)
  9040. # The compiler driver will combine and reorder linker options,
  9041. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9042. # but is careful enough not to reorder.
  9043. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9044. if test yes = "$GCC"; then
  9045. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9046. else
  9047. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9048. fi
  9049. ;;
  9050. esac
  9051. link_all_deplibs=yes
  9052. ;;
  9053. sunos4*)
  9054. if test sequent = "$host_vendor"; then
  9055. # Use $CC to link under sequent, because it throws in some extra .o
  9056. # files that make .init and .fini sections work.
  9057. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9058. else
  9059. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9060. fi
  9061. hardcode_libdir_flag_spec='-L$libdir'
  9062. hardcode_direct=yes
  9063. hardcode_minus_L=yes
  9064. hardcode_shlibpath_var=no
  9065. ;;
  9066. sysv4)
  9067. case $host_vendor in
  9068. sni)
  9069. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9070. hardcode_direct=yes # is this really true???
  9071. ;;
  9072. siemens)
  9073. ## LD is ld it makes a PLAMLIB
  9074. ## CC just makes a GrossModule.
  9075. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9076. reload_cmds='$CC -r -o $output$reload_objs'
  9077. hardcode_direct=no
  9078. ;;
  9079. motorola)
  9080. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9081. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9082. ;;
  9083. esac
  9084. runpath_var='LD_RUN_PATH'
  9085. hardcode_shlibpath_var=no
  9086. ;;
  9087. sysv4.3*)
  9088. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9089. hardcode_shlibpath_var=no
  9090. export_dynamic_flag_spec='-Bexport'
  9091. ;;
  9092. sysv4*MP*)
  9093. if test -d /usr/nec; then
  9094. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9095. hardcode_shlibpath_var=no
  9096. runpath_var=LD_RUN_PATH
  9097. hardcode_runpath_var=yes
  9098. ld_shlibs=yes
  9099. fi
  9100. ;;
  9101. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9102. no_undefined_flag='$wl-z,text'
  9103. archive_cmds_need_lc=no
  9104. hardcode_shlibpath_var=no
  9105. runpath_var='LD_RUN_PATH'
  9106. if test yes = "$GCC"; then
  9107. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9108. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9109. else
  9110. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9111. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9112. fi
  9113. ;;
  9114. sysv5* | sco3.2v5* | sco5v6*)
  9115. # Note: We CANNOT use -z defs as we might desire, because we do not
  9116. # link with -lc, and that would cause any symbols used from libc to
  9117. # always be unresolved, which means just about no library would
  9118. # ever link correctly. If we're not using GNU ld we use -z text
  9119. # though, which does catch some bad symbols but isn't as heavy-handed
  9120. # as -z defs.
  9121. no_undefined_flag='$wl-z,text'
  9122. allow_undefined_flag='$wl-z,nodefs'
  9123. archive_cmds_need_lc=no
  9124. hardcode_shlibpath_var=no
  9125. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9126. hardcode_libdir_separator=':'
  9127. link_all_deplibs=yes
  9128. export_dynamic_flag_spec='$wl-Bexport'
  9129. runpath_var='LD_RUN_PATH'
  9130. if test yes = "$GCC"; then
  9131. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9132. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9133. else
  9134. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9135. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9136. fi
  9137. ;;
  9138. uts4*)
  9139. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9140. hardcode_libdir_flag_spec='-L$libdir'
  9141. hardcode_shlibpath_var=no
  9142. ;;
  9143. *)
  9144. ld_shlibs=no
  9145. ;;
  9146. esac
  9147. if test sni = "$host_vendor"; then
  9148. case $host in
  9149. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9150. export_dynamic_flag_spec='$wl-Blargedynsym'
  9151. ;;
  9152. esac
  9153. fi
  9154. fi
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9156. $as_echo "$ld_shlibs" >&6; }
  9157. test no = "$ld_shlibs" && can_build_shared=no
  9158. with_gnu_ld=$with_gnu_ld
  9159. #
  9160. # Do we need to explicitly link libc?
  9161. #
  9162. case "x$archive_cmds_need_lc" in
  9163. x|xyes)
  9164. # Assume -lc should be added
  9165. archive_cmds_need_lc=yes
  9166. if test yes,yes = "$GCC,$enable_shared"; then
  9167. case $archive_cmds in
  9168. *'~'*)
  9169. # FIXME: we may have to deal with multi-command sequences.
  9170. ;;
  9171. '$CC '*)
  9172. # Test whether the compiler implicitly links with -lc since on some
  9173. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9174. # to ld, don't add -lc before -lgcc.
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9176. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9177. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9178. $as_echo_n "(cached) " >&6
  9179. else
  9180. $RM conftest*
  9181. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9182. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9183. (eval $ac_compile) 2>&5
  9184. ac_status=$?
  9185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9186. test $ac_status = 0; } 2>conftest.err; then
  9187. soname=conftest
  9188. lib=conftest
  9189. libobjs=conftest.$ac_objext
  9190. deplibs=
  9191. wl=$lt_prog_compiler_wl
  9192. pic_flag=$lt_prog_compiler_pic
  9193. compiler_flags=-v
  9194. linker_flags=-v
  9195. verstring=
  9196. output_objdir=.
  9197. libname=conftest
  9198. lt_save_allow_undefined_flag=$allow_undefined_flag
  9199. allow_undefined_flag=
  9200. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9201. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9202. ac_status=$?
  9203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9204. test $ac_status = 0; }
  9205. then
  9206. lt_cv_archive_cmds_need_lc=no
  9207. else
  9208. lt_cv_archive_cmds_need_lc=yes
  9209. fi
  9210. allow_undefined_flag=$lt_save_allow_undefined_flag
  9211. else
  9212. cat conftest.err 1>&5
  9213. fi
  9214. $RM conftest*
  9215. fi
  9216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9217. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9218. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9219. ;;
  9220. esac
  9221. fi
  9222. ;;
  9223. esac
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9225. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9226. if test yes = "$GCC"; then
  9227. case $host_os in
  9228. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9229. *) lt_awk_arg='/^libraries:/' ;;
  9230. esac
  9231. case $host_os in
  9232. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9233. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9234. esac
  9235. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9236. case $lt_search_path_spec in
  9237. *\;*)
  9238. # if the path contains ";" then we assume it to be the separator
  9239. # otherwise default to the standard path separator (i.e. ":") - it is
  9240. # assumed that no part of a normal pathname contains ";" but that should
  9241. # okay in the real world where ";" in dirpaths is itself problematic.
  9242. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9243. ;;
  9244. *)
  9245. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9246. ;;
  9247. esac
  9248. # Ok, now we have the path, separated by spaces, we can step through it
  9249. # and add multilib dir if necessary...
  9250. lt_tmp_lt_search_path_spec=
  9251. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9252. # ...but if some path component already ends with the multilib dir we assume
  9253. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9254. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9255. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9256. lt_multi_os_dir=
  9257. ;;
  9258. esac
  9259. for lt_sys_path in $lt_search_path_spec; do
  9260. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9261. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9262. elif test -n "$lt_multi_os_dir"; then
  9263. test -d "$lt_sys_path" && \
  9264. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9265. fi
  9266. done
  9267. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9268. BEGIN {RS = " "; FS = "/|\n";} {
  9269. lt_foo = "";
  9270. lt_count = 0;
  9271. for (lt_i = NF; lt_i > 0; lt_i--) {
  9272. if ($lt_i != "" && $lt_i != ".") {
  9273. if ($lt_i == "..") {
  9274. lt_count++;
  9275. } else {
  9276. if (lt_count == 0) {
  9277. lt_foo = "/" $lt_i lt_foo;
  9278. } else {
  9279. lt_count--;
  9280. }
  9281. }
  9282. }
  9283. }
  9284. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9285. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9286. }'`
  9287. # AWK program above erroneously prepends '/' to C:/dos/paths
  9288. # for these hosts.
  9289. case $host_os in
  9290. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9291. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9292. esac
  9293. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9294. else
  9295. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9296. fi
  9297. library_names_spec=
  9298. libname_spec='lib$name'
  9299. soname_spec=
  9300. shrext_cmds=.so
  9301. postinstall_cmds=
  9302. postuninstall_cmds=
  9303. finish_cmds=
  9304. finish_eval=
  9305. shlibpath_var=
  9306. shlibpath_overrides_runpath=unknown
  9307. version_type=none
  9308. dynamic_linker="$host_os ld.so"
  9309. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9310. need_lib_prefix=unknown
  9311. hardcode_into_libs=no
  9312. # when you set need_version to no, make sure it does not cause -set_version
  9313. # flags to be left without arguments
  9314. need_version=unknown
  9315. case $host_os in
  9316. aix3*)
  9317. version_type=linux # correct to gnu/linux during the next big refactor
  9318. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9319. shlibpath_var=LIBPATH
  9320. # AIX 3 has no versioning support, so we append a major version to the name.
  9321. soname_spec='$libname$release$shared_ext$major'
  9322. ;;
  9323. aix[4-9]*)
  9324. version_type=linux # correct to gnu/linux during the next big refactor
  9325. need_lib_prefix=no
  9326. need_version=no
  9327. hardcode_into_libs=yes
  9328. if test ia64 = "$host_cpu"; then
  9329. # AIX 5 supports IA64
  9330. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9331. shlibpath_var=LD_LIBRARY_PATH
  9332. else
  9333. # With GCC up to 2.95.x, collect2 would create an import file
  9334. # for dependence libraries. The import file would start with
  9335. # the line '#! .'. This would cause the generated library to
  9336. # depend on '.', always an invalid library. This was fixed in
  9337. # development snapshots of GCC prior to 3.0.
  9338. case $host_os in
  9339. aix4 | aix4.[01] | aix4.[01].*)
  9340. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9341. echo ' yes '
  9342. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9343. :
  9344. else
  9345. can_build_shared=no
  9346. fi
  9347. ;;
  9348. esac
  9349. # Using Import Files as archive members, it is possible to support
  9350. # filename-based versioning of shared library archives on AIX. While
  9351. # this would work for both with and without runtime linking, it will
  9352. # prevent static linking of such archives. So we do filename-based
  9353. # shared library versioning with .so extension only, which is used
  9354. # when both runtime linking and shared linking is enabled.
  9355. # Unfortunately, runtime linking may impact performance, so we do
  9356. # not want this to be the default eventually. Also, we use the
  9357. # versioned .so libs for executables only if there is the -brtl
  9358. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9359. # To allow for filename-based versioning support, we need to create
  9360. # libNAME.so.V as an archive file, containing:
  9361. # *) an Import File, referring to the versioned filename of the
  9362. # archive as well as the shared archive member, telling the
  9363. # bitwidth (32 or 64) of that shared object, and providing the
  9364. # list of exported symbols of that shared object, eventually
  9365. # decorated with the 'weak' keyword
  9366. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9367. # it being seen by the linker.
  9368. # At run time we better use the real file rather than another symlink,
  9369. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9370. case $with_aix_soname,$aix_use_runtimelinking in
  9371. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9372. # soname into executable. Probably we can add versioning support to
  9373. # collect2, so additional links can be useful in future.
  9374. aix,yes) # traditional libtool
  9375. dynamic_linker='AIX unversionable lib.so'
  9376. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9377. # instead of lib<name>.a to let people know that these are not
  9378. # typical AIX shared libraries.
  9379. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9380. ;;
  9381. aix,no) # traditional AIX only
  9382. dynamic_linker='AIX lib.a(lib.so.V)'
  9383. # We preserve .a as extension for shared libraries through AIX4.2
  9384. # and later when we are not doing run time linking.
  9385. library_names_spec='$libname$release.a $libname.a'
  9386. soname_spec='$libname$release$shared_ext$major'
  9387. ;;
  9388. svr4,*) # full svr4 only
  9389. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9390. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9391. # We do not specify a path in Import Files, so LIBPATH fires.
  9392. shlibpath_overrides_runpath=yes
  9393. ;;
  9394. *,yes) # both, prefer svr4
  9395. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9396. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9397. # unpreferred sharedlib libNAME.a needs extra handling
  9398. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9399. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9400. # We do not specify a path in Import Files, so LIBPATH fires.
  9401. shlibpath_overrides_runpath=yes
  9402. ;;
  9403. *,no) # both, prefer aix
  9404. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9405. library_names_spec='$libname$release.a $libname.a'
  9406. soname_spec='$libname$release$shared_ext$major'
  9407. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9408. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9409. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9410. ;;
  9411. esac
  9412. shlibpath_var=LIBPATH
  9413. fi
  9414. ;;
  9415. amigaos*)
  9416. case $host_cpu in
  9417. powerpc)
  9418. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9419. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9421. ;;
  9422. m68k)
  9423. library_names_spec='$libname.ixlibrary $libname.a'
  9424. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9425. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9426. ;;
  9427. esac
  9428. ;;
  9429. beos*)
  9430. library_names_spec='$libname$shared_ext'
  9431. dynamic_linker="$host_os ld.so"
  9432. shlibpath_var=LIBRARY_PATH
  9433. ;;
  9434. bsdi[45]*)
  9435. version_type=linux # correct to gnu/linux during the next big refactor
  9436. need_version=no
  9437. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9438. soname_spec='$libname$release$shared_ext$major'
  9439. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9440. shlibpath_var=LD_LIBRARY_PATH
  9441. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9442. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9443. # the default ld.so.conf also contains /usr/contrib/lib and
  9444. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9445. # libtool to hard-code these into programs
  9446. ;;
  9447. cygwin* | mingw* | pw32* | cegcc*)
  9448. version_type=windows
  9449. shrext_cmds=.dll
  9450. need_version=no
  9451. need_lib_prefix=no
  9452. case $GCC,$cc_basename in
  9453. yes,*)
  9454. # gcc
  9455. library_names_spec='$libname.dll.a'
  9456. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9457. postinstall_cmds='base_file=`basename \$file`~
  9458. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9459. dldir=$destdir/`dirname \$dlpath`~
  9460. test -d \$dldir || mkdir -p \$dldir~
  9461. $install_prog $dir/$dlname \$dldir/$dlname~
  9462. chmod a+x \$dldir/$dlname~
  9463. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9464. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9465. fi'
  9466. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9467. dlpath=$dir/\$dldll~
  9468. $RM \$dlpath'
  9469. shlibpath_overrides_runpath=yes
  9470. case $host_os in
  9471. cygwin*)
  9472. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9473. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9474. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9475. ;;
  9476. mingw* | cegcc*)
  9477. # MinGW DLLs use traditional 'lib' prefix
  9478. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9479. ;;
  9480. pw32*)
  9481. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9482. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9483. ;;
  9484. esac
  9485. dynamic_linker='Win32 ld.exe'
  9486. ;;
  9487. *,cl*)
  9488. # Native MSVC
  9489. libname_spec='$name'
  9490. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9491. library_names_spec='$libname.dll.lib'
  9492. case $build_os in
  9493. mingw*)
  9494. sys_lib_search_path_spec=
  9495. lt_save_ifs=$IFS
  9496. IFS=';'
  9497. for lt_path in $LIB
  9498. do
  9499. IFS=$lt_save_ifs
  9500. # Let DOS variable expansion print the short 8.3 style file name.
  9501. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9502. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9503. done
  9504. IFS=$lt_save_ifs
  9505. # Convert to MSYS style.
  9506. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9507. ;;
  9508. cygwin*)
  9509. # Convert to unix form, then to dos form, then back to unix form
  9510. # but this time dos style (no spaces!) so that the unix form looks
  9511. # like /cygdrive/c/PROGRA~1:/cygdr...
  9512. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9513. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9514. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9515. ;;
  9516. *)
  9517. sys_lib_search_path_spec=$LIB
  9518. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9519. # It is most probably a Windows format PATH.
  9520. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9521. else
  9522. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9523. fi
  9524. # FIXME: find the short name or the path components, as spaces are
  9525. # common. (e.g. "Program Files" -> "PROGRA~1")
  9526. ;;
  9527. esac
  9528. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9529. postinstall_cmds='base_file=`basename \$file`~
  9530. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9531. dldir=$destdir/`dirname \$dlpath`~
  9532. test -d \$dldir || mkdir -p \$dldir~
  9533. $install_prog $dir/$dlname \$dldir/$dlname'
  9534. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9535. dlpath=$dir/\$dldll~
  9536. $RM \$dlpath'
  9537. shlibpath_overrides_runpath=yes
  9538. dynamic_linker='Win32 link.exe'
  9539. ;;
  9540. *)
  9541. # Assume MSVC wrapper
  9542. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9543. dynamic_linker='Win32 ld.exe'
  9544. ;;
  9545. esac
  9546. # FIXME: first we should search . and the directory the executable is in
  9547. shlibpath_var=PATH
  9548. ;;
  9549. darwin* | rhapsody*)
  9550. dynamic_linker="$host_os dyld"
  9551. version_type=darwin
  9552. need_lib_prefix=no
  9553. need_version=no
  9554. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9555. soname_spec='$libname$release$major$shared_ext'
  9556. shlibpath_overrides_runpath=yes
  9557. shlibpath_var=DYLD_LIBRARY_PATH
  9558. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9559. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9560. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9561. ;;
  9562. dgux*)
  9563. version_type=linux # correct to gnu/linux during the next big refactor
  9564. need_lib_prefix=no
  9565. need_version=no
  9566. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9567. soname_spec='$libname$release$shared_ext$major'
  9568. shlibpath_var=LD_LIBRARY_PATH
  9569. ;;
  9570. freebsd* | dragonfly*)
  9571. # DragonFly does not have aout. When/if they implement a new
  9572. # versioning mechanism, adjust this.
  9573. if test -x /usr/bin/objformat; then
  9574. objformat=`/usr/bin/objformat`
  9575. else
  9576. case $host_os in
  9577. freebsd[23].*) objformat=aout ;;
  9578. *) objformat=elf ;;
  9579. esac
  9580. fi
  9581. version_type=freebsd-$objformat
  9582. case $version_type in
  9583. freebsd-elf*)
  9584. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9585. soname_spec='$libname$release$shared_ext$major'
  9586. need_version=no
  9587. need_lib_prefix=no
  9588. ;;
  9589. freebsd-*)
  9590. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9591. need_version=yes
  9592. ;;
  9593. esac
  9594. shlibpath_var=LD_LIBRARY_PATH
  9595. case $host_os in
  9596. freebsd2.*)
  9597. shlibpath_overrides_runpath=yes
  9598. ;;
  9599. freebsd3.[01]* | freebsdelf3.[01]*)
  9600. shlibpath_overrides_runpath=yes
  9601. hardcode_into_libs=yes
  9602. ;;
  9603. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9604. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9605. shlibpath_overrides_runpath=no
  9606. hardcode_into_libs=yes
  9607. ;;
  9608. *) # from 4.6 on, and DragonFly
  9609. shlibpath_overrides_runpath=yes
  9610. hardcode_into_libs=yes
  9611. ;;
  9612. esac
  9613. ;;
  9614. haiku*)
  9615. version_type=linux # correct to gnu/linux during the next big refactor
  9616. need_lib_prefix=no
  9617. need_version=no
  9618. dynamic_linker="$host_os runtime_loader"
  9619. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9620. soname_spec='$libname$release$shared_ext$major'
  9621. shlibpath_var=LIBRARY_PATH
  9622. shlibpath_overrides_runpath=no
  9623. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9624. hardcode_into_libs=yes
  9625. ;;
  9626. hpux9* | hpux10* | hpux11*)
  9627. # Give a soname corresponding to the major version so that dld.sl refuses to
  9628. # link against other versions.
  9629. version_type=sunos
  9630. need_lib_prefix=no
  9631. need_version=no
  9632. case $host_cpu in
  9633. ia64*)
  9634. shrext_cmds='.so'
  9635. hardcode_into_libs=yes
  9636. dynamic_linker="$host_os dld.so"
  9637. shlibpath_var=LD_LIBRARY_PATH
  9638. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9639. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9640. soname_spec='$libname$release$shared_ext$major'
  9641. if test 32 = "$HPUX_IA64_MODE"; then
  9642. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9643. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9644. else
  9645. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9646. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9647. fi
  9648. ;;
  9649. hppa*64*)
  9650. shrext_cmds='.sl'
  9651. hardcode_into_libs=yes
  9652. dynamic_linker="$host_os dld.sl"
  9653. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9654. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9655. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9656. soname_spec='$libname$release$shared_ext$major'
  9657. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9658. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9659. ;;
  9660. *)
  9661. shrext_cmds='.sl'
  9662. dynamic_linker="$host_os dld.sl"
  9663. shlibpath_var=SHLIB_PATH
  9664. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9665. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9666. soname_spec='$libname$release$shared_ext$major'
  9667. ;;
  9668. esac
  9669. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9670. postinstall_cmds='chmod 555 $lib'
  9671. # or fails outright, so override atomically:
  9672. install_override_mode=555
  9673. ;;
  9674. interix[3-9]*)
  9675. version_type=linux # correct to gnu/linux during the next big refactor
  9676. need_lib_prefix=no
  9677. need_version=no
  9678. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9679. soname_spec='$libname$release$shared_ext$major'
  9680. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9681. shlibpath_var=LD_LIBRARY_PATH
  9682. shlibpath_overrides_runpath=no
  9683. hardcode_into_libs=yes
  9684. ;;
  9685. irix5* | irix6* | nonstopux*)
  9686. case $host_os in
  9687. nonstopux*) version_type=nonstopux ;;
  9688. *)
  9689. if test yes = "$lt_cv_prog_gnu_ld"; then
  9690. version_type=linux # correct to gnu/linux during the next big refactor
  9691. else
  9692. version_type=irix
  9693. fi ;;
  9694. esac
  9695. need_lib_prefix=no
  9696. need_version=no
  9697. soname_spec='$libname$release$shared_ext$major'
  9698. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9699. case $host_os in
  9700. irix5* | nonstopux*)
  9701. libsuff= shlibsuff=
  9702. ;;
  9703. *)
  9704. case $LD in # libtool.m4 will add one of these switches to LD
  9705. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9706. libsuff= shlibsuff= libmagic=32-bit;;
  9707. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9708. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9709. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9710. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9711. *) libsuff= shlibsuff= libmagic=never-match;;
  9712. esac
  9713. ;;
  9714. esac
  9715. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9716. shlibpath_overrides_runpath=no
  9717. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9718. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9719. hardcode_into_libs=yes
  9720. ;;
  9721. # No shared lib support for Linux oldld, aout, or coff.
  9722. linux*oldld* | linux*aout* | linux*coff*)
  9723. dynamic_linker=no
  9724. ;;
  9725. linux*android*)
  9726. version_type=none # Android doesn't support versioned libraries.
  9727. need_lib_prefix=no
  9728. need_version=no
  9729. library_names_spec='$libname$release$shared_ext'
  9730. soname_spec='$libname$release$shared_ext'
  9731. finish_cmds=
  9732. shlibpath_var=LD_LIBRARY_PATH
  9733. shlibpath_overrides_runpath=yes
  9734. # This implies no fast_install, which is unacceptable.
  9735. # Some rework will be needed to allow for fast_install
  9736. # before this can be enabled.
  9737. hardcode_into_libs=yes
  9738. dynamic_linker='Android linker'
  9739. # Don't embed -rpath directories since the linker doesn't support them.
  9740. hardcode_libdir_flag_spec='-L$libdir'
  9741. ;;
  9742. # This must be glibc/ELF.
  9743. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9744. version_type=linux # correct to gnu/linux during the next big refactor
  9745. need_lib_prefix=no
  9746. need_version=no
  9747. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9748. soname_spec='$libname$release$shared_ext$major'
  9749. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9750. shlibpath_var=LD_LIBRARY_PATH
  9751. shlibpath_overrides_runpath=no
  9752. # Some binutils ld are patched to set DT_RUNPATH
  9753. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9754. $as_echo_n "(cached) " >&6
  9755. else
  9756. lt_cv_shlibpath_overrides_runpath=no
  9757. save_LDFLAGS=$LDFLAGS
  9758. save_libdir=$libdir
  9759. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9760. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9762. /* end confdefs.h. */
  9763. int
  9764. main ()
  9765. {
  9766. ;
  9767. return 0;
  9768. }
  9769. _ACEOF
  9770. if ac_fn_c_try_link "$LINENO"; then :
  9771. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9772. lt_cv_shlibpath_overrides_runpath=yes
  9773. fi
  9774. fi
  9775. rm -f core conftest.err conftest.$ac_objext \
  9776. conftest$ac_exeext conftest.$ac_ext
  9777. LDFLAGS=$save_LDFLAGS
  9778. libdir=$save_libdir
  9779. fi
  9780. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9781. # This implies no fast_install, which is unacceptable.
  9782. # Some rework will be needed to allow for fast_install
  9783. # before this can be enabled.
  9784. hardcode_into_libs=yes
  9785. # Ideally, we could use ldconfig to report *all* directores which are
  9786. # searched for libraries, however this is still not possible. Aside from not
  9787. # being certain /sbin/ldconfig is available, command
  9788. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9789. # even though it is searched at run-time. Try to do the best guess by
  9790. # appending ld.so.conf contents (and includes) to the search path.
  9791. if test -f /etc/ld.so.conf; then
  9792. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9793. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9794. fi
  9795. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9796. # powerpc, because MkLinux only supported shared libraries with the
  9797. # GNU dynamic linker. Since this was broken with cross compilers,
  9798. # most powerpc-linux boxes support dynamic linking these days and
  9799. # people can always --disable-shared, the test was removed, and we
  9800. # assume the GNU/Linux dynamic linker is in use.
  9801. dynamic_linker='GNU/Linux ld.so'
  9802. ;;
  9803. netbsdelf*-gnu)
  9804. version_type=linux
  9805. need_lib_prefix=no
  9806. need_version=no
  9807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9808. soname_spec='${libname}${release}${shared_ext}$major'
  9809. shlibpath_var=LD_LIBRARY_PATH
  9810. shlibpath_overrides_runpath=no
  9811. hardcode_into_libs=yes
  9812. dynamic_linker='NetBSD ld.elf_so'
  9813. ;;
  9814. netbsd*)
  9815. version_type=sunos
  9816. need_lib_prefix=no
  9817. need_version=no
  9818. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9819. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9820. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9821. dynamic_linker='NetBSD (a.out) ld.so'
  9822. else
  9823. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9824. soname_spec='$libname$release$shared_ext$major'
  9825. dynamic_linker='NetBSD ld.elf_so'
  9826. fi
  9827. shlibpath_var=LD_LIBRARY_PATH
  9828. shlibpath_overrides_runpath=yes
  9829. hardcode_into_libs=yes
  9830. ;;
  9831. newsos6)
  9832. version_type=linux # correct to gnu/linux during the next big refactor
  9833. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9834. shlibpath_var=LD_LIBRARY_PATH
  9835. shlibpath_overrides_runpath=yes
  9836. ;;
  9837. *nto* | *qnx*)
  9838. version_type=qnx
  9839. need_lib_prefix=no
  9840. need_version=no
  9841. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9842. soname_spec='$libname$release$shared_ext$major'
  9843. shlibpath_var=LD_LIBRARY_PATH
  9844. shlibpath_overrides_runpath=no
  9845. hardcode_into_libs=yes
  9846. dynamic_linker='ldqnx.so'
  9847. ;;
  9848. openbsd* | bitrig*)
  9849. version_type=sunos
  9850. sys_lib_dlsearch_path_spec=/usr/lib
  9851. need_lib_prefix=no
  9852. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9853. need_version=no
  9854. else
  9855. need_version=yes
  9856. fi
  9857. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9858. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9859. shlibpath_var=LD_LIBRARY_PATH
  9860. shlibpath_overrides_runpath=yes
  9861. ;;
  9862. os2*)
  9863. libname_spec='$name'
  9864. version_type=windows
  9865. shrext_cmds=.dll
  9866. need_version=no
  9867. need_lib_prefix=no
  9868. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9869. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9870. v=$($ECHO $release$versuffix | tr -d .-);
  9871. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9872. $ECHO $n$v`$shared_ext'
  9873. library_names_spec='${libname}_dll.$libext'
  9874. dynamic_linker='OS/2 ld.exe'
  9875. shlibpath_var=BEGINLIBPATH
  9876. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9877. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9878. postinstall_cmds='base_file=`basename \$file`~
  9879. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9880. dldir=$destdir/`dirname \$dlpath`~
  9881. test -d \$dldir || mkdir -p \$dldir~
  9882. $install_prog $dir/$dlname \$dldir/$dlname~
  9883. chmod a+x \$dldir/$dlname~
  9884. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9885. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9886. fi'
  9887. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9888. dlpath=$dir/\$dldll~
  9889. $RM \$dlpath'
  9890. ;;
  9891. osf3* | osf4* | osf5*)
  9892. version_type=osf
  9893. need_lib_prefix=no
  9894. need_version=no
  9895. soname_spec='$libname$release$shared_ext$major'
  9896. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9897. shlibpath_var=LD_LIBRARY_PATH
  9898. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9899. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9900. ;;
  9901. rdos*)
  9902. dynamic_linker=no
  9903. ;;
  9904. solaris*)
  9905. version_type=linux # correct to gnu/linux during the next big refactor
  9906. need_lib_prefix=no
  9907. need_version=no
  9908. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9909. soname_spec='$libname$release$shared_ext$major'
  9910. shlibpath_var=LD_LIBRARY_PATH
  9911. shlibpath_overrides_runpath=yes
  9912. hardcode_into_libs=yes
  9913. # ldd complains unless libraries are executable
  9914. postinstall_cmds='chmod +x $lib'
  9915. ;;
  9916. sunos4*)
  9917. version_type=sunos
  9918. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9919. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9920. shlibpath_var=LD_LIBRARY_PATH
  9921. shlibpath_overrides_runpath=yes
  9922. if test yes = "$with_gnu_ld"; then
  9923. need_lib_prefix=no
  9924. fi
  9925. need_version=yes
  9926. ;;
  9927. sysv4 | sysv4.3*)
  9928. version_type=linux # correct to gnu/linux during the next big refactor
  9929. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9930. soname_spec='$libname$release$shared_ext$major'
  9931. shlibpath_var=LD_LIBRARY_PATH
  9932. case $host_vendor in
  9933. sni)
  9934. shlibpath_overrides_runpath=no
  9935. need_lib_prefix=no
  9936. runpath_var=LD_RUN_PATH
  9937. ;;
  9938. siemens)
  9939. need_lib_prefix=no
  9940. ;;
  9941. motorola)
  9942. need_lib_prefix=no
  9943. need_version=no
  9944. shlibpath_overrides_runpath=no
  9945. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9946. ;;
  9947. esac
  9948. ;;
  9949. sysv4*MP*)
  9950. if test -d /usr/nec; then
  9951. version_type=linux # correct to gnu/linux during the next big refactor
  9952. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9953. soname_spec='$libname$shared_ext.$major'
  9954. shlibpath_var=LD_LIBRARY_PATH
  9955. fi
  9956. ;;
  9957. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9958. version_type=sco
  9959. need_lib_prefix=no
  9960. need_version=no
  9961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9962. soname_spec='$libname$release$shared_ext$major'
  9963. shlibpath_var=LD_LIBRARY_PATH
  9964. shlibpath_overrides_runpath=yes
  9965. hardcode_into_libs=yes
  9966. if test yes = "$with_gnu_ld"; then
  9967. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9968. else
  9969. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9970. case $host_os in
  9971. sco3.2v5*)
  9972. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9973. ;;
  9974. esac
  9975. fi
  9976. sys_lib_dlsearch_path_spec='/usr/lib'
  9977. ;;
  9978. tpf*)
  9979. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9980. version_type=linux # correct to gnu/linux during the next big refactor
  9981. need_lib_prefix=no
  9982. need_version=no
  9983. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9984. shlibpath_var=LD_LIBRARY_PATH
  9985. shlibpath_overrides_runpath=no
  9986. hardcode_into_libs=yes
  9987. ;;
  9988. uts4*)
  9989. version_type=linux # correct to gnu/linux during the next big refactor
  9990. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9991. soname_spec='$libname$release$shared_ext$major'
  9992. shlibpath_var=LD_LIBRARY_PATH
  9993. ;;
  9994. *)
  9995. dynamic_linker=no
  9996. ;;
  9997. esac
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9999. $as_echo "$dynamic_linker" >&6; }
  10000. test no = "$dynamic_linker" && can_build_shared=no
  10001. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10002. if test yes = "$GCC"; then
  10003. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10004. fi
  10005. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10006. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10007. fi
  10008. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10009. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10010. fi
  10011. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10012. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10013. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10014. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10015. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10016. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10018. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10019. hardcode_action=
  10020. if test -n "$hardcode_libdir_flag_spec" ||
  10021. test -n "$runpath_var" ||
  10022. test yes = "$hardcode_automatic"; then
  10023. # We can hardcode non-existent directories.
  10024. if test no != "$hardcode_direct" &&
  10025. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10026. # have to relink, otherwise we might link with an installed library
  10027. # when we should be linking with a yet-to-be-installed one
  10028. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10029. test no != "$hardcode_minus_L"; then
  10030. # Linking always hardcodes the temporary library directory.
  10031. hardcode_action=relink
  10032. else
  10033. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10034. hardcode_action=immediate
  10035. fi
  10036. else
  10037. # We cannot hardcode anything, or else we can only hardcode existing
  10038. # directories.
  10039. hardcode_action=unsupported
  10040. fi
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10042. $as_echo "$hardcode_action" >&6; }
  10043. if test relink = "$hardcode_action" ||
  10044. test yes = "$inherit_rpath"; then
  10045. # Fast installation is not supported
  10046. enable_fast_install=no
  10047. elif test yes = "$shlibpath_overrides_runpath" ||
  10048. test no = "$enable_shared"; then
  10049. # Fast installation is not necessary
  10050. enable_fast_install=needless
  10051. fi
  10052. if test yes != "$enable_dlopen"; then
  10053. enable_dlopen=unknown
  10054. enable_dlopen_self=unknown
  10055. enable_dlopen_self_static=unknown
  10056. else
  10057. lt_cv_dlopen=no
  10058. lt_cv_dlopen_libs=
  10059. case $host_os in
  10060. beos*)
  10061. lt_cv_dlopen=load_add_on
  10062. lt_cv_dlopen_libs=
  10063. lt_cv_dlopen_self=yes
  10064. ;;
  10065. mingw* | pw32* | cegcc*)
  10066. lt_cv_dlopen=LoadLibrary
  10067. lt_cv_dlopen_libs=
  10068. ;;
  10069. cygwin*)
  10070. lt_cv_dlopen=dlopen
  10071. lt_cv_dlopen_libs=
  10072. ;;
  10073. darwin*)
  10074. # if libdl is installed we need to link against it
  10075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10076. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10077. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10078. $as_echo_n "(cached) " >&6
  10079. else
  10080. ac_check_lib_save_LIBS=$LIBS
  10081. LIBS="-ldl $LIBS"
  10082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10083. /* end confdefs.h. */
  10084. /* Override any GCC internal prototype to avoid an error.
  10085. Use char because int might match the return type of a GCC
  10086. builtin and then its argument prototype would still apply. */
  10087. #ifdef __cplusplus
  10088. extern "C"
  10089. #endif
  10090. char dlopen ();
  10091. int
  10092. main ()
  10093. {
  10094. return dlopen ();
  10095. ;
  10096. return 0;
  10097. }
  10098. _ACEOF
  10099. if ac_fn_c_try_link "$LINENO"; then :
  10100. ac_cv_lib_dl_dlopen=yes
  10101. else
  10102. ac_cv_lib_dl_dlopen=no
  10103. fi
  10104. rm -f core conftest.err conftest.$ac_objext \
  10105. conftest$ac_exeext conftest.$ac_ext
  10106. LIBS=$ac_check_lib_save_LIBS
  10107. fi
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10109. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10110. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10111. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10112. else
  10113. lt_cv_dlopen=dyld
  10114. lt_cv_dlopen_libs=
  10115. lt_cv_dlopen_self=yes
  10116. fi
  10117. ;;
  10118. tpf*)
  10119. # Don't try to run any link tests for TPF. We know it's impossible
  10120. # because TPF is a cross-compiler, and we know how we open DSOs.
  10121. lt_cv_dlopen=dlopen
  10122. lt_cv_dlopen_libs=
  10123. lt_cv_dlopen_self=no
  10124. ;;
  10125. *)
  10126. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10127. if test "x$ac_cv_func_shl_load" = xyes; then :
  10128. lt_cv_dlopen=shl_load
  10129. else
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10131. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10132. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10133. $as_echo_n "(cached) " >&6
  10134. else
  10135. ac_check_lib_save_LIBS=$LIBS
  10136. LIBS="-ldld $LIBS"
  10137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10138. /* end confdefs.h. */
  10139. /* Override any GCC internal prototype to avoid an error.
  10140. Use char because int might match the return type of a GCC
  10141. builtin and then its argument prototype would still apply. */
  10142. #ifdef __cplusplus
  10143. extern "C"
  10144. #endif
  10145. char shl_load ();
  10146. int
  10147. main ()
  10148. {
  10149. return shl_load ();
  10150. ;
  10151. return 0;
  10152. }
  10153. _ACEOF
  10154. if ac_fn_c_try_link "$LINENO"; then :
  10155. ac_cv_lib_dld_shl_load=yes
  10156. else
  10157. ac_cv_lib_dld_shl_load=no
  10158. fi
  10159. rm -f core conftest.err conftest.$ac_objext \
  10160. conftest$ac_exeext conftest.$ac_ext
  10161. LIBS=$ac_check_lib_save_LIBS
  10162. fi
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10164. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10165. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10166. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10167. else
  10168. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10169. if test "x$ac_cv_func_dlopen" = xyes; then :
  10170. lt_cv_dlopen=dlopen
  10171. else
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10173. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10174. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10175. $as_echo_n "(cached) " >&6
  10176. else
  10177. ac_check_lib_save_LIBS=$LIBS
  10178. LIBS="-ldl $LIBS"
  10179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10180. /* end confdefs.h. */
  10181. /* Override any GCC internal prototype to avoid an error.
  10182. Use char because int might match the return type of a GCC
  10183. builtin and then its argument prototype would still apply. */
  10184. #ifdef __cplusplus
  10185. extern "C"
  10186. #endif
  10187. char dlopen ();
  10188. int
  10189. main ()
  10190. {
  10191. return dlopen ();
  10192. ;
  10193. return 0;
  10194. }
  10195. _ACEOF
  10196. if ac_fn_c_try_link "$LINENO"; then :
  10197. ac_cv_lib_dl_dlopen=yes
  10198. else
  10199. ac_cv_lib_dl_dlopen=no
  10200. fi
  10201. rm -f core conftest.err conftest.$ac_objext \
  10202. conftest$ac_exeext conftest.$ac_ext
  10203. LIBS=$ac_check_lib_save_LIBS
  10204. fi
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10206. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10207. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10208. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10209. else
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10211. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10212. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10213. $as_echo_n "(cached) " >&6
  10214. else
  10215. ac_check_lib_save_LIBS=$LIBS
  10216. LIBS="-lsvld $LIBS"
  10217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10218. /* end confdefs.h. */
  10219. /* Override any GCC internal prototype to avoid an error.
  10220. Use char because int might match the return type of a GCC
  10221. builtin and then its argument prototype would still apply. */
  10222. #ifdef __cplusplus
  10223. extern "C"
  10224. #endif
  10225. char dlopen ();
  10226. int
  10227. main ()
  10228. {
  10229. return dlopen ();
  10230. ;
  10231. return 0;
  10232. }
  10233. _ACEOF
  10234. if ac_fn_c_try_link "$LINENO"; then :
  10235. ac_cv_lib_svld_dlopen=yes
  10236. else
  10237. ac_cv_lib_svld_dlopen=no
  10238. fi
  10239. rm -f core conftest.err conftest.$ac_objext \
  10240. conftest$ac_exeext conftest.$ac_ext
  10241. LIBS=$ac_check_lib_save_LIBS
  10242. fi
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10244. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10245. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10246. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10247. else
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10249. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10250. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10251. $as_echo_n "(cached) " >&6
  10252. else
  10253. ac_check_lib_save_LIBS=$LIBS
  10254. LIBS="-ldld $LIBS"
  10255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10256. /* end confdefs.h. */
  10257. /* Override any GCC internal prototype to avoid an error.
  10258. Use char because int might match the return type of a GCC
  10259. builtin and then its argument prototype would still apply. */
  10260. #ifdef __cplusplus
  10261. extern "C"
  10262. #endif
  10263. char dld_link ();
  10264. int
  10265. main ()
  10266. {
  10267. return dld_link ();
  10268. ;
  10269. return 0;
  10270. }
  10271. _ACEOF
  10272. if ac_fn_c_try_link "$LINENO"; then :
  10273. ac_cv_lib_dld_dld_link=yes
  10274. else
  10275. ac_cv_lib_dld_dld_link=no
  10276. fi
  10277. rm -f core conftest.err conftest.$ac_objext \
  10278. conftest$ac_exeext conftest.$ac_ext
  10279. LIBS=$ac_check_lib_save_LIBS
  10280. fi
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10282. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10283. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10284. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10285. fi
  10286. fi
  10287. fi
  10288. fi
  10289. fi
  10290. fi
  10291. ;;
  10292. esac
  10293. if test no = "$lt_cv_dlopen"; then
  10294. enable_dlopen=no
  10295. else
  10296. enable_dlopen=yes
  10297. fi
  10298. case $lt_cv_dlopen in
  10299. dlopen)
  10300. save_CPPFLAGS=$CPPFLAGS
  10301. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10302. save_LDFLAGS=$LDFLAGS
  10303. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10304. save_LIBS=$LIBS
  10305. LIBS="$lt_cv_dlopen_libs $LIBS"
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10307. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10308. if ${lt_cv_dlopen_self+:} false; then :
  10309. $as_echo_n "(cached) " >&6
  10310. else
  10311. if test yes = "$cross_compiling"; then :
  10312. lt_cv_dlopen_self=cross
  10313. else
  10314. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10315. lt_status=$lt_dlunknown
  10316. cat > conftest.$ac_ext <<_LT_EOF
  10317. #line $LINENO "configure"
  10318. #include "confdefs.h"
  10319. #if HAVE_DLFCN_H
  10320. #include <dlfcn.h>
  10321. #endif
  10322. #include <stdio.h>
  10323. #ifdef RTLD_GLOBAL
  10324. # define LT_DLGLOBAL RTLD_GLOBAL
  10325. #else
  10326. # ifdef DL_GLOBAL
  10327. # define LT_DLGLOBAL DL_GLOBAL
  10328. # else
  10329. # define LT_DLGLOBAL 0
  10330. # endif
  10331. #endif
  10332. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10333. find out it does not work in some platform. */
  10334. #ifndef LT_DLLAZY_OR_NOW
  10335. # ifdef RTLD_LAZY
  10336. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10337. # else
  10338. # ifdef DL_LAZY
  10339. # define LT_DLLAZY_OR_NOW DL_LAZY
  10340. # else
  10341. # ifdef RTLD_NOW
  10342. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10343. # else
  10344. # ifdef DL_NOW
  10345. # define LT_DLLAZY_OR_NOW DL_NOW
  10346. # else
  10347. # define LT_DLLAZY_OR_NOW 0
  10348. # endif
  10349. # endif
  10350. # endif
  10351. # endif
  10352. #endif
  10353. /* When -fvisibility=hidden is used, assume the code has been annotated
  10354. correspondingly for the symbols needed. */
  10355. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10356. int fnord () __attribute__((visibility("default")));
  10357. #endif
  10358. int fnord () { return 42; }
  10359. int main ()
  10360. {
  10361. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10362. int status = $lt_dlunknown;
  10363. if (self)
  10364. {
  10365. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10366. else
  10367. {
  10368. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10369. else puts (dlerror ());
  10370. }
  10371. /* dlclose (self); */
  10372. }
  10373. else
  10374. puts (dlerror ());
  10375. return status;
  10376. }
  10377. _LT_EOF
  10378. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10379. (eval $ac_link) 2>&5
  10380. ac_status=$?
  10381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10382. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10383. (./conftest; exit; ) >&5 2>/dev/null
  10384. lt_status=$?
  10385. case x$lt_status in
  10386. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10387. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10388. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10389. esac
  10390. else :
  10391. # compilation failed
  10392. lt_cv_dlopen_self=no
  10393. fi
  10394. fi
  10395. rm -fr conftest*
  10396. fi
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10398. $as_echo "$lt_cv_dlopen_self" >&6; }
  10399. if test yes = "$lt_cv_dlopen_self"; then
  10400. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10402. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10403. if ${lt_cv_dlopen_self_static+:} false; then :
  10404. $as_echo_n "(cached) " >&6
  10405. else
  10406. if test yes = "$cross_compiling"; then :
  10407. lt_cv_dlopen_self_static=cross
  10408. else
  10409. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10410. lt_status=$lt_dlunknown
  10411. cat > conftest.$ac_ext <<_LT_EOF
  10412. #line $LINENO "configure"
  10413. #include "confdefs.h"
  10414. #if HAVE_DLFCN_H
  10415. #include <dlfcn.h>
  10416. #endif
  10417. #include <stdio.h>
  10418. #ifdef RTLD_GLOBAL
  10419. # define LT_DLGLOBAL RTLD_GLOBAL
  10420. #else
  10421. # ifdef DL_GLOBAL
  10422. # define LT_DLGLOBAL DL_GLOBAL
  10423. # else
  10424. # define LT_DLGLOBAL 0
  10425. # endif
  10426. #endif
  10427. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10428. find out it does not work in some platform. */
  10429. #ifndef LT_DLLAZY_OR_NOW
  10430. # ifdef RTLD_LAZY
  10431. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10432. # else
  10433. # ifdef DL_LAZY
  10434. # define LT_DLLAZY_OR_NOW DL_LAZY
  10435. # else
  10436. # ifdef RTLD_NOW
  10437. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10438. # else
  10439. # ifdef DL_NOW
  10440. # define LT_DLLAZY_OR_NOW DL_NOW
  10441. # else
  10442. # define LT_DLLAZY_OR_NOW 0
  10443. # endif
  10444. # endif
  10445. # endif
  10446. # endif
  10447. #endif
  10448. /* When -fvisibility=hidden is used, assume the code has been annotated
  10449. correspondingly for the symbols needed. */
  10450. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10451. int fnord () __attribute__((visibility("default")));
  10452. #endif
  10453. int fnord () { return 42; }
  10454. int main ()
  10455. {
  10456. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10457. int status = $lt_dlunknown;
  10458. if (self)
  10459. {
  10460. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10461. else
  10462. {
  10463. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10464. else puts (dlerror ());
  10465. }
  10466. /* dlclose (self); */
  10467. }
  10468. else
  10469. puts (dlerror ());
  10470. return status;
  10471. }
  10472. _LT_EOF
  10473. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10474. (eval $ac_link) 2>&5
  10475. ac_status=$?
  10476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10477. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10478. (./conftest; exit; ) >&5 2>/dev/null
  10479. lt_status=$?
  10480. case x$lt_status in
  10481. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10482. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10483. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10484. esac
  10485. else :
  10486. # compilation failed
  10487. lt_cv_dlopen_self_static=no
  10488. fi
  10489. fi
  10490. rm -fr conftest*
  10491. fi
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10493. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10494. fi
  10495. CPPFLAGS=$save_CPPFLAGS
  10496. LDFLAGS=$save_LDFLAGS
  10497. LIBS=$save_LIBS
  10498. ;;
  10499. esac
  10500. case $lt_cv_dlopen_self in
  10501. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10502. *) enable_dlopen_self=unknown ;;
  10503. esac
  10504. case $lt_cv_dlopen_self_static in
  10505. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10506. *) enable_dlopen_self_static=unknown ;;
  10507. esac
  10508. fi
  10509. striplib=
  10510. old_striplib=
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10512. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10513. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10514. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10515. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10517. $as_echo "yes" >&6; }
  10518. else
  10519. # FIXME - insert some real tests, host_os isn't really good enough
  10520. case $host_os in
  10521. darwin*)
  10522. if test -n "$STRIP"; then
  10523. striplib="$STRIP -x"
  10524. old_striplib="$STRIP -S"
  10525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10526. $as_echo "yes" >&6; }
  10527. else
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10529. $as_echo "no" >&6; }
  10530. fi
  10531. ;;
  10532. *)
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10534. $as_echo "no" >&6; }
  10535. ;;
  10536. esac
  10537. fi
  10538. # Report what library types will actually be built
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10540. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10542. $as_echo "$can_build_shared" >&6; }
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10544. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10545. test no = "$can_build_shared" && enable_shared=no
  10546. # On AIX, shared libraries and static libraries use the same namespace, and
  10547. # are all built from PIC.
  10548. case $host_os in
  10549. aix3*)
  10550. test yes = "$enable_shared" && enable_static=no
  10551. if test -n "$RANLIB"; then
  10552. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10553. postinstall_cmds='$RANLIB $lib'
  10554. fi
  10555. ;;
  10556. aix[4-9]*)
  10557. if test ia64 != "$host_cpu"; then
  10558. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10559. yes,aix,yes) ;; # shared object as lib.so file only
  10560. yes,svr4,*) ;; # shared object as lib.so archive member only
  10561. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10562. esac
  10563. fi
  10564. ;;
  10565. esac
  10566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10567. $as_echo "$enable_shared" >&6; }
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10569. $as_echo_n "checking whether to build static libraries... " >&6; }
  10570. # Make sure either enable_shared or enable_static is yes.
  10571. test yes = "$enable_shared" || enable_static=yes
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10573. $as_echo "$enable_static" >&6; }
  10574. fi
  10575. ac_ext=c
  10576. ac_cpp='$CPP $CPPFLAGS'
  10577. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10578. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10579. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10580. CC=$lt_save_CC
  10581. ac_config_commands="$ac_config_commands libtool"
  10582. # Only expand once:
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
  10584. $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
  10585. if ${libltdl_cv_shlibext+:} false; then :
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. module=yes
  10589. eval libltdl_cv_shlibext=$shrext_cmds
  10590. module=no
  10591. eval libltdl_cv_shrext=$shrext_cmds
  10592. fi
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
  10594. $as_echo "$libltdl_cv_shlibext" >&6; }
  10595. if test -n "$libltdl_cv_shlibext"; then
  10596. cat >>confdefs.h <<_ACEOF
  10597. #define LT_MODULE_EXT "$libltdl_cv_shlibext"
  10598. _ACEOF
  10599. fi
  10600. if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
  10601. cat >>confdefs.h <<_ACEOF
  10602. #define LT_SHARED_EXT "$libltdl_cv_shrext"
  10603. _ACEOF
  10604. fi
  10605. if test -n "$shared_archive_member_spec"; then
  10606. cat >>confdefs.h <<_ACEOF
  10607. #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
  10608. _ACEOF
  10609. fi
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
  10611. $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
  10612. if ${lt_cv_module_path_var+:} false; then :
  10613. $as_echo_n "(cached) " >&6
  10614. else
  10615. lt_cv_module_path_var=$shlibpath_var
  10616. fi
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
  10618. $as_echo "$lt_cv_module_path_var" >&6; }
  10619. if test -n "$lt_cv_module_path_var"; then
  10620. cat >>confdefs.h <<_ACEOF
  10621. #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
  10622. _ACEOF
  10623. fi
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
  10625. $as_echo_n "checking for the default library search path... " >&6; }
  10626. if ${lt_cv_sys_dlsearch_path+:} false; then :
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
  10630. fi
  10631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
  10632. $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
  10633. if test -n "$lt_cv_sys_dlsearch_path"; then
  10634. sys_dlsearch_path=
  10635. for dir in $lt_cv_sys_dlsearch_path; do
  10636. if test -z "$sys_dlsearch_path"; then
  10637. sys_dlsearch_path=$dir
  10638. else
  10639. sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
  10640. fi
  10641. done
  10642. cat >>confdefs.h <<_ACEOF
  10643. #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
  10644. _ACEOF
  10645. fi
  10646. LT_DLLOADERS=
  10647. ac_ext=c
  10648. ac_cpp='$CPP $CPPFLAGS'
  10649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10652. lt_dlload_save_LIBS=$LIBS
  10653. LIBADD_DLOPEN=
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  10655. $as_echo_n "checking for library containing dlopen... " >&6; }
  10656. if ${ac_cv_search_dlopen+:} false; then :
  10657. $as_echo_n "(cached) " >&6
  10658. else
  10659. ac_func_search_save_LIBS=$LIBS
  10660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10661. /* end confdefs.h. */
  10662. /* Override any GCC internal prototype to avoid an error.
  10663. Use char because int might match the return type of a GCC
  10664. builtin and then its argument prototype would still apply. */
  10665. #ifdef __cplusplus
  10666. extern "C"
  10667. #endif
  10668. char dlopen ();
  10669. int
  10670. main ()
  10671. {
  10672. return dlopen ();
  10673. ;
  10674. return 0;
  10675. }
  10676. _ACEOF
  10677. for ac_lib in '' dl; do
  10678. if test -z "$ac_lib"; then
  10679. ac_res="none required"
  10680. else
  10681. ac_res=-l$ac_lib
  10682. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10683. fi
  10684. if ac_fn_c_try_link "$LINENO"; then :
  10685. ac_cv_search_dlopen=$ac_res
  10686. fi
  10687. rm -f core conftest.err conftest.$ac_objext \
  10688. conftest$ac_exeext
  10689. if ${ac_cv_search_dlopen+:} false; then :
  10690. break
  10691. fi
  10692. done
  10693. if ${ac_cv_search_dlopen+:} false; then :
  10694. else
  10695. ac_cv_search_dlopen=no
  10696. fi
  10697. rm conftest.$ac_ext
  10698. LIBS=$ac_func_search_save_LIBS
  10699. fi
  10700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  10701. $as_echo "$ac_cv_search_dlopen" >&6; }
  10702. ac_res=$ac_cv_search_dlopen
  10703. if test "$ac_res" != no; then :
  10704. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10705. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  10706. if test "$ac_cv_search_dlopen" != "none required"; then
  10707. LIBADD_DLOPEN=-ldl
  10708. fi
  10709. libltdl_cv_lib_dl_dlopen=yes
  10710. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  10711. else
  10712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10713. /* end confdefs.h. */
  10714. #if HAVE_DLFCN_H
  10715. # include <dlfcn.h>
  10716. #endif
  10717. int
  10718. main ()
  10719. {
  10720. dlopen(0, 0);
  10721. ;
  10722. return 0;
  10723. }
  10724. _ACEOF
  10725. if ac_fn_c_try_link "$LINENO"; then :
  10726. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  10727. libltdl_cv_func_dlopen=yes
  10728. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  10729. else
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10731. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10732. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10733. $as_echo_n "(cached) " >&6
  10734. else
  10735. ac_check_lib_save_LIBS=$LIBS
  10736. LIBS="-lsvld $LIBS"
  10737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10738. /* end confdefs.h. */
  10739. /* Override any GCC internal prototype to avoid an error.
  10740. Use char because int might match the return type of a GCC
  10741. builtin and then its argument prototype would still apply. */
  10742. #ifdef __cplusplus
  10743. extern "C"
  10744. #endif
  10745. char dlopen ();
  10746. int
  10747. main ()
  10748. {
  10749. return dlopen ();
  10750. ;
  10751. return 0;
  10752. }
  10753. _ACEOF
  10754. if ac_fn_c_try_link "$LINENO"; then :
  10755. ac_cv_lib_svld_dlopen=yes
  10756. else
  10757. ac_cv_lib_svld_dlopen=no
  10758. fi
  10759. rm -f core conftest.err conftest.$ac_objext \
  10760. conftest$ac_exeext conftest.$ac_ext
  10761. LIBS=$ac_check_lib_save_LIBS
  10762. fi
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10764. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10765. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10766. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  10767. LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
  10768. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  10769. fi
  10770. fi
  10771. rm -f core conftest.err conftest.$ac_objext \
  10772. conftest$ac_exeext conftest.$ac_ext
  10773. fi
  10774. if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
  10775. then
  10776. lt_save_LIBS=$LIBS
  10777. LIBS="$LIBS $LIBADD_DLOPEN"
  10778. for ac_func in dlerror
  10779. do :
  10780. ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
  10781. if test "x$ac_cv_func_dlerror" = xyes; then :
  10782. cat >>confdefs.h <<_ACEOF
  10783. #define HAVE_DLERROR 1
  10784. _ACEOF
  10785. fi
  10786. done
  10787. LIBS=$lt_save_LIBS
  10788. fi
  10789. LIBADD_SHL_LOAD=
  10790. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10791. if test "x$ac_cv_func_shl_load" = xyes; then :
  10792. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  10793. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  10794. else
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10796. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10797. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10798. $as_echo_n "(cached) " >&6
  10799. else
  10800. ac_check_lib_save_LIBS=$LIBS
  10801. LIBS="-ldld $LIBS"
  10802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10803. /* end confdefs.h. */
  10804. /* Override any GCC internal prototype to avoid an error.
  10805. Use char because int might match the return type of a GCC
  10806. builtin and then its argument prototype would still apply. */
  10807. #ifdef __cplusplus
  10808. extern "C"
  10809. #endif
  10810. char shl_load ();
  10811. int
  10812. main ()
  10813. {
  10814. return shl_load ();
  10815. ;
  10816. return 0;
  10817. }
  10818. _ACEOF
  10819. if ac_fn_c_try_link "$LINENO"; then :
  10820. ac_cv_lib_dld_shl_load=yes
  10821. else
  10822. ac_cv_lib_dld_shl_load=no
  10823. fi
  10824. rm -f core conftest.err conftest.$ac_objext \
  10825. conftest$ac_exeext conftest.$ac_ext
  10826. LIBS=$ac_check_lib_save_LIBS
  10827. fi
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10829. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10830. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10831. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  10832. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  10833. LIBADD_SHL_LOAD=-ldld
  10834. fi
  10835. fi
  10836. case $host_os in
  10837. darwin[1567].*)
  10838. # We only want this for pre-Mac OS X 10.4.
  10839. ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
  10840. if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
  10841. $as_echo "#define HAVE_DYLD 1" >>confdefs.h
  10842. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
  10843. fi
  10844. ;;
  10845. beos*)
  10846. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  10847. ;;
  10848. cygwin* | mingw* | pw32*)
  10849. ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
  10850. "
  10851. if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
  10852. ac_have_decl=1
  10853. else
  10854. ac_have_decl=0
  10855. fi
  10856. cat >>confdefs.h <<_ACEOF
  10857. #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
  10858. _ACEOF
  10859. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
  10860. ;;
  10861. esac
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10863. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10864. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10865. $as_echo_n "(cached) " >&6
  10866. else
  10867. ac_check_lib_save_LIBS=$LIBS
  10868. LIBS="-ldld $LIBS"
  10869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10870. /* end confdefs.h. */
  10871. /* Override any GCC internal prototype to avoid an error.
  10872. Use char because int might match the return type of a GCC
  10873. builtin and then its argument prototype would still apply. */
  10874. #ifdef __cplusplus
  10875. extern "C"
  10876. #endif
  10877. char dld_link ();
  10878. int
  10879. main ()
  10880. {
  10881. return dld_link ();
  10882. ;
  10883. return 0;
  10884. }
  10885. _ACEOF
  10886. if ac_fn_c_try_link "$LINENO"; then :
  10887. ac_cv_lib_dld_dld_link=yes
  10888. else
  10889. ac_cv_lib_dld_dld_link=no
  10890. fi
  10891. rm -f core conftest.err conftest.$ac_objext \
  10892. conftest$ac_exeext conftest.$ac_ext
  10893. LIBS=$ac_check_lib_save_LIBS
  10894. fi
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10896. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10897. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10898. $as_echo "#define HAVE_DLD 1" >>confdefs.h
  10899. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
  10900. fi
  10901. LT_DLPREOPEN=
  10902. if test -n "$LT_DLLOADERS"
  10903. then
  10904. for lt_loader in $LT_DLLOADERS; do
  10905. LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
  10906. done
  10907. $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
  10908. fi
  10909. LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
  10910. LIBS=$lt_dlload_save_LIBS
  10911. ac_ext=c
  10912. ac_cpp='$CPP $CPPFLAGS'
  10913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  10917. $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  10918. if ${lt_cv_sys_symbol_underscore+:} false; then :
  10919. $as_echo_n "(cached) " >&6
  10920. else
  10921. lt_cv_sys_symbol_underscore=no
  10922. cat > conftest.$ac_ext <<_LT_EOF
  10923. void nm_test_func(){}
  10924. int main(){nm_test_func;return 0;}
  10925. _LT_EOF
  10926. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10927. (eval $ac_compile) 2>&5
  10928. ac_status=$?
  10929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10930. test $ac_status = 0; }; then
  10931. # Now try to grab the symbols.
  10932. ac_nlist=conftest.nm
  10933. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
  10934. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  10935. ac_status=$?
  10936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10937. test $ac_status = 0; } && test -s "$ac_nlist"; then
  10938. # See whether the symbols have a leading underscore.
  10939. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  10940. lt_cv_sys_symbol_underscore=yes
  10941. else
  10942. if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  10943. :
  10944. else
  10945. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  10946. fi
  10947. fi
  10948. else
  10949. echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10950. fi
  10951. else
  10952. echo "configure: failed program was:" >&5
  10953. cat conftest.c >&5
  10954. fi
  10955. rm -rf conftest*
  10956. fi
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
  10958. $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
  10959. sys_symbol_underscore=$lt_cv_sys_symbol_underscore
  10960. if test yes = "$lt_cv_sys_symbol_underscore"; then
  10961. if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
  10962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
  10963. $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
  10964. if ${libltdl_cv_need_uscore+:} false; then :
  10965. $as_echo_n "(cached) " >&6
  10966. else
  10967. libltdl_cv_need_uscore=unknown
  10968. dlsym_uscore_save_LIBS=$LIBS
  10969. LIBS="$LIBS $LIBADD_DLOPEN"
  10970. libname=conftmod # stay within 8.3 filename limits!
  10971. cat >$libname.$ac_ext <<_LT_EOF
  10972. #line $LINENO "configure"
  10973. #include "confdefs.h"
  10974. /* When -fvisibility=hidden is used, assume the code has been annotated
  10975. correspondingly for the symbols needed. */
  10976. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10977. int fnord () __attribute__((visibility("default")));
  10978. #endif
  10979. int fnord () { return 42; }
  10980. _LT_EOF
  10981. # ltfn_module_cmds module_cmds
  10982. # Execute tilde-delimited MODULE_CMDS with environment primed for
  10983. # $module_cmds or $archive_cmds type content.
  10984. ltfn_module_cmds ()
  10985. {( # subshell avoids polluting parent global environment
  10986. module_cmds_save_ifs=$IFS; IFS='~'
  10987. for cmd in $1; do
  10988. IFS=$module_cmds_save_ifs
  10989. libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
  10990. rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
  10991. major=; versuffix=; verstring=; deplibs=
  10992. ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
  10993. eval $cmd
  10994. done
  10995. IFS=$module_cmds_save_ifs
  10996. )}
  10997. # Compile a loadable module using libtool macro expansion results.
  10998. $CC $pic_flag -c $libname.$ac_ext
  10999. ltfn_module_cmds "${module_cmds:-$archive_cmds}"
  11000. # Try to fetch fnord with dlsym().
  11001. libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
  11002. cat >conftest.$ac_ext <<_LT_EOF
  11003. #line $LINENO "configure"
  11004. #include "confdefs.h"
  11005. #if HAVE_DLFCN_H
  11006. #include <dlfcn.h>
  11007. #endif
  11008. #include <stdio.h>
  11009. #ifndef RTLD_GLOBAL
  11010. # ifdef DL_GLOBAL
  11011. # define RTLD_GLOBAL DL_GLOBAL
  11012. # else
  11013. # define RTLD_GLOBAL 0
  11014. # endif
  11015. #endif
  11016. #ifndef RTLD_NOW
  11017. # ifdef DL_NOW
  11018. # define RTLD_NOW DL_NOW
  11019. # else
  11020. # define RTLD_NOW 0
  11021. # endif
  11022. #endif
  11023. int main () {
  11024. void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
  11025. int status = $libltdl_dlunknown;
  11026. if (handle) {
  11027. if (dlsym (handle, "fnord"))
  11028. status = $libltdl_dlnouscore;
  11029. else {
  11030. if (dlsym (handle, "_fnord"))
  11031. status = $libltdl_dluscore;
  11032. else
  11033. puts (dlerror ());
  11034. }
  11035. dlclose (handle);
  11036. } else
  11037. puts (dlerror ());
  11038. return status;
  11039. }
  11040. _LT_EOF
  11041. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11042. (eval $ac_link) 2>&5
  11043. ac_status=$?
  11044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11045. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11046. (./conftest; exit; ) >&5 2>/dev/null
  11047. libltdl_status=$?
  11048. case x$libltdl_status in
  11049. x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
  11050. x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
  11051. x*) libltdl_cv_need_uscore=unknown ;;
  11052. esac
  11053. fi
  11054. rm -rf conftest* $libname*
  11055. LIBS=$dlsym_uscore_save_LIBS
  11056. fi
  11057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
  11058. $as_echo "$libltdl_cv_need_uscore" >&6; }
  11059. fi
  11060. fi
  11061. if test yes = "$libltdl_cv_need_uscore"; then
  11062. $as_echo "#define NEED_USCORE 1" >>confdefs.h
  11063. fi
  11064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
  11065. $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
  11066. if ${lt_cv_sys_dlopen_deplibs+:} false; then :
  11067. $as_echo_n "(cached) " >&6
  11068. else
  11069. # PORTME does your system automatically load deplibs for dlopen?
  11070. # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  11071. # For now, we just catch OSes we know something about -- in the
  11072. # future, we'll try test this programmatically.
  11073. lt_cv_sys_dlopen_deplibs=unknown
  11074. case $host_os in
  11075. aix3*|aix4.1.*|aix4.2.*)
  11076. # Unknown whether this is true for these versions of AIX, but
  11077. # we want this 'case' here to explicitly catch those versions.
  11078. lt_cv_sys_dlopen_deplibs=unknown
  11079. ;;
  11080. aix[4-9]*)
  11081. lt_cv_sys_dlopen_deplibs=yes
  11082. ;;
  11083. amigaos*)
  11084. case $host_cpu in
  11085. powerpc)
  11086. lt_cv_sys_dlopen_deplibs=no
  11087. ;;
  11088. esac
  11089. ;;
  11090. bitrig*)
  11091. lt_cv_sys_dlopen_deplibs=yes
  11092. ;;
  11093. darwin*)
  11094. # Assuming the user has installed a libdl from somewhere, this is true
  11095. # If you are looking for one http://www.opendarwin.org/projects/dlcompat
  11096. lt_cv_sys_dlopen_deplibs=yes
  11097. ;;
  11098. freebsd* | dragonfly*)
  11099. lt_cv_sys_dlopen_deplibs=yes
  11100. ;;
  11101. gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11102. # GNU and its variants, using gnu ld.so (Glibc)
  11103. lt_cv_sys_dlopen_deplibs=yes
  11104. ;;
  11105. hpux10*|hpux11*)
  11106. lt_cv_sys_dlopen_deplibs=yes
  11107. ;;
  11108. interix*)
  11109. lt_cv_sys_dlopen_deplibs=yes
  11110. ;;
  11111. irix[12345]*|irix6.[01]*)
  11112. # Catch all versions of IRIX before 6.2, and indicate that we don't
  11113. # know how it worked for any of those versions.
  11114. lt_cv_sys_dlopen_deplibs=unknown
  11115. ;;
  11116. irix*)
  11117. # The case above catches anything before 6.2, and it's known that
  11118. # at 6.2 and later dlopen does load deplibs.
  11119. lt_cv_sys_dlopen_deplibs=yes
  11120. ;;
  11121. netbsd* | netbsdelf*-gnu)
  11122. lt_cv_sys_dlopen_deplibs=yes
  11123. ;;
  11124. openbsd*)
  11125. lt_cv_sys_dlopen_deplibs=yes
  11126. ;;
  11127. osf[1234]*)
  11128. # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
  11129. # it did *not* use an RPATH in a shared library to find objects the
  11130. # library depends on, so we explicitly say 'no'.
  11131. lt_cv_sys_dlopen_deplibs=no
  11132. ;;
  11133. osf5.0|osf5.0a|osf5.1)
  11134. # dlopen *does* load deplibs and with the right loader patch applied
  11135. # it even uses RPATH in a shared library to search for shared objects
  11136. # that the library depends on, but there's no easy way to know if that
  11137. # patch is installed. Since this is the case, all we can really
  11138. # say is unknown -- it depends on the patch being installed. If
  11139. # it is, this changes to 'yes'. Without it, it would be 'no'.
  11140. lt_cv_sys_dlopen_deplibs=unknown
  11141. ;;
  11142. osf*)
  11143. # the two cases above should catch all versions of osf <= 5.1. Read
  11144. # the comments above for what we know about them.
  11145. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
  11146. # is used to find them so we can finally say 'yes'.
  11147. lt_cv_sys_dlopen_deplibs=yes
  11148. ;;
  11149. qnx*)
  11150. lt_cv_sys_dlopen_deplibs=yes
  11151. ;;
  11152. solaris*)
  11153. lt_cv_sys_dlopen_deplibs=yes
  11154. ;;
  11155. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11156. libltdl_cv_sys_dlopen_deplibs=yes
  11157. ;;
  11158. esac
  11159. fi
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
  11161. $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
  11162. if test yes != "$lt_cv_sys_dlopen_deplibs"; then
  11163. $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
  11164. fi
  11165. for ac_header in argz.h
  11166. do :
  11167. ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
  11168. "
  11169. if test "x$ac_cv_header_argz_h" = xyes; then :
  11170. cat >>confdefs.h <<_ACEOF
  11171. #define HAVE_ARGZ_H 1
  11172. _ACEOF
  11173. fi
  11174. done
  11175. ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
  11176. # include <argz.h>
  11177. #endif
  11178. "
  11179. if test "x$ac_cv_type_error_t" = xyes; then :
  11180. cat >>confdefs.h <<_ACEOF
  11181. #define HAVE_ERROR_T 1
  11182. _ACEOF
  11183. else
  11184. $as_echo "#define error_t int" >>confdefs.h
  11185. $as_echo "#define __error_t_defined 1" >>confdefs.h
  11186. fi
  11187. LT_ARGZ_H=
  11188. for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
  11189. argz_next argz_stringify
  11190. do :
  11191. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11192. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11193. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11194. cat >>confdefs.h <<_ACEOF
  11195. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11196. _ACEOF
  11197. else
  11198. LT_ARGZ_H=lt__argz.h; case " $LIBOBJS " in
  11199. *" lt__argz.$ac_objext "* ) ;;
  11200. *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext"
  11201. ;;
  11202. esac
  11203. fi
  11204. done
  11205. if test -z "$LT_ARGZ_H"; then :
  11206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
  11207. $as_echo_n "checking if argz actually works... " >&6; }
  11208. if ${lt_cv_sys_argz_works+:} false; then :
  11209. $as_echo_n "(cached) " >&6
  11210. else
  11211. case $host_os in #(
  11212. *cygwin*)
  11213. lt_cv_sys_argz_works=no
  11214. if test no != "$cross_compiling"; then
  11215. lt_cv_sys_argz_works="guessing no"
  11216. else
  11217. lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
  11218. save_IFS=$IFS
  11219. IFS=-.
  11220. set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
  11221. IFS=$save_IFS
  11222. lt_os_major=${2-0}
  11223. lt_os_minor=${3-0}
  11224. lt_os_micro=${4-0}
  11225. if test 1 -lt "$lt_os_major" \
  11226. || { test 1 -eq "$lt_os_major" \
  11227. && { test 5 -lt "$lt_os_minor" \
  11228. || { test 5 -eq "$lt_os_minor" \
  11229. && test 24 -lt "$lt_os_micro"; }; }; }; then
  11230. lt_cv_sys_argz_works=yes
  11231. fi
  11232. fi
  11233. ;; #(
  11234. *) lt_cv_sys_argz_works=yes ;;
  11235. esac
  11236. fi
  11237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
  11238. $as_echo "$lt_cv_sys_argz_works" >&6; }
  11239. if test yes = "$lt_cv_sys_argz_works"; then :
  11240. $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
  11241. else
  11242. LT_ARGZ_H=lt__argz.h
  11243. case " $LIBOBJS " in
  11244. *" lt__argz.$ac_objext "* ) ;;
  11245. *) LIBOBJS="$LIBOBJS lt__argz.$ac_objext"
  11246. ;;
  11247. esac
  11248. fi
  11249. fi
  11250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
  11251. $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
  11252. if ${libltdl_cv_preloaded_symbols+:} false; then :
  11253. $as_echo_n "(cached) " >&6
  11254. else
  11255. if test -n "$lt_cv_sys_global_symbol_pipe"; then
  11256. libltdl_cv_preloaded_symbols=yes
  11257. else
  11258. libltdl_cv_preloaded_symbols=no
  11259. fi
  11260. fi
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
  11262. $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
  11263. if test yes = "$libltdl_cv_preloaded_symbols"; then
  11264. $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
  11265. fi
  11266. # Check whether --enable-ltdl-install was given.
  11267. if test "${enable_ltdl_install+set}" = set; then :
  11268. enableval=$enable_ltdl_install;
  11269. fi
  11270. case ,$enable_ltdl_install,$enable_ltdl_convenience in
  11271. *yes*) ;;
  11272. *) enable_ltdl_convenience=yes ;;
  11273. esac
  11274. if test no != "${enable_ltdl_install-no}"; then
  11275. INSTALL_LTDL_TRUE=
  11276. INSTALL_LTDL_FALSE='#'
  11277. else
  11278. INSTALL_LTDL_TRUE='#'
  11279. INSTALL_LTDL_FALSE=
  11280. fi
  11281. if test no != "${enable_ltdl_convenience-no}"; then
  11282. CONVENIENCE_LTDL_TRUE=
  11283. CONVENIENCE_LTDL_FALSE='#'
  11284. else
  11285. CONVENIENCE_LTDL_TRUE='#'
  11286. CONVENIENCE_LTDL_FALSE=
  11287. fi
  11288. # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
  11289. # the user used. This is so that ltdl.h can pick up the parent projects
  11290. # config.h file, The first file in AC_CONFIG_HEADERS must contain the
  11291. # definitions required by ltdl.c.
  11292. # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
  11293. for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
  11294. do :
  11295. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11296. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11297. "
  11298. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11299. cat >>confdefs.h <<_ACEOF
  11300. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11301. _ACEOF
  11302. fi
  11303. done
  11304. for ac_func in closedir opendir readdir
  11305. do :
  11306. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11307. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11308. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11309. cat >>confdefs.h <<_ACEOF
  11310. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11311. _ACEOF
  11312. else
  11313. case " $LIBOBJS " in
  11314. *" lt__dirent.$ac_objext "* ) ;;
  11315. *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
  11316. ;;
  11317. esac
  11318. fi
  11319. done
  11320. for ac_func in strlcat strlcpy
  11321. do :
  11322. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11323. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11324. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11325. cat >>confdefs.h <<_ACEOF
  11326. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11327. _ACEOF
  11328. else
  11329. case " $LIBOBJS " in
  11330. *" lt__strl.$ac_objext "* ) ;;
  11331. *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
  11332. ;;
  11333. esac
  11334. fi
  11335. done
  11336. cat >>confdefs.h <<_ACEOF
  11337. #define LT_LIBEXT "$libext"
  11338. _ACEOF
  11339. name=
  11340. eval "lt_libprefix=\"$libname_spec\""
  11341. cat >>confdefs.h <<_ACEOF
  11342. #define LT_LIBPREFIX "$lt_libprefix"
  11343. _ACEOF
  11344. name=ltdl
  11345. eval "LTDLOPEN=\"$libname_spec\""
  11346. ## -------- ##
  11347. ## Outputs. ##
  11348. ## -------- ##
  11349. ac_config_files="$ac_config_files Makefile"
  11350. cat >confcache <<\_ACEOF
  11351. # This file is a shell script that caches the results of configure
  11352. # tests run on this system so they can be shared between configure
  11353. # scripts and configure runs, see configure's option --config-cache.
  11354. # It is not useful on other systems. If it contains results you don't
  11355. # want to keep, you may remove or edit it.
  11356. #
  11357. # config.status only pays attention to the cache file if you give it
  11358. # the --recheck option to rerun configure.
  11359. #
  11360. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11361. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11362. # following values.
  11363. _ACEOF
  11364. # The following way of writing the cache mishandles newlines in values,
  11365. # but we know of no workaround that is simple, portable, and efficient.
  11366. # So, we kill variables containing newlines.
  11367. # Ultrix sh set writes to stderr and can't be redirected directly,
  11368. # and sets the high bit in the cache file unless we assign to the vars.
  11369. (
  11370. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11371. eval ac_val=\$$ac_var
  11372. case $ac_val in #(
  11373. *${as_nl}*)
  11374. case $ac_var in #(
  11375. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11376. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11377. esac
  11378. case $ac_var in #(
  11379. _ | IFS | as_nl) ;; #(
  11380. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11381. *) { eval $ac_var=; unset $ac_var;} ;;
  11382. esac ;;
  11383. esac
  11384. done
  11385. (set) 2>&1 |
  11386. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11387. *${as_nl}ac_space=\ *)
  11388. # `set' does not quote correctly, so add quotes: double-quote
  11389. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11390. sed -n \
  11391. "s/'/'\\\\''/g;
  11392. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11393. ;; #(
  11394. *)
  11395. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11396. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11397. ;;
  11398. esac |
  11399. sort
  11400. ) |
  11401. sed '
  11402. /^ac_cv_env_/b end
  11403. t clear
  11404. :clear
  11405. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11406. t end
  11407. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11408. :end' >>confcache
  11409. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11410. if test -w "$cache_file"; then
  11411. if test "x$cache_file" != "x/dev/null"; then
  11412. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11413. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11414. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11415. cat confcache >"$cache_file"
  11416. else
  11417. case $cache_file in #(
  11418. */* | ?:*)
  11419. mv -f confcache "$cache_file"$$ &&
  11420. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11421. *)
  11422. mv -f confcache "$cache_file" ;;
  11423. esac
  11424. fi
  11425. fi
  11426. else
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11428. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11429. fi
  11430. fi
  11431. rm -f confcache
  11432. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11433. # Let make expand exec_prefix.
  11434. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11435. DEFS=-DHAVE_CONFIG_H
  11436. ac_libobjs=
  11437. ac_ltlibobjs=
  11438. U=
  11439. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11440. # 1. Remove the extension, and $U if already installed.
  11441. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11442. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11443. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11444. # will be set to the directory where LIBOBJS objects are built.
  11445. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11446. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11447. done
  11448. LIBOBJS=$ac_libobjs
  11449. LTLIBOBJS=$ac_ltlibobjs
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11451. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11452. if test -n "$am_sleep_pid"; then
  11453. # Hide warnings about reused PIDs.
  11454. wait $am_sleep_pid 2>/dev/null
  11455. fi
  11456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11457. $as_echo "done" >&6; }
  11458. if test -n "$EXEEXT"; then
  11459. am__EXEEXT_TRUE=
  11460. am__EXEEXT_FALSE='#'
  11461. else
  11462. am__EXEEXT_TRUE='#'
  11463. am__EXEEXT_FALSE=
  11464. fi
  11465. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11466. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11467. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11468. fi
  11469. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11470. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11471. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11472. fi
  11473. if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
  11474. as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
  11475. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11476. fi
  11477. if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
  11478. as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
  11479. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11480. fi
  11481. LT_CONFIG_H=config.h
  11482. : "${CONFIG_STATUS=./config.status}"
  11483. ac_write_fail=0
  11484. ac_clean_files_save=$ac_clean_files
  11485. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11486. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11487. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11488. as_write_fail=0
  11489. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11490. #! $SHELL
  11491. # Generated by $as_me.
  11492. # Run this file to recreate the current configuration.
  11493. # Compiler output produced by configure, useful for debugging
  11494. # configure, is in config.log if it exists.
  11495. debug=false
  11496. ac_cs_recheck=false
  11497. ac_cs_silent=false
  11498. SHELL=\${CONFIG_SHELL-$SHELL}
  11499. export SHELL
  11500. _ASEOF
  11501. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11502. ## -------------------- ##
  11503. ## M4sh Initialization. ##
  11504. ## -------------------- ##
  11505. # Be more Bourne compatible
  11506. DUALCASE=1; export DUALCASE # for MKS sh
  11507. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11508. emulate sh
  11509. NULLCMD=:
  11510. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11511. # is contrary to our usage. Disable this feature.
  11512. alias -g '${1+"$@"}'='"$@"'
  11513. setopt NO_GLOB_SUBST
  11514. else
  11515. case `(set -o) 2>/dev/null` in #(
  11516. *posix*) :
  11517. set -o posix ;; #(
  11518. *) :
  11519. ;;
  11520. esac
  11521. fi
  11522. as_nl='
  11523. '
  11524. export as_nl
  11525. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11526. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11527. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11528. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11529. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11530. # but without wasting forks for bash or zsh.
  11531. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11532. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11533. as_echo='print -r --'
  11534. as_echo_n='print -rn --'
  11535. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11536. as_echo='printf %s\n'
  11537. as_echo_n='printf %s'
  11538. else
  11539. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11540. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11541. as_echo_n='/usr/ucb/echo -n'
  11542. else
  11543. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11544. as_echo_n_body='eval
  11545. arg=$1;
  11546. case $arg in #(
  11547. *"$as_nl"*)
  11548. expr "X$arg" : "X\\(.*\\)$as_nl";
  11549. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11550. esac;
  11551. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11552. '
  11553. export as_echo_n_body
  11554. as_echo_n='sh -c $as_echo_n_body as_echo'
  11555. fi
  11556. export as_echo_body
  11557. as_echo='sh -c $as_echo_body as_echo'
  11558. fi
  11559. # The user is always right.
  11560. if test "${PATH_SEPARATOR+set}" != set; then
  11561. PATH_SEPARATOR=:
  11562. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11563. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11564. PATH_SEPARATOR=';'
  11565. }
  11566. fi
  11567. # IFS
  11568. # We need space, tab and new line, in precisely that order. Quoting is
  11569. # there to prevent editors from complaining about space-tab.
  11570. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11571. # splitting by setting IFS to empty value.)
  11572. IFS=" "" $as_nl"
  11573. # Find who we are. Look in the path if we contain no directory separator.
  11574. as_myself=
  11575. case $0 in #((
  11576. *[\\/]* ) as_myself=$0 ;;
  11577. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11578. for as_dir in $PATH
  11579. do
  11580. IFS=$as_save_IFS
  11581. test -z "$as_dir" && as_dir=.
  11582. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11583. done
  11584. IFS=$as_save_IFS
  11585. ;;
  11586. esac
  11587. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11588. # in which case we are not to be found in the path.
  11589. if test "x$as_myself" = x; then
  11590. as_myself=$0
  11591. fi
  11592. if test ! -f "$as_myself"; then
  11593. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11594. exit 1
  11595. fi
  11596. # Unset variables that we do not need and which cause bugs (e.g. in
  11597. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11598. # suppresses any "Segmentation fault" message there. '((' could
  11599. # trigger a bug in pdksh 5.2.14.
  11600. for as_var in BASH_ENV ENV MAIL MAILPATH
  11601. do eval test x\${$as_var+set} = xset \
  11602. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11603. done
  11604. PS1='$ '
  11605. PS2='> '
  11606. PS4='+ '
  11607. # NLS nuisances.
  11608. LC_ALL=C
  11609. export LC_ALL
  11610. LANGUAGE=C
  11611. export LANGUAGE
  11612. # CDPATH.
  11613. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11614. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11615. # ----------------------------------------
  11616. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11617. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11618. # script with STATUS, using 1 if that was 0.
  11619. as_fn_error ()
  11620. {
  11621. as_status=$1; test $as_status -eq 0 && as_status=1
  11622. if test "$4"; then
  11623. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11624. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11625. fi
  11626. $as_echo "$as_me: error: $2" >&2
  11627. as_fn_exit $as_status
  11628. } # as_fn_error
  11629. # as_fn_set_status STATUS
  11630. # -----------------------
  11631. # Set $? to STATUS, without forking.
  11632. as_fn_set_status ()
  11633. {
  11634. return $1
  11635. } # as_fn_set_status
  11636. # as_fn_exit STATUS
  11637. # -----------------
  11638. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11639. as_fn_exit ()
  11640. {
  11641. set +e
  11642. as_fn_set_status $1
  11643. exit $1
  11644. } # as_fn_exit
  11645. # as_fn_unset VAR
  11646. # ---------------
  11647. # Portably unset VAR.
  11648. as_fn_unset ()
  11649. {
  11650. { eval $1=; unset $1;}
  11651. }
  11652. as_unset=as_fn_unset
  11653. # as_fn_append VAR VALUE
  11654. # ----------------------
  11655. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11656. # advantage of any shell optimizations that allow amortized linear growth over
  11657. # repeated appends, instead of the typical quadratic growth present in naive
  11658. # implementations.
  11659. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11660. eval 'as_fn_append ()
  11661. {
  11662. eval $1+=\$2
  11663. }'
  11664. else
  11665. as_fn_append ()
  11666. {
  11667. eval $1=\$$1\$2
  11668. }
  11669. fi # as_fn_append
  11670. # as_fn_arith ARG...
  11671. # ------------------
  11672. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11673. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11674. # must be portable across $(()) and expr.
  11675. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11676. eval 'as_fn_arith ()
  11677. {
  11678. as_val=$(( $* ))
  11679. }'
  11680. else
  11681. as_fn_arith ()
  11682. {
  11683. as_val=`expr "$@" || test $? -eq 1`
  11684. }
  11685. fi # as_fn_arith
  11686. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11687. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11688. as_expr=expr
  11689. else
  11690. as_expr=false
  11691. fi
  11692. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11693. as_basename=basename
  11694. else
  11695. as_basename=false
  11696. fi
  11697. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11698. as_dirname=dirname
  11699. else
  11700. as_dirname=false
  11701. fi
  11702. as_me=`$as_basename -- "$0" ||
  11703. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11704. X"$0" : 'X\(//\)$' \| \
  11705. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11706. $as_echo X/"$0" |
  11707. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11708. s//\1/
  11709. q
  11710. }
  11711. /^X\/\(\/\/\)$/{
  11712. s//\1/
  11713. q
  11714. }
  11715. /^X\/\(\/\).*/{
  11716. s//\1/
  11717. q
  11718. }
  11719. s/.*/./; q'`
  11720. # Avoid depending upon Character Ranges.
  11721. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11722. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11723. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11724. as_cr_digits='0123456789'
  11725. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11726. ECHO_C= ECHO_N= ECHO_T=
  11727. case `echo -n x` in #(((((
  11728. -n*)
  11729. case `echo 'xy\c'` in
  11730. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11731. xy) ECHO_C='\c';;
  11732. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11733. ECHO_T=' ';;
  11734. esac;;
  11735. *)
  11736. ECHO_N='-n';;
  11737. esac
  11738. rm -f conf$$ conf$$.exe conf$$.file
  11739. if test -d conf$$.dir; then
  11740. rm -f conf$$.dir/conf$$.file
  11741. else
  11742. rm -f conf$$.dir
  11743. mkdir conf$$.dir 2>/dev/null
  11744. fi
  11745. if (echo >conf$$.file) 2>/dev/null; then
  11746. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11747. as_ln_s='ln -s'
  11748. # ... but there are two gotchas:
  11749. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11750. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11751. # In both cases, we have to default to `cp -pR'.
  11752. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11753. as_ln_s='cp -pR'
  11754. elif ln conf$$.file conf$$ 2>/dev/null; then
  11755. as_ln_s=ln
  11756. else
  11757. as_ln_s='cp -pR'
  11758. fi
  11759. else
  11760. as_ln_s='cp -pR'
  11761. fi
  11762. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11763. rmdir conf$$.dir 2>/dev/null
  11764. # as_fn_mkdir_p
  11765. # -------------
  11766. # Create "$as_dir" as a directory, including parents if necessary.
  11767. as_fn_mkdir_p ()
  11768. {
  11769. case $as_dir in #(
  11770. -*) as_dir=./$as_dir;;
  11771. esac
  11772. test -d "$as_dir" || eval $as_mkdir_p || {
  11773. as_dirs=
  11774. while :; do
  11775. case $as_dir in #(
  11776. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11777. *) as_qdir=$as_dir;;
  11778. esac
  11779. as_dirs="'$as_qdir' $as_dirs"
  11780. as_dir=`$as_dirname -- "$as_dir" ||
  11781. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11782. X"$as_dir" : 'X\(//\)[^/]' \| \
  11783. X"$as_dir" : 'X\(//\)$' \| \
  11784. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11785. $as_echo X"$as_dir" |
  11786. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11787. s//\1/
  11788. q
  11789. }
  11790. /^X\(\/\/\)[^/].*/{
  11791. s//\1/
  11792. q
  11793. }
  11794. /^X\(\/\/\)$/{
  11795. s//\1/
  11796. q
  11797. }
  11798. /^X\(\/\).*/{
  11799. s//\1/
  11800. q
  11801. }
  11802. s/.*/./; q'`
  11803. test -d "$as_dir" && break
  11804. done
  11805. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11806. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11807. } # as_fn_mkdir_p
  11808. if mkdir -p . 2>/dev/null; then
  11809. as_mkdir_p='mkdir -p "$as_dir"'
  11810. else
  11811. test -d ./-p && rmdir ./-p
  11812. as_mkdir_p=false
  11813. fi
  11814. # as_fn_executable_p FILE
  11815. # -----------------------
  11816. # Test if FILE is an executable regular file.
  11817. as_fn_executable_p ()
  11818. {
  11819. test -f "$1" && test -x "$1"
  11820. } # as_fn_executable_p
  11821. as_test_x='test -x'
  11822. as_executable_p=as_fn_executable_p
  11823. # Sed expression to map a string onto a valid CPP name.
  11824. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11825. # Sed expression to map a string onto a valid variable name.
  11826. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11827. exec 6>&1
  11828. ## ----------------------------------- ##
  11829. ## Main body of $CONFIG_STATUS script. ##
  11830. ## ----------------------------------- ##
  11831. _ASEOF
  11832. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11833. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11834. # Save the log message, to keep $0 and so on meaningful, and to
  11835. # report actual input values of CONFIG_FILES etc. instead of their
  11836. # values after options handling.
  11837. ac_log="
  11838. This file was extended by libltdl $as_me 2.4.3a, which was
  11839. generated by GNU Autoconf 2.69. Invocation command line was
  11840. CONFIG_FILES = $CONFIG_FILES
  11841. CONFIG_HEADERS = $CONFIG_HEADERS
  11842. CONFIG_LINKS = $CONFIG_LINKS
  11843. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11844. $ $0 $@
  11845. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11846. "
  11847. _ACEOF
  11848. case $ac_config_files in *"
  11849. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11850. esac
  11851. case $ac_config_headers in *"
  11852. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11853. esac
  11854. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11855. # Files that config.status was made for.
  11856. config_files="$ac_config_files"
  11857. config_headers="$ac_config_headers"
  11858. config_commands="$ac_config_commands"
  11859. _ACEOF
  11860. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11861. ac_cs_usage="\
  11862. \`$as_me' instantiates files and other configuration actions
  11863. from templates according to the current configuration. Unless the files
  11864. and actions are specified as TAGs, all are instantiated by default.
  11865. Usage: $0 [OPTION]... [TAG]...
  11866. -h, --help print this help, then exit
  11867. -V, --version print version number and configuration settings, then exit
  11868. --config print configuration, then exit
  11869. -q, --quiet, --silent
  11870. do not print progress messages
  11871. -d, --debug don't remove temporary files
  11872. --recheck update $as_me by reconfiguring in the same conditions
  11873. --file=FILE[:TEMPLATE]
  11874. instantiate the configuration file FILE
  11875. --header=FILE[:TEMPLATE]
  11876. instantiate the configuration header FILE
  11877. Configuration files:
  11878. $config_files
  11879. Configuration headers:
  11880. $config_headers
  11881. Configuration commands:
  11882. $config_commands
  11883. Report bugs to <[email protected]>."
  11884. _ACEOF
  11885. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11886. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11887. ac_cs_version="\\
  11888. libltdl config.status 2.4.3a
  11889. configured by $0, generated by GNU Autoconf 2.69,
  11890. with options \\"\$ac_cs_config\\"
  11891. Copyright (C) 2012 Free Software Foundation, Inc.
  11892. This config.status script is free software; the Free Software Foundation
  11893. gives unlimited permission to copy, distribute and modify it."
  11894. ac_pwd='$ac_pwd'
  11895. srcdir='$srcdir'
  11896. INSTALL='$INSTALL'
  11897. MKDIR_P='$MKDIR_P'
  11898. AWK='$AWK'
  11899. test -n "\$AWK" || AWK=awk
  11900. _ACEOF
  11901. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11902. # The default lists apply if the user does not specify any file.
  11903. ac_need_defaults=:
  11904. while test $# != 0
  11905. do
  11906. case $1 in
  11907. --*=?*)
  11908. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11909. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11910. ac_shift=:
  11911. ;;
  11912. --*=)
  11913. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11914. ac_optarg=
  11915. ac_shift=:
  11916. ;;
  11917. *)
  11918. ac_option=$1
  11919. ac_optarg=$2
  11920. ac_shift=shift
  11921. ;;
  11922. esac
  11923. case $ac_option in
  11924. # Handling of the options.
  11925. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11926. ac_cs_recheck=: ;;
  11927. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11928. $as_echo "$ac_cs_version"; exit ;;
  11929. --config | --confi | --conf | --con | --co | --c )
  11930. $as_echo "$ac_cs_config"; exit ;;
  11931. --debug | --debu | --deb | --de | --d | -d )
  11932. debug=: ;;
  11933. --file | --fil | --fi | --f )
  11934. $ac_shift
  11935. case $ac_optarg in
  11936. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11937. '') as_fn_error $? "missing file argument" ;;
  11938. esac
  11939. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11940. ac_need_defaults=false;;
  11941. --header | --heade | --head | --hea )
  11942. $ac_shift
  11943. case $ac_optarg in
  11944. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11945. esac
  11946. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11947. ac_need_defaults=false;;
  11948. --he | --h)
  11949. # Conflict between --help and --header
  11950. as_fn_error $? "ambiguous option: \`$1'
  11951. Try \`$0 --help' for more information.";;
  11952. --help | --hel | -h )
  11953. $as_echo "$ac_cs_usage"; exit ;;
  11954. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11955. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11956. ac_cs_silent=: ;;
  11957. # This is an error.
  11958. -*) as_fn_error $? "unrecognized option: \`$1'
  11959. Try \`$0 --help' for more information." ;;
  11960. *) as_fn_append ac_config_targets " $1"
  11961. ac_need_defaults=false ;;
  11962. esac
  11963. shift
  11964. done
  11965. ac_configure_extra_args=
  11966. if $ac_cs_silent; then
  11967. exec 6>/dev/null
  11968. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11969. fi
  11970. _ACEOF
  11971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11972. if \$ac_cs_recheck; then
  11973. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11974. shift
  11975. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11976. CONFIG_SHELL='$SHELL'
  11977. export CONFIG_SHELL
  11978. exec "\$@"
  11979. fi
  11980. _ACEOF
  11981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11982. exec 5>>config.log
  11983. {
  11984. echo
  11985. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11986. ## Running $as_me. ##
  11987. _ASBOX
  11988. $as_echo "$ac_log"
  11989. } >&5
  11990. _ACEOF
  11991. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11992. #
  11993. # INIT-COMMANDS
  11994. #
  11995. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  11996. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11997. # if CDPATH is set.
  11998. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11999. sed_quote_subst='$sed_quote_subst'
  12000. double_quote_subst='$double_quote_subst'
  12001. delay_variable_subst='$delay_variable_subst'
  12002. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12003. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12004. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  12005. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12006. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12007. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12008. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12009. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12010. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12011. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  12012. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12013. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12014. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12015. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12016. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12017. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12018. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12019. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12020. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12021. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12022. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12023. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12024. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12025. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12026. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12027. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12028. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12029. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12030. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12031. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12032. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12033. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12034. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12035. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12036. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12037. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12038. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12039. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12040. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12041. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12042. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12043. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12044. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12045. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12046. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12047. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12048. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12049. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12050. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12051. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12052. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12053. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12054. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12055. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12056. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12057. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12058. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12059. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  12060. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12061. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12062. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  12063. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12064. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12065. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  12066. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12067. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12068. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12069. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12070. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12071. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12072. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12073. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12074. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12075. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12076. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12077. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12078. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12079. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12080. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12081. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12082. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12083. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12084. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12085. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12086. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12087. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12088. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12089. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12090. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12091. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12092. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12093. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12094. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12095. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12096. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12097. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12098. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12099. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12100. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12101. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12102. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12103. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12104. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12105. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12106. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12107. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12108. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12109. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12110. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12111. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12112. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12113. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12114. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12115. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12116. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12117. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12118. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12119. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12120. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12121. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12122. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12123. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12124. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12125. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12126. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12127. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12128. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12129. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12130. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  12131. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  12132. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12133. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12134. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12135. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12136. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12137. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12138. LTCC='$LTCC'
  12139. LTCFLAGS='$LTCFLAGS'
  12140. compiler='$compiler_DEFAULT'
  12141. # A function that is used when there is no print builtin or printf.
  12142. func_fallback_echo ()
  12143. {
  12144. eval 'cat <<_LTECHO_EOF
  12145. \$1
  12146. _LTECHO_EOF'
  12147. }
  12148. # Quote evaled strings.
  12149. for var in AS \
  12150. DLLTOOL \
  12151. OBJDUMP \
  12152. SHELL \
  12153. ECHO \
  12154. PATH_SEPARATOR \
  12155. SED \
  12156. GREP \
  12157. EGREP \
  12158. FGREP \
  12159. LD \
  12160. NM \
  12161. LN_S \
  12162. lt_SP2NL \
  12163. lt_NL2SP \
  12164. reload_flag \
  12165. deplibs_check_method \
  12166. file_magic_cmd \
  12167. file_magic_glob \
  12168. want_nocaseglob \
  12169. sharedlib_from_linklib_cmd \
  12170. AR \
  12171. AR_FLAGS \
  12172. archiver_list_spec \
  12173. STRIP \
  12174. RANLIB \
  12175. CC \
  12176. CFLAGS \
  12177. compiler \
  12178. lt_cv_sys_global_symbol_pipe \
  12179. lt_cv_sys_global_symbol_to_cdecl \
  12180. lt_cv_sys_global_symbol_to_import \
  12181. lt_cv_sys_global_symbol_to_c_name_address \
  12182. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12183. lt_cv_nm_interface \
  12184. nm_file_list_spec \
  12185. lt_cv_truncate_bin \
  12186. lt_prog_compiler_no_builtin_flag \
  12187. lt_prog_compiler_pic \
  12188. lt_prog_compiler_wl \
  12189. lt_prog_compiler_static \
  12190. lt_cv_prog_compiler_c_o \
  12191. need_locks \
  12192. MANIFEST_TOOL \
  12193. DSYMUTIL \
  12194. NMEDIT \
  12195. LIPO \
  12196. OTOOL \
  12197. OTOOL64 \
  12198. shrext_cmds \
  12199. export_dynamic_flag_spec \
  12200. whole_archive_flag_spec \
  12201. compiler_needs_object \
  12202. with_gnu_ld \
  12203. allow_undefined_flag \
  12204. no_undefined_flag \
  12205. hardcode_libdir_flag_spec \
  12206. hardcode_libdir_separator \
  12207. exclude_expsyms \
  12208. include_expsyms \
  12209. file_list_spec \
  12210. variables_saved_for_relink \
  12211. libname_spec \
  12212. library_names_spec \
  12213. soname_spec \
  12214. install_override_mode \
  12215. finish_eval \
  12216. old_striplib \
  12217. striplib; do
  12218. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12219. *[\\\\\\\`\\"\\\$]*)
  12220. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12221. ;;
  12222. *)
  12223. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12224. ;;
  12225. esac
  12226. done
  12227. # Double-quote double-evaled strings.
  12228. for var in reload_cmds \
  12229. old_postinstall_cmds \
  12230. old_postuninstall_cmds \
  12231. old_archive_cmds \
  12232. extract_expsyms_cmds \
  12233. old_archive_from_new_cmds \
  12234. old_archive_from_expsyms_cmds \
  12235. archive_cmds \
  12236. archive_expsym_cmds \
  12237. module_cmds \
  12238. module_expsym_cmds \
  12239. export_symbols_cmds \
  12240. prelink_cmds \
  12241. postlink_cmds \
  12242. postinstall_cmds \
  12243. postuninstall_cmds \
  12244. finish_cmds \
  12245. sys_lib_search_path_spec \
  12246. configure_time_dlsearch_path \
  12247. configure_time_lt_sys_library_path; do
  12248. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12249. *[\\\\\\\`\\"\\\$]*)
  12250. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12251. ;;
  12252. *)
  12253. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12254. ;;
  12255. esac
  12256. done
  12257. ac_aux_dir='$ac_aux_dir'
  12258. # See if we are running on zsh, and set the options that allow our
  12259. # commands through without removal of \ escapes INIT.
  12260. if test -n "\${ZSH_VERSION+set}"; then
  12261. setopt NO_GLOB_SUBST
  12262. fi
  12263. PACKAGE='$PACKAGE'
  12264. VERSION='$VERSION'
  12265. RM='$RM'
  12266. ofile='$ofile'
  12267. _ACEOF
  12268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12269. # Handling of arguments.
  12270. for ac_config_target in $ac_config_targets
  12271. do
  12272. case $ac_config_target in
  12273. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
  12274. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12275. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12276. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12277. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12278. esac
  12279. done
  12280. # If the user did not use the arguments to specify the items to instantiate,
  12281. # then the envvar interface is used. Set only those that are not.
  12282. # We use the long form for the default assignment because of an extremely
  12283. # bizarre bug on SunOS 4.1.3.
  12284. if $ac_need_defaults; then
  12285. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12286. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12287. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12288. fi
  12289. # Have a temporary directory for convenience. Make it in the build tree
  12290. # simply because there is no reason against having it here, and in addition,
  12291. # creating and moving files from /tmp can sometimes cause problems.
  12292. # Hook for its removal unless debugging.
  12293. # Note that there is a small window in which the directory will not be cleaned:
  12294. # after its creation but before its name has been assigned to `$tmp'.
  12295. $debug ||
  12296. {
  12297. tmp= ac_tmp=
  12298. trap 'exit_status=$?
  12299. : "${ac_tmp:=$tmp}"
  12300. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12301. ' 0
  12302. trap 'as_fn_exit 1' 1 2 13 15
  12303. }
  12304. # Create a (secure) tmp directory for tmp files.
  12305. {
  12306. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12307. test -d "$tmp"
  12308. } ||
  12309. {
  12310. tmp=./conf$$-$RANDOM
  12311. (umask 077 && mkdir "$tmp")
  12312. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12313. ac_tmp=$tmp
  12314. # Set up the scripts for CONFIG_FILES section.
  12315. # No need to generate them if there are no CONFIG_FILES.
  12316. # This happens for instance with `./config.status config.h'.
  12317. if test -n "$CONFIG_FILES"; then
  12318. ac_cr=`echo X | tr X '\015'`
  12319. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12320. # But we know of no other shell where ac_cr would be empty at this
  12321. # point, so we can use a bashism as a fallback.
  12322. if test "x$ac_cr" = x; then
  12323. eval ac_cr=\$\'\\r\'
  12324. fi
  12325. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12326. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12327. ac_cs_awk_cr='\\r'
  12328. else
  12329. ac_cs_awk_cr=$ac_cr
  12330. fi
  12331. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12332. _ACEOF
  12333. {
  12334. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12335. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12336. echo "_ACEOF"
  12337. } >conf$$subs.sh ||
  12338. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12339. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12340. ac_delim='%!_!# '
  12341. for ac_last_try in false false false false false :; do
  12342. . ./conf$$subs.sh ||
  12343. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12344. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12345. if test $ac_delim_n = $ac_delim_num; then
  12346. break
  12347. elif $ac_last_try; then
  12348. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12349. else
  12350. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12351. fi
  12352. done
  12353. rm -f conf$$subs.sh
  12354. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12355. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12356. _ACEOF
  12357. sed -n '
  12358. h
  12359. s/^/S["/; s/!.*/"]=/
  12360. p
  12361. g
  12362. s/^[^!]*!//
  12363. :repl
  12364. t repl
  12365. s/'"$ac_delim"'$//
  12366. t delim
  12367. :nl
  12368. h
  12369. s/\(.\{148\}\)..*/\1/
  12370. t more1
  12371. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12372. p
  12373. n
  12374. b repl
  12375. :more1
  12376. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12377. p
  12378. g
  12379. s/.\{148\}//
  12380. t nl
  12381. :delim
  12382. h
  12383. s/\(.\{148\}\)..*/\1/
  12384. t more2
  12385. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12386. p
  12387. b
  12388. :more2
  12389. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12390. p
  12391. g
  12392. s/.\{148\}//
  12393. t delim
  12394. ' <conf$$subs.awk | sed '
  12395. /^[^""]/{
  12396. N
  12397. s/\n//
  12398. }
  12399. ' >>$CONFIG_STATUS || ac_write_fail=1
  12400. rm -f conf$$subs.awk
  12401. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12402. _ACAWK
  12403. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12404. for (key in S) S_is_set[key] = 1
  12405. FS = ""
  12406. }
  12407. {
  12408. line = $ 0
  12409. nfields = split(line, field, "@")
  12410. substed = 0
  12411. len = length(field[1])
  12412. for (i = 2; i < nfields; i++) {
  12413. key = field[i]
  12414. keylen = length(key)
  12415. if (S_is_set[key]) {
  12416. value = S[key]
  12417. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12418. len += length(value) + length(field[++i])
  12419. substed = 1
  12420. } else
  12421. len += 1 + keylen
  12422. }
  12423. print line
  12424. }
  12425. _ACAWK
  12426. _ACEOF
  12427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12428. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12429. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12430. else
  12431. cat
  12432. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12433. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12434. _ACEOF
  12435. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12436. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12437. # trailing colons and then remove the whole line if VPATH becomes empty
  12438. # (actually we leave an empty line to preserve line numbers).
  12439. if test "x$srcdir" = x.; then
  12440. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12441. h
  12442. s///
  12443. s/^/:/
  12444. s/[ ]*$/:/
  12445. s/:\$(srcdir):/:/g
  12446. s/:\${srcdir}:/:/g
  12447. s/:@srcdir@:/:/g
  12448. s/^:*//
  12449. s/:*$//
  12450. x
  12451. s/\(=[ ]*\).*/\1/
  12452. G
  12453. s/\n//
  12454. s/^[^=]*=[ ]*$//
  12455. }'
  12456. fi
  12457. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12458. fi # test -n "$CONFIG_FILES"
  12459. # Set up the scripts for CONFIG_HEADERS section.
  12460. # No need to generate them if there are no CONFIG_HEADERS.
  12461. # This happens for instance with `./config.status Makefile'.
  12462. if test -n "$CONFIG_HEADERS"; then
  12463. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12464. BEGIN {
  12465. _ACEOF
  12466. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12467. # here-document in config.status, that substitutes the proper values into
  12468. # config.h.in to produce config.h.
  12469. # Create a delimiter string that does not exist in confdefs.h, to ease
  12470. # handling of long lines.
  12471. ac_delim='%!_!# '
  12472. for ac_last_try in false false :; do
  12473. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12474. if test -z "$ac_tt"; then
  12475. break
  12476. elif $ac_last_try; then
  12477. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12478. else
  12479. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12480. fi
  12481. done
  12482. # For the awk script, D is an array of macro values keyed by name,
  12483. # likewise P contains macro parameters if any. Preserve backslash
  12484. # newline sequences.
  12485. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12486. sed -n '
  12487. s/.\{148\}/&'"$ac_delim"'/g
  12488. t rset
  12489. :rset
  12490. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12491. t def
  12492. d
  12493. :def
  12494. s/\\$//
  12495. t bsnl
  12496. s/["\\]/\\&/g
  12497. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12498. D["\1"]=" \3"/p
  12499. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12500. d
  12501. :bsnl
  12502. s/["\\]/\\&/g
  12503. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12504. D["\1"]=" \3\\\\\\n"\\/p
  12505. t cont
  12506. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12507. t cont
  12508. d
  12509. :cont
  12510. n
  12511. s/.\{148\}/&'"$ac_delim"'/g
  12512. t clear
  12513. :clear
  12514. s/\\$//
  12515. t bsnlc
  12516. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12517. d
  12518. :bsnlc
  12519. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12520. b cont
  12521. ' <confdefs.h | sed '
  12522. s/'"$ac_delim"'/"\\\
  12523. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12524. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12525. for (key in D) D_is_set[key] = 1
  12526. FS = ""
  12527. }
  12528. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12529. line = \$ 0
  12530. split(line, arg, " ")
  12531. if (arg[1] == "#") {
  12532. defundef = arg[2]
  12533. mac1 = arg[3]
  12534. } else {
  12535. defundef = substr(arg[1], 2)
  12536. mac1 = arg[2]
  12537. }
  12538. split(mac1, mac2, "(") #)
  12539. macro = mac2[1]
  12540. prefix = substr(line, 1, index(line, defundef) - 1)
  12541. if (D_is_set[macro]) {
  12542. # Preserve the white space surrounding the "#".
  12543. print prefix "define", macro P[macro] D[macro]
  12544. next
  12545. } else {
  12546. # Replace #undef with comments. This is necessary, for example,
  12547. # in the case of _POSIX_SOURCE, which is predefined and required
  12548. # on some systems where configure will not decide to define it.
  12549. if (defundef == "undef") {
  12550. print "/*", prefix defundef, macro, "*/"
  12551. next
  12552. }
  12553. }
  12554. }
  12555. { print }
  12556. _ACAWK
  12557. _ACEOF
  12558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12559. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12560. fi # test -n "$CONFIG_HEADERS"
  12561. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12562. shift
  12563. for ac_tag
  12564. do
  12565. case $ac_tag in
  12566. :[FHLC]) ac_mode=$ac_tag; continue;;
  12567. esac
  12568. case $ac_mode$ac_tag in
  12569. :[FHL]*:*);;
  12570. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12571. :[FH]-) ac_tag=-:-;;
  12572. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12573. esac
  12574. ac_save_IFS=$IFS
  12575. IFS=:
  12576. set x $ac_tag
  12577. IFS=$ac_save_IFS
  12578. shift
  12579. ac_file=$1
  12580. shift
  12581. case $ac_mode in
  12582. :L) ac_source=$1;;
  12583. :[FH])
  12584. ac_file_inputs=
  12585. for ac_f
  12586. do
  12587. case $ac_f in
  12588. -) ac_f="$ac_tmp/stdin";;
  12589. *) # Look for the file first in the build tree, then in the source tree
  12590. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12591. # because $ac_f cannot contain `:'.
  12592. test -f "$ac_f" ||
  12593. case $ac_f in
  12594. [\\/$]*) false;;
  12595. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12596. esac ||
  12597. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12598. esac
  12599. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12600. as_fn_append ac_file_inputs " '$ac_f'"
  12601. done
  12602. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12603. # use $as_me), people would be surprised to read:
  12604. # /* config.h. Generated by config.status. */
  12605. configure_input='Generated from '`
  12606. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12607. `' by configure.'
  12608. if test x"$ac_file" != x-; then
  12609. configure_input="$ac_file. $configure_input"
  12610. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12611. $as_echo "$as_me: creating $ac_file" >&6;}
  12612. fi
  12613. # Neutralize special characters interpreted by sed in replacement strings.
  12614. case $configure_input in #(
  12615. *\&* | *\|* | *\\* )
  12616. ac_sed_conf_input=`$as_echo "$configure_input" |
  12617. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12618. *) ac_sed_conf_input=$configure_input;;
  12619. esac
  12620. case $ac_tag in
  12621. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12622. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12623. esac
  12624. ;;
  12625. esac
  12626. ac_dir=`$as_dirname -- "$ac_file" ||
  12627. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12628. X"$ac_file" : 'X\(//\)[^/]' \| \
  12629. X"$ac_file" : 'X\(//\)$' \| \
  12630. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12631. $as_echo X"$ac_file" |
  12632. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12633. s//\1/
  12634. q
  12635. }
  12636. /^X\(\/\/\)[^/].*/{
  12637. s//\1/
  12638. q
  12639. }
  12640. /^X\(\/\/\)$/{
  12641. s//\1/
  12642. q
  12643. }
  12644. /^X\(\/\).*/{
  12645. s//\1/
  12646. q
  12647. }
  12648. s/.*/./; q'`
  12649. as_dir="$ac_dir"; as_fn_mkdir_p
  12650. ac_builddir=.
  12651. case "$ac_dir" in
  12652. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12653. *)
  12654. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12655. # A ".." for each directory in $ac_dir_suffix.
  12656. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12657. case $ac_top_builddir_sub in
  12658. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12659. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12660. esac ;;
  12661. esac
  12662. ac_abs_top_builddir=$ac_pwd
  12663. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12664. # for backward compatibility:
  12665. ac_top_builddir=$ac_top_build_prefix
  12666. case $srcdir in
  12667. .) # We are building in place.
  12668. ac_srcdir=.
  12669. ac_top_srcdir=$ac_top_builddir_sub
  12670. ac_abs_top_srcdir=$ac_pwd ;;
  12671. [\\/]* | ?:[\\/]* ) # Absolute name.
  12672. ac_srcdir=$srcdir$ac_dir_suffix;
  12673. ac_top_srcdir=$srcdir
  12674. ac_abs_top_srcdir=$srcdir ;;
  12675. *) # Relative name.
  12676. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12677. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12678. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12679. esac
  12680. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12681. case $ac_mode in
  12682. :F)
  12683. #
  12684. # CONFIG_FILE
  12685. #
  12686. case $INSTALL in
  12687. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12688. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12689. esac
  12690. ac_MKDIR_P=$MKDIR_P
  12691. case $MKDIR_P in
  12692. [\\/$]* | ?:[\\/]* ) ;;
  12693. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12694. esac
  12695. _ACEOF
  12696. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12697. # If the template does not know about datarootdir, expand it.
  12698. # FIXME: This hack should be removed a few years after 2.60.
  12699. ac_datarootdir_hack=; ac_datarootdir_seen=
  12700. ac_sed_dataroot='
  12701. /datarootdir/ {
  12702. p
  12703. q
  12704. }
  12705. /@datadir@/p
  12706. /@docdir@/p
  12707. /@infodir@/p
  12708. /@localedir@/p
  12709. /@mandir@/p'
  12710. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12711. *datarootdir*) ac_datarootdir_seen=yes;;
  12712. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12714. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12715. _ACEOF
  12716. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12717. ac_datarootdir_hack='
  12718. s&@datadir@&$datadir&g
  12719. s&@docdir@&$docdir&g
  12720. s&@infodir@&$infodir&g
  12721. s&@localedir@&$localedir&g
  12722. s&@mandir@&$mandir&g
  12723. s&\\\${datarootdir}&$datarootdir&g' ;;
  12724. esac
  12725. _ACEOF
  12726. # Neutralize VPATH when `$srcdir' = `.'.
  12727. # Shell code in configure.ac might set extrasub.
  12728. # FIXME: do we really want to maintain this feature?
  12729. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12730. ac_sed_extra="$ac_vpsub
  12731. $extrasub
  12732. _ACEOF
  12733. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12734. :t
  12735. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12736. s|@configure_input@|$ac_sed_conf_input|;t t
  12737. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12738. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12739. s&@srcdir@&$ac_srcdir&;t t
  12740. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12741. s&@top_srcdir@&$ac_top_srcdir&;t t
  12742. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12743. s&@builddir@&$ac_builddir&;t t
  12744. s&@abs_builddir@&$ac_abs_builddir&;t t
  12745. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12746. s&@INSTALL@&$ac_INSTALL&;t t
  12747. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12748. $ac_datarootdir_hack
  12749. "
  12750. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12751. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12752. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12753. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12754. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12755. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12757. which seems to be undefined. Please make sure it is defined" >&5
  12758. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12759. which seems to be undefined. Please make sure it is defined" >&2;}
  12760. rm -f "$ac_tmp/stdin"
  12761. case $ac_file in
  12762. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12763. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12764. esac \
  12765. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12766. ;;
  12767. :H)
  12768. #
  12769. # CONFIG_HEADER
  12770. #
  12771. if test x"$ac_file" != x-; then
  12772. {
  12773. $as_echo "/* $configure_input */" \
  12774. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12775. } >"$ac_tmp/config.h" \
  12776. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12777. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12779. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12780. else
  12781. rm -f "$ac_file"
  12782. mv "$ac_tmp/config.h" "$ac_file" \
  12783. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12784. fi
  12785. else
  12786. $as_echo "/* $configure_input */" \
  12787. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12788. || as_fn_error $? "could not create -" "$LINENO" 5
  12789. fi
  12790. # Compute "$ac_file"'s index in $config_headers.
  12791. _am_arg="$ac_file"
  12792. _am_stamp_count=1
  12793. for _am_header in $config_headers :; do
  12794. case $_am_header in
  12795. $_am_arg | $_am_arg:* )
  12796. break ;;
  12797. * )
  12798. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12799. esac
  12800. done
  12801. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12802. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12803. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12804. X"$_am_arg" : 'X\(//\)$' \| \
  12805. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12806. $as_echo X"$_am_arg" |
  12807. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12808. s//\1/
  12809. q
  12810. }
  12811. /^X\(\/\/\)[^/].*/{
  12812. s//\1/
  12813. q
  12814. }
  12815. /^X\(\/\/\)$/{
  12816. s//\1/
  12817. q
  12818. }
  12819. /^X\(\/\).*/{
  12820. s//\1/
  12821. q
  12822. }
  12823. s/.*/./; q'`/stamp-h$_am_stamp_count
  12824. ;;
  12825. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12826. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12827. ;;
  12828. esac
  12829. case $ac_file$ac_mode in
  12830. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12831. # Older Autoconf quotes --file arguments for eval, but not when files
  12832. # are listed without --file. Let's play safe and only enable the eval
  12833. # if we detect the quoting.
  12834. # TODO: see whether this extra hack can be removed once we start
  12835. # requiring Autoconf 2.70 or later.
  12836. case $CONFIG_FILES in #(
  12837. *\'*) :
  12838. eval set x "$CONFIG_FILES" ;; #(
  12839. *) :
  12840. set x $CONFIG_FILES ;; #(
  12841. *) :
  12842. ;;
  12843. esac
  12844. shift
  12845. # Used to flag and report bootstrapping failures.
  12846. am_rc=0
  12847. for am_mf
  12848. do
  12849. # Strip MF so we end up with the name of the file.
  12850. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  12851. # Check whether this is an Automake generated Makefile which includes
  12852. # dependency-tracking related rules and includes.
  12853. # Grep'ing the whole file directly is not great: AIX grep has a line
  12854. # limit of 2048, but all sed's we know have understand at least 4000.
  12855. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  12856. || continue
  12857. am_dirpart=`$as_dirname -- "$am_mf" ||
  12858. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12859. X"$am_mf" : 'X\(//\)[^/]' \| \
  12860. X"$am_mf" : 'X\(//\)$' \| \
  12861. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  12862. $as_echo X"$am_mf" |
  12863. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12864. s//\1/
  12865. q
  12866. }
  12867. /^X\(\/\/\)[^/].*/{
  12868. s//\1/
  12869. q
  12870. }
  12871. /^X\(\/\/\)$/{
  12872. s//\1/
  12873. q
  12874. }
  12875. /^X\(\/\).*/{
  12876. s//\1/
  12877. q
  12878. }
  12879. s/.*/./; q'`
  12880. am_filepart=`$as_basename -- "$am_mf" ||
  12881. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  12882. X"$am_mf" : 'X\(//\)$' \| \
  12883. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  12884. $as_echo X/"$am_mf" |
  12885. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12886. s//\1/
  12887. q
  12888. }
  12889. /^X\/\(\/\/\)$/{
  12890. s//\1/
  12891. q
  12892. }
  12893. /^X\/\(\/\).*/{
  12894. s//\1/
  12895. q
  12896. }
  12897. s/.*/./; q'`
  12898. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  12899. && sed -e '/# am--include-marker/d' "$am_filepart" \
  12900. | $MAKE -f - am--depfiles" >&5
  12901. (cd "$am_dirpart" \
  12902. && sed -e '/# am--include-marker/d' "$am_filepart" \
  12903. | $MAKE -f - am--depfiles) >&5 2>&5
  12904. ac_status=$?
  12905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12906. (exit $ac_status); } || am_rc=$?
  12907. done
  12908. if test $am_rc -ne 0; then
  12909. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12910. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12911. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  12912. for automatic dependency tracking. Try re-running configure with the
  12913. '--disable-dependency-tracking' option to at least be able to build
  12914. the package (albeit without support for automatic dependency tracking).
  12915. See \`config.log' for more details" "$LINENO" 5; }
  12916. fi
  12917. { am_dirpart=; unset am_dirpart;}
  12918. { am_filepart=; unset am_filepart;}
  12919. { am_mf=; unset am_mf;}
  12920. { am_rc=; unset am_rc;}
  12921. rm -f conftest-deps.mk
  12922. }
  12923. ;;
  12924. "libtool":C)
  12925. # See if we are running on zsh, and set the options that allow our
  12926. # commands through without removal of \ escapes.
  12927. if test -n "${ZSH_VERSION+set}"; then
  12928. setopt NO_GLOB_SUBST
  12929. fi
  12930. cfgfile=${ofile}T
  12931. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12932. $RM "$cfgfile"
  12933. cat <<_LT_EOF >> "$cfgfile"
  12934. #! $SHELL
  12935. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12936. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12937. # Provide generalized library-building support services.
  12938. # Written by Gordon Matzigkeit, 1996
  12939. # Copyright (C) 2014 Free Software Foundation, Inc.
  12940. # This is free software; see the source for copying conditions. There is NO
  12941. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12942. # GNU Libtool is free software; you can redistribute it and/or modify
  12943. # it under the terms of the GNU General Public License as published by
  12944. # the Free Software Foundation; either version 2 of of the License, or
  12945. # (at your option) any later version.
  12946. #
  12947. # As a special exception to the GNU General Public License, if you
  12948. # distribute this file as part of a program or library that is built
  12949. # using GNU Libtool, you may include this file under the same
  12950. # distribution terms that you use for the rest of that program.
  12951. #
  12952. # GNU Libtool is distributed in the hope that it will be useful, but
  12953. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12954. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12955. # GNU General Public License for more details.
  12956. #
  12957. # You should have received a copy of the GNU General Public License
  12958. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12959. # The names of the tagged configurations supported by this script.
  12960. available_tags=''
  12961. # Configured defaults for sys_lib_dlsearch_path munging.
  12962. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12963. # ### BEGIN LIBTOOL CONFIG
  12964. # Which release of libtool.m4 was used?
  12965. macro_version=$macro_version
  12966. macro_revision=$macro_revision
  12967. # Assembler program.
  12968. AS=$lt_AS
  12969. # DLL creation program.
  12970. DLLTOOL=$lt_DLLTOOL
  12971. # Object dumper program.
  12972. OBJDUMP=$lt_OBJDUMP
  12973. # Whether or not to build shared libraries.
  12974. build_libtool_libs=$enable_shared
  12975. # Whether or not to build static libraries.
  12976. build_old_libs=$enable_static
  12977. # What type of objects to build.
  12978. pic_mode=$pic_mode
  12979. # Whether or not to optimize for fast installation.
  12980. fast_install=$enable_fast_install
  12981. # Shared archive member basename,for filename based shared library versioning on AIX.
  12982. shared_archive_member_spec=$shared_archive_member_spec
  12983. # Shell to use when invoking shell scripts.
  12984. SHELL=$lt_SHELL
  12985. # An echo program that protects backslashes.
  12986. ECHO=$lt_ECHO
  12987. # The PATH separator for the build system.
  12988. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12989. # The host system.
  12990. host_alias=$host_alias
  12991. host=$host
  12992. host_os=$host_os
  12993. # The build system.
  12994. build_alias=$build_alias
  12995. build=$build
  12996. build_os=$build_os
  12997. # A sed program that does not truncate output.
  12998. SED=$lt_SED
  12999. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13000. Xsed="\$SED -e 1s/^X//"
  13001. # A grep program that handles long lines.
  13002. GREP=$lt_GREP
  13003. # An ERE matcher.
  13004. EGREP=$lt_EGREP
  13005. # A literal string matcher.
  13006. FGREP=$lt_FGREP
  13007. # A BSD- or MS-compatible name lister.
  13008. NM=$lt_NM
  13009. # Whether we need soft or hard links.
  13010. LN_S=$lt_LN_S
  13011. # What is the maximum length of a command?
  13012. max_cmd_len=$max_cmd_len
  13013. # Object file suffix (normally "o").
  13014. objext=$ac_objext
  13015. # Executable file suffix (normally "").
  13016. exeext=$exeext
  13017. # whether the shell understands "unset".
  13018. lt_unset=$lt_unset
  13019. # turn spaces into newlines.
  13020. SP2NL=$lt_lt_SP2NL
  13021. # turn newlines into spaces.
  13022. NL2SP=$lt_lt_NL2SP
  13023. # convert \$build file names to \$host format.
  13024. to_host_file_cmd=$lt_cv_to_host_file_cmd
  13025. # convert \$build files to toolchain format.
  13026. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  13027. # Method to check whether dependent libraries are shared objects.
  13028. deplibs_check_method=$lt_deplibs_check_method
  13029. # Command to use when deplibs_check_method = "file_magic".
  13030. file_magic_cmd=$lt_file_magic_cmd
  13031. # How to find potential files when deplibs_check_method = "file_magic".
  13032. file_magic_glob=$lt_file_magic_glob
  13033. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13034. want_nocaseglob=$lt_want_nocaseglob
  13035. # Command to associate shared and link libraries.
  13036. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13037. # The archiver.
  13038. AR=$lt_AR
  13039. # Flags to create an archive.
  13040. AR_FLAGS=$lt_AR_FLAGS
  13041. # How to feed a file listing to the archiver.
  13042. archiver_list_spec=$lt_archiver_list_spec
  13043. # A symbol stripping program.
  13044. STRIP=$lt_STRIP
  13045. # Commands used to install an old-style archive.
  13046. RANLIB=$lt_RANLIB
  13047. old_postinstall_cmds=$lt_old_postinstall_cmds
  13048. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13049. # Whether to use a lock for old archive extraction.
  13050. lock_old_archive_extraction=$lock_old_archive_extraction
  13051. # A C compiler.
  13052. LTCC=$lt_CC
  13053. # LTCC compiler flags.
  13054. LTCFLAGS=$lt_CFLAGS
  13055. # Take the output of nm and produce a listing of raw symbols and C names.
  13056. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13057. # Transform the output of nm in a proper C declaration.
  13058. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13059. # Transform the output of nm into a list of symbols to manually relocate.
  13060. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  13061. # Transform the output of nm in a C name address pair.
  13062. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13063. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13064. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13065. # The name lister interface.
  13066. nm_interface=$lt_lt_cv_nm_interface
  13067. # Specify filename containing input files for \$NM.
  13068. nm_file_list_spec=$lt_nm_file_list_spec
  13069. # The root where to search for dependent libraries,and where our libraries should be installed.
  13070. lt_sysroot=$lt_sysroot
  13071. # Command to truncate a binary pipe.
  13072. lt_truncate_bin=$lt_lt_cv_truncate_bin
  13073. # The name of the directory that contains temporary libtool files.
  13074. objdir=$objdir
  13075. # Used to examine libraries when file_magic_cmd begins with "file".
  13076. MAGIC_CMD=$MAGIC_CMD
  13077. # Must we lock files when doing compilation?
  13078. need_locks=$lt_need_locks
  13079. # Manifest tool.
  13080. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13081. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13082. DSYMUTIL=$lt_DSYMUTIL
  13083. # Tool to change global to local symbols on Mac OS X.
  13084. NMEDIT=$lt_NMEDIT
  13085. # Tool to manipulate fat objects and archives on Mac OS X.
  13086. LIPO=$lt_LIPO
  13087. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13088. OTOOL=$lt_OTOOL
  13089. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13090. OTOOL64=$lt_OTOOL64
  13091. # Old archive suffix (normally "a").
  13092. libext=$libext
  13093. # Shared library suffix (normally ".so").
  13094. shrext_cmds=$lt_shrext_cmds
  13095. # The commands to extract the exported symbol list from a shared archive.
  13096. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13097. # Variables whose values should be saved in libtool wrapper scripts and
  13098. # restored at link time.
  13099. variables_saved_for_relink=$lt_variables_saved_for_relink
  13100. # Do we need the "lib" prefix for modules?
  13101. need_lib_prefix=$need_lib_prefix
  13102. # Do we need a version for libraries?
  13103. need_version=$need_version
  13104. # Library versioning type.
  13105. version_type=$version_type
  13106. # Shared library runtime path variable.
  13107. runpath_var=$runpath_var
  13108. # Shared library path variable.
  13109. shlibpath_var=$shlibpath_var
  13110. # Is shlibpath searched before the hard-coded library search path?
  13111. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13112. # Format of library name prefix.
  13113. libname_spec=$lt_libname_spec
  13114. # List of archive names. First name is the real one, the rest are links.
  13115. # The last name is the one that the linker finds with -lNAME
  13116. library_names_spec=$lt_library_names_spec
  13117. # The coded name of the library, if different from the real name.
  13118. soname_spec=$lt_soname_spec
  13119. # Permission mode override for installation of shared libraries.
  13120. install_override_mode=$lt_install_override_mode
  13121. # Command to use after installation of a shared archive.
  13122. postinstall_cmds=$lt_postinstall_cmds
  13123. # Command to use after uninstallation of a shared archive.
  13124. postuninstall_cmds=$lt_postuninstall_cmds
  13125. # Commands used to finish a libtool library installation in a directory.
  13126. finish_cmds=$lt_finish_cmds
  13127. # As "finish_cmds", except a single script fragment to be evaled but
  13128. # not shown.
  13129. finish_eval=$lt_finish_eval
  13130. # Whether we should hardcode library paths into libraries.
  13131. hardcode_into_libs=$hardcode_into_libs
  13132. # Compile-time system search path for libraries.
  13133. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13134. # Detected run-time system search path for libraries.
  13135. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  13136. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  13137. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  13138. # Whether dlopen is supported.
  13139. dlopen_support=$enable_dlopen
  13140. # Whether dlopen of programs is supported.
  13141. dlopen_self=$enable_dlopen_self
  13142. # Whether dlopen of statically linked programs is supported.
  13143. dlopen_self_static=$enable_dlopen_self_static
  13144. # Commands to strip libraries.
  13145. old_striplib=$lt_old_striplib
  13146. striplib=$lt_striplib
  13147. # The linker used to build libraries.
  13148. LD=$lt_LD
  13149. # How to create reloadable object files.
  13150. reload_flag=$lt_reload_flag
  13151. reload_cmds=$lt_reload_cmds
  13152. # Commands used to build an old-style archive.
  13153. old_archive_cmds=$lt_old_archive_cmds
  13154. # A language specific compiler.
  13155. CC=$lt_compiler
  13156. # Is the compiler the GNU compiler?
  13157. with_gcc=$GCC
  13158. # Compiler flag to turn off builtin functions.
  13159. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13160. # Additional compiler flags for building library objects.
  13161. pic_flag=$lt_lt_prog_compiler_pic
  13162. # How to pass a linker flag through the compiler.
  13163. wl=$lt_lt_prog_compiler_wl
  13164. # Compiler flag to prevent dynamic linking.
  13165. link_static_flag=$lt_lt_prog_compiler_static
  13166. # Does compiler simultaneously support -c and -o options?
  13167. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13168. # Whether or not to add -lc for building shared libraries.
  13169. build_libtool_need_lc=$archive_cmds_need_lc
  13170. # Whether or not to disallow shared libs when runtime libs are static.
  13171. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13172. # Compiler flag to allow reflexive dlopens.
  13173. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13174. # Compiler flag to generate shared objects directly from archives.
  13175. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13176. # Whether the compiler copes with passing no objects directly.
  13177. compiler_needs_object=$lt_compiler_needs_object
  13178. # Create an old-style archive from a shared archive.
  13179. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13180. # Create a temporary old-style archive to link instead of a shared archive.
  13181. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13182. # Commands used to build a shared archive.
  13183. archive_cmds=$lt_archive_cmds
  13184. archive_expsym_cmds=$lt_archive_expsym_cmds
  13185. # Commands used to build a loadable module if different from building
  13186. # a shared archive.
  13187. module_cmds=$lt_module_cmds
  13188. module_expsym_cmds=$lt_module_expsym_cmds
  13189. # Whether we are building with GNU ld or not.
  13190. with_gnu_ld=$lt_with_gnu_ld
  13191. # Flag that allows shared libraries with undefined symbols to be built.
  13192. allow_undefined_flag=$lt_allow_undefined_flag
  13193. # Flag that enforces no undefined symbols.
  13194. no_undefined_flag=$lt_no_undefined_flag
  13195. # Flag to hardcode \$libdir into a binary during linking.
  13196. # This must work even if \$libdir does not exist
  13197. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13198. # Whether we need a single "-rpath" flag with a separated argument.
  13199. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13200. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13201. # DIR into the resulting binary.
  13202. hardcode_direct=$hardcode_direct
  13203. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13204. # DIR into the resulting binary and the resulting library dependency is
  13205. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  13206. # library is relocated.
  13207. hardcode_direct_absolute=$hardcode_direct_absolute
  13208. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13209. # into the resulting binary.
  13210. hardcode_minus_L=$hardcode_minus_L
  13211. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13212. # into the resulting binary.
  13213. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13214. # Set to "yes" if building a shared library automatically hardcodes DIR
  13215. # into the library and all subsequent libraries and executables linked
  13216. # against it.
  13217. hardcode_automatic=$hardcode_automatic
  13218. # Set to yes if linker adds runtime paths of dependent libraries
  13219. # to runtime path list.
  13220. inherit_rpath=$inherit_rpath
  13221. # Whether libtool must link a program against all its dependency libraries.
  13222. link_all_deplibs=$link_all_deplibs
  13223. # Set to "yes" if exported symbols are required.
  13224. always_export_symbols=$always_export_symbols
  13225. # The commands to list exported symbols.
  13226. export_symbols_cmds=$lt_export_symbols_cmds
  13227. # Symbols that should not be listed in the preloaded symbols.
  13228. exclude_expsyms=$lt_exclude_expsyms
  13229. # Symbols that must always be exported.
  13230. include_expsyms=$lt_include_expsyms
  13231. # Commands necessary for linking programs (against libraries) with templates.
  13232. prelink_cmds=$lt_prelink_cmds
  13233. # Commands necessary for finishing linking programs.
  13234. postlink_cmds=$lt_postlink_cmds
  13235. # Specify filename containing input files.
  13236. file_list_spec=$lt_file_list_spec
  13237. # How to hardcode a shared library path into an executable.
  13238. hardcode_action=$hardcode_action
  13239. # ### END LIBTOOL CONFIG
  13240. _LT_EOF
  13241. cat <<'_LT_EOF' >> "$cfgfile"
  13242. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  13243. # func_munge_path_list VARIABLE PATH
  13244. # -----------------------------------
  13245. # VARIABLE is name of variable containing _space_ separated list of
  13246. # directories to be munged by the contents of PATH, which is string
  13247. # having a format:
  13248. # "DIR[:DIR]:"
  13249. # string "DIR[ DIR]" will be prepended to VARIABLE
  13250. # ":DIR[:DIR]"
  13251. # string "DIR[ DIR]" will be appended to VARIABLE
  13252. # "DIRP[:DIRP]::[DIRA:]DIRA"
  13253. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  13254. # "DIRA[ DIRA]" will be appended to VARIABLE
  13255. # "DIR[:DIR]"
  13256. # VARIABLE will be replaced by "DIR[ DIR]"
  13257. func_munge_path_list ()
  13258. {
  13259. case x$2 in
  13260. x)
  13261. ;;
  13262. *:)
  13263. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  13264. ;;
  13265. x:*)
  13266. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  13267. ;;
  13268. *::*)
  13269. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  13270. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  13271. ;;
  13272. *)
  13273. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  13274. ;;
  13275. esac
  13276. }
  13277. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  13278. func_cc_basename ()
  13279. {
  13280. for cc_temp in $*""; do
  13281. case $cc_temp in
  13282. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13283. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13284. \-*) ;;
  13285. *) break;;
  13286. esac
  13287. done
  13288. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13289. }
  13290. # ### END FUNCTIONS SHARED WITH CONFIGURE
  13291. _LT_EOF
  13292. case $host_os in
  13293. aix3*)
  13294. cat <<\_LT_EOF >> "$cfgfile"
  13295. # AIX sometimes has problems with the GCC collect2 program. For some
  13296. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13297. # vanish in a puff of smoke.
  13298. if test set != "${COLLECT_NAMES+set}"; then
  13299. COLLECT_NAMES=
  13300. export COLLECT_NAMES
  13301. fi
  13302. _LT_EOF
  13303. ;;
  13304. esac
  13305. ltmain=$ac_aux_dir/ltmain.sh
  13306. # We use sed instead of cat because bash on DJGPP gets confused if
  13307. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13308. # text mode, it properly converts lines to CR/LF. This bash problem
  13309. # is reportedly fixed, but why not run on old versions too?
  13310. sed '$q' "$ltmain" >> "$cfgfile" \
  13311. || (rm -f "$cfgfile"; exit 1)
  13312. mv -f "$cfgfile" "$ofile" ||
  13313. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13314. chmod +x "$ofile"
  13315. ;;
  13316. esac
  13317. done # for ac_tag
  13318. as_fn_exit 0
  13319. _ACEOF
  13320. ac_clean_files=$ac_clean_files_save
  13321. test $ac_write_fail = 0 ||
  13322. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13323. # configure is writing to config.log, and then calls config.status.
  13324. # config.status does its own redirection, appending to config.log.
  13325. # Unfortunately, on DOS this fails, as config.log is still kept open
  13326. # by configure, so config.status won't be able to write to it; its
  13327. # output is simply discarded. So we exec the FD to /dev/null,
  13328. # effectively closing config.log, so it can be properly (re)opened and
  13329. # appended to by config.status. When coming back to configure, we
  13330. # need to make the FD available again.
  13331. if test "$no_create" != yes; then
  13332. ac_cs_success=:
  13333. ac_config_status_args=
  13334. test "$silent" = yes &&
  13335. ac_config_status_args="$ac_config_status_args --quiet"
  13336. exec 5>/dev/null
  13337. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13338. exec 5>>config.log
  13339. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13340. # would make configure fail if this is the last instruction.
  13341. $ac_cs_success || as_fn_exit 1
  13342. fi
  13343. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13345. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13346. fi