configure 685 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for tap 1.01.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. # Check that we are running under the correct shell.
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. case X$ECHO in
  476. X*--fallback-echo)
  477. # Remove one level of quotation (which was required for Make).
  478. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  479. ;;
  480. esac
  481. echo=${ECHO-echo}
  482. if test "X$1" = X--no-reexec; then
  483. # Discard the --no-reexec flag, and continue.
  484. shift
  485. elif test "X$1" = X--fallback-echo; then
  486. # Avoid inline document here, it may be left over
  487. :
  488. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  489. # Yippee, $echo works!
  490. :
  491. else
  492. # Restart under the correct shell.
  493. exec $SHELL "$0" --no-reexec ${1+"$@"}
  494. fi
  495. if test "X$1" = X--fallback-echo; then
  496. # used as fallback echo
  497. shift
  498. cat <<EOF
  499. $*
  500. EOF
  501. exit 0
  502. fi
  503. # The HP-UX ksh and POSIX shell print the target directory to stdout
  504. # if CDPATH is set.
  505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  506. if test -z "$ECHO"; then
  507. if test "X${echo_test_string+set}" != Xset; then
  508. # find a string as large as possible, as long as the shell can cope with it
  509. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  510. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  511. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  512. echo_test_string=`eval $cmd` &&
  513. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  514. then
  515. break
  516. fi
  517. done
  518. fi
  519. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  520. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  521. test "X$echo_testing_string" = "X$echo_test_string"; then
  522. :
  523. else
  524. # The Solaris, AIX, and Digital Unix default echo programs unquote
  525. # backslashes. This makes it impossible to quote backslashes using
  526. # echo "$something" | sed 's/\\/\\\\/g'
  527. #
  528. # So, first we look for a working echo in the user's PATH.
  529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  530. for dir in $PATH /usr/ucb; do
  531. IFS="$lt_save_ifs"
  532. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  533. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. echo="$dir/echo"
  537. break
  538. fi
  539. done
  540. IFS="$lt_save_ifs"
  541. if test "X$echo" = Xecho; then
  542. # We didn't find a better echo, so look for alternatives.
  543. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. # This shell has a builtin print -r that does the trick.
  547. echo='print -r'
  548. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  549. test "X$CONFIG_SHELL" != X/bin/ksh; then
  550. # If we have ksh, try running configure again with it.
  551. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  552. export ORIGINAL_CONFIG_SHELL
  553. CONFIG_SHELL=/bin/ksh
  554. export CONFIG_SHELL
  555. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  556. else
  557. # Try using printf.
  558. echo='printf %s\n'
  559. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  560. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  561. test "X$echo_testing_string" = "X$echo_test_string"; then
  562. # Cool, printf works
  563. :
  564. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  565. test "X$echo_testing_string" = 'X\t' &&
  566. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  569. export CONFIG_SHELL
  570. SHELL="$CONFIG_SHELL"
  571. export SHELL
  572. echo="$CONFIG_SHELL $0 --fallback-echo"
  573. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. echo="$CONFIG_SHELL $0 --fallback-echo"
  578. else
  579. # maybe with a smaller string...
  580. prev=:
  581. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  582. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  583. then
  584. break
  585. fi
  586. prev="$cmd"
  587. done
  588. if test "$prev" != 'sed 50q "$0"'; then
  589. echo_test_string=`eval $prev`
  590. export echo_test_string
  591. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  592. else
  593. # Oops. We lost completely, so just stick with echo.
  594. echo=echo
  595. fi
  596. fi
  597. fi
  598. fi
  599. fi
  600. fi
  601. # Copy echo and quote the copy suitably for passing to libtool from
  602. # the Makefile, instead of quoting the original, which is used later.
  603. ECHO=$echo
  604. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  605. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  606. fi
  607. tagnames=${tagnames+${tagnames},}CXX
  608. tagnames=${tagnames+${tagnames},}F77
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME='tap'
  628. PACKAGE_TARNAME='tap'
  629. PACKAGE_VERSION='1.01'
  630. PACKAGE_STRING='tap 1.01'
  631. PACKAGE_BUGREPORT=''
  632. ac_unique_file="src/tap.c"
  633. # Factoring default headers for most tests.
  634. ac_includes_default="\
  635. #include <stdio.h>
  636. #ifdef HAVE_SYS_TYPES_H
  637. # include <sys/types.h>
  638. #endif
  639. #ifdef HAVE_SYS_STAT_H
  640. # include <sys/stat.h>
  641. #endif
  642. #ifdef STDC_HEADERS
  643. # include <stdlib.h>
  644. # include <stddef.h>
  645. #else
  646. # ifdef HAVE_STDLIB_H
  647. # include <stdlib.h>
  648. # endif
  649. #endif
  650. #ifdef HAVE_STRING_H
  651. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  652. # include <memory.h>
  653. # endif
  654. # include <string.h>
  655. #endif
  656. #ifdef HAVE_STRINGS_H
  657. # include <strings.h>
  658. #endif
  659. #ifdef HAVE_INTTYPES_H
  660. # include <inttypes.h>
  661. #endif
  662. #ifdef HAVE_STDINT_H
  663. # include <stdint.h>
  664. #endif
  665. #ifdef HAVE_UNISTD_H
  666. # include <unistd.h>
  667. #endif"
  668. ac_subst_vars='SHELL
  669. PATH_SEPARATOR
  670. PACKAGE_NAME
  671. PACKAGE_TARNAME
  672. PACKAGE_VERSION
  673. PACKAGE_STRING
  674. PACKAGE_BUGREPORT
  675. exec_prefix
  676. prefix
  677. program_transform_name
  678. bindir
  679. sbindir
  680. libexecdir
  681. datarootdir
  682. datadir
  683. sysconfdir
  684. sharedstatedir
  685. localstatedir
  686. includedir
  687. oldincludedir
  688. docdir
  689. infodir
  690. htmldir
  691. dvidir
  692. pdfdir
  693. psdir
  694. libdir
  695. localedir
  696. mandir
  697. DEFS
  698. ECHO_C
  699. ECHO_N
  700. ECHO_T
  701. LIBS
  702. build_alias
  703. host_alias
  704. target_alias
  705. INSTALL_PROGRAM
  706. INSTALL_SCRIPT
  707. INSTALL_DATA
  708. am__isrc
  709. CYGPATH_W
  710. PACKAGE
  711. VERSION
  712. ACLOCAL
  713. AUTOCONF
  714. AUTOMAKE
  715. AUTOHEADER
  716. MAKEINFO
  717. install_sh
  718. STRIP
  719. INSTALL_STRIP_PROGRAM
  720. mkdir_p
  721. AWK
  722. SET_MAKE
  723. am__leading_dot
  724. AMTAR
  725. am__tar
  726. am__untar
  727. CC
  728. CFLAGS
  729. LDFLAGS
  730. CPPFLAGS
  731. ac_ct_CC
  732. EXEEXT
  733. OBJEXT
  734. DEPDIR
  735. am__include
  736. am__quote
  737. AMDEP_TRUE
  738. AMDEP_FALSE
  739. AMDEPBACKSLASH
  740. CCDEPMODE
  741. am__fastdepCC_TRUE
  742. am__fastdepCC_FALSE
  743. build
  744. build_cpu
  745. build_vendor
  746. build_os
  747. host
  748. host_cpu
  749. host_vendor
  750. host_os
  751. SED
  752. GREP
  753. EGREP
  754. LN_S
  755. ECHO
  756. AR
  757. RANLIB
  758. CPP
  759. CXX
  760. CXXFLAGS
  761. ac_ct_CXX
  762. CXXDEPMODE
  763. am__fastdepCXX_TRUE
  764. am__fastdepCXX_FALSE
  765. CXXCPP
  766. F77
  767. FFLAGS
  768. ac_ct_F77
  769. LIBTOOL
  770. LIBOBJS
  771. LTLIBOBJS'
  772. ac_subst_files=''
  773. ac_precious_vars='build_alias
  774. host_alias
  775. target_alias
  776. CC
  777. CFLAGS
  778. LDFLAGS
  779. LIBS
  780. CPPFLAGS
  781. CPP
  782. CXX
  783. CXXFLAGS
  784. CCC
  785. CXXCPP
  786. F77
  787. FFLAGS'
  788. # Initialize some variables set by options.
  789. ac_init_help=
  790. ac_init_version=false
  791. # The variables have the same names as the options, with
  792. # dashes changed to underlines.
  793. cache_file=/dev/null
  794. exec_prefix=NONE
  795. no_create=
  796. no_recursion=
  797. prefix=NONE
  798. program_prefix=NONE
  799. program_suffix=NONE
  800. program_transform_name=s,x,x,
  801. silent=
  802. site=
  803. srcdir=
  804. verbose=
  805. x_includes=NONE
  806. x_libraries=NONE
  807. # Installation directory options.
  808. # These are left unexpanded so users can "make install exec_prefix=/foo"
  809. # and all the variables that are supposed to be based on exec_prefix
  810. # by default will actually change.
  811. # Use braces instead of parens because sh, perl, etc. also accept them.
  812. # (The list follows the same order as the GNU Coding Standards.)
  813. bindir='${exec_prefix}/bin'
  814. sbindir='${exec_prefix}/sbin'
  815. libexecdir='${exec_prefix}/libexec'
  816. datarootdir='${prefix}/share'
  817. datadir='${datarootdir}'
  818. sysconfdir='${prefix}/etc'
  819. sharedstatedir='${prefix}/com'
  820. localstatedir='${prefix}/var'
  821. includedir='${prefix}/include'
  822. oldincludedir='/usr/include'
  823. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  824. infodir='${datarootdir}/info'
  825. htmldir='${docdir}'
  826. dvidir='${docdir}'
  827. pdfdir='${docdir}'
  828. psdir='${docdir}'
  829. libdir='${exec_prefix}/lib'
  830. localedir='${datarootdir}/locale'
  831. mandir='${datarootdir}/man'
  832. ac_prev=
  833. ac_dashdash=
  834. for ac_option
  835. do
  836. # If the previous option needs an argument, assign it.
  837. if test -n "$ac_prev"; then
  838. eval $ac_prev=\$ac_option
  839. ac_prev=
  840. continue
  841. fi
  842. case $ac_option in
  843. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  844. *) ac_optarg=yes ;;
  845. esac
  846. # Accept the important Cygnus configure options, so we can diagnose typos.
  847. case $ac_dashdash$ac_option in
  848. --)
  849. ac_dashdash=yes ;;
  850. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  851. ac_prev=bindir ;;
  852. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  853. bindir=$ac_optarg ;;
  854. -build | --build | --buil | --bui | --bu)
  855. ac_prev=build_alias ;;
  856. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  857. build_alias=$ac_optarg ;;
  858. -cache-file | --cache-file | --cache-fil | --cache-fi \
  859. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  860. ac_prev=cache_file ;;
  861. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  862. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  863. cache_file=$ac_optarg ;;
  864. --config-cache | -C)
  865. cache_file=config.cache ;;
  866. -datadir | --datadir | --datadi | --datad)
  867. ac_prev=datadir ;;
  868. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  869. datadir=$ac_optarg ;;
  870. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  871. | --dataroo | --dataro | --datar)
  872. ac_prev=datarootdir ;;
  873. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  874. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  875. datarootdir=$ac_optarg ;;
  876. -disable-* | --disable-*)
  877. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  878. # Reject names that are not valid shell variable names.
  879. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  880. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  881. { (exit 1); exit 1; }; }
  882. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  883. eval enable_$ac_feature=no ;;
  884. -docdir | --docdir | --docdi | --doc | --do)
  885. ac_prev=docdir ;;
  886. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  887. docdir=$ac_optarg ;;
  888. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  889. ac_prev=dvidir ;;
  890. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  891. dvidir=$ac_optarg ;;
  892. -enable-* | --enable-*)
  893. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  894. # Reject names that are not valid shell variable names.
  895. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  896. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  897. { (exit 1); exit 1; }; }
  898. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  899. eval enable_$ac_feature=\$ac_optarg ;;
  900. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  901. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  902. | --exec | --exe | --ex)
  903. ac_prev=exec_prefix ;;
  904. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  905. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  906. | --exec=* | --exe=* | --ex=*)
  907. exec_prefix=$ac_optarg ;;
  908. -gas | --gas | --ga | --g)
  909. # Obsolete; use --with-gas.
  910. with_gas=yes ;;
  911. -help | --help | --hel | --he | -h)
  912. ac_init_help=long ;;
  913. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  914. ac_init_help=recursive ;;
  915. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  916. ac_init_help=short ;;
  917. -host | --host | --hos | --ho)
  918. ac_prev=host_alias ;;
  919. -host=* | --host=* | --hos=* | --ho=*)
  920. host_alias=$ac_optarg ;;
  921. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  922. ac_prev=htmldir ;;
  923. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  924. | --ht=*)
  925. htmldir=$ac_optarg ;;
  926. -includedir | --includedir | --includedi | --included | --include \
  927. | --includ | --inclu | --incl | --inc)
  928. ac_prev=includedir ;;
  929. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  930. | --includ=* | --inclu=* | --incl=* | --inc=*)
  931. includedir=$ac_optarg ;;
  932. -infodir | --infodir | --infodi | --infod | --info | --inf)
  933. ac_prev=infodir ;;
  934. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  935. infodir=$ac_optarg ;;
  936. -libdir | --libdir | --libdi | --libd)
  937. ac_prev=libdir ;;
  938. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  939. libdir=$ac_optarg ;;
  940. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  941. | --libexe | --libex | --libe)
  942. ac_prev=libexecdir ;;
  943. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  944. | --libexe=* | --libex=* | --libe=*)
  945. libexecdir=$ac_optarg ;;
  946. -localedir | --localedir | --localedi | --localed | --locale)
  947. ac_prev=localedir ;;
  948. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  949. localedir=$ac_optarg ;;
  950. -localstatedir | --localstatedir | --localstatedi | --localstated \
  951. | --localstate | --localstat | --localsta | --localst | --locals)
  952. ac_prev=localstatedir ;;
  953. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  954. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  955. localstatedir=$ac_optarg ;;
  956. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  957. ac_prev=mandir ;;
  958. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  959. mandir=$ac_optarg ;;
  960. -nfp | --nfp | --nf)
  961. # Obsolete; use --without-fp.
  962. with_fp=no ;;
  963. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  964. | --no-cr | --no-c | -n)
  965. no_create=yes ;;
  966. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  967. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  968. no_recursion=yes ;;
  969. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  970. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  971. | --oldin | --oldi | --old | --ol | --o)
  972. ac_prev=oldincludedir ;;
  973. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  974. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  975. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  976. oldincludedir=$ac_optarg ;;
  977. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  978. ac_prev=prefix ;;
  979. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  980. prefix=$ac_optarg ;;
  981. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  982. | --program-pre | --program-pr | --program-p)
  983. ac_prev=program_prefix ;;
  984. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  985. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  986. program_prefix=$ac_optarg ;;
  987. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  988. | --program-suf | --program-su | --program-s)
  989. ac_prev=program_suffix ;;
  990. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  991. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  992. program_suffix=$ac_optarg ;;
  993. -program-transform-name | --program-transform-name \
  994. | --program-transform-nam | --program-transform-na \
  995. | --program-transform-n | --program-transform- \
  996. | --program-transform | --program-transfor \
  997. | --program-transfo | --program-transf \
  998. | --program-trans | --program-tran \
  999. | --progr-tra | --program-tr | --program-t)
  1000. ac_prev=program_transform_name ;;
  1001. -program-transform-name=* | --program-transform-name=* \
  1002. | --program-transform-nam=* | --program-transform-na=* \
  1003. | --program-transform-n=* | --program-transform-=* \
  1004. | --program-transform=* | --program-transfor=* \
  1005. | --program-transfo=* | --program-transf=* \
  1006. | --program-trans=* | --program-tran=* \
  1007. | --progr-tra=* | --program-tr=* | --program-t=*)
  1008. program_transform_name=$ac_optarg ;;
  1009. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1010. ac_prev=pdfdir ;;
  1011. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1012. pdfdir=$ac_optarg ;;
  1013. -psdir | --psdir | --psdi | --psd | --ps)
  1014. ac_prev=psdir ;;
  1015. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1016. psdir=$ac_optarg ;;
  1017. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1018. | -silent | --silent | --silen | --sile | --sil)
  1019. silent=yes ;;
  1020. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1021. ac_prev=sbindir ;;
  1022. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1023. | --sbi=* | --sb=*)
  1024. sbindir=$ac_optarg ;;
  1025. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1026. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1027. | --sharedst | --shareds | --shared | --share | --shar \
  1028. | --sha | --sh)
  1029. ac_prev=sharedstatedir ;;
  1030. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1031. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1032. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1033. | --sha=* | --sh=*)
  1034. sharedstatedir=$ac_optarg ;;
  1035. -site | --site | --sit)
  1036. ac_prev=site ;;
  1037. -site=* | --site=* | --sit=*)
  1038. site=$ac_optarg ;;
  1039. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1040. ac_prev=srcdir ;;
  1041. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1042. srcdir=$ac_optarg ;;
  1043. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1044. | --syscon | --sysco | --sysc | --sys | --sy)
  1045. ac_prev=sysconfdir ;;
  1046. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1047. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1048. sysconfdir=$ac_optarg ;;
  1049. -target | --target | --targe | --targ | --tar | --ta | --t)
  1050. ac_prev=target_alias ;;
  1051. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1052. target_alias=$ac_optarg ;;
  1053. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1054. verbose=yes ;;
  1055. -version | --version | --versio | --versi | --vers | -V)
  1056. ac_init_version=: ;;
  1057. -with-* | --with-*)
  1058. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1059. # Reject names that are not valid shell variable names.
  1060. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1061. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1062. { (exit 1); exit 1; }; }
  1063. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1064. eval with_$ac_package=\$ac_optarg ;;
  1065. -without-* | --without-*)
  1066. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1069. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1070. { (exit 1); exit 1; }; }
  1071. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1072. eval with_$ac_package=no ;;
  1073. --x)
  1074. # Obsolete; use --with-x.
  1075. with_x=yes ;;
  1076. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1077. | --x-incl | --x-inc | --x-in | --x-i)
  1078. ac_prev=x_includes ;;
  1079. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1080. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1081. x_includes=$ac_optarg ;;
  1082. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1083. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1084. ac_prev=x_libraries ;;
  1085. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1086. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1087. x_libraries=$ac_optarg ;;
  1088. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1089. Try \`$0 --help' for more information." >&2
  1090. { (exit 1); exit 1; }; }
  1091. ;;
  1092. *=*)
  1093. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1094. # Reject names that are not valid shell variable names.
  1095. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1096. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1097. { (exit 1); exit 1; }; }
  1098. eval $ac_envvar=\$ac_optarg
  1099. export $ac_envvar ;;
  1100. *)
  1101. # FIXME: should be removed in autoconf 3.0.
  1102. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1103. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1104. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1105. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1106. ;;
  1107. esac
  1108. done
  1109. if test -n "$ac_prev"; then
  1110. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1111. { echo "$as_me: error: missing argument to $ac_option" >&2
  1112. { (exit 1); exit 1; }; }
  1113. fi
  1114. # Be sure to have absolute directory names.
  1115. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1116. datadir sysconfdir sharedstatedir localstatedir includedir \
  1117. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1118. libdir localedir mandir
  1119. do
  1120. eval ac_val=\$$ac_var
  1121. case $ac_val in
  1122. [\\/$]* | ?:[\\/]* ) continue;;
  1123. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1124. esac
  1125. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1126. { (exit 1); exit 1; }; }
  1127. done
  1128. # There might be people who depend on the old broken behavior: `$host'
  1129. # used to hold the argument of --host etc.
  1130. # FIXME: To remove some day.
  1131. build=$build_alias
  1132. host=$host_alias
  1133. target=$target_alias
  1134. # FIXME: To remove some day.
  1135. if test "x$host_alias" != x; then
  1136. if test "x$build_alias" = x; then
  1137. cross_compiling=maybe
  1138. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1139. If a cross compiler is detected then cross compile mode will be used." >&2
  1140. elif test "x$build_alias" != "x$host_alias"; then
  1141. cross_compiling=yes
  1142. fi
  1143. fi
  1144. ac_tool_prefix=
  1145. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1146. test "$silent" = yes && exec 6>/dev/null
  1147. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1148. ac_ls_di=`ls -di .` &&
  1149. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1150. { echo "$as_me: error: Working directory cannot be determined" >&2
  1151. { (exit 1); exit 1; }; }
  1152. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1153. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1154. { (exit 1); exit 1; }; }
  1155. # Find the source files, if location was not specified.
  1156. if test -z "$srcdir"; then
  1157. ac_srcdir_defaulted=yes
  1158. # Try the directory containing this script, then the parent directory.
  1159. ac_confdir=`$as_dirname -- "$0" ||
  1160. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1161. X"$0" : 'X\(//\)[^/]' \| \
  1162. X"$0" : 'X\(//\)$' \| \
  1163. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1164. echo X"$0" |
  1165. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)[^/].*/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\/\)$/{
  1174. s//\1/
  1175. q
  1176. }
  1177. /^X\(\/\).*/{
  1178. s//\1/
  1179. q
  1180. }
  1181. s/.*/./; q'`
  1182. srcdir=$ac_confdir
  1183. if test ! -r "$srcdir/$ac_unique_file"; then
  1184. srcdir=..
  1185. fi
  1186. else
  1187. ac_srcdir_defaulted=no
  1188. fi
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1191. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1192. { (exit 1); exit 1; }; }
  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" || { echo "$as_me: error: $ac_msg" >&2
  1197. { (exit 1); exit 1; }; }
  1198. pwd)`
  1199. # When building in place, set srcdir=.
  1200. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1201. srcdir=.
  1202. fi
  1203. # Remove unnecessary trailing slashes from srcdir.
  1204. # Double slashes in file names in object file debugging info
  1205. # mess up M-x gdb in Emacs.
  1206. case $srcdir in
  1207. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1208. esac
  1209. for ac_var in $ac_precious_vars; do
  1210. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1211. eval ac_env_${ac_var}_value=\$${ac_var}
  1212. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1213. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1214. done
  1215. #
  1216. # Report the --help message.
  1217. #
  1218. if test "$ac_init_help" = "long"; then
  1219. # Omit some internal or obsolete options to make the list less imposing.
  1220. # This message is too long to be a string in the A/UX 3.1 sh.
  1221. cat <<_ACEOF
  1222. \`configure' configures tap 1.01 to adapt to many kinds of systems.
  1223. Usage: $0 [OPTION]... [VAR=VALUE]...
  1224. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1225. VAR=VALUE. See below for descriptions of some of the useful variables.
  1226. Defaults for the options are specified in brackets.
  1227. Configuration:
  1228. -h, --help display this help and exit
  1229. --help=short display options specific to this package
  1230. --help=recursive display the short help of all the included packages
  1231. -V, --version display version information and exit
  1232. -q, --quiet, --silent do not print \`checking...' messages
  1233. --cache-file=FILE cache test results in FILE [disabled]
  1234. -C, --config-cache alias for \`--cache-file=config.cache'
  1235. -n, --no-create do not create output files
  1236. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1237. Installation directories:
  1238. --prefix=PREFIX install architecture-independent files in PREFIX
  1239. [$ac_default_prefix]
  1240. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1241. [PREFIX]
  1242. By default, \`make install' will install all the files in
  1243. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1244. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1245. for instance \`--prefix=\$HOME'.
  1246. For better control, use the options below.
  1247. Fine tuning of the installation directories:
  1248. --bindir=DIR user executables [EPREFIX/bin]
  1249. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1250. --libexecdir=DIR program executables [EPREFIX/libexec]
  1251. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1252. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1253. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  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/tap]
  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 tap 1.01:";;
  1281. esac
  1282. cat <<\_ACEOF
  1283. Optional Features:
  1284. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1285. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1286. --disable-dependency-tracking speeds up one-time build
  1287. --enable-dependency-tracking do not reject slow dependency extractors
  1288. --enable-shared[=PKGS] build shared libraries [default=yes]
  1289. --enable-static[=PKGS] build static libraries [default=yes]
  1290. --enable-fast-install[=PKGS]
  1291. optimize for fast installation [default=yes]
  1292. --disable-libtool-lock avoid locking (might break parallel builds)
  1293. Optional Packages:
  1294. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1295. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1296. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1297. --with-pic try to use only PIC/non-PIC objects [default=use
  1298. both]
  1299. --with-tags[=TAGS] include additional configurations [automatic]
  1300. Some influential environment variables:
  1301. CC C compiler command
  1302. CFLAGS C compiler flags
  1303. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1304. nonstandard directory <lib dir>
  1305. LIBS libraries to pass to the linker, e.g. -l<library>
  1306. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1307. you have headers in a nonstandard directory <include dir>
  1308. CPP C preprocessor
  1309. CXX C++ compiler command
  1310. CXXFLAGS C++ compiler flags
  1311. CXXCPP C++ preprocessor
  1312. F77 Fortran 77 compiler command
  1313. FFLAGS Fortran 77 compiler flags
  1314. Use these variables to override the choices made by `configure' or to help
  1315. it to find libraries and programs with nonstandard names/locations.
  1316. _ACEOF
  1317. ac_status=$?
  1318. fi
  1319. if test "$ac_init_help" = "recursive"; then
  1320. # If there are subdirs, report their specific --help.
  1321. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1322. test -d "$ac_dir" || continue
  1323. ac_builddir=.
  1324. case "$ac_dir" in
  1325. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1326. *)
  1327. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1328. # A ".." for each directory in $ac_dir_suffix.
  1329. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1330. case $ac_top_builddir_sub in
  1331. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1332. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1333. esac ;;
  1334. esac
  1335. ac_abs_top_builddir=$ac_pwd
  1336. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1337. # for backward compatibility:
  1338. ac_top_builddir=$ac_top_build_prefix
  1339. case $srcdir in
  1340. .) # We are building in place.
  1341. ac_srcdir=.
  1342. ac_top_srcdir=$ac_top_builddir_sub
  1343. ac_abs_top_srcdir=$ac_pwd ;;
  1344. [\\/]* | ?:[\\/]* ) # Absolute name.
  1345. ac_srcdir=$srcdir$ac_dir_suffix;
  1346. ac_top_srcdir=$srcdir
  1347. ac_abs_top_srcdir=$srcdir ;;
  1348. *) # Relative name.
  1349. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1350. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1351. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1352. esac
  1353. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1354. cd "$ac_dir" || { ac_status=$?; continue; }
  1355. # Check for guested configure.
  1356. if test -f "$ac_srcdir/configure.gnu"; then
  1357. echo &&
  1358. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1359. elif test -f "$ac_srcdir/configure"; then
  1360. echo &&
  1361. $SHELL "$ac_srcdir/configure" --help=recursive
  1362. else
  1363. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1364. fi || ac_status=$?
  1365. cd "$ac_pwd" || { ac_status=$?; break; }
  1366. done
  1367. fi
  1368. test -n "$ac_init_help" && exit $ac_status
  1369. if $ac_init_version; then
  1370. cat <<\_ACEOF
  1371. tap configure 1.01
  1372. generated by GNU Autoconf 2.61
  1373. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1374. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1375. This configure script is free software; the Free Software Foundation
  1376. gives unlimited permission to copy, distribute and modify it.
  1377. _ACEOF
  1378. exit
  1379. fi
  1380. cat >config.log <<_ACEOF
  1381. This file contains any messages produced by compilers while
  1382. running configure, to aid debugging if configure makes a mistake.
  1383. It was created by tap $as_me 1.01, which was
  1384. generated by GNU Autoconf 2.61. Invocation command line was
  1385. $ $0 $@
  1386. _ACEOF
  1387. exec 5>>config.log
  1388. {
  1389. cat <<_ASUNAME
  1390. ## --------- ##
  1391. ## Platform. ##
  1392. ## --------- ##
  1393. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1394. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1395. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1396. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1397. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1398. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1399. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1400. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1401. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1402. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1403. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1404. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1405. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1406. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1407. _ASUNAME
  1408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1409. for as_dir in $PATH
  1410. do
  1411. IFS=$as_save_IFS
  1412. test -z "$as_dir" && as_dir=.
  1413. echo "PATH: $as_dir"
  1414. done
  1415. IFS=$as_save_IFS
  1416. } >&5
  1417. cat >&5 <<_ACEOF
  1418. ## ----------- ##
  1419. ## Core tests. ##
  1420. ## ----------- ##
  1421. _ACEOF
  1422. # Keep a trace of the command line.
  1423. # Strip out --no-create and --no-recursion so they do not pile up.
  1424. # Strip out --silent because we don't want to record it for future runs.
  1425. # Also quote any args containing shell meta-characters.
  1426. # Make two passes to allow for proper duplicate-argument suppression.
  1427. ac_configure_args=
  1428. ac_configure_args0=
  1429. ac_configure_args1=
  1430. ac_must_keep_next=false
  1431. for ac_pass in 1 2
  1432. do
  1433. for ac_arg
  1434. do
  1435. case $ac_arg in
  1436. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1437. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1438. | -silent | --silent | --silen | --sile | --sil)
  1439. continue ;;
  1440. *\'*)
  1441. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1442. esac
  1443. case $ac_pass in
  1444. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1445. 2)
  1446. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1447. if test $ac_must_keep_next = true; then
  1448. ac_must_keep_next=false # Got value, back to normal.
  1449. else
  1450. case $ac_arg in
  1451. *=* | --config-cache | -C | -disable-* | --disable-* \
  1452. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1453. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1454. | -with-* | --with-* | -without-* | --without-* | --x)
  1455. case "$ac_configure_args0 " in
  1456. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1457. esac
  1458. ;;
  1459. -* ) ac_must_keep_next=true ;;
  1460. esac
  1461. fi
  1462. ac_configure_args="$ac_configure_args '$ac_arg'"
  1463. ;;
  1464. esac
  1465. done
  1466. done
  1467. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1468. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1469. # When interrupted or exit'd, cleanup temporary files, and complete
  1470. # config.log. We remove comments because anyway the quotes in there
  1471. # would cause problems or look ugly.
  1472. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1473. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1474. trap 'exit_status=$?
  1475. # Save into config.log some information that might help in debugging.
  1476. {
  1477. echo
  1478. cat <<\_ASBOX
  1479. ## ---------------- ##
  1480. ## Cache variables. ##
  1481. ## ---------------- ##
  1482. _ASBOX
  1483. echo
  1484. # The following way of writing the cache mishandles newlines in values,
  1485. (
  1486. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1487. eval ac_val=\$$ac_var
  1488. case $ac_val in #(
  1489. *${as_nl}*)
  1490. case $ac_var in #(
  1491. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1492. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1493. esac
  1494. case $ac_var in #(
  1495. _ | IFS | as_nl) ;; #(
  1496. *) $as_unset $ac_var ;;
  1497. esac ;;
  1498. esac
  1499. done
  1500. (set) 2>&1 |
  1501. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1502. *${as_nl}ac_space=\ *)
  1503. sed -n \
  1504. "s/'\''/'\''\\\\'\'''\''/g;
  1505. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1506. ;; #(
  1507. *)
  1508. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1509. ;;
  1510. esac |
  1511. sort
  1512. )
  1513. echo
  1514. cat <<\_ASBOX
  1515. ## ----------------- ##
  1516. ## Output variables. ##
  1517. ## ----------------- ##
  1518. _ASBOX
  1519. echo
  1520. for ac_var in $ac_subst_vars
  1521. do
  1522. eval ac_val=\$$ac_var
  1523. case $ac_val in
  1524. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1525. esac
  1526. echo "$ac_var='\''$ac_val'\''"
  1527. done | sort
  1528. echo
  1529. if test -n "$ac_subst_files"; then
  1530. cat <<\_ASBOX
  1531. ## ------------------- ##
  1532. ## File substitutions. ##
  1533. ## ------------------- ##
  1534. _ASBOX
  1535. echo
  1536. for ac_var in $ac_subst_files
  1537. do
  1538. eval ac_val=\$$ac_var
  1539. case $ac_val in
  1540. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1541. esac
  1542. echo "$ac_var='\''$ac_val'\''"
  1543. done | sort
  1544. echo
  1545. fi
  1546. if test -s confdefs.h; then
  1547. cat <<\_ASBOX
  1548. ## ----------- ##
  1549. ## confdefs.h. ##
  1550. ## ----------- ##
  1551. _ASBOX
  1552. echo
  1553. cat confdefs.h
  1554. echo
  1555. fi
  1556. test "$ac_signal" != 0 &&
  1557. echo "$as_me: caught signal $ac_signal"
  1558. echo "$as_me: exit $exit_status"
  1559. } >&5
  1560. rm -f core *.core core.conftest.* &&
  1561. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1562. exit $exit_status
  1563. ' 0
  1564. for ac_signal in 1 2 13 15; do
  1565. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1566. done
  1567. ac_signal=0
  1568. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1569. rm -f -r conftest* confdefs.h
  1570. # Predefined preprocessor variables.
  1571. cat >>confdefs.h <<_ACEOF
  1572. #define PACKAGE_NAME "$PACKAGE_NAME"
  1573. _ACEOF
  1574. cat >>confdefs.h <<_ACEOF
  1575. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1576. _ACEOF
  1577. cat >>confdefs.h <<_ACEOF
  1578. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1579. _ACEOF
  1580. cat >>confdefs.h <<_ACEOF
  1581. #define PACKAGE_STRING "$PACKAGE_STRING"
  1582. _ACEOF
  1583. cat >>confdefs.h <<_ACEOF
  1584. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1585. _ACEOF
  1586. # Let the site file select an alternate cache file if it wants to.
  1587. # Prefer explicitly selected file to automatically selected ones.
  1588. if test -n "$CONFIG_SITE"; then
  1589. set x "$CONFIG_SITE"
  1590. elif test "x$prefix" != xNONE; then
  1591. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1592. else
  1593. set x "$ac_default_prefix/share/config.site" \
  1594. "$ac_default_prefix/etc/config.site"
  1595. fi
  1596. shift
  1597. for ac_site_file
  1598. do
  1599. if test -r "$ac_site_file"; then
  1600. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1601. echo "$as_me: loading site script $ac_site_file" >&6;}
  1602. sed 's/^/| /' "$ac_site_file" >&5
  1603. . "$ac_site_file"
  1604. fi
  1605. done
  1606. if test -r "$cache_file"; then
  1607. # Some versions of bash will fail to source /dev/null (special
  1608. # files actually), so we avoid doing that.
  1609. if test -f "$cache_file"; then
  1610. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1611. echo "$as_me: loading cache $cache_file" >&6;}
  1612. case $cache_file in
  1613. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1614. *) . "./$cache_file";;
  1615. esac
  1616. fi
  1617. else
  1618. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1619. echo "$as_me: creating cache $cache_file" >&6;}
  1620. >$cache_file
  1621. fi
  1622. # Check that the precious variables saved in the cache have kept the same
  1623. # value.
  1624. ac_cache_corrupted=false
  1625. for ac_var in $ac_precious_vars; do
  1626. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1627. eval ac_new_set=\$ac_env_${ac_var}_set
  1628. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1629. eval ac_new_val=\$ac_env_${ac_var}_value
  1630. case $ac_old_set,$ac_new_set in
  1631. set,)
  1632. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1633. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1634. ac_cache_corrupted=: ;;
  1635. ,set)
  1636. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1637. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1638. ac_cache_corrupted=: ;;
  1639. ,);;
  1640. *)
  1641. if test "x$ac_old_val" != "x$ac_new_val"; then
  1642. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1643. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1644. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1645. echo "$as_me: former value: $ac_old_val" >&2;}
  1646. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1647. echo "$as_me: current value: $ac_new_val" >&2;}
  1648. ac_cache_corrupted=:
  1649. fi;;
  1650. esac
  1651. # Pass precious variables to config.status.
  1652. if test "$ac_new_set" = set; then
  1653. case $ac_new_val in
  1654. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1655. *) ac_arg=$ac_var=$ac_new_val ;;
  1656. esac
  1657. case " $ac_configure_args " in
  1658. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1659. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1660. esac
  1661. fi
  1662. done
  1663. if $ac_cache_corrupted; then
  1664. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1665. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1666. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1667. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1668. { (exit 1); exit 1; }; }
  1669. fi
  1670. ac_ext=c
  1671. ac_cpp='$CPP $CPPFLAGS'
  1672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1675. am__api_version='1.10'
  1676. ac_aux_dir=
  1677. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1678. if test -f "$ac_dir/install-sh"; then
  1679. ac_aux_dir=$ac_dir
  1680. ac_install_sh="$ac_aux_dir/install-sh -c"
  1681. break
  1682. elif test -f "$ac_dir/install.sh"; then
  1683. ac_aux_dir=$ac_dir
  1684. ac_install_sh="$ac_aux_dir/install.sh -c"
  1685. break
  1686. elif test -f "$ac_dir/shtool"; then
  1687. ac_aux_dir=$ac_dir
  1688. ac_install_sh="$ac_aux_dir/shtool install -c"
  1689. break
  1690. fi
  1691. done
  1692. if test -z "$ac_aux_dir"; then
  1693. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1694. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1695. { (exit 1); exit 1; }; }
  1696. fi
  1697. # These three variables are undocumented and unsupported,
  1698. # and are intended to be withdrawn in a future Autoconf release.
  1699. # They can cause serious problems if a builder's source tree is in a directory
  1700. # whose full name contains unusual characters.
  1701. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1702. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1703. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1704. # Find a good install program. We prefer a C program (faster),
  1705. # so one script is as good as another. But avoid the broken or
  1706. # incompatible versions:
  1707. # SysV /etc/install, /usr/sbin/install
  1708. # SunOS /usr/etc/install
  1709. # IRIX /sbin/install
  1710. # AIX /bin/install
  1711. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1712. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1713. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1714. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1715. # OS/2's system install, which has a completely different semantic
  1716. # ./install, which can be erroneously created by make from ./install.sh.
  1717. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1718. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1719. if test -z "$INSTALL"; then
  1720. if test "${ac_cv_path_install+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1724. for as_dir in $PATH
  1725. do
  1726. IFS=$as_save_IFS
  1727. test -z "$as_dir" && as_dir=.
  1728. # Account for people who put trailing slashes in PATH elements.
  1729. case $as_dir/ in
  1730. ./ | .// | /cC/* | \
  1731. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1732. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1733. /usr/ucb/* ) ;;
  1734. *)
  1735. # OSF1 and SCO ODT 3.0 have their own names for install.
  1736. # Don't use installbsd from OSF since it installs stuff as root
  1737. # by default.
  1738. for ac_prog in ginstall scoinst install; do
  1739. for ac_exec_ext in '' $ac_executable_extensions; do
  1740. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1741. if test $ac_prog = install &&
  1742. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1743. # AIX install. It has an incompatible calling convention.
  1744. :
  1745. elif test $ac_prog = install &&
  1746. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1747. # program-specific install script used by HP pwplus--don't use.
  1748. :
  1749. else
  1750. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1751. break 3
  1752. fi
  1753. fi
  1754. done
  1755. done
  1756. ;;
  1757. esac
  1758. done
  1759. IFS=$as_save_IFS
  1760. fi
  1761. if test "${ac_cv_path_install+set}" = set; then
  1762. INSTALL=$ac_cv_path_install
  1763. else
  1764. # As a last resort, use the slow shell script. Don't cache a
  1765. # value for INSTALL within a source directory, because that will
  1766. # break other packages using the cache if that directory is
  1767. # removed, or if the value is a relative name.
  1768. INSTALL=$ac_install_sh
  1769. fi
  1770. fi
  1771. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1772. echo "${ECHO_T}$INSTALL" >&6; }
  1773. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1774. # It thinks the first close brace ends the variable substitution.
  1775. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1776. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1777. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1778. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1779. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1780. # Just in case
  1781. sleep 1
  1782. echo timestamp > conftest.file
  1783. # Do `set' in a subshell so we don't clobber the current shell's
  1784. # arguments. Must try -L first in case configure is actually a
  1785. # symlink; some systems play weird games with the mod time of symlinks
  1786. # (eg FreeBSD returns the mod time of the symlink's containing
  1787. # directory).
  1788. if (
  1789. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1790. if test "$*" = "X"; then
  1791. # -L didn't work.
  1792. set X `ls -t $srcdir/configure conftest.file`
  1793. fi
  1794. rm -f conftest.file
  1795. if test "$*" != "X $srcdir/configure conftest.file" \
  1796. && test "$*" != "X conftest.file $srcdir/configure"; then
  1797. # If neither matched, then we have a broken ls. This can happen
  1798. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1799. # broken ls alias from the environment. This has actually
  1800. # happened. Such a system could not be considered "sane".
  1801. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1802. alias in your environment" >&5
  1803. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1804. alias in your environment" >&2;}
  1805. { (exit 1); exit 1; }; }
  1806. fi
  1807. test "$2" = conftest.file
  1808. )
  1809. then
  1810. # Ok.
  1811. :
  1812. else
  1813. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1814. Check your system clock" >&5
  1815. echo "$as_me: error: newly created file is older than distributed files!
  1816. Check your system clock" >&2;}
  1817. { (exit 1); exit 1; }; }
  1818. fi
  1819. { echo "$as_me:$LINENO: result: yes" >&5
  1820. echo "${ECHO_T}yes" >&6; }
  1821. test "$program_prefix" != NONE &&
  1822. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1823. # Use a double $ so make ignores it.
  1824. test "$program_suffix" != NONE &&
  1825. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1826. # Double any \ or $. echo might interpret backslashes.
  1827. # By default was `s,x,x', remove it if useless.
  1828. cat <<\_ACEOF >conftest.sed
  1829. s/[\\$]/&&/g;s/;s,x,x,$//
  1830. _ACEOF
  1831. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1832. rm -f conftest.sed
  1833. # expand $ac_aux_dir to an absolute path
  1834. am_aux_dir=`cd $ac_aux_dir && pwd`
  1835. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1836. # Use eval to expand $SHELL
  1837. if eval "$MISSING --run true"; then
  1838. am_missing_run="$MISSING --run "
  1839. else
  1840. am_missing_run=
  1841. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1842. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1843. fi
  1844. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1845. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1846. if test -z "$MKDIR_P"; then
  1847. if test "${ac_cv_path_mkdir+set}" = set; then
  1848. echo $ECHO_N "(cached) $ECHO_C" >&6
  1849. else
  1850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1851. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1852. do
  1853. IFS=$as_save_IFS
  1854. test -z "$as_dir" && as_dir=.
  1855. for ac_prog in mkdir gmkdir; do
  1856. for ac_exec_ext in '' $ac_executable_extensions; do
  1857. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1858. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1859. 'mkdir (GNU coreutils) '* | \
  1860. 'mkdir (coreutils) '* | \
  1861. 'mkdir (fileutils) '4.1*)
  1862. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1863. break 3;;
  1864. esac
  1865. done
  1866. done
  1867. done
  1868. IFS=$as_save_IFS
  1869. fi
  1870. if test "${ac_cv_path_mkdir+set}" = set; then
  1871. MKDIR_P="$ac_cv_path_mkdir -p"
  1872. else
  1873. # As a last resort, use the slow shell script. Don't cache a
  1874. # value for MKDIR_P within a source directory, because that will
  1875. # break other packages using the cache if that directory is
  1876. # removed, or if the value is a relative name.
  1877. test -d ./--version && rmdir ./--version
  1878. MKDIR_P="$ac_install_sh -d"
  1879. fi
  1880. fi
  1881. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1882. echo "${ECHO_T}$MKDIR_P" >&6; }
  1883. mkdir_p="$MKDIR_P"
  1884. case $mkdir_p in
  1885. [\\/$]* | ?:[\\/]*) ;;
  1886. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1887. esac
  1888. for ac_prog in gawk mawk nawk awk
  1889. do
  1890. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1891. set dummy $ac_prog; ac_word=$2
  1892. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1894. if test "${ac_cv_prog_AWK+set}" = set; then
  1895. echo $ECHO_N "(cached) $ECHO_C" >&6
  1896. else
  1897. if test -n "$AWK"; then
  1898. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1899. else
  1900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1901. for as_dir in $PATH
  1902. do
  1903. IFS=$as_save_IFS
  1904. test -z "$as_dir" && as_dir=.
  1905. for ac_exec_ext in '' $ac_executable_extensions; do
  1906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1907. ac_cv_prog_AWK="$ac_prog"
  1908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1909. break 2
  1910. fi
  1911. done
  1912. done
  1913. IFS=$as_save_IFS
  1914. fi
  1915. fi
  1916. AWK=$ac_cv_prog_AWK
  1917. if test -n "$AWK"; then
  1918. { echo "$as_me:$LINENO: result: $AWK" >&5
  1919. echo "${ECHO_T}$AWK" >&6; }
  1920. else
  1921. { echo "$as_me:$LINENO: result: no" >&5
  1922. echo "${ECHO_T}no" >&6; }
  1923. fi
  1924. test -n "$AWK" && break
  1925. done
  1926. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1927. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1928. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1929. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1930. echo $ECHO_N "(cached) $ECHO_C" >&6
  1931. else
  1932. cat >conftest.make <<\_ACEOF
  1933. SHELL = /bin/sh
  1934. all:
  1935. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1936. _ACEOF
  1937. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1938. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1939. *@@@%%%=?*=@@@%%%*)
  1940. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1941. *)
  1942. eval ac_cv_prog_make_${ac_make}_set=no;;
  1943. esac
  1944. rm -f conftest.make
  1945. fi
  1946. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1947. { echo "$as_me:$LINENO: result: yes" >&5
  1948. echo "${ECHO_T}yes" >&6; }
  1949. SET_MAKE=
  1950. else
  1951. { echo "$as_me:$LINENO: result: no" >&5
  1952. echo "${ECHO_T}no" >&6; }
  1953. SET_MAKE="MAKE=${MAKE-make}"
  1954. fi
  1955. rm -rf .tst 2>/dev/null
  1956. mkdir .tst 2>/dev/null
  1957. if test -d .tst; then
  1958. am__leading_dot=.
  1959. else
  1960. am__leading_dot=_
  1961. fi
  1962. rmdir .tst 2>/dev/null
  1963. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1964. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1965. # is not polluted with repeated "-I."
  1966. am__isrc=' -I$(srcdir)'
  1967. # test to see if srcdir already configured
  1968. if test -f $srcdir/config.status; then
  1969. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1970. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1971. { (exit 1); exit 1; }; }
  1972. fi
  1973. fi
  1974. # test whether we have cygpath
  1975. if test -z "$CYGPATH_W"; then
  1976. if (cygpath --version) >/dev/null 2>/dev/null; then
  1977. CYGPATH_W='cygpath -w'
  1978. else
  1979. CYGPATH_W=echo
  1980. fi
  1981. fi
  1982. # Define the identity of the package.
  1983. PACKAGE='tap'
  1984. VERSION='1.01'
  1985. cat >>confdefs.h <<_ACEOF
  1986. #define PACKAGE "$PACKAGE"
  1987. _ACEOF
  1988. cat >>confdefs.h <<_ACEOF
  1989. #define VERSION "$VERSION"
  1990. _ACEOF
  1991. # Some tools Automake needs.
  1992. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1993. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1994. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1995. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1996. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1997. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  1998. # Installed binaries are usually stripped using `strip' when the user
  1999. # run `make install-strip'. However `strip' might not be the right
  2000. # tool to use in cross-compilation environments, therefore Automake
  2001. # will honor the `STRIP' environment variable to overrule this program.
  2002. if test "$cross_compiling" != no; then
  2003. if test -n "$ac_tool_prefix"; then
  2004. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2005. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2006. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2007. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2008. if test "${ac_cv_prog_STRIP+set}" = set; then
  2009. echo $ECHO_N "(cached) $ECHO_C" >&6
  2010. else
  2011. if test -n "$STRIP"; then
  2012. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2013. else
  2014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2015. for as_dir in $PATH
  2016. do
  2017. IFS=$as_save_IFS
  2018. test -z "$as_dir" && as_dir=.
  2019. for ac_exec_ext in '' $ac_executable_extensions; do
  2020. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2021. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2022. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2023. break 2
  2024. fi
  2025. done
  2026. done
  2027. IFS=$as_save_IFS
  2028. fi
  2029. fi
  2030. STRIP=$ac_cv_prog_STRIP
  2031. if test -n "$STRIP"; then
  2032. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2033. echo "${ECHO_T}$STRIP" >&6; }
  2034. else
  2035. { echo "$as_me:$LINENO: result: no" >&5
  2036. echo "${ECHO_T}no" >&6; }
  2037. fi
  2038. fi
  2039. if test -z "$ac_cv_prog_STRIP"; then
  2040. ac_ct_STRIP=$STRIP
  2041. # Extract the first word of "strip", so it can be a program name with args.
  2042. set dummy strip; ac_word=$2
  2043. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2044. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2045. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2046. echo $ECHO_N "(cached) $ECHO_C" >&6
  2047. else
  2048. if test -n "$ac_ct_STRIP"; then
  2049. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2050. else
  2051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2052. for as_dir in $PATH
  2053. do
  2054. IFS=$as_save_IFS
  2055. test -z "$as_dir" && as_dir=.
  2056. for ac_exec_ext in '' $ac_executable_extensions; do
  2057. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2058. ac_cv_prog_ac_ct_STRIP="strip"
  2059. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2060. break 2
  2061. fi
  2062. done
  2063. done
  2064. IFS=$as_save_IFS
  2065. fi
  2066. fi
  2067. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2068. if test -n "$ac_ct_STRIP"; then
  2069. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2070. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2071. else
  2072. { echo "$as_me:$LINENO: result: no" >&5
  2073. echo "${ECHO_T}no" >&6; }
  2074. fi
  2075. if test "x$ac_ct_STRIP" = x; then
  2076. STRIP=":"
  2077. else
  2078. case $cross_compiling:$ac_tool_warned in
  2079. yes:)
  2080. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2081. whose name does not start with the host triplet. If you think this
  2082. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2083. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2084. whose name does not start with the host triplet. If you think this
  2085. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2086. ac_tool_warned=yes ;;
  2087. esac
  2088. STRIP=$ac_ct_STRIP
  2089. fi
  2090. else
  2091. STRIP="$ac_cv_prog_STRIP"
  2092. fi
  2093. fi
  2094. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2095. # We need awk for the "check" target. The system "awk" is bad on
  2096. # some platforms.
  2097. # Always define AMTAR for backward compatibility.
  2098. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2099. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2100. ac_ext=c
  2101. ac_cpp='$CPP $CPPFLAGS'
  2102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2105. if test -n "$ac_tool_prefix"; then
  2106. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2107. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2108. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2110. if test "${ac_cv_prog_CC+set}" = set; then
  2111. echo $ECHO_N "(cached) $ECHO_C" >&6
  2112. else
  2113. if test -n "$CC"; then
  2114. ac_cv_prog_CC="$CC" # Let the user override the test.
  2115. else
  2116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2117. for as_dir in $PATH
  2118. do
  2119. IFS=$as_save_IFS
  2120. test -z "$as_dir" && as_dir=.
  2121. for ac_exec_ext in '' $ac_executable_extensions; do
  2122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2123. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2124. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2125. break 2
  2126. fi
  2127. done
  2128. done
  2129. IFS=$as_save_IFS
  2130. fi
  2131. fi
  2132. CC=$ac_cv_prog_CC
  2133. if test -n "$CC"; then
  2134. { echo "$as_me:$LINENO: result: $CC" >&5
  2135. echo "${ECHO_T}$CC" >&6; }
  2136. else
  2137. { echo "$as_me:$LINENO: result: no" >&5
  2138. echo "${ECHO_T}no" >&6; }
  2139. fi
  2140. fi
  2141. if test -z "$ac_cv_prog_CC"; then
  2142. ac_ct_CC=$CC
  2143. # Extract the first word of "gcc", so it can be a program name with args.
  2144. set dummy gcc; ac_word=$2
  2145. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2146. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2147. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2148. echo $ECHO_N "(cached) $ECHO_C" >&6
  2149. else
  2150. if test -n "$ac_ct_CC"; then
  2151. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2152. else
  2153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2154. for as_dir in $PATH
  2155. do
  2156. IFS=$as_save_IFS
  2157. test -z "$as_dir" && as_dir=.
  2158. for ac_exec_ext in '' $ac_executable_extensions; do
  2159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2160. ac_cv_prog_ac_ct_CC="gcc"
  2161. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2162. break 2
  2163. fi
  2164. done
  2165. done
  2166. IFS=$as_save_IFS
  2167. fi
  2168. fi
  2169. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2170. if test -n "$ac_ct_CC"; then
  2171. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2172. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2173. else
  2174. { echo "$as_me:$LINENO: result: no" >&5
  2175. echo "${ECHO_T}no" >&6; }
  2176. fi
  2177. if test "x$ac_ct_CC" = x; then
  2178. CC=""
  2179. else
  2180. case $cross_compiling:$ac_tool_warned in
  2181. yes:)
  2182. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2183. whose name does not start with the host triplet. If you think this
  2184. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2185. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2186. whose name does not start with the host triplet. If you think this
  2187. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2188. ac_tool_warned=yes ;;
  2189. esac
  2190. CC=$ac_ct_CC
  2191. fi
  2192. else
  2193. CC="$ac_cv_prog_CC"
  2194. fi
  2195. if test -z "$CC"; then
  2196. if test -n "$ac_tool_prefix"; then
  2197. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2198. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2199. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2200. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2201. if test "${ac_cv_prog_CC+set}" = set; then
  2202. echo $ECHO_N "(cached) $ECHO_C" >&6
  2203. else
  2204. if test -n "$CC"; then
  2205. ac_cv_prog_CC="$CC" # Let the user override the test.
  2206. else
  2207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2208. for as_dir in $PATH
  2209. do
  2210. IFS=$as_save_IFS
  2211. test -z "$as_dir" && as_dir=.
  2212. for ac_exec_ext in '' $ac_executable_extensions; do
  2213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2214. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2215. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2216. break 2
  2217. fi
  2218. done
  2219. done
  2220. IFS=$as_save_IFS
  2221. fi
  2222. fi
  2223. CC=$ac_cv_prog_CC
  2224. if test -n "$CC"; then
  2225. { echo "$as_me:$LINENO: result: $CC" >&5
  2226. echo "${ECHO_T}$CC" >&6; }
  2227. else
  2228. { echo "$as_me:$LINENO: result: no" >&5
  2229. echo "${ECHO_T}no" >&6; }
  2230. fi
  2231. fi
  2232. fi
  2233. if test -z "$CC"; then
  2234. # Extract the first word of "cc", so it can be a program name with args.
  2235. set dummy cc; ac_word=$2
  2236. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2237. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2238. if test "${ac_cv_prog_CC+set}" = set; then
  2239. echo $ECHO_N "(cached) $ECHO_C" >&6
  2240. else
  2241. if test -n "$CC"; then
  2242. ac_cv_prog_CC="$CC" # Let the user override the test.
  2243. else
  2244. ac_prog_rejected=no
  2245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2246. for as_dir in $PATH
  2247. do
  2248. IFS=$as_save_IFS
  2249. test -z "$as_dir" && as_dir=.
  2250. for ac_exec_ext in '' $ac_executable_extensions; do
  2251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2252. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2253. ac_prog_rejected=yes
  2254. continue
  2255. fi
  2256. ac_cv_prog_CC="cc"
  2257. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2258. break 2
  2259. fi
  2260. done
  2261. done
  2262. IFS=$as_save_IFS
  2263. if test $ac_prog_rejected = yes; then
  2264. # We found a bogon in the path, so make sure we never use it.
  2265. set dummy $ac_cv_prog_CC
  2266. shift
  2267. if test $# != 0; then
  2268. # We chose a different compiler from the bogus one.
  2269. # However, it has the same basename, so the bogon will be chosen
  2270. # first if we set CC to just the basename; use the full file name.
  2271. shift
  2272. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2273. fi
  2274. fi
  2275. fi
  2276. fi
  2277. CC=$ac_cv_prog_CC
  2278. if test -n "$CC"; then
  2279. { echo "$as_me:$LINENO: result: $CC" >&5
  2280. echo "${ECHO_T}$CC" >&6; }
  2281. else
  2282. { echo "$as_me:$LINENO: result: no" >&5
  2283. echo "${ECHO_T}no" >&6; }
  2284. fi
  2285. fi
  2286. if test -z "$CC"; then
  2287. if test -n "$ac_tool_prefix"; then
  2288. for ac_prog in cl.exe
  2289. do
  2290. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2291. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2292. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2294. if test "${ac_cv_prog_CC+set}" = set; then
  2295. echo $ECHO_N "(cached) $ECHO_C" >&6
  2296. else
  2297. if test -n "$CC"; then
  2298. ac_cv_prog_CC="$CC" # Let the user override the test.
  2299. else
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. for ac_exec_ext in '' $ac_executable_extensions; do
  2306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2307. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2309. break 2
  2310. fi
  2311. done
  2312. done
  2313. IFS=$as_save_IFS
  2314. fi
  2315. fi
  2316. CC=$ac_cv_prog_CC
  2317. if test -n "$CC"; then
  2318. { echo "$as_me:$LINENO: result: $CC" >&5
  2319. echo "${ECHO_T}$CC" >&6; }
  2320. else
  2321. { echo "$as_me:$LINENO: result: no" >&5
  2322. echo "${ECHO_T}no" >&6; }
  2323. fi
  2324. test -n "$CC" && break
  2325. done
  2326. fi
  2327. if test -z "$CC"; then
  2328. ac_ct_CC=$CC
  2329. for ac_prog in cl.exe
  2330. do
  2331. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2332. set dummy $ac_prog; ac_word=$2
  2333. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2334. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2335. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2336. echo $ECHO_N "(cached) $ECHO_C" >&6
  2337. else
  2338. if test -n "$ac_ct_CC"; then
  2339. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2340. else
  2341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2342. for as_dir in $PATH
  2343. do
  2344. IFS=$as_save_IFS
  2345. test -z "$as_dir" && as_dir=.
  2346. for ac_exec_ext in '' $ac_executable_extensions; do
  2347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2348. ac_cv_prog_ac_ct_CC="$ac_prog"
  2349. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2350. break 2
  2351. fi
  2352. done
  2353. done
  2354. IFS=$as_save_IFS
  2355. fi
  2356. fi
  2357. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2358. if test -n "$ac_ct_CC"; then
  2359. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2360. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2361. else
  2362. { echo "$as_me:$LINENO: result: no" >&5
  2363. echo "${ECHO_T}no" >&6; }
  2364. fi
  2365. test -n "$ac_ct_CC" && break
  2366. done
  2367. if test "x$ac_ct_CC" = x; then
  2368. CC=""
  2369. else
  2370. case $cross_compiling:$ac_tool_warned in
  2371. yes:)
  2372. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2373. whose name does not start with the host triplet. If you think this
  2374. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2375. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2376. whose name does not start with the host triplet. If you think this
  2377. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2378. ac_tool_warned=yes ;;
  2379. esac
  2380. CC=$ac_ct_CC
  2381. fi
  2382. fi
  2383. fi
  2384. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2385. See \`config.log' for more details." >&5
  2386. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2387. See \`config.log' for more details." >&2;}
  2388. { (exit 1); exit 1; }; }
  2389. # Provide some information about the compiler.
  2390. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2391. ac_compiler=`set X $ac_compile; echo $2`
  2392. { (ac_try="$ac_compiler --version >&5"
  2393. case "(($ac_try" in
  2394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2395. *) ac_try_echo=$ac_try;;
  2396. esac
  2397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2398. (eval "$ac_compiler --version >&5") 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }
  2402. { (ac_try="$ac_compiler -v >&5"
  2403. case "(($ac_try" in
  2404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2405. *) ac_try_echo=$ac_try;;
  2406. esac
  2407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2408. (eval "$ac_compiler -v >&5") 2>&5
  2409. ac_status=$?
  2410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2411. (exit $ac_status); }
  2412. { (ac_try="$ac_compiler -V >&5"
  2413. case "(($ac_try" in
  2414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2415. *) ac_try_echo=$ac_try;;
  2416. esac
  2417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2418. (eval "$ac_compiler -V >&5") 2>&5
  2419. ac_status=$?
  2420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2421. (exit $ac_status); }
  2422. cat >conftest.$ac_ext <<_ACEOF
  2423. /* confdefs.h. */
  2424. _ACEOF
  2425. cat confdefs.h >>conftest.$ac_ext
  2426. cat >>conftest.$ac_ext <<_ACEOF
  2427. /* end confdefs.h. */
  2428. int
  2429. main ()
  2430. {
  2431. ;
  2432. return 0;
  2433. }
  2434. _ACEOF
  2435. ac_clean_files_save=$ac_clean_files
  2436. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2437. # Try to create an executable without -o first, disregard a.out.
  2438. # It will help us diagnose broken compilers, and finding out an intuition
  2439. # of exeext.
  2440. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2441. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2442. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2443. #
  2444. # List of possible output files, starting from the most likely.
  2445. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2446. # only as a last resort. b.out is created by i960 compilers.
  2447. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2448. #
  2449. # The IRIX 6 linker writes into existing files which may not be
  2450. # executable, retaining their permissions. Remove them first so a
  2451. # subsequent execution test works.
  2452. ac_rmfiles=
  2453. for ac_file in $ac_files
  2454. do
  2455. case $ac_file in
  2456. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2457. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2458. esac
  2459. done
  2460. rm -f $ac_rmfiles
  2461. if { (ac_try="$ac_link_default"
  2462. case "(($ac_try" in
  2463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2464. *) ac_try_echo=$ac_try;;
  2465. esac
  2466. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2467. (eval "$ac_link_default") 2>&5
  2468. ac_status=$?
  2469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2470. (exit $ac_status); }; then
  2471. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2472. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2473. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2474. # so that the user can short-circuit this test for compilers unknown to
  2475. # Autoconf.
  2476. for ac_file in $ac_files ''
  2477. do
  2478. test -f "$ac_file" || continue
  2479. case $ac_file in
  2480. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2481. ;;
  2482. [ab].out )
  2483. # We found the default executable, but exeext='' is most
  2484. # certainly right.
  2485. break;;
  2486. *.* )
  2487. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2488. then :; else
  2489. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2490. fi
  2491. # We set ac_cv_exeext here because the later test for it is not
  2492. # safe: cross compilers may not add the suffix if given an `-o'
  2493. # argument, so we may need to know it at that point already.
  2494. # Even if this section looks crufty: it has the advantage of
  2495. # actually working.
  2496. break;;
  2497. * )
  2498. break;;
  2499. esac
  2500. done
  2501. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2502. else
  2503. ac_file=''
  2504. fi
  2505. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2506. echo "${ECHO_T}$ac_file" >&6; }
  2507. if test -z "$ac_file"; then
  2508. echo "$as_me: failed program was:" >&5
  2509. sed 's/^/| /' conftest.$ac_ext >&5
  2510. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2511. See \`config.log' for more details." >&5
  2512. echo "$as_me: error: C compiler cannot create executables
  2513. See \`config.log' for more details." >&2;}
  2514. { (exit 77); exit 77; }; }
  2515. fi
  2516. ac_exeext=$ac_cv_exeext
  2517. # Check that the compiler produces executables we can run. If not, either
  2518. # the compiler is broken, or we cross compile.
  2519. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2520. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2521. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2522. # If not cross compiling, check that we can run a simple program.
  2523. if test "$cross_compiling" != yes; then
  2524. if { ac_try='./$ac_file'
  2525. { (case "(($ac_try" in
  2526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2527. *) ac_try_echo=$ac_try;;
  2528. esac
  2529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2530. (eval "$ac_try") 2>&5
  2531. ac_status=$?
  2532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2533. (exit $ac_status); }; }; then
  2534. cross_compiling=no
  2535. else
  2536. if test "$cross_compiling" = maybe; then
  2537. cross_compiling=yes
  2538. else
  2539. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2540. If you meant to cross compile, use \`--host'.
  2541. See \`config.log' for more details." >&5
  2542. echo "$as_me: error: cannot run C compiled programs.
  2543. If you meant to cross compile, use \`--host'.
  2544. See \`config.log' for more details." >&2;}
  2545. { (exit 1); exit 1; }; }
  2546. fi
  2547. fi
  2548. fi
  2549. { echo "$as_me:$LINENO: result: yes" >&5
  2550. echo "${ECHO_T}yes" >&6; }
  2551. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2552. ac_clean_files=$ac_clean_files_save
  2553. # Check that the compiler produces executables we can run. If not, either
  2554. # the compiler is broken, or we cross compile.
  2555. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2556. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2557. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2558. echo "${ECHO_T}$cross_compiling" >&6; }
  2559. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2560. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2561. if { (ac_try="$ac_link"
  2562. case "(($ac_try" in
  2563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2564. *) ac_try_echo=$ac_try;;
  2565. esac
  2566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2567. (eval "$ac_link") 2>&5
  2568. ac_status=$?
  2569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2570. (exit $ac_status); }; then
  2571. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2572. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2573. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2574. # `rm'.
  2575. for ac_file in conftest.exe conftest conftest.*; do
  2576. test -f "$ac_file" || continue
  2577. case $ac_file in
  2578. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2579. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2580. break;;
  2581. * ) break;;
  2582. esac
  2583. done
  2584. else
  2585. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2586. See \`config.log' for more details." >&5
  2587. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2588. See \`config.log' for more details." >&2;}
  2589. { (exit 1); exit 1; }; }
  2590. fi
  2591. rm -f conftest$ac_cv_exeext
  2592. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2593. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2594. rm -f conftest.$ac_ext
  2595. EXEEXT=$ac_cv_exeext
  2596. ac_exeext=$EXEEXT
  2597. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2598. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2599. if test "${ac_cv_objext+set}" = set; then
  2600. echo $ECHO_N "(cached) $ECHO_C" >&6
  2601. else
  2602. cat >conftest.$ac_ext <<_ACEOF
  2603. /* confdefs.h. */
  2604. _ACEOF
  2605. cat confdefs.h >>conftest.$ac_ext
  2606. cat >>conftest.$ac_ext <<_ACEOF
  2607. /* end confdefs.h. */
  2608. int
  2609. main ()
  2610. {
  2611. ;
  2612. return 0;
  2613. }
  2614. _ACEOF
  2615. rm -f conftest.o conftest.obj
  2616. if { (ac_try="$ac_compile"
  2617. case "(($ac_try" in
  2618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2619. *) ac_try_echo=$ac_try;;
  2620. esac
  2621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2622. (eval "$ac_compile") 2>&5
  2623. ac_status=$?
  2624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2625. (exit $ac_status); }; then
  2626. for ac_file in conftest.o conftest.obj conftest.*; do
  2627. test -f "$ac_file" || continue;
  2628. case $ac_file in
  2629. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2630. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2631. break;;
  2632. esac
  2633. done
  2634. else
  2635. echo "$as_me: failed program was:" >&5
  2636. sed 's/^/| /' conftest.$ac_ext >&5
  2637. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2638. See \`config.log' for more details." >&5
  2639. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2640. See \`config.log' for more details." >&2;}
  2641. { (exit 1); exit 1; }; }
  2642. fi
  2643. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2644. fi
  2645. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2646. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2647. OBJEXT=$ac_cv_objext
  2648. ac_objext=$OBJEXT
  2649. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2650. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2651. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2652. echo $ECHO_N "(cached) $ECHO_C" >&6
  2653. else
  2654. cat >conftest.$ac_ext <<_ACEOF
  2655. /* confdefs.h. */
  2656. _ACEOF
  2657. cat confdefs.h >>conftest.$ac_ext
  2658. cat >>conftest.$ac_ext <<_ACEOF
  2659. /* end confdefs.h. */
  2660. int
  2661. main ()
  2662. {
  2663. #ifndef __GNUC__
  2664. choke me
  2665. #endif
  2666. ;
  2667. return 0;
  2668. }
  2669. _ACEOF
  2670. rm -f conftest.$ac_objext
  2671. if { (ac_try="$ac_compile"
  2672. case "(($ac_try" in
  2673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2674. *) ac_try_echo=$ac_try;;
  2675. esac
  2676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2677. (eval "$ac_compile") 2>conftest.er1
  2678. ac_status=$?
  2679. grep -v '^ *+' conftest.er1 >conftest.err
  2680. rm -f conftest.er1
  2681. cat conftest.err >&5
  2682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2683. (exit $ac_status); } && {
  2684. test -z "$ac_c_werror_flag" ||
  2685. test ! -s conftest.err
  2686. } && test -s conftest.$ac_objext; then
  2687. ac_compiler_gnu=yes
  2688. else
  2689. echo "$as_me: failed program was:" >&5
  2690. sed 's/^/| /' conftest.$ac_ext >&5
  2691. ac_compiler_gnu=no
  2692. fi
  2693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2694. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2695. fi
  2696. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2697. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2698. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2699. ac_test_CFLAGS=${CFLAGS+set}
  2700. ac_save_CFLAGS=$CFLAGS
  2701. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2702. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2703. if test "${ac_cv_prog_cc_g+set}" = set; then
  2704. echo $ECHO_N "(cached) $ECHO_C" >&6
  2705. else
  2706. ac_save_c_werror_flag=$ac_c_werror_flag
  2707. ac_c_werror_flag=yes
  2708. ac_cv_prog_cc_g=no
  2709. CFLAGS="-g"
  2710. cat >conftest.$ac_ext <<_ACEOF
  2711. /* confdefs.h. */
  2712. _ACEOF
  2713. cat confdefs.h >>conftest.$ac_ext
  2714. cat >>conftest.$ac_ext <<_ACEOF
  2715. /* end confdefs.h. */
  2716. int
  2717. main ()
  2718. {
  2719. ;
  2720. return 0;
  2721. }
  2722. _ACEOF
  2723. rm -f conftest.$ac_objext
  2724. if { (ac_try="$ac_compile"
  2725. case "(($ac_try" in
  2726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2727. *) ac_try_echo=$ac_try;;
  2728. esac
  2729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2730. (eval "$ac_compile") 2>conftest.er1
  2731. ac_status=$?
  2732. grep -v '^ *+' conftest.er1 >conftest.err
  2733. rm -f conftest.er1
  2734. cat conftest.err >&5
  2735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2736. (exit $ac_status); } && {
  2737. test -z "$ac_c_werror_flag" ||
  2738. test ! -s conftest.err
  2739. } && test -s conftest.$ac_objext; then
  2740. ac_cv_prog_cc_g=yes
  2741. else
  2742. echo "$as_me: failed program was:" >&5
  2743. sed 's/^/| /' conftest.$ac_ext >&5
  2744. CFLAGS=""
  2745. cat >conftest.$ac_ext <<_ACEOF
  2746. /* confdefs.h. */
  2747. _ACEOF
  2748. cat confdefs.h >>conftest.$ac_ext
  2749. cat >>conftest.$ac_ext <<_ACEOF
  2750. /* end confdefs.h. */
  2751. int
  2752. main ()
  2753. {
  2754. ;
  2755. return 0;
  2756. }
  2757. _ACEOF
  2758. rm -f conftest.$ac_objext
  2759. if { (ac_try="$ac_compile"
  2760. case "(($ac_try" in
  2761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2762. *) ac_try_echo=$ac_try;;
  2763. esac
  2764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2765. (eval "$ac_compile") 2>conftest.er1
  2766. ac_status=$?
  2767. grep -v '^ *+' conftest.er1 >conftest.err
  2768. rm -f conftest.er1
  2769. cat conftest.err >&5
  2770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2771. (exit $ac_status); } && {
  2772. test -z "$ac_c_werror_flag" ||
  2773. test ! -s conftest.err
  2774. } && test -s conftest.$ac_objext; then
  2775. :
  2776. else
  2777. echo "$as_me: failed program was:" >&5
  2778. sed 's/^/| /' conftest.$ac_ext >&5
  2779. ac_c_werror_flag=$ac_save_c_werror_flag
  2780. CFLAGS="-g"
  2781. cat >conftest.$ac_ext <<_ACEOF
  2782. /* confdefs.h. */
  2783. _ACEOF
  2784. cat confdefs.h >>conftest.$ac_ext
  2785. cat >>conftest.$ac_ext <<_ACEOF
  2786. /* end confdefs.h. */
  2787. int
  2788. main ()
  2789. {
  2790. ;
  2791. return 0;
  2792. }
  2793. _ACEOF
  2794. rm -f conftest.$ac_objext
  2795. if { (ac_try="$ac_compile"
  2796. case "(($ac_try" in
  2797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2798. *) ac_try_echo=$ac_try;;
  2799. esac
  2800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2801. (eval "$ac_compile") 2>conftest.er1
  2802. ac_status=$?
  2803. grep -v '^ *+' conftest.er1 >conftest.err
  2804. rm -f conftest.er1
  2805. cat conftest.err >&5
  2806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2807. (exit $ac_status); } && {
  2808. test -z "$ac_c_werror_flag" ||
  2809. test ! -s conftest.err
  2810. } && test -s conftest.$ac_objext; then
  2811. ac_cv_prog_cc_g=yes
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. fi
  2816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2817. fi
  2818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2819. fi
  2820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2821. ac_c_werror_flag=$ac_save_c_werror_flag
  2822. fi
  2823. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2824. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2825. if test "$ac_test_CFLAGS" = set; then
  2826. CFLAGS=$ac_save_CFLAGS
  2827. elif test $ac_cv_prog_cc_g = yes; then
  2828. if test "$GCC" = yes; then
  2829. CFLAGS="-g -O2"
  2830. else
  2831. CFLAGS="-g"
  2832. fi
  2833. else
  2834. if test "$GCC" = yes; then
  2835. CFLAGS="-O2"
  2836. else
  2837. CFLAGS=
  2838. fi
  2839. fi
  2840. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2841. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2842. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2843. echo $ECHO_N "(cached) $ECHO_C" >&6
  2844. else
  2845. ac_cv_prog_cc_c89=no
  2846. ac_save_CC=$CC
  2847. cat >conftest.$ac_ext <<_ACEOF
  2848. /* confdefs.h. */
  2849. _ACEOF
  2850. cat confdefs.h >>conftest.$ac_ext
  2851. cat >>conftest.$ac_ext <<_ACEOF
  2852. /* end confdefs.h. */
  2853. #include <stdarg.h>
  2854. #include <stdio.h>
  2855. #include <sys/types.h>
  2856. #include <sys/stat.h>
  2857. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2858. struct buf { int x; };
  2859. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2860. static char *e (p, i)
  2861. char **p;
  2862. int i;
  2863. {
  2864. return p[i];
  2865. }
  2866. static char *f (char * (*g) (char **, int), char **p, ...)
  2867. {
  2868. char *s;
  2869. va_list v;
  2870. va_start (v,p);
  2871. s = g (p, va_arg (v,int));
  2872. va_end (v);
  2873. return s;
  2874. }
  2875. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2876. function prototypes and stuff, but not '\xHH' hex character constants.
  2877. These don't provoke an error unfortunately, instead are silently treated
  2878. as 'x'. The following induces an error, until -std is added to get
  2879. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2880. array size at least. It's necessary to write '\x00'==0 to get something
  2881. that's true only with -std. */
  2882. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2883. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2884. inside strings and character constants. */
  2885. #define FOO(x) 'x'
  2886. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2887. int test (int i, double x);
  2888. struct s1 {int (*f) (int a);};
  2889. struct s2 {int (*f) (double a);};
  2890. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2891. int argc;
  2892. char **argv;
  2893. int
  2894. main ()
  2895. {
  2896. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2897. ;
  2898. return 0;
  2899. }
  2900. _ACEOF
  2901. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2902. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2903. do
  2904. CC="$ac_save_CC $ac_arg"
  2905. rm -f conftest.$ac_objext
  2906. if { (ac_try="$ac_compile"
  2907. case "(($ac_try" in
  2908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2909. *) ac_try_echo=$ac_try;;
  2910. esac
  2911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2912. (eval "$ac_compile") 2>conftest.er1
  2913. ac_status=$?
  2914. grep -v '^ *+' conftest.er1 >conftest.err
  2915. rm -f conftest.er1
  2916. cat conftest.err >&5
  2917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2918. (exit $ac_status); } && {
  2919. test -z "$ac_c_werror_flag" ||
  2920. test ! -s conftest.err
  2921. } && test -s conftest.$ac_objext; then
  2922. ac_cv_prog_cc_c89=$ac_arg
  2923. else
  2924. echo "$as_me: failed program was:" >&5
  2925. sed 's/^/| /' conftest.$ac_ext >&5
  2926. fi
  2927. rm -f core conftest.err conftest.$ac_objext
  2928. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2929. done
  2930. rm -f conftest.$ac_ext
  2931. CC=$ac_save_CC
  2932. fi
  2933. # AC_CACHE_VAL
  2934. case "x$ac_cv_prog_cc_c89" in
  2935. x)
  2936. { echo "$as_me:$LINENO: result: none needed" >&5
  2937. echo "${ECHO_T}none needed" >&6; } ;;
  2938. xno)
  2939. { echo "$as_me:$LINENO: result: unsupported" >&5
  2940. echo "${ECHO_T}unsupported" >&6; } ;;
  2941. *)
  2942. CC="$CC $ac_cv_prog_cc_c89"
  2943. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2944. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2945. esac
  2946. ac_ext=c
  2947. ac_cpp='$CPP $CPPFLAGS'
  2948. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2949. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2950. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2951. DEPDIR="${am__leading_dot}deps"
  2952. ac_config_commands="$ac_config_commands depfiles"
  2953. am_make=${MAKE-make}
  2954. cat > confinc << 'END'
  2955. am__doit:
  2956. @echo done
  2957. .PHONY: am__doit
  2958. END
  2959. # If we don't find an include directive, just comment out the code.
  2960. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2961. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2962. am__include="#"
  2963. am__quote=
  2964. _am_result=none
  2965. # First try GNU make style include.
  2966. echo "include confinc" > confmf
  2967. # We grep out `Entering directory' and `Leaving directory'
  2968. # messages which can occur if `w' ends up in MAKEFLAGS.
  2969. # In particular we don't look at `^make:' because GNU make might
  2970. # be invoked under some other name (usually "gmake"), in which
  2971. # case it prints its new name instead of `make'.
  2972. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2973. am__include=include
  2974. am__quote=
  2975. _am_result=GNU
  2976. fi
  2977. # Now try BSD make style include.
  2978. if test "$am__include" = "#"; then
  2979. echo '.include "confinc"' > confmf
  2980. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2981. am__include=.include
  2982. am__quote="\""
  2983. _am_result=BSD
  2984. fi
  2985. fi
  2986. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2987. echo "${ECHO_T}$_am_result" >&6; }
  2988. rm -f confinc confmf
  2989. # Check whether --enable-dependency-tracking was given.
  2990. if test "${enable_dependency_tracking+set}" = set; then
  2991. enableval=$enable_dependency_tracking;
  2992. fi
  2993. if test "x$enable_dependency_tracking" != xno; then
  2994. am_depcomp="$ac_aux_dir/depcomp"
  2995. AMDEPBACKSLASH='\'
  2996. fi
  2997. if test "x$enable_dependency_tracking" != xno; then
  2998. AMDEP_TRUE=
  2999. AMDEP_FALSE='#'
  3000. else
  3001. AMDEP_TRUE='#'
  3002. AMDEP_FALSE=
  3003. fi
  3004. depcc="$CC" am_compiler_list=
  3005. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3006. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3007. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3008. echo $ECHO_N "(cached) $ECHO_C" >&6
  3009. else
  3010. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3011. # We make a subdir and do the tests there. Otherwise we can end up
  3012. # making bogus files that we don't know about and never remove. For
  3013. # instance it was reported that on HP-UX the gcc test will end up
  3014. # making a dummy file named `D' -- because `-MD' means `put the output
  3015. # in D'.
  3016. mkdir conftest.dir
  3017. # Copy depcomp to subdir because otherwise we won't find it if we're
  3018. # using a relative directory.
  3019. cp "$am_depcomp" conftest.dir
  3020. cd conftest.dir
  3021. # We will build objects and dependencies in a subdirectory because
  3022. # it helps to detect inapplicable dependency modes. For instance
  3023. # both Tru64's cc and ICC support -MD to output dependencies as a
  3024. # side effect of compilation, but ICC will put the dependencies in
  3025. # the current directory while Tru64 will put them in the object
  3026. # directory.
  3027. mkdir sub
  3028. am_cv_CC_dependencies_compiler_type=none
  3029. if test "$am_compiler_list" = ""; then
  3030. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3031. fi
  3032. for depmode in $am_compiler_list; do
  3033. # Setup a source with many dependencies, because some compilers
  3034. # like to wrap large dependency lists on column 80 (with \), and
  3035. # we should not choose a depcomp mode which is confused by this.
  3036. #
  3037. # We need to recreate these files for each test, as the compiler may
  3038. # overwrite some of them when testing with obscure command lines.
  3039. # This happens at least with the AIX C compiler.
  3040. : > sub/conftest.c
  3041. for i in 1 2 3 4 5 6; do
  3042. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3043. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3044. # Solaris 8's {/usr,}/bin/sh.
  3045. touch sub/conftst$i.h
  3046. done
  3047. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3048. case $depmode in
  3049. nosideeffect)
  3050. # after this tag, mechanisms are not by side-effect, so they'll
  3051. # only be used when explicitly requested
  3052. if test "x$enable_dependency_tracking" = xyes; then
  3053. continue
  3054. else
  3055. break
  3056. fi
  3057. ;;
  3058. none) break ;;
  3059. esac
  3060. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3061. # mode. It turns out that the SunPro C++ compiler does not properly
  3062. # handle `-M -o', and we need to detect this.
  3063. if depmode=$depmode \
  3064. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3065. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3066. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3067. >/dev/null 2>conftest.err &&
  3068. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3069. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3070. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3071. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3072. # icc doesn't choke on unknown options, it will just issue warnings
  3073. # or remarks (even with -Werror). So we grep stderr for any message
  3074. # that says an option was ignored or not supported.
  3075. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3076. # icc: Command line warning: ignoring option '-M'; no argument required
  3077. # The diagnosis changed in icc 8.0:
  3078. # icc: Command line remark: option '-MP' not supported
  3079. if (grep 'ignoring option' conftest.err ||
  3080. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3081. am_cv_CC_dependencies_compiler_type=$depmode
  3082. break
  3083. fi
  3084. fi
  3085. done
  3086. cd ..
  3087. rm -rf conftest.dir
  3088. else
  3089. am_cv_CC_dependencies_compiler_type=none
  3090. fi
  3091. fi
  3092. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3093. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3094. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3095. if
  3096. test "x$enable_dependency_tracking" != xno \
  3097. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3098. am__fastdepCC_TRUE=
  3099. am__fastdepCC_FALSE='#'
  3100. else
  3101. am__fastdepCC_TRUE='#'
  3102. am__fastdepCC_FALSE=
  3103. fi
  3104. # Check whether --enable-shared was given.
  3105. if test "${enable_shared+set}" = set; then
  3106. enableval=$enable_shared; p=${PACKAGE-default}
  3107. case $enableval in
  3108. yes) enable_shared=yes ;;
  3109. no) enable_shared=no ;;
  3110. *)
  3111. enable_shared=no
  3112. # Look at the argument we got. We use all the common list separators.
  3113. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3114. for pkg in $enableval; do
  3115. IFS="$lt_save_ifs"
  3116. if test "X$pkg" = "X$p"; then
  3117. enable_shared=yes
  3118. fi
  3119. done
  3120. IFS="$lt_save_ifs"
  3121. ;;
  3122. esac
  3123. else
  3124. enable_shared=yes
  3125. fi
  3126. # Check whether --enable-static was given.
  3127. if test "${enable_static+set}" = set; then
  3128. enableval=$enable_static; p=${PACKAGE-default}
  3129. case $enableval in
  3130. yes) enable_static=yes ;;
  3131. no) enable_static=no ;;
  3132. *)
  3133. enable_static=no
  3134. # Look at the argument we got. We use all the common list separators.
  3135. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3136. for pkg in $enableval; do
  3137. IFS="$lt_save_ifs"
  3138. if test "X$pkg" = "X$p"; then
  3139. enable_static=yes
  3140. fi
  3141. done
  3142. IFS="$lt_save_ifs"
  3143. ;;
  3144. esac
  3145. else
  3146. enable_static=yes
  3147. fi
  3148. # Check whether --enable-fast-install was given.
  3149. if test "${enable_fast_install+set}" = set; then
  3150. enableval=$enable_fast_install; p=${PACKAGE-default}
  3151. case $enableval in
  3152. yes) enable_fast_install=yes ;;
  3153. no) enable_fast_install=no ;;
  3154. *)
  3155. enable_fast_install=no
  3156. # Look at the argument we got. We use all the common list separators.
  3157. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3158. for pkg in $enableval; do
  3159. IFS="$lt_save_ifs"
  3160. if test "X$pkg" = "X$p"; then
  3161. enable_fast_install=yes
  3162. fi
  3163. done
  3164. IFS="$lt_save_ifs"
  3165. ;;
  3166. esac
  3167. else
  3168. enable_fast_install=yes
  3169. fi
  3170. # Make sure we can run config.sub.
  3171. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3172. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3173. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3174. { (exit 1); exit 1; }; }
  3175. { echo "$as_me:$LINENO: checking build system type" >&5
  3176. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3177. if test "${ac_cv_build+set}" = set; then
  3178. echo $ECHO_N "(cached) $ECHO_C" >&6
  3179. else
  3180. ac_build_alias=$build_alias
  3181. test "x$ac_build_alias" = x &&
  3182. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3183. test "x$ac_build_alias" = x &&
  3184. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3185. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3186. { (exit 1); exit 1; }; }
  3187. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3188. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3189. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3190. { (exit 1); exit 1; }; }
  3191. fi
  3192. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3193. echo "${ECHO_T}$ac_cv_build" >&6; }
  3194. case $ac_cv_build in
  3195. *-*-*) ;;
  3196. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3197. echo "$as_me: error: invalid value of canonical build" >&2;}
  3198. { (exit 1); exit 1; }; };;
  3199. esac
  3200. build=$ac_cv_build
  3201. ac_save_IFS=$IFS; IFS='-'
  3202. set x $ac_cv_build
  3203. shift
  3204. build_cpu=$1
  3205. build_vendor=$2
  3206. shift; shift
  3207. # Remember, the first character of IFS is used to create $*,
  3208. # except with old shells:
  3209. build_os=$*
  3210. IFS=$ac_save_IFS
  3211. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3212. { echo "$as_me:$LINENO: checking host system type" >&5
  3213. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3214. if test "${ac_cv_host+set}" = set; then
  3215. echo $ECHO_N "(cached) $ECHO_C" >&6
  3216. else
  3217. if test "x$host_alias" = x; then
  3218. ac_cv_host=$ac_cv_build
  3219. else
  3220. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3221. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3222. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3223. { (exit 1); exit 1; }; }
  3224. fi
  3225. fi
  3226. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3227. echo "${ECHO_T}$ac_cv_host" >&6; }
  3228. case $ac_cv_host in
  3229. *-*-*) ;;
  3230. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3231. echo "$as_me: error: invalid value of canonical host" >&2;}
  3232. { (exit 1); exit 1; }; };;
  3233. esac
  3234. host=$ac_cv_host
  3235. ac_save_IFS=$IFS; IFS='-'
  3236. set x $ac_cv_host
  3237. shift
  3238. host_cpu=$1
  3239. host_vendor=$2
  3240. shift; shift
  3241. # Remember, the first character of IFS is used to create $*,
  3242. # except with old shells:
  3243. host_os=$*
  3244. IFS=$ac_save_IFS
  3245. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3246. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3247. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3248. if test "${lt_cv_path_SED+set}" = set; then
  3249. echo $ECHO_N "(cached) $ECHO_C" >&6
  3250. else
  3251. # Loop through the user's path and test for sed and gsed.
  3252. # Then use that list of sed's as ones to test for truncation.
  3253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3254. for as_dir in $PATH
  3255. do
  3256. IFS=$as_save_IFS
  3257. test -z "$as_dir" && as_dir=.
  3258. for lt_ac_prog in sed gsed; do
  3259. for ac_exec_ext in '' $ac_executable_extensions; do
  3260. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3261. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3262. fi
  3263. done
  3264. done
  3265. done
  3266. IFS=$as_save_IFS
  3267. lt_ac_max=0
  3268. lt_ac_count=0
  3269. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3270. # along with /bin/sed that truncates output.
  3271. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3272. test ! -f $lt_ac_sed && continue
  3273. cat /dev/null > conftest.in
  3274. lt_ac_count=0
  3275. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3276. # Check for GNU sed and select it if it is found.
  3277. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3278. lt_cv_path_SED=$lt_ac_sed
  3279. break
  3280. fi
  3281. while true; do
  3282. cat conftest.in conftest.in >conftest.tmp
  3283. mv conftest.tmp conftest.in
  3284. cp conftest.in conftest.nl
  3285. echo >>conftest.nl
  3286. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3287. cmp -s conftest.out conftest.nl || break
  3288. # 10000 chars as input seems more than enough
  3289. test $lt_ac_count -gt 10 && break
  3290. lt_ac_count=`expr $lt_ac_count + 1`
  3291. if test $lt_ac_count -gt $lt_ac_max; then
  3292. lt_ac_max=$lt_ac_count
  3293. lt_cv_path_SED=$lt_ac_sed
  3294. fi
  3295. done
  3296. done
  3297. fi
  3298. SED=$lt_cv_path_SED
  3299. { echo "$as_me:$LINENO: result: $SED" >&5
  3300. echo "${ECHO_T}$SED" >&6; }
  3301. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3302. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3303. if test "${ac_cv_path_GREP+set}" = set; then
  3304. echo $ECHO_N "(cached) $ECHO_C" >&6
  3305. else
  3306. # Extract the first word of "grep ggrep" to use in msg output
  3307. if test -z "$GREP"; then
  3308. set dummy grep ggrep; ac_prog_name=$2
  3309. if test "${ac_cv_path_GREP+set}" = set; then
  3310. echo $ECHO_N "(cached) $ECHO_C" >&6
  3311. else
  3312. ac_path_GREP_found=false
  3313. # Loop through the user's path and test for each of PROGNAME-LIST
  3314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3315. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3316. do
  3317. IFS=$as_save_IFS
  3318. test -z "$as_dir" && as_dir=.
  3319. for ac_prog in grep ggrep; do
  3320. for ac_exec_ext in '' $ac_executable_extensions; do
  3321. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3322. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3323. # Check for GNU ac_path_GREP and select it if it is found.
  3324. # Check for GNU $ac_path_GREP
  3325. case `"$ac_path_GREP" --version 2>&1` in
  3326. *GNU*)
  3327. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3328. *)
  3329. ac_count=0
  3330. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3331. while :
  3332. do
  3333. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3334. mv "conftest.tmp" "conftest.in"
  3335. cp "conftest.in" "conftest.nl"
  3336. echo 'GREP' >> "conftest.nl"
  3337. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3338. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3339. ac_count=`expr $ac_count + 1`
  3340. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3341. # Best one so far, save it but keep looking for a better one
  3342. ac_cv_path_GREP="$ac_path_GREP"
  3343. ac_path_GREP_max=$ac_count
  3344. fi
  3345. # 10*(2^10) chars as input seems more than enough
  3346. test $ac_count -gt 10 && break
  3347. done
  3348. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3349. esac
  3350. $ac_path_GREP_found && break 3
  3351. done
  3352. done
  3353. done
  3354. IFS=$as_save_IFS
  3355. fi
  3356. GREP="$ac_cv_path_GREP"
  3357. if test -z "$GREP"; then
  3358. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3359. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3360. { (exit 1); exit 1; }; }
  3361. fi
  3362. else
  3363. ac_cv_path_GREP=$GREP
  3364. fi
  3365. fi
  3366. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3367. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3368. GREP="$ac_cv_path_GREP"
  3369. { echo "$as_me:$LINENO: checking for egrep" >&5
  3370. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3371. if test "${ac_cv_path_EGREP+set}" = set; then
  3372. echo $ECHO_N "(cached) $ECHO_C" >&6
  3373. else
  3374. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3375. then ac_cv_path_EGREP="$GREP -E"
  3376. else
  3377. # Extract the first word of "egrep" to use in msg output
  3378. if test -z "$EGREP"; then
  3379. set dummy egrep; ac_prog_name=$2
  3380. if test "${ac_cv_path_EGREP+set}" = set; then
  3381. echo $ECHO_N "(cached) $ECHO_C" >&6
  3382. else
  3383. ac_path_EGREP_found=false
  3384. # Loop through the user's path and test for each of PROGNAME-LIST
  3385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3387. do
  3388. IFS=$as_save_IFS
  3389. test -z "$as_dir" && as_dir=.
  3390. for ac_prog in egrep; do
  3391. for ac_exec_ext in '' $ac_executable_extensions; do
  3392. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3393. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3394. # Check for GNU ac_path_EGREP and select it if it is found.
  3395. # Check for GNU $ac_path_EGREP
  3396. case `"$ac_path_EGREP" --version 2>&1` in
  3397. *GNU*)
  3398. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3399. *)
  3400. ac_count=0
  3401. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3402. while :
  3403. do
  3404. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3405. mv "conftest.tmp" "conftest.in"
  3406. cp "conftest.in" "conftest.nl"
  3407. echo 'EGREP' >> "conftest.nl"
  3408. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3409. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3410. ac_count=`expr $ac_count + 1`
  3411. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3412. # Best one so far, save it but keep looking for a better one
  3413. ac_cv_path_EGREP="$ac_path_EGREP"
  3414. ac_path_EGREP_max=$ac_count
  3415. fi
  3416. # 10*(2^10) chars as input seems more than enough
  3417. test $ac_count -gt 10 && break
  3418. done
  3419. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3420. esac
  3421. $ac_path_EGREP_found && break 3
  3422. done
  3423. done
  3424. done
  3425. IFS=$as_save_IFS
  3426. fi
  3427. EGREP="$ac_cv_path_EGREP"
  3428. if test -z "$EGREP"; then
  3429. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3430. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3431. { (exit 1); exit 1; }; }
  3432. fi
  3433. else
  3434. ac_cv_path_EGREP=$EGREP
  3435. fi
  3436. fi
  3437. fi
  3438. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3439. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3440. EGREP="$ac_cv_path_EGREP"
  3441. # Check whether --with-gnu-ld was given.
  3442. if test "${with_gnu_ld+set}" = set; then
  3443. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3444. else
  3445. with_gnu_ld=no
  3446. fi
  3447. ac_prog=ld
  3448. if test "$GCC" = yes; then
  3449. # Check if gcc -print-prog-name=ld gives a path.
  3450. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3451. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3452. case $host in
  3453. *-*-mingw*)
  3454. # gcc leaves a trailing carriage return which upsets mingw
  3455. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3456. *)
  3457. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3458. esac
  3459. case $ac_prog in
  3460. # Accept absolute paths.
  3461. [\\/]* | ?:[\\/]*)
  3462. re_direlt='/[^/][^/]*/\.\./'
  3463. # Canonicalize the pathname of ld
  3464. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3465. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3466. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3467. done
  3468. test -z "$LD" && LD="$ac_prog"
  3469. ;;
  3470. "")
  3471. # If it fails, then pretend we aren't using GCC.
  3472. ac_prog=ld
  3473. ;;
  3474. *)
  3475. # If it is relative, then search for the first ld in PATH.
  3476. with_gnu_ld=unknown
  3477. ;;
  3478. esac
  3479. elif test "$with_gnu_ld" = yes; then
  3480. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3481. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3482. else
  3483. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3484. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3485. fi
  3486. if test "${lt_cv_path_LD+set}" = set; then
  3487. echo $ECHO_N "(cached) $ECHO_C" >&6
  3488. else
  3489. if test -z "$LD"; then
  3490. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3491. for ac_dir in $PATH; do
  3492. IFS="$lt_save_ifs"
  3493. test -z "$ac_dir" && ac_dir=.
  3494. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3495. lt_cv_path_LD="$ac_dir/$ac_prog"
  3496. # Check to see if the program is GNU ld. I'd rather use --version,
  3497. # but apparently some variants of GNU ld only accept -v.
  3498. # Break only if it was the GNU/non-GNU ld that we prefer.
  3499. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3500. *GNU* | *'with BFD'*)
  3501. test "$with_gnu_ld" != no && break
  3502. ;;
  3503. *)
  3504. test "$with_gnu_ld" != yes && break
  3505. ;;
  3506. esac
  3507. fi
  3508. done
  3509. IFS="$lt_save_ifs"
  3510. else
  3511. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3512. fi
  3513. fi
  3514. LD="$lt_cv_path_LD"
  3515. if test -n "$LD"; then
  3516. { echo "$as_me:$LINENO: result: $LD" >&5
  3517. echo "${ECHO_T}$LD" >&6; }
  3518. else
  3519. { echo "$as_me:$LINENO: result: no" >&5
  3520. echo "${ECHO_T}no" >&6; }
  3521. fi
  3522. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3523. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3524. { (exit 1); exit 1; }; }
  3525. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3526. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3527. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3528. echo $ECHO_N "(cached) $ECHO_C" >&6
  3529. else
  3530. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3531. case `$LD -v 2>&1 </dev/null` in
  3532. *GNU* | *'with BFD'*)
  3533. lt_cv_prog_gnu_ld=yes
  3534. ;;
  3535. *)
  3536. lt_cv_prog_gnu_ld=no
  3537. ;;
  3538. esac
  3539. fi
  3540. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3541. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3542. with_gnu_ld=$lt_cv_prog_gnu_ld
  3543. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3544. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3545. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3546. echo $ECHO_N "(cached) $ECHO_C" >&6
  3547. else
  3548. lt_cv_ld_reload_flag='-r'
  3549. fi
  3550. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3551. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3552. reload_flag=$lt_cv_ld_reload_flag
  3553. case $reload_flag in
  3554. "" | " "*) ;;
  3555. *) reload_flag=" $reload_flag" ;;
  3556. esac
  3557. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3558. case $host_os in
  3559. darwin*)
  3560. if test "$GCC" = yes; then
  3561. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3562. else
  3563. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3564. fi
  3565. ;;
  3566. esac
  3567. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3568. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3569. if test "${lt_cv_path_NM+set}" = set; then
  3570. echo $ECHO_N "(cached) $ECHO_C" >&6
  3571. else
  3572. if test -n "$NM"; then
  3573. # Let the user override the test.
  3574. lt_cv_path_NM="$NM"
  3575. else
  3576. lt_nm_to_check="${ac_tool_prefix}nm"
  3577. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3578. lt_nm_to_check="$lt_nm_to_check nm"
  3579. fi
  3580. for lt_tmp_nm in $lt_nm_to_check; do
  3581. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3582. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3583. IFS="$lt_save_ifs"
  3584. test -z "$ac_dir" && ac_dir=.
  3585. tmp_nm="$ac_dir/$lt_tmp_nm"
  3586. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3587. # Check to see if the nm accepts a BSD-compat flag.
  3588. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3589. # nm: unknown option "B" ignored
  3590. # Tru64's nm complains that /dev/null is an invalid object file
  3591. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3592. */dev/null* | *'Invalid file or object type'*)
  3593. lt_cv_path_NM="$tmp_nm -B"
  3594. break
  3595. ;;
  3596. *)
  3597. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3598. */dev/null*)
  3599. lt_cv_path_NM="$tmp_nm -p"
  3600. break
  3601. ;;
  3602. *)
  3603. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3604. continue # so that we can try to find one that supports BSD flags
  3605. ;;
  3606. esac
  3607. ;;
  3608. esac
  3609. fi
  3610. done
  3611. IFS="$lt_save_ifs"
  3612. done
  3613. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3614. fi
  3615. fi
  3616. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3617. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3618. NM="$lt_cv_path_NM"
  3619. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3620. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3621. LN_S=$as_ln_s
  3622. if test "$LN_S" = "ln -s"; then
  3623. { echo "$as_me:$LINENO: result: yes" >&5
  3624. echo "${ECHO_T}yes" >&6; }
  3625. else
  3626. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3627. echo "${ECHO_T}no, using $LN_S" >&6; }
  3628. fi
  3629. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3630. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3631. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3632. echo $ECHO_N "(cached) $ECHO_C" >&6
  3633. else
  3634. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3635. lt_cv_file_magic_test_file=
  3636. lt_cv_deplibs_check_method='unknown'
  3637. # Need to set the preceding variable on all platforms that support
  3638. # interlibrary dependencies.
  3639. # 'none' -- dependencies not supported.
  3640. # `unknown' -- same as none, but documents that we really don't know.
  3641. # 'pass_all' -- all dependencies passed with no checks.
  3642. # 'test_compile' -- check by making test program.
  3643. # 'file_magic [[regex]]' -- check by looking for files in library path
  3644. # which responds to the $file_magic_cmd with a given extended regex.
  3645. # If you have `file' or equivalent on your system and you're not sure
  3646. # whether `pass_all' will *always* work, you probably want this one.
  3647. case $host_os in
  3648. aix4* | aix5*)
  3649. lt_cv_deplibs_check_method=pass_all
  3650. ;;
  3651. beos*)
  3652. lt_cv_deplibs_check_method=pass_all
  3653. ;;
  3654. bsdi[45]*)
  3655. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3656. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3657. lt_cv_file_magic_test_file=/shlib/libc.so
  3658. ;;
  3659. cygwin*)
  3660. # func_win32_libid is a shell function defined in ltmain.sh
  3661. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3662. lt_cv_file_magic_cmd='func_win32_libid'
  3663. ;;
  3664. mingw* | pw32*)
  3665. # Base MSYS/MinGW do not provide the 'file' command needed by
  3666. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3667. # unless we find 'file', for example because we are cross-compiling.
  3668. if ( file / ) >/dev/null 2>&1; then
  3669. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3670. lt_cv_file_magic_cmd='func_win32_libid'
  3671. else
  3672. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3673. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3674. fi
  3675. ;;
  3676. darwin* | rhapsody*)
  3677. lt_cv_deplibs_check_method=pass_all
  3678. ;;
  3679. freebsd* | dragonfly*)
  3680. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3681. case $host_cpu in
  3682. i*86 )
  3683. # Not sure whether the presence of OpenBSD here was a mistake.
  3684. # Let's accept both of them until this is cleared up.
  3685. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3686. lt_cv_file_magic_cmd=/usr/bin/file
  3687. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3688. ;;
  3689. esac
  3690. else
  3691. lt_cv_deplibs_check_method=pass_all
  3692. fi
  3693. ;;
  3694. gnu*)
  3695. lt_cv_deplibs_check_method=pass_all
  3696. ;;
  3697. hpux10.20* | hpux11*)
  3698. lt_cv_file_magic_cmd=/usr/bin/file
  3699. case $host_cpu in
  3700. ia64*)
  3701. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3702. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3703. ;;
  3704. hppa*64*)
  3705. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  3706. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3707. ;;
  3708. *)
  3709. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3710. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3711. ;;
  3712. esac
  3713. ;;
  3714. interix[3-9]*)
  3715. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3716. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3717. ;;
  3718. irix5* | irix6* | nonstopux*)
  3719. case $LD in
  3720. *-32|*"-32 ") libmagic=32-bit;;
  3721. *-n32|*"-n32 ") libmagic=N32;;
  3722. *-64|*"-64 ") libmagic=64-bit;;
  3723. *) libmagic=never-match;;
  3724. esac
  3725. lt_cv_deplibs_check_method=pass_all
  3726. ;;
  3727. # This must be Linux ELF.
  3728. linux* | k*bsd*-gnu)
  3729. lt_cv_deplibs_check_method=pass_all
  3730. ;;
  3731. netbsd* | netbsdelf*-gnu)
  3732. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3734. else
  3735. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3736. fi
  3737. ;;
  3738. newos6*)
  3739. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3740. lt_cv_file_magic_cmd=/usr/bin/file
  3741. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3742. ;;
  3743. nto-qnx*)
  3744. lt_cv_deplibs_check_method=unknown
  3745. ;;
  3746. openbsd*)
  3747. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3748. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3749. else
  3750. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3751. fi
  3752. ;;
  3753. osf3* | osf4* | osf5*)
  3754. lt_cv_deplibs_check_method=pass_all
  3755. ;;
  3756. rdos*)
  3757. lt_cv_deplibs_check_method=pass_all
  3758. ;;
  3759. solaris*)
  3760. lt_cv_deplibs_check_method=pass_all
  3761. ;;
  3762. sysv4 | sysv4.3*)
  3763. case $host_vendor in
  3764. motorola)
  3765. 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]'
  3766. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3767. ;;
  3768. ncr)
  3769. lt_cv_deplibs_check_method=pass_all
  3770. ;;
  3771. sequent)
  3772. lt_cv_file_magic_cmd='/bin/file'
  3773. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3774. ;;
  3775. sni)
  3776. lt_cv_file_magic_cmd='/bin/file'
  3777. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3778. lt_cv_file_magic_test_file=/lib/libc.so
  3779. ;;
  3780. siemens)
  3781. lt_cv_deplibs_check_method=pass_all
  3782. ;;
  3783. pc)
  3784. lt_cv_deplibs_check_method=pass_all
  3785. ;;
  3786. esac
  3787. ;;
  3788. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3789. lt_cv_deplibs_check_method=pass_all
  3790. ;;
  3791. esac
  3792. fi
  3793. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3794. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  3795. file_magic_cmd=$lt_cv_file_magic_cmd
  3796. deplibs_check_method=$lt_cv_deplibs_check_method
  3797. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3798. # If no C compiler was specified, use CC.
  3799. LTCC=${LTCC-"$CC"}
  3800. # If no C compiler flags were specified, use CFLAGS.
  3801. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3802. # Allow CC to be a program name with arguments.
  3803. compiler=$CC
  3804. # Check whether --enable-libtool-lock was given.
  3805. if test "${enable_libtool_lock+set}" = set; then
  3806. enableval=$enable_libtool_lock;
  3807. fi
  3808. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3809. # Some flags need to be propagated to the compiler or linker for good
  3810. # libtool support.
  3811. case $host in
  3812. ia64-*-hpux*)
  3813. # Find out which ABI we are using.
  3814. echo 'int i;' > conftest.$ac_ext
  3815. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3816. (eval $ac_compile) 2>&5
  3817. ac_status=$?
  3818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3819. (exit $ac_status); }; then
  3820. case `/usr/bin/file conftest.$ac_objext` in
  3821. *ELF-32*)
  3822. HPUX_IA64_MODE="32"
  3823. ;;
  3824. *ELF-64*)
  3825. HPUX_IA64_MODE="64"
  3826. ;;
  3827. esac
  3828. fi
  3829. rm -rf conftest*
  3830. ;;
  3831. *-*-irix6*)
  3832. # Find out which ABI we are using.
  3833. echo '#line 4311 "configure"' > conftest.$ac_ext
  3834. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3835. (eval $ac_compile) 2>&5
  3836. ac_status=$?
  3837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3838. (exit $ac_status); }; then
  3839. if test "$lt_cv_prog_gnu_ld" = yes; then
  3840. case `/usr/bin/file conftest.$ac_objext` in
  3841. *32-bit*)
  3842. LD="${LD-ld} -melf32bsmip"
  3843. ;;
  3844. *N32*)
  3845. LD="${LD-ld} -melf32bmipn32"
  3846. ;;
  3847. *64-bit*)
  3848. LD="${LD-ld} -melf64bmip"
  3849. ;;
  3850. esac
  3851. else
  3852. case `/usr/bin/file conftest.$ac_objext` in
  3853. *32-bit*)
  3854. LD="${LD-ld} -32"
  3855. ;;
  3856. *N32*)
  3857. LD="${LD-ld} -n32"
  3858. ;;
  3859. *64-bit*)
  3860. LD="${LD-ld} -64"
  3861. ;;
  3862. esac
  3863. fi
  3864. fi
  3865. rm -rf conftest*
  3866. ;;
  3867. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  3868. s390*-*linux*|sparc*-*linux*)
  3869. # Find out which ABI we are using.
  3870. echo 'int i;' > conftest.$ac_ext
  3871. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3872. (eval $ac_compile) 2>&5
  3873. ac_status=$?
  3874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3875. (exit $ac_status); }; then
  3876. case `/usr/bin/file conftest.o` in
  3877. *32-bit*)
  3878. case $host in
  3879. x86_64-*kfreebsd*-gnu)
  3880. LD="${LD-ld} -m elf_i386_fbsd"
  3881. ;;
  3882. x86_64-*linux*)
  3883. LD="${LD-ld} -m elf_i386"
  3884. ;;
  3885. ppc64-*linux*|powerpc64-*linux*)
  3886. LD="${LD-ld} -m elf32ppclinux"
  3887. ;;
  3888. s390x-*linux*)
  3889. LD="${LD-ld} -m elf_s390"
  3890. ;;
  3891. sparc64-*linux*)
  3892. LD="${LD-ld} -m elf32_sparc"
  3893. ;;
  3894. esac
  3895. ;;
  3896. *64-bit*)
  3897. case $host in
  3898. x86_64-*kfreebsd*-gnu)
  3899. LD="${LD-ld} -m elf_x86_64_fbsd"
  3900. ;;
  3901. x86_64-*linux*)
  3902. LD="${LD-ld} -m elf_x86_64"
  3903. ;;
  3904. ppc*-*linux*|powerpc*-*linux*)
  3905. LD="${LD-ld} -m elf64ppc"
  3906. ;;
  3907. s390*-*linux*)
  3908. LD="${LD-ld} -m elf64_s390"
  3909. ;;
  3910. sparc*-*linux*)
  3911. LD="${LD-ld} -m elf64_sparc"
  3912. ;;
  3913. esac
  3914. ;;
  3915. esac
  3916. fi
  3917. rm -rf conftest*
  3918. ;;
  3919. *-*-sco3.2v5*)
  3920. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3921. SAVE_CFLAGS="$CFLAGS"
  3922. CFLAGS="$CFLAGS -belf"
  3923. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3924. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  3925. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3926. echo $ECHO_N "(cached) $ECHO_C" >&6
  3927. else
  3928. ac_ext=c
  3929. ac_cpp='$CPP $CPPFLAGS'
  3930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3933. cat >conftest.$ac_ext <<_ACEOF
  3934. /* confdefs.h. */
  3935. _ACEOF
  3936. cat confdefs.h >>conftest.$ac_ext
  3937. cat >>conftest.$ac_ext <<_ACEOF
  3938. /* end confdefs.h. */
  3939. int
  3940. main ()
  3941. {
  3942. ;
  3943. return 0;
  3944. }
  3945. _ACEOF
  3946. rm -f conftest.$ac_objext conftest$ac_exeext
  3947. if { (ac_try="$ac_link"
  3948. case "(($ac_try" in
  3949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3950. *) ac_try_echo=$ac_try;;
  3951. esac
  3952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3953. (eval "$ac_link") 2>conftest.er1
  3954. ac_status=$?
  3955. grep -v '^ *+' conftest.er1 >conftest.err
  3956. rm -f conftest.er1
  3957. cat conftest.err >&5
  3958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3959. (exit $ac_status); } && {
  3960. test -z "$ac_c_werror_flag" ||
  3961. test ! -s conftest.err
  3962. } && test -s conftest$ac_exeext &&
  3963. $as_test_x conftest$ac_exeext; then
  3964. lt_cv_cc_needs_belf=yes
  3965. else
  3966. echo "$as_me: failed program was:" >&5
  3967. sed 's/^/| /' conftest.$ac_ext >&5
  3968. lt_cv_cc_needs_belf=no
  3969. fi
  3970. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3971. conftest$ac_exeext conftest.$ac_ext
  3972. ac_ext=c
  3973. ac_cpp='$CPP $CPPFLAGS'
  3974. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3975. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3976. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3977. fi
  3978. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3979. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  3980. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3981. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3982. CFLAGS="$SAVE_CFLAGS"
  3983. fi
  3984. ;;
  3985. sparc*-*solaris*)
  3986. # Find out which ABI we are using.
  3987. echo 'int i;' > conftest.$ac_ext
  3988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3989. (eval $ac_compile) 2>&5
  3990. ac_status=$?
  3991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3992. (exit $ac_status); }; then
  3993. case `/usr/bin/file conftest.o` in
  3994. *64-bit*)
  3995. case $lt_cv_prog_gnu_ld in
  3996. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  3997. *) LD="${LD-ld} -64" ;;
  3998. esac
  3999. ;;
  4000. esac
  4001. fi
  4002. rm -rf conftest*
  4003. ;;
  4004. esac
  4005. need_locks="$enable_libtool_lock"
  4006. ac_ext=c
  4007. ac_cpp='$CPP $CPPFLAGS'
  4008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4011. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4012. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4013. # On Suns, sometimes $CPP names a directory.
  4014. if test -n "$CPP" && test -d "$CPP"; then
  4015. CPP=
  4016. fi
  4017. if test -z "$CPP"; then
  4018. if test "${ac_cv_prog_CPP+set}" = set; then
  4019. echo $ECHO_N "(cached) $ECHO_C" >&6
  4020. else
  4021. # Double quotes because CPP needs to be expanded
  4022. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4023. do
  4024. ac_preproc_ok=false
  4025. for ac_c_preproc_warn_flag in '' yes
  4026. do
  4027. # Use a header file that comes with gcc, so configuring glibc
  4028. # with a fresh cross-compiler works.
  4029. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4030. # <limits.h> exists even on freestanding compilers.
  4031. # On the NeXT, cc -E runs the code through the compiler's parser,
  4032. # not just through cpp. "Syntax error" is here to catch this case.
  4033. cat >conftest.$ac_ext <<_ACEOF
  4034. /* confdefs.h. */
  4035. _ACEOF
  4036. cat confdefs.h >>conftest.$ac_ext
  4037. cat >>conftest.$ac_ext <<_ACEOF
  4038. /* end confdefs.h. */
  4039. #ifdef __STDC__
  4040. # include <limits.h>
  4041. #else
  4042. # include <assert.h>
  4043. #endif
  4044. Syntax error
  4045. _ACEOF
  4046. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4047. case "(($ac_try" in
  4048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4049. *) ac_try_echo=$ac_try;;
  4050. esac
  4051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4052. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4053. ac_status=$?
  4054. grep -v '^ *+' conftest.er1 >conftest.err
  4055. rm -f conftest.er1
  4056. cat conftest.err >&5
  4057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4058. (exit $ac_status); } >/dev/null && {
  4059. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4060. test ! -s conftest.err
  4061. }; then
  4062. :
  4063. else
  4064. echo "$as_me: failed program was:" >&5
  4065. sed 's/^/| /' conftest.$ac_ext >&5
  4066. # Broken: fails on valid input.
  4067. continue
  4068. fi
  4069. rm -f conftest.err conftest.$ac_ext
  4070. # OK, works on sane cases. Now check whether nonexistent headers
  4071. # can be detected and how.
  4072. cat >conftest.$ac_ext <<_ACEOF
  4073. /* confdefs.h. */
  4074. _ACEOF
  4075. cat confdefs.h >>conftest.$ac_ext
  4076. cat >>conftest.$ac_ext <<_ACEOF
  4077. /* end confdefs.h. */
  4078. #include <ac_nonexistent.h>
  4079. _ACEOF
  4080. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4081. case "(($ac_try" in
  4082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4083. *) ac_try_echo=$ac_try;;
  4084. esac
  4085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4086. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4087. ac_status=$?
  4088. grep -v '^ *+' conftest.er1 >conftest.err
  4089. rm -f conftest.er1
  4090. cat conftest.err >&5
  4091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4092. (exit $ac_status); } >/dev/null && {
  4093. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4094. test ! -s conftest.err
  4095. }; then
  4096. # Broken: success on invalid input.
  4097. continue
  4098. else
  4099. echo "$as_me: failed program was:" >&5
  4100. sed 's/^/| /' conftest.$ac_ext >&5
  4101. # Passes both tests.
  4102. ac_preproc_ok=:
  4103. break
  4104. fi
  4105. rm -f conftest.err conftest.$ac_ext
  4106. done
  4107. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4108. rm -f conftest.err conftest.$ac_ext
  4109. if $ac_preproc_ok; then
  4110. break
  4111. fi
  4112. done
  4113. ac_cv_prog_CPP=$CPP
  4114. fi
  4115. CPP=$ac_cv_prog_CPP
  4116. else
  4117. ac_cv_prog_CPP=$CPP
  4118. fi
  4119. { echo "$as_me:$LINENO: result: $CPP" >&5
  4120. echo "${ECHO_T}$CPP" >&6; }
  4121. ac_preproc_ok=false
  4122. for ac_c_preproc_warn_flag in '' yes
  4123. do
  4124. # Use a header file that comes with gcc, so configuring glibc
  4125. # with a fresh cross-compiler works.
  4126. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4127. # <limits.h> exists even on freestanding compilers.
  4128. # On the NeXT, cc -E runs the code through the compiler's parser,
  4129. # not just through cpp. "Syntax error" is here to catch this case.
  4130. cat >conftest.$ac_ext <<_ACEOF
  4131. /* confdefs.h. */
  4132. _ACEOF
  4133. cat confdefs.h >>conftest.$ac_ext
  4134. cat >>conftest.$ac_ext <<_ACEOF
  4135. /* end confdefs.h. */
  4136. #ifdef __STDC__
  4137. # include <limits.h>
  4138. #else
  4139. # include <assert.h>
  4140. #endif
  4141. Syntax error
  4142. _ACEOF
  4143. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4144. case "(($ac_try" in
  4145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4146. *) ac_try_echo=$ac_try;;
  4147. esac
  4148. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4149. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4150. ac_status=$?
  4151. grep -v '^ *+' conftest.er1 >conftest.err
  4152. rm -f conftest.er1
  4153. cat conftest.err >&5
  4154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4155. (exit $ac_status); } >/dev/null && {
  4156. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4157. test ! -s conftest.err
  4158. }; then
  4159. :
  4160. else
  4161. echo "$as_me: failed program was:" >&5
  4162. sed 's/^/| /' conftest.$ac_ext >&5
  4163. # Broken: fails on valid input.
  4164. continue
  4165. fi
  4166. rm -f conftest.err conftest.$ac_ext
  4167. # OK, works on sane cases. Now check whether nonexistent headers
  4168. # can be detected and how.
  4169. cat >conftest.$ac_ext <<_ACEOF
  4170. /* confdefs.h. */
  4171. _ACEOF
  4172. cat confdefs.h >>conftest.$ac_ext
  4173. cat >>conftest.$ac_ext <<_ACEOF
  4174. /* end confdefs.h. */
  4175. #include <ac_nonexistent.h>
  4176. _ACEOF
  4177. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4178. case "(($ac_try" in
  4179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4180. *) ac_try_echo=$ac_try;;
  4181. esac
  4182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4183. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4184. ac_status=$?
  4185. grep -v '^ *+' conftest.er1 >conftest.err
  4186. rm -f conftest.er1
  4187. cat conftest.err >&5
  4188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4189. (exit $ac_status); } >/dev/null && {
  4190. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4191. test ! -s conftest.err
  4192. }; then
  4193. # Broken: success on invalid input.
  4194. continue
  4195. else
  4196. echo "$as_me: failed program was:" >&5
  4197. sed 's/^/| /' conftest.$ac_ext >&5
  4198. # Passes both tests.
  4199. ac_preproc_ok=:
  4200. break
  4201. fi
  4202. rm -f conftest.err conftest.$ac_ext
  4203. done
  4204. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4205. rm -f conftest.err conftest.$ac_ext
  4206. if $ac_preproc_ok; then
  4207. :
  4208. else
  4209. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4210. See \`config.log' for more details." >&5
  4211. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4212. See \`config.log' for more details." >&2;}
  4213. { (exit 1); exit 1; }; }
  4214. fi
  4215. ac_ext=c
  4216. ac_cpp='$CPP $CPPFLAGS'
  4217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4220. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4221. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4222. if test "${ac_cv_header_stdc+set}" = set; then
  4223. echo $ECHO_N "(cached) $ECHO_C" >&6
  4224. else
  4225. cat >conftest.$ac_ext <<_ACEOF
  4226. /* confdefs.h. */
  4227. _ACEOF
  4228. cat confdefs.h >>conftest.$ac_ext
  4229. cat >>conftest.$ac_ext <<_ACEOF
  4230. /* end confdefs.h. */
  4231. #include <stdlib.h>
  4232. #include <stdarg.h>
  4233. #include <string.h>
  4234. #include <float.h>
  4235. int
  4236. main ()
  4237. {
  4238. ;
  4239. return 0;
  4240. }
  4241. _ACEOF
  4242. rm -f conftest.$ac_objext
  4243. if { (ac_try="$ac_compile"
  4244. case "(($ac_try" in
  4245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4246. *) ac_try_echo=$ac_try;;
  4247. esac
  4248. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4249. (eval "$ac_compile") 2>conftest.er1
  4250. ac_status=$?
  4251. grep -v '^ *+' conftest.er1 >conftest.err
  4252. rm -f conftest.er1
  4253. cat conftest.err >&5
  4254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4255. (exit $ac_status); } && {
  4256. test -z "$ac_c_werror_flag" ||
  4257. test ! -s conftest.err
  4258. } && test -s conftest.$ac_objext; then
  4259. ac_cv_header_stdc=yes
  4260. else
  4261. echo "$as_me: failed program was:" >&5
  4262. sed 's/^/| /' conftest.$ac_ext >&5
  4263. ac_cv_header_stdc=no
  4264. fi
  4265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4266. if test $ac_cv_header_stdc = yes; then
  4267. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4268. cat >conftest.$ac_ext <<_ACEOF
  4269. /* confdefs.h. */
  4270. _ACEOF
  4271. cat confdefs.h >>conftest.$ac_ext
  4272. cat >>conftest.$ac_ext <<_ACEOF
  4273. /* end confdefs.h. */
  4274. #include <string.h>
  4275. _ACEOF
  4276. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4277. $EGREP "memchr" >/dev/null 2>&1; then
  4278. :
  4279. else
  4280. ac_cv_header_stdc=no
  4281. fi
  4282. rm -f conftest*
  4283. fi
  4284. if test $ac_cv_header_stdc = yes; then
  4285. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4286. cat >conftest.$ac_ext <<_ACEOF
  4287. /* confdefs.h. */
  4288. _ACEOF
  4289. cat confdefs.h >>conftest.$ac_ext
  4290. cat >>conftest.$ac_ext <<_ACEOF
  4291. /* end confdefs.h. */
  4292. #include <stdlib.h>
  4293. _ACEOF
  4294. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4295. $EGREP "free" >/dev/null 2>&1; then
  4296. :
  4297. else
  4298. ac_cv_header_stdc=no
  4299. fi
  4300. rm -f conftest*
  4301. fi
  4302. if test $ac_cv_header_stdc = yes; then
  4303. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4304. if test "$cross_compiling" = yes; then
  4305. :
  4306. else
  4307. cat >conftest.$ac_ext <<_ACEOF
  4308. /* confdefs.h. */
  4309. _ACEOF
  4310. cat confdefs.h >>conftest.$ac_ext
  4311. cat >>conftest.$ac_ext <<_ACEOF
  4312. /* end confdefs.h. */
  4313. #include <ctype.h>
  4314. #include <stdlib.h>
  4315. #if ((' ' & 0x0FF) == 0x020)
  4316. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4317. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4318. #else
  4319. # define ISLOWER(c) \
  4320. (('a' <= (c) && (c) <= 'i') \
  4321. || ('j' <= (c) && (c) <= 'r') \
  4322. || ('s' <= (c) && (c) <= 'z'))
  4323. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4324. #endif
  4325. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4326. int
  4327. main ()
  4328. {
  4329. int i;
  4330. for (i = 0; i < 256; i++)
  4331. if (XOR (islower (i), ISLOWER (i))
  4332. || toupper (i) != TOUPPER (i))
  4333. return 2;
  4334. return 0;
  4335. }
  4336. _ACEOF
  4337. rm -f conftest$ac_exeext
  4338. if { (ac_try="$ac_link"
  4339. case "(($ac_try" in
  4340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4341. *) ac_try_echo=$ac_try;;
  4342. esac
  4343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4344. (eval "$ac_link") 2>&5
  4345. ac_status=$?
  4346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4347. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4348. { (case "(($ac_try" in
  4349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4350. *) ac_try_echo=$ac_try;;
  4351. esac
  4352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4353. (eval "$ac_try") 2>&5
  4354. ac_status=$?
  4355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4356. (exit $ac_status); }; }; then
  4357. :
  4358. else
  4359. echo "$as_me: program exited with status $ac_status" >&5
  4360. echo "$as_me: failed program was:" >&5
  4361. sed 's/^/| /' conftest.$ac_ext >&5
  4362. ( exit $ac_status )
  4363. ac_cv_header_stdc=no
  4364. fi
  4365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4366. fi
  4367. fi
  4368. fi
  4369. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4370. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4371. if test $ac_cv_header_stdc = yes; then
  4372. cat >>confdefs.h <<\_ACEOF
  4373. #define STDC_HEADERS 1
  4374. _ACEOF
  4375. fi
  4376. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4377. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4378. inttypes.h stdint.h unistd.h
  4379. do
  4380. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4381. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4382. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4383. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4384. echo $ECHO_N "(cached) $ECHO_C" >&6
  4385. else
  4386. cat >conftest.$ac_ext <<_ACEOF
  4387. /* confdefs.h. */
  4388. _ACEOF
  4389. cat confdefs.h >>conftest.$ac_ext
  4390. cat >>conftest.$ac_ext <<_ACEOF
  4391. /* end confdefs.h. */
  4392. $ac_includes_default
  4393. #include <$ac_header>
  4394. _ACEOF
  4395. rm -f conftest.$ac_objext
  4396. if { (ac_try="$ac_compile"
  4397. case "(($ac_try" in
  4398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4399. *) ac_try_echo=$ac_try;;
  4400. esac
  4401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4402. (eval "$ac_compile") 2>conftest.er1
  4403. ac_status=$?
  4404. grep -v '^ *+' conftest.er1 >conftest.err
  4405. rm -f conftest.er1
  4406. cat conftest.err >&5
  4407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4408. (exit $ac_status); } && {
  4409. test -z "$ac_c_werror_flag" ||
  4410. test ! -s conftest.err
  4411. } && test -s conftest.$ac_objext; then
  4412. eval "$as_ac_Header=yes"
  4413. else
  4414. echo "$as_me: failed program was:" >&5
  4415. sed 's/^/| /' conftest.$ac_ext >&5
  4416. eval "$as_ac_Header=no"
  4417. fi
  4418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4419. fi
  4420. ac_res=`eval echo '${'$as_ac_Header'}'`
  4421. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4422. echo "${ECHO_T}$ac_res" >&6; }
  4423. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4424. cat >>confdefs.h <<_ACEOF
  4425. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4426. _ACEOF
  4427. fi
  4428. done
  4429. for ac_header in dlfcn.h
  4430. do
  4431. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4432. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4433. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4434. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4435. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4436. echo $ECHO_N "(cached) $ECHO_C" >&6
  4437. fi
  4438. ac_res=`eval echo '${'$as_ac_Header'}'`
  4439. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4440. echo "${ECHO_T}$ac_res" >&6; }
  4441. else
  4442. # Is the header compilable?
  4443. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4444. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4445. cat >conftest.$ac_ext <<_ACEOF
  4446. /* confdefs.h. */
  4447. _ACEOF
  4448. cat confdefs.h >>conftest.$ac_ext
  4449. cat >>conftest.$ac_ext <<_ACEOF
  4450. /* end confdefs.h. */
  4451. $ac_includes_default
  4452. #include <$ac_header>
  4453. _ACEOF
  4454. rm -f conftest.$ac_objext
  4455. if { (ac_try="$ac_compile"
  4456. case "(($ac_try" in
  4457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4458. *) ac_try_echo=$ac_try;;
  4459. esac
  4460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4461. (eval "$ac_compile") 2>conftest.er1
  4462. ac_status=$?
  4463. grep -v '^ *+' conftest.er1 >conftest.err
  4464. rm -f conftest.er1
  4465. cat conftest.err >&5
  4466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4467. (exit $ac_status); } && {
  4468. test -z "$ac_c_werror_flag" ||
  4469. test ! -s conftest.err
  4470. } && test -s conftest.$ac_objext; then
  4471. ac_header_compiler=yes
  4472. else
  4473. echo "$as_me: failed program was:" >&5
  4474. sed 's/^/| /' conftest.$ac_ext >&5
  4475. ac_header_compiler=no
  4476. fi
  4477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4478. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4479. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4480. # Is the header present?
  4481. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4482. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4483. cat >conftest.$ac_ext <<_ACEOF
  4484. /* confdefs.h. */
  4485. _ACEOF
  4486. cat confdefs.h >>conftest.$ac_ext
  4487. cat >>conftest.$ac_ext <<_ACEOF
  4488. /* end confdefs.h. */
  4489. #include <$ac_header>
  4490. _ACEOF
  4491. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4492. case "(($ac_try" in
  4493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4494. *) ac_try_echo=$ac_try;;
  4495. esac
  4496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4497. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4498. ac_status=$?
  4499. grep -v '^ *+' conftest.er1 >conftest.err
  4500. rm -f conftest.er1
  4501. cat conftest.err >&5
  4502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4503. (exit $ac_status); } >/dev/null && {
  4504. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4505. test ! -s conftest.err
  4506. }; then
  4507. ac_header_preproc=yes
  4508. else
  4509. echo "$as_me: failed program was:" >&5
  4510. sed 's/^/| /' conftest.$ac_ext >&5
  4511. ac_header_preproc=no
  4512. fi
  4513. rm -f conftest.err conftest.$ac_ext
  4514. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4515. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4516. # So? What about this header?
  4517. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4518. yes:no: )
  4519. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4520. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4521. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4522. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4523. ac_header_preproc=yes
  4524. ;;
  4525. no:yes:* )
  4526. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4527. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4528. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4529. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4530. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4531. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4532. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4533. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4534. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4535. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4536. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4537. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4538. ;;
  4539. esac
  4540. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4541. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4542. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4543. echo $ECHO_N "(cached) $ECHO_C" >&6
  4544. else
  4545. eval "$as_ac_Header=\$ac_header_preproc"
  4546. fi
  4547. ac_res=`eval echo '${'$as_ac_Header'}'`
  4548. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4549. echo "${ECHO_T}$ac_res" >&6; }
  4550. fi
  4551. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4552. cat >>confdefs.h <<_ACEOF
  4553. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4554. _ACEOF
  4555. fi
  4556. done
  4557. ac_ext=cpp
  4558. ac_cpp='$CXXCPP $CPPFLAGS'
  4559. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4560. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4561. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4562. if test -z "$CXX"; then
  4563. if test -n "$CCC"; then
  4564. CXX=$CCC
  4565. else
  4566. if test -n "$ac_tool_prefix"; then
  4567. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4568. do
  4569. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4570. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4571. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4572. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4573. if test "${ac_cv_prog_CXX+set}" = set; then
  4574. echo $ECHO_N "(cached) $ECHO_C" >&6
  4575. else
  4576. if test -n "$CXX"; then
  4577. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4578. else
  4579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH
  4581. do
  4582. IFS=$as_save_IFS
  4583. test -z "$as_dir" && as_dir=.
  4584. for ac_exec_ext in '' $ac_executable_extensions; do
  4585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4586. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4587. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4588. break 2
  4589. fi
  4590. done
  4591. done
  4592. IFS=$as_save_IFS
  4593. fi
  4594. fi
  4595. CXX=$ac_cv_prog_CXX
  4596. if test -n "$CXX"; then
  4597. { echo "$as_me:$LINENO: result: $CXX" >&5
  4598. echo "${ECHO_T}$CXX" >&6; }
  4599. else
  4600. { echo "$as_me:$LINENO: result: no" >&5
  4601. echo "${ECHO_T}no" >&6; }
  4602. fi
  4603. test -n "$CXX" && break
  4604. done
  4605. fi
  4606. if test -z "$CXX"; then
  4607. ac_ct_CXX=$CXX
  4608. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4609. do
  4610. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4611. set dummy $ac_prog; ac_word=$2
  4612. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4613. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4614. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4615. echo $ECHO_N "(cached) $ECHO_C" >&6
  4616. else
  4617. if test -n "$ac_ct_CXX"; then
  4618. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4619. else
  4620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621. for as_dir in $PATH
  4622. do
  4623. IFS=$as_save_IFS
  4624. test -z "$as_dir" && as_dir=.
  4625. for ac_exec_ext in '' $ac_executable_extensions; do
  4626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4627. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4628. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4629. break 2
  4630. fi
  4631. done
  4632. done
  4633. IFS=$as_save_IFS
  4634. fi
  4635. fi
  4636. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4637. if test -n "$ac_ct_CXX"; then
  4638. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4639. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4640. else
  4641. { echo "$as_me:$LINENO: result: no" >&5
  4642. echo "${ECHO_T}no" >&6; }
  4643. fi
  4644. test -n "$ac_ct_CXX" && break
  4645. done
  4646. if test "x$ac_ct_CXX" = x; then
  4647. CXX="g++"
  4648. else
  4649. case $cross_compiling:$ac_tool_warned in
  4650. yes:)
  4651. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4652. whose name does not start with the host triplet. If you think this
  4653. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4654. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4655. whose name does not start with the host triplet. If you think this
  4656. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4657. ac_tool_warned=yes ;;
  4658. esac
  4659. CXX=$ac_ct_CXX
  4660. fi
  4661. fi
  4662. fi
  4663. fi
  4664. # Provide some information about the compiler.
  4665. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4666. ac_compiler=`set X $ac_compile; echo $2`
  4667. { (ac_try="$ac_compiler --version >&5"
  4668. case "(($ac_try" in
  4669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4670. *) ac_try_echo=$ac_try;;
  4671. esac
  4672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4673. (eval "$ac_compiler --version >&5") 2>&5
  4674. ac_status=$?
  4675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4676. (exit $ac_status); }
  4677. { (ac_try="$ac_compiler -v >&5"
  4678. case "(($ac_try" in
  4679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4680. *) ac_try_echo=$ac_try;;
  4681. esac
  4682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4683. (eval "$ac_compiler -v >&5") 2>&5
  4684. ac_status=$?
  4685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4686. (exit $ac_status); }
  4687. { (ac_try="$ac_compiler -V >&5"
  4688. case "(($ac_try" in
  4689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4690. *) ac_try_echo=$ac_try;;
  4691. esac
  4692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4693. (eval "$ac_compiler -V >&5") 2>&5
  4694. ac_status=$?
  4695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4696. (exit $ac_status); }
  4697. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4698. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4699. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4700. echo $ECHO_N "(cached) $ECHO_C" >&6
  4701. else
  4702. cat >conftest.$ac_ext <<_ACEOF
  4703. /* confdefs.h. */
  4704. _ACEOF
  4705. cat confdefs.h >>conftest.$ac_ext
  4706. cat >>conftest.$ac_ext <<_ACEOF
  4707. /* end confdefs.h. */
  4708. int
  4709. main ()
  4710. {
  4711. #ifndef __GNUC__
  4712. choke me
  4713. #endif
  4714. ;
  4715. return 0;
  4716. }
  4717. _ACEOF
  4718. rm -f conftest.$ac_objext
  4719. if { (ac_try="$ac_compile"
  4720. case "(($ac_try" in
  4721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4722. *) ac_try_echo=$ac_try;;
  4723. esac
  4724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4725. (eval "$ac_compile") 2>conftest.er1
  4726. ac_status=$?
  4727. grep -v '^ *+' conftest.er1 >conftest.err
  4728. rm -f conftest.er1
  4729. cat conftest.err >&5
  4730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4731. (exit $ac_status); } && {
  4732. test -z "$ac_cxx_werror_flag" ||
  4733. test ! -s conftest.err
  4734. } && test -s conftest.$ac_objext; then
  4735. ac_compiler_gnu=yes
  4736. else
  4737. echo "$as_me: failed program was:" >&5
  4738. sed 's/^/| /' conftest.$ac_ext >&5
  4739. ac_compiler_gnu=no
  4740. fi
  4741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4742. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4743. fi
  4744. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4745. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4746. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4747. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4748. ac_save_CXXFLAGS=$CXXFLAGS
  4749. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4750. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4751. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4752. echo $ECHO_N "(cached) $ECHO_C" >&6
  4753. else
  4754. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4755. ac_cxx_werror_flag=yes
  4756. ac_cv_prog_cxx_g=no
  4757. CXXFLAGS="-g"
  4758. cat >conftest.$ac_ext <<_ACEOF
  4759. /* confdefs.h. */
  4760. _ACEOF
  4761. cat confdefs.h >>conftest.$ac_ext
  4762. cat >>conftest.$ac_ext <<_ACEOF
  4763. /* end confdefs.h. */
  4764. int
  4765. main ()
  4766. {
  4767. ;
  4768. return 0;
  4769. }
  4770. _ACEOF
  4771. rm -f conftest.$ac_objext
  4772. if { (ac_try="$ac_compile"
  4773. case "(($ac_try" in
  4774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4775. *) ac_try_echo=$ac_try;;
  4776. esac
  4777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4778. (eval "$ac_compile") 2>conftest.er1
  4779. ac_status=$?
  4780. grep -v '^ *+' conftest.er1 >conftest.err
  4781. rm -f conftest.er1
  4782. cat conftest.err >&5
  4783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4784. (exit $ac_status); } && {
  4785. test -z "$ac_cxx_werror_flag" ||
  4786. test ! -s conftest.err
  4787. } && test -s conftest.$ac_objext; then
  4788. ac_cv_prog_cxx_g=yes
  4789. else
  4790. echo "$as_me: failed program was:" >&5
  4791. sed 's/^/| /' conftest.$ac_ext >&5
  4792. CXXFLAGS=""
  4793. cat >conftest.$ac_ext <<_ACEOF
  4794. /* confdefs.h. */
  4795. _ACEOF
  4796. cat confdefs.h >>conftest.$ac_ext
  4797. cat >>conftest.$ac_ext <<_ACEOF
  4798. /* end confdefs.h. */
  4799. int
  4800. main ()
  4801. {
  4802. ;
  4803. return 0;
  4804. }
  4805. _ACEOF
  4806. rm -f conftest.$ac_objext
  4807. if { (ac_try="$ac_compile"
  4808. case "(($ac_try" in
  4809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4810. *) ac_try_echo=$ac_try;;
  4811. esac
  4812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4813. (eval "$ac_compile") 2>conftest.er1
  4814. ac_status=$?
  4815. grep -v '^ *+' conftest.er1 >conftest.err
  4816. rm -f conftest.er1
  4817. cat conftest.err >&5
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); } && {
  4820. test -z "$ac_cxx_werror_flag" ||
  4821. test ! -s conftest.err
  4822. } && test -s conftest.$ac_objext; then
  4823. :
  4824. else
  4825. echo "$as_me: failed program was:" >&5
  4826. sed 's/^/| /' conftest.$ac_ext >&5
  4827. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4828. CXXFLAGS="-g"
  4829. cat >conftest.$ac_ext <<_ACEOF
  4830. /* confdefs.h. */
  4831. _ACEOF
  4832. cat confdefs.h >>conftest.$ac_ext
  4833. cat >>conftest.$ac_ext <<_ACEOF
  4834. /* end confdefs.h. */
  4835. int
  4836. main ()
  4837. {
  4838. ;
  4839. return 0;
  4840. }
  4841. _ACEOF
  4842. rm -f conftest.$ac_objext
  4843. if { (ac_try="$ac_compile"
  4844. case "(($ac_try" in
  4845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4846. *) ac_try_echo=$ac_try;;
  4847. esac
  4848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4849. (eval "$ac_compile") 2>conftest.er1
  4850. ac_status=$?
  4851. grep -v '^ *+' conftest.er1 >conftest.err
  4852. rm -f conftest.er1
  4853. cat conftest.err >&5
  4854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4855. (exit $ac_status); } && {
  4856. test -z "$ac_cxx_werror_flag" ||
  4857. test ! -s conftest.err
  4858. } && test -s conftest.$ac_objext; then
  4859. ac_cv_prog_cxx_g=yes
  4860. else
  4861. echo "$as_me: failed program was:" >&5
  4862. sed 's/^/| /' conftest.$ac_ext >&5
  4863. fi
  4864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4865. fi
  4866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4869. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4870. fi
  4871. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  4872. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  4873. if test "$ac_test_CXXFLAGS" = set; then
  4874. CXXFLAGS=$ac_save_CXXFLAGS
  4875. elif test $ac_cv_prog_cxx_g = yes; then
  4876. if test "$GXX" = yes; then
  4877. CXXFLAGS="-g -O2"
  4878. else
  4879. CXXFLAGS="-g"
  4880. fi
  4881. else
  4882. if test "$GXX" = yes; then
  4883. CXXFLAGS="-O2"
  4884. else
  4885. CXXFLAGS=
  4886. fi
  4887. fi
  4888. ac_ext=cpp
  4889. ac_cpp='$CXXCPP $CPPFLAGS'
  4890. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4891. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4892. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4893. depcc="$CXX" am_compiler_list=
  4894. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4895. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  4896. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  4897. echo $ECHO_N "(cached) $ECHO_C" >&6
  4898. else
  4899. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4900. # We make a subdir and do the tests there. Otherwise we can end up
  4901. # making bogus files that we don't know about and never remove. For
  4902. # instance it was reported that on HP-UX the gcc test will end up
  4903. # making a dummy file named `D' -- because `-MD' means `put the output
  4904. # in D'.
  4905. mkdir conftest.dir
  4906. # Copy depcomp to subdir because otherwise we won't find it if we're
  4907. # using a relative directory.
  4908. cp "$am_depcomp" conftest.dir
  4909. cd conftest.dir
  4910. # We will build objects and dependencies in a subdirectory because
  4911. # it helps to detect inapplicable dependency modes. For instance
  4912. # both Tru64's cc and ICC support -MD to output dependencies as a
  4913. # side effect of compilation, but ICC will put the dependencies in
  4914. # the current directory while Tru64 will put them in the object
  4915. # directory.
  4916. mkdir sub
  4917. am_cv_CXX_dependencies_compiler_type=none
  4918. if test "$am_compiler_list" = ""; then
  4919. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4920. fi
  4921. for depmode in $am_compiler_list; do
  4922. # Setup a source with many dependencies, because some compilers
  4923. # like to wrap large dependency lists on column 80 (with \), and
  4924. # we should not choose a depcomp mode which is confused by this.
  4925. #
  4926. # We need to recreate these files for each test, as the compiler may
  4927. # overwrite some of them when testing with obscure command lines.
  4928. # This happens at least with the AIX C compiler.
  4929. : > sub/conftest.c
  4930. for i in 1 2 3 4 5 6; do
  4931. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4932. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4933. # Solaris 8's {/usr,}/bin/sh.
  4934. touch sub/conftst$i.h
  4935. done
  4936. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4937. case $depmode in
  4938. nosideeffect)
  4939. # after this tag, mechanisms are not by side-effect, so they'll
  4940. # only be used when explicitly requested
  4941. if test "x$enable_dependency_tracking" = xyes; then
  4942. continue
  4943. else
  4944. break
  4945. fi
  4946. ;;
  4947. none) break ;;
  4948. esac
  4949. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4950. # mode. It turns out that the SunPro C++ compiler does not properly
  4951. # handle `-M -o', and we need to detect this.
  4952. if depmode=$depmode \
  4953. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4954. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4955. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4956. >/dev/null 2>conftest.err &&
  4957. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4958. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4959. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4960. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4961. # icc doesn't choke on unknown options, it will just issue warnings
  4962. # or remarks (even with -Werror). So we grep stderr for any message
  4963. # that says an option was ignored or not supported.
  4964. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4965. # icc: Command line warning: ignoring option '-M'; no argument required
  4966. # The diagnosis changed in icc 8.0:
  4967. # icc: Command line remark: option '-MP' not supported
  4968. if (grep 'ignoring option' conftest.err ||
  4969. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4970. am_cv_CXX_dependencies_compiler_type=$depmode
  4971. break
  4972. fi
  4973. fi
  4974. done
  4975. cd ..
  4976. rm -rf conftest.dir
  4977. else
  4978. am_cv_CXX_dependencies_compiler_type=none
  4979. fi
  4980. fi
  4981. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4982. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  4983. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4984. if
  4985. test "x$enable_dependency_tracking" != xno \
  4986. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4987. am__fastdepCXX_TRUE=
  4988. am__fastdepCXX_FALSE='#'
  4989. else
  4990. am__fastdepCXX_TRUE='#'
  4991. am__fastdepCXX_FALSE=
  4992. fi
  4993. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4994. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4995. (test "X$CXX" != "Xg++"))) ; then
  4996. ac_ext=cpp
  4997. ac_cpp='$CXXCPP $CPPFLAGS'
  4998. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4999. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5000. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5001. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5002. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5003. if test -z "$CXXCPP"; then
  5004. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5005. echo $ECHO_N "(cached) $ECHO_C" >&6
  5006. else
  5007. # Double quotes because CXXCPP needs to be expanded
  5008. for CXXCPP in "$CXX -E" "/lib/cpp"
  5009. do
  5010. ac_preproc_ok=false
  5011. for ac_cxx_preproc_warn_flag in '' yes
  5012. do
  5013. # Use a header file that comes with gcc, so configuring glibc
  5014. # with a fresh cross-compiler works.
  5015. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5016. # <limits.h> exists even on freestanding compilers.
  5017. # On the NeXT, cc -E runs the code through the compiler's parser,
  5018. # not just through cpp. "Syntax error" is here to catch this case.
  5019. cat >conftest.$ac_ext <<_ACEOF
  5020. /* confdefs.h. */
  5021. _ACEOF
  5022. cat confdefs.h >>conftest.$ac_ext
  5023. cat >>conftest.$ac_ext <<_ACEOF
  5024. /* end confdefs.h. */
  5025. #ifdef __STDC__
  5026. # include <limits.h>
  5027. #else
  5028. # include <assert.h>
  5029. #endif
  5030. Syntax error
  5031. _ACEOF
  5032. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5033. case "(($ac_try" in
  5034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5035. *) ac_try_echo=$ac_try;;
  5036. esac
  5037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5038. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5039. ac_status=$?
  5040. grep -v '^ *+' conftest.er1 >conftest.err
  5041. rm -f conftest.er1
  5042. cat conftest.err >&5
  5043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5044. (exit $ac_status); } >/dev/null && {
  5045. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5046. test ! -s conftest.err
  5047. }; then
  5048. :
  5049. else
  5050. echo "$as_me: failed program was:" >&5
  5051. sed 's/^/| /' conftest.$ac_ext >&5
  5052. # Broken: fails on valid input.
  5053. continue
  5054. fi
  5055. rm -f conftest.err conftest.$ac_ext
  5056. # OK, works on sane cases. Now check whether nonexistent headers
  5057. # can be detected and how.
  5058. cat >conftest.$ac_ext <<_ACEOF
  5059. /* confdefs.h. */
  5060. _ACEOF
  5061. cat confdefs.h >>conftest.$ac_ext
  5062. cat >>conftest.$ac_ext <<_ACEOF
  5063. /* end confdefs.h. */
  5064. #include <ac_nonexistent.h>
  5065. _ACEOF
  5066. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5067. case "(($ac_try" in
  5068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5069. *) ac_try_echo=$ac_try;;
  5070. esac
  5071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5072. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5073. ac_status=$?
  5074. grep -v '^ *+' conftest.er1 >conftest.err
  5075. rm -f conftest.er1
  5076. cat conftest.err >&5
  5077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5078. (exit $ac_status); } >/dev/null && {
  5079. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5080. test ! -s conftest.err
  5081. }; then
  5082. # Broken: success on invalid input.
  5083. continue
  5084. else
  5085. echo "$as_me: failed program was:" >&5
  5086. sed 's/^/| /' conftest.$ac_ext >&5
  5087. # Passes both tests.
  5088. ac_preproc_ok=:
  5089. break
  5090. fi
  5091. rm -f conftest.err conftest.$ac_ext
  5092. done
  5093. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5094. rm -f conftest.err conftest.$ac_ext
  5095. if $ac_preproc_ok; then
  5096. break
  5097. fi
  5098. done
  5099. ac_cv_prog_CXXCPP=$CXXCPP
  5100. fi
  5101. CXXCPP=$ac_cv_prog_CXXCPP
  5102. else
  5103. ac_cv_prog_CXXCPP=$CXXCPP
  5104. fi
  5105. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5106. echo "${ECHO_T}$CXXCPP" >&6; }
  5107. ac_preproc_ok=false
  5108. for ac_cxx_preproc_warn_flag in '' yes
  5109. do
  5110. # Use a header file that comes with gcc, so configuring glibc
  5111. # with a fresh cross-compiler works.
  5112. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5113. # <limits.h> exists even on freestanding compilers.
  5114. # On the NeXT, cc -E runs the code through the compiler's parser,
  5115. # not just through cpp. "Syntax error" is here to catch this case.
  5116. cat >conftest.$ac_ext <<_ACEOF
  5117. /* confdefs.h. */
  5118. _ACEOF
  5119. cat confdefs.h >>conftest.$ac_ext
  5120. cat >>conftest.$ac_ext <<_ACEOF
  5121. /* end confdefs.h. */
  5122. #ifdef __STDC__
  5123. # include <limits.h>
  5124. #else
  5125. # include <assert.h>
  5126. #endif
  5127. Syntax error
  5128. _ACEOF
  5129. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5130. case "(($ac_try" in
  5131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5132. *) ac_try_echo=$ac_try;;
  5133. esac
  5134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5135. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5136. ac_status=$?
  5137. grep -v '^ *+' conftest.er1 >conftest.err
  5138. rm -f conftest.er1
  5139. cat conftest.err >&5
  5140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5141. (exit $ac_status); } >/dev/null && {
  5142. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5143. test ! -s conftest.err
  5144. }; then
  5145. :
  5146. else
  5147. echo "$as_me: failed program was:" >&5
  5148. sed 's/^/| /' conftest.$ac_ext >&5
  5149. # Broken: fails on valid input.
  5150. continue
  5151. fi
  5152. rm -f conftest.err conftest.$ac_ext
  5153. # OK, works on sane cases. Now check whether nonexistent headers
  5154. # can be detected and how.
  5155. cat >conftest.$ac_ext <<_ACEOF
  5156. /* confdefs.h. */
  5157. _ACEOF
  5158. cat confdefs.h >>conftest.$ac_ext
  5159. cat >>conftest.$ac_ext <<_ACEOF
  5160. /* end confdefs.h. */
  5161. #include <ac_nonexistent.h>
  5162. _ACEOF
  5163. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5164. case "(($ac_try" in
  5165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5166. *) ac_try_echo=$ac_try;;
  5167. esac
  5168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5169. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5170. ac_status=$?
  5171. grep -v '^ *+' conftest.er1 >conftest.err
  5172. rm -f conftest.er1
  5173. cat conftest.err >&5
  5174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5175. (exit $ac_status); } >/dev/null && {
  5176. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5177. test ! -s conftest.err
  5178. }; then
  5179. # Broken: success on invalid input.
  5180. continue
  5181. else
  5182. echo "$as_me: failed program was:" >&5
  5183. sed 's/^/| /' conftest.$ac_ext >&5
  5184. # Passes both tests.
  5185. ac_preproc_ok=:
  5186. break
  5187. fi
  5188. rm -f conftest.err conftest.$ac_ext
  5189. done
  5190. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5191. rm -f conftest.err conftest.$ac_ext
  5192. if $ac_preproc_ok; then
  5193. :
  5194. else
  5195. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5196. See \`config.log' for more details." >&5
  5197. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5198. See \`config.log' for more details." >&2;}
  5199. { (exit 1); exit 1; }; }
  5200. fi
  5201. ac_ext=cpp
  5202. ac_cpp='$CXXCPP $CPPFLAGS'
  5203. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5204. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5205. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5206. fi
  5207. ac_ext=f
  5208. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5209. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5210. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5211. if test -n "$ac_tool_prefix"; then
  5212. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5213. do
  5214. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5215. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5216. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5217. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5218. if test "${ac_cv_prog_F77+set}" = set; then
  5219. echo $ECHO_N "(cached) $ECHO_C" >&6
  5220. else
  5221. if test -n "$F77"; then
  5222. ac_cv_prog_F77="$F77" # Let the user override the test.
  5223. else
  5224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5225. for as_dir in $PATH
  5226. do
  5227. IFS=$as_save_IFS
  5228. test -z "$as_dir" && as_dir=.
  5229. for ac_exec_ext in '' $ac_executable_extensions; do
  5230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5231. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5232. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5233. break 2
  5234. fi
  5235. done
  5236. done
  5237. IFS=$as_save_IFS
  5238. fi
  5239. fi
  5240. F77=$ac_cv_prog_F77
  5241. if test -n "$F77"; then
  5242. { echo "$as_me:$LINENO: result: $F77" >&5
  5243. echo "${ECHO_T}$F77" >&6; }
  5244. else
  5245. { echo "$as_me:$LINENO: result: no" >&5
  5246. echo "${ECHO_T}no" >&6; }
  5247. fi
  5248. test -n "$F77" && break
  5249. done
  5250. fi
  5251. if test -z "$F77"; then
  5252. ac_ct_F77=$F77
  5253. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5254. do
  5255. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5256. set dummy $ac_prog; ac_word=$2
  5257. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5259. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5260. echo $ECHO_N "(cached) $ECHO_C" >&6
  5261. else
  5262. if test -n "$ac_ct_F77"; then
  5263. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5264. else
  5265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266. for as_dir in $PATH
  5267. do
  5268. IFS=$as_save_IFS
  5269. test -z "$as_dir" && as_dir=.
  5270. for ac_exec_ext in '' $ac_executable_extensions; do
  5271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5272. ac_cv_prog_ac_ct_F77="$ac_prog"
  5273. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5274. break 2
  5275. fi
  5276. done
  5277. done
  5278. IFS=$as_save_IFS
  5279. fi
  5280. fi
  5281. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5282. if test -n "$ac_ct_F77"; then
  5283. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5284. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5285. else
  5286. { echo "$as_me:$LINENO: result: no" >&5
  5287. echo "${ECHO_T}no" >&6; }
  5288. fi
  5289. test -n "$ac_ct_F77" && break
  5290. done
  5291. if test "x$ac_ct_F77" = x; then
  5292. F77=""
  5293. else
  5294. case $cross_compiling:$ac_tool_warned in
  5295. yes:)
  5296. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5297. whose name does not start with the host triplet. If you think this
  5298. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5299. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5300. whose name does not start with the host triplet. If you think this
  5301. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5302. ac_tool_warned=yes ;;
  5303. esac
  5304. F77=$ac_ct_F77
  5305. fi
  5306. fi
  5307. # Provide some information about the compiler.
  5308. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5309. ac_compiler=`set X $ac_compile; echo $2`
  5310. { (ac_try="$ac_compiler --version >&5"
  5311. case "(($ac_try" in
  5312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5313. *) ac_try_echo=$ac_try;;
  5314. esac
  5315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5316. (eval "$ac_compiler --version >&5") 2>&5
  5317. ac_status=$?
  5318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5319. (exit $ac_status); }
  5320. { (ac_try="$ac_compiler -v >&5"
  5321. case "(($ac_try" in
  5322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5323. *) ac_try_echo=$ac_try;;
  5324. esac
  5325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5326. (eval "$ac_compiler -v >&5") 2>&5
  5327. ac_status=$?
  5328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5329. (exit $ac_status); }
  5330. { (ac_try="$ac_compiler -V >&5"
  5331. case "(($ac_try" in
  5332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5333. *) ac_try_echo=$ac_try;;
  5334. esac
  5335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5336. (eval "$ac_compiler -V >&5") 2>&5
  5337. ac_status=$?
  5338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5339. (exit $ac_status); }
  5340. rm -f a.out
  5341. # If we don't use `.F' as extension, the preprocessor is not run on the
  5342. # input file. (Note that this only needs to work for GNU compilers.)
  5343. ac_save_ext=$ac_ext
  5344. ac_ext=F
  5345. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5346. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5347. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5348. echo $ECHO_N "(cached) $ECHO_C" >&6
  5349. else
  5350. cat >conftest.$ac_ext <<_ACEOF
  5351. program main
  5352. #ifndef __GNUC__
  5353. choke me
  5354. #endif
  5355. end
  5356. _ACEOF
  5357. rm -f conftest.$ac_objext
  5358. if { (ac_try="$ac_compile"
  5359. case "(($ac_try" in
  5360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5361. *) ac_try_echo=$ac_try;;
  5362. esac
  5363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5364. (eval "$ac_compile") 2>conftest.er1
  5365. ac_status=$?
  5366. grep -v '^ *+' conftest.er1 >conftest.err
  5367. rm -f conftest.er1
  5368. cat conftest.err >&5
  5369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5370. (exit $ac_status); } && {
  5371. test -z "$ac_f77_werror_flag" ||
  5372. test ! -s conftest.err
  5373. } && test -s conftest.$ac_objext; then
  5374. ac_compiler_gnu=yes
  5375. else
  5376. echo "$as_me: failed program was:" >&5
  5377. sed 's/^/| /' conftest.$ac_ext >&5
  5378. ac_compiler_gnu=no
  5379. fi
  5380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5381. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5382. fi
  5383. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5384. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5385. ac_ext=$ac_save_ext
  5386. ac_test_FFLAGS=${FFLAGS+set}
  5387. ac_save_FFLAGS=$FFLAGS
  5388. FFLAGS=
  5389. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5390. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5391. if test "${ac_cv_prog_f77_g+set}" = set; then
  5392. echo $ECHO_N "(cached) $ECHO_C" >&6
  5393. else
  5394. FFLAGS=-g
  5395. cat >conftest.$ac_ext <<_ACEOF
  5396. program main
  5397. end
  5398. _ACEOF
  5399. rm -f conftest.$ac_objext
  5400. if { (ac_try="$ac_compile"
  5401. case "(($ac_try" in
  5402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5403. *) ac_try_echo=$ac_try;;
  5404. esac
  5405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5406. (eval "$ac_compile") 2>conftest.er1
  5407. ac_status=$?
  5408. grep -v '^ *+' conftest.er1 >conftest.err
  5409. rm -f conftest.er1
  5410. cat conftest.err >&5
  5411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5412. (exit $ac_status); } && {
  5413. test -z "$ac_f77_werror_flag" ||
  5414. test ! -s conftest.err
  5415. } && test -s conftest.$ac_objext; then
  5416. ac_cv_prog_f77_g=yes
  5417. else
  5418. echo "$as_me: failed program was:" >&5
  5419. sed 's/^/| /' conftest.$ac_ext >&5
  5420. ac_cv_prog_f77_g=no
  5421. fi
  5422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5423. fi
  5424. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5425. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5426. if test "$ac_test_FFLAGS" = set; then
  5427. FFLAGS=$ac_save_FFLAGS
  5428. elif test $ac_cv_prog_f77_g = yes; then
  5429. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5430. FFLAGS="-g -O2"
  5431. else
  5432. FFLAGS="-g"
  5433. fi
  5434. else
  5435. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5436. FFLAGS="-O2"
  5437. else
  5438. FFLAGS=
  5439. fi
  5440. fi
  5441. G77=`test $ac_compiler_gnu = yes && echo yes`
  5442. ac_ext=c
  5443. ac_cpp='$CPP $CPPFLAGS'
  5444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5447. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5448. # find the maximum length of command line arguments
  5449. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5450. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5451. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5452. echo $ECHO_N "(cached) $ECHO_C" >&6
  5453. else
  5454. i=0
  5455. teststring="ABCD"
  5456. case $build_os in
  5457. msdosdjgpp*)
  5458. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5459. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5460. # during glob expansion). Even if it were fixed, the result of this
  5461. # check would be larger than it should be.
  5462. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5463. ;;
  5464. gnu*)
  5465. # Under GNU Hurd, this test is not required because there is
  5466. # no limit to the length of command line arguments.
  5467. # Libtool will interpret -1 as no limit whatsoever
  5468. lt_cv_sys_max_cmd_len=-1;
  5469. ;;
  5470. cygwin* | mingw*)
  5471. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5472. # about 5 minutes as the teststring grows exponentially.
  5473. # Worse, since 9x/ME are not pre-emptively multitasking,
  5474. # you end up with a "frozen" computer, even though with patience
  5475. # the test eventually succeeds (with a max line length of 256k).
  5476. # Instead, let's just punt: use the minimum linelength reported by
  5477. # all of the supported platforms: 8192 (on NT/2K/XP).
  5478. lt_cv_sys_max_cmd_len=8192;
  5479. ;;
  5480. amigaos*)
  5481. # On AmigaOS with pdksh, this test takes hours, literally.
  5482. # So we just punt and use a minimum line length of 8192.
  5483. lt_cv_sys_max_cmd_len=8192;
  5484. ;;
  5485. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5486. # This has been around since 386BSD, at least. Likely further.
  5487. if test -x /sbin/sysctl; then
  5488. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5489. elif test -x /usr/sbin/sysctl; then
  5490. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5491. else
  5492. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5493. fi
  5494. # And add a safety zone
  5495. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5496. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5497. ;;
  5498. interix*)
  5499. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5500. lt_cv_sys_max_cmd_len=196608
  5501. ;;
  5502. osf*)
  5503. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5504. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5505. # nice to cause kernel panics so lets avoid the loop below.
  5506. # First set a reasonable default.
  5507. lt_cv_sys_max_cmd_len=16384
  5508. #
  5509. if test -x /sbin/sysconfig; then
  5510. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5511. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5512. esac
  5513. fi
  5514. ;;
  5515. sco3.2v5*)
  5516. lt_cv_sys_max_cmd_len=102400
  5517. ;;
  5518. sysv5* | sco5v6* | sysv4.2uw2*)
  5519. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5520. if test -n "$kargmax"; then
  5521. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5522. else
  5523. lt_cv_sys_max_cmd_len=32768
  5524. fi
  5525. ;;
  5526. *)
  5527. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5528. if test -n "$lt_cv_sys_max_cmd_len"; then
  5529. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5530. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5531. else
  5532. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5533. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5534. = "XX$teststring") >/dev/null 2>&1 &&
  5535. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5536. lt_cv_sys_max_cmd_len=$new_result &&
  5537. test $i != 17 # 1/2 MB should be enough
  5538. do
  5539. i=`expr $i + 1`
  5540. teststring=$teststring$teststring
  5541. done
  5542. teststring=
  5543. # Add a significant safety factor because C++ compilers can tack on massive
  5544. # amounts of additional arguments before passing them to the linker.
  5545. # It appears as though 1/2 is a usable value.
  5546. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5547. fi
  5548. ;;
  5549. esac
  5550. fi
  5551. if test -n $lt_cv_sys_max_cmd_len ; then
  5552. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5553. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5554. else
  5555. { echo "$as_me:$LINENO: result: none" >&5
  5556. echo "${ECHO_T}none" >&6; }
  5557. fi
  5558. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5559. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5560. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5561. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5562. echo $ECHO_N "(cached) $ECHO_C" >&6
  5563. else
  5564. # These are sane defaults that work on at least a few old systems.
  5565. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5566. # Character class describing NM global symbol codes.
  5567. symcode='[BCDEGRST]'
  5568. # Regexp to match symbols that can be accessed directly from C.
  5569. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5570. # Transform an extracted symbol line into a proper C declaration
  5571. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5572. # Transform an extracted symbol line into symbol name and symbol address
  5573. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5574. # Define system-specific variables.
  5575. case $host_os in
  5576. aix*)
  5577. symcode='[BCDT]'
  5578. ;;
  5579. cygwin* | mingw* | pw32*)
  5580. symcode='[ABCDGISTW]'
  5581. ;;
  5582. hpux*) # Its linker distinguishes data from code symbols
  5583. if test "$host_cpu" = ia64; then
  5584. symcode='[ABCDEGRST]'
  5585. fi
  5586. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5587. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5588. ;;
  5589. linux* | k*bsd*-gnu)
  5590. if test "$host_cpu" = ia64; then
  5591. symcode='[ABCDGIRSTW]'
  5592. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5593. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5594. fi
  5595. ;;
  5596. irix* | nonstopux*)
  5597. symcode='[BCDEGRST]'
  5598. ;;
  5599. osf*)
  5600. symcode='[BCDEGQRST]'
  5601. ;;
  5602. solaris*)
  5603. symcode='[BDRT]'
  5604. ;;
  5605. sco3.2v5*)
  5606. symcode='[DT]'
  5607. ;;
  5608. sysv4.2uw2*)
  5609. symcode='[DT]'
  5610. ;;
  5611. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5612. symcode='[ABDT]'
  5613. ;;
  5614. sysv4)
  5615. symcode='[DFNSTU]'
  5616. ;;
  5617. esac
  5618. # Handle CRLF in mingw tool chain
  5619. opt_cr=
  5620. case $build_os in
  5621. mingw*)
  5622. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5623. ;;
  5624. esac
  5625. # If we're using GNU nm, then use its standard symbol codes.
  5626. case `$NM -V 2>&1` in
  5627. *GNU* | *'with BFD'*)
  5628. symcode='[ABCDGIRSTW]' ;;
  5629. esac
  5630. # Try without a prefix undercore, then with it.
  5631. for ac_symprfx in "" "_"; do
  5632. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5633. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5634. # Write the raw and C identifiers.
  5635. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5636. # Check to see that the pipe works correctly.
  5637. pipe_works=no
  5638. rm -f conftest*
  5639. cat > conftest.$ac_ext <<EOF
  5640. #ifdef __cplusplus
  5641. extern "C" {
  5642. #endif
  5643. char nm_test_var;
  5644. void nm_test_func(){}
  5645. #ifdef __cplusplus
  5646. }
  5647. #endif
  5648. int main(){nm_test_var='a';nm_test_func();return(0);}
  5649. EOF
  5650. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5651. (eval $ac_compile) 2>&5
  5652. ac_status=$?
  5653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5654. (exit $ac_status); }; then
  5655. # Now try to grab the symbols.
  5656. nlist=conftest.nm
  5657. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5658. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5659. ac_status=$?
  5660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5661. (exit $ac_status); } && test -s "$nlist"; then
  5662. # Try sorting and uniquifying the output.
  5663. if sort "$nlist" | uniq > "$nlist"T; then
  5664. mv -f "$nlist"T "$nlist"
  5665. else
  5666. rm -f "$nlist"T
  5667. fi
  5668. # Make sure that we snagged all the symbols we need.
  5669. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5670. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5671. cat <<EOF > conftest.$ac_ext
  5672. #ifdef __cplusplus
  5673. extern "C" {
  5674. #endif
  5675. EOF
  5676. # Now generate the symbol file.
  5677. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5678. cat <<EOF >> conftest.$ac_ext
  5679. #if defined (__STDC__) && __STDC__
  5680. # define lt_ptr_t void *
  5681. #else
  5682. # define lt_ptr_t char *
  5683. # define const
  5684. #endif
  5685. /* The mapping between symbol names and symbols. */
  5686. const struct {
  5687. const char *name;
  5688. lt_ptr_t address;
  5689. }
  5690. lt_preloaded_symbols[] =
  5691. {
  5692. EOF
  5693. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5694. cat <<\EOF >> conftest.$ac_ext
  5695. {0, (lt_ptr_t) 0}
  5696. };
  5697. #ifdef __cplusplus
  5698. }
  5699. #endif
  5700. EOF
  5701. # Now try linking the two files.
  5702. mv conftest.$ac_objext conftstm.$ac_objext
  5703. lt_save_LIBS="$LIBS"
  5704. lt_save_CFLAGS="$CFLAGS"
  5705. LIBS="conftstm.$ac_objext"
  5706. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5707. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5708. (eval $ac_link) 2>&5
  5709. ac_status=$?
  5710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5712. pipe_works=yes
  5713. fi
  5714. LIBS="$lt_save_LIBS"
  5715. CFLAGS="$lt_save_CFLAGS"
  5716. else
  5717. echo "cannot find nm_test_func in $nlist" >&5
  5718. fi
  5719. else
  5720. echo "cannot find nm_test_var in $nlist" >&5
  5721. fi
  5722. else
  5723. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5724. fi
  5725. else
  5726. echo "$progname: failed program was:" >&5
  5727. cat conftest.$ac_ext >&5
  5728. fi
  5729. rm -f conftest* conftst*
  5730. # Do not use the global_symbol_pipe unless it works.
  5731. if test "$pipe_works" = yes; then
  5732. break
  5733. else
  5734. lt_cv_sys_global_symbol_pipe=
  5735. fi
  5736. done
  5737. fi
  5738. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5739. lt_cv_sys_global_symbol_to_cdecl=
  5740. fi
  5741. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5742. { echo "$as_me:$LINENO: result: failed" >&5
  5743. echo "${ECHO_T}failed" >&6; }
  5744. else
  5745. { echo "$as_me:$LINENO: result: ok" >&5
  5746. echo "${ECHO_T}ok" >&6; }
  5747. fi
  5748. { echo "$as_me:$LINENO: checking for objdir" >&5
  5749. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5750. if test "${lt_cv_objdir+set}" = set; then
  5751. echo $ECHO_N "(cached) $ECHO_C" >&6
  5752. else
  5753. rm -f .libs 2>/dev/null
  5754. mkdir .libs 2>/dev/null
  5755. if test -d .libs; then
  5756. lt_cv_objdir=.libs
  5757. else
  5758. # MS-DOS does not allow filenames that begin with a dot.
  5759. lt_cv_objdir=_libs
  5760. fi
  5761. rmdir .libs 2>/dev/null
  5762. fi
  5763. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5764. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5765. objdir=$lt_cv_objdir
  5766. case $host_os in
  5767. aix3*)
  5768. # AIX sometimes has problems with the GCC collect2 program. For some
  5769. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5770. # vanish in a puff of smoke.
  5771. if test "X${COLLECT_NAMES+set}" != Xset; then
  5772. COLLECT_NAMES=
  5773. export COLLECT_NAMES
  5774. fi
  5775. ;;
  5776. esac
  5777. # Sed substitution that helps us do robust quoting. It backslashifies
  5778. # metacharacters that are still active within double-quoted strings.
  5779. Xsed='sed -e 1s/^X//'
  5780. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5781. # Same as above, but do not quote variable references.
  5782. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5783. # Sed substitution to delay expansion of an escaped shell variable in a
  5784. # double_quote_subst'ed string.
  5785. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5786. # Sed substitution to avoid accidental globbing in evaled expressions
  5787. no_glob_subst='s/\*/\\\*/g'
  5788. # Constants:
  5789. rm="rm -f"
  5790. # Global variables:
  5791. default_ofile=libtool
  5792. can_build_shared=yes
  5793. # All known linkers require a `.a' archive for static linking (except MSVC,
  5794. # which needs '.lib').
  5795. libext=a
  5796. ltmain="$ac_aux_dir/ltmain.sh"
  5797. ofile="$default_ofile"
  5798. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5799. if test -n "$ac_tool_prefix"; then
  5800. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5801. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5802. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5803. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5804. if test "${ac_cv_prog_AR+set}" = set; then
  5805. echo $ECHO_N "(cached) $ECHO_C" >&6
  5806. else
  5807. if test -n "$AR"; then
  5808. ac_cv_prog_AR="$AR" # Let the user override the test.
  5809. else
  5810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5811. for as_dir in $PATH
  5812. do
  5813. IFS=$as_save_IFS
  5814. test -z "$as_dir" && as_dir=.
  5815. for ac_exec_ext in '' $ac_executable_extensions; do
  5816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5817. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5818. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5819. break 2
  5820. fi
  5821. done
  5822. done
  5823. IFS=$as_save_IFS
  5824. fi
  5825. fi
  5826. AR=$ac_cv_prog_AR
  5827. if test -n "$AR"; then
  5828. { echo "$as_me:$LINENO: result: $AR" >&5
  5829. echo "${ECHO_T}$AR" >&6; }
  5830. else
  5831. { echo "$as_me:$LINENO: result: no" >&5
  5832. echo "${ECHO_T}no" >&6; }
  5833. fi
  5834. fi
  5835. if test -z "$ac_cv_prog_AR"; then
  5836. ac_ct_AR=$AR
  5837. # Extract the first word of "ar", so it can be a program name with args.
  5838. set dummy ar; ac_word=$2
  5839. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5840. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5841. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5842. echo $ECHO_N "(cached) $ECHO_C" >&6
  5843. else
  5844. if test -n "$ac_ct_AR"; then
  5845. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5846. else
  5847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5848. for as_dir in $PATH
  5849. do
  5850. IFS=$as_save_IFS
  5851. test -z "$as_dir" && as_dir=.
  5852. for ac_exec_ext in '' $ac_executable_extensions; do
  5853. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5854. ac_cv_prog_ac_ct_AR="ar"
  5855. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5856. break 2
  5857. fi
  5858. done
  5859. done
  5860. IFS=$as_save_IFS
  5861. fi
  5862. fi
  5863. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5864. if test -n "$ac_ct_AR"; then
  5865. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5866. echo "${ECHO_T}$ac_ct_AR" >&6; }
  5867. else
  5868. { echo "$as_me:$LINENO: result: no" >&5
  5869. echo "${ECHO_T}no" >&6; }
  5870. fi
  5871. if test "x$ac_ct_AR" = x; then
  5872. AR="false"
  5873. else
  5874. case $cross_compiling:$ac_tool_warned in
  5875. yes:)
  5876. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5877. whose name does not start with the host triplet. If you think this
  5878. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5879. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5880. whose name does not start with the host triplet. If you think this
  5881. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5882. ac_tool_warned=yes ;;
  5883. esac
  5884. AR=$ac_ct_AR
  5885. fi
  5886. else
  5887. AR="$ac_cv_prog_AR"
  5888. fi
  5889. if test -n "$ac_tool_prefix"; then
  5890. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5891. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5892. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5894. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5895. echo $ECHO_N "(cached) $ECHO_C" >&6
  5896. else
  5897. if test -n "$RANLIB"; then
  5898. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5899. else
  5900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5901. for as_dir in $PATH
  5902. do
  5903. IFS=$as_save_IFS
  5904. test -z "$as_dir" && as_dir=.
  5905. for ac_exec_ext in '' $ac_executable_extensions; do
  5906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5907. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5909. break 2
  5910. fi
  5911. done
  5912. done
  5913. IFS=$as_save_IFS
  5914. fi
  5915. fi
  5916. RANLIB=$ac_cv_prog_RANLIB
  5917. if test -n "$RANLIB"; then
  5918. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  5919. echo "${ECHO_T}$RANLIB" >&6; }
  5920. else
  5921. { echo "$as_me:$LINENO: result: no" >&5
  5922. echo "${ECHO_T}no" >&6; }
  5923. fi
  5924. fi
  5925. if test -z "$ac_cv_prog_RANLIB"; then
  5926. ac_ct_RANLIB=$RANLIB
  5927. # Extract the first word of "ranlib", so it can be a program name with args.
  5928. set dummy ranlib; ac_word=$2
  5929. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5930. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5931. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5932. echo $ECHO_N "(cached) $ECHO_C" >&6
  5933. else
  5934. if test -n "$ac_ct_RANLIB"; then
  5935. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5936. else
  5937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5938. for as_dir in $PATH
  5939. do
  5940. IFS=$as_save_IFS
  5941. test -z "$as_dir" && as_dir=.
  5942. for ac_exec_ext in '' $ac_executable_extensions; do
  5943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5944. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5945. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5946. break 2
  5947. fi
  5948. done
  5949. done
  5950. IFS=$as_save_IFS
  5951. fi
  5952. fi
  5953. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5954. if test -n "$ac_ct_RANLIB"; then
  5955. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5956. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  5957. else
  5958. { echo "$as_me:$LINENO: result: no" >&5
  5959. echo "${ECHO_T}no" >&6; }
  5960. fi
  5961. if test "x$ac_ct_RANLIB" = x; then
  5962. RANLIB=":"
  5963. else
  5964. case $cross_compiling:$ac_tool_warned in
  5965. yes:)
  5966. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5967. whose name does not start with the host triplet. If you think this
  5968. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5969. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5970. whose name does not start with the host triplet. If you think this
  5971. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5972. ac_tool_warned=yes ;;
  5973. esac
  5974. RANLIB=$ac_ct_RANLIB
  5975. fi
  5976. else
  5977. RANLIB="$ac_cv_prog_RANLIB"
  5978. fi
  5979. if test -n "$ac_tool_prefix"; then
  5980. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5981. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5982. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5983. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5984. if test "${ac_cv_prog_STRIP+set}" = set; then
  5985. echo $ECHO_N "(cached) $ECHO_C" >&6
  5986. else
  5987. if test -n "$STRIP"; then
  5988. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5989. else
  5990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991. for as_dir in $PATH
  5992. do
  5993. IFS=$as_save_IFS
  5994. test -z "$as_dir" && as_dir=.
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5997. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5998. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999. break 2
  6000. fi
  6001. done
  6002. done
  6003. IFS=$as_save_IFS
  6004. fi
  6005. fi
  6006. STRIP=$ac_cv_prog_STRIP
  6007. if test -n "$STRIP"; then
  6008. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6009. echo "${ECHO_T}$STRIP" >&6; }
  6010. else
  6011. { echo "$as_me:$LINENO: result: no" >&5
  6012. echo "${ECHO_T}no" >&6; }
  6013. fi
  6014. fi
  6015. if test -z "$ac_cv_prog_STRIP"; then
  6016. ac_ct_STRIP=$STRIP
  6017. # Extract the first word of "strip", so it can be a program name with args.
  6018. set dummy strip; ac_word=$2
  6019. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6020. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6021. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6022. echo $ECHO_N "(cached) $ECHO_C" >&6
  6023. else
  6024. if test -n "$ac_ct_STRIP"; then
  6025. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6026. else
  6027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6028. for as_dir in $PATH
  6029. do
  6030. IFS=$as_save_IFS
  6031. test -z "$as_dir" && as_dir=.
  6032. for ac_exec_ext in '' $ac_executable_extensions; do
  6033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6034. ac_cv_prog_ac_ct_STRIP="strip"
  6035. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6036. break 2
  6037. fi
  6038. done
  6039. done
  6040. IFS=$as_save_IFS
  6041. fi
  6042. fi
  6043. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6044. if test -n "$ac_ct_STRIP"; then
  6045. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6046. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6047. else
  6048. { echo "$as_me:$LINENO: result: no" >&5
  6049. echo "${ECHO_T}no" >&6; }
  6050. fi
  6051. if test "x$ac_ct_STRIP" = x; then
  6052. STRIP=":"
  6053. else
  6054. case $cross_compiling:$ac_tool_warned in
  6055. yes:)
  6056. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6057. whose name does not start with the host triplet. If you think this
  6058. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6059. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6060. whose name does not start with the host triplet. If you think this
  6061. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6062. ac_tool_warned=yes ;;
  6063. esac
  6064. STRIP=$ac_ct_STRIP
  6065. fi
  6066. else
  6067. STRIP="$ac_cv_prog_STRIP"
  6068. fi
  6069. old_CC="$CC"
  6070. old_CFLAGS="$CFLAGS"
  6071. # Set sane defaults for various variables
  6072. test -z "$AR" && AR=ar
  6073. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6074. test -z "$AS" && AS=as
  6075. test -z "$CC" && CC=cc
  6076. test -z "$LTCC" && LTCC=$CC
  6077. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6078. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6079. test -z "$LD" && LD=ld
  6080. test -z "$LN_S" && LN_S="ln -s"
  6081. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6082. test -z "$NM" && NM=nm
  6083. test -z "$SED" && SED=sed
  6084. test -z "$OBJDUMP" && OBJDUMP=objdump
  6085. test -z "$RANLIB" && RANLIB=:
  6086. test -z "$STRIP" && STRIP=:
  6087. test -z "$ac_objext" && ac_objext=o
  6088. # Determine commands to create old-style static archives.
  6089. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6090. old_postinstall_cmds='chmod 644 $oldlib'
  6091. old_postuninstall_cmds=
  6092. if test -n "$RANLIB"; then
  6093. case $host_os in
  6094. openbsd*)
  6095. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6096. ;;
  6097. *)
  6098. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6099. ;;
  6100. esac
  6101. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6102. fi
  6103. for cc_temp in $compiler""; do
  6104. case $cc_temp in
  6105. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6106. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6107. \-*) ;;
  6108. *) break;;
  6109. esac
  6110. done
  6111. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6112. # Only perform the check for file, if the check method requires it
  6113. case $deplibs_check_method in
  6114. file_magic*)
  6115. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6116. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6117. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6118. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6119. echo $ECHO_N "(cached) $ECHO_C" >&6
  6120. else
  6121. case $MAGIC_CMD in
  6122. [\\/*] | ?:[\\/]*)
  6123. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6124. ;;
  6125. *)
  6126. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6127. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6128. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6129. for ac_dir in $ac_dummy; do
  6130. IFS="$lt_save_ifs"
  6131. test -z "$ac_dir" && ac_dir=.
  6132. if test -f $ac_dir/${ac_tool_prefix}file; then
  6133. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6134. if test -n "$file_magic_test_file"; then
  6135. case $deplibs_check_method in
  6136. "file_magic "*)
  6137. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6138. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6139. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6140. $EGREP "$file_magic_regex" > /dev/null; then
  6141. :
  6142. else
  6143. cat <<EOF 1>&2
  6144. *** Warning: the command libtool uses to detect shared libraries,
  6145. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6146. *** The result is that libtool may fail to recognize shared libraries
  6147. *** as such. This will affect the creation of libtool libraries that
  6148. *** depend on shared libraries, but programs linked with such libtool
  6149. *** libraries will work regardless of this problem. Nevertheless, you
  6150. *** may want to report the problem to your system manager and/or to
  6151. *** bug-libtool@gnu.org
  6152. EOF
  6153. fi ;;
  6154. esac
  6155. fi
  6156. break
  6157. fi
  6158. done
  6159. IFS="$lt_save_ifs"
  6160. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6161. ;;
  6162. esac
  6163. fi
  6164. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6165. if test -n "$MAGIC_CMD"; then
  6166. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6167. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6168. else
  6169. { echo "$as_me:$LINENO: result: no" >&5
  6170. echo "${ECHO_T}no" >&6; }
  6171. fi
  6172. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6173. if test -n "$ac_tool_prefix"; then
  6174. { echo "$as_me:$LINENO: checking for file" >&5
  6175. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6176. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6177. echo $ECHO_N "(cached) $ECHO_C" >&6
  6178. else
  6179. case $MAGIC_CMD in
  6180. [\\/*] | ?:[\\/]*)
  6181. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6182. ;;
  6183. *)
  6184. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6185. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6186. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6187. for ac_dir in $ac_dummy; do
  6188. IFS="$lt_save_ifs"
  6189. test -z "$ac_dir" && ac_dir=.
  6190. if test -f $ac_dir/file; then
  6191. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6192. if test -n "$file_magic_test_file"; then
  6193. case $deplibs_check_method in
  6194. "file_magic "*)
  6195. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6196. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6197. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6198. $EGREP "$file_magic_regex" > /dev/null; then
  6199. :
  6200. else
  6201. cat <<EOF 1>&2
  6202. *** Warning: the command libtool uses to detect shared libraries,
  6203. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6204. *** The result is that libtool may fail to recognize shared libraries
  6205. *** as such. This will affect the creation of libtool libraries that
  6206. *** depend on shared libraries, but programs linked with such libtool
  6207. *** libraries will work regardless of this problem. Nevertheless, you
  6208. *** may want to report the problem to your system manager and/or to
  6209. *** bug-libtool@gnu.org
  6210. EOF
  6211. fi ;;
  6212. esac
  6213. fi
  6214. break
  6215. fi
  6216. done
  6217. IFS="$lt_save_ifs"
  6218. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6219. ;;
  6220. esac
  6221. fi
  6222. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6223. if test -n "$MAGIC_CMD"; then
  6224. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6225. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6226. else
  6227. { echo "$as_me:$LINENO: result: no" >&5
  6228. echo "${ECHO_T}no" >&6; }
  6229. fi
  6230. else
  6231. MAGIC_CMD=:
  6232. fi
  6233. fi
  6234. fi
  6235. ;;
  6236. esac
  6237. enable_dlopen=no
  6238. enable_win32_dll=no
  6239. # Check whether --enable-libtool-lock was given.
  6240. if test "${enable_libtool_lock+set}" = set; then
  6241. enableval=$enable_libtool_lock;
  6242. fi
  6243. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6244. # Check whether --with-pic was given.
  6245. if test "${with_pic+set}" = set; then
  6246. withval=$with_pic; pic_mode="$withval"
  6247. else
  6248. pic_mode=default
  6249. fi
  6250. test -z "$pic_mode" && pic_mode=default
  6251. # Use C for the default configuration in the libtool script
  6252. tagname=
  6253. lt_save_CC="$CC"
  6254. ac_ext=c
  6255. ac_cpp='$CPP $CPPFLAGS'
  6256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6259. # Source file extension for C test sources.
  6260. ac_ext=c
  6261. # Object file extension for compiled C test sources.
  6262. objext=o
  6263. objext=$objext
  6264. # Code to be used in simple compile tests
  6265. lt_simple_compile_test_code="int some_variable = 0;"
  6266. # Code to be used in simple link tests
  6267. lt_simple_link_test_code='int main(){return(0);}'
  6268. # If no C compiler was specified, use CC.
  6269. LTCC=${LTCC-"$CC"}
  6270. # If no C compiler flags were specified, use CFLAGS.
  6271. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6272. # Allow CC to be a program name with arguments.
  6273. compiler=$CC
  6274. # save warnings/boilerplate of simple test code
  6275. ac_outfile=conftest.$ac_objext
  6276. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6277. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6278. _lt_compiler_boilerplate=`cat conftest.err`
  6279. $rm conftest*
  6280. ac_outfile=conftest.$ac_objext
  6281. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6282. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6283. _lt_linker_boilerplate=`cat conftest.err`
  6284. $rm conftest*
  6285. lt_prog_compiler_no_builtin_flag=
  6286. if test "$GCC" = yes; then
  6287. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6288. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6289. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6290. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6291. echo $ECHO_N "(cached) $ECHO_C" >&6
  6292. else
  6293. lt_cv_prog_compiler_rtti_exceptions=no
  6294. ac_outfile=conftest.$ac_objext
  6295. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6296. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6297. # Insert the option either (1) after the last *FLAGS variable, or
  6298. # (2) before a word containing "conftest.", or (3) at the end.
  6299. # Note that $ac_compile itself does not contain backslashes and begins
  6300. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6301. # The option is referenced via a variable to avoid confusing sed.
  6302. lt_compile=`echo "$ac_compile" | $SED \
  6303. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6304. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6305. -e 's:$: $lt_compiler_flag:'`
  6306. (eval echo "\"\$as_me:7048: $lt_compile\"" >&5)
  6307. (eval "$lt_compile" 2>conftest.err)
  6308. ac_status=$?
  6309. cat conftest.err >&5
  6310. echo "$as_me:7052: \$? = $ac_status" >&5
  6311. if (exit $ac_status) && test -s "$ac_outfile"; then
  6312. # The compiler can only warn and ignore the option if not recognized
  6313. # So say no if there are warnings other than the usual output.
  6314. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6315. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6316. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6317. lt_cv_prog_compiler_rtti_exceptions=yes
  6318. fi
  6319. fi
  6320. $rm conftest*
  6321. fi
  6322. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6323. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6324. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6325. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6326. else
  6327. :
  6328. fi
  6329. fi
  6330. lt_prog_compiler_wl=
  6331. lt_prog_compiler_pic=
  6332. lt_prog_compiler_static=
  6333. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6334. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6335. if test "$GCC" = yes; then
  6336. lt_prog_compiler_wl='-Wl,'
  6337. lt_prog_compiler_static='-static'
  6338. case $host_os in
  6339. aix*)
  6340. # All AIX code is PIC.
  6341. if test "$host_cpu" = ia64; then
  6342. # AIX 5 now supports IA64 processor
  6343. lt_prog_compiler_static='-Bstatic'
  6344. fi
  6345. ;;
  6346. amigaos*)
  6347. # FIXME: we need at least 68020 code to build shared libraries, but
  6348. # adding the `-m68020' flag to GCC prevents building anything better,
  6349. # like `-m68040'.
  6350. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6351. ;;
  6352. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6353. # PIC is the default for these OSes.
  6354. ;;
  6355. mingw* | cygwin* | pw32* | os2*)
  6356. # This hack is so that the source file can tell whether it is being
  6357. # built for inclusion in a dll (and should export symbols for example).
  6358. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6359. # (--disable-auto-import) libraries
  6360. lt_prog_compiler_pic='-DDLL_EXPORT'
  6361. ;;
  6362. darwin* | rhapsody*)
  6363. # PIC is the default on this platform
  6364. # Common symbols not allowed in MH_DYLIB files
  6365. lt_prog_compiler_pic='-fno-common'
  6366. ;;
  6367. interix[3-9]*)
  6368. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6369. # Instead, we relocate shared libraries at runtime.
  6370. ;;
  6371. msdosdjgpp*)
  6372. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6373. # on systems that don't support them.
  6374. lt_prog_compiler_can_build_shared=no
  6375. enable_shared=no
  6376. ;;
  6377. sysv4*MP*)
  6378. if test -d /usr/nec; then
  6379. lt_prog_compiler_pic=-Kconform_pic
  6380. fi
  6381. ;;
  6382. hpux*)
  6383. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6384. # not for PA HP-UX.
  6385. case $host_cpu in
  6386. hppa*64*|ia64*)
  6387. # +Z the default
  6388. ;;
  6389. *)
  6390. lt_prog_compiler_pic='-fPIC'
  6391. ;;
  6392. esac
  6393. ;;
  6394. *)
  6395. lt_prog_compiler_pic='-fPIC'
  6396. ;;
  6397. esac
  6398. else
  6399. # PORTME Check for flag to pass linker flags through the system compiler.
  6400. case $host_os in
  6401. aix*)
  6402. lt_prog_compiler_wl='-Wl,'
  6403. if test "$host_cpu" = ia64; then
  6404. # AIX 5 now supports IA64 processor
  6405. lt_prog_compiler_static='-Bstatic'
  6406. else
  6407. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6408. fi
  6409. ;;
  6410. darwin*)
  6411. # PIC is the default on this platform
  6412. # Common symbols not allowed in MH_DYLIB files
  6413. case $cc_basename in
  6414. xlc*)
  6415. lt_prog_compiler_pic='-qnocommon'
  6416. lt_prog_compiler_wl='-Wl,'
  6417. ;;
  6418. esac
  6419. ;;
  6420. mingw* | cygwin* | pw32* | os2*)
  6421. # This hack is so that the source file can tell whether it is being
  6422. # built for inclusion in a dll (and should export symbols for example).
  6423. lt_prog_compiler_pic='-DDLL_EXPORT'
  6424. ;;
  6425. hpux9* | hpux10* | hpux11*)
  6426. lt_prog_compiler_wl='-Wl,'
  6427. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6428. # not for PA HP-UX.
  6429. case $host_cpu in
  6430. hppa*64*|ia64*)
  6431. # +Z the default
  6432. ;;
  6433. *)
  6434. lt_prog_compiler_pic='+Z'
  6435. ;;
  6436. esac
  6437. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6438. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6439. ;;
  6440. irix5* | irix6* | nonstopux*)
  6441. lt_prog_compiler_wl='-Wl,'
  6442. # PIC (with -KPIC) is the default.
  6443. lt_prog_compiler_static='-non_shared'
  6444. ;;
  6445. newsos6)
  6446. lt_prog_compiler_pic='-KPIC'
  6447. lt_prog_compiler_static='-Bstatic'
  6448. ;;
  6449. linux* | k*bsd*-gnu)
  6450. case $cc_basename in
  6451. icc* | ecc*)
  6452. lt_prog_compiler_wl='-Wl,'
  6453. lt_prog_compiler_pic='-KPIC'
  6454. lt_prog_compiler_static='-static'
  6455. ;;
  6456. pgcc* | pgf77* | pgf90* | pgf95*)
  6457. # Portland Group compilers (*not* the Pentium gcc compiler,
  6458. # which looks to be a dead project)
  6459. lt_prog_compiler_wl='-Wl,'
  6460. lt_prog_compiler_pic='-fpic'
  6461. lt_prog_compiler_static='-Bstatic'
  6462. ;;
  6463. ccc*)
  6464. lt_prog_compiler_wl='-Wl,'
  6465. # All Alpha code is PIC.
  6466. lt_prog_compiler_static='-non_shared'
  6467. ;;
  6468. *)
  6469. case `$CC -V 2>&1 | sed 5q` in
  6470. *Sun\ C*)
  6471. # Sun C 5.9
  6472. lt_prog_compiler_pic='-KPIC'
  6473. lt_prog_compiler_static='-Bstatic'
  6474. lt_prog_compiler_wl='-Wl,'
  6475. ;;
  6476. *Sun\ F*)
  6477. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6478. lt_prog_compiler_pic='-KPIC'
  6479. lt_prog_compiler_static='-Bstatic'
  6480. lt_prog_compiler_wl=''
  6481. ;;
  6482. esac
  6483. ;;
  6484. esac
  6485. ;;
  6486. osf3* | osf4* | osf5*)
  6487. lt_prog_compiler_wl='-Wl,'
  6488. # All OSF/1 code is PIC.
  6489. lt_prog_compiler_static='-non_shared'
  6490. ;;
  6491. rdos*)
  6492. lt_prog_compiler_static='-non_shared'
  6493. ;;
  6494. solaris*)
  6495. lt_prog_compiler_pic='-KPIC'
  6496. lt_prog_compiler_static='-Bstatic'
  6497. case $cc_basename in
  6498. f77* | f90* | f95*)
  6499. lt_prog_compiler_wl='-Qoption ld ';;
  6500. *)
  6501. lt_prog_compiler_wl='-Wl,';;
  6502. esac
  6503. ;;
  6504. sunos4*)
  6505. lt_prog_compiler_wl='-Qoption ld '
  6506. lt_prog_compiler_pic='-PIC'
  6507. lt_prog_compiler_static='-Bstatic'
  6508. ;;
  6509. sysv4 | sysv4.2uw2* | sysv4.3*)
  6510. lt_prog_compiler_wl='-Wl,'
  6511. lt_prog_compiler_pic='-KPIC'
  6512. lt_prog_compiler_static='-Bstatic'
  6513. ;;
  6514. sysv4*MP*)
  6515. if test -d /usr/nec ;then
  6516. lt_prog_compiler_pic='-Kconform_pic'
  6517. lt_prog_compiler_static='-Bstatic'
  6518. fi
  6519. ;;
  6520. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6521. lt_prog_compiler_wl='-Wl,'
  6522. lt_prog_compiler_pic='-KPIC'
  6523. lt_prog_compiler_static='-Bstatic'
  6524. ;;
  6525. unicos*)
  6526. lt_prog_compiler_wl='-Wl,'
  6527. lt_prog_compiler_can_build_shared=no
  6528. ;;
  6529. uts4*)
  6530. lt_prog_compiler_pic='-pic'
  6531. lt_prog_compiler_static='-Bstatic'
  6532. ;;
  6533. *)
  6534. lt_prog_compiler_can_build_shared=no
  6535. ;;
  6536. esac
  6537. fi
  6538. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6539. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6540. #
  6541. # Check to make sure the PIC flag actually works.
  6542. #
  6543. if test -n "$lt_prog_compiler_pic"; then
  6544. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6545. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6546. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6547. echo $ECHO_N "(cached) $ECHO_C" >&6
  6548. else
  6549. lt_prog_compiler_pic_works=no
  6550. ac_outfile=conftest.$ac_objext
  6551. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6552. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6553. # Insert the option either (1) after the last *FLAGS variable, or
  6554. # (2) before a word containing "conftest.", or (3) at the end.
  6555. # Note that $ac_compile itself does not contain backslashes and begins
  6556. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6557. # The option is referenced via a variable to avoid confusing sed.
  6558. lt_compile=`echo "$ac_compile" | $SED \
  6559. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6560. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6561. -e 's:$: $lt_compiler_flag:'`
  6562. (eval echo "\"\$as_me:7338: $lt_compile\"" >&5)
  6563. (eval "$lt_compile" 2>conftest.err)
  6564. ac_status=$?
  6565. cat conftest.err >&5
  6566. echo "$as_me:7342: \$? = $ac_status" >&5
  6567. if (exit $ac_status) && test -s "$ac_outfile"; then
  6568. # The compiler can only warn and ignore the option if not recognized
  6569. # So say no if there are warnings other than the usual output.
  6570. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6571. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6572. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6573. lt_prog_compiler_pic_works=yes
  6574. fi
  6575. fi
  6576. $rm conftest*
  6577. fi
  6578. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6579. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6580. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6581. case $lt_prog_compiler_pic in
  6582. "" | " "*) ;;
  6583. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6584. esac
  6585. else
  6586. lt_prog_compiler_pic=
  6587. lt_prog_compiler_can_build_shared=no
  6588. fi
  6589. fi
  6590. case $host_os in
  6591. # For platforms which do not support PIC, -DPIC is meaningless:
  6592. *djgpp*)
  6593. lt_prog_compiler_pic=
  6594. ;;
  6595. *)
  6596. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6597. ;;
  6598. esac
  6599. #
  6600. # Check to make sure the static flag actually works.
  6601. #
  6602. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6603. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6604. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6605. if test "${lt_prog_compiler_static_works+set}" = set; then
  6606. echo $ECHO_N "(cached) $ECHO_C" >&6
  6607. else
  6608. lt_prog_compiler_static_works=no
  6609. save_LDFLAGS="$LDFLAGS"
  6610. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6611. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6612. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6613. # The linker can only warn and ignore the option if not recognized
  6614. # So say no if there are warnings
  6615. if test -s conftest.err; then
  6616. # Append any errors to the config.log.
  6617. cat conftest.err 1>&5
  6618. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6619. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6620. if diff conftest.exp conftest.er2 >/dev/null; then
  6621. lt_prog_compiler_static_works=yes
  6622. fi
  6623. else
  6624. lt_prog_compiler_static_works=yes
  6625. fi
  6626. fi
  6627. $rm conftest*
  6628. LDFLAGS="$save_LDFLAGS"
  6629. fi
  6630. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6631. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6632. if test x"$lt_prog_compiler_static_works" = xyes; then
  6633. :
  6634. else
  6635. lt_prog_compiler_static=
  6636. fi
  6637. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6638. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6639. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6640. echo $ECHO_N "(cached) $ECHO_C" >&6
  6641. else
  6642. lt_cv_prog_compiler_c_o=no
  6643. $rm -r conftest 2>/dev/null
  6644. mkdir conftest
  6645. cd conftest
  6646. mkdir out
  6647. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6648. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6649. # Insert the option either (1) after the last *FLAGS variable, or
  6650. # (2) before a word containing "conftest.", or (3) at the end.
  6651. # Note that $ac_compile itself does not contain backslashes and begins
  6652. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6653. lt_compile=`echo "$ac_compile" | $SED \
  6654. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6655. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6656. -e 's:$: $lt_compiler_flag:'`
  6657. (eval echo "\"\$as_me:7442: $lt_compile\"" >&5)
  6658. (eval "$lt_compile" 2>out/conftest.err)
  6659. ac_status=$?
  6660. cat out/conftest.err >&5
  6661. echo "$as_me:7446: \$? = $ac_status" >&5
  6662. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6663. then
  6664. # The compiler can only warn and ignore the option if not recognized
  6665. # So say no if there are warnings
  6666. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6667. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6668. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6669. lt_cv_prog_compiler_c_o=yes
  6670. fi
  6671. fi
  6672. chmod u+w . 2>&5
  6673. $rm conftest*
  6674. # SGI C++ compiler will create directory out/ii_files/ for
  6675. # template instantiation
  6676. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6677. $rm out/* && rmdir out
  6678. cd ..
  6679. rmdir conftest
  6680. $rm conftest*
  6681. fi
  6682. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6683. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6684. hard_links="nottested"
  6685. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6686. # do not overwrite the value of need_locks provided by the user
  6687. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6688. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6689. hard_links=yes
  6690. $rm conftest*
  6691. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6692. touch conftest.a
  6693. ln conftest.a conftest.b 2>&5 || hard_links=no
  6694. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6695. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6696. echo "${ECHO_T}$hard_links" >&6; }
  6697. if test "$hard_links" = no; then
  6698. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6699. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6700. need_locks=warn
  6701. fi
  6702. else
  6703. need_locks=no
  6704. fi
  6705. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6706. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6707. runpath_var=
  6708. allow_undefined_flag=
  6709. enable_shared_with_static_runtimes=no
  6710. archive_cmds=
  6711. archive_expsym_cmds=
  6712. old_archive_From_new_cmds=
  6713. old_archive_from_expsyms_cmds=
  6714. export_dynamic_flag_spec=
  6715. whole_archive_flag_spec=
  6716. thread_safe_flag_spec=
  6717. hardcode_libdir_flag_spec=
  6718. hardcode_libdir_flag_spec_ld=
  6719. hardcode_libdir_separator=
  6720. hardcode_direct=no
  6721. hardcode_minus_L=no
  6722. hardcode_shlibpath_var=unsupported
  6723. link_all_deplibs=unknown
  6724. hardcode_automatic=no
  6725. module_cmds=
  6726. module_expsym_cmds=
  6727. always_export_symbols=no
  6728. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6729. # include_expsyms should be a list of space-separated symbols to be *always*
  6730. # included in the symbol list
  6731. include_expsyms=
  6732. # exclude_expsyms can be an extended regexp of symbols to exclude
  6733. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6734. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6735. # as well as any symbol that contains `d'.
  6736. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6737. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6738. # platforms (ab)use it in PIC code, but their linkers get confused if
  6739. # the symbol is explicitly referenced. Since portable code cannot
  6740. # rely on this symbol name, it's probably fine to never include it in
  6741. # preloaded symbol tables.
  6742. extract_expsyms_cmds=
  6743. # Just being paranoid about ensuring that cc_basename is set.
  6744. for cc_temp in $compiler""; do
  6745. case $cc_temp in
  6746. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6747. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6748. \-*) ;;
  6749. *) break;;
  6750. esac
  6751. done
  6752. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6753. case $host_os in
  6754. cygwin* | mingw* | pw32*)
  6755. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6756. # When not using gcc, we currently assume that we are using
  6757. # Microsoft Visual C++.
  6758. if test "$GCC" != yes; then
  6759. with_gnu_ld=no
  6760. fi
  6761. ;;
  6762. interix*)
  6763. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6764. with_gnu_ld=yes
  6765. ;;
  6766. openbsd*)
  6767. with_gnu_ld=no
  6768. ;;
  6769. esac
  6770. ld_shlibs=yes
  6771. if test "$with_gnu_ld" = yes; then
  6772. # If archive_cmds runs LD, not CC, wlarc should be empty
  6773. wlarc='${wl}'
  6774. # Set some defaults for GNU ld with shared library support. These
  6775. # are reset later if shared libraries are not supported. Putting them
  6776. # here allows them to be overridden if necessary.
  6777. runpath_var=LD_RUN_PATH
  6778. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6779. export_dynamic_flag_spec='${wl}--export-dynamic'
  6780. # ancient GNU ld didn't support --whole-archive et. al.
  6781. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6782. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6783. else
  6784. whole_archive_flag_spec=
  6785. fi
  6786. supports_anon_versioning=no
  6787. case `$LD -v 2>/dev/null` in
  6788. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6789. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6790. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6791. *\ 2.11.*) ;; # other 2.11 versions
  6792. *) supports_anon_versioning=yes ;;
  6793. esac
  6794. # See if GNU ld supports shared libraries.
  6795. case $host_os in
  6796. aix3* | aix4* | aix5*)
  6797. # On AIX/PPC, the GNU linker is very broken
  6798. if test "$host_cpu" != ia64; then
  6799. ld_shlibs=no
  6800. cat <<EOF 1>&2
  6801. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6802. *** to be unable to reliably create shared libraries on AIX.
  6803. *** Therefore, libtool is disabling shared libraries support. If you
  6804. *** really care for shared libraries, you may want to modify your PATH
  6805. *** so that a non-GNU linker is found, and then restart.
  6806. EOF
  6807. fi
  6808. ;;
  6809. amigaos*)
  6810. 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)'
  6811. hardcode_libdir_flag_spec='-L$libdir'
  6812. hardcode_minus_L=yes
  6813. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6814. # that the semantics of dynamic libraries on AmigaOS, at least up
  6815. # to version 4, is to share data among multiple programs linked
  6816. # with the same dynamic library. Since this doesn't match the
  6817. # behavior of shared libraries on other platforms, we can't use
  6818. # them.
  6819. ld_shlibs=no
  6820. ;;
  6821. beos*)
  6822. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6823. allow_undefined_flag=unsupported
  6824. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6825. # support --undefined. This deserves some investigation. FIXME
  6826. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6827. else
  6828. ld_shlibs=no
  6829. fi
  6830. ;;
  6831. cygwin* | mingw* | pw32*)
  6832. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6833. # as there is no search path for DLLs.
  6834. hardcode_libdir_flag_spec='-L$libdir'
  6835. allow_undefined_flag=unsupported
  6836. always_export_symbols=no
  6837. enable_shared_with_static_runtimes=yes
  6838. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6839. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6841. # If the export-symbols file already is a .def file (1st line
  6842. # is EXPORTS), use it as is; otherwise, prepend...
  6843. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6844. cp $export_symbols $output_objdir/$soname.def;
  6845. else
  6846. echo EXPORTS > $output_objdir/$soname.def;
  6847. cat $export_symbols >> $output_objdir/$soname.def;
  6848. fi~
  6849. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6850. else
  6851. ld_shlibs=no
  6852. fi
  6853. ;;
  6854. interix[3-9]*)
  6855. hardcode_direct=no
  6856. hardcode_shlibpath_var=no
  6857. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6858. export_dynamic_flag_spec='${wl}-E'
  6859. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6860. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6861. # default) and relocated if they conflict, which is a slow very memory
  6862. # consuming and fragmenting process. To avoid this, we pick a random,
  6863. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6864. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6865. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6866. 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'
  6867. ;;
  6868. gnu* | linux* | k*bsd*-gnu)
  6869. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6870. tmp_addflag=
  6871. case $cc_basename,$host_cpu in
  6872. pgcc*) # Portland Group C compiler
  6873. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6874. tmp_addflag=' $pic_flag'
  6875. ;;
  6876. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6877. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6878. tmp_addflag=' $pic_flag -Mnomain' ;;
  6879. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6880. tmp_addflag=' -i_dynamic' ;;
  6881. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6882. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6883. ifc* | ifort*) # Intel Fortran compiler
  6884. tmp_addflag=' -nofor_main' ;;
  6885. esac
  6886. case `$CC -V 2>&1 | sed 5q` in
  6887. *Sun\ C*) # Sun C 5.9
  6888. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6889. tmp_sharedflag='-G' ;;
  6890. *Sun\ F*) # Sun Fortran 8.3
  6891. tmp_sharedflag='-G' ;;
  6892. *)
  6893. tmp_sharedflag='-shared' ;;
  6894. esac
  6895. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6896. if test $supports_anon_versioning = yes; then
  6897. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6898. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6899. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6900. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6901. fi
  6902. link_all_deplibs=no
  6903. else
  6904. ld_shlibs=no
  6905. fi
  6906. ;;
  6907. netbsd* | netbsdelf*-gnu)
  6908. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6909. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6910. wlarc=
  6911. else
  6912. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6913. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6914. fi
  6915. ;;
  6916. solaris*)
  6917. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6918. ld_shlibs=no
  6919. cat <<EOF 1>&2
  6920. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6921. *** create shared libraries on Solaris systems. Therefore, libtool
  6922. *** is disabling shared libraries support. We urge you to upgrade GNU
  6923. *** binutils to release 2.9.1 or newer. Another option is to modify
  6924. *** your PATH or compiler configuration so that the native linker is
  6925. *** used, and then restart.
  6926. EOF
  6927. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6928. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6929. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6930. else
  6931. ld_shlibs=no
  6932. fi
  6933. ;;
  6934. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6935. case `$LD -v 2>&1` in
  6936. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6937. ld_shlibs=no
  6938. cat <<_LT_EOF 1>&2
  6939. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6940. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6941. *** is disabling shared libraries support. We urge you to upgrade GNU
  6942. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6943. *** your PATH or compiler configuration so that the native linker is
  6944. *** used, and then restart.
  6945. _LT_EOF
  6946. ;;
  6947. *)
  6948. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6949. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6950. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6951. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6952. else
  6953. ld_shlibs=no
  6954. fi
  6955. ;;
  6956. esac
  6957. ;;
  6958. sunos4*)
  6959. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6960. wlarc=
  6961. hardcode_direct=yes
  6962. hardcode_shlibpath_var=no
  6963. ;;
  6964. *)
  6965. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6966. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6967. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6968. else
  6969. ld_shlibs=no
  6970. fi
  6971. ;;
  6972. esac
  6973. if test "$ld_shlibs" = no; then
  6974. runpath_var=
  6975. hardcode_libdir_flag_spec=
  6976. export_dynamic_flag_spec=
  6977. whole_archive_flag_spec=
  6978. fi
  6979. else
  6980. # PORTME fill in a description of your system's linker (not GNU ld)
  6981. case $host_os in
  6982. aix3*)
  6983. allow_undefined_flag=unsupported
  6984. always_export_symbols=yes
  6985. 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'
  6986. # Note: this linker hardcodes the directories in LIBPATH if there
  6987. # are no directories specified by -L.
  6988. hardcode_minus_L=yes
  6989. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6990. # Neither direct hardcoding nor static linking is supported with a
  6991. # broken collect2.
  6992. hardcode_direct=unsupported
  6993. fi
  6994. ;;
  6995. aix4* | aix5*)
  6996. if test "$host_cpu" = ia64; then
  6997. # On IA64, the linker does run time linking by default, so we don't
  6998. # have to do anything special.
  6999. aix_use_runtimelinking=no
  7000. exp_sym_flag='-Bexport'
  7001. no_entry_flag=""
  7002. else
  7003. # If we're using GNU nm, then we don't want the "-C" option.
  7004. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7005. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7006. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7007. else
  7008. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7009. fi
  7010. aix_use_runtimelinking=no
  7011. # Test if we are trying to use run time linking or normal
  7012. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7013. # need to do runtime linking.
  7014. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7015. for ld_flag in $LDFLAGS; do
  7016. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7017. aix_use_runtimelinking=yes
  7018. break
  7019. fi
  7020. done
  7021. ;;
  7022. esac
  7023. exp_sym_flag='-bexport'
  7024. no_entry_flag='-bnoentry'
  7025. fi
  7026. # When large executables or shared objects are built, AIX ld can
  7027. # have problems creating the table of contents. If linking a library
  7028. # or program results in "error TOC overflow" add -mminimal-toc to
  7029. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7030. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7031. archive_cmds=''
  7032. hardcode_direct=yes
  7033. hardcode_libdir_separator=':'
  7034. link_all_deplibs=yes
  7035. if test "$GCC" = yes; then
  7036. case $host_os in aix4.[012]|aix4.[012].*)
  7037. # We only want to do this on AIX 4.2 and lower, the check
  7038. # below for broken collect2 doesn't work under 4.3+
  7039. collect2name=`${CC} -print-prog-name=collect2`
  7040. if test -f "$collect2name" && \
  7041. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7042. then
  7043. # We have reworked collect2
  7044. :
  7045. else
  7046. # We have old collect2
  7047. hardcode_direct=unsupported
  7048. # It fails to find uninstalled libraries when the uninstalled
  7049. # path is not listed in the libpath. Setting hardcode_minus_L
  7050. # to unsupported forces relinking
  7051. hardcode_minus_L=yes
  7052. hardcode_libdir_flag_spec='-L$libdir'
  7053. hardcode_libdir_separator=
  7054. fi
  7055. ;;
  7056. esac
  7057. shared_flag='-shared'
  7058. if test "$aix_use_runtimelinking" = yes; then
  7059. shared_flag="$shared_flag "'${wl}-G'
  7060. fi
  7061. else
  7062. # not using gcc
  7063. if test "$host_cpu" = ia64; then
  7064. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7065. # chokes on -Wl,-G. The following line is correct:
  7066. shared_flag='-G'
  7067. else
  7068. if test "$aix_use_runtimelinking" = yes; then
  7069. shared_flag='${wl}-G'
  7070. else
  7071. shared_flag='${wl}-bM:SRE'
  7072. fi
  7073. fi
  7074. fi
  7075. # It seems that -bexpall does not export symbols beginning with
  7076. # underscore (_), so it is better to generate a list of symbols to export.
  7077. always_export_symbols=yes
  7078. if test "$aix_use_runtimelinking" = yes; then
  7079. # Warning - without using the other runtime loading flags (-brtl),
  7080. # -berok will link without error, but may produce a broken library.
  7081. allow_undefined_flag='-berok'
  7082. # Determine the default libpath from the value encoded in an empty executable.
  7083. cat >conftest.$ac_ext <<_ACEOF
  7084. /* confdefs.h. */
  7085. _ACEOF
  7086. cat confdefs.h >>conftest.$ac_ext
  7087. cat >>conftest.$ac_ext <<_ACEOF
  7088. /* end confdefs.h. */
  7089. int
  7090. main ()
  7091. {
  7092. ;
  7093. return 0;
  7094. }
  7095. _ACEOF
  7096. rm -f conftest.$ac_objext conftest$ac_exeext
  7097. if { (ac_try="$ac_link"
  7098. case "(($ac_try" in
  7099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7100. *) ac_try_echo=$ac_try;;
  7101. esac
  7102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7103. (eval "$ac_link") 2>conftest.er1
  7104. ac_status=$?
  7105. grep -v '^ *+' conftest.er1 >conftest.err
  7106. rm -f conftest.er1
  7107. cat conftest.err >&5
  7108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7109. (exit $ac_status); } && {
  7110. test -z "$ac_c_werror_flag" ||
  7111. test ! -s conftest.err
  7112. } && test -s conftest$ac_exeext &&
  7113. $as_test_x conftest$ac_exeext; then
  7114. lt_aix_libpath_sed='
  7115. /Import File Strings/,/^$/ {
  7116. /^0/ {
  7117. s/^0 *\(.*\)$/\1/
  7118. p
  7119. }
  7120. }'
  7121. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7122. # Check for a 64-bit object if we didn't find anything.
  7123. if test -z "$aix_libpath"; then
  7124. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7125. fi
  7126. else
  7127. echo "$as_me: failed program was:" >&5
  7128. sed 's/^/| /' conftest.$ac_ext >&5
  7129. fi
  7130. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7131. conftest$ac_exeext conftest.$ac_ext
  7132. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7133. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7134. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7135. else
  7136. if test "$host_cpu" = ia64; then
  7137. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7138. allow_undefined_flag="-z nodefs"
  7139. 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"
  7140. else
  7141. # Determine the default libpath from the value encoded in an empty executable.
  7142. cat >conftest.$ac_ext <<_ACEOF
  7143. /* confdefs.h. */
  7144. _ACEOF
  7145. cat confdefs.h >>conftest.$ac_ext
  7146. cat >>conftest.$ac_ext <<_ACEOF
  7147. /* end confdefs.h. */
  7148. int
  7149. main ()
  7150. {
  7151. ;
  7152. return 0;
  7153. }
  7154. _ACEOF
  7155. rm -f conftest.$ac_objext conftest$ac_exeext
  7156. if { (ac_try="$ac_link"
  7157. case "(($ac_try" in
  7158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7159. *) ac_try_echo=$ac_try;;
  7160. esac
  7161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7162. (eval "$ac_link") 2>conftest.er1
  7163. ac_status=$?
  7164. grep -v '^ *+' conftest.er1 >conftest.err
  7165. rm -f conftest.er1
  7166. cat conftest.err >&5
  7167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7168. (exit $ac_status); } && {
  7169. test -z "$ac_c_werror_flag" ||
  7170. test ! -s conftest.err
  7171. } && test -s conftest$ac_exeext &&
  7172. $as_test_x conftest$ac_exeext; then
  7173. lt_aix_libpath_sed='
  7174. /Import File Strings/,/^$/ {
  7175. /^0/ {
  7176. s/^0 *\(.*\)$/\1/
  7177. p
  7178. }
  7179. }'
  7180. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7181. # Check for a 64-bit object if we didn't find anything.
  7182. if test -z "$aix_libpath"; then
  7183. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7184. fi
  7185. else
  7186. echo "$as_me: failed program was:" >&5
  7187. sed 's/^/| /' conftest.$ac_ext >&5
  7188. fi
  7189. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7190. conftest$ac_exeext conftest.$ac_ext
  7191. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7192. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7193. # Warning - without using the other run time loading flags,
  7194. # -berok will link without error, but may produce a broken library.
  7195. no_undefined_flag=' ${wl}-bernotok'
  7196. allow_undefined_flag=' ${wl}-berok'
  7197. # Exported symbols can be pulled into shared objects from archives
  7198. whole_archive_flag_spec='$convenience'
  7199. archive_cmds_need_lc=yes
  7200. # This is similar to how AIX traditionally builds its shared libraries.
  7201. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7202. fi
  7203. fi
  7204. ;;
  7205. amigaos*)
  7206. 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)'
  7207. hardcode_libdir_flag_spec='-L$libdir'
  7208. hardcode_minus_L=yes
  7209. # see comment about different semantics on the GNU ld section
  7210. ld_shlibs=no
  7211. ;;
  7212. bsdi[45]*)
  7213. export_dynamic_flag_spec=-rdynamic
  7214. ;;
  7215. cygwin* | mingw* | pw32*)
  7216. # When not using gcc, we currently assume that we are using
  7217. # Microsoft Visual C++.
  7218. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7219. # no search path for DLLs.
  7220. hardcode_libdir_flag_spec=' '
  7221. allow_undefined_flag=unsupported
  7222. # Tell ltmain to make .lib files, not .a files.
  7223. libext=lib
  7224. # Tell ltmain to make .dll files, not .so files.
  7225. shrext_cmds=".dll"
  7226. # FIXME: Setting linknames here is a bad hack.
  7227. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7228. # The linker will automatically build a .lib file if we build a DLL.
  7229. old_archive_From_new_cmds='true'
  7230. # FIXME: Should let the user specify the lib program.
  7231. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7232. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7233. enable_shared_with_static_runtimes=yes
  7234. ;;
  7235. darwin* | rhapsody*)
  7236. case $host_os in
  7237. rhapsody* | darwin1.[012])
  7238. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7239. ;;
  7240. *) # Darwin 1.3 on
  7241. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7242. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7243. else
  7244. case ${MACOSX_DEPLOYMENT_TARGET} in
  7245. 10.[012])
  7246. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7247. ;;
  7248. 10.*)
  7249. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7250. ;;
  7251. esac
  7252. fi
  7253. ;;
  7254. esac
  7255. archive_cmds_need_lc=no
  7256. hardcode_direct=no
  7257. hardcode_automatic=yes
  7258. hardcode_shlibpath_var=unsupported
  7259. whole_archive_flag_spec=''
  7260. link_all_deplibs=yes
  7261. if test "$GCC" = yes ; then
  7262. output_verbose_link_cmd='echo'
  7263. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7264. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7265. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7266. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7267. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7268. else
  7269. case $cc_basename in
  7270. xlc*)
  7271. output_verbose_link_cmd='echo'
  7272. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7273. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7274. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7275. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7276. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7277. ;;
  7278. *)
  7279. ld_shlibs=no
  7280. ;;
  7281. esac
  7282. fi
  7283. ;;
  7284. dgux*)
  7285. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7286. hardcode_libdir_flag_spec='-L$libdir'
  7287. hardcode_shlibpath_var=no
  7288. ;;
  7289. freebsd1*)
  7290. ld_shlibs=no
  7291. ;;
  7292. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7293. # support. Future versions do this automatically, but an explicit c++rt0.o
  7294. # does not break anything, and helps significantly (at the cost of a little
  7295. # extra space).
  7296. freebsd2.2*)
  7297. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7298. hardcode_libdir_flag_spec='-R$libdir'
  7299. hardcode_direct=yes
  7300. hardcode_shlibpath_var=no
  7301. ;;
  7302. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7303. freebsd2*)
  7304. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7305. hardcode_direct=yes
  7306. hardcode_minus_L=yes
  7307. hardcode_shlibpath_var=no
  7308. ;;
  7309. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7310. freebsd* | dragonfly*)
  7311. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7312. hardcode_libdir_flag_spec='-R$libdir'
  7313. hardcode_direct=yes
  7314. hardcode_shlibpath_var=no
  7315. ;;
  7316. hpux9*)
  7317. if test "$GCC" = yes; then
  7318. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7319. else
  7320. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7321. fi
  7322. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7323. hardcode_libdir_separator=:
  7324. hardcode_direct=yes
  7325. # hardcode_minus_L: Not really in the search PATH,
  7326. # but as the default location of the library.
  7327. hardcode_minus_L=yes
  7328. export_dynamic_flag_spec='${wl}-E'
  7329. ;;
  7330. hpux10*)
  7331. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7332. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7333. else
  7334. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7335. fi
  7336. if test "$with_gnu_ld" = no; then
  7337. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7338. hardcode_libdir_separator=:
  7339. hardcode_direct=yes
  7340. export_dynamic_flag_spec='${wl}-E'
  7341. # hardcode_minus_L: Not really in the search PATH,
  7342. # but as the default location of the library.
  7343. hardcode_minus_L=yes
  7344. fi
  7345. ;;
  7346. hpux11*)
  7347. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7348. case $host_cpu in
  7349. hppa*64*)
  7350. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7351. ;;
  7352. ia64*)
  7353. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7354. ;;
  7355. *)
  7356. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7357. ;;
  7358. esac
  7359. else
  7360. case $host_cpu in
  7361. hppa*64*)
  7362. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7363. ;;
  7364. ia64*)
  7365. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7366. ;;
  7367. *)
  7368. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7369. ;;
  7370. esac
  7371. fi
  7372. if test "$with_gnu_ld" = no; then
  7373. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7374. hardcode_libdir_separator=:
  7375. case $host_cpu in
  7376. hppa*64*|ia64*)
  7377. hardcode_libdir_flag_spec_ld='+b $libdir'
  7378. hardcode_direct=no
  7379. hardcode_shlibpath_var=no
  7380. ;;
  7381. *)
  7382. hardcode_direct=yes
  7383. export_dynamic_flag_spec='${wl}-E'
  7384. # hardcode_minus_L: Not really in the search PATH,
  7385. # but as the default location of the library.
  7386. hardcode_minus_L=yes
  7387. ;;
  7388. esac
  7389. fi
  7390. ;;
  7391. irix5* | irix6* | nonstopux*)
  7392. if test "$GCC" = yes; then
  7393. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7394. else
  7395. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7396. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7397. fi
  7398. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7399. hardcode_libdir_separator=:
  7400. link_all_deplibs=yes
  7401. ;;
  7402. netbsd* | netbsdelf*-gnu)
  7403. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7404. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7405. else
  7406. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7407. fi
  7408. hardcode_libdir_flag_spec='-R$libdir'
  7409. hardcode_direct=yes
  7410. hardcode_shlibpath_var=no
  7411. ;;
  7412. newsos6)
  7413. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7414. hardcode_direct=yes
  7415. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7416. hardcode_libdir_separator=:
  7417. hardcode_shlibpath_var=no
  7418. ;;
  7419. openbsd*)
  7420. if test -f /usr/libexec/ld.so; then
  7421. hardcode_direct=yes
  7422. hardcode_shlibpath_var=no
  7423. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7424. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7425. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7426. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7427. export_dynamic_flag_spec='${wl}-E'
  7428. else
  7429. case $host_os in
  7430. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7431. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7432. hardcode_libdir_flag_spec='-R$libdir'
  7433. ;;
  7434. *)
  7435. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7436. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7437. ;;
  7438. esac
  7439. fi
  7440. else
  7441. ld_shlibs=no
  7442. fi
  7443. ;;
  7444. os2*)
  7445. hardcode_libdir_flag_spec='-L$libdir'
  7446. hardcode_minus_L=yes
  7447. allow_undefined_flag=unsupported
  7448. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7449. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7450. ;;
  7451. osf3*)
  7452. if test "$GCC" = yes; then
  7453. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7454. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7455. else
  7456. allow_undefined_flag=' -expect_unresolved \*'
  7457. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7458. fi
  7459. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7460. hardcode_libdir_separator=:
  7461. ;;
  7462. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7463. if test "$GCC" = yes; then
  7464. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7465. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7466. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7467. else
  7468. allow_undefined_flag=' -expect_unresolved \*'
  7469. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7470. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7471. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7472. # Both c and cxx compiler support -rpath directly
  7473. hardcode_libdir_flag_spec='-rpath $libdir'
  7474. fi
  7475. hardcode_libdir_separator=:
  7476. ;;
  7477. solaris*)
  7478. no_undefined_flag=' -z text'
  7479. if test "$GCC" = yes; then
  7480. wlarc='${wl}'
  7481. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7482. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7483. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7484. else
  7485. wlarc=''
  7486. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7487. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7488. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7489. fi
  7490. hardcode_libdir_flag_spec='-R$libdir'
  7491. hardcode_shlibpath_var=no
  7492. case $host_os in
  7493. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7494. *)
  7495. # The compiler driver will combine and reorder linker options,
  7496. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7497. # but is careful enough not to reorder.
  7498. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7499. if test "$GCC" = yes; then
  7500. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7501. else
  7502. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7503. fi
  7504. ;;
  7505. esac
  7506. link_all_deplibs=yes
  7507. ;;
  7508. sunos4*)
  7509. if test "x$host_vendor" = xsequent; then
  7510. # Use $CC to link under sequent, because it throws in some extra .o
  7511. # files that make .init and .fini sections work.
  7512. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7513. else
  7514. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7515. fi
  7516. hardcode_libdir_flag_spec='-L$libdir'
  7517. hardcode_direct=yes
  7518. hardcode_minus_L=yes
  7519. hardcode_shlibpath_var=no
  7520. ;;
  7521. sysv4)
  7522. case $host_vendor in
  7523. sni)
  7524. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7525. hardcode_direct=yes # is this really true???
  7526. ;;
  7527. siemens)
  7528. ## LD is ld it makes a PLAMLIB
  7529. ## CC just makes a GrossModule.
  7530. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7531. reload_cmds='$CC -r -o $output$reload_objs'
  7532. hardcode_direct=no
  7533. ;;
  7534. motorola)
  7535. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7536. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7537. ;;
  7538. esac
  7539. runpath_var='LD_RUN_PATH'
  7540. hardcode_shlibpath_var=no
  7541. ;;
  7542. sysv4.3*)
  7543. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7544. hardcode_shlibpath_var=no
  7545. export_dynamic_flag_spec='-Bexport'
  7546. ;;
  7547. sysv4*MP*)
  7548. if test -d /usr/nec; then
  7549. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7550. hardcode_shlibpath_var=no
  7551. runpath_var=LD_RUN_PATH
  7552. hardcode_runpath_var=yes
  7553. ld_shlibs=yes
  7554. fi
  7555. ;;
  7556. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7557. no_undefined_flag='${wl}-z,text'
  7558. archive_cmds_need_lc=no
  7559. hardcode_shlibpath_var=no
  7560. runpath_var='LD_RUN_PATH'
  7561. if test "$GCC" = yes; then
  7562. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7563. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7564. else
  7565. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7566. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7567. fi
  7568. ;;
  7569. sysv5* | sco3.2v5* | sco5v6*)
  7570. # Note: We can NOT use -z defs as we might desire, because we do not
  7571. # link with -lc, and that would cause any symbols used from libc to
  7572. # always be unresolved, which means just about no library would
  7573. # ever link correctly. If we're not using GNU ld we use -z text
  7574. # though, which does catch some bad symbols but isn't as heavy-handed
  7575. # as -z defs.
  7576. no_undefined_flag='${wl}-z,text'
  7577. allow_undefined_flag='${wl}-z,nodefs'
  7578. archive_cmds_need_lc=no
  7579. hardcode_shlibpath_var=no
  7580. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7581. hardcode_libdir_separator=':'
  7582. link_all_deplibs=yes
  7583. export_dynamic_flag_spec='${wl}-Bexport'
  7584. runpath_var='LD_RUN_PATH'
  7585. if test "$GCC" = yes; then
  7586. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7587. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7588. else
  7589. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7590. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7591. fi
  7592. ;;
  7593. uts4*)
  7594. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7595. hardcode_libdir_flag_spec='-L$libdir'
  7596. hardcode_shlibpath_var=no
  7597. ;;
  7598. *)
  7599. ld_shlibs=no
  7600. ;;
  7601. esac
  7602. fi
  7603. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7604. echo "${ECHO_T}$ld_shlibs" >&6; }
  7605. test "$ld_shlibs" = no && can_build_shared=no
  7606. #
  7607. # Do we need to explicitly link libc?
  7608. #
  7609. case "x$archive_cmds_need_lc" in
  7610. x|xyes)
  7611. # Assume -lc should be added
  7612. archive_cmds_need_lc=yes
  7613. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7614. case $archive_cmds in
  7615. *'~'*)
  7616. # FIXME: we may have to deal with multi-command sequences.
  7617. ;;
  7618. '$CC '*)
  7619. # Test whether the compiler implicitly links with -lc since on some
  7620. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7621. # to ld, don't add -lc before -lgcc.
  7622. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7623. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7624. $rm conftest*
  7625. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7626. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7627. (eval $ac_compile) 2>&5
  7628. ac_status=$?
  7629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. (exit $ac_status); } 2>conftest.err; then
  7631. soname=conftest
  7632. lib=conftest
  7633. libobjs=conftest.$ac_objext
  7634. deplibs=
  7635. wl=$lt_prog_compiler_wl
  7636. pic_flag=$lt_prog_compiler_pic
  7637. compiler_flags=-v
  7638. linker_flags=-v
  7639. verstring=
  7640. output_objdir=.
  7641. libname=conftest
  7642. lt_save_allow_undefined_flag=$allow_undefined_flag
  7643. allow_undefined_flag=
  7644. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7645. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7646. ac_status=$?
  7647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7648. (exit $ac_status); }
  7649. then
  7650. archive_cmds_need_lc=no
  7651. else
  7652. archive_cmds_need_lc=yes
  7653. fi
  7654. allow_undefined_flag=$lt_save_allow_undefined_flag
  7655. else
  7656. cat conftest.err 1>&5
  7657. fi
  7658. $rm conftest*
  7659. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7660. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7661. ;;
  7662. esac
  7663. fi
  7664. ;;
  7665. esac
  7666. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7667. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7668. library_names_spec=
  7669. libname_spec='lib$name'
  7670. soname_spec=
  7671. shrext_cmds=".so"
  7672. postinstall_cmds=
  7673. postuninstall_cmds=
  7674. finish_cmds=
  7675. finish_eval=
  7676. shlibpath_var=
  7677. shlibpath_overrides_runpath=unknown
  7678. version_type=none
  7679. dynamic_linker="$host_os ld.so"
  7680. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7681. if test "$GCC" = yes; then
  7682. case $host_os in
  7683. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7684. *) lt_awk_arg="/^libraries:/" ;;
  7685. esac
  7686. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7687. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  7688. # if the path contains ";" then we assume it to be the separator
  7689. # otherwise default to the standard path separator (i.e. ":") - it is
  7690. # assumed that no part of a normal pathname contains ";" but that should
  7691. # okay in the real world where ";" in dirpaths is itself problematic.
  7692. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7693. else
  7694. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7695. fi
  7696. # Ok, now we have the path, separated by spaces, we can step through it
  7697. # and add multilib dir if necessary.
  7698. lt_tmp_lt_search_path_spec=
  7699. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7700. for lt_sys_path in $lt_search_path_spec; do
  7701. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7702. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7703. else
  7704. test -d "$lt_sys_path" && \
  7705. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7706. fi
  7707. done
  7708. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  7709. BEGIN {RS=" "; FS="/|\n";} {
  7710. lt_foo="";
  7711. lt_count=0;
  7712. for (lt_i = NF; lt_i > 0; lt_i--) {
  7713. if ($lt_i != "" && $lt_i != ".") {
  7714. if ($lt_i == "..") {
  7715. lt_count++;
  7716. } else {
  7717. if (lt_count == 0) {
  7718. lt_foo="/" $lt_i lt_foo;
  7719. } else {
  7720. lt_count--;
  7721. }
  7722. }
  7723. }
  7724. }
  7725. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7726. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7727. }'`
  7728. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  7729. else
  7730. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7731. fi
  7732. need_lib_prefix=unknown
  7733. hardcode_into_libs=no
  7734. # when you set need_version to no, make sure it does not cause -set_version
  7735. # flags to be left without arguments
  7736. need_version=unknown
  7737. case $host_os in
  7738. aix3*)
  7739. version_type=linux
  7740. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7741. shlibpath_var=LIBPATH
  7742. # AIX 3 has no versioning support, so we append a major version to the name.
  7743. soname_spec='${libname}${release}${shared_ext}$major'
  7744. ;;
  7745. aix4* | aix5*)
  7746. version_type=linux
  7747. need_lib_prefix=no
  7748. need_version=no
  7749. hardcode_into_libs=yes
  7750. if test "$host_cpu" = ia64; then
  7751. # AIX 5 supports IA64
  7752. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7753. shlibpath_var=LD_LIBRARY_PATH
  7754. else
  7755. # With GCC up to 2.95.x, collect2 would create an import file
  7756. # for dependence libraries. The import file would start with
  7757. # the line `#! .'. This would cause the generated library to
  7758. # depend on `.', always an invalid library. This was fixed in
  7759. # development snapshots of GCC prior to 3.0.
  7760. case $host_os in
  7761. aix4 | aix4.[01] | aix4.[01].*)
  7762. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7763. echo ' yes '
  7764. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7765. :
  7766. else
  7767. can_build_shared=no
  7768. fi
  7769. ;;
  7770. esac
  7771. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7772. # soname into executable. Probably we can add versioning support to
  7773. # collect2, so additional links can be useful in future.
  7774. if test "$aix_use_runtimelinking" = yes; then
  7775. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7776. # instead of lib<name>.a to let people know that these are not
  7777. # typical AIX shared libraries.
  7778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7779. else
  7780. # We preserve .a as extension for shared libraries through AIX4.2
  7781. # and later when we are not doing run time linking.
  7782. library_names_spec='${libname}${release}.a $libname.a'
  7783. soname_spec='${libname}${release}${shared_ext}$major'
  7784. fi
  7785. shlibpath_var=LIBPATH
  7786. fi
  7787. ;;
  7788. amigaos*)
  7789. library_names_spec='$libname.ixlibrary $libname.a'
  7790. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7791. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  7792. ;;
  7793. beos*)
  7794. library_names_spec='${libname}${shared_ext}'
  7795. dynamic_linker="$host_os ld.so"
  7796. shlibpath_var=LIBRARY_PATH
  7797. ;;
  7798. bsdi[45]*)
  7799. version_type=linux
  7800. need_version=no
  7801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7802. soname_spec='${libname}${release}${shared_ext}$major'
  7803. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7804. shlibpath_var=LD_LIBRARY_PATH
  7805. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7806. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7807. # the default ld.so.conf also contains /usr/contrib/lib and
  7808. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7809. # libtool to hard-code these into programs
  7810. ;;
  7811. cygwin* | mingw* | pw32*)
  7812. version_type=windows
  7813. shrext_cmds=".dll"
  7814. need_version=no
  7815. need_lib_prefix=no
  7816. case $GCC,$host_os in
  7817. yes,cygwin* | yes,mingw* | yes,pw32*)
  7818. library_names_spec='$libname.dll.a'
  7819. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7820. postinstall_cmds='base_file=`basename \${file}`~
  7821. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7822. dldir=$destdir/`dirname \$dlpath`~
  7823. test -d \$dldir || mkdir -p \$dldir~
  7824. $install_prog $dir/$dlname \$dldir/$dlname~
  7825. chmod a+x \$dldir/$dlname'
  7826. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7827. dlpath=$dir/\$dldll~
  7828. $rm \$dlpath'
  7829. shlibpath_overrides_runpath=yes
  7830. case $host_os in
  7831. cygwin*)
  7832. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7833. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7834. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7835. ;;
  7836. mingw*)
  7837. # MinGW DLLs use traditional 'lib' prefix
  7838. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7839. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7840. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7841. # It is most probably a Windows format PATH printed by
  7842. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7843. # path with ; separators, and with drive letters. We can handle the
  7844. # drive letters (cygwin fileutils understands them), so leave them,
  7845. # especially as we might pass files found there to a mingw objdump,
  7846. # which wouldn't understand a cygwinified path. Ahh.
  7847. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7848. else
  7849. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7850. fi
  7851. ;;
  7852. pw32*)
  7853. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7854. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7855. ;;
  7856. esac
  7857. ;;
  7858. *)
  7859. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7860. ;;
  7861. esac
  7862. dynamic_linker='Win32 ld.exe'
  7863. # FIXME: first we should search . and the directory the executable is in
  7864. shlibpath_var=PATH
  7865. ;;
  7866. darwin* | rhapsody*)
  7867. dynamic_linker="$host_os dyld"
  7868. version_type=darwin
  7869. need_lib_prefix=no
  7870. need_version=no
  7871. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7872. soname_spec='${libname}${release}${major}$shared_ext'
  7873. shlibpath_overrides_runpath=yes
  7874. shlibpath_var=DYLD_LIBRARY_PATH
  7875. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7876. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7877. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7878. ;;
  7879. dgux*)
  7880. version_type=linux
  7881. need_lib_prefix=no
  7882. need_version=no
  7883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7884. soname_spec='${libname}${release}${shared_ext}$major'
  7885. shlibpath_var=LD_LIBRARY_PATH
  7886. ;;
  7887. freebsd1*)
  7888. dynamic_linker=no
  7889. ;;
  7890. freebsd* | dragonfly*)
  7891. # DragonFly does not have aout. When/if they implement a new
  7892. # versioning mechanism, adjust this.
  7893. if test -x /usr/bin/objformat; then
  7894. objformat=`/usr/bin/objformat`
  7895. else
  7896. case $host_os in
  7897. freebsd[123]*) objformat=aout ;;
  7898. *) objformat=elf ;;
  7899. esac
  7900. fi
  7901. version_type=freebsd-$objformat
  7902. case $version_type in
  7903. freebsd-elf*)
  7904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7905. need_version=no
  7906. need_lib_prefix=no
  7907. ;;
  7908. freebsd-*)
  7909. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7910. need_version=yes
  7911. ;;
  7912. esac
  7913. shlibpath_var=LD_LIBRARY_PATH
  7914. case $host_os in
  7915. freebsd2*)
  7916. shlibpath_overrides_runpath=yes
  7917. ;;
  7918. freebsd3.[01]* | freebsdelf3.[01]*)
  7919. shlibpath_overrides_runpath=yes
  7920. hardcode_into_libs=yes
  7921. ;;
  7922. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7923. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7924. shlibpath_overrides_runpath=no
  7925. hardcode_into_libs=yes
  7926. ;;
  7927. *) # from 4.6 on, and DragonFly
  7928. shlibpath_overrides_runpath=yes
  7929. hardcode_into_libs=yes
  7930. ;;
  7931. esac
  7932. ;;
  7933. gnu*)
  7934. version_type=linux
  7935. need_lib_prefix=no
  7936. need_version=no
  7937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7938. soname_spec='${libname}${release}${shared_ext}$major'
  7939. shlibpath_var=LD_LIBRARY_PATH
  7940. hardcode_into_libs=yes
  7941. ;;
  7942. hpux9* | hpux10* | hpux11*)
  7943. # Give a soname corresponding to the major version so that dld.sl refuses to
  7944. # link against other versions.
  7945. version_type=sunos
  7946. need_lib_prefix=no
  7947. need_version=no
  7948. case $host_cpu in
  7949. ia64*)
  7950. shrext_cmds='.so'
  7951. hardcode_into_libs=yes
  7952. dynamic_linker="$host_os dld.so"
  7953. shlibpath_var=LD_LIBRARY_PATH
  7954. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7956. soname_spec='${libname}${release}${shared_ext}$major'
  7957. if test "X$HPUX_IA64_MODE" = X32; then
  7958. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7959. else
  7960. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7961. fi
  7962. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7963. ;;
  7964. hppa*64*)
  7965. shrext_cmds='.sl'
  7966. hardcode_into_libs=yes
  7967. dynamic_linker="$host_os dld.sl"
  7968. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7969. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7971. soname_spec='${libname}${release}${shared_ext}$major'
  7972. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7973. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7974. ;;
  7975. *)
  7976. shrext_cmds='.sl'
  7977. dynamic_linker="$host_os dld.sl"
  7978. shlibpath_var=SHLIB_PATH
  7979. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7981. soname_spec='${libname}${release}${shared_ext}$major'
  7982. ;;
  7983. esac
  7984. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7985. postinstall_cmds='chmod 555 $lib'
  7986. ;;
  7987. interix[3-9]*)
  7988. version_type=linux
  7989. need_lib_prefix=no
  7990. need_version=no
  7991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7992. soname_spec='${libname}${release}${shared_ext}$major'
  7993. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7994. shlibpath_var=LD_LIBRARY_PATH
  7995. shlibpath_overrides_runpath=no
  7996. hardcode_into_libs=yes
  7997. ;;
  7998. irix5* | irix6* | nonstopux*)
  7999. case $host_os in
  8000. nonstopux*) version_type=nonstopux ;;
  8001. *)
  8002. if test "$lt_cv_prog_gnu_ld" = yes; then
  8003. version_type=linux
  8004. else
  8005. version_type=irix
  8006. fi ;;
  8007. esac
  8008. need_lib_prefix=no
  8009. need_version=no
  8010. soname_spec='${libname}${release}${shared_ext}$major'
  8011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8012. case $host_os in
  8013. irix5* | nonstopux*)
  8014. libsuff= shlibsuff=
  8015. ;;
  8016. *)
  8017. case $LD in # libtool.m4 will add one of these switches to LD
  8018. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8019. libsuff= shlibsuff= libmagic=32-bit;;
  8020. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8021. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8022. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8023. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8024. *) libsuff= shlibsuff= libmagic=never-match;;
  8025. esac
  8026. ;;
  8027. esac
  8028. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8029. shlibpath_overrides_runpath=no
  8030. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8031. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8032. hardcode_into_libs=yes
  8033. ;;
  8034. # No shared lib support for Linux oldld, aout, or coff.
  8035. linux*oldld* | linux*aout* | linux*coff*)
  8036. dynamic_linker=no
  8037. ;;
  8038. # This must be Linux ELF.
  8039. linux* | k*bsd*-gnu)
  8040. version_type=linux
  8041. need_lib_prefix=no
  8042. need_version=no
  8043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8044. soname_spec='${libname}${release}${shared_ext}$major'
  8045. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8046. shlibpath_var=LD_LIBRARY_PATH
  8047. shlibpath_overrides_runpath=no
  8048. # This implies no fast_install, which is unacceptable.
  8049. # Some rework will be needed to allow for fast_install
  8050. # before this can be enabled.
  8051. hardcode_into_libs=yes
  8052. # Append ld.so.conf contents to the search path
  8053. if test -f /etc/ld.so.conf; then
  8054. 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;/^$/d' | tr '\n' ' '`
  8055. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8056. fi
  8057. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8058. # powerpc, because MkLinux only supported shared libraries with the
  8059. # GNU dynamic linker. Since this was broken with cross compilers,
  8060. # most powerpc-linux boxes support dynamic linking these days and
  8061. # people can always --disable-shared, the test was removed, and we
  8062. # assume the GNU/Linux dynamic linker is in use.
  8063. dynamic_linker='GNU/Linux ld.so'
  8064. ;;
  8065. netbsdelf*-gnu)
  8066. version_type=linux
  8067. need_lib_prefix=no
  8068. need_version=no
  8069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8070. soname_spec='${libname}${release}${shared_ext}$major'
  8071. shlibpath_var=LD_LIBRARY_PATH
  8072. shlibpath_overrides_runpath=no
  8073. hardcode_into_libs=yes
  8074. dynamic_linker='NetBSD ld.elf_so'
  8075. ;;
  8076. netbsd*)
  8077. version_type=sunos
  8078. need_lib_prefix=no
  8079. need_version=no
  8080. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8082. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8083. dynamic_linker='NetBSD (a.out) ld.so'
  8084. else
  8085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8086. soname_spec='${libname}${release}${shared_ext}$major'
  8087. dynamic_linker='NetBSD ld.elf_so'
  8088. fi
  8089. shlibpath_var=LD_LIBRARY_PATH
  8090. shlibpath_overrides_runpath=yes
  8091. hardcode_into_libs=yes
  8092. ;;
  8093. newsos6)
  8094. version_type=linux
  8095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8096. shlibpath_var=LD_LIBRARY_PATH
  8097. shlibpath_overrides_runpath=yes
  8098. ;;
  8099. nto-qnx*)
  8100. version_type=linux
  8101. need_lib_prefix=no
  8102. need_version=no
  8103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8104. soname_spec='${libname}${release}${shared_ext}$major'
  8105. shlibpath_var=LD_LIBRARY_PATH
  8106. shlibpath_overrides_runpath=yes
  8107. ;;
  8108. openbsd*)
  8109. version_type=sunos
  8110. sys_lib_dlsearch_path_spec="/usr/lib"
  8111. need_lib_prefix=no
  8112. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8113. case $host_os in
  8114. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8115. *) need_version=no ;;
  8116. esac
  8117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8118. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8119. shlibpath_var=LD_LIBRARY_PATH
  8120. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8121. case $host_os in
  8122. openbsd2.[89] | openbsd2.[89].*)
  8123. shlibpath_overrides_runpath=no
  8124. ;;
  8125. *)
  8126. shlibpath_overrides_runpath=yes
  8127. ;;
  8128. esac
  8129. else
  8130. shlibpath_overrides_runpath=yes
  8131. fi
  8132. ;;
  8133. os2*)
  8134. libname_spec='$name'
  8135. shrext_cmds=".dll"
  8136. need_lib_prefix=no
  8137. library_names_spec='$libname${shared_ext} $libname.a'
  8138. dynamic_linker='OS/2 ld.exe'
  8139. shlibpath_var=LIBPATH
  8140. ;;
  8141. osf3* | osf4* | osf5*)
  8142. version_type=osf
  8143. need_lib_prefix=no
  8144. need_version=no
  8145. soname_spec='${libname}${release}${shared_ext}$major'
  8146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8147. shlibpath_var=LD_LIBRARY_PATH
  8148. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8149. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8150. ;;
  8151. rdos*)
  8152. dynamic_linker=no
  8153. ;;
  8154. solaris*)
  8155. version_type=linux
  8156. need_lib_prefix=no
  8157. need_version=no
  8158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8159. soname_spec='${libname}${release}${shared_ext}$major'
  8160. shlibpath_var=LD_LIBRARY_PATH
  8161. shlibpath_overrides_runpath=yes
  8162. hardcode_into_libs=yes
  8163. # ldd complains unless libraries are executable
  8164. postinstall_cmds='chmod +x $lib'
  8165. ;;
  8166. sunos4*)
  8167. version_type=sunos
  8168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8169. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8170. shlibpath_var=LD_LIBRARY_PATH
  8171. shlibpath_overrides_runpath=yes
  8172. if test "$with_gnu_ld" = yes; then
  8173. need_lib_prefix=no
  8174. fi
  8175. need_version=yes
  8176. ;;
  8177. sysv4 | sysv4.3*)
  8178. version_type=linux
  8179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8180. soname_spec='${libname}${release}${shared_ext}$major'
  8181. shlibpath_var=LD_LIBRARY_PATH
  8182. case $host_vendor in
  8183. sni)
  8184. shlibpath_overrides_runpath=no
  8185. need_lib_prefix=no
  8186. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8187. runpath_var=LD_RUN_PATH
  8188. ;;
  8189. siemens)
  8190. need_lib_prefix=no
  8191. ;;
  8192. motorola)
  8193. need_lib_prefix=no
  8194. need_version=no
  8195. shlibpath_overrides_runpath=no
  8196. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8197. ;;
  8198. esac
  8199. ;;
  8200. sysv4*MP*)
  8201. if test -d /usr/nec ;then
  8202. version_type=linux
  8203. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8204. soname_spec='$libname${shared_ext}.$major'
  8205. shlibpath_var=LD_LIBRARY_PATH
  8206. fi
  8207. ;;
  8208. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8209. version_type=freebsd-elf
  8210. need_lib_prefix=no
  8211. need_version=no
  8212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8213. soname_spec='${libname}${release}${shared_ext}$major'
  8214. shlibpath_var=LD_LIBRARY_PATH
  8215. hardcode_into_libs=yes
  8216. if test "$with_gnu_ld" = yes; then
  8217. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8218. shlibpath_overrides_runpath=no
  8219. else
  8220. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8221. shlibpath_overrides_runpath=yes
  8222. case $host_os in
  8223. sco3.2v5*)
  8224. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8225. ;;
  8226. esac
  8227. fi
  8228. sys_lib_dlsearch_path_spec='/usr/lib'
  8229. ;;
  8230. uts4*)
  8231. version_type=linux
  8232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8233. soname_spec='${libname}${release}${shared_ext}$major'
  8234. shlibpath_var=LD_LIBRARY_PATH
  8235. ;;
  8236. *)
  8237. dynamic_linker=no
  8238. ;;
  8239. esac
  8240. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8241. echo "${ECHO_T}$dynamic_linker" >&6; }
  8242. test "$dynamic_linker" = no && can_build_shared=no
  8243. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8244. if test "$GCC" = yes; then
  8245. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8246. fi
  8247. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8248. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8249. hardcode_action=
  8250. if test -n "$hardcode_libdir_flag_spec" || \
  8251. test -n "$runpath_var" || \
  8252. test "X$hardcode_automatic" = "Xyes" ; then
  8253. # We can hardcode non-existant directories.
  8254. if test "$hardcode_direct" != no &&
  8255. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8256. # have to relink, otherwise we might link with an installed library
  8257. # when we should be linking with a yet-to-be-installed one
  8258. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8259. test "$hardcode_minus_L" != no; then
  8260. # Linking always hardcodes the temporary library directory.
  8261. hardcode_action=relink
  8262. else
  8263. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8264. hardcode_action=immediate
  8265. fi
  8266. else
  8267. # We cannot hardcode anything, or else we can only hardcode existing
  8268. # directories.
  8269. hardcode_action=unsupported
  8270. fi
  8271. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8272. echo "${ECHO_T}$hardcode_action" >&6; }
  8273. if test "$hardcode_action" = relink; then
  8274. # Fast installation is not supported
  8275. enable_fast_install=no
  8276. elif test "$shlibpath_overrides_runpath" = yes ||
  8277. test "$enable_shared" = no; then
  8278. # Fast installation is not necessary
  8279. enable_fast_install=needless
  8280. fi
  8281. striplib=
  8282. old_striplib=
  8283. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8284. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8285. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8286. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8287. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8288. { echo "$as_me:$LINENO: result: yes" >&5
  8289. echo "${ECHO_T}yes" >&6; }
  8290. else
  8291. # FIXME - insert some real tests, host_os isn't really good enough
  8292. case $host_os in
  8293. darwin*)
  8294. if test -n "$STRIP" ; then
  8295. striplib="$STRIP -x"
  8296. old_striplib="$STRIP -S"
  8297. { echo "$as_me:$LINENO: result: yes" >&5
  8298. echo "${ECHO_T}yes" >&6; }
  8299. else
  8300. { echo "$as_me:$LINENO: result: no" >&5
  8301. echo "${ECHO_T}no" >&6; }
  8302. fi
  8303. ;;
  8304. *)
  8305. { echo "$as_me:$LINENO: result: no" >&5
  8306. echo "${ECHO_T}no" >&6; }
  8307. ;;
  8308. esac
  8309. fi
  8310. if test "x$enable_dlopen" != xyes; then
  8311. enable_dlopen=unknown
  8312. enable_dlopen_self=unknown
  8313. enable_dlopen_self_static=unknown
  8314. else
  8315. lt_cv_dlopen=no
  8316. lt_cv_dlopen_libs=
  8317. case $host_os in
  8318. beos*)
  8319. lt_cv_dlopen="load_add_on"
  8320. lt_cv_dlopen_libs=
  8321. lt_cv_dlopen_self=yes
  8322. ;;
  8323. mingw* | pw32*)
  8324. lt_cv_dlopen="LoadLibrary"
  8325. lt_cv_dlopen_libs=
  8326. ;;
  8327. cygwin*)
  8328. lt_cv_dlopen="dlopen"
  8329. lt_cv_dlopen_libs=
  8330. ;;
  8331. darwin*)
  8332. # if libdl is installed we need to link against it
  8333. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8334. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8335. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8336. echo $ECHO_N "(cached) $ECHO_C" >&6
  8337. else
  8338. ac_check_lib_save_LIBS=$LIBS
  8339. LIBS="-ldl $LIBS"
  8340. cat >conftest.$ac_ext <<_ACEOF
  8341. /* confdefs.h. */
  8342. _ACEOF
  8343. cat confdefs.h >>conftest.$ac_ext
  8344. cat >>conftest.$ac_ext <<_ACEOF
  8345. /* end confdefs.h. */
  8346. /* Override any GCC internal prototype to avoid an error.
  8347. Use char because int might match the return type of a GCC
  8348. builtin and then its argument prototype would still apply. */
  8349. #ifdef __cplusplus
  8350. extern "C"
  8351. #endif
  8352. char dlopen ();
  8353. int
  8354. main ()
  8355. {
  8356. return dlopen ();
  8357. ;
  8358. return 0;
  8359. }
  8360. _ACEOF
  8361. rm -f conftest.$ac_objext conftest$ac_exeext
  8362. if { (ac_try="$ac_link"
  8363. case "(($ac_try" in
  8364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8365. *) ac_try_echo=$ac_try;;
  8366. esac
  8367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8368. (eval "$ac_link") 2>conftest.er1
  8369. ac_status=$?
  8370. grep -v '^ *+' conftest.er1 >conftest.err
  8371. rm -f conftest.er1
  8372. cat conftest.err >&5
  8373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8374. (exit $ac_status); } && {
  8375. test -z "$ac_c_werror_flag" ||
  8376. test ! -s conftest.err
  8377. } && test -s conftest$ac_exeext &&
  8378. $as_test_x conftest$ac_exeext; then
  8379. ac_cv_lib_dl_dlopen=yes
  8380. else
  8381. echo "$as_me: failed program was:" >&5
  8382. sed 's/^/| /' conftest.$ac_ext >&5
  8383. ac_cv_lib_dl_dlopen=no
  8384. fi
  8385. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8386. conftest$ac_exeext conftest.$ac_ext
  8387. LIBS=$ac_check_lib_save_LIBS
  8388. fi
  8389. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8390. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8391. if test $ac_cv_lib_dl_dlopen = yes; then
  8392. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8393. else
  8394. lt_cv_dlopen="dyld"
  8395. lt_cv_dlopen_libs=
  8396. lt_cv_dlopen_self=yes
  8397. fi
  8398. ;;
  8399. *)
  8400. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8401. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8402. if test "${ac_cv_func_shl_load+set}" = set; then
  8403. echo $ECHO_N "(cached) $ECHO_C" >&6
  8404. else
  8405. cat >conftest.$ac_ext <<_ACEOF
  8406. /* confdefs.h. */
  8407. _ACEOF
  8408. cat confdefs.h >>conftest.$ac_ext
  8409. cat >>conftest.$ac_ext <<_ACEOF
  8410. /* end confdefs.h. */
  8411. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8412. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8413. #define shl_load innocuous_shl_load
  8414. /* System header to define __stub macros and hopefully few prototypes,
  8415. which can conflict with char shl_load (); below.
  8416. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8417. <limits.h> exists even on freestanding compilers. */
  8418. #ifdef __STDC__
  8419. # include <limits.h>
  8420. #else
  8421. # include <assert.h>
  8422. #endif
  8423. #undef shl_load
  8424. /* Override any GCC internal prototype to avoid an error.
  8425. Use char because int might match the return type of a GCC
  8426. builtin and then its argument prototype would still apply. */
  8427. #ifdef __cplusplus
  8428. extern "C"
  8429. #endif
  8430. char shl_load ();
  8431. /* The GNU C library defines this for functions which it implements
  8432. to always fail with ENOSYS. Some functions are actually named
  8433. something starting with __ and the normal name is an alias. */
  8434. #if defined __stub_shl_load || defined __stub___shl_load
  8435. choke me
  8436. #endif
  8437. int
  8438. main ()
  8439. {
  8440. return shl_load ();
  8441. ;
  8442. return 0;
  8443. }
  8444. _ACEOF
  8445. rm -f conftest.$ac_objext conftest$ac_exeext
  8446. if { (ac_try="$ac_link"
  8447. case "(($ac_try" in
  8448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8449. *) ac_try_echo=$ac_try;;
  8450. esac
  8451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8452. (eval "$ac_link") 2>conftest.er1
  8453. ac_status=$?
  8454. grep -v '^ *+' conftest.er1 >conftest.err
  8455. rm -f conftest.er1
  8456. cat conftest.err >&5
  8457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8458. (exit $ac_status); } && {
  8459. test -z "$ac_c_werror_flag" ||
  8460. test ! -s conftest.err
  8461. } && test -s conftest$ac_exeext &&
  8462. $as_test_x conftest$ac_exeext; then
  8463. ac_cv_func_shl_load=yes
  8464. else
  8465. echo "$as_me: failed program was:" >&5
  8466. sed 's/^/| /' conftest.$ac_ext >&5
  8467. ac_cv_func_shl_load=no
  8468. fi
  8469. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8470. conftest$ac_exeext conftest.$ac_ext
  8471. fi
  8472. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8473. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8474. if test $ac_cv_func_shl_load = yes; then
  8475. lt_cv_dlopen="shl_load"
  8476. else
  8477. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8478. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8479. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8480. echo $ECHO_N "(cached) $ECHO_C" >&6
  8481. else
  8482. ac_check_lib_save_LIBS=$LIBS
  8483. LIBS="-ldld $LIBS"
  8484. cat >conftest.$ac_ext <<_ACEOF
  8485. /* confdefs.h. */
  8486. _ACEOF
  8487. cat confdefs.h >>conftest.$ac_ext
  8488. cat >>conftest.$ac_ext <<_ACEOF
  8489. /* end confdefs.h. */
  8490. /* Override any GCC internal prototype to avoid an error.
  8491. Use char because int might match the return type of a GCC
  8492. builtin and then its argument prototype would still apply. */
  8493. #ifdef __cplusplus
  8494. extern "C"
  8495. #endif
  8496. char shl_load ();
  8497. int
  8498. main ()
  8499. {
  8500. return shl_load ();
  8501. ;
  8502. return 0;
  8503. }
  8504. _ACEOF
  8505. rm -f conftest.$ac_objext conftest$ac_exeext
  8506. if { (ac_try="$ac_link"
  8507. case "(($ac_try" in
  8508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8509. *) ac_try_echo=$ac_try;;
  8510. esac
  8511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8512. (eval "$ac_link") 2>conftest.er1
  8513. ac_status=$?
  8514. grep -v '^ *+' conftest.er1 >conftest.err
  8515. rm -f conftest.er1
  8516. cat conftest.err >&5
  8517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8518. (exit $ac_status); } && {
  8519. test -z "$ac_c_werror_flag" ||
  8520. test ! -s conftest.err
  8521. } && test -s conftest$ac_exeext &&
  8522. $as_test_x conftest$ac_exeext; then
  8523. ac_cv_lib_dld_shl_load=yes
  8524. else
  8525. echo "$as_me: failed program was:" >&5
  8526. sed 's/^/| /' conftest.$ac_ext >&5
  8527. ac_cv_lib_dld_shl_load=no
  8528. fi
  8529. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8530. conftest$ac_exeext conftest.$ac_ext
  8531. LIBS=$ac_check_lib_save_LIBS
  8532. fi
  8533. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8534. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8535. if test $ac_cv_lib_dld_shl_load = yes; then
  8536. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8537. else
  8538. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8539. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8540. if test "${ac_cv_func_dlopen+set}" = set; then
  8541. echo $ECHO_N "(cached) $ECHO_C" >&6
  8542. else
  8543. cat >conftest.$ac_ext <<_ACEOF
  8544. /* confdefs.h. */
  8545. _ACEOF
  8546. cat confdefs.h >>conftest.$ac_ext
  8547. cat >>conftest.$ac_ext <<_ACEOF
  8548. /* end confdefs.h. */
  8549. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8550. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8551. #define dlopen innocuous_dlopen
  8552. /* System header to define __stub macros and hopefully few prototypes,
  8553. which can conflict with char dlopen (); below.
  8554. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8555. <limits.h> exists even on freestanding compilers. */
  8556. #ifdef __STDC__
  8557. # include <limits.h>
  8558. #else
  8559. # include <assert.h>
  8560. #endif
  8561. #undef dlopen
  8562. /* Override any GCC internal prototype to avoid an error.
  8563. Use char because int might match the return type of a GCC
  8564. builtin and then its argument prototype would still apply. */
  8565. #ifdef __cplusplus
  8566. extern "C"
  8567. #endif
  8568. char dlopen ();
  8569. /* The GNU C library defines this for functions which it implements
  8570. to always fail with ENOSYS. Some functions are actually named
  8571. something starting with __ and the normal name is an alias. */
  8572. #if defined __stub_dlopen || defined __stub___dlopen
  8573. choke me
  8574. #endif
  8575. int
  8576. main ()
  8577. {
  8578. return dlopen ();
  8579. ;
  8580. return 0;
  8581. }
  8582. _ACEOF
  8583. rm -f conftest.$ac_objext conftest$ac_exeext
  8584. if { (ac_try="$ac_link"
  8585. case "(($ac_try" in
  8586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8587. *) ac_try_echo=$ac_try;;
  8588. esac
  8589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8590. (eval "$ac_link") 2>conftest.er1
  8591. ac_status=$?
  8592. grep -v '^ *+' conftest.er1 >conftest.err
  8593. rm -f conftest.er1
  8594. cat conftest.err >&5
  8595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8596. (exit $ac_status); } && {
  8597. test -z "$ac_c_werror_flag" ||
  8598. test ! -s conftest.err
  8599. } && test -s conftest$ac_exeext &&
  8600. $as_test_x conftest$ac_exeext; then
  8601. ac_cv_func_dlopen=yes
  8602. else
  8603. echo "$as_me: failed program was:" >&5
  8604. sed 's/^/| /' conftest.$ac_ext >&5
  8605. ac_cv_func_dlopen=no
  8606. fi
  8607. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8608. conftest$ac_exeext conftest.$ac_ext
  8609. fi
  8610. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8611. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8612. if test $ac_cv_func_dlopen = yes; then
  8613. lt_cv_dlopen="dlopen"
  8614. else
  8615. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8616. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8617. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8618. echo $ECHO_N "(cached) $ECHO_C" >&6
  8619. else
  8620. ac_check_lib_save_LIBS=$LIBS
  8621. LIBS="-ldl $LIBS"
  8622. cat >conftest.$ac_ext <<_ACEOF
  8623. /* confdefs.h. */
  8624. _ACEOF
  8625. cat confdefs.h >>conftest.$ac_ext
  8626. cat >>conftest.$ac_ext <<_ACEOF
  8627. /* end confdefs.h. */
  8628. /* Override any GCC internal prototype to avoid an error.
  8629. Use char because int might match the return type of a GCC
  8630. builtin and then its argument prototype would still apply. */
  8631. #ifdef __cplusplus
  8632. extern "C"
  8633. #endif
  8634. char dlopen ();
  8635. int
  8636. main ()
  8637. {
  8638. return dlopen ();
  8639. ;
  8640. return 0;
  8641. }
  8642. _ACEOF
  8643. rm -f conftest.$ac_objext conftest$ac_exeext
  8644. if { (ac_try="$ac_link"
  8645. case "(($ac_try" in
  8646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8647. *) ac_try_echo=$ac_try;;
  8648. esac
  8649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8650. (eval "$ac_link") 2>conftest.er1
  8651. ac_status=$?
  8652. grep -v '^ *+' conftest.er1 >conftest.err
  8653. rm -f conftest.er1
  8654. cat conftest.err >&5
  8655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8656. (exit $ac_status); } && {
  8657. test -z "$ac_c_werror_flag" ||
  8658. test ! -s conftest.err
  8659. } && test -s conftest$ac_exeext &&
  8660. $as_test_x conftest$ac_exeext; then
  8661. ac_cv_lib_dl_dlopen=yes
  8662. else
  8663. echo "$as_me: failed program was:" >&5
  8664. sed 's/^/| /' conftest.$ac_ext >&5
  8665. ac_cv_lib_dl_dlopen=no
  8666. fi
  8667. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8668. conftest$ac_exeext conftest.$ac_ext
  8669. LIBS=$ac_check_lib_save_LIBS
  8670. fi
  8671. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8672. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8673. if test $ac_cv_lib_dl_dlopen = yes; then
  8674. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8675. else
  8676. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8677. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8678. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8679. echo $ECHO_N "(cached) $ECHO_C" >&6
  8680. else
  8681. ac_check_lib_save_LIBS=$LIBS
  8682. LIBS="-lsvld $LIBS"
  8683. cat >conftest.$ac_ext <<_ACEOF
  8684. /* confdefs.h. */
  8685. _ACEOF
  8686. cat confdefs.h >>conftest.$ac_ext
  8687. cat >>conftest.$ac_ext <<_ACEOF
  8688. /* end confdefs.h. */
  8689. /* Override any GCC internal prototype to avoid an error.
  8690. Use char because int might match the return type of a GCC
  8691. builtin and then its argument prototype would still apply. */
  8692. #ifdef __cplusplus
  8693. extern "C"
  8694. #endif
  8695. char dlopen ();
  8696. int
  8697. main ()
  8698. {
  8699. return dlopen ();
  8700. ;
  8701. return 0;
  8702. }
  8703. _ACEOF
  8704. rm -f conftest.$ac_objext conftest$ac_exeext
  8705. if { (ac_try="$ac_link"
  8706. case "(($ac_try" in
  8707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8708. *) ac_try_echo=$ac_try;;
  8709. esac
  8710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8711. (eval "$ac_link") 2>conftest.er1
  8712. ac_status=$?
  8713. grep -v '^ *+' conftest.er1 >conftest.err
  8714. rm -f conftest.er1
  8715. cat conftest.err >&5
  8716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8717. (exit $ac_status); } && {
  8718. test -z "$ac_c_werror_flag" ||
  8719. test ! -s conftest.err
  8720. } && test -s conftest$ac_exeext &&
  8721. $as_test_x conftest$ac_exeext; then
  8722. ac_cv_lib_svld_dlopen=yes
  8723. else
  8724. echo "$as_me: failed program was:" >&5
  8725. sed 's/^/| /' conftest.$ac_ext >&5
  8726. ac_cv_lib_svld_dlopen=no
  8727. fi
  8728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8729. conftest$ac_exeext conftest.$ac_ext
  8730. LIBS=$ac_check_lib_save_LIBS
  8731. fi
  8732. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8733. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8734. if test $ac_cv_lib_svld_dlopen = yes; then
  8735. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8736. else
  8737. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8738. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8739. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8740. echo $ECHO_N "(cached) $ECHO_C" >&6
  8741. else
  8742. ac_check_lib_save_LIBS=$LIBS
  8743. LIBS="-ldld $LIBS"
  8744. cat >conftest.$ac_ext <<_ACEOF
  8745. /* confdefs.h. */
  8746. _ACEOF
  8747. cat confdefs.h >>conftest.$ac_ext
  8748. cat >>conftest.$ac_ext <<_ACEOF
  8749. /* end confdefs.h. */
  8750. /* Override any GCC internal prototype to avoid an error.
  8751. Use char because int might match the return type of a GCC
  8752. builtin and then its argument prototype would still apply. */
  8753. #ifdef __cplusplus
  8754. extern "C"
  8755. #endif
  8756. char dld_link ();
  8757. int
  8758. main ()
  8759. {
  8760. return dld_link ();
  8761. ;
  8762. return 0;
  8763. }
  8764. _ACEOF
  8765. rm -f conftest.$ac_objext conftest$ac_exeext
  8766. if { (ac_try="$ac_link"
  8767. case "(($ac_try" in
  8768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8769. *) ac_try_echo=$ac_try;;
  8770. esac
  8771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8772. (eval "$ac_link") 2>conftest.er1
  8773. ac_status=$?
  8774. grep -v '^ *+' conftest.er1 >conftest.err
  8775. rm -f conftest.er1
  8776. cat conftest.err >&5
  8777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8778. (exit $ac_status); } && {
  8779. test -z "$ac_c_werror_flag" ||
  8780. test ! -s conftest.err
  8781. } && test -s conftest$ac_exeext &&
  8782. $as_test_x conftest$ac_exeext; then
  8783. ac_cv_lib_dld_dld_link=yes
  8784. else
  8785. echo "$as_me: failed program was:" >&5
  8786. sed 's/^/| /' conftest.$ac_ext >&5
  8787. ac_cv_lib_dld_dld_link=no
  8788. fi
  8789. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8790. conftest$ac_exeext conftest.$ac_ext
  8791. LIBS=$ac_check_lib_save_LIBS
  8792. fi
  8793. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8794. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8795. if test $ac_cv_lib_dld_dld_link = yes; then
  8796. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8797. fi
  8798. fi
  8799. fi
  8800. fi
  8801. fi
  8802. fi
  8803. ;;
  8804. esac
  8805. if test "x$lt_cv_dlopen" != xno; then
  8806. enable_dlopen=yes
  8807. else
  8808. enable_dlopen=no
  8809. fi
  8810. case $lt_cv_dlopen in
  8811. dlopen)
  8812. save_CPPFLAGS="$CPPFLAGS"
  8813. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8814. save_LDFLAGS="$LDFLAGS"
  8815. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8816. save_LIBS="$LIBS"
  8817. LIBS="$lt_cv_dlopen_libs $LIBS"
  8818. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8819. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8820. if test "${lt_cv_dlopen_self+set}" = set; then
  8821. echo $ECHO_N "(cached) $ECHO_C" >&6
  8822. else
  8823. if test "$cross_compiling" = yes; then :
  8824. lt_cv_dlopen_self=cross
  8825. else
  8826. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8827. lt_status=$lt_dlunknown
  8828. cat > conftest.$ac_ext <<EOF
  8829. #line 9804 "configure"
  8830. #include "confdefs.h"
  8831. #if HAVE_DLFCN_H
  8832. #include <dlfcn.h>
  8833. #endif
  8834. #include <stdio.h>
  8835. #ifdef RTLD_GLOBAL
  8836. # define LT_DLGLOBAL RTLD_GLOBAL
  8837. #else
  8838. # ifdef DL_GLOBAL
  8839. # define LT_DLGLOBAL DL_GLOBAL
  8840. # else
  8841. # define LT_DLGLOBAL 0
  8842. # endif
  8843. #endif
  8844. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8845. find out it does not work in some platform. */
  8846. #ifndef LT_DLLAZY_OR_NOW
  8847. # ifdef RTLD_LAZY
  8848. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8849. # else
  8850. # ifdef DL_LAZY
  8851. # define LT_DLLAZY_OR_NOW DL_LAZY
  8852. # else
  8853. # ifdef RTLD_NOW
  8854. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8855. # else
  8856. # ifdef DL_NOW
  8857. # define LT_DLLAZY_OR_NOW DL_NOW
  8858. # else
  8859. # define LT_DLLAZY_OR_NOW 0
  8860. # endif
  8861. # endif
  8862. # endif
  8863. # endif
  8864. #endif
  8865. #ifdef __cplusplus
  8866. extern "C" void exit (int);
  8867. #endif
  8868. void fnord() { int i=42;}
  8869. int main ()
  8870. {
  8871. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8872. int status = $lt_dlunknown;
  8873. if (self)
  8874. {
  8875. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8876. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8877. /* dlclose (self); */
  8878. }
  8879. else
  8880. puts (dlerror ());
  8881. exit (status);
  8882. }
  8883. EOF
  8884. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8885. (eval $ac_link) 2>&5
  8886. ac_status=$?
  8887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8888. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8889. (./conftest; exit; ) >&5 2>/dev/null
  8890. lt_status=$?
  8891. case x$lt_status in
  8892. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8893. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8894. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8895. esac
  8896. else :
  8897. # compilation failed
  8898. lt_cv_dlopen_self=no
  8899. fi
  8900. fi
  8901. rm -fr conftest*
  8902. fi
  8903. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8904. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8905. if test "x$lt_cv_dlopen_self" = xyes; then
  8906. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8907. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8908. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8909. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8910. echo $ECHO_N "(cached) $ECHO_C" >&6
  8911. else
  8912. if test "$cross_compiling" = yes; then :
  8913. lt_cv_dlopen_self_static=cross
  8914. else
  8915. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8916. lt_status=$lt_dlunknown
  8917. cat > conftest.$ac_ext <<EOF
  8918. #line 9904 "configure"
  8919. #include "confdefs.h"
  8920. #if HAVE_DLFCN_H
  8921. #include <dlfcn.h>
  8922. #endif
  8923. #include <stdio.h>
  8924. #ifdef RTLD_GLOBAL
  8925. # define LT_DLGLOBAL RTLD_GLOBAL
  8926. #else
  8927. # ifdef DL_GLOBAL
  8928. # define LT_DLGLOBAL DL_GLOBAL
  8929. # else
  8930. # define LT_DLGLOBAL 0
  8931. # endif
  8932. #endif
  8933. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8934. find out it does not work in some platform. */
  8935. #ifndef LT_DLLAZY_OR_NOW
  8936. # ifdef RTLD_LAZY
  8937. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8938. # else
  8939. # ifdef DL_LAZY
  8940. # define LT_DLLAZY_OR_NOW DL_LAZY
  8941. # else
  8942. # ifdef RTLD_NOW
  8943. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8944. # else
  8945. # ifdef DL_NOW
  8946. # define LT_DLLAZY_OR_NOW DL_NOW
  8947. # else
  8948. # define LT_DLLAZY_OR_NOW 0
  8949. # endif
  8950. # endif
  8951. # endif
  8952. # endif
  8953. #endif
  8954. #ifdef __cplusplus
  8955. extern "C" void exit (int);
  8956. #endif
  8957. void fnord() { int i=42;}
  8958. int main ()
  8959. {
  8960. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8961. int status = $lt_dlunknown;
  8962. if (self)
  8963. {
  8964. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8965. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8966. /* dlclose (self); */
  8967. }
  8968. else
  8969. puts (dlerror ());
  8970. exit (status);
  8971. }
  8972. EOF
  8973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8974. (eval $ac_link) 2>&5
  8975. ac_status=$?
  8976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8977. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8978. (./conftest; exit; ) >&5 2>/dev/null
  8979. lt_status=$?
  8980. case x$lt_status in
  8981. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8982. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8983. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8984. esac
  8985. else :
  8986. # compilation failed
  8987. lt_cv_dlopen_self_static=no
  8988. fi
  8989. fi
  8990. rm -fr conftest*
  8991. fi
  8992. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8993. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  8994. fi
  8995. CPPFLAGS="$save_CPPFLAGS"
  8996. LDFLAGS="$save_LDFLAGS"
  8997. LIBS="$save_LIBS"
  8998. ;;
  8999. esac
  9000. case $lt_cv_dlopen_self in
  9001. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9002. *) enable_dlopen_self=unknown ;;
  9003. esac
  9004. case $lt_cv_dlopen_self_static in
  9005. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9006. *) enable_dlopen_self_static=unknown ;;
  9007. esac
  9008. fi
  9009. # Report which library types will actually be built
  9010. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9011. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9012. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9013. echo "${ECHO_T}$can_build_shared" >&6; }
  9014. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9015. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9016. test "$can_build_shared" = "no" && enable_shared=no
  9017. # On AIX, shared libraries and static libraries use the same namespace, and
  9018. # are all built from PIC.
  9019. case $host_os in
  9020. aix3*)
  9021. test "$enable_shared" = yes && enable_static=no
  9022. if test -n "$RANLIB"; then
  9023. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9024. postinstall_cmds='$RANLIB $lib'
  9025. fi
  9026. ;;
  9027. aix4* | aix5*)
  9028. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9029. test "$enable_shared" = yes && enable_static=no
  9030. fi
  9031. ;;
  9032. esac
  9033. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9034. echo "${ECHO_T}$enable_shared" >&6; }
  9035. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9036. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9037. # Make sure either enable_shared or enable_static is yes.
  9038. test "$enable_shared" = yes || enable_static=yes
  9039. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9040. echo "${ECHO_T}$enable_static" >&6; }
  9041. # The else clause should only fire when bootstrapping the
  9042. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9043. # with your package, and you will get complaints that there are
  9044. # no rules to generate ltmain.sh.
  9045. if test -f "$ltmain"; then
  9046. # See if we are running on zsh, and set the options which allow our commands through
  9047. # without removal of \ escapes.
  9048. if test -n "${ZSH_VERSION+set}" ; then
  9049. setopt NO_GLOB_SUBST
  9050. fi
  9051. # Now quote all the things that may contain metacharacters while being
  9052. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9053. # variables and quote the copies for generation of the libtool script.
  9054. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9055. SED SHELL STRIP \
  9056. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9057. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9058. deplibs_check_method reload_flag reload_cmds need_locks \
  9059. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9060. lt_cv_sys_global_symbol_to_c_name_address \
  9061. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9062. old_postinstall_cmds old_postuninstall_cmds \
  9063. compiler \
  9064. CC \
  9065. LD \
  9066. lt_prog_compiler_wl \
  9067. lt_prog_compiler_pic \
  9068. lt_prog_compiler_static \
  9069. lt_prog_compiler_no_builtin_flag \
  9070. export_dynamic_flag_spec \
  9071. thread_safe_flag_spec \
  9072. whole_archive_flag_spec \
  9073. enable_shared_with_static_runtimes \
  9074. old_archive_cmds \
  9075. old_archive_from_new_cmds \
  9076. predep_objects \
  9077. postdep_objects \
  9078. predeps \
  9079. postdeps \
  9080. compiler_lib_search_path \
  9081. archive_cmds \
  9082. archive_expsym_cmds \
  9083. postinstall_cmds \
  9084. postuninstall_cmds \
  9085. old_archive_from_expsyms_cmds \
  9086. allow_undefined_flag \
  9087. no_undefined_flag \
  9088. export_symbols_cmds \
  9089. hardcode_libdir_flag_spec \
  9090. hardcode_libdir_flag_spec_ld \
  9091. hardcode_libdir_separator \
  9092. hardcode_automatic \
  9093. module_cmds \
  9094. module_expsym_cmds \
  9095. lt_cv_prog_compiler_c_o \
  9096. fix_srcfile_path \
  9097. exclude_expsyms \
  9098. include_expsyms; do
  9099. case $var in
  9100. old_archive_cmds | \
  9101. old_archive_from_new_cmds | \
  9102. archive_cmds | \
  9103. archive_expsym_cmds | \
  9104. module_cmds | \
  9105. module_expsym_cmds | \
  9106. old_archive_from_expsyms_cmds | \
  9107. export_symbols_cmds | \
  9108. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9109. postinstall_cmds | postuninstall_cmds | \
  9110. old_postinstall_cmds | old_postuninstall_cmds | \
  9111. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9112. # Double-quote double-evaled strings.
  9113. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9114. ;;
  9115. *)
  9116. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9117. ;;
  9118. esac
  9119. done
  9120. case $lt_echo in
  9121. *'\$0 --fallback-echo"')
  9122. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9123. ;;
  9124. esac
  9125. cfgfile="${ofile}T"
  9126. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9127. $rm -f "$cfgfile"
  9128. { echo "$as_me:$LINENO: creating $ofile" >&5
  9129. echo "$as_me: creating $ofile" >&6;}
  9130. cat <<__EOF__ >> "$cfgfile"
  9131. #! $SHELL
  9132. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9133. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9134. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9135. #
  9136. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9137. # Free Software Foundation, Inc.
  9138. #
  9139. # This file is part of GNU Libtool:
  9140. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9141. #
  9142. # This program is free software; you can redistribute it and/or modify
  9143. # it under the terms of the GNU General Public License as published by
  9144. # the Free Software Foundation; either version 2 of the License, or
  9145. # (at your option) any later version.
  9146. #
  9147. # This program is distributed in the hope that it will be useful, but
  9148. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9149. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9150. # General Public License for more details.
  9151. #
  9152. # You should have received a copy of the GNU General Public License
  9153. # along with this program; if not, write to the Free Software
  9154. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9155. #
  9156. # As a special exception to the GNU General Public License, if you
  9157. # distribute this file as part of a program that contains a
  9158. # configuration script generated by Autoconf, you may include it under
  9159. # the same distribution terms that you use for the rest of that program.
  9160. # A sed program that does not truncate output.
  9161. SED=$lt_SED
  9162. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9163. Xsed="$SED -e 1s/^X//"
  9164. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9165. # if CDPATH is set.
  9166. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9167. # The names of the tagged configurations supported by this script.
  9168. available_tags=
  9169. # ### BEGIN LIBTOOL CONFIG
  9170. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9171. # Shell to use when invoking shell scripts.
  9172. SHELL=$lt_SHELL
  9173. # Whether or not to build shared libraries.
  9174. build_libtool_libs=$enable_shared
  9175. # Whether or not to build static libraries.
  9176. build_old_libs=$enable_static
  9177. # Whether or not to add -lc for building shared libraries.
  9178. build_libtool_need_lc=$archive_cmds_need_lc
  9179. # Whether or not to disallow shared libs when runtime libs are static
  9180. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9181. # Whether or not to optimize for fast installation.
  9182. fast_install=$enable_fast_install
  9183. # The host system.
  9184. host_alias=$host_alias
  9185. host=$host
  9186. host_os=$host_os
  9187. # The build system.
  9188. build_alias=$build_alias
  9189. build=$build
  9190. build_os=$build_os
  9191. # An echo program that does not interpret backslashes.
  9192. echo=$lt_echo
  9193. # The archiver.
  9194. AR=$lt_AR
  9195. AR_FLAGS=$lt_AR_FLAGS
  9196. # A C compiler.
  9197. LTCC=$lt_LTCC
  9198. # LTCC compiler flags.
  9199. LTCFLAGS=$lt_LTCFLAGS
  9200. # A language-specific compiler.
  9201. CC=$lt_compiler
  9202. # Is the compiler the GNU C compiler?
  9203. with_gcc=$GCC
  9204. # An ERE matcher.
  9205. EGREP=$lt_EGREP
  9206. # The linker used to build libraries.
  9207. LD=$lt_LD
  9208. # Whether we need hard or soft links.
  9209. LN_S=$lt_LN_S
  9210. # A BSD-compatible nm program.
  9211. NM=$lt_NM
  9212. # A symbol stripping program
  9213. STRIP=$lt_STRIP
  9214. # Used to examine libraries when file_magic_cmd begins "file"
  9215. MAGIC_CMD=$MAGIC_CMD
  9216. # Used on cygwin: DLL creation program.
  9217. DLLTOOL="$DLLTOOL"
  9218. # Used on cygwin: object dumper.
  9219. OBJDUMP="$OBJDUMP"
  9220. # Used on cygwin: assembler.
  9221. AS="$AS"
  9222. # The name of the directory that contains temporary libtool files.
  9223. objdir=$objdir
  9224. # How to create reloadable object files.
  9225. reload_flag=$lt_reload_flag
  9226. reload_cmds=$lt_reload_cmds
  9227. # How to pass a linker flag through the compiler.
  9228. wl=$lt_lt_prog_compiler_wl
  9229. # Object file suffix (normally "o").
  9230. objext="$ac_objext"
  9231. # Old archive suffix (normally "a").
  9232. libext="$libext"
  9233. # Shared library suffix (normally ".so").
  9234. shrext_cmds='$shrext_cmds'
  9235. # Executable file suffix (normally "").
  9236. exeext="$exeext"
  9237. # Additional compiler flags for building library objects.
  9238. pic_flag=$lt_lt_prog_compiler_pic
  9239. pic_mode=$pic_mode
  9240. # What is the maximum length of a command?
  9241. max_cmd_len=$lt_cv_sys_max_cmd_len
  9242. # Does compiler simultaneously support -c and -o options?
  9243. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9244. # Must we lock files when doing compilation?
  9245. need_locks=$lt_need_locks
  9246. # Do we need the lib prefix for modules?
  9247. need_lib_prefix=$need_lib_prefix
  9248. # Do we need a version for libraries?
  9249. need_version=$need_version
  9250. # Whether dlopen is supported.
  9251. dlopen_support=$enable_dlopen
  9252. # Whether dlopen of programs is supported.
  9253. dlopen_self=$enable_dlopen_self
  9254. # Whether dlopen of statically linked programs is supported.
  9255. dlopen_self_static=$enable_dlopen_self_static
  9256. # Compiler flag to prevent dynamic linking.
  9257. link_static_flag=$lt_lt_prog_compiler_static
  9258. # Compiler flag to turn off builtin functions.
  9259. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9260. # Compiler flag to allow reflexive dlopens.
  9261. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9262. # Compiler flag to generate shared objects directly from archives.
  9263. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9264. # Compiler flag to generate thread-safe objects.
  9265. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9266. # Library versioning type.
  9267. version_type=$version_type
  9268. # Format of library name prefix.
  9269. libname_spec=$lt_libname_spec
  9270. # List of archive names. First name is the real one, the rest are links.
  9271. # The last name is the one that the linker finds with -lNAME.
  9272. library_names_spec=$lt_library_names_spec
  9273. # The coded name of the library, if different from the real name.
  9274. soname_spec=$lt_soname_spec
  9275. # Commands used to build and install an old-style archive.
  9276. RANLIB=$lt_RANLIB
  9277. old_archive_cmds=$lt_old_archive_cmds
  9278. old_postinstall_cmds=$lt_old_postinstall_cmds
  9279. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9280. # Create an old-style archive from a shared archive.
  9281. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9282. # Create a temporary old-style archive to link instead of a shared archive.
  9283. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9284. # Commands used to build and install a shared archive.
  9285. archive_cmds=$lt_archive_cmds
  9286. archive_expsym_cmds=$lt_archive_expsym_cmds
  9287. postinstall_cmds=$lt_postinstall_cmds
  9288. postuninstall_cmds=$lt_postuninstall_cmds
  9289. # Commands used to build a loadable module (assumed same as above if empty)
  9290. module_cmds=$lt_module_cmds
  9291. module_expsym_cmds=$lt_module_expsym_cmds
  9292. # Commands to strip libraries.
  9293. old_striplib=$lt_old_striplib
  9294. striplib=$lt_striplib
  9295. # Dependencies to place before the objects being linked to create a
  9296. # shared library.
  9297. predep_objects=$lt_predep_objects
  9298. # Dependencies to place after the objects being linked to create a
  9299. # shared library.
  9300. postdep_objects=$lt_postdep_objects
  9301. # Dependencies to place before the objects being linked to create a
  9302. # shared library.
  9303. predeps=$lt_predeps
  9304. # Dependencies to place after the objects being linked to create a
  9305. # shared library.
  9306. postdeps=$lt_postdeps
  9307. # The library search path used internally by the compiler when linking
  9308. # a shared library.
  9309. compiler_lib_search_path=$lt_compiler_lib_search_path
  9310. # Method to check whether dependent libraries are shared objects.
  9311. deplibs_check_method=$lt_deplibs_check_method
  9312. # Command to use when deplibs_check_method == file_magic.
  9313. file_magic_cmd=$lt_file_magic_cmd
  9314. # Flag that allows shared libraries with undefined symbols to be built.
  9315. allow_undefined_flag=$lt_allow_undefined_flag
  9316. # Flag that forces no undefined symbols.
  9317. no_undefined_flag=$lt_no_undefined_flag
  9318. # Commands used to finish a libtool library installation in a directory.
  9319. finish_cmds=$lt_finish_cmds
  9320. # Same as above, but a single script fragment to be evaled but not shown.
  9321. finish_eval=$lt_finish_eval
  9322. # Take the output of nm and produce a listing of raw symbols and C names.
  9323. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9324. # Transform the output of nm in a proper C declaration
  9325. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9326. # Transform the output of nm in a C name address pair
  9327. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9328. # This is the shared library runtime path variable.
  9329. runpath_var=$runpath_var
  9330. # This is the shared library path variable.
  9331. shlibpath_var=$shlibpath_var
  9332. # Is shlibpath searched before the hard-coded library search path?
  9333. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9334. # How to hardcode a shared library path into an executable.
  9335. hardcode_action=$hardcode_action
  9336. # Whether we should hardcode library paths into libraries.
  9337. hardcode_into_libs=$hardcode_into_libs
  9338. # Flag to hardcode \$libdir into a binary during linking.
  9339. # This must work even if \$libdir does not exist.
  9340. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9341. # If ld is used when linking, flag to hardcode \$libdir into
  9342. # a binary during linking. This must work even if \$libdir does
  9343. # not exist.
  9344. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9345. # Whether we need a single -rpath flag with a separated argument.
  9346. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9347. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9348. # resulting binary.
  9349. hardcode_direct=$hardcode_direct
  9350. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9351. # resulting binary.
  9352. hardcode_minus_L=$hardcode_minus_L
  9353. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9354. # the resulting binary.
  9355. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9356. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9357. # and all subsequent libraries and executables linked against it.
  9358. hardcode_automatic=$hardcode_automatic
  9359. # Variables whose values should be saved in libtool wrapper scripts and
  9360. # restored at relink time.
  9361. variables_saved_for_relink="$variables_saved_for_relink"
  9362. # Whether libtool must link a program against all its dependency libraries.
  9363. link_all_deplibs=$link_all_deplibs
  9364. # Compile-time system search path for libraries
  9365. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9366. # Run-time system search path for libraries
  9367. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9368. # Fix the shell variable \$srcfile for the compiler.
  9369. fix_srcfile_path=$lt_fix_srcfile_path
  9370. # Set to yes if exported symbols are required.
  9371. always_export_symbols=$always_export_symbols
  9372. # The commands to list exported symbols.
  9373. export_symbols_cmds=$lt_export_symbols_cmds
  9374. # The commands to extract the exported symbol list from a shared archive.
  9375. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9376. # Symbols that should not be listed in the preloaded symbols.
  9377. exclude_expsyms=$lt_exclude_expsyms
  9378. # Symbols that must always be exported.
  9379. include_expsyms=$lt_include_expsyms
  9380. # ### END LIBTOOL CONFIG
  9381. __EOF__
  9382. case $host_os in
  9383. aix3*)
  9384. cat <<\EOF >> "$cfgfile"
  9385. # AIX sometimes has problems with the GCC collect2 program. For some
  9386. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9387. # vanish in a puff of smoke.
  9388. if test "X${COLLECT_NAMES+set}" != Xset; then
  9389. COLLECT_NAMES=
  9390. export COLLECT_NAMES
  9391. fi
  9392. EOF
  9393. ;;
  9394. esac
  9395. # We use sed instead of cat because bash on DJGPP gets confused if
  9396. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9397. # text mode, it properly converts lines to CR/LF. This bash problem
  9398. # is reportedly fixed, but why not run on old versions too?
  9399. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9400. mv -f "$cfgfile" "$ofile" || \
  9401. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9402. chmod +x "$ofile"
  9403. else
  9404. # If there is no Makefile yet, we rely on a make rule to execute
  9405. # `config.status --recheck' to rerun these tests and create the
  9406. # libtool script then.
  9407. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9408. if test -f "$ltmain_in"; then
  9409. test -f Makefile && make "$ltmain"
  9410. fi
  9411. fi
  9412. ac_ext=c
  9413. ac_cpp='$CPP $CPPFLAGS'
  9414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9417. CC="$lt_save_CC"
  9418. # Check whether --with-tags was given.
  9419. if test "${with_tags+set}" = set; then
  9420. withval=$with_tags; tagnames="$withval"
  9421. fi
  9422. if test -f "$ltmain" && test -n "$tagnames"; then
  9423. if test ! -f "${ofile}"; then
  9424. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9425. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9426. fi
  9427. if test -z "$LTCC"; then
  9428. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9429. if test -z "$LTCC"; then
  9430. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9431. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9432. else
  9433. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9434. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9435. fi
  9436. fi
  9437. if test -z "$LTCFLAGS"; then
  9438. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9439. fi
  9440. # Extract list of available tagged configurations in $ofile.
  9441. # Note that this assumes the entire list is on one line.
  9442. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9443. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9444. for tagname in $tagnames; do
  9445. IFS="$lt_save_ifs"
  9446. # Check whether tagname contains only valid characters
  9447. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9448. "") ;;
  9449. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9450. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9451. { (exit 1); exit 1; }; }
  9452. ;;
  9453. esac
  9454. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9455. then
  9456. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9457. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9458. { (exit 1); exit 1; }; }
  9459. fi
  9460. # Update the list of available tags.
  9461. if test -n "$tagname"; then
  9462. echo appending configuration tag \"$tagname\" to $ofile
  9463. case $tagname in
  9464. CXX)
  9465. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9466. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9467. (test "X$CXX" != "Xg++"))) ; then
  9468. ac_ext=cpp
  9469. ac_cpp='$CXXCPP $CPPFLAGS'
  9470. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9471. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9472. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9473. archive_cmds_need_lc_CXX=no
  9474. allow_undefined_flag_CXX=
  9475. always_export_symbols_CXX=no
  9476. archive_expsym_cmds_CXX=
  9477. export_dynamic_flag_spec_CXX=
  9478. hardcode_direct_CXX=no
  9479. hardcode_libdir_flag_spec_CXX=
  9480. hardcode_libdir_flag_spec_ld_CXX=
  9481. hardcode_libdir_separator_CXX=
  9482. hardcode_minus_L_CXX=no
  9483. hardcode_shlibpath_var_CXX=unsupported
  9484. hardcode_automatic_CXX=no
  9485. module_cmds_CXX=
  9486. module_expsym_cmds_CXX=
  9487. link_all_deplibs_CXX=unknown
  9488. old_archive_cmds_CXX=$old_archive_cmds
  9489. no_undefined_flag_CXX=
  9490. whole_archive_flag_spec_CXX=
  9491. enable_shared_with_static_runtimes_CXX=no
  9492. # Dependencies to place before and after the object being linked:
  9493. predep_objects_CXX=
  9494. postdep_objects_CXX=
  9495. predeps_CXX=
  9496. postdeps_CXX=
  9497. compiler_lib_search_path_CXX=
  9498. # Source file extension for C++ test sources.
  9499. ac_ext=cpp
  9500. # Object file extension for compiled C++ test sources.
  9501. objext=o
  9502. objext_CXX=$objext
  9503. # Code to be used in simple compile tests
  9504. lt_simple_compile_test_code="int some_variable = 0;"
  9505. # Code to be used in simple link tests
  9506. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9507. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9508. # If no C compiler was specified, use CC.
  9509. LTCC=${LTCC-"$CC"}
  9510. # If no C compiler flags were specified, use CFLAGS.
  9511. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9512. # Allow CC to be a program name with arguments.
  9513. compiler=$CC
  9514. # save warnings/boilerplate of simple test code
  9515. ac_outfile=conftest.$ac_objext
  9516. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9517. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9518. _lt_compiler_boilerplate=`cat conftest.err`
  9519. $rm conftest*
  9520. ac_outfile=conftest.$ac_objext
  9521. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9522. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9523. _lt_linker_boilerplate=`cat conftest.err`
  9524. $rm conftest*
  9525. # Allow CC to be a program name with arguments.
  9526. lt_save_CC=$CC
  9527. lt_save_LD=$LD
  9528. lt_save_GCC=$GCC
  9529. GCC=$GXX
  9530. lt_save_with_gnu_ld=$with_gnu_ld
  9531. lt_save_path_LD=$lt_cv_path_LD
  9532. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9533. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9534. else
  9535. $as_unset lt_cv_prog_gnu_ld
  9536. fi
  9537. if test -n "${lt_cv_path_LDCXX+set}"; then
  9538. lt_cv_path_LD=$lt_cv_path_LDCXX
  9539. else
  9540. $as_unset lt_cv_path_LD
  9541. fi
  9542. test -z "${LDCXX+set}" || LD=$LDCXX
  9543. CC=${CXX-"c++"}
  9544. compiler=$CC
  9545. compiler_CXX=$CC
  9546. for cc_temp in $compiler""; do
  9547. case $cc_temp in
  9548. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9549. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9550. \-*) ;;
  9551. *) break;;
  9552. esac
  9553. done
  9554. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9555. # We don't want -fno-exception wen compiling C++ code, so set the
  9556. # no_builtin_flag separately
  9557. if test "$GXX" = yes; then
  9558. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9559. else
  9560. lt_prog_compiler_no_builtin_flag_CXX=
  9561. fi
  9562. if test "$GXX" = yes; then
  9563. # Set up default GNU C++ configuration
  9564. # Check whether --with-gnu-ld was given.
  9565. if test "${with_gnu_ld+set}" = set; then
  9566. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9567. else
  9568. with_gnu_ld=no
  9569. fi
  9570. ac_prog=ld
  9571. if test "$GCC" = yes; then
  9572. # Check if gcc -print-prog-name=ld gives a path.
  9573. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9574. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9575. case $host in
  9576. *-*-mingw*)
  9577. # gcc leaves a trailing carriage return which upsets mingw
  9578. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9579. *)
  9580. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9581. esac
  9582. case $ac_prog in
  9583. # Accept absolute paths.
  9584. [\\/]* | ?:[\\/]*)
  9585. re_direlt='/[^/][^/]*/\.\./'
  9586. # Canonicalize the pathname of ld
  9587. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9588. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9589. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9590. done
  9591. test -z "$LD" && LD="$ac_prog"
  9592. ;;
  9593. "")
  9594. # If it fails, then pretend we aren't using GCC.
  9595. ac_prog=ld
  9596. ;;
  9597. *)
  9598. # If it is relative, then search for the first ld in PATH.
  9599. with_gnu_ld=unknown
  9600. ;;
  9601. esac
  9602. elif test "$with_gnu_ld" = yes; then
  9603. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9604. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9605. else
  9606. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9607. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9608. fi
  9609. if test "${lt_cv_path_LD+set}" = set; then
  9610. echo $ECHO_N "(cached) $ECHO_C" >&6
  9611. else
  9612. if test -z "$LD"; then
  9613. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9614. for ac_dir in $PATH; do
  9615. IFS="$lt_save_ifs"
  9616. test -z "$ac_dir" && ac_dir=.
  9617. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9618. lt_cv_path_LD="$ac_dir/$ac_prog"
  9619. # Check to see if the program is GNU ld. I'd rather use --version,
  9620. # but apparently some variants of GNU ld only accept -v.
  9621. # Break only if it was the GNU/non-GNU ld that we prefer.
  9622. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9623. *GNU* | *'with BFD'*)
  9624. test "$with_gnu_ld" != no && break
  9625. ;;
  9626. *)
  9627. test "$with_gnu_ld" != yes && break
  9628. ;;
  9629. esac
  9630. fi
  9631. done
  9632. IFS="$lt_save_ifs"
  9633. else
  9634. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9635. fi
  9636. fi
  9637. LD="$lt_cv_path_LD"
  9638. if test -n "$LD"; then
  9639. { echo "$as_me:$LINENO: result: $LD" >&5
  9640. echo "${ECHO_T}$LD" >&6; }
  9641. else
  9642. { echo "$as_me:$LINENO: result: no" >&5
  9643. echo "${ECHO_T}no" >&6; }
  9644. fi
  9645. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9646. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9647. { (exit 1); exit 1; }; }
  9648. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9649. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9650. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9651. echo $ECHO_N "(cached) $ECHO_C" >&6
  9652. else
  9653. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9654. case `$LD -v 2>&1 </dev/null` in
  9655. *GNU* | *'with BFD'*)
  9656. lt_cv_prog_gnu_ld=yes
  9657. ;;
  9658. *)
  9659. lt_cv_prog_gnu_ld=no
  9660. ;;
  9661. esac
  9662. fi
  9663. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9664. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9665. with_gnu_ld=$lt_cv_prog_gnu_ld
  9666. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9667. # archiving commands below assume that GNU ld is being used.
  9668. if test "$with_gnu_ld" = yes; then
  9669. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9670. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9671. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9672. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9673. # If archive_cmds runs LD, not CC, wlarc should be empty
  9674. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9675. # investigate it a little bit more. (MM)
  9676. wlarc='${wl}'
  9677. # ancient GNU ld didn't support --whole-archive et. al.
  9678. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9679. grep 'no-whole-archive' > /dev/null; then
  9680. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9681. else
  9682. whole_archive_flag_spec_CXX=
  9683. fi
  9684. else
  9685. with_gnu_ld=no
  9686. wlarc=
  9687. # A generic and very simple default shared library creation
  9688. # command for GNU C++ for the case where it uses the native
  9689. # linker, instead of GNU ld. If possible, this setting should
  9690. # overridden to take advantage of the native linker features on
  9691. # the platform it is being used on.
  9692. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9693. fi
  9694. # Commands to make compiler produce verbose output that lists
  9695. # what "hidden" libraries, object files and flags are used when
  9696. # linking a shared library.
  9697. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9698. else
  9699. GXX=no
  9700. with_gnu_ld=no
  9701. wlarc=
  9702. fi
  9703. # PORTME: fill in a description of your system's C++ link characteristics
  9704. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9705. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9706. ld_shlibs_CXX=yes
  9707. case $host_os in
  9708. aix3*)
  9709. # FIXME: insert proper C++ library support
  9710. ld_shlibs_CXX=no
  9711. ;;
  9712. aix4* | aix5*)
  9713. if test "$host_cpu" = ia64; then
  9714. # On IA64, the linker does run time linking by default, so we don't
  9715. # have to do anything special.
  9716. aix_use_runtimelinking=no
  9717. exp_sym_flag='-Bexport'
  9718. no_entry_flag=""
  9719. else
  9720. aix_use_runtimelinking=no
  9721. # Test if we are trying to use run time linking or normal
  9722. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9723. # need to do runtime linking.
  9724. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9725. for ld_flag in $LDFLAGS; do
  9726. case $ld_flag in
  9727. *-brtl*)
  9728. aix_use_runtimelinking=yes
  9729. break
  9730. ;;
  9731. esac
  9732. done
  9733. ;;
  9734. esac
  9735. exp_sym_flag='-bexport'
  9736. no_entry_flag='-bnoentry'
  9737. fi
  9738. # When large executables or shared objects are built, AIX ld can
  9739. # have problems creating the table of contents. If linking a library
  9740. # or program results in "error TOC overflow" add -mminimal-toc to
  9741. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9742. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9743. archive_cmds_CXX=''
  9744. hardcode_direct_CXX=yes
  9745. hardcode_libdir_separator_CXX=':'
  9746. link_all_deplibs_CXX=yes
  9747. if test "$GXX" = yes; then
  9748. case $host_os in aix4.[012]|aix4.[012].*)
  9749. # We only want to do this on AIX 4.2 and lower, the check
  9750. # below for broken collect2 doesn't work under 4.3+
  9751. collect2name=`${CC} -print-prog-name=collect2`
  9752. if test -f "$collect2name" && \
  9753. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9754. then
  9755. # We have reworked collect2
  9756. :
  9757. else
  9758. # We have old collect2
  9759. hardcode_direct_CXX=unsupported
  9760. # It fails to find uninstalled libraries when the uninstalled
  9761. # path is not listed in the libpath. Setting hardcode_minus_L
  9762. # to unsupported forces relinking
  9763. hardcode_minus_L_CXX=yes
  9764. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9765. hardcode_libdir_separator_CXX=
  9766. fi
  9767. ;;
  9768. esac
  9769. shared_flag='-shared'
  9770. if test "$aix_use_runtimelinking" = yes; then
  9771. shared_flag="$shared_flag "'${wl}-G'
  9772. fi
  9773. else
  9774. # not using gcc
  9775. if test "$host_cpu" = ia64; then
  9776. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9777. # chokes on -Wl,-G. The following line is correct:
  9778. shared_flag='-G'
  9779. else
  9780. if test "$aix_use_runtimelinking" = yes; then
  9781. shared_flag='${wl}-G'
  9782. else
  9783. shared_flag='${wl}-bM:SRE'
  9784. fi
  9785. fi
  9786. fi
  9787. # It seems that -bexpall does not export symbols beginning with
  9788. # underscore (_), so it is better to generate a list of symbols to export.
  9789. always_export_symbols_CXX=yes
  9790. if test "$aix_use_runtimelinking" = yes; then
  9791. # Warning - without using the other runtime loading flags (-brtl),
  9792. # -berok will link without error, but may produce a broken library.
  9793. allow_undefined_flag_CXX='-berok'
  9794. # Determine the default libpath from the value encoded in an empty executable.
  9795. cat >conftest.$ac_ext <<_ACEOF
  9796. /* confdefs.h. */
  9797. _ACEOF
  9798. cat confdefs.h >>conftest.$ac_ext
  9799. cat >>conftest.$ac_ext <<_ACEOF
  9800. /* end confdefs.h. */
  9801. int
  9802. main ()
  9803. {
  9804. ;
  9805. return 0;
  9806. }
  9807. _ACEOF
  9808. rm -f conftest.$ac_objext conftest$ac_exeext
  9809. if { (ac_try="$ac_link"
  9810. case "(($ac_try" in
  9811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9812. *) ac_try_echo=$ac_try;;
  9813. esac
  9814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9815. (eval "$ac_link") 2>conftest.er1
  9816. ac_status=$?
  9817. grep -v '^ *+' conftest.er1 >conftest.err
  9818. rm -f conftest.er1
  9819. cat conftest.err >&5
  9820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9821. (exit $ac_status); } && {
  9822. test -z "$ac_cxx_werror_flag" ||
  9823. test ! -s conftest.err
  9824. } && test -s conftest$ac_exeext &&
  9825. $as_test_x conftest$ac_exeext; then
  9826. lt_aix_libpath_sed='
  9827. /Import File Strings/,/^$/ {
  9828. /^0/ {
  9829. s/^0 *\(.*\)$/\1/
  9830. p
  9831. }
  9832. }'
  9833. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9834. # Check for a 64-bit object if we didn't find anything.
  9835. if test -z "$aix_libpath"; then
  9836. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9837. fi
  9838. else
  9839. echo "$as_me: failed program was:" >&5
  9840. sed 's/^/| /' conftest.$ac_ext >&5
  9841. fi
  9842. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9843. conftest$ac_exeext conftest.$ac_ext
  9844. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9845. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9846. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9847. else
  9848. if test "$host_cpu" = ia64; then
  9849. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9850. allow_undefined_flag_CXX="-z nodefs"
  9851. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9852. else
  9853. # Determine the default libpath from the value encoded in an empty executable.
  9854. cat >conftest.$ac_ext <<_ACEOF
  9855. /* confdefs.h. */
  9856. _ACEOF
  9857. cat confdefs.h >>conftest.$ac_ext
  9858. cat >>conftest.$ac_ext <<_ACEOF
  9859. /* end confdefs.h. */
  9860. int
  9861. main ()
  9862. {
  9863. ;
  9864. return 0;
  9865. }
  9866. _ACEOF
  9867. rm -f conftest.$ac_objext conftest$ac_exeext
  9868. if { (ac_try="$ac_link"
  9869. case "(($ac_try" in
  9870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9871. *) ac_try_echo=$ac_try;;
  9872. esac
  9873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9874. (eval "$ac_link") 2>conftest.er1
  9875. ac_status=$?
  9876. grep -v '^ *+' conftest.er1 >conftest.err
  9877. rm -f conftest.er1
  9878. cat conftest.err >&5
  9879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9880. (exit $ac_status); } && {
  9881. test -z "$ac_cxx_werror_flag" ||
  9882. test ! -s conftest.err
  9883. } && test -s conftest$ac_exeext &&
  9884. $as_test_x conftest$ac_exeext; then
  9885. lt_aix_libpath_sed='
  9886. /Import File Strings/,/^$/ {
  9887. /^0/ {
  9888. s/^0 *\(.*\)$/\1/
  9889. p
  9890. }
  9891. }'
  9892. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9893. # Check for a 64-bit object if we didn't find anything.
  9894. if test -z "$aix_libpath"; then
  9895. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9896. fi
  9897. else
  9898. echo "$as_me: failed program was:" >&5
  9899. sed 's/^/| /' conftest.$ac_ext >&5
  9900. fi
  9901. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9902. conftest$ac_exeext conftest.$ac_ext
  9903. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9904. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9905. # Warning - without using the other run time loading flags,
  9906. # -berok will link without error, but may produce a broken library.
  9907. no_undefined_flag_CXX=' ${wl}-bernotok'
  9908. allow_undefined_flag_CXX=' ${wl}-berok'
  9909. # Exported symbols can be pulled into shared objects from archives
  9910. whole_archive_flag_spec_CXX='$convenience'
  9911. archive_cmds_need_lc_CXX=yes
  9912. # This is similar to how AIX traditionally builds its shared libraries.
  9913. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9914. fi
  9915. fi
  9916. ;;
  9917. beos*)
  9918. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9919. allow_undefined_flag_CXX=unsupported
  9920. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9921. # support --undefined. This deserves some investigation. FIXME
  9922. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9923. else
  9924. ld_shlibs_CXX=no
  9925. fi
  9926. ;;
  9927. chorus*)
  9928. case $cc_basename in
  9929. *)
  9930. # FIXME: insert proper C++ library support
  9931. ld_shlibs_CXX=no
  9932. ;;
  9933. esac
  9934. ;;
  9935. cygwin* | mingw* | pw32*)
  9936. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9937. # as there is no search path for DLLs.
  9938. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9939. allow_undefined_flag_CXX=unsupported
  9940. always_export_symbols_CXX=no
  9941. enable_shared_with_static_runtimes_CXX=yes
  9942. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9943. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9944. # If the export-symbols file already is a .def file (1st line
  9945. # is EXPORTS), use it as is; otherwise, prepend...
  9946. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9947. cp $export_symbols $output_objdir/$soname.def;
  9948. else
  9949. echo EXPORTS > $output_objdir/$soname.def;
  9950. cat $export_symbols >> $output_objdir/$soname.def;
  9951. fi~
  9952. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9953. else
  9954. ld_shlibs_CXX=no
  9955. fi
  9956. ;;
  9957. darwin* | rhapsody*)
  9958. case $host_os in
  9959. rhapsody* | darwin1.[012])
  9960. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9961. ;;
  9962. *) # Darwin 1.3 on
  9963. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9964. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9965. else
  9966. case ${MACOSX_DEPLOYMENT_TARGET} in
  9967. 10.[012])
  9968. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9969. ;;
  9970. 10.*)
  9971. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9972. ;;
  9973. esac
  9974. fi
  9975. ;;
  9976. esac
  9977. archive_cmds_need_lc_CXX=no
  9978. hardcode_direct_CXX=no
  9979. hardcode_automatic_CXX=yes
  9980. hardcode_shlibpath_var_CXX=unsupported
  9981. whole_archive_flag_spec_CXX=''
  9982. link_all_deplibs_CXX=yes
  9983. if test "$GXX" = yes ; then
  9984. lt_int_apple_cc_single_mod=no
  9985. output_verbose_link_cmd='echo'
  9986. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9987. lt_int_apple_cc_single_mod=yes
  9988. fi
  9989. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9990. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9991. else
  9992. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9993. fi
  9994. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9995. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9996. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9997. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9998. else
  9999. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10000. fi
  10001. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10002. else
  10003. case $cc_basename in
  10004. xlc*)
  10005. output_verbose_link_cmd='echo'
  10006. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10007. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10008. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10009. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10010. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10011. ;;
  10012. *)
  10013. ld_shlibs_CXX=no
  10014. ;;
  10015. esac
  10016. fi
  10017. ;;
  10018. dgux*)
  10019. case $cc_basename in
  10020. ec++*)
  10021. # FIXME: insert proper C++ library support
  10022. ld_shlibs_CXX=no
  10023. ;;
  10024. ghcx*)
  10025. # Green Hills C++ Compiler
  10026. # FIXME: insert proper C++ library support
  10027. ld_shlibs_CXX=no
  10028. ;;
  10029. *)
  10030. # FIXME: insert proper C++ library support
  10031. ld_shlibs_CXX=no
  10032. ;;
  10033. esac
  10034. ;;
  10035. freebsd[12]*)
  10036. # C++ shared libraries reported to be fairly broken before switch to ELF
  10037. ld_shlibs_CXX=no
  10038. ;;
  10039. freebsd-elf*)
  10040. archive_cmds_need_lc_CXX=no
  10041. ;;
  10042. freebsd* | dragonfly*)
  10043. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10044. # conventions
  10045. ld_shlibs_CXX=yes
  10046. ;;
  10047. gnu*)
  10048. ;;
  10049. hpux9*)
  10050. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10051. hardcode_libdir_separator_CXX=:
  10052. export_dynamic_flag_spec_CXX='${wl}-E'
  10053. hardcode_direct_CXX=yes
  10054. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10055. # but as the default
  10056. # location of the library.
  10057. case $cc_basename in
  10058. CC*)
  10059. # FIXME: insert proper C++ library support
  10060. ld_shlibs_CXX=no
  10061. ;;
  10062. aCC*)
  10063. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10064. # Commands to make compiler produce verbose output that lists
  10065. # what "hidden" libraries, object files and flags are used when
  10066. # linking a shared library.
  10067. #
  10068. # There doesn't appear to be a way to prevent this compiler from
  10069. # explicitly linking system object files so we need to strip them
  10070. # from the output so that they don't get included in the library
  10071. # dependencies.
  10072. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10073. ;;
  10074. *)
  10075. if test "$GXX" = yes; then
  10076. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10077. else
  10078. # FIXME: insert proper C++ library support
  10079. ld_shlibs_CXX=no
  10080. fi
  10081. ;;
  10082. esac
  10083. ;;
  10084. hpux10*|hpux11*)
  10085. if test $with_gnu_ld = no; then
  10086. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10087. hardcode_libdir_separator_CXX=:
  10088. case $host_cpu in
  10089. hppa*64*|ia64*) ;;
  10090. *)
  10091. export_dynamic_flag_spec_CXX='${wl}-E'
  10092. ;;
  10093. esac
  10094. fi
  10095. case $host_cpu in
  10096. hppa*64*|ia64*)
  10097. hardcode_direct_CXX=no
  10098. hardcode_shlibpath_var_CXX=no
  10099. ;;
  10100. *)
  10101. hardcode_direct_CXX=yes
  10102. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10103. # but as the default
  10104. # location of the library.
  10105. ;;
  10106. esac
  10107. case $cc_basename in
  10108. CC*)
  10109. # FIXME: insert proper C++ library support
  10110. ld_shlibs_CXX=no
  10111. ;;
  10112. aCC*)
  10113. case $host_cpu in
  10114. hppa*64*)
  10115. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10116. ;;
  10117. ia64*)
  10118. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10119. ;;
  10120. *)
  10121. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10122. ;;
  10123. esac
  10124. # Commands to make compiler produce verbose output that lists
  10125. # what "hidden" libraries, object files and flags are used when
  10126. # linking a shared library.
  10127. #
  10128. # There doesn't appear to be a way to prevent this compiler from
  10129. # explicitly linking system object files so we need to strip them
  10130. # from the output so that they don't get included in the library
  10131. # dependencies.
  10132. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10133. ;;
  10134. *)
  10135. if test "$GXX" = yes; then
  10136. if test $with_gnu_ld = no; then
  10137. case $host_cpu in
  10138. hppa*64*)
  10139. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10140. ;;
  10141. ia64*)
  10142. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10143. ;;
  10144. *)
  10145. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10146. ;;
  10147. esac
  10148. fi
  10149. else
  10150. # FIXME: insert proper C++ library support
  10151. ld_shlibs_CXX=no
  10152. fi
  10153. ;;
  10154. esac
  10155. ;;
  10156. interix[3-9]*)
  10157. hardcode_direct_CXX=no
  10158. hardcode_shlibpath_var_CXX=no
  10159. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10160. export_dynamic_flag_spec_CXX='${wl}-E'
  10161. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10162. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10163. # default) and relocated if they conflict, which is a slow very memory
  10164. # consuming and fragmenting process. To avoid this, we pick a random,
  10165. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10166. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10167. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10168. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10169. ;;
  10170. irix5* | irix6*)
  10171. case $cc_basename in
  10172. CC*)
  10173. # SGI C++
  10174. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10175. # Archives containing C++ object files must be created using
  10176. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10177. # necessary to make sure instantiated templates are included
  10178. # in the archive.
  10179. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10180. ;;
  10181. *)
  10182. if test "$GXX" = yes; then
  10183. if test "$with_gnu_ld" = no; then
  10184. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10185. else
  10186. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10187. fi
  10188. fi
  10189. link_all_deplibs_CXX=yes
  10190. ;;
  10191. esac
  10192. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10193. hardcode_libdir_separator_CXX=:
  10194. ;;
  10195. linux* | k*bsd*-gnu)
  10196. case $cc_basename in
  10197. KCC*)
  10198. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10199. # KCC will only create a shared library if the output file
  10200. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10201. # to its proper name (with version) after linking.
  10202. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10203. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10204. # Commands to make compiler produce verbose output that lists
  10205. # what "hidden" libraries, object files and flags are used when
  10206. # linking a shared library.
  10207. #
  10208. # There doesn't appear to be a way to prevent this compiler from
  10209. # explicitly linking system object files so we need to strip them
  10210. # from the output so that they don't get included in the library
  10211. # dependencies.
  10212. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10213. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10214. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10215. # Archives containing C++ object files must be created using
  10216. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10217. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10218. ;;
  10219. icpc*)
  10220. # Intel C++
  10221. with_gnu_ld=yes
  10222. # version 8.0 and above of icpc choke on multiply defined symbols
  10223. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10224. # earlier do not add the objects themselves.
  10225. case `$CC -V 2>&1` in
  10226. *"Version 7."*)
  10227. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10228. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10229. ;;
  10230. *) # Version 8.0 or newer
  10231. tmp_idyn=
  10232. case $host_cpu in
  10233. ia64*) tmp_idyn=' -i_dynamic';;
  10234. esac
  10235. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10236. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10237. ;;
  10238. esac
  10239. archive_cmds_need_lc_CXX=no
  10240. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10241. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10242. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10243. ;;
  10244. pgCC*)
  10245. # Portland Group C++ compiler
  10246. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10247. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10248. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10249. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10250. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10251. ;;
  10252. cxx*)
  10253. # Compaq C++
  10254. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10255. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10256. runpath_var=LD_RUN_PATH
  10257. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10258. hardcode_libdir_separator_CXX=:
  10259. # Commands to make compiler produce verbose output that lists
  10260. # what "hidden" libraries, object files and flags are used when
  10261. # linking a shared library.
  10262. #
  10263. # There doesn't appear to be a way to prevent this compiler from
  10264. # explicitly linking system object files so we need to strip them
  10265. # from the output so that they don't get included in the library
  10266. # dependencies.
  10267. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10268. ;;
  10269. *)
  10270. case `$CC -V 2>&1 | sed 5q` in
  10271. *Sun\ C*)
  10272. # Sun C++ 5.9
  10273. no_undefined_flag_CXX=' -zdefs'
  10274. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10275. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10276. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10277. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10278. # Not sure whether something based on
  10279. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10280. # would be better.
  10281. output_verbose_link_cmd='echo'
  10282. # Archives containing C++ object files must be created using
  10283. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10284. # necessary to make sure instantiated templates are included
  10285. # in the archive.
  10286. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10287. ;;
  10288. esac
  10289. ;;
  10290. esac
  10291. ;;
  10292. lynxos*)
  10293. # FIXME: insert proper C++ library support
  10294. ld_shlibs_CXX=no
  10295. ;;
  10296. m88k*)
  10297. # FIXME: insert proper C++ library support
  10298. ld_shlibs_CXX=no
  10299. ;;
  10300. mvs*)
  10301. case $cc_basename in
  10302. cxx*)
  10303. # FIXME: insert proper C++ library support
  10304. ld_shlibs_CXX=no
  10305. ;;
  10306. *)
  10307. # FIXME: insert proper C++ library support
  10308. ld_shlibs_CXX=no
  10309. ;;
  10310. esac
  10311. ;;
  10312. netbsd* | netbsdelf*-gnu)
  10313. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10314. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10315. wlarc=
  10316. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10317. hardcode_direct_CXX=yes
  10318. hardcode_shlibpath_var_CXX=no
  10319. fi
  10320. # Workaround some broken pre-1.5 toolchains
  10321. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10322. ;;
  10323. openbsd2*)
  10324. # C++ shared libraries are fairly broken
  10325. ld_shlibs_CXX=no
  10326. ;;
  10327. openbsd*)
  10328. if test -f /usr/libexec/ld.so; then
  10329. hardcode_direct_CXX=yes
  10330. hardcode_shlibpath_var_CXX=no
  10331. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10332. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10333. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10334. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10335. export_dynamic_flag_spec_CXX='${wl}-E'
  10336. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10337. fi
  10338. output_verbose_link_cmd='echo'
  10339. else
  10340. ld_shlibs_CXX=no
  10341. fi
  10342. ;;
  10343. osf3*)
  10344. case $cc_basename in
  10345. KCC*)
  10346. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10347. # KCC will only create a shared library if the output file
  10348. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10349. # to its proper name (with version) after linking.
  10350. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10351. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10352. hardcode_libdir_separator_CXX=:
  10353. # Archives containing C++ object files must be created using
  10354. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10355. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10356. ;;
  10357. RCC*)
  10358. # Rational C++ 2.4.1
  10359. # FIXME: insert proper C++ library support
  10360. ld_shlibs_CXX=no
  10361. ;;
  10362. cxx*)
  10363. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10364. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10365. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10366. hardcode_libdir_separator_CXX=:
  10367. # Commands to make compiler produce verbose output that lists
  10368. # what "hidden" libraries, object files and flags are used when
  10369. # linking a shared library.
  10370. #
  10371. # There doesn't appear to be a way to prevent this compiler from
  10372. # explicitly linking system object files so we need to strip them
  10373. # from the output so that they don't get included in the library
  10374. # dependencies.
  10375. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10376. ;;
  10377. *)
  10378. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10379. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10380. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10381. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10382. hardcode_libdir_separator_CXX=:
  10383. # Commands to make compiler produce verbose output that lists
  10384. # what "hidden" libraries, object files and flags are used when
  10385. # linking a shared library.
  10386. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10387. else
  10388. # FIXME: insert proper C++ library support
  10389. ld_shlibs_CXX=no
  10390. fi
  10391. ;;
  10392. esac
  10393. ;;
  10394. osf4* | osf5*)
  10395. case $cc_basename in
  10396. KCC*)
  10397. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10398. # KCC will only create a shared library if the output file
  10399. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10400. # to its proper name (with version) after linking.
  10401. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10402. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10403. hardcode_libdir_separator_CXX=:
  10404. # Archives containing C++ object files must be created using
  10405. # the KAI C++ compiler.
  10406. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10407. ;;
  10408. RCC*)
  10409. # Rational C++ 2.4.1
  10410. # FIXME: insert proper C++ library support
  10411. ld_shlibs_CXX=no
  10412. ;;
  10413. cxx*)
  10414. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10415. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10416. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10417. echo "-hidden">> $lib.exp~
  10418. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  10419. $rm $lib.exp'
  10420. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10421. hardcode_libdir_separator_CXX=:
  10422. # Commands to make compiler produce verbose output that lists
  10423. # what "hidden" libraries, object files and flags are used when
  10424. # linking a shared library.
  10425. #
  10426. # There doesn't appear to be a way to prevent this compiler from
  10427. # explicitly linking system object files so we need to strip them
  10428. # from the output so that they don't get included in the library
  10429. # dependencies.
  10430. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10431. ;;
  10432. *)
  10433. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10434. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10435. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10436. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10437. hardcode_libdir_separator_CXX=:
  10438. # Commands to make compiler produce verbose output that lists
  10439. # what "hidden" libraries, object files and flags are used when
  10440. # linking a shared library.
  10441. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10442. else
  10443. # FIXME: insert proper C++ library support
  10444. ld_shlibs_CXX=no
  10445. fi
  10446. ;;
  10447. esac
  10448. ;;
  10449. psos*)
  10450. # FIXME: insert proper C++ library support
  10451. ld_shlibs_CXX=no
  10452. ;;
  10453. sunos4*)
  10454. case $cc_basename in
  10455. CC*)
  10456. # Sun C++ 4.x
  10457. # FIXME: insert proper C++ library support
  10458. ld_shlibs_CXX=no
  10459. ;;
  10460. lcc*)
  10461. # Lucid
  10462. # FIXME: insert proper C++ library support
  10463. ld_shlibs_CXX=no
  10464. ;;
  10465. *)
  10466. # FIXME: insert proper C++ library support
  10467. ld_shlibs_CXX=no
  10468. ;;
  10469. esac
  10470. ;;
  10471. solaris*)
  10472. case $cc_basename in
  10473. CC*)
  10474. # Sun C++ 4.2, 5.x and Centerline C++
  10475. archive_cmds_need_lc_CXX=yes
  10476. no_undefined_flag_CXX=' -zdefs'
  10477. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10478. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10479. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10480. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10481. hardcode_shlibpath_var_CXX=no
  10482. case $host_os in
  10483. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10484. *)
  10485. # The compiler driver will combine and reorder linker options,
  10486. # but understands `-z linker_flag'.
  10487. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10488. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10489. ;;
  10490. esac
  10491. link_all_deplibs_CXX=yes
  10492. output_verbose_link_cmd='echo'
  10493. # Archives containing C++ object files must be created using
  10494. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10495. # necessary to make sure instantiated templates are included
  10496. # in the archive.
  10497. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10498. ;;
  10499. gcx*)
  10500. # Green Hills C++ Compiler
  10501. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10502. # The C++ compiler must be used to create the archive.
  10503. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10504. ;;
  10505. *)
  10506. # GNU C++ compiler with Solaris linker
  10507. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10508. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10509. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10510. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10511. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10512. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10513. # Commands to make compiler produce verbose output that lists
  10514. # what "hidden" libraries, object files and flags are used when
  10515. # linking a shared library.
  10516. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10517. else
  10518. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10519. # platform.
  10520. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10521. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10522. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10523. # Commands to make compiler produce verbose output that lists
  10524. # what "hidden" libraries, object files and flags are used when
  10525. # linking a shared library.
  10526. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10527. fi
  10528. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10529. case $host_os in
  10530. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10531. *)
  10532. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10533. ;;
  10534. esac
  10535. fi
  10536. ;;
  10537. esac
  10538. ;;
  10539. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10540. no_undefined_flag_CXX='${wl}-z,text'
  10541. archive_cmds_need_lc_CXX=no
  10542. hardcode_shlibpath_var_CXX=no
  10543. runpath_var='LD_RUN_PATH'
  10544. case $cc_basename in
  10545. CC*)
  10546. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10547. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10548. ;;
  10549. *)
  10550. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10551. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10552. ;;
  10553. esac
  10554. ;;
  10555. sysv5* | sco3.2v5* | sco5v6*)
  10556. # Note: We can NOT use -z defs as we might desire, because we do not
  10557. # link with -lc, and that would cause any symbols used from libc to
  10558. # always be unresolved, which means just about no library would
  10559. # ever link correctly. If we're not using GNU ld we use -z text
  10560. # though, which does catch some bad symbols but isn't as heavy-handed
  10561. # as -z defs.
  10562. # For security reasons, it is highly recommended that you always
  10563. # use absolute paths for naming shared libraries, and exclude the
  10564. # DT_RUNPATH tag from executables and libraries. But doing so
  10565. # requires that you compile everything twice, which is a pain.
  10566. # So that behaviour is only enabled if SCOABSPATH is set to a
  10567. # non-empty value in the environment. Most likely only useful for
  10568. # creating official distributions of packages.
  10569. # This is a hack until libtool officially supports absolute path
  10570. # names for shared libraries.
  10571. no_undefined_flag_CXX='${wl}-z,text'
  10572. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10573. archive_cmds_need_lc_CXX=no
  10574. hardcode_shlibpath_var_CXX=no
  10575. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10576. hardcode_libdir_separator_CXX=':'
  10577. link_all_deplibs_CXX=yes
  10578. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10579. runpath_var='LD_RUN_PATH'
  10580. case $cc_basename in
  10581. CC*)
  10582. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10583. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10584. ;;
  10585. *)
  10586. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10587. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10588. ;;
  10589. esac
  10590. ;;
  10591. tandem*)
  10592. case $cc_basename in
  10593. NCC*)
  10594. # NonStop-UX NCC 3.20
  10595. # FIXME: insert proper C++ library support
  10596. ld_shlibs_CXX=no
  10597. ;;
  10598. *)
  10599. # FIXME: insert proper C++ library support
  10600. ld_shlibs_CXX=no
  10601. ;;
  10602. esac
  10603. ;;
  10604. vxworks*)
  10605. # FIXME: insert proper C++ library support
  10606. ld_shlibs_CXX=no
  10607. ;;
  10608. *)
  10609. # FIXME: insert proper C++ library support
  10610. ld_shlibs_CXX=no
  10611. ;;
  10612. esac
  10613. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10614. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10615. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10616. GCC_CXX="$GXX"
  10617. LD_CXX="$LD"
  10618. cat > conftest.$ac_ext <<EOF
  10619. class Foo
  10620. {
  10621. public:
  10622. Foo (void) { a = 0; }
  10623. private:
  10624. int a;
  10625. };
  10626. EOF
  10627. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10628. (eval $ac_compile) 2>&5
  10629. ac_status=$?
  10630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10631. (exit $ac_status); }; then
  10632. # Parse the compiler output and extract the necessary
  10633. # objects, libraries and library flags.
  10634. # Sentinel used to keep track of whether or not we are before
  10635. # the conftest object file.
  10636. pre_test_object_deps_done=no
  10637. # The `*' in the case matches for architectures that use `case' in
  10638. # $output_verbose_cmd can trigger glob expansion during the loop
  10639. # eval without this substitution.
  10640. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10641. for p in `eval $output_verbose_link_cmd`; do
  10642. case $p in
  10643. -L* | -R* | -l*)
  10644. # Some compilers place space between "-{L,R}" and the path.
  10645. # Remove the space.
  10646. if test $p = "-L" \
  10647. || test $p = "-R"; then
  10648. prev=$p
  10649. continue
  10650. else
  10651. prev=
  10652. fi
  10653. if test "$pre_test_object_deps_done" = no; then
  10654. case $p in
  10655. -L* | -R*)
  10656. # Internal compiler library paths should come after those
  10657. # provided the user. The postdeps already come after the
  10658. # user supplied libs so there is no need to process them.
  10659. if test -z "$compiler_lib_search_path_CXX"; then
  10660. compiler_lib_search_path_CXX="${prev}${p}"
  10661. else
  10662. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10663. fi
  10664. ;;
  10665. # The "-l" case would never come before the object being
  10666. # linked, so don't bother handling this case.
  10667. esac
  10668. else
  10669. if test -z "$postdeps_CXX"; then
  10670. postdeps_CXX="${prev}${p}"
  10671. else
  10672. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10673. fi
  10674. fi
  10675. ;;
  10676. *.$objext)
  10677. # This assumes that the test object file only shows up
  10678. # once in the compiler output.
  10679. if test "$p" = "conftest.$objext"; then
  10680. pre_test_object_deps_done=yes
  10681. continue
  10682. fi
  10683. if test "$pre_test_object_deps_done" = no; then
  10684. if test -z "$predep_objects_CXX"; then
  10685. predep_objects_CXX="$p"
  10686. else
  10687. predep_objects_CXX="$predep_objects_CXX $p"
  10688. fi
  10689. else
  10690. if test -z "$postdep_objects_CXX"; then
  10691. postdep_objects_CXX="$p"
  10692. else
  10693. postdep_objects_CXX="$postdep_objects_CXX $p"
  10694. fi
  10695. fi
  10696. ;;
  10697. *) ;; # Ignore the rest.
  10698. esac
  10699. done
  10700. # Clean up.
  10701. rm -f a.out a.exe
  10702. else
  10703. echo "libtool.m4: error: problem compiling CXX test program"
  10704. fi
  10705. $rm -f confest.$objext
  10706. # PORTME: override above test on systems where it is broken
  10707. case $host_os in
  10708. interix[3-9]*)
  10709. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10710. # hack all around it, let's just trust "g++" to DTRT.
  10711. predep_objects_CXX=
  10712. postdep_objects_CXX=
  10713. postdeps_CXX=
  10714. ;;
  10715. linux*)
  10716. case `$CC -V 2>&1 | sed 5q` in
  10717. *Sun\ C*)
  10718. # Sun C++ 5.9
  10719. #
  10720. # The more standards-conforming stlport4 library is
  10721. # incompatible with the Cstd library. Avoid specifying
  10722. # it if it's in CXXFLAGS. Ignore libCrun as
  10723. # -library=stlport4 depends on it.
  10724. case " $CXX $CXXFLAGS " in
  10725. *" -library=stlport4 "*)
  10726. solaris_use_stlport4=yes
  10727. ;;
  10728. esac
  10729. if test "$solaris_use_stlport4" != yes; then
  10730. postdeps_CXX='-library=Cstd -library=Crun'
  10731. fi
  10732. ;;
  10733. esac
  10734. ;;
  10735. solaris*)
  10736. case $cc_basename in
  10737. CC*)
  10738. # The more standards-conforming stlport4 library is
  10739. # incompatible with the Cstd library. Avoid specifying
  10740. # it if it's in CXXFLAGS. Ignore libCrun as
  10741. # -library=stlport4 depends on it.
  10742. case " $CXX $CXXFLAGS " in
  10743. *" -library=stlport4 "*)
  10744. solaris_use_stlport4=yes
  10745. ;;
  10746. esac
  10747. # Adding this requires a known-good setup of shared libraries for
  10748. # Sun compiler versions before 5.6, else PIC objects from an old
  10749. # archive will be linked into the output, leading to subtle bugs.
  10750. if test "$solaris_use_stlport4" != yes; then
  10751. postdeps_CXX='-library=Cstd -library=Crun'
  10752. fi
  10753. ;;
  10754. esac
  10755. ;;
  10756. esac
  10757. case " $postdeps_CXX " in
  10758. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10759. esac
  10760. lt_prog_compiler_wl_CXX=
  10761. lt_prog_compiler_pic_CXX=
  10762. lt_prog_compiler_static_CXX=
  10763. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10764. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10765. # C++ specific cases for pic, static, wl, etc.
  10766. if test "$GXX" = yes; then
  10767. lt_prog_compiler_wl_CXX='-Wl,'
  10768. lt_prog_compiler_static_CXX='-static'
  10769. case $host_os in
  10770. aix*)
  10771. # All AIX code is PIC.
  10772. if test "$host_cpu" = ia64; then
  10773. # AIX 5 now supports IA64 processor
  10774. lt_prog_compiler_static_CXX='-Bstatic'
  10775. fi
  10776. ;;
  10777. amigaos*)
  10778. # FIXME: we need at least 68020 code to build shared libraries, but
  10779. # adding the `-m68020' flag to GCC prevents building anything better,
  10780. # like `-m68040'.
  10781. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10782. ;;
  10783. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10784. # PIC is the default for these OSes.
  10785. ;;
  10786. mingw* | cygwin* | os2* | pw32*)
  10787. # This hack is so that the source file can tell whether it is being
  10788. # built for inclusion in a dll (and should export symbols for example).
  10789. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10790. # (--disable-auto-import) libraries
  10791. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10792. ;;
  10793. darwin* | rhapsody*)
  10794. # PIC is the default on this platform
  10795. # Common symbols not allowed in MH_DYLIB files
  10796. lt_prog_compiler_pic_CXX='-fno-common'
  10797. ;;
  10798. *djgpp*)
  10799. # DJGPP does not support shared libraries at all
  10800. lt_prog_compiler_pic_CXX=
  10801. ;;
  10802. interix[3-9]*)
  10803. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10804. # Instead, we relocate shared libraries at runtime.
  10805. ;;
  10806. sysv4*MP*)
  10807. if test -d /usr/nec; then
  10808. lt_prog_compiler_pic_CXX=-Kconform_pic
  10809. fi
  10810. ;;
  10811. hpux*)
  10812. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10813. # not for PA HP-UX.
  10814. case $host_cpu in
  10815. hppa*64*|ia64*)
  10816. ;;
  10817. *)
  10818. lt_prog_compiler_pic_CXX='-fPIC'
  10819. ;;
  10820. esac
  10821. ;;
  10822. *)
  10823. lt_prog_compiler_pic_CXX='-fPIC'
  10824. ;;
  10825. esac
  10826. else
  10827. case $host_os in
  10828. aix4* | aix5*)
  10829. # All AIX code is PIC.
  10830. if test "$host_cpu" = ia64; then
  10831. # AIX 5 now supports IA64 processor
  10832. lt_prog_compiler_static_CXX='-Bstatic'
  10833. else
  10834. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10835. fi
  10836. ;;
  10837. chorus*)
  10838. case $cc_basename in
  10839. cxch68*)
  10840. # Green Hills C++ Compiler
  10841. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  10842. ;;
  10843. esac
  10844. ;;
  10845. darwin*)
  10846. # PIC is the default on this platform
  10847. # Common symbols not allowed in MH_DYLIB files
  10848. case $cc_basename in
  10849. xlc*)
  10850. lt_prog_compiler_pic_CXX='-qnocommon'
  10851. lt_prog_compiler_wl_CXX='-Wl,'
  10852. ;;
  10853. esac
  10854. ;;
  10855. dgux*)
  10856. case $cc_basename in
  10857. ec++*)
  10858. lt_prog_compiler_pic_CXX='-KPIC'
  10859. ;;
  10860. ghcx*)
  10861. # Green Hills C++ Compiler
  10862. lt_prog_compiler_pic_CXX='-pic'
  10863. ;;
  10864. *)
  10865. ;;
  10866. esac
  10867. ;;
  10868. freebsd* | dragonfly*)
  10869. # FreeBSD uses GNU C++
  10870. ;;
  10871. hpux9* | hpux10* | hpux11*)
  10872. case $cc_basename in
  10873. CC*)
  10874. lt_prog_compiler_wl_CXX='-Wl,'
  10875. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10876. if test "$host_cpu" != ia64; then
  10877. lt_prog_compiler_pic_CXX='+Z'
  10878. fi
  10879. ;;
  10880. aCC*)
  10881. lt_prog_compiler_wl_CXX='-Wl,'
  10882. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10883. case $host_cpu in
  10884. hppa*64*|ia64*)
  10885. # +Z the default
  10886. ;;
  10887. *)
  10888. lt_prog_compiler_pic_CXX='+Z'
  10889. ;;
  10890. esac
  10891. ;;
  10892. *)
  10893. ;;
  10894. esac
  10895. ;;
  10896. interix*)
  10897. # This is c89, which is MS Visual C++ (no shared libs)
  10898. # Anyone wants to do a port?
  10899. ;;
  10900. irix5* | irix6* | nonstopux*)
  10901. case $cc_basename in
  10902. CC*)
  10903. lt_prog_compiler_wl_CXX='-Wl,'
  10904. lt_prog_compiler_static_CXX='-non_shared'
  10905. # CC pic flag -KPIC is the default.
  10906. ;;
  10907. *)
  10908. ;;
  10909. esac
  10910. ;;
  10911. linux* | k*bsd*-gnu)
  10912. case $cc_basename in
  10913. KCC*)
  10914. # KAI C++ Compiler
  10915. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10916. lt_prog_compiler_pic_CXX='-fPIC'
  10917. ;;
  10918. icpc* | ecpc*)
  10919. # Intel C++
  10920. lt_prog_compiler_wl_CXX='-Wl,'
  10921. lt_prog_compiler_pic_CXX='-KPIC'
  10922. lt_prog_compiler_static_CXX='-static'
  10923. ;;
  10924. pgCC*)
  10925. # Portland Group C++ compiler.
  10926. lt_prog_compiler_wl_CXX='-Wl,'
  10927. lt_prog_compiler_pic_CXX='-fpic'
  10928. lt_prog_compiler_static_CXX='-Bstatic'
  10929. ;;
  10930. cxx*)
  10931. # Compaq C++
  10932. # Make sure the PIC flag is empty. It appears that all Alpha
  10933. # Linux and Compaq Tru64 Unix objects are PIC.
  10934. lt_prog_compiler_pic_CXX=
  10935. lt_prog_compiler_static_CXX='-non_shared'
  10936. ;;
  10937. *)
  10938. case `$CC -V 2>&1 | sed 5q` in
  10939. *Sun\ C*)
  10940. # Sun C++ 5.9
  10941. lt_prog_compiler_pic_CXX='-KPIC'
  10942. lt_prog_compiler_static_CXX='-Bstatic'
  10943. lt_prog_compiler_wl_CXX='-Qoption ld '
  10944. ;;
  10945. esac
  10946. ;;
  10947. esac
  10948. ;;
  10949. lynxos*)
  10950. ;;
  10951. m88k*)
  10952. ;;
  10953. mvs*)
  10954. case $cc_basename in
  10955. cxx*)
  10956. lt_prog_compiler_pic_CXX='-W c,exportall'
  10957. ;;
  10958. *)
  10959. ;;
  10960. esac
  10961. ;;
  10962. netbsd* | netbsdelf*-gnu)
  10963. ;;
  10964. osf3* | osf4* | osf5*)
  10965. case $cc_basename in
  10966. KCC*)
  10967. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10968. ;;
  10969. RCC*)
  10970. # Rational C++ 2.4.1
  10971. lt_prog_compiler_pic_CXX='-pic'
  10972. ;;
  10973. cxx*)
  10974. # Digital/Compaq C++
  10975. lt_prog_compiler_wl_CXX='-Wl,'
  10976. # Make sure the PIC flag is empty. It appears that all Alpha
  10977. # Linux and Compaq Tru64 Unix objects are PIC.
  10978. lt_prog_compiler_pic_CXX=
  10979. lt_prog_compiler_static_CXX='-non_shared'
  10980. ;;
  10981. *)
  10982. ;;
  10983. esac
  10984. ;;
  10985. psos*)
  10986. ;;
  10987. solaris*)
  10988. case $cc_basename in
  10989. CC*)
  10990. # Sun C++ 4.2, 5.x and Centerline C++
  10991. lt_prog_compiler_pic_CXX='-KPIC'
  10992. lt_prog_compiler_static_CXX='-Bstatic'
  10993. lt_prog_compiler_wl_CXX='-Qoption ld '
  10994. ;;
  10995. gcx*)
  10996. # Green Hills C++ Compiler
  10997. lt_prog_compiler_pic_CXX='-PIC'
  10998. ;;
  10999. *)
  11000. ;;
  11001. esac
  11002. ;;
  11003. sunos4*)
  11004. case $cc_basename in
  11005. CC*)
  11006. # Sun C++ 4.x
  11007. lt_prog_compiler_pic_CXX='-pic'
  11008. lt_prog_compiler_static_CXX='-Bstatic'
  11009. ;;
  11010. lcc*)
  11011. # Lucid
  11012. lt_prog_compiler_pic_CXX='-pic'
  11013. ;;
  11014. *)
  11015. ;;
  11016. esac
  11017. ;;
  11018. tandem*)
  11019. case $cc_basename in
  11020. NCC*)
  11021. # NonStop-UX NCC 3.20
  11022. lt_prog_compiler_pic_CXX='-KPIC'
  11023. ;;
  11024. *)
  11025. ;;
  11026. esac
  11027. ;;
  11028. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11029. case $cc_basename in
  11030. CC*)
  11031. lt_prog_compiler_wl_CXX='-Wl,'
  11032. lt_prog_compiler_pic_CXX='-KPIC'
  11033. lt_prog_compiler_static_CXX='-Bstatic'
  11034. ;;
  11035. esac
  11036. ;;
  11037. vxworks*)
  11038. ;;
  11039. *)
  11040. lt_prog_compiler_can_build_shared_CXX=no
  11041. ;;
  11042. esac
  11043. fi
  11044. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11045. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11046. #
  11047. # Check to make sure the PIC flag actually works.
  11048. #
  11049. if test -n "$lt_prog_compiler_pic_CXX"; then
  11050. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11051. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11052. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11053. echo $ECHO_N "(cached) $ECHO_C" >&6
  11054. else
  11055. lt_prog_compiler_pic_works_CXX=no
  11056. ac_outfile=conftest.$ac_objext
  11057. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11058. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11059. # Insert the option either (1) after the last *FLAGS variable, or
  11060. # (2) before a word containing "conftest.", or (3) at the end.
  11061. # Note that $ac_compile itself does not contain backslashes and begins
  11062. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11063. # The option is referenced via a variable to avoid confusing sed.
  11064. lt_compile=`echo "$ac_compile" | $SED \
  11065. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11066. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11067. -e 's:$: $lt_compiler_flag:'`
  11068. (eval echo "\"\$as_me:12324: $lt_compile\"" >&5)
  11069. (eval "$lt_compile" 2>conftest.err)
  11070. ac_status=$?
  11071. cat conftest.err >&5
  11072. echo "$as_me:12328: \$? = $ac_status" >&5
  11073. if (exit $ac_status) && test -s "$ac_outfile"; then
  11074. # The compiler can only warn and ignore the option if not recognized
  11075. # So say no if there are warnings other than the usual output.
  11076. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11077. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11078. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11079. lt_prog_compiler_pic_works_CXX=yes
  11080. fi
  11081. fi
  11082. $rm conftest*
  11083. fi
  11084. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11085. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11086. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11087. case $lt_prog_compiler_pic_CXX in
  11088. "" | " "*) ;;
  11089. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11090. esac
  11091. else
  11092. lt_prog_compiler_pic_CXX=
  11093. lt_prog_compiler_can_build_shared_CXX=no
  11094. fi
  11095. fi
  11096. case $host_os in
  11097. # For platforms which do not support PIC, -DPIC is meaningless:
  11098. *djgpp*)
  11099. lt_prog_compiler_pic_CXX=
  11100. ;;
  11101. *)
  11102. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11103. ;;
  11104. esac
  11105. #
  11106. # Check to make sure the static flag actually works.
  11107. #
  11108. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11109. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11110. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11111. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11112. echo $ECHO_N "(cached) $ECHO_C" >&6
  11113. else
  11114. lt_prog_compiler_static_works_CXX=no
  11115. save_LDFLAGS="$LDFLAGS"
  11116. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11117. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11118. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11119. # The linker can only warn and ignore the option if not recognized
  11120. # So say no if there are warnings
  11121. if test -s conftest.err; then
  11122. # Append any errors to the config.log.
  11123. cat conftest.err 1>&5
  11124. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11125. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11126. if diff conftest.exp conftest.er2 >/dev/null; then
  11127. lt_prog_compiler_static_works_CXX=yes
  11128. fi
  11129. else
  11130. lt_prog_compiler_static_works_CXX=yes
  11131. fi
  11132. fi
  11133. $rm conftest*
  11134. LDFLAGS="$save_LDFLAGS"
  11135. fi
  11136. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11137. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11138. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11139. :
  11140. else
  11141. lt_prog_compiler_static_CXX=
  11142. fi
  11143. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11144. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11145. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11146. echo $ECHO_N "(cached) $ECHO_C" >&6
  11147. else
  11148. lt_cv_prog_compiler_c_o_CXX=no
  11149. $rm -r conftest 2>/dev/null
  11150. mkdir conftest
  11151. cd conftest
  11152. mkdir out
  11153. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11154. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11155. # Insert the option either (1) after the last *FLAGS variable, or
  11156. # (2) before a word containing "conftest.", or (3) at the end.
  11157. # Note that $ac_compile itself does not contain backslashes and begins
  11158. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11159. lt_compile=`echo "$ac_compile" | $SED \
  11160. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11161. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11162. -e 's:$: $lt_compiler_flag:'`
  11163. (eval echo "\"\$as_me:12428: $lt_compile\"" >&5)
  11164. (eval "$lt_compile" 2>out/conftest.err)
  11165. ac_status=$?
  11166. cat out/conftest.err >&5
  11167. echo "$as_me:12432: \$? = $ac_status" >&5
  11168. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11169. then
  11170. # The compiler can only warn and ignore the option if not recognized
  11171. # So say no if there are warnings
  11172. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11173. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11174. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11175. lt_cv_prog_compiler_c_o_CXX=yes
  11176. fi
  11177. fi
  11178. chmod u+w . 2>&5
  11179. $rm conftest*
  11180. # SGI C++ compiler will create directory out/ii_files/ for
  11181. # template instantiation
  11182. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11183. $rm out/* && rmdir out
  11184. cd ..
  11185. rmdir conftest
  11186. $rm conftest*
  11187. fi
  11188. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11189. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11190. hard_links="nottested"
  11191. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11192. # do not overwrite the value of need_locks provided by the user
  11193. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11194. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11195. hard_links=yes
  11196. $rm conftest*
  11197. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11198. touch conftest.a
  11199. ln conftest.a conftest.b 2>&5 || hard_links=no
  11200. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11201. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11202. echo "${ECHO_T}$hard_links" >&6; }
  11203. if test "$hard_links" = no; then
  11204. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11205. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11206. need_locks=warn
  11207. fi
  11208. else
  11209. need_locks=no
  11210. fi
  11211. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11212. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11213. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11214. case $host_os in
  11215. aix4* | aix5*)
  11216. # If we're using GNU nm, then we don't want the "-C" option.
  11217. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11218. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11219. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11220. else
  11221. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11222. fi
  11223. ;;
  11224. pw32*)
  11225. export_symbols_cmds_CXX="$ltdll_cmds"
  11226. ;;
  11227. cygwin* | mingw*)
  11228. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11229. ;;
  11230. linux* | k*bsd*-gnu)
  11231. link_all_deplibs_CXX=no
  11232. ;;
  11233. *)
  11234. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11235. ;;
  11236. esac
  11237. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11238. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11239. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11240. #
  11241. # Do we need to explicitly link libc?
  11242. #
  11243. case "x$archive_cmds_need_lc_CXX" in
  11244. x|xyes)
  11245. # Assume -lc should be added
  11246. archive_cmds_need_lc_CXX=yes
  11247. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11248. case $archive_cmds_CXX in
  11249. *'~'*)
  11250. # FIXME: we may have to deal with multi-command sequences.
  11251. ;;
  11252. '$CC '*)
  11253. # Test whether the compiler implicitly links with -lc since on some
  11254. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11255. # to ld, don't add -lc before -lgcc.
  11256. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11257. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11258. $rm conftest*
  11259. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11261. (eval $ac_compile) 2>&5
  11262. ac_status=$?
  11263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11264. (exit $ac_status); } 2>conftest.err; then
  11265. soname=conftest
  11266. lib=conftest
  11267. libobjs=conftest.$ac_objext
  11268. deplibs=
  11269. wl=$lt_prog_compiler_wl_CXX
  11270. pic_flag=$lt_prog_compiler_pic_CXX
  11271. compiler_flags=-v
  11272. linker_flags=-v
  11273. verstring=
  11274. output_objdir=.
  11275. libname=conftest
  11276. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11277. allow_undefined_flag_CXX=
  11278. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11279. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11280. ac_status=$?
  11281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11282. (exit $ac_status); }
  11283. then
  11284. archive_cmds_need_lc_CXX=no
  11285. else
  11286. archive_cmds_need_lc_CXX=yes
  11287. fi
  11288. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11289. else
  11290. cat conftest.err 1>&5
  11291. fi
  11292. $rm conftest*
  11293. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11294. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11295. ;;
  11296. esac
  11297. fi
  11298. ;;
  11299. esac
  11300. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11301. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11302. library_names_spec=
  11303. libname_spec='lib$name'
  11304. soname_spec=
  11305. shrext_cmds=".so"
  11306. postinstall_cmds=
  11307. postuninstall_cmds=
  11308. finish_cmds=
  11309. finish_eval=
  11310. shlibpath_var=
  11311. shlibpath_overrides_runpath=unknown
  11312. version_type=none
  11313. dynamic_linker="$host_os ld.so"
  11314. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11315. need_lib_prefix=unknown
  11316. hardcode_into_libs=no
  11317. # when you set need_version to no, make sure it does not cause -set_version
  11318. # flags to be left without arguments
  11319. need_version=unknown
  11320. case $host_os in
  11321. aix3*)
  11322. version_type=linux
  11323. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11324. shlibpath_var=LIBPATH
  11325. # AIX 3 has no versioning support, so we append a major version to the name.
  11326. soname_spec='${libname}${release}${shared_ext}$major'
  11327. ;;
  11328. aix4* | aix5*)
  11329. version_type=linux
  11330. need_lib_prefix=no
  11331. need_version=no
  11332. hardcode_into_libs=yes
  11333. if test "$host_cpu" = ia64; then
  11334. # AIX 5 supports IA64
  11335. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11336. shlibpath_var=LD_LIBRARY_PATH
  11337. else
  11338. # With GCC up to 2.95.x, collect2 would create an import file
  11339. # for dependence libraries. The import file would start with
  11340. # the line `#! .'. This would cause the generated library to
  11341. # depend on `.', always an invalid library. This was fixed in
  11342. # development snapshots of GCC prior to 3.0.
  11343. case $host_os in
  11344. aix4 | aix4.[01] | aix4.[01].*)
  11345. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11346. echo ' yes '
  11347. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11348. :
  11349. else
  11350. can_build_shared=no
  11351. fi
  11352. ;;
  11353. esac
  11354. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11355. # soname into executable. Probably we can add versioning support to
  11356. # collect2, so additional links can be useful in future.
  11357. if test "$aix_use_runtimelinking" = yes; then
  11358. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11359. # instead of lib<name>.a to let people know that these are not
  11360. # typical AIX shared libraries.
  11361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11362. else
  11363. # We preserve .a as extension for shared libraries through AIX4.2
  11364. # and later when we are not doing run time linking.
  11365. library_names_spec='${libname}${release}.a $libname.a'
  11366. soname_spec='${libname}${release}${shared_ext}$major'
  11367. fi
  11368. shlibpath_var=LIBPATH
  11369. fi
  11370. ;;
  11371. amigaos*)
  11372. library_names_spec='$libname.ixlibrary $libname.a'
  11373. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11374. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11375. ;;
  11376. beos*)
  11377. library_names_spec='${libname}${shared_ext}'
  11378. dynamic_linker="$host_os ld.so"
  11379. shlibpath_var=LIBRARY_PATH
  11380. ;;
  11381. bsdi[45]*)
  11382. version_type=linux
  11383. need_version=no
  11384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11385. soname_spec='${libname}${release}${shared_ext}$major'
  11386. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11387. shlibpath_var=LD_LIBRARY_PATH
  11388. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11389. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11390. # the default ld.so.conf also contains /usr/contrib/lib and
  11391. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11392. # libtool to hard-code these into programs
  11393. ;;
  11394. cygwin* | mingw* | pw32*)
  11395. version_type=windows
  11396. shrext_cmds=".dll"
  11397. need_version=no
  11398. need_lib_prefix=no
  11399. case $GCC,$host_os in
  11400. yes,cygwin* | yes,mingw* | yes,pw32*)
  11401. library_names_spec='$libname.dll.a'
  11402. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11403. postinstall_cmds='base_file=`basename \${file}`~
  11404. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11405. dldir=$destdir/`dirname \$dlpath`~
  11406. test -d \$dldir || mkdir -p \$dldir~
  11407. $install_prog $dir/$dlname \$dldir/$dlname~
  11408. chmod a+x \$dldir/$dlname'
  11409. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11410. dlpath=$dir/\$dldll~
  11411. $rm \$dlpath'
  11412. shlibpath_overrides_runpath=yes
  11413. case $host_os in
  11414. cygwin*)
  11415. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11416. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11417. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11418. ;;
  11419. mingw*)
  11420. # MinGW DLLs use traditional 'lib' prefix
  11421. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11422. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11423. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11424. # It is most probably a Windows format PATH printed by
  11425. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11426. # path with ; separators, and with drive letters. We can handle the
  11427. # drive letters (cygwin fileutils understands them), so leave them,
  11428. # especially as we might pass files found there to a mingw objdump,
  11429. # which wouldn't understand a cygwinified path. Ahh.
  11430. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11431. else
  11432. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11433. fi
  11434. ;;
  11435. pw32*)
  11436. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11437. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11438. ;;
  11439. esac
  11440. ;;
  11441. *)
  11442. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11443. ;;
  11444. esac
  11445. dynamic_linker='Win32 ld.exe'
  11446. # FIXME: first we should search . and the directory the executable is in
  11447. shlibpath_var=PATH
  11448. ;;
  11449. darwin* | rhapsody*)
  11450. dynamic_linker="$host_os dyld"
  11451. version_type=darwin
  11452. need_lib_prefix=no
  11453. need_version=no
  11454. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11455. soname_spec='${libname}${release}${major}$shared_ext'
  11456. shlibpath_overrides_runpath=yes
  11457. shlibpath_var=DYLD_LIBRARY_PATH
  11458. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11459. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11460. ;;
  11461. dgux*)
  11462. version_type=linux
  11463. need_lib_prefix=no
  11464. need_version=no
  11465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11466. soname_spec='${libname}${release}${shared_ext}$major'
  11467. shlibpath_var=LD_LIBRARY_PATH
  11468. ;;
  11469. freebsd1*)
  11470. dynamic_linker=no
  11471. ;;
  11472. freebsd* | dragonfly*)
  11473. # DragonFly does not have aout. When/if they implement a new
  11474. # versioning mechanism, adjust this.
  11475. if test -x /usr/bin/objformat; then
  11476. objformat=`/usr/bin/objformat`
  11477. else
  11478. case $host_os in
  11479. freebsd[123]*) objformat=aout ;;
  11480. *) objformat=elf ;;
  11481. esac
  11482. fi
  11483. version_type=freebsd-$objformat
  11484. case $version_type in
  11485. freebsd-elf*)
  11486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11487. need_version=no
  11488. need_lib_prefix=no
  11489. ;;
  11490. freebsd-*)
  11491. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11492. need_version=yes
  11493. ;;
  11494. esac
  11495. shlibpath_var=LD_LIBRARY_PATH
  11496. case $host_os in
  11497. freebsd2*)
  11498. shlibpath_overrides_runpath=yes
  11499. ;;
  11500. freebsd3.[01]* | freebsdelf3.[01]*)
  11501. shlibpath_overrides_runpath=yes
  11502. hardcode_into_libs=yes
  11503. ;;
  11504. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11505. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11506. shlibpath_overrides_runpath=no
  11507. hardcode_into_libs=yes
  11508. ;;
  11509. *) # from 4.6 on, and DragonFly
  11510. shlibpath_overrides_runpath=yes
  11511. hardcode_into_libs=yes
  11512. ;;
  11513. esac
  11514. ;;
  11515. gnu*)
  11516. version_type=linux
  11517. need_lib_prefix=no
  11518. need_version=no
  11519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11520. soname_spec='${libname}${release}${shared_ext}$major'
  11521. shlibpath_var=LD_LIBRARY_PATH
  11522. hardcode_into_libs=yes
  11523. ;;
  11524. hpux9* | hpux10* | hpux11*)
  11525. # Give a soname corresponding to the major version so that dld.sl refuses to
  11526. # link against other versions.
  11527. version_type=sunos
  11528. need_lib_prefix=no
  11529. need_version=no
  11530. case $host_cpu in
  11531. ia64*)
  11532. shrext_cmds='.so'
  11533. hardcode_into_libs=yes
  11534. dynamic_linker="$host_os dld.so"
  11535. shlibpath_var=LD_LIBRARY_PATH
  11536. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11537. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11538. soname_spec='${libname}${release}${shared_ext}$major'
  11539. if test "X$HPUX_IA64_MODE" = X32; then
  11540. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11541. else
  11542. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11543. fi
  11544. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11545. ;;
  11546. hppa*64*)
  11547. shrext_cmds='.sl'
  11548. hardcode_into_libs=yes
  11549. dynamic_linker="$host_os dld.sl"
  11550. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11551. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11553. soname_spec='${libname}${release}${shared_ext}$major'
  11554. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11555. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11556. ;;
  11557. *)
  11558. shrext_cmds='.sl'
  11559. dynamic_linker="$host_os dld.sl"
  11560. shlibpath_var=SHLIB_PATH
  11561. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11563. soname_spec='${libname}${release}${shared_ext}$major'
  11564. ;;
  11565. esac
  11566. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11567. postinstall_cmds='chmod 555 $lib'
  11568. ;;
  11569. interix[3-9]*)
  11570. version_type=linux
  11571. need_lib_prefix=no
  11572. need_version=no
  11573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11574. soname_spec='${libname}${release}${shared_ext}$major'
  11575. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11576. shlibpath_var=LD_LIBRARY_PATH
  11577. shlibpath_overrides_runpath=no
  11578. hardcode_into_libs=yes
  11579. ;;
  11580. irix5* | irix6* | nonstopux*)
  11581. case $host_os in
  11582. nonstopux*) version_type=nonstopux ;;
  11583. *)
  11584. if test "$lt_cv_prog_gnu_ld" = yes; then
  11585. version_type=linux
  11586. else
  11587. version_type=irix
  11588. fi ;;
  11589. esac
  11590. need_lib_prefix=no
  11591. need_version=no
  11592. soname_spec='${libname}${release}${shared_ext}$major'
  11593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11594. case $host_os in
  11595. irix5* | nonstopux*)
  11596. libsuff= shlibsuff=
  11597. ;;
  11598. *)
  11599. case $LD in # libtool.m4 will add one of these switches to LD
  11600. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11601. libsuff= shlibsuff= libmagic=32-bit;;
  11602. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11603. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11604. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11605. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11606. *) libsuff= shlibsuff= libmagic=never-match;;
  11607. esac
  11608. ;;
  11609. esac
  11610. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11611. shlibpath_overrides_runpath=no
  11612. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11613. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11614. hardcode_into_libs=yes
  11615. ;;
  11616. # No shared lib support for Linux oldld, aout, or coff.
  11617. linux*oldld* | linux*aout* | linux*coff*)
  11618. dynamic_linker=no
  11619. ;;
  11620. # This must be Linux ELF.
  11621. linux* | k*bsd*-gnu)
  11622. version_type=linux
  11623. need_lib_prefix=no
  11624. need_version=no
  11625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11626. soname_spec='${libname}${release}${shared_ext}$major'
  11627. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11628. shlibpath_var=LD_LIBRARY_PATH
  11629. shlibpath_overrides_runpath=no
  11630. # This implies no fast_install, which is unacceptable.
  11631. # Some rework will be needed to allow for fast_install
  11632. # before this can be enabled.
  11633. hardcode_into_libs=yes
  11634. # Append ld.so.conf contents to the search path
  11635. if test -f /etc/ld.so.conf; then
  11636. 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;/^$/d' | tr '\n' ' '`
  11637. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11638. fi
  11639. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11640. # powerpc, because MkLinux only supported shared libraries with the
  11641. # GNU dynamic linker. Since this was broken with cross compilers,
  11642. # most powerpc-linux boxes support dynamic linking these days and
  11643. # people can always --disable-shared, the test was removed, and we
  11644. # assume the GNU/Linux dynamic linker is in use.
  11645. dynamic_linker='GNU/Linux ld.so'
  11646. ;;
  11647. netbsdelf*-gnu)
  11648. version_type=linux
  11649. need_lib_prefix=no
  11650. need_version=no
  11651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11652. soname_spec='${libname}${release}${shared_ext}$major'
  11653. shlibpath_var=LD_LIBRARY_PATH
  11654. shlibpath_overrides_runpath=no
  11655. hardcode_into_libs=yes
  11656. dynamic_linker='NetBSD ld.elf_so'
  11657. ;;
  11658. netbsd*)
  11659. version_type=sunos
  11660. need_lib_prefix=no
  11661. need_version=no
  11662. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11664. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11665. dynamic_linker='NetBSD (a.out) ld.so'
  11666. else
  11667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11668. soname_spec='${libname}${release}${shared_ext}$major'
  11669. dynamic_linker='NetBSD ld.elf_so'
  11670. fi
  11671. shlibpath_var=LD_LIBRARY_PATH
  11672. shlibpath_overrides_runpath=yes
  11673. hardcode_into_libs=yes
  11674. ;;
  11675. newsos6)
  11676. version_type=linux
  11677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11678. shlibpath_var=LD_LIBRARY_PATH
  11679. shlibpath_overrides_runpath=yes
  11680. ;;
  11681. nto-qnx*)
  11682. version_type=linux
  11683. need_lib_prefix=no
  11684. need_version=no
  11685. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11686. soname_spec='${libname}${release}${shared_ext}$major'
  11687. shlibpath_var=LD_LIBRARY_PATH
  11688. shlibpath_overrides_runpath=yes
  11689. ;;
  11690. openbsd*)
  11691. version_type=sunos
  11692. sys_lib_dlsearch_path_spec="/usr/lib"
  11693. need_lib_prefix=no
  11694. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11695. case $host_os in
  11696. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11697. *) need_version=no ;;
  11698. esac
  11699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11700. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11701. shlibpath_var=LD_LIBRARY_PATH
  11702. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11703. case $host_os in
  11704. openbsd2.[89] | openbsd2.[89].*)
  11705. shlibpath_overrides_runpath=no
  11706. ;;
  11707. *)
  11708. shlibpath_overrides_runpath=yes
  11709. ;;
  11710. esac
  11711. else
  11712. shlibpath_overrides_runpath=yes
  11713. fi
  11714. ;;
  11715. os2*)
  11716. libname_spec='$name'
  11717. shrext_cmds=".dll"
  11718. need_lib_prefix=no
  11719. library_names_spec='$libname${shared_ext} $libname.a'
  11720. dynamic_linker='OS/2 ld.exe'
  11721. shlibpath_var=LIBPATH
  11722. ;;
  11723. osf3* | osf4* | osf5*)
  11724. version_type=osf
  11725. need_lib_prefix=no
  11726. need_version=no
  11727. soname_spec='${libname}${release}${shared_ext}$major'
  11728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11729. shlibpath_var=LD_LIBRARY_PATH
  11730. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11731. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11732. ;;
  11733. rdos*)
  11734. dynamic_linker=no
  11735. ;;
  11736. solaris*)
  11737. version_type=linux
  11738. need_lib_prefix=no
  11739. need_version=no
  11740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11741. soname_spec='${libname}${release}${shared_ext}$major'
  11742. shlibpath_var=LD_LIBRARY_PATH
  11743. shlibpath_overrides_runpath=yes
  11744. hardcode_into_libs=yes
  11745. # ldd complains unless libraries are executable
  11746. postinstall_cmds='chmod +x $lib'
  11747. ;;
  11748. sunos4*)
  11749. version_type=sunos
  11750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11751. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11752. shlibpath_var=LD_LIBRARY_PATH
  11753. shlibpath_overrides_runpath=yes
  11754. if test "$with_gnu_ld" = yes; then
  11755. need_lib_prefix=no
  11756. fi
  11757. need_version=yes
  11758. ;;
  11759. sysv4 | sysv4.3*)
  11760. version_type=linux
  11761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11762. soname_spec='${libname}${release}${shared_ext}$major'
  11763. shlibpath_var=LD_LIBRARY_PATH
  11764. case $host_vendor in
  11765. sni)
  11766. shlibpath_overrides_runpath=no
  11767. need_lib_prefix=no
  11768. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11769. runpath_var=LD_RUN_PATH
  11770. ;;
  11771. siemens)
  11772. need_lib_prefix=no
  11773. ;;
  11774. motorola)
  11775. need_lib_prefix=no
  11776. need_version=no
  11777. shlibpath_overrides_runpath=no
  11778. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11779. ;;
  11780. esac
  11781. ;;
  11782. sysv4*MP*)
  11783. if test -d /usr/nec ;then
  11784. version_type=linux
  11785. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11786. soname_spec='$libname${shared_ext}.$major'
  11787. shlibpath_var=LD_LIBRARY_PATH
  11788. fi
  11789. ;;
  11790. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11791. version_type=freebsd-elf
  11792. need_lib_prefix=no
  11793. need_version=no
  11794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11795. soname_spec='${libname}${release}${shared_ext}$major'
  11796. shlibpath_var=LD_LIBRARY_PATH
  11797. hardcode_into_libs=yes
  11798. if test "$with_gnu_ld" = yes; then
  11799. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11800. shlibpath_overrides_runpath=no
  11801. else
  11802. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11803. shlibpath_overrides_runpath=yes
  11804. case $host_os in
  11805. sco3.2v5*)
  11806. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11807. ;;
  11808. esac
  11809. fi
  11810. sys_lib_dlsearch_path_spec='/usr/lib'
  11811. ;;
  11812. uts4*)
  11813. version_type=linux
  11814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11815. soname_spec='${libname}${release}${shared_ext}$major'
  11816. shlibpath_var=LD_LIBRARY_PATH
  11817. ;;
  11818. *)
  11819. dynamic_linker=no
  11820. ;;
  11821. esac
  11822. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11823. echo "${ECHO_T}$dynamic_linker" >&6; }
  11824. test "$dynamic_linker" = no && can_build_shared=no
  11825. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11826. if test "$GCC" = yes; then
  11827. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11828. fi
  11829. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11830. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11831. hardcode_action_CXX=
  11832. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11833. test -n "$runpath_var_CXX" || \
  11834. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11835. # We can hardcode non-existant directories.
  11836. if test "$hardcode_direct_CXX" != no &&
  11837. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11838. # have to relink, otherwise we might link with an installed library
  11839. # when we should be linking with a yet-to-be-installed one
  11840. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11841. test "$hardcode_minus_L_CXX" != no; then
  11842. # Linking always hardcodes the temporary library directory.
  11843. hardcode_action_CXX=relink
  11844. else
  11845. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11846. hardcode_action_CXX=immediate
  11847. fi
  11848. else
  11849. # We cannot hardcode anything, or else we can only hardcode existing
  11850. # directories.
  11851. hardcode_action_CXX=unsupported
  11852. fi
  11853. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11854. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11855. if test "$hardcode_action_CXX" = relink; then
  11856. # Fast installation is not supported
  11857. enable_fast_install=no
  11858. elif test "$shlibpath_overrides_runpath" = yes ||
  11859. test "$enable_shared" = no; then
  11860. # Fast installation is not necessary
  11861. enable_fast_install=needless
  11862. fi
  11863. # The else clause should only fire when bootstrapping the
  11864. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11865. # with your package, and you will get complaints that there are
  11866. # no rules to generate ltmain.sh.
  11867. if test -f "$ltmain"; then
  11868. # See if we are running on zsh, and set the options which allow our commands through
  11869. # without removal of \ escapes.
  11870. if test -n "${ZSH_VERSION+set}" ; then
  11871. setopt NO_GLOB_SUBST
  11872. fi
  11873. # Now quote all the things that may contain metacharacters while being
  11874. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11875. # variables and quote the copies for generation of the libtool script.
  11876. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11877. SED SHELL STRIP \
  11878. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11879. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11880. deplibs_check_method reload_flag reload_cmds need_locks \
  11881. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11882. lt_cv_sys_global_symbol_to_c_name_address \
  11883. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11884. old_postinstall_cmds old_postuninstall_cmds \
  11885. compiler_CXX \
  11886. CC_CXX \
  11887. LD_CXX \
  11888. lt_prog_compiler_wl_CXX \
  11889. lt_prog_compiler_pic_CXX \
  11890. lt_prog_compiler_static_CXX \
  11891. lt_prog_compiler_no_builtin_flag_CXX \
  11892. export_dynamic_flag_spec_CXX \
  11893. thread_safe_flag_spec_CXX \
  11894. whole_archive_flag_spec_CXX \
  11895. enable_shared_with_static_runtimes_CXX \
  11896. old_archive_cmds_CXX \
  11897. old_archive_from_new_cmds_CXX \
  11898. predep_objects_CXX \
  11899. postdep_objects_CXX \
  11900. predeps_CXX \
  11901. postdeps_CXX \
  11902. compiler_lib_search_path_CXX \
  11903. archive_cmds_CXX \
  11904. archive_expsym_cmds_CXX \
  11905. postinstall_cmds_CXX \
  11906. postuninstall_cmds_CXX \
  11907. old_archive_from_expsyms_cmds_CXX \
  11908. allow_undefined_flag_CXX \
  11909. no_undefined_flag_CXX \
  11910. export_symbols_cmds_CXX \
  11911. hardcode_libdir_flag_spec_CXX \
  11912. hardcode_libdir_flag_spec_ld_CXX \
  11913. hardcode_libdir_separator_CXX \
  11914. hardcode_automatic_CXX \
  11915. module_cmds_CXX \
  11916. module_expsym_cmds_CXX \
  11917. lt_cv_prog_compiler_c_o_CXX \
  11918. fix_srcfile_path_CXX \
  11919. exclude_expsyms_CXX \
  11920. include_expsyms_CXX; do
  11921. case $var in
  11922. old_archive_cmds_CXX | \
  11923. old_archive_from_new_cmds_CXX | \
  11924. archive_cmds_CXX | \
  11925. archive_expsym_cmds_CXX | \
  11926. module_cmds_CXX | \
  11927. module_expsym_cmds_CXX | \
  11928. old_archive_from_expsyms_cmds_CXX | \
  11929. export_symbols_cmds_CXX | \
  11930. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11931. postinstall_cmds | postuninstall_cmds | \
  11932. old_postinstall_cmds | old_postuninstall_cmds | \
  11933. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11934. # Double-quote double-evaled strings.
  11935. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11936. ;;
  11937. *)
  11938. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11939. ;;
  11940. esac
  11941. done
  11942. case $lt_echo in
  11943. *'\$0 --fallback-echo"')
  11944. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11945. ;;
  11946. esac
  11947. cfgfile="$ofile"
  11948. cat <<__EOF__ >> "$cfgfile"
  11949. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11950. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11951. # Shell to use when invoking shell scripts.
  11952. SHELL=$lt_SHELL
  11953. # Whether or not to build shared libraries.
  11954. build_libtool_libs=$enable_shared
  11955. # Whether or not to build static libraries.
  11956. build_old_libs=$enable_static
  11957. # Whether or not to add -lc for building shared libraries.
  11958. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11959. # Whether or not to disallow shared libs when runtime libs are static
  11960. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11961. # Whether or not to optimize for fast installation.
  11962. fast_install=$enable_fast_install
  11963. # The host system.
  11964. host_alias=$host_alias
  11965. host=$host
  11966. host_os=$host_os
  11967. # The build system.
  11968. build_alias=$build_alias
  11969. build=$build
  11970. build_os=$build_os
  11971. # An echo program that does not interpret backslashes.
  11972. echo=$lt_echo
  11973. # The archiver.
  11974. AR=$lt_AR
  11975. AR_FLAGS=$lt_AR_FLAGS
  11976. # A C compiler.
  11977. LTCC=$lt_LTCC
  11978. # LTCC compiler flags.
  11979. LTCFLAGS=$lt_LTCFLAGS
  11980. # A language-specific compiler.
  11981. CC=$lt_compiler_CXX
  11982. # Is the compiler the GNU C compiler?
  11983. with_gcc=$GCC_CXX
  11984. # An ERE matcher.
  11985. EGREP=$lt_EGREP
  11986. # The linker used to build libraries.
  11987. LD=$lt_LD_CXX
  11988. # Whether we need hard or soft links.
  11989. LN_S=$lt_LN_S
  11990. # A BSD-compatible nm program.
  11991. NM=$lt_NM
  11992. # A symbol stripping program
  11993. STRIP=$lt_STRIP
  11994. # Used to examine libraries when file_magic_cmd begins "file"
  11995. MAGIC_CMD=$MAGIC_CMD
  11996. # Used on cygwin: DLL creation program.
  11997. DLLTOOL="$DLLTOOL"
  11998. # Used on cygwin: object dumper.
  11999. OBJDUMP="$OBJDUMP"
  12000. # Used on cygwin: assembler.
  12001. AS="$AS"
  12002. # The name of the directory that contains temporary libtool files.
  12003. objdir=$objdir
  12004. # How to create reloadable object files.
  12005. reload_flag=$lt_reload_flag
  12006. reload_cmds=$lt_reload_cmds
  12007. # How to pass a linker flag through the compiler.
  12008. wl=$lt_lt_prog_compiler_wl_CXX
  12009. # Object file suffix (normally "o").
  12010. objext="$ac_objext"
  12011. # Old archive suffix (normally "a").
  12012. libext="$libext"
  12013. # Shared library suffix (normally ".so").
  12014. shrext_cmds='$shrext_cmds'
  12015. # Executable file suffix (normally "").
  12016. exeext="$exeext"
  12017. # Additional compiler flags for building library objects.
  12018. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12019. pic_mode=$pic_mode
  12020. # What is the maximum length of a command?
  12021. max_cmd_len=$lt_cv_sys_max_cmd_len
  12022. # Does compiler simultaneously support -c and -o options?
  12023. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12024. # Must we lock files when doing compilation?
  12025. need_locks=$lt_need_locks
  12026. # Do we need the lib prefix for modules?
  12027. need_lib_prefix=$need_lib_prefix
  12028. # Do we need a version for libraries?
  12029. need_version=$need_version
  12030. # Whether dlopen is supported.
  12031. dlopen_support=$enable_dlopen
  12032. # Whether dlopen of programs is supported.
  12033. dlopen_self=$enable_dlopen_self
  12034. # Whether dlopen of statically linked programs is supported.
  12035. dlopen_self_static=$enable_dlopen_self_static
  12036. # Compiler flag to prevent dynamic linking.
  12037. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12038. # Compiler flag to turn off builtin functions.
  12039. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12040. # Compiler flag to allow reflexive dlopens.
  12041. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12042. # Compiler flag to generate shared objects directly from archives.
  12043. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12044. # Compiler flag to generate thread-safe objects.
  12045. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12046. # Library versioning type.
  12047. version_type=$version_type
  12048. # Format of library name prefix.
  12049. libname_spec=$lt_libname_spec
  12050. # List of archive names. First name is the real one, the rest are links.
  12051. # The last name is the one that the linker finds with -lNAME.
  12052. library_names_spec=$lt_library_names_spec
  12053. # The coded name of the library, if different from the real name.
  12054. soname_spec=$lt_soname_spec
  12055. # Commands used to build and install an old-style archive.
  12056. RANLIB=$lt_RANLIB
  12057. old_archive_cmds=$lt_old_archive_cmds_CXX
  12058. old_postinstall_cmds=$lt_old_postinstall_cmds
  12059. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12060. # Create an old-style archive from a shared archive.
  12061. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12062. # Create a temporary old-style archive to link instead of a shared archive.
  12063. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12064. # Commands used to build and install a shared archive.
  12065. archive_cmds=$lt_archive_cmds_CXX
  12066. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12067. postinstall_cmds=$lt_postinstall_cmds
  12068. postuninstall_cmds=$lt_postuninstall_cmds
  12069. # Commands used to build a loadable module (assumed same as above if empty)
  12070. module_cmds=$lt_module_cmds_CXX
  12071. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12072. # Commands to strip libraries.
  12073. old_striplib=$lt_old_striplib
  12074. striplib=$lt_striplib
  12075. # Dependencies to place before the objects being linked to create a
  12076. # shared library.
  12077. predep_objects=$lt_predep_objects_CXX
  12078. # Dependencies to place after the objects being linked to create a
  12079. # shared library.
  12080. postdep_objects=$lt_postdep_objects_CXX
  12081. # Dependencies to place before the objects being linked to create a
  12082. # shared library.
  12083. predeps=$lt_predeps_CXX
  12084. # Dependencies to place after the objects being linked to create a
  12085. # shared library.
  12086. postdeps=$lt_postdeps_CXX
  12087. # The library search path used internally by the compiler when linking
  12088. # a shared library.
  12089. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12090. # Method to check whether dependent libraries are shared objects.
  12091. deplibs_check_method=$lt_deplibs_check_method
  12092. # Command to use when deplibs_check_method == file_magic.
  12093. file_magic_cmd=$lt_file_magic_cmd
  12094. # Flag that allows shared libraries with undefined symbols to be built.
  12095. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12096. # Flag that forces no undefined symbols.
  12097. no_undefined_flag=$lt_no_undefined_flag_CXX
  12098. # Commands used to finish a libtool library installation in a directory.
  12099. finish_cmds=$lt_finish_cmds
  12100. # Same as above, but a single script fragment to be evaled but not shown.
  12101. finish_eval=$lt_finish_eval
  12102. # Take the output of nm and produce a listing of raw symbols and C names.
  12103. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12104. # Transform the output of nm in a proper C declaration
  12105. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12106. # Transform the output of nm in a C name address pair
  12107. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12108. # This is the shared library runtime path variable.
  12109. runpath_var=$runpath_var
  12110. # This is the shared library path variable.
  12111. shlibpath_var=$shlibpath_var
  12112. # Is shlibpath searched before the hard-coded library search path?
  12113. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12114. # How to hardcode a shared library path into an executable.
  12115. hardcode_action=$hardcode_action_CXX
  12116. # Whether we should hardcode library paths into libraries.
  12117. hardcode_into_libs=$hardcode_into_libs
  12118. # Flag to hardcode \$libdir into a binary during linking.
  12119. # This must work even if \$libdir does not exist.
  12120. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12121. # If ld is used when linking, flag to hardcode \$libdir into
  12122. # a binary during linking. This must work even if \$libdir does
  12123. # not exist.
  12124. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12125. # Whether we need a single -rpath flag with a separated argument.
  12126. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12127. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12128. # resulting binary.
  12129. hardcode_direct=$hardcode_direct_CXX
  12130. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12131. # resulting binary.
  12132. hardcode_minus_L=$hardcode_minus_L_CXX
  12133. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12134. # the resulting binary.
  12135. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12136. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12137. # and all subsequent libraries and executables linked against it.
  12138. hardcode_automatic=$hardcode_automatic_CXX
  12139. # Variables whose values should be saved in libtool wrapper scripts and
  12140. # restored at relink time.
  12141. variables_saved_for_relink="$variables_saved_for_relink"
  12142. # Whether libtool must link a program against all its dependency libraries.
  12143. link_all_deplibs=$link_all_deplibs_CXX
  12144. # Compile-time system search path for libraries
  12145. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12146. # Run-time system search path for libraries
  12147. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12148. # Fix the shell variable \$srcfile for the compiler.
  12149. fix_srcfile_path=$lt_fix_srcfile_path
  12150. # Set to yes if exported symbols are required.
  12151. always_export_symbols=$always_export_symbols_CXX
  12152. # The commands to list exported symbols.
  12153. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12154. # The commands to extract the exported symbol list from a shared archive.
  12155. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12156. # Symbols that should not be listed in the preloaded symbols.
  12157. exclude_expsyms=$lt_exclude_expsyms_CXX
  12158. # Symbols that must always be exported.
  12159. include_expsyms=$lt_include_expsyms_CXX
  12160. # ### END LIBTOOL TAG CONFIG: $tagname
  12161. __EOF__
  12162. else
  12163. # If there is no Makefile yet, we rely on a make rule to execute
  12164. # `config.status --recheck' to rerun these tests and create the
  12165. # libtool script then.
  12166. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12167. if test -f "$ltmain_in"; then
  12168. test -f Makefile && make "$ltmain"
  12169. fi
  12170. fi
  12171. ac_ext=c
  12172. ac_cpp='$CPP $CPPFLAGS'
  12173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12176. CC=$lt_save_CC
  12177. LDCXX=$LD
  12178. LD=$lt_save_LD
  12179. GCC=$lt_save_GCC
  12180. with_gnu_ldcxx=$with_gnu_ld
  12181. with_gnu_ld=$lt_save_with_gnu_ld
  12182. lt_cv_path_LDCXX=$lt_cv_path_LD
  12183. lt_cv_path_LD=$lt_save_path_LD
  12184. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12185. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12186. else
  12187. tagname=""
  12188. fi
  12189. ;;
  12190. F77)
  12191. if test -n "$F77" && test "X$F77" != "Xno"; then
  12192. ac_ext=f
  12193. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12194. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12195. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12196. archive_cmds_need_lc_F77=no
  12197. allow_undefined_flag_F77=
  12198. always_export_symbols_F77=no
  12199. archive_expsym_cmds_F77=
  12200. export_dynamic_flag_spec_F77=
  12201. hardcode_direct_F77=no
  12202. hardcode_libdir_flag_spec_F77=
  12203. hardcode_libdir_flag_spec_ld_F77=
  12204. hardcode_libdir_separator_F77=
  12205. hardcode_minus_L_F77=no
  12206. hardcode_automatic_F77=no
  12207. module_cmds_F77=
  12208. module_expsym_cmds_F77=
  12209. link_all_deplibs_F77=unknown
  12210. old_archive_cmds_F77=$old_archive_cmds
  12211. no_undefined_flag_F77=
  12212. whole_archive_flag_spec_F77=
  12213. enable_shared_with_static_runtimes_F77=no
  12214. # Source file extension for f77 test sources.
  12215. ac_ext=f
  12216. # Object file extension for compiled f77 test sources.
  12217. objext=o
  12218. objext_F77=$objext
  12219. # Code to be used in simple compile tests
  12220. lt_simple_compile_test_code="\
  12221. subroutine t
  12222. return
  12223. end
  12224. "
  12225. # Code to be used in simple link tests
  12226. lt_simple_link_test_code="\
  12227. program t
  12228. end
  12229. "
  12230. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12231. # If no C compiler was specified, use CC.
  12232. LTCC=${LTCC-"$CC"}
  12233. # If no C compiler flags were specified, use CFLAGS.
  12234. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12235. # Allow CC to be a program name with arguments.
  12236. compiler=$CC
  12237. # save warnings/boilerplate of simple test code
  12238. ac_outfile=conftest.$ac_objext
  12239. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12240. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12241. _lt_compiler_boilerplate=`cat conftest.err`
  12242. $rm conftest*
  12243. ac_outfile=conftest.$ac_objext
  12244. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12245. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12246. _lt_linker_boilerplate=`cat conftest.err`
  12247. $rm conftest*
  12248. # Allow CC to be a program name with arguments.
  12249. lt_save_CC="$CC"
  12250. CC=${F77-"f77"}
  12251. compiler=$CC
  12252. compiler_F77=$CC
  12253. for cc_temp in $compiler""; do
  12254. case $cc_temp in
  12255. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12256. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12257. \-*) ;;
  12258. *) break;;
  12259. esac
  12260. done
  12261. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12262. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12263. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12264. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12265. echo "${ECHO_T}$can_build_shared" >&6; }
  12266. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12267. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12268. test "$can_build_shared" = "no" && enable_shared=no
  12269. # On AIX, shared libraries and static libraries use the same namespace, and
  12270. # are all built from PIC.
  12271. case $host_os in
  12272. aix3*)
  12273. test "$enable_shared" = yes && enable_static=no
  12274. if test -n "$RANLIB"; then
  12275. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12276. postinstall_cmds='$RANLIB $lib'
  12277. fi
  12278. ;;
  12279. aix4* | aix5*)
  12280. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12281. test "$enable_shared" = yes && enable_static=no
  12282. fi
  12283. ;;
  12284. esac
  12285. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12286. echo "${ECHO_T}$enable_shared" >&6; }
  12287. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12288. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12289. # Make sure either enable_shared or enable_static is yes.
  12290. test "$enable_shared" = yes || enable_static=yes
  12291. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12292. echo "${ECHO_T}$enable_static" >&6; }
  12293. GCC_F77="$G77"
  12294. LD_F77="$LD"
  12295. lt_prog_compiler_wl_F77=
  12296. lt_prog_compiler_pic_F77=
  12297. lt_prog_compiler_static_F77=
  12298. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12299. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12300. if test "$GCC" = yes; then
  12301. lt_prog_compiler_wl_F77='-Wl,'
  12302. lt_prog_compiler_static_F77='-static'
  12303. case $host_os in
  12304. aix*)
  12305. # All AIX code is PIC.
  12306. if test "$host_cpu" = ia64; then
  12307. # AIX 5 now supports IA64 processor
  12308. lt_prog_compiler_static_F77='-Bstatic'
  12309. fi
  12310. ;;
  12311. amigaos*)
  12312. # FIXME: we need at least 68020 code to build shared libraries, but
  12313. # adding the `-m68020' flag to GCC prevents building anything better,
  12314. # like `-m68040'.
  12315. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12316. ;;
  12317. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12318. # PIC is the default for these OSes.
  12319. ;;
  12320. mingw* | cygwin* | pw32* | os2*)
  12321. # This hack is so that the source file can tell whether it is being
  12322. # built for inclusion in a dll (and should export symbols for example).
  12323. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12324. # (--disable-auto-import) libraries
  12325. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12326. ;;
  12327. darwin* | rhapsody*)
  12328. # PIC is the default on this platform
  12329. # Common symbols not allowed in MH_DYLIB files
  12330. lt_prog_compiler_pic_F77='-fno-common'
  12331. ;;
  12332. interix[3-9]*)
  12333. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12334. # Instead, we relocate shared libraries at runtime.
  12335. ;;
  12336. msdosdjgpp*)
  12337. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12338. # on systems that don't support them.
  12339. lt_prog_compiler_can_build_shared_F77=no
  12340. enable_shared=no
  12341. ;;
  12342. sysv4*MP*)
  12343. if test -d /usr/nec; then
  12344. lt_prog_compiler_pic_F77=-Kconform_pic
  12345. fi
  12346. ;;
  12347. hpux*)
  12348. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12349. # not for PA HP-UX.
  12350. case $host_cpu in
  12351. hppa*64*|ia64*)
  12352. # +Z the default
  12353. ;;
  12354. *)
  12355. lt_prog_compiler_pic_F77='-fPIC'
  12356. ;;
  12357. esac
  12358. ;;
  12359. *)
  12360. lt_prog_compiler_pic_F77='-fPIC'
  12361. ;;
  12362. esac
  12363. else
  12364. # PORTME Check for flag to pass linker flags through the system compiler.
  12365. case $host_os in
  12366. aix*)
  12367. lt_prog_compiler_wl_F77='-Wl,'
  12368. if test "$host_cpu" = ia64; then
  12369. # AIX 5 now supports IA64 processor
  12370. lt_prog_compiler_static_F77='-Bstatic'
  12371. else
  12372. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12373. fi
  12374. ;;
  12375. darwin*)
  12376. # PIC is the default on this platform
  12377. # Common symbols not allowed in MH_DYLIB files
  12378. case $cc_basename in
  12379. xlc*)
  12380. lt_prog_compiler_pic_F77='-qnocommon'
  12381. lt_prog_compiler_wl_F77='-Wl,'
  12382. ;;
  12383. esac
  12384. ;;
  12385. mingw* | cygwin* | pw32* | os2*)
  12386. # This hack is so that the source file can tell whether it is being
  12387. # built for inclusion in a dll (and should export symbols for example).
  12388. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12389. ;;
  12390. hpux9* | hpux10* | hpux11*)
  12391. lt_prog_compiler_wl_F77='-Wl,'
  12392. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12393. # not for PA HP-UX.
  12394. case $host_cpu in
  12395. hppa*64*|ia64*)
  12396. # +Z the default
  12397. ;;
  12398. *)
  12399. lt_prog_compiler_pic_F77='+Z'
  12400. ;;
  12401. esac
  12402. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12403. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12404. ;;
  12405. irix5* | irix6* | nonstopux*)
  12406. lt_prog_compiler_wl_F77='-Wl,'
  12407. # PIC (with -KPIC) is the default.
  12408. lt_prog_compiler_static_F77='-non_shared'
  12409. ;;
  12410. newsos6)
  12411. lt_prog_compiler_pic_F77='-KPIC'
  12412. lt_prog_compiler_static_F77='-Bstatic'
  12413. ;;
  12414. linux* | k*bsd*-gnu)
  12415. case $cc_basename in
  12416. icc* | ecc*)
  12417. lt_prog_compiler_wl_F77='-Wl,'
  12418. lt_prog_compiler_pic_F77='-KPIC'
  12419. lt_prog_compiler_static_F77='-static'
  12420. ;;
  12421. pgcc* | pgf77* | pgf90* | pgf95*)
  12422. # Portland Group compilers (*not* the Pentium gcc compiler,
  12423. # which looks to be a dead project)
  12424. lt_prog_compiler_wl_F77='-Wl,'
  12425. lt_prog_compiler_pic_F77='-fpic'
  12426. lt_prog_compiler_static_F77='-Bstatic'
  12427. ;;
  12428. ccc*)
  12429. lt_prog_compiler_wl_F77='-Wl,'
  12430. # All Alpha code is PIC.
  12431. lt_prog_compiler_static_F77='-non_shared'
  12432. ;;
  12433. *)
  12434. case `$CC -V 2>&1 | sed 5q` in
  12435. *Sun\ C*)
  12436. # Sun C 5.9
  12437. lt_prog_compiler_pic_F77='-KPIC'
  12438. lt_prog_compiler_static_F77='-Bstatic'
  12439. lt_prog_compiler_wl_F77='-Wl,'
  12440. ;;
  12441. *Sun\ F*)
  12442. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12443. lt_prog_compiler_pic_F77='-KPIC'
  12444. lt_prog_compiler_static_F77='-Bstatic'
  12445. lt_prog_compiler_wl_F77=''
  12446. ;;
  12447. esac
  12448. ;;
  12449. esac
  12450. ;;
  12451. osf3* | osf4* | osf5*)
  12452. lt_prog_compiler_wl_F77='-Wl,'
  12453. # All OSF/1 code is PIC.
  12454. lt_prog_compiler_static_F77='-non_shared'
  12455. ;;
  12456. rdos*)
  12457. lt_prog_compiler_static_F77='-non_shared'
  12458. ;;
  12459. solaris*)
  12460. lt_prog_compiler_pic_F77='-KPIC'
  12461. lt_prog_compiler_static_F77='-Bstatic'
  12462. case $cc_basename in
  12463. f77* | f90* | f95*)
  12464. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12465. *)
  12466. lt_prog_compiler_wl_F77='-Wl,';;
  12467. esac
  12468. ;;
  12469. sunos4*)
  12470. lt_prog_compiler_wl_F77='-Qoption ld '
  12471. lt_prog_compiler_pic_F77='-PIC'
  12472. lt_prog_compiler_static_F77='-Bstatic'
  12473. ;;
  12474. sysv4 | sysv4.2uw2* | sysv4.3*)
  12475. lt_prog_compiler_wl_F77='-Wl,'
  12476. lt_prog_compiler_pic_F77='-KPIC'
  12477. lt_prog_compiler_static_F77='-Bstatic'
  12478. ;;
  12479. sysv4*MP*)
  12480. if test -d /usr/nec ;then
  12481. lt_prog_compiler_pic_F77='-Kconform_pic'
  12482. lt_prog_compiler_static_F77='-Bstatic'
  12483. fi
  12484. ;;
  12485. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12486. lt_prog_compiler_wl_F77='-Wl,'
  12487. lt_prog_compiler_pic_F77='-KPIC'
  12488. lt_prog_compiler_static_F77='-Bstatic'
  12489. ;;
  12490. unicos*)
  12491. lt_prog_compiler_wl_F77='-Wl,'
  12492. lt_prog_compiler_can_build_shared_F77=no
  12493. ;;
  12494. uts4*)
  12495. lt_prog_compiler_pic_F77='-pic'
  12496. lt_prog_compiler_static_F77='-Bstatic'
  12497. ;;
  12498. *)
  12499. lt_prog_compiler_can_build_shared_F77=no
  12500. ;;
  12501. esac
  12502. fi
  12503. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12504. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12505. #
  12506. # Check to make sure the PIC flag actually works.
  12507. #
  12508. if test -n "$lt_prog_compiler_pic_F77"; then
  12509. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12510. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12511. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12512. echo $ECHO_N "(cached) $ECHO_C" >&6
  12513. else
  12514. lt_prog_compiler_pic_works_F77=no
  12515. ac_outfile=conftest.$ac_objext
  12516. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12517. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12518. # Insert the option either (1) after the last *FLAGS variable, or
  12519. # (2) before a word containing "conftest.", or (3) at the end.
  12520. # Note that $ac_compile itself does not contain backslashes and begins
  12521. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12522. # The option is referenced via a variable to avoid confusing sed.
  12523. lt_compile=`echo "$ac_compile" | $SED \
  12524. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12525. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12526. -e 's:$: $lt_compiler_flag:'`
  12527. (eval echo "\"\$as_me:14005: $lt_compile\"" >&5)
  12528. (eval "$lt_compile" 2>conftest.err)
  12529. ac_status=$?
  12530. cat conftest.err >&5
  12531. echo "$as_me:14009: \$? = $ac_status" >&5
  12532. if (exit $ac_status) && test -s "$ac_outfile"; then
  12533. # The compiler can only warn and ignore the option if not recognized
  12534. # So say no if there are warnings other than the usual output.
  12535. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12536. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12537. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12538. lt_prog_compiler_pic_works_F77=yes
  12539. fi
  12540. fi
  12541. $rm conftest*
  12542. fi
  12543. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12544. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12545. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12546. case $lt_prog_compiler_pic_F77 in
  12547. "" | " "*) ;;
  12548. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12549. esac
  12550. else
  12551. lt_prog_compiler_pic_F77=
  12552. lt_prog_compiler_can_build_shared_F77=no
  12553. fi
  12554. fi
  12555. case $host_os in
  12556. # For platforms which do not support PIC, -DPIC is meaningless:
  12557. *djgpp*)
  12558. lt_prog_compiler_pic_F77=
  12559. ;;
  12560. *)
  12561. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12562. ;;
  12563. esac
  12564. #
  12565. # Check to make sure the static flag actually works.
  12566. #
  12567. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12568. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12569. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12570. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12571. echo $ECHO_N "(cached) $ECHO_C" >&6
  12572. else
  12573. lt_prog_compiler_static_works_F77=no
  12574. save_LDFLAGS="$LDFLAGS"
  12575. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12576. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12577. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12578. # The linker can only warn and ignore the option if not recognized
  12579. # So say no if there are warnings
  12580. if test -s conftest.err; then
  12581. # Append any errors to the config.log.
  12582. cat conftest.err 1>&5
  12583. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12584. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12585. if diff conftest.exp conftest.er2 >/dev/null; then
  12586. lt_prog_compiler_static_works_F77=yes
  12587. fi
  12588. else
  12589. lt_prog_compiler_static_works_F77=yes
  12590. fi
  12591. fi
  12592. $rm conftest*
  12593. LDFLAGS="$save_LDFLAGS"
  12594. fi
  12595. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12596. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12597. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12598. :
  12599. else
  12600. lt_prog_compiler_static_F77=
  12601. fi
  12602. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12603. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12604. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12605. echo $ECHO_N "(cached) $ECHO_C" >&6
  12606. else
  12607. lt_cv_prog_compiler_c_o_F77=no
  12608. $rm -r conftest 2>/dev/null
  12609. mkdir conftest
  12610. cd conftest
  12611. mkdir out
  12612. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12613. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12614. # Insert the option either (1) after the last *FLAGS variable, or
  12615. # (2) before a word containing "conftest.", or (3) at the end.
  12616. # Note that $ac_compile itself does not contain backslashes and begins
  12617. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12618. lt_compile=`echo "$ac_compile" | $SED \
  12619. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12620. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12621. -e 's:$: $lt_compiler_flag:'`
  12622. (eval echo "\"\$as_me:14109: $lt_compile\"" >&5)
  12623. (eval "$lt_compile" 2>out/conftest.err)
  12624. ac_status=$?
  12625. cat out/conftest.err >&5
  12626. echo "$as_me:14113: \$? = $ac_status" >&5
  12627. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12628. then
  12629. # The compiler can only warn and ignore the option if not recognized
  12630. # So say no if there are warnings
  12631. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12632. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12633. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12634. lt_cv_prog_compiler_c_o_F77=yes
  12635. fi
  12636. fi
  12637. chmod u+w . 2>&5
  12638. $rm conftest*
  12639. # SGI C++ compiler will create directory out/ii_files/ for
  12640. # template instantiation
  12641. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12642. $rm out/* && rmdir out
  12643. cd ..
  12644. rmdir conftest
  12645. $rm conftest*
  12646. fi
  12647. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12648. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12649. hard_links="nottested"
  12650. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12651. # do not overwrite the value of need_locks provided by the user
  12652. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12653. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12654. hard_links=yes
  12655. $rm conftest*
  12656. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12657. touch conftest.a
  12658. ln conftest.a conftest.b 2>&5 || hard_links=no
  12659. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12660. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12661. echo "${ECHO_T}$hard_links" >&6; }
  12662. if test "$hard_links" = no; then
  12663. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12664. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12665. need_locks=warn
  12666. fi
  12667. else
  12668. need_locks=no
  12669. fi
  12670. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12671. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12672. runpath_var=
  12673. allow_undefined_flag_F77=
  12674. enable_shared_with_static_runtimes_F77=no
  12675. archive_cmds_F77=
  12676. archive_expsym_cmds_F77=
  12677. old_archive_From_new_cmds_F77=
  12678. old_archive_from_expsyms_cmds_F77=
  12679. export_dynamic_flag_spec_F77=
  12680. whole_archive_flag_spec_F77=
  12681. thread_safe_flag_spec_F77=
  12682. hardcode_libdir_flag_spec_F77=
  12683. hardcode_libdir_flag_spec_ld_F77=
  12684. hardcode_libdir_separator_F77=
  12685. hardcode_direct_F77=no
  12686. hardcode_minus_L_F77=no
  12687. hardcode_shlibpath_var_F77=unsupported
  12688. link_all_deplibs_F77=unknown
  12689. hardcode_automatic_F77=no
  12690. module_cmds_F77=
  12691. module_expsym_cmds_F77=
  12692. always_export_symbols_F77=no
  12693. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12694. # include_expsyms should be a list of space-separated symbols to be *always*
  12695. # included in the symbol list
  12696. include_expsyms_F77=
  12697. # exclude_expsyms can be an extended regexp of symbols to exclude
  12698. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12699. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12700. # as well as any symbol that contains `d'.
  12701. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12702. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12703. # platforms (ab)use it in PIC code, but their linkers get confused if
  12704. # the symbol is explicitly referenced. Since portable code cannot
  12705. # rely on this symbol name, it's probably fine to never include it in
  12706. # preloaded symbol tables.
  12707. extract_expsyms_cmds=
  12708. # Just being paranoid about ensuring that cc_basename is set.
  12709. for cc_temp in $compiler""; do
  12710. case $cc_temp in
  12711. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12712. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12713. \-*) ;;
  12714. *) break;;
  12715. esac
  12716. done
  12717. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12718. case $host_os in
  12719. cygwin* | mingw* | pw32*)
  12720. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12721. # When not using gcc, we currently assume that we are using
  12722. # Microsoft Visual C++.
  12723. if test "$GCC" != yes; then
  12724. with_gnu_ld=no
  12725. fi
  12726. ;;
  12727. interix*)
  12728. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12729. with_gnu_ld=yes
  12730. ;;
  12731. openbsd*)
  12732. with_gnu_ld=no
  12733. ;;
  12734. esac
  12735. ld_shlibs_F77=yes
  12736. if test "$with_gnu_ld" = yes; then
  12737. # If archive_cmds runs LD, not CC, wlarc should be empty
  12738. wlarc='${wl}'
  12739. # Set some defaults for GNU ld with shared library support. These
  12740. # are reset later if shared libraries are not supported. Putting them
  12741. # here allows them to be overridden if necessary.
  12742. runpath_var=LD_RUN_PATH
  12743. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12744. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12745. # ancient GNU ld didn't support --whole-archive et. al.
  12746. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12747. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12748. else
  12749. whole_archive_flag_spec_F77=
  12750. fi
  12751. supports_anon_versioning=no
  12752. case `$LD -v 2>/dev/null` in
  12753. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12754. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12755. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12756. *\ 2.11.*) ;; # other 2.11 versions
  12757. *) supports_anon_versioning=yes ;;
  12758. esac
  12759. # See if GNU ld supports shared libraries.
  12760. case $host_os in
  12761. aix3* | aix4* | aix5*)
  12762. # On AIX/PPC, the GNU linker is very broken
  12763. if test "$host_cpu" != ia64; then
  12764. ld_shlibs_F77=no
  12765. cat <<EOF 1>&2
  12766. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12767. *** to be unable to reliably create shared libraries on AIX.
  12768. *** Therefore, libtool is disabling shared libraries support. If you
  12769. *** really care for shared libraries, you may want to modify your PATH
  12770. *** so that a non-GNU linker is found, and then restart.
  12771. EOF
  12772. fi
  12773. ;;
  12774. amigaos*)
  12775. archive_cmds_F77='$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)'
  12776. hardcode_libdir_flag_spec_F77='-L$libdir'
  12777. hardcode_minus_L_F77=yes
  12778. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12779. # that the semantics of dynamic libraries on AmigaOS, at least up
  12780. # to version 4, is to share data among multiple programs linked
  12781. # with the same dynamic library. Since this doesn't match the
  12782. # behavior of shared libraries on other platforms, we can't use
  12783. # them.
  12784. ld_shlibs_F77=no
  12785. ;;
  12786. beos*)
  12787. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12788. allow_undefined_flag_F77=unsupported
  12789. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12790. # support --undefined. This deserves some investigation. FIXME
  12791. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12792. else
  12793. ld_shlibs_F77=no
  12794. fi
  12795. ;;
  12796. cygwin* | mingw* | pw32*)
  12797. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12798. # as there is no search path for DLLs.
  12799. hardcode_libdir_flag_spec_F77='-L$libdir'
  12800. allow_undefined_flag_F77=unsupported
  12801. always_export_symbols_F77=no
  12802. enable_shared_with_static_runtimes_F77=yes
  12803. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12804. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12805. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12806. # If the export-symbols file already is a .def file (1st line
  12807. # is EXPORTS), use it as is; otherwise, prepend...
  12808. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12809. cp $export_symbols $output_objdir/$soname.def;
  12810. else
  12811. echo EXPORTS > $output_objdir/$soname.def;
  12812. cat $export_symbols >> $output_objdir/$soname.def;
  12813. fi~
  12814. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12815. else
  12816. ld_shlibs_F77=no
  12817. fi
  12818. ;;
  12819. interix[3-9]*)
  12820. hardcode_direct_F77=no
  12821. hardcode_shlibpath_var_F77=no
  12822. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12823. export_dynamic_flag_spec_F77='${wl}-E'
  12824. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12825. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12826. # default) and relocated if they conflict, which is a slow very memory
  12827. # consuming and fragmenting process. To avoid this, we pick a random,
  12828. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12829. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12830. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12831. archive_expsym_cmds_F77='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'
  12832. ;;
  12833. gnu* | linux* | k*bsd*-gnu)
  12834. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12835. tmp_addflag=
  12836. case $cc_basename,$host_cpu in
  12837. pgcc*) # Portland Group C compiler
  12838. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12839. tmp_addflag=' $pic_flag'
  12840. ;;
  12841. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12842. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12843. tmp_addflag=' $pic_flag -Mnomain' ;;
  12844. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12845. tmp_addflag=' -i_dynamic' ;;
  12846. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12847. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12848. ifc* | ifort*) # Intel Fortran compiler
  12849. tmp_addflag=' -nofor_main' ;;
  12850. esac
  12851. case `$CC -V 2>&1 | sed 5q` in
  12852. *Sun\ C*) # Sun C 5.9
  12853. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12854. tmp_sharedflag='-G' ;;
  12855. *Sun\ F*) # Sun Fortran 8.3
  12856. tmp_sharedflag='-G' ;;
  12857. *)
  12858. tmp_sharedflag='-shared' ;;
  12859. esac
  12860. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12861. if test $supports_anon_versioning = yes; then
  12862. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12863. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12864. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12865. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12866. fi
  12867. link_all_deplibs_F77=no
  12868. else
  12869. ld_shlibs_F77=no
  12870. fi
  12871. ;;
  12872. netbsd* | netbsdelf*-gnu)
  12873. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12874. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12875. wlarc=
  12876. else
  12877. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12878. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12879. fi
  12880. ;;
  12881. solaris*)
  12882. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12883. ld_shlibs_F77=no
  12884. cat <<EOF 1>&2
  12885. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12886. *** create shared libraries on Solaris systems. Therefore, libtool
  12887. *** is disabling shared libraries support. We urge you to upgrade GNU
  12888. *** binutils to release 2.9.1 or newer. Another option is to modify
  12889. *** your PATH or compiler configuration so that the native linker is
  12890. *** used, and then restart.
  12891. EOF
  12892. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12893. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12894. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12895. else
  12896. ld_shlibs_F77=no
  12897. fi
  12898. ;;
  12899. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12900. case `$LD -v 2>&1` in
  12901. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12902. ld_shlibs_F77=no
  12903. cat <<_LT_EOF 1>&2
  12904. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12905. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12906. *** is disabling shared libraries support. We urge you to upgrade GNU
  12907. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12908. *** your PATH or compiler configuration so that the native linker is
  12909. *** used, and then restart.
  12910. _LT_EOF
  12911. ;;
  12912. *)
  12913. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12914. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12915. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12916. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12917. else
  12918. ld_shlibs_F77=no
  12919. fi
  12920. ;;
  12921. esac
  12922. ;;
  12923. sunos4*)
  12924. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12925. wlarc=
  12926. hardcode_direct_F77=yes
  12927. hardcode_shlibpath_var_F77=no
  12928. ;;
  12929. *)
  12930. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12931. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12932. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12933. else
  12934. ld_shlibs_F77=no
  12935. fi
  12936. ;;
  12937. esac
  12938. if test "$ld_shlibs_F77" = no; then
  12939. runpath_var=
  12940. hardcode_libdir_flag_spec_F77=
  12941. export_dynamic_flag_spec_F77=
  12942. whole_archive_flag_spec_F77=
  12943. fi
  12944. else
  12945. # PORTME fill in a description of your system's linker (not GNU ld)
  12946. case $host_os in
  12947. aix3*)
  12948. allow_undefined_flag_F77=unsupported
  12949. always_export_symbols_F77=yes
  12950. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12951. # Note: this linker hardcodes the directories in LIBPATH if there
  12952. # are no directories specified by -L.
  12953. hardcode_minus_L_F77=yes
  12954. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12955. # Neither direct hardcoding nor static linking is supported with a
  12956. # broken collect2.
  12957. hardcode_direct_F77=unsupported
  12958. fi
  12959. ;;
  12960. aix4* | aix5*)
  12961. if test "$host_cpu" = ia64; then
  12962. # On IA64, the linker does run time linking by default, so we don't
  12963. # have to do anything special.
  12964. aix_use_runtimelinking=no
  12965. exp_sym_flag='-Bexport'
  12966. no_entry_flag=""
  12967. else
  12968. # If we're using GNU nm, then we don't want the "-C" option.
  12969. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12970. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12971. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12972. else
  12973. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12974. fi
  12975. aix_use_runtimelinking=no
  12976. # Test if we are trying to use run time linking or normal
  12977. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12978. # need to do runtime linking.
  12979. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12980. for ld_flag in $LDFLAGS; do
  12981. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12982. aix_use_runtimelinking=yes
  12983. break
  12984. fi
  12985. done
  12986. ;;
  12987. esac
  12988. exp_sym_flag='-bexport'
  12989. no_entry_flag='-bnoentry'
  12990. fi
  12991. # When large executables or shared objects are built, AIX ld can
  12992. # have problems creating the table of contents. If linking a library
  12993. # or program results in "error TOC overflow" add -mminimal-toc to
  12994. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12995. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12996. archive_cmds_F77=''
  12997. hardcode_direct_F77=yes
  12998. hardcode_libdir_separator_F77=':'
  12999. link_all_deplibs_F77=yes
  13000. if test "$GCC" = yes; then
  13001. case $host_os in aix4.[012]|aix4.[012].*)
  13002. # We only want to do this on AIX 4.2 and lower, the check
  13003. # below for broken collect2 doesn't work under 4.3+
  13004. collect2name=`${CC} -print-prog-name=collect2`
  13005. if test -f "$collect2name" && \
  13006. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13007. then
  13008. # We have reworked collect2
  13009. :
  13010. else
  13011. # We have old collect2
  13012. hardcode_direct_F77=unsupported
  13013. # It fails to find uninstalled libraries when the uninstalled
  13014. # path is not listed in the libpath. Setting hardcode_minus_L
  13015. # to unsupported forces relinking
  13016. hardcode_minus_L_F77=yes
  13017. hardcode_libdir_flag_spec_F77='-L$libdir'
  13018. hardcode_libdir_separator_F77=
  13019. fi
  13020. ;;
  13021. esac
  13022. shared_flag='-shared'
  13023. if test "$aix_use_runtimelinking" = yes; then
  13024. shared_flag="$shared_flag "'${wl}-G'
  13025. fi
  13026. else
  13027. # not using gcc
  13028. if test "$host_cpu" = ia64; then
  13029. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13030. # chokes on -Wl,-G. The following line is correct:
  13031. shared_flag='-G'
  13032. else
  13033. if test "$aix_use_runtimelinking" = yes; then
  13034. shared_flag='${wl}-G'
  13035. else
  13036. shared_flag='${wl}-bM:SRE'
  13037. fi
  13038. fi
  13039. fi
  13040. # It seems that -bexpall does not export symbols beginning with
  13041. # underscore (_), so it is better to generate a list of symbols to export.
  13042. always_export_symbols_F77=yes
  13043. if test "$aix_use_runtimelinking" = yes; then
  13044. # Warning - without using the other runtime loading flags (-brtl),
  13045. # -berok will link without error, but may produce a broken library.
  13046. allow_undefined_flag_F77='-berok'
  13047. # Determine the default libpath from the value encoded in an empty executable.
  13048. cat >conftest.$ac_ext <<_ACEOF
  13049. program main
  13050. end
  13051. _ACEOF
  13052. rm -f conftest.$ac_objext conftest$ac_exeext
  13053. if { (ac_try="$ac_link"
  13054. case "(($ac_try" in
  13055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13056. *) ac_try_echo=$ac_try;;
  13057. esac
  13058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13059. (eval "$ac_link") 2>conftest.er1
  13060. ac_status=$?
  13061. grep -v '^ *+' conftest.er1 >conftest.err
  13062. rm -f conftest.er1
  13063. cat conftest.err >&5
  13064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13065. (exit $ac_status); } && {
  13066. test -z "$ac_f77_werror_flag" ||
  13067. test ! -s conftest.err
  13068. } && test -s conftest$ac_exeext &&
  13069. $as_test_x conftest$ac_exeext; then
  13070. lt_aix_libpath_sed='
  13071. /Import File Strings/,/^$/ {
  13072. /^0/ {
  13073. s/^0 *\(.*\)$/\1/
  13074. p
  13075. }
  13076. }'
  13077. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13078. # Check for a 64-bit object if we didn't find anything.
  13079. if test -z "$aix_libpath"; then
  13080. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13081. fi
  13082. else
  13083. echo "$as_me: failed program was:" >&5
  13084. sed 's/^/| /' conftest.$ac_ext >&5
  13085. fi
  13086. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13087. conftest$ac_exeext conftest.$ac_ext
  13088. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13089. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13090. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13091. else
  13092. if test "$host_cpu" = ia64; then
  13093. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13094. allow_undefined_flag_F77="-z nodefs"
  13095. archive_expsym_cmds_F77="\$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"
  13096. else
  13097. # Determine the default libpath from the value encoded in an empty executable.
  13098. cat >conftest.$ac_ext <<_ACEOF
  13099. program main
  13100. end
  13101. _ACEOF
  13102. rm -f conftest.$ac_objext conftest$ac_exeext
  13103. if { (ac_try="$ac_link"
  13104. case "(($ac_try" in
  13105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13106. *) ac_try_echo=$ac_try;;
  13107. esac
  13108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13109. (eval "$ac_link") 2>conftest.er1
  13110. ac_status=$?
  13111. grep -v '^ *+' conftest.er1 >conftest.err
  13112. rm -f conftest.er1
  13113. cat conftest.err >&5
  13114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13115. (exit $ac_status); } && {
  13116. test -z "$ac_f77_werror_flag" ||
  13117. test ! -s conftest.err
  13118. } && test -s conftest$ac_exeext &&
  13119. $as_test_x conftest$ac_exeext; then
  13120. lt_aix_libpath_sed='
  13121. /Import File Strings/,/^$/ {
  13122. /^0/ {
  13123. s/^0 *\(.*\)$/\1/
  13124. p
  13125. }
  13126. }'
  13127. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13128. # Check for a 64-bit object if we didn't find anything.
  13129. if test -z "$aix_libpath"; then
  13130. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13131. fi
  13132. else
  13133. echo "$as_me: failed program was:" >&5
  13134. sed 's/^/| /' conftest.$ac_ext >&5
  13135. fi
  13136. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13137. conftest$ac_exeext conftest.$ac_ext
  13138. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13139. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13140. # Warning - without using the other run time loading flags,
  13141. # -berok will link without error, but may produce a broken library.
  13142. no_undefined_flag_F77=' ${wl}-bernotok'
  13143. allow_undefined_flag_F77=' ${wl}-berok'
  13144. # Exported symbols can be pulled into shared objects from archives
  13145. whole_archive_flag_spec_F77='$convenience'
  13146. archive_cmds_need_lc_F77=yes
  13147. # This is similar to how AIX traditionally builds its shared libraries.
  13148. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13149. fi
  13150. fi
  13151. ;;
  13152. amigaos*)
  13153. archive_cmds_F77='$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)'
  13154. hardcode_libdir_flag_spec_F77='-L$libdir'
  13155. hardcode_minus_L_F77=yes
  13156. # see comment about different semantics on the GNU ld section
  13157. ld_shlibs_F77=no
  13158. ;;
  13159. bsdi[45]*)
  13160. export_dynamic_flag_spec_F77=-rdynamic
  13161. ;;
  13162. cygwin* | mingw* | pw32*)
  13163. # When not using gcc, we currently assume that we are using
  13164. # Microsoft Visual C++.
  13165. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13166. # no search path for DLLs.
  13167. hardcode_libdir_flag_spec_F77=' '
  13168. allow_undefined_flag_F77=unsupported
  13169. # Tell ltmain to make .lib files, not .a files.
  13170. libext=lib
  13171. # Tell ltmain to make .dll files, not .so files.
  13172. shrext_cmds=".dll"
  13173. # FIXME: Setting linknames here is a bad hack.
  13174. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13175. # The linker will automatically build a .lib file if we build a DLL.
  13176. old_archive_From_new_cmds_F77='true'
  13177. # FIXME: Should let the user specify the lib program.
  13178. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13179. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13180. enable_shared_with_static_runtimes_F77=yes
  13181. ;;
  13182. darwin* | rhapsody*)
  13183. case $host_os in
  13184. rhapsody* | darwin1.[012])
  13185. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13186. ;;
  13187. *) # Darwin 1.3 on
  13188. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13189. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13190. else
  13191. case ${MACOSX_DEPLOYMENT_TARGET} in
  13192. 10.[012])
  13193. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13194. ;;
  13195. 10.*)
  13196. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13197. ;;
  13198. esac
  13199. fi
  13200. ;;
  13201. esac
  13202. archive_cmds_need_lc_F77=no
  13203. hardcode_direct_F77=no
  13204. hardcode_automatic_F77=yes
  13205. hardcode_shlibpath_var_F77=unsupported
  13206. whole_archive_flag_spec_F77=''
  13207. link_all_deplibs_F77=yes
  13208. if test "$GCC" = yes ; then
  13209. output_verbose_link_cmd='echo'
  13210. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13211. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13212. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13213. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13214. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13215. else
  13216. case $cc_basename in
  13217. xlc*)
  13218. output_verbose_link_cmd='echo'
  13219. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13220. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13221. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13222. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13223. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13224. ;;
  13225. *)
  13226. ld_shlibs_F77=no
  13227. ;;
  13228. esac
  13229. fi
  13230. ;;
  13231. dgux*)
  13232. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13233. hardcode_libdir_flag_spec_F77='-L$libdir'
  13234. hardcode_shlibpath_var_F77=no
  13235. ;;
  13236. freebsd1*)
  13237. ld_shlibs_F77=no
  13238. ;;
  13239. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13240. # support. Future versions do this automatically, but an explicit c++rt0.o
  13241. # does not break anything, and helps significantly (at the cost of a little
  13242. # extra space).
  13243. freebsd2.2*)
  13244. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13245. hardcode_libdir_flag_spec_F77='-R$libdir'
  13246. hardcode_direct_F77=yes
  13247. hardcode_shlibpath_var_F77=no
  13248. ;;
  13249. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13250. freebsd2*)
  13251. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13252. hardcode_direct_F77=yes
  13253. hardcode_minus_L_F77=yes
  13254. hardcode_shlibpath_var_F77=no
  13255. ;;
  13256. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13257. freebsd* | dragonfly*)
  13258. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13259. hardcode_libdir_flag_spec_F77='-R$libdir'
  13260. hardcode_direct_F77=yes
  13261. hardcode_shlibpath_var_F77=no
  13262. ;;
  13263. hpux9*)
  13264. if test "$GCC" = yes; then
  13265. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13266. else
  13267. archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13268. fi
  13269. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13270. hardcode_libdir_separator_F77=:
  13271. hardcode_direct_F77=yes
  13272. # hardcode_minus_L: Not really in the search PATH,
  13273. # but as the default location of the library.
  13274. hardcode_minus_L_F77=yes
  13275. export_dynamic_flag_spec_F77='${wl}-E'
  13276. ;;
  13277. hpux10*)
  13278. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13279. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13280. else
  13281. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13282. fi
  13283. if test "$with_gnu_ld" = no; then
  13284. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13285. hardcode_libdir_separator_F77=:
  13286. hardcode_direct_F77=yes
  13287. export_dynamic_flag_spec_F77='${wl}-E'
  13288. # hardcode_minus_L: Not really in the search PATH,
  13289. # but as the default location of the library.
  13290. hardcode_minus_L_F77=yes
  13291. fi
  13292. ;;
  13293. hpux11*)
  13294. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13295. case $host_cpu in
  13296. hppa*64*)
  13297. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13298. ;;
  13299. ia64*)
  13300. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13301. ;;
  13302. *)
  13303. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13304. ;;
  13305. esac
  13306. else
  13307. case $host_cpu in
  13308. hppa*64*)
  13309. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13310. ;;
  13311. ia64*)
  13312. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13313. ;;
  13314. *)
  13315. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13316. ;;
  13317. esac
  13318. fi
  13319. if test "$with_gnu_ld" = no; then
  13320. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13321. hardcode_libdir_separator_F77=:
  13322. case $host_cpu in
  13323. hppa*64*|ia64*)
  13324. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13325. hardcode_direct_F77=no
  13326. hardcode_shlibpath_var_F77=no
  13327. ;;
  13328. *)
  13329. hardcode_direct_F77=yes
  13330. export_dynamic_flag_spec_F77='${wl}-E'
  13331. # hardcode_minus_L: Not really in the search PATH,
  13332. # but as the default location of the library.
  13333. hardcode_minus_L_F77=yes
  13334. ;;
  13335. esac
  13336. fi
  13337. ;;
  13338. irix5* | irix6* | nonstopux*)
  13339. if test "$GCC" = yes; then
  13340. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13341. else
  13342. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13343. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13344. fi
  13345. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13346. hardcode_libdir_separator_F77=:
  13347. link_all_deplibs_F77=yes
  13348. ;;
  13349. netbsd* | netbsdelf*-gnu)
  13350. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13351. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13352. else
  13353. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13354. fi
  13355. hardcode_libdir_flag_spec_F77='-R$libdir'
  13356. hardcode_direct_F77=yes
  13357. hardcode_shlibpath_var_F77=no
  13358. ;;
  13359. newsos6)
  13360. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13361. hardcode_direct_F77=yes
  13362. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13363. hardcode_libdir_separator_F77=:
  13364. hardcode_shlibpath_var_F77=no
  13365. ;;
  13366. openbsd*)
  13367. if test -f /usr/libexec/ld.so; then
  13368. hardcode_direct_F77=yes
  13369. hardcode_shlibpath_var_F77=no
  13370. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13371. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13372. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13373. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13374. export_dynamic_flag_spec_F77='${wl}-E'
  13375. else
  13376. case $host_os in
  13377. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13378. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13379. hardcode_libdir_flag_spec_F77='-R$libdir'
  13380. ;;
  13381. *)
  13382. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13383. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13384. ;;
  13385. esac
  13386. fi
  13387. else
  13388. ld_shlibs_F77=no
  13389. fi
  13390. ;;
  13391. os2*)
  13392. hardcode_libdir_flag_spec_F77='-L$libdir'
  13393. hardcode_minus_L_F77=yes
  13394. allow_undefined_flag_F77=unsupported
  13395. archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  13396. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13397. ;;
  13398. osf3*)
  13399. if test "$GCC" = yes; then
  13400. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13401. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13402. else
  13403. allow_undefined_flag_F77=' -expect_unresolved \*'
  13404. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13405. fi
  13406. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13407. hardcode_libdir_separator_F77=:
  13408. ;;
  13409. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13410. if test "$GCC" = yes; then
  13411. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13412. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13413. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13414. else
  13415. allow_undefined_flag_F77=' -expect_unresolved \*'
  13416. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13417. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13418. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  13419. # Both c and cxx compiler support -rpath directly
  13420. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13421. fi
  13422. hardcode_libdir_separator_F77=:
  13423. ;;
  13424. solaris*)
  13425. no_undefined_flag_F77=' -z text'
  13426. if test "$GCC" = yes; then
  13427. wlarc='${wl}'
  13428. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13429. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13430. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13431. else
  13432. wlarc=''
  13433. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13434. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13435. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13436. fi
  13437. hardcode_libdir_flag_spec_F77='-R$libdir'
  13438. hardcode_shlibpath_var_F77=no
  13439. case $host_os in
  13440. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13441. *)
  13442. # The compiler driver will combine and reorder linker options,
  13443. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13444. # but is careful enough not to reorder.
  13445. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13446. if test "$GCC" = yes; then
  13447. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13448. else
  13449. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13450. fi
  13451. ;;
  13452. esac
  13453. link_all_deplibs_F77=yes
  13454. ;;
  13455. sunos4*)
  13456. if test "x$host_vendor" = xsequent; then
  13457. # Use $CC to link under sequent, because it throws in some extra .o
  13458. # files that make .init and .fini sections work.
  13459. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13460. else
  13461. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13462. fi
  13463. hardcode_libdir_flag_spec_F77='-L$libdir'
  13464. hardcode_direct_F77=yes
  13465. hardcode_minus_L_F77=yes
  13466. hardcode_shlibpath_var_F77=no
  13467. ;;
  13468. sysv4)
  13469. case $host_vendor in
  13470. sni)
  13471. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13472. hardcode_direct_F77=yes # is this really true???
  13473. ;;
  13474. siemens)
  13475. ## LD is ld it makes a PLAMLIB
  13476. ## CC just makes a GrossModule.
  13477. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13478. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13479. hardcode_direct_F77=no
  13480. ;;
  13481. motorola)
  13482. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13483. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13484. ;;
  13485. esac
  13486. runpath_var='LD_RUN_PATH'
  13487. hardcode_shlibpath_var_F77=no
  13488. ;;
  13489. sysv4.3*)
  13490. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13491. hardcode_shlibpath_var_F77=no
  13492. export_dynamic_flag_spec_F77='-Bexport'
  13493. ;;
  13494. sysv4*MP*)
  13495. if test -d /usr/nec; then
  13496. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13497. hardcode_shlibpath_var_F77=no
  13498. runpath_var=LD_RUN_PATH
  13499. hardcode_runpath_var=yes
  13500. ld_shlibs_F77=yes
  13501. fi
  13502. ;;
  13503. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13504. no_undefined_flag_F77='${wl}-z,text'
  13505. archive_cmds_need_lc_F77=no
  13506. hardcode_shlibpath_var_F77=no
  13507. runpath_var='LD_RUN_PATH'
  13508. if test "$GCC" = yes; then
  13509. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13510. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13511. else
  13512. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13513. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13514. fi
  13515. ;;
  13516. sysv5* | sco3.2v5* | sco5v6*)
  13517. # Note: We can NOT use -z defs as we might desire, because we do not
  13518. # link with -lc, and that would cause any symbols used from libc to
  13519. # always be unresolved, which means just about no library would
  13520. # ever link correctly. If we're not using GNU ld we use -z text
  13521. # though, which does catch some bad symbols but isn't as heavy-handed
  13522. # as -z defs.
  13523. no_undefined_flag_F77='${wl}-z,text'
  13524. allow_undefined_flag_F77='${wl}-z,nodefs'
  13525. archive_cmds_need_lc_F77=no
  13526. hardcode_shlibpath_var_F77=no
  13527. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13528. hardcode_libdir_separator_F77=':'
  13529. link_all_deplibs_F77=yes
  13530. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13531. runpath_var='LD_RUN_PATH'
  13532. if test "$GCC" = yes; then
  13533. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13534. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13535. else
  13536. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13537. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13538. fi
  13539. ;;
  13540. uts4*)
  13541. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13542. hardcode_libdir_flag_spec_F77='-L$libdir'
  13543. hardcode_shlibpath_var_F77=no
  13544. ;;
  13545. *)
  13546. ld_shlibs_F77=no
  13547. ;;
  13548. esac
  13549. fi
  13550. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13551. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13552. test "$ld_shlibs_F77" = no && can_build_shared=no
  13553. #
  13554. # Do we need to explicitly link libc?
  13555. #
  13556. case "x$archive_cmds_need_lc_F77" in
  13557. x|xyes)
  13558. # Assume -lc should be added
  13559. archive_cmds_need_lc_F77=yes
  13560. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13561. case $archive_cmds_F77 in
  13562. *'~'*)
  13563. # FIXME: we may have to deal with multi-command sequences.
  13564. ;;
  13565. '$CC '*)
  13566. # Test whether the compiler implicitly links with -lc since on some
  13567. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13568. # to ld, don't add -lc before -lgcc.
  13569. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13570. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13571. $rm conftest*
  13572. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13573. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13574. (eval $ac_compile) 2>&5
  13575. ac_status=$?
  13576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13577. (exit $ac_status); } 2>conftest.err; then
  13578. soname=conftest
  13579. lib=conftest
  13580. libobjs=conftest.$ac_objext
  13581. deplibs=
  13582. wl=$lt_prog_compiler_wl_F77
  13583. pic_flag=$lt_prog_compiler_pic_F77
  13584. compiler_flags=-v
  13585. linker_flags=-v
  13586. verstring=
  13587. output_objdir=.
  13588. libname=conftest
  13589. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13590. allow_undefined_flag_F77=
  13591. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13592. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13593. ac_status=$?
  13594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13595. (exit $ac_status); }
  13596. then
  13597. archive_cmds_need_lc_F77=no
  13598. else
  13599. archive_cmds_need_lc_F77=yes
  13600. fi
  13601. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13602. else
  13603. cat conftest.err 1>&5
  13604. fi
  13605. $rm conftest*
  13606. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13607. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13608. ;;
  13609. esac
  13610. fi
  13611. ;;
  13612. esac
  13613. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13614. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13615. library_names_spec=
  13616. libname_spec='lib$name'
  13617. soname_spec=
  13618. shrext_cmds=".so"
  13619. postinstall_cmds=
  13620. postuninstall_cmds=
  13621. finish_cmds=
  13622. finish_eval=
  13623. shlibpath_var=
  13624. shlibpath_overrides_runpath=unknown
  13625. version_type=none
  13626. dynamic_linker="$host_os ld.so"
  13627. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13628. need_lib_prefix=unknown
  13629. hardcode_into_libs=no
  13630. # when you set need_version to no, make sure it does not cause -set_version
  13631. # flags to be left without arguments
  13632. need_version=unknown
  13633. case $host_os in
  13634. aix3*)
  13635. version_type=linux
  13636. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13637. shlibpath_var=LIBPATH
  13638. # AIX 3 has no versioning support, so we append a major version to the name.
  13639. soname_spec='${libname}${release}${shared_ext}$major'
  13640. ;;
  13641. aix4* | aix5*)
  13642. version_type=linux
  13643. need_lib_prefix=no
  13644. need_version=no
  13645. hardcode_into_libs=yes
  13646. if test "$host_cpu" = ia64; then
  13647. # AIX 5 supports IA64
  13648. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13649. shlibpath_var=LD_LIBRARY_PATH
  13650. else
  13651. # With GCC up to 2.95.x, collect2 would create an import file
  13652. # for dependence libraries. The import file would start with
  13653. # the line `#! .'. This would cause the generated library to
  13654. # depend on `.', always an invalid library. This was fixed in
  13655. # development snapshots of GCC prior to 3.0.
  13656. case $host_os in
  13657. aix4 | aix4.[01] | aix4.[01].*)
  13658. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13659. echo ' yes '
  13660. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13661. :
  13662. else
  13663. can_build_shared=no
  13664. fi
  13665. ;;
  13666. esac
  13667. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13668. # soname into executable. Probably we can add versioning support to
  13669. # collect2, so additional links can be useful in future.
  13670. if test "$aix_use_runtimelinking" = yes; then
  13671. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13672. # instead of lib<name>.a to let people know that these are not
  13673. # typical AIX shared libraries.
  13674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13675. else
  13676. # We preserve .a as extension for shared libraries through AIX4.2
  13677. # and later when we are not doing run time linking.
  13678. library_names_spec='${libname}${release}.a $libname.a'
  13679. soname_spec='${libname}${release}${shared_ext}$major'
  13680. fi
  13681. shlibpath_var=LIBPATH
  13682. fi
  13683. ;;
  13684. amigaos*)
  13685. library_names_spec='$libname.ixlibrary $libname.a'
  13686. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13687. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13688. ;;
  13689. beos*)
  13690. library_names_spec='${libname}${shared_ext}'
  13691. dynamic_linker="$host_os ld.so"
  13692. shlibpath_var=LIBRARY_PATH
  13693. ;;
  13694. bsdi[45]*)
  13695. version_type=linux
  13696. need_version=no
  13697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13698. soname_spec='${libname}${release}${shared_ext}$major'
  13699. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13700. shlibpath_var=LD_LIBRARY_PATH
  13701. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13702. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13703. # the default ld.so.conf also contains /usr/contrib/lib and
  13704. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13705. # libtool to hard-code these into programs
  13706. ;;
  13707. cygwin* | mingw* | pw32*)
  13708. version_type=windows
  13709. shrext_cmds=".dll"
  13710. need_version=no
  13711. need_lib_prefix=no
  13712. case $GCC,$host_os in
  13713. yes,cygwin* | yes,mingw* | yes,pw32*)
  13714. library_names_spec='$libname.dll.a'
  13715. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13716. postinstall_cmds='base_file=`basename \${file}`~
  13717. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13718. dldir=$destdir/`dirname \$dlpath`~
  13719. test -d \$dldir || mkdir -p \$dldir~
  13720. $install_prog $dir/$dlname \$dldir/$dlname~
  13721. chmod a+x \$dldir/$dlname'
  13722. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13723. dlpath=$dir/\$dldll~
  13724. $rm \$dlpath'
  13725. shlibpath_overrides_runpath=yes
  13726. case $host_os in
  13727. cygwin*)
  13728. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13729. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13730. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13731. ;;
  13732. mingw*)
  13733. # MinGW DLLs use traditional 'lib' prefix
  13734. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13735. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13736. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13737. # It is most probably a Windows format PATH printed by
  13738. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13739. # path with ; separators, and with drive letters. We can handle the
  13740. # drive letters (cygwin fileutils understands them), so leave them,
  13741. # especially as we might pass files found there to a mingw objdump,
  13742. # which wouldn't understand a cygwinified path. Ahh.
  13743. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13744. else
  13745. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13746. fi
  13747. ;;
  13748. pw32*)
  13749. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13750. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13751. ;;
  13752. esac
  13753. ;;
  13754. *)
  13755. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13756. ;;
  13757. esac
  13758. dynamic_linker='Win32 ld.exe'
  13759. # FIXME: first we should search . and the directory the executable is in
  13760. shlibpath_var=PATH
  13761. ;;
  13762. darwin* | rhapsody*)
  13763. dynamic_linker="$host_os dyld"
  13764. version_type=darwin
  13765. need_lib_prefix=no
  13766. need_version=no
  13767. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13768. soname_spec='${libname}${release}${major}$shared_ext'
  13769. shlibpath_overrides_runpath=yes
  13770. shlibpath_var=DYLD_LIBRARY_PATH
  13771. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13772. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13773. ;;
  13774. dgux*)
  13775. version_type=linux
  13776. need_lib_prefix=no
  13777. need_version=no
  13778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13779. soname_spec='${libname}${release}${shared_ext}$major'
  13780. shlibpath_var=LD_LIBRARY_PATH
  13781. ;;
  13782. freebsd1*)
  13783. dynamic_linker=no
  13784. ;;
  13785. freebsd* | dragonfly*)
  13786. # DragonFly does not have aout. When/if they implement a new
  13787. # versioning mechanism, adjust this.
  13788. if test -x /usr/bin/objformat; then
  13789. objformat=`/usr/bin/objformat`
  13790. else
  13791. case $host_os in
  13792. freebsd[123]*) objformat=aout ;;
  13793. *) objformat=elf ;;
  13794. esac
  13795. fi
  13796. version_type=freebsd-$objformat
  13797. case $version_type in
  13798. freebsd-elf*)
  13799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13800. need_version=no
  13801. need_lib_prefix=no
  13802. ;;
  13803. freebsd-*)
  13804. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13805. need_version=yes
  13806. ;;
  13807. esac
  13808. shlibpath_var=LD_LIBRARY_PATH
  13809. case $host_os in
  13810. freebsd2*)
  13811. shlibpath_overrides_runpath=yes
  13812. ;;
  13813. freebsd3.[01]* | freebsdelf3.[01]*)
  13814. shlibpath_overrides_runpath=yes
  13815. hardcode_into_libs=yes
  13816. ;;
  13817. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13818. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13819. shlibpath_overrides_runpath=no
  13820. hardcode_into_libs=yes
  13821. ;;
  13822. *) # from 4.6 on, and DragonFly
  13823. shlibpath_overrides_runpath=yes
  13824. hardcode_into_libs=yes
  13825. ;;
  13826. esac
  13827. ;;
  13828. gnu*)
  13829. version_type=linux
  13830. need_lib_prefix=no
  13831. need_version=no
  13832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13833. soname_spec='${libname}${release}${shared_ext}$major'
  13834. shlibpath_var=LD_LIBRARY_PATH
  13835. hardcode_into_libs=yes
  13836. ;;
  13837. hpux9* | hpux10* | hpux11*)
  13838. # Give a soname corresponding to the major version so that dld.sl refuses to
  13839. # link against other versions.
  13840. version_type=sunos
  13841. need_lib_prefix=no
  13842. need_version=no
  13843. case $host_cpu in
  13844. ia64*)
  13845. shrext_cmds='.so'
  13846. hardcode_into_libs=yes
  13847. dynamic_linker="$host_os dld.so"
  13848. shlibpath_var=LD_LIBRARY_PATH
  13849. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13851. soname_spec='${libname}${release}${shared_ext}$major'
  13852. if test "X$HPUX_IA64_MODE" = X32; then
  13853. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13854. else
  13855. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13856. fi
  13857. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13858. ;;
  13859. hppa*64*)
  13860. shrext_cmds='.sl'
  13861. hardcode_into_libs=yes
  13862. dynamic_linker="$host_os dld.sl"
  13863. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13864. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13866. soname_spec='${libname}${release}${shared_ext}$major'
  13867. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13868. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13869. ;;
  13870. *)
  13871. shrext_cmds='.sl'
  13872. dynamic_linker="$host_os dld.sl"
  13873. shlibpath_var=SHLIB_PATH
  13874. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13876. soname_spec='${libname}${release}${shared_ext}$major'
  13877. ;;
  13878. esac
  13879. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13880. postinstall_cmds='chmod 555 $lib'
  13881. ;;
  13882. interix[3-9]*)
  13883. version_type=linux
  13884. need_lib_prefix=no
  13885. need_version=no
  13886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13887. soname_spec='${libname}${release}${shared_ext}$major'
  13888. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13889. shlibpath_var=LD_LIBRARY_PATH
  13890. shlibpath_overrides_runpath=no
  13891. hardcode_into_libs=yes
  13892. ;;
  13893. irix5* | irix6* | nonstopux*)
  13894. case $host_os in
  13895. nonstopux*) version_type=nonstopux ;;
  13896. *)
  13897. if test "$lt_cv_prog_gnu_ld" = yes; then
  13898. version_type=linux
  13899. else
  13900. version_type=irix
  13901. fi ;;
  13902. esac
  13903. need_lib_prefix=no
  13904. need_version=no
  13905. soname_spec='${libname}${release}${shared_ext}$major'
  13906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13907. case $host_os in
  13908. irix5* | nonstopux*)
  13909. libsuff= shlibsuff=
  13910. ;;
  13911. *)
  13912. case $LD in # libtool.m4 will add one of these switches to LD
  13913. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13914. libsuff= shlibsuff= libmagic=32-bit;;
  13915. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13916. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13917. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13918. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13919. *) libsuff= shlibsuff= libmagic=never-match;;
  13920. esac
  13921. ;;
  13922. esac
  13923. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13924. shlibpath_overrides_runpath=no
  13925. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13926. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13927. hardcode_into_libs=yes
  13928. ;;
  13929. # No shared lib support for Linux oldld, aout, or coff.
  13930. linux*oldld* | linux*aout* | linux*coff*)
  13931. dynamic_linker=no
  13932. ;;
  13933. # This must be Linux ELF.
  13934. linux* | k*bsd*-gnu)
  13935. version_type=linux
  13936. need_lib_prefix=no
  13937. need_version=no
  13938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13939. soname_spec='${libname}${release}${shared_ext}$major'
  13940. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13941. shlibpath_var=LD_LIBRARY_PATH
  13942. shlibpath_overrides_runpath=no
  13943. # This implies no fast_install, which is unacceptable.
  13944. # Some rework will be needed to allow for fast_install
  13945. # before this can be enabled.
  13946. hardcode_into_libs=yes
  13947. # Append ld.so.conf contents to the search path
  13948. if test -f /etc/ld.so.conf; then
  13949. 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;/^$/d' | tr '\n' ' '`
  13950. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13951. fi
  13952. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13953. # powerpc, because MkLinux only supported shared libraries with the
  13954. # GNU dynamic linker. Since this was broken with cross compilers,
  13955. # most powerpc-linux boxes support dynamic linking these days and
  13956. # people can always --disable-shared, the test was removed, and we
  13957. # assume the GNU/Linux dynamic linker is in use.
  13958. dynamic_linker='GNU/Linux ld.so'
  13959. ;;
  13960. netbsdelf*-gnu)
  13961. version_type=linux
  13962. need_lib_prefix=no
  13963. need_version=no
  13964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13965. soname_spec='${libname}${release}${shared_ext}$major'
  13966. shlibpath_var=LD_LIBRARY_PATH
  13967. shlibpath_overrides_runpath=no
  13968. hardcode_into_libs=yes
  13969. dynamic_linker='NetBSD ld.elf_so'
  13970. ;;
  13971. netbsd*)
  13972. version_type=sunos
  13973. need_lib_prefix=no
  13974. need_version=no
  13975. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13977. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13978. dynamic_linker='NetBSD (a.out) ld.so'
  13979. else
  13980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13981. soname_spec='${libname}${release}${shared_ext}$major'
  13982. dynamic_linker='NetBSD ld.elf_so'
  13983. fi
  13984. shlibpath_var=LD_LIBRARY_PATH
  13985. shlibpath_overrides_runpath=yes
  13986. hardcode_into_libs=yes
  13987. ;;
  13988. newsos6)
  13989. version_type=linux
  13990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13991. shlibpath_var=LD_LIBRARY_PATH
  13992. shlibpath_overrides_runpath=yes
  13993. ;;
  13994. nto-qnx*)
  13995. version_type=linux
  13996. need_lib_prefix=no
  13997. need_version=no
  13998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13999. soname_spec='${libname}${release}${shared_ext}$major'
  14000. shlibpath_var=LD_LIBRARY_PATH
  14001. shlibpath_overrides_runpath=yes
  14002. ;;
  14003. openbsd*)
  14004. version_type=sunos
  14005. sys_lib_dlsearch_path_spec="/usr/lib"
  14006. need_lib_prefix=no
  14007. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14008. case $host_os in
  14009. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14010. *) need_version=no ;;
  14011. esac
  14012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14013. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14014. shlibpath_var=LD_LIBRARY_PATH
  14015. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14016. case $host_os in
  14017. openbsd2.[89] | openbsd2.[89].*)
  14018. shlibpath_overrides_runpath=no
  14019. ;;
  14020. *)
  14021. shlibpath_overrides_runpath=yes
  14022. ;;
  14023. esac
  14024. else
  14025. shlibpath_overrides_runpath=yes
  14026. fi
  14027. ;;
  14028. os2*)
  14029. libname_spec='$name'
  14030. shrext_cmds=".dll"
  14031. need_lib_prefix=no
  14032. library_names_spec='$libname${shared_ext} $libname.a'
  14033. dynamic_linker='OS/2 ld.exe'
  14034. shlibpath_var=LIBPATH
  14035. ;;
  14036. osf3* | osf4* | osf5*)
  14037. version_type=osf
  14038. need_lib_prefix=no
  14039. need_version=no
  14040. soname_spec='${libname}${release}${shared_ext}$major'
  14041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14042. shlibpath_var=LD_LIBRARY_PATH
  14043. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14044. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14045. ;;
  14046. rdos*)
  14047. dynamic_linker=no
  14048. ;;
  14049. solaris*)
  14050. version_type=linux
  14051. need_lib_prefix=no
  14052. need_version=no
  14053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14054. soname_spec='${libname}${release}${shared_ext}$major'
  14055. shlibpath_var=LD_LIBRARY_PATH
  14056. shlibpath_overrides_runpath=yes
  14057. hardcode_into_libs=yes
  14058. # ldd complains unless libraries are executable
  14059. postinstall_cmds='chmod +x $lib'
  14060. ;;
  14061. sunos4*)
  14062. version_type=sunos
  14063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14064. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14065. shlibpath_var=LD_LIBRARY_PATH
  14066. shlibpath_overrides_runpath=yes
  14067. if test "$with_gnu_ld" = yes; then
  14068. need_lib_prefix=no
  14069. fi
  14070. need_version=yes
  14071. ;;
  14072. sysv4 | sysv4.3*)
  14073. version_type=linux
  14074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14075. soname_spec='${libname}${release}${shared_ext}$major'
  14076. shlibpath_var=LD_LIBRARY_PATH
  14077. case $host_vendor in
  14078. sni)
  14079. shlibpath_overrides_runpath=no
  14080. need_lib_prefix=no
  14081. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14082. runpath_var=LD_RUN_PATH
  14083. ;;
  14084. siemens)
  14085. need_lib_prefix=no
  14086. ;;
  14087. motorola)
  14088. need_lib_prefix=no
  14089. need_version=no
  14090. shlibpath_overrides_runpath=no
  14091. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14092. ;;
  14093. esac
  14094. ;;
  14095. sysv4*MP*)
  14096. if test -d /usr/nec ;then
  14097. version_type=linux
  14098. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14099. soname_spec='$libname${shared_ext}.$major'
  14100. shlibpath_var=LD_LIBRARY_PATH
  14101. fi
  14102. ;;
  14103. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14104. version_type=freebsd-elf
  14105. need_lib_prefix=no
  14106. need_version=no
  14107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14108. soname_spec='${libname}${release}${shared_ext}$major'
  14109. shlibpath_var=LD_LIBRARY_PATH
  14110. hardcode_into_libs=yes
  14111. if test "$with_gnu_ld" = yes; then
  14112. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14113. shlibpath_overrides_runpath=no
  14114. else
  14115. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14116. shlibpath_overrides_runpath=yes
  14117. case $host_os in
  14118. sco3.2v5*)
  14119. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14120. ;;
  14121. esac
  14122. fi
  14123. sys_lib_dlsearch_path_spec='/usr/lib'
  14124. ;;
  14125. uts4*)
  14126. version_type=linux
  14127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14128. soname_spec='${libname}${release}${shared_ext}$major'
  14129. shlibpath_var=LD_LIBRARY_PATH
  14130. ;;
  14131. *)
  14132. dynamic_linker=no
  14133. ;;
  14134. esac
  14135. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14136. echo "${ECHO_T}$dynamic_linker" >&6; }
  14137. test "$dynamic_linker" = no && can_build_shared=no
  14138. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14139. if test "$GCC" = yes; then
  14140. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14141. fi
  14142. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14143. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14144. hardcode_action_F77=
  14145. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14146. test -n "$runpath_var_F77" || \
  14147. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14148. # We can hardcode non-existant directories.
  14149. if test "$hardcode_direct_F77" != no &&
  14150. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14151. # have to relink, otherwise we might link with an installed library
  14152. # when we should be linking with a yet-to-be-installed one
  14153. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14154. test "$hardcode_minus_L_F77" != no; then
  14155. # Linking always hardcodes the temporary library directory.
  14156. hardcode_action_F77=relink
  14157. else
  14158. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14159. hardcode_action_F77=immediate
  14160. fi
  14161. else
  14162. # We cannot hardcode anything, or else we can only hardcode existing
  14163. # directories.
  14164. hardcode_action_F77=unsupported
  14165. fi
  14166. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14167. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14168. if test "$hardcode_action_F77" = relink; then
  14169. # Fast installation is not supported
  14170. enable_fast_install=no
  14171. elif test "$shlibpath_overrides_runpath" = yes ||
  14172. test "$enable_shared" = no; then
  14173. # Fast installation is not necessary
  14174. enable_fast_install=needless
  14175. fi
  14176. # The else clause should only fire when bootstrapping the
  14177. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14178. # with your package, and you will get complaints that there are
  14179. # no rules to generate ltmain.sh.
  14180. if test -f "$ltmain"; then
  14181. # See if we are running on zsh, and set the options which allow our commands through
  14182. # without removal of \ escapes.
  14183. if test -n "${ZSH_VERSION+set}" ; then
  14184. setopt NO_GLOB_SUBST
  14185. fi
  14186. # Now quote all the things that may contain metacharacters while being
  14187. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14188. # variables and quote the copies for generation of the libtool script.
  14189. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14190. SED SHELL STRIP \
  14191. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14192. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14193. deplibs_check_method reload_flag reload_cmds need_locks \
  14194. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14195. lt_cv_sys_global_symbol_to_c_name_address \
  14196. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14197. old_postinstall_cmds old_postuninstall_cmds \
  14198. compiler_F77 \
  14199. CC_F77 \
  14200. LD_F77 \
  14201. lt_prog_compiler_wl_F77 \
  14202. lt_prog_compiler_pic_F77 \
  14203. lt_prog_compiler_static_F77 \
  14204. lt_prog_compiler_no_builtin_flag_F77 \
  14205. export_dynamic_flag_spec_F77 \
  14206. thread_safe_flag_spec_F77 \
  14207. whole_archive_flag_spec_F77 \
  14208. enable_shared_with_static_runtimes_F77 \
  14209. old_archive_cmds_F77 \
  14210. old_archive_from_new_cmds_F77 \
  14211. predep_objects_F77 \
  14212. postdep_objects_F77 \
  14213. predeps_F77 \
  14214. postdeps_F77 \
  14215. compiler_lib_search_path_F77 \
  14216. archive_cmds_F77 \
  14217. archive_expsym_cmds_F77 \
  14218. postinstall_cmds_F77 \
  14219. postuninstall_cmds_F77 \
  14220. old_archive_from_expsyms_cmds_F77 \
  14221. allow_undefined_flag_F77 \
  14222. no_undefined_flag_F77 \
  14223. export_symbols_cmds_F77 \
  14224. hardcode_libdir_flag_spec_F77 \
  14225. hardcode_libdir_flag_spec_ld_F77 \
  14226. hardcode_libdir_separator_F77 \
  14227. hardcode_automatic_F77 \
  14228. module_cmds_F77 \
  14229. module_expsym_cmds_F77 \
  14230. lt_cv_prog_compiler_c_o_F77 \
  14231. fix_srcfile_path_F77 \
  14232. exclude_expsyms_F77 \
  14233. include_expsyms_F77; do
  14234. case $var in
  14235. old_archive_cmds_F77 | \
  14236. old_archive_from_new_cmds_F77 | \
  14237. archive_cmds_F77 | \
  14238. archive_expsym_cmds_F77 | \
  14239. module_cmds_F77 | \
  14240. module_expsym_cmds_F77 | \
  14241. old_archive_from_expsyms_cmds_F77 | \
  14242. export_symbols_cmds_F77 | \
  14243. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14244. postinstall_cmds | postuninstall_cmds | \
  14245. old_postinstall_cmds | old_postuninstall_cmds | \
  14246. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14247. # Double-quote double-evaled strings.
  14248. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14249. ;;
  14250. *)
  14251. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14252. ;;
  14253. esac
  14254. done
  14255. case $lt_echo in
  14256. *'\$0 --fallback-echo"')
  14257. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14258. ;;
  14259. esac
  14260. cfgfile="$ofile"
  14261. cat <<__EOF__ >> "$cfgfile"
  14262. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14263. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14264. # Shell to use when invoking shell scripts.
  14265. SHELL=$lt_SHELL
  14266. # Whether or not to build shared libraries.
  14267. build_libtool_libs=$enable_shared
  14268. # Whether or not to build static libraries.
  14269. build_old_libs=$enable_static
  14270. # Whether or not to add -lc for building shared libraries.
  14271. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14272. # Whether or not to disallow shared libs when runtime libs are static
  14273. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14274. # Whether or not to optimize for fast installation.
  14275. fast_install=$enable_fast_install
  14276. # The host system.
  14277. host_alias=$host_alias
  14278. host=$host
  14279. host_os=$host_os
  14280. # The build system.
  14281. build_alias=$build_alias
  14282. build=$build
  14283. build_os=$build_os
  14284. # An echo program that does not interpret backslashes.
  14285. echo=$lt_echo
  14286. # The archiver.
  14287. AR=$lt_AR
  14288. AR_FLAGS=$lt_AR_FLAGS
  14289. # A C compiler.
  14290. LTCC=$lt_LTCC
  14291. # LTCC compiler flags.
  14292. LTCFLAGS=$lt_LTCFLAGS
  14293. # A language-specific compiler.
  14294. CC=$lt_compiler_F77
  14295. # Is the compiler the GNU C compiler?
  14296. with_gcc=$GCC_F77
  14297. # An ERE matcher.
  14298. EGREP=$lt_EGREP
  14299. # The linker used to build libraries.
  14300. LD=$lt_LD_F77
  14301. # Whether we need hard or soft links.
  14302. LN_S=$lt_LN_S
  14303. # A BSD-compatible nm program.
  14304. NM=$lt_NM
  14305. # A symbol stripping program
  14306. STRIP=$lt_STRIP
  14307. # Used to examine libraries when file_magic_cmd begins "file"
  14308. MAGIC_CMD=$MAGIC_CMD
  14309. # Used on cygwin: DLL creation program.
  14310. DLLTOOL="$DLLTOOL"
  14311. # Used on cygwin: object dumper.
  14312. OBJDUMP="$OBJDUMP"
  14313. # Used on cygwin: assembler.
  14314. AS="$AS"
  14315. # The name of the directory that contains temporary libtool files.
  14316. objdir=$objdir
  14317. # How to create reloadable object files.
  14318. reload_flag=$lt_reload_flag
  14319. reload_cmds=$lt_reload_cmds
  14320. # How to pass a linker flag through the compiler.
  14321. wl=$lt_lt_prog_compiler_wl_F77
  14322. # Object file suffix (normally "o").
  14323. objext="$ac_objext"
  14324. # Old archive suffix (normally "a").
  14325. libext="$libext"
  14326. # Shared library suffix (normally ".so").
  14327. shrext_cmds='$shrext_cmds'
  14328. # Executable file suffix (normally "").
  14329. exeext="$exeext"
  14330. # Additional compiler flags for building library objects.
  14331. pic_flag=$lt_lt_prog_compiler_pic_F77
  14332. pic_mode=$pic_mode
  14333. # What is the maximum length of a command?
  14334. max_cmd_len=$lt_cv_sys_max_cmd_len
  14335. # Does compiler simultaneously support -c and -o options?
  14336. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14337. # Must we lock files when doing compilation?
  14338. need_locks=$lt_need_locks
  14339. # Do we need the lib prefix for modules?
  14340. need_lib_prefix=$need_lib_prefix
  14341. # Do we need a version for libraries?
  14342. need_version=$need_version
  14343. # Whether dlopen is supported.
  14344. dlopen_support=$enable_dlopen
  14345. # Whether dlopen of programs is supported.
  14346. dlopen_self=$enable_dlopen_self
  14347. # Whether dlopen of statically linked programs is supported.
  14348. dlopen_self_static=$enable_dlopen_self_static
  14349. # Compiler flag to prevent dynamic linking.
  14350. link_static_flag=$lt_lt_prog_compiler_static_F77
  14351. # Compiler flag to turn off builtin functions.
  14352. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14353. # Compiler flag to allow reflexive dlopens.
  14354. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14355. # Compiler flag to generate shared objects directly from archives.
  14356. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14357. # Compiler flag to generate thread-safe objects.
  14358. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14359. # Library versioning type.
  14360. version_type=$version_type
  14361. # Format of library name prefix.
  14362. libname_spec=$lt_libname_spec
  14363. # List of archive names. First name is the real one, the rest are links.
  14364. # The last name is the one that the linker finds with -lNAME.
  14365. library_names_spec=$lt_library_names_spec
  14366. # The coded name of the library, if different from the real name.
  14367. soname_spec=$lt_soname_spec
  14368. # Commands used to build and install an old-style archive.
  14369. RANLIB=$lt_RANLIB
  14370. old_archive_cmds=$lt_old_archive_cmds_F77
  14371. old_postinstall_cmds=$lt_old_postinstall_cmds
  14372. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14373. # Create an old-style archive from a shared archive.
  14374. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14375. # Create a temporary old-style archive to link instead of a shared archive.
  14376. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14377. # Commands used to build and install a shared archive.
  14378. archive_cmds=$lt_archive_cmds_F77
  14379. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14380. postinstall_cmds=$lt_postinstall_cmds
  14381. postuninstall_cmds=$lt_postuninstall_cmds
  14382. # Commands used to build a loadable module (assumed same as above if empty)
  14383. module_cmds=$lt_module_cmds_F77
  14384. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14385. # Commands to strip libraries.
  14386. old_striplib=$lt_old_striplib
  14387. striplib=$lt_striplib
  14388. # Dependencies to place before the objects being linked to create a
  14389. # shared library.
  14390. predep_objects=$lt_predep_objects_F77
  14391. # Dependencies to place after the objects being linked to create a
  14392. # shared library.
  14393. postdep_objects=$lt_postdep_objects_F77
  14394. # Dependencies to place before the objects being linked to create a
  14395. # shared library.
  14396. predeps=$lt_predeps_F77
  14397. # Dependencies to place after the objects being linked to create a
  14398. # shared library.
  14399. postdeps=$lt_postdeps_F77
  14400. # The library search path used internally by the compiler when linking
  14401. # a shared library.
  14402. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14403. # Method to check whether dependent libraries are shared objects.
  14404. deplibs_check_method=$lt_deplibs_check_method
  14405. # Command to use when deplibs_check_method == file_magic.
  14406. file_magic_cmd=$lt_file_magic_cmd
  14407. # Flag that allows shared libraries with undefined symbols to be built.
  14408. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14409. # Flag that forces no undefined symbols.
  14410. no_undefined_flag=$lt_no_undefined_flag_F77
  14411. # Commands used to finish a libtool library installation in a directory.
  14412. finish_cmds=$lt_finish_cmds
  14413. # Same as above, but a single script fragment to be evaled but not shown.
  14414. finish_eval=$lt_finish_eval
  14415. # Take the output of nm and produce a listing of raw symbols and C names.
  14416. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14417. # Transform the output of nm in a proper C declaration
  14418. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14419. # Transform the output of nm in a C name address pair
  14420. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14421. # This is the shared library runtime path variable.
  14422. runpath_var=$runpath_var
  14423. # This is the shared library path variable.
  14424. shlibpath_var=$shlibpath_var
  14425. # Is shlibpath searched before the hard-coded library search path?
  14426. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14427. # How to hardcode a shared library path into an executable.
  14428. hardcode_action=$hardcode_action_F77
  14429. # Whether we should hardcode library paths into libraries.
  14430. hardcode_into_libs=$hardcode_into_libs
  14431. # Flag to hardcode \$libdir into a binary during linking.
  14432. # This must work even if \$libdir does not exist.
  14433. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14434. # If ld is used when linking, flag to hardcode \$libdir into
  14435. # a binary during linking. This must work even if \$libdir does
  14436. # not exist.
  14437. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14438. # Whether we need a single -rpath flag with a separated argument.
  14439. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14440. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14441. # resulting binary.
  14442. hardcode_direct=$hardcode_direct_F77
  14443. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14444. # resulting binary.
  14445. hardcode_minus_L=$hardcode_minus_L_F77
  14446. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14447. # the resulting binary.
  14448. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14449. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14450. # and all subsequent libraries and executables linked against it.
  14451. hardcode_automatic=$hardcode_automatic_F77
  14452. # Variables whose values should be saved in libtool wrapper scripts and
  14453. # restored at relink time.
  14454. variables_saved_for_relink="$variables_saved_for_relink"
  14455. # Whether libtool must link a program against all its dependency libraries.
  14456. link_all_deplibs=$link_all_deplibs_F77
  14457. # Compile-time system search path for libraries
  14458. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14459. # Run-time system search path for libraries
  14460. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14461. # Fix the shell variable \$srcfile for the compiler.
  14462. fix_srcfile_path=$lt_fix_srcfile_path
  14463. # Set to yes if exported symbols are required.
  14464. always_export_symbols=$always_export_symbols_F77
  14465. # The commands to list exported symbols.
  14466. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14467. # The commands to extract the exported symbol list from a shared archive.
  14468. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14469. # Symbols that should not be listed in the preloaded symbols.
  14470. exclude_expsyms=$lt_exclude_expsyms_F77
  14471. # Symbols that must always be exported.
  14472. include_expsyms=$lt_include_expsyms_F77
  14473. # ### END LIBTOOL TAG CONFIG: $tagname
  14474. __EOF__
  14475. else
  14476. # If there is no Makefile yet, we rely on a make rule to execute
  14477. # `config.status --recheck' to rerun these tests and create the
  14478. # libtool script then.
  14479. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14480. if test -f "$ltmain_in"; then
  14481. test -f Makefile && make "$ltmain"
  14482. fi
  14483. fi
  14484. ac_ext=c
  14485. ac_cpp='$CPP $CPPFLAGS'
  14486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14489. CC="$lt_save_CC"
  14490. else
  14491. tagname=""
  14492. fi
  14493. ;;
  14494. GCJ)
  14495. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14496. # Source file extension for Java test sources.
  14497. ac_ext=java
  14498. # Object file extension for compiled Java test sources.
  14499. objext=o
  14500. objext_GCJ=$objext
  14501. # Code to be used in simple compile tests
  14502. lt_simple_compile_test_code="class foo {}"
  14503. # Code to be used in simple link tests
  14504. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14505. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14506. # If no C compiler was specified, use CC.
  14507. LTCC=${LTCC-"$CC"}
  14508. # If no C compiler flags were specified, use CFLAGS.
  14509. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14510. # Allow CC to be a program name with arguments.
  14511. compiler=$CC
  14512. # save warnings/boilerplate of simple test code
  14513. ac_outfile=conftest.$ac_objext
  14514. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14515. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14516. _lt_compiler_boilerplate=`cat conftest.err`
  14517. $rm conftest*
  14518. ac_outfile=conftest.$ac_objext
  14519. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14520. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14521. _lt_linker_boilerplate=`cat conftest.err`
  14522. $rm conftest*
  14523. # Allow CC to be a program name with arguments.
  14524. lt_save_CC="$CC"
  14525. CC=${GCJ-"gcj"}
  14526. compiler=$CC
  14527. compiler_GCJ=$CC
  14528. for cc_temp in $compiler""; do
  14529. case $cc_temp in
  14530. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14531. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14532. \-*) ;;
  14533. *) break;;
  14534. esac
  14535. done
  14536. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14537. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14538. archive_cmds_need_lc_GCJ=no
  14539. old_archive_cmds_GCJ=$old_archive_cmds
  14540. lt_prog_compiler_no_builtin_flag_GCJ=
  14541. if test "$GCC" = yes; then
  14542. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14543. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14544. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14545. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14546. echo $ECHO_N "(cached) $ECHO_C" >&6
  14547. else
  14548. lt_cv_prog_compiler_rtti_exceptions=no
  14549. ac_outfile=conftest.$ac_objext
  14550. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14551. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14552. # Insert the option either (1) after the last *FLAGS variable, or
  14553. # (2) before a word containing "conftest.", or (3) at the end.
  14554. # Note that $ac_compile itself does not contain backslashes and begins
  14555. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14556. # The option is referenced via a variable to avoid confusing sed.
  14557. lt_compile=`echo "$ac_compile" | $SED \
  14558. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14559. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14560. -e 's:$: $lt_compiler_flag:'`
  14561. (eval echo "\"\$as_me:16309: $lt_compile\"" >&5)
  14562. (eval "$lt_compile" 2>conftest.err)
  14563. ac_status=$?
  14564. cat conftest.err >&5
  14565. echo "$as_me:16313: \$? = $ac_status" >&5
  14566. if (exit $ac_status) && test -s "$ac_outfile"; then
  14567. # The compiler can only warn and ignore the option if not recognized
  14568. # So say no if there are warnings other than the usual output.
  14569. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14570. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14571. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14572. lt_cv_prog_compiler_rtti_exceptions=yes
  14573. fi
  14574. fi
  14575. $rm conftest*
  14576. fi
  14577. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14578. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14579. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14580. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14581. else
  14582. :
  14583. fi
  14584. fi
  14585. lt_prog_compiler_wl_GCJ=
  14586. lt_prog_compiler_pic_GCJ=
  14587. lt_prog_compiler_static_GCJ=
  14588. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14589. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14590. if test "$GCC" = yes; then
  14591. lt_prog_compiler_wl_GCJ='-Wl,'
  14592. lt_prog_compiler_static_GCJ='-static'
  14593. case $host_os in
  14594. aix*)
  14595. # All AIX code is PIC.
  14596. if test "$host_cpu" = ia64; then
  14597. # AIX 5 now supports IA64 processor
  14598. lt_prog_compiler_static_GCJ='-Bstatic'
  14599. fi
  14600. ;;
  14601. amigaos*)
  14602. # FIXME: we need at least 68020 code to build shared libraries, but
  14603. # adding the `-m68020' flag to GCC prevents building anything better,
  14604. # like `-m68040'.
  14605. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14606. ;;
  14607. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14608. # PIC is the default for these OSes.
  14609. ;;
  14610. mingw* | cygwin* | pw32* | os2*)
  14611. # This hack is so that the source file can tell whether it is being
  14612. # built for inclusion in a dll (and should export symbols for example).
  14613. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14614. # (--disable-auto-import) libraries
  14615. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14616. ;;
  14617. darwin* | rhapsody*)
  14618. # PIC is the default on this platform
  14619. # Common symbols not allowed in MH_DYLIB files
  14620. lt_prog_compiler_pic_GCJ='-fno-common'
  14621. ;;
  14622. interix[3-9]*)
  14623. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14624. # Instead, we relocate shared libraries at runtime.
  14625. ;;
  14626. msdosdjgpp*)
  14627. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14628. # on systems that don't support them.
  14629. lt_prog_compiler_can_build_shared_GCJ=no
  14630. enable_shared=no
  14631. ;;
  14632. sysv4*MP*)
  14633. if test -d /usr/nec; then
  14634. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14635. fi
  14636. ;;
  14637. hpux*)
  14638. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14639. # not for PA HP-UX.
  14640. case $host_cpu in
  14641. hppa*64*|ia64*)
  14642. # +Z the default
  14643. ;;
  14644. *)
  14645. lt_prog_compiler_pic_GCJ='-fPIC'
  14646. ;;
  14647. esac
  14648. ;;
  14649. *)
  14650. lt_prog_compiler_pic_GCJ='-fPIC'
  14651. ;;
  14652. esac
  14653. else
  14654. # PORTME Check for flag to pass linker flags through the system compiler.
  14655. case $host_os in
  14656. aix*)
  14657. lt_prog_compiler_wl_GCJ='-Wl,'
  14658. if test "$host_cpu" = ia64; then
  14659. # AIX 5 now supports IA64 processor
  14660. lt_prog_compiler_static_GCJ='-Bstatic'
  14661. else
  14662. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14663. fi
  14664. ;;
  14665. darwin*)
  14666. # PIC is the default on this platform
  14667. # Common symbols not allowed in MH_DYLIB files
  14668. case $cc_basename in
  14669. xlc*)
  14670. lt_prog_compiler_pic_GCJ='-qnocommon'
  14671. lt_prog_compiler_wl_GCJ='-Wl,'
  14672. ;;
  14673. esac
  14674. ;;
  14675. mingw* | cygwin* | pw32* | os2*)
  14676. # This hack is so that the source file can tell whether it is being
  14677. # built for inclusion in a dll (and should export symbols for example).
  14678. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14679. ;;
  14680. hpux9* | hpux10* | hpux11*)
  14681. lt_prog_compiler_wl_GCJ='-Wl,'
  14682. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14683. # not for PA HP-UX.
  14684. case $host_cpu in
  14685. hppa*64*|ia64*)
  14686. # +Z the default
  14687. ;;
  14688. *)
  14689. lt_prog_compiler_pic_GCJ='+Z'
  14690. ;;
  14691. esac
  14692. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14693. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14694. ;;
  14695. irix5* | irix6* | nonstopux*)
  14696. lt_prog_compiler_wl_GCJ='-Wl,'
  14697. # PIC (with -KPIC) is the default.
  14698. lt_prog_compiler_static_GCJ='-non_shared'
  14699. ;;
  14700. newsos6)
  14701. lt_prog_compiler_pic_GCJ='-KPIC'
  14702. lt_prog_compiler_static_GCJ='-Bstatic'
  14703. ;;
  14704. linux* | k*bsd*-gnu)
  14705. case $cc_basename in
  14706. icc* | ecc*)
  14707. lt_prog_compiler_wl_GCJ='-Wl,'
  14708. lt_prog_compiler_pic_GCJ='-KPIC'
  14709. lt_prog_compiler_static_GCJ='-static'
  14710. ;;
  14711. pgcc* | pgf77* | pgf90* | pgf95*)
  14712. # Portland Group compilers (*not* the Pentium gcc compiler,
  14713. # which looks to be a dead project)
  14714. lt_prog_compiler_wl_GCJ='-Wl,'
  14715. lt_prog_compiler_pic_GCJ='-fpic'
  14716. lt_prog_compiler_static_GCJ='-Bstatic'
  14717. ;;
  14718. ccc*)
  14719. lt_prog_compiler_wl_GCJ='-Wl,'
  14720. # All Alpha code is PIC.
  14721. lt_prog_compiler_static_GCJ='-non_shared'
  14722. ;;
  14723. *)
  14724. case `$CC -V 2>&1 | sed 5q` in
  14725. *Sun\ C*)
  14726. # Sun C 5.9
  14727. lt_prog_compiler_pic_GCJ='-KPIC'
  14728. lt_prog_compiler_static_GCJ='-Bstatic'
  14729. lt_prog_compiler_wl_GCJ='-Wl,'
  14730. ;;
  14731. *Sun\ F*)
  14732. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14733. lt_prog_compiler_pic_GCJ='-KPIC'
  14734. lt_prog_compiler_static_GCJ='-Bstatic'
  14735. lt_prog_compiler_wl_GCJ=''
  14736. ;;
  14737. esac
  14738. ;;
  14739. esac
  14740. ;;
  14741. osf3* | osf4* | osf5*)
  14742. lt_prog_compiler_wl_GCJ='-Wl,'
  14743. # All OSF/1 code is PIC.
  14744. lt_prog_compiler_static_GCJ='-non_shared'
  14745. ;;
  14746. rdos*)
  14747. lt_prog_compiler_static_GCJ='-non_shared'
  14748. ;;
  14749. solaris*)
  14750. lt_prog_compiler_pic_GCJ='-KPIC'
  14751. lt_prog_compiler_static_GCJ='-Bstatic'
  14752. case $cc_basename in
  14753. f77* | f90* | f95*)
  14754. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14755. *)
  14756. lt_prog_compiler_wl_GCJ='-Wl,';;
  14757. esac
  14758. ;;
  14759. sunos4*)
  14760. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14761. lt_prog_compiler_pic_GCJ='-PIC'
  14762. lt_prog_compiler_static_GCJ='-Bstatic'
  14763. ;;
  14764. sysv4 | sysv4.2uw2* | sysv4.3*)
  14765. lt_prog_compiler_wl_GCJ='-Wl,'
  14766. lt_prog_compiler_pic_GCJ='-KPIC'
  14767. lt_prog_compiler_static_GCJ='-Bstatic'
  14768. ;;
  14769. sysv4*MP*)
  14770. if test -d /usr/nec ;then
  14771. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14772. lt_prog_compiler_static_GCJ='-Bstatic'
  14773. fi
  14774. ;;
  14775. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14776. lt_prog_compiler_wl_GCJ='-Wl,'
  14777. lt_prog_compiler_pic_GCJ='-KPIC'
  14778. lt_prog_compiler_static_GCJ='-Bstatic'
  14779. ;;
  14780. unicos*)
  14781. lt_prog_compiler_wl_GCJ='-Wl,'
  14782. lt_prog_compiler_can_build_shared_GCJ=no
  14783. ;;
  14784. uts4*)
  14785. lt_prog_compiler_pic_GCJ='-pic'
  14786. lt_prog_compiler_static_GCJ='-Bstatic'
  14787. ;;
  14788. *)
  14789. lt_prog_compiler_can_build_shared_GCJ=no
  14790. ;;
  14791. esac
  14792. fi
  14793. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14794. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  14795. #
  14796. # Check to make sure the PIC flag actually works.
  14797. #
  14798. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14799. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14800. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  14801. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14802. echo $ECHO_N "(cached) $ECHO_C" >&6
  14803. else
  14804. lt_prog_compiler_pic_works_GCJ=no
  14805. ac_outfile=conftest.$ac_objext
  14806. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14807. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14808. # Insert the option either (1) after the last *FLAGS variable, or
  14809. # (2) before a word containing "conftest.", or (3) at the end.
  14810. # Note that $ac_compile itself does not contain backslashes and begins
  14811. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14812. # The option is referenced via a variable to avoid confusing sed.
  14813. lt_compile=`echo "$ac_compile" | $SED \
  14814. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14815. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14816. -e 's:$: $lt_compiler_flag:'`
  14817. (eval echo "\"\$as_me:16599: $lt_compile\"" >&5)
  14818. (eval "$lt_compile" 2>conftest.err)
  14819. ac_status=$?
  14820. cat conftest.err >&5
  14821. echo "$as_me:16603: \$? = $ac_status" >&5
  14822. if (exit $ac_status) && test -s "$ac_outfile"; then
  14823. # The compiler can only warn and ignore the option if not recognized
  14824. # So say no if there are warnings other than the usual output.
  14825. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14826. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14827. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14828. lt_prog_compiler_pic_works_GCJ=yes
  14829. fi
  14830. fi
  14831. $rm conftest*
  14832. fi
  14833. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14834. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  14835. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14836. case $lt_prog_compiler_pic_GCJ in
  14837. "" | " "*) ;;
  14838. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14839. esac
  14840. else
  14841. lt_prog_compiler_pic_GCJ=
  14842. lt_prog_compiler_can_build_shared_GCJ=no
  14843. fi
  14844. fi
  14845. case $host_os in
  14846. # For platforms which do not support PIC, -DPIC is meaningless:
  14847. *djgpp*)
  14848. lt_prog_compiler_pic_GCJ=
  14849. ;;
  14850. *)
  14851. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14852. ;;
  14853. esac
  14854. #
  14855. # Check to make sure the static flag actually works.
  14856. #
  14857. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14858. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14859. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14860. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14861. echo $ECHO_N "(cached) $ECHO_C" >&6
  14862. else
  14863. lt_prog_compiler_static_works_GCJ=no
  14864. save_LDFLAGS="$LDFLAGS"
  14865. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14866. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14867. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14868. # The linker can only warn and ignore the option if not recognized
  14869. # So say no if there are warnings
  14870. if test -s conftest.err; then
  14871. # Append any errors to the config.log.
  14872. cat conftest.err 1>&5
  14873. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14874. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14875. if diff conftest.exp conftest.er2 >/dev/null; then
  14876. lt_prog_compiler_static_works_GCJ=yes
  14877. fi
  14878. else
  14879. lt_prog_compiler_static_works_GCJ=yes
  14880. fi
  14881. fi
  14882. $rm conftest*
  14883. LDFLAGS="$save_LDFLAGS"
  14884. fi
  14885. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14886. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  14887. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14888. :
  14889. else
  14890. lt_prog_compiler_static_GCJ=
  14891. fi
  14892. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14893. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14894. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14895. echo $ECHO_N "(cached) $ECHO_C" >&6
  14896. else
  14897. lt_cv_prog_compiler_c_o_GCJ=no
  14898. $rm -r conftest 2>/dev/null
  14899. mkdir conftest
  14900. cd conftest
  14901. mkdir out
  14902. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14903. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14904. # Insert the option either (1) after the last *FLAGS variable, or
  14905. # (2) before a word containing "conftest.", or (3) at the end.
  14906. # Note that $ac_compile itself does not contain backslashes and begins
  14907. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14908. lt_compile=`echo "$ac_compile" | $SED \
  14909. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14910. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14911. -e 's:$: $lt_compiler_flag:'`
  14912. (eval echo "\"\$as_me:16703: $lt_compile\"" >&5)
  14913. (eval "$lt_compile" 2>out/conftest.err)
  14914. ac_status=$?
  14915. cat out/conftest.err >&5
  14916. echo "$as_me:16707: \$? = $ac_status" >&5
  14917. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14918. then
  14919. # The compiler can only warn and ignore the option if not recognized
  14920. # So say no if there are warnings
  14921. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14922. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14923. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14924. lt_cv_prog_compiler_c_o_GCJ=yes
  14925. fi
  14926. fi
  14927. chmod u+w . 2>&5
  14928. $rm conftest*
  14929. # SGI C++ compiler will create directory out/ii_files/ for
  14930. # template instantiation
  14931. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14932. $rm out/* && rmdir out
  14933. cd ..
  14934. rmdir conftest
  14935. $rm conftest*
  14936. fi
  14937. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14938. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  14939. hard_links="nottested"
  14940. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14941. # do not overwrite the value of need_locks provided by the user
  14942. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14943. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14944. hard_links=yes
  14945. $rm conftest*
  14946. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14947. touch conftest.a
  14948. ln conftest.a conftest.b 2>&5 || hard_links=no
  14949. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14950. { echo "$as_me:$LINENO: result: $hard_links" >&5
  14951. echo "${ECHO_T}$hard_links" >&6; }
  14952. if test "$hard_links" = no; then
  14953. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14954. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14955. need_locks=warn
  14956. fi
  14957. else
  14958. need_locks=no
  14959. fi
  14960. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14961. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14962. runpath_var=
  14963. allow_undefined_flag_GCJ=
  14964. enable_shared_with_static_runtimes_GCJ=no
  14965. archive_cmds_GCJ=
  14966. archive_expsym_cmds_GCJ=
  14967. old_archive_From_new_cmds_GCJ=
  14968. old_archive_from_expsyms_cmds_GCJ=
  14969. export_dynamic_flag_spec_GCJ=
  14970. whole_archive_flag_spec_GCJ=
  14971. thread_safe_flag_spec_GCJ=
  14972. hardcode_libdir_flag_spec_GCJ=
  14973. hardcode_libdir_flag_spec_ld_GCJ=
  14974. hardcode_libdir_separator_GCJ=
  14975. hardcode_direct_GCJ=no
  14976. hardcode_minus_L_GCJ=no
  14977. hardcode_shlibpath_var_GCJ=unsupported
  14978. link_all_deplibs_GCJ=unknown
  14979. hardcode_automatic_GCJ=no
  14980. module_cmds_GCJ=
  14981. module_expsym_cmds_GCJ=
  14982. always_export_symbols_GCJ=no
  14983. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14984. # include_expsyms should be a list of space-separated symbols to be *always*
  14985. # included in the symbol list
  14986. include_expsyms_GCJ=
  14987. # exclude_expsyms can be an extended regexp of symbols to exclude
  14988. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14989. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14990. # as well as any symbol that contains `d'.
  14991. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14992. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14993. # platforms (ab)use it in PIC code, but their linkers get confused if
  14994. # the symbol is explicitly referenced. Since portable code cannot
  14995. # rely on this symbol name, it's probably fine to never include it in
  14996. # preloaded symbol tables.
  14997. extract_expsyms_cmds=
  14998. # Just being paranoid about ensuring that cc_basename is set.
  14999. for cc_temp in $compiler""; do
  15000. case $cc_temp in
  15001. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15002. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15003. \-*) ;;
  15004. *) break;;
  15005. esac
  15006. done
  15007. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15008. case $host_os in
  15009. cygwin* | mingw* | pw32*)
  15010. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15011. # When not using gcc, we currently assume that we are using
  15012. # Microsoft Visual C++.
  15013. if test "$GCC" != yes; then
  15014. with_gnu_ld=no
  15015. fi
  15016. ;;
  15017. interix*)
  15018. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15019. with_gnu_ld=yes
  15020. ;;
  15021. openbsd*)
  15022. with_gnu_ld=no
  15023. ;;
  15024. esac
  15025. ld_shlibs_GCJ=yes
  15026. if test "$with_gnu_ld" = yes; then
  15027. # If archive_cmds runs LD, not CC, wlarc should be empty
  15028. wlarc='${wl}'
  15029. # Set some defaults for GNU ld with shared library support. These
  15030. # are reset later if shared libraries are not supported. Putting them
  15031. # here allows them to be overridden if necessary.
  15032. runpath_var=LD_RUN_PATH
  15033. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15034. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15035. # ancient GNU ld didn't support --whole-archive et. al.
  15036. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15037. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15038. else
  15039. whole_archive_flag_spec_GCJ=
  15040. fi
  15041. supports_anon_versioning=no
  15042. case `$LD -v 2>/dev/null` in
  15043. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15044. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15045. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15046. *\ 2.11.*) ;; # other 2.11 versions
  15047. *) supports_anon_versioning=yes ;;
  15048. esac
  15049. # See if GNU ld supports shared libraries.
  15050. case $host_os in
  15051. aix3* | aix4* | aix5*)
  15052. # On AIX/PPC, the GNU linker is very broken
  15053. if test "$host_cpu" != ia64; then
  15054. ld_shlibs_GCJ=no
  15055. cat <<EOF 1>&2
  15056. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15057. *** to be unable to reliably create shared libraries on AIX.
  15058. *** Therefore, libtool is disabling shared libraries support. If you
  15059. *** really care for shared libraries, you may want to modify your PATH
  15060. *** so that a non-GNU linker is found, and then restart.
  15061. EOF
  15062. fi
  15063. ;;
  15064. amigaos*)
  15065. archive_cmds_GCJ='$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)'
  15066. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15067. hardcode_minus_L_GCJ=yes
  15068. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15069. # that the semantics of dynamic libraries on AmigaOS, at least up
  15070. # to version 4, is to share data among multiple programs linked
  15071. # with the same dynamic library. Since this doesn't match the
  15072. # behavior of shared libraries on other platforms, we can't use
  15073. # them.
  15074. ld_shlibs_GCJ=no
  15075. ;;
  15076. beos*)
  15077. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15078. allow_undefined_flag_GCJ=unsupported
  15079. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15080. # support --undefined. This deserves some investigation. FIXME
  15081. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15082. else
  15083. ld_shlibs_GCJ=no
  15084. fi
  15085. ;;
  15086. cygwin* | mingw* | pw32*)
  15087. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15088. # as there is no search path for DLLs.
  15089. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15090. allow_undefined_flag_GCJ=unsupported
  15091. always_export_symbols_GCJ=no
  15092. enable_shared_with_static_runtimes_GCJ=yes
  15093. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15094. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15095. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15096. # If the export-symbols file already is a .def file (1st line
  15097. # is EXPORTS), use it as is; otherwise, prepend...
  15098. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15099. cp $export_symbols $output_objdir/$soname.def;
  15100. else
  15101. echo EXPORTS > $output_objdir/$soname.def;
  15102. cat $export_symbols >> $output_objdir/$soname.def;
  15103. fi~
  15104. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15105. else
  15106. ld_shlibs_GCJ=no
  15107. fi
  15108. ;;
  15109. interix[3-9]*)
  15110. hardcode_direct_GCJ=no
  15111. hardcode_shlibpath_var_GCJ=no
  15112. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15113. export_dynamic_flag_spec_GCJ='${wl}-E'
  15114. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15115. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15116. # default) and relocated if they conflict, which is a slow very memory
  15117. # consuming and fragmenting process. To avoid this, we pick a random,
  15118. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15119. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15120. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15121. archive_expsym_cmds_GCJ='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'
  15122. ;;
  15123. gnu* | linux* | k*bsd*-gnu)
  15124. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15125. tmp_addflag=
  15126. case $cc_basename,$host_cpu in
  15127. pgcc*) # Portland Group C compiler
  15128. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15129. tmp_addflag=' $pic_flag'
  15130. ;;
  15131. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15132. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15133. tmp_addflag=' $pic_flag -Mnomain' ;;
  15134. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15135. tmp_addflag=' -i_dynamic' ;;
  15136. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15137. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15138. ifc* | ifort*) # Intel Fortran compiler
  15139. tmp_addflag=' -nofor_main' ;;
  15140. esac
  15141. case `$CC -V 2>&1 | sed 5q` in
  15142. *Sun\ C*) # Sun C 5.9
  15143. whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15144. tmp_sharedflag='-G' ;;
  15145. *Sun\ F*) # Sun Fortran 8.3
  15146. tmp_sharedflag='-G' ;;
  15147. *)
  15148. tmp_sharedflag='-shared' ;;
  15149. esac
  15150. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15151. if test $supports_anon_versioning = yes; then
  15152. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15153. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15154. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15155. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15156. fi
  15157. link_all_deplibs_GCJ=no
  15158. else
  15159. ld_shlibs_GCJ=no
  15160. fi
  15161. ;;
  15162. netbsd* | netbsdelf*-gnu)
  15163. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15164. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15165. wlarc=
  15166. else
  15167. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15168. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15169. fi
  15170. ;;
  15171. solaris*)
  15172. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15173. ld_shlibs_GCJ=no
  15174. cat <<EOF 1>&2
  15175. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15176. *** create shared libraries on Solaris systems. Therefore, libtool
  15177. *** is disabling shared libraries support. We urge you to upgrade GNU
  15178. *** binutils to release 2.9.1 or newer. Another option is to modify
  15179. *** your PATH or compiler configuration so that the native linker is
  15180. *** used, and then restart.
  15181. EOF
  15182. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15183. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15184. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15185. else
  15186. ld_shlibs_GCJ=no
  15187. fi
  15188. ;;
  15189. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15190. case `$LD -v 2>&1` in
  15191. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15192. ld_shlibs_GCJ=no
  15193. cat <<_LT_EOF 1>&2
  15194. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15195. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15196. *** is disabling shared libraries support. We urge you to upgrade GNU
  15197. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15198. *** your PATH or compiler configuration so that the native linker is
  15199. *** used, and then restart.
  15200. _LT_EOF
  15201. ;;
  15202. *)
  15203. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15204. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15205. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15206. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15207. else
  15208. ld_shlibs_GCJ=no
  15209. fi
  15210. ;;
  15211. esac
  15212. ;;
  15213. sunos4*)
  15214. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15215. wlarc=
  15216. hardcode_direct_GCJ=yes
  15217. hardcode_shlibpath_var_GCJ=no
  15218. ;;
  15219. *)
  15220. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15221. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15222. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15223. else
  15224. ld_shlibs_GCJ=no
  15225. fi
  15226. ;;
  15227. esac
  15228. if test "$ld_shlibs_GCJ" = no; then
  15229. runpath_var=
  15230. hardcode_libdir_flag_spec_GCJ=
  15231. export_dynamic_flag_spec_GCJ=
  15232. whole_archive_flag_spec_GCJ=
  15233. fi
  15234. else
  15235. # PORTME fill in a description of your system's linker (not GNU ld)
  15236. case $host_os in
  15237. aix3*)
  15238. allow_undefined_flag_GCJ=unsupported
  15239. always_export_symbols_GCJ=yes
  15240. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  15241. # Note: this linker hardcodes the directories in LIBPATH if there
  15242. # are no directories specified by -L.
  15243. hardcode_minus_L_GCJ=yes
  15244. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15245. # Neither direct hardcoding nor static linking is supported with a
  15246. # broken collect2.
  15247. hardcode_direct_GCJ=unsupported
  15248. fi
  15249. ;;
  15250. aix4* | aix5*)
  15251. if test "$host_cpu" = ia64; then
  15252. # On IA64, the linker does run time linking by default, so we don't
  15253. # have to do anything special.
  15254. aix_use_runtimelinking=no
  15255. exp_sym_flag='-Bexport'
  15256. no_entry_flag=""
  15257. else
  15258. # If we're using GNU nm, then we don't want the "-C" option.
  15259. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15260. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15261. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15262. else
  15263. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15264. fi
  15265. aix_use_runtimelinking=no
  15266. # Test if we are trying to use run time linking or normal
  15267. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15268. # need to do runtime linking.
  15269. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15270. for ld_flag in $LDFLAGS; do
  15271. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15272. aix_use_runtimelinking=yes
  15273. break
  15274. fi
  15275. done
  15276. ;;
  15277. esac
  15278. exp_sym_flag='-bexport'
  15279. no_entry_flag='-bnoentry'
  15280. fi
  15281. # When large executables or shared objects are built, AIX ld can
  15282. # have problems creating the table of contents. If linking a library
  15283. # or program results in "error TOC overflow" add -mminimal-toc to
  15284. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15285. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15286. archive_cmds_GCJ=''
  15287. hardcode_direct_GCJ=yes
  15288. hardcode_libdir_separator_GCJ=':'
  15289. link_all_deplibs_GCJ=yes
  15290. if test "$GCC" = yes; then
  15291. case $host_os in aix4.[012]|aix4.[012].*)
  15292. # We only want to do this on AIX 4.2 and lower, the check
  15293. # below for broken collect2 doesn't work under 4.3+
  15294. collect2name=`${CC} -print-prog-name=collect2`
  15295. if test -f "$collect2name" && \
  15296. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15297. then
  15298. # We have reworked collect2
  15299. :
  15300. else
  15301. # We have old collect2
  15302. hardcode_direct_GCJ=unsupported
  15303. # It fails to find uninstalled libraries when the uninstalled
  15304. # path is not listed in the libpath. Setting hardcode_minus_L
  15305. # to unsupported forces relinking
  15306. hardcode_minus_L_GCJ=yes
  15307. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15308. hardcode_libdir_separator_GCJ=
  15309. fi
  15310. ;;
  15311. esac
  15312. shared_flag='-shared'
  15313. if test "$aix_use_runtimelinking" = yes; then
  15314. shared_flag="$shared_flag "'${wl}-G'
  15315. fi
  15316. else
  15317. # not using gcc
  15318. if test "$host_cpu" = ia64; then
  15319. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15320. # chokes on -Wl,-G. The following line is correct:
  15321. shared_flag='-G'
  15322. else
  15323. if test "$aix_use_runtimelinking" = yes; then
  15324. shared_flag='${wl}-G'
  15325. else
  15326. shared_flag='${wl}-bM:SRE'
  15327. fi
  15328. fi
  15329. fi
  15330. # It seems that -bexpall does not export symbols beginning with
  15331. # underscore (_), so it is better to generate a list of symbols to export.
  15332. always_export_symbols_GCJ=yes
  15333. if test "$aix_use_runtimelinking" = yes; then
  15334. # Warning - without using the other runtime loading flags (-brtl),
  15335. # -berok will link without error, but may produce a broken library.
  15336. allow_undefined_flag_GCJ='-berok'
  15337. # Determine the default libpath from the value encoded in an empty executable.
  15338. cat >conftest.$ac_ext <<_ACEOF
  15339. /* confdefs.h. */
  15340. _ACEOF
  15341. cat confdefs.h >>conftest.$ac_ext
  15342. cat >>conftest.$ac_ext <<_ACEOF
  15343. /* end confdefs.h. */
  15344. int
  15345. main ()
  15346. {
  15347. ;
  15348. return 0;
  15349. }
  15350. _ACEOF
  15351. rm -f conftest.$ac_objext conftest$ac_exeext
  15352. if { (ac_try="$ac_link"
  15353. case "(($ac_try" in
  15354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15355. *) ac_try_echo=$ac_try;;
  15356. esac
  15357. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15358. (eval "$ac_link") 2>conftest.er1
  15359. ac_status=$?
  15360. grep -v '^ *+' conftest.er1 >conftest.err
  15361. rm -f conftest.er1
  15362. cat conftest.err >&5
  15363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15364. (exit $ac_status); } && {
  15365. test -z "$ac_c_werror_flag" ||
  15366. test ! -s conftest.err
  15367. } && test -s conftest$ac_exeext &&
  15368. $as_test_x conftest$ac_exeext; then
  15369. lt_aix_libpath_sed='
  15370. /Import File Strings/,/^$/ {
  15371. /^0/ {
  15372. s/^0 *\(.*\)$/\1/
  15373. p
  15374. }
  15375. }'
  15376. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15377. # Check for a 64-bit object if we didn't find anything.
  15378. if test -z "$aix_libpath"; then
  15379. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15380. fi
  15381. else
  15382. echo "$as_me: failed program was:" >&5
  15383. sed 's/^/| /' conftest.$ac_ext >&5
  15384. fi
  15385. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15386. conftest$ac_exeext conftest.$ac_ext
  15387. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15388. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15389. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15390. else
  15391. if test "$host_cpu" = ia64; then
  15392. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15393. allow_undefined_flag_GCJ="-z nodefs"
  15394. archive_expsym_cmds_GCJ="\$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"
  15395. else
  15396. # Determine the default libpath from the value encoded in an empty executable.
  15397. cat >conftest.$ac_ext <<_ACEOF
  15398. /* confdefs.h. */
  15399. _ACEOF
  15400. cat confdefs.h >>conftest.$ac_ext
  15401. cat >>conftest.$ac_ext <<_ACEOF
  15402. /* end confdefs.h. */
  15403. int
  15404. main ()
  15405. {
  15406. ;
  15407. return 0;
  15408. }
  15409. _ACEOF
  15410. rm -f conftest.$ac_objext conftest$ac_exeext
  15411. if { (ac_try="$ac_link"
  15412. case "(($ac_try" in
  15413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15414. *) ac_try_echo=$ac_try;;
  15415. esac
  15416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15417. (eval "$ac_link") 2>conftest.er1
  15418. ac_status=$?
  15419. grep -v '^ *+' conftest.er1 >conftest.err
  15420. rm -f conftest.er1
  15421. cat conftest.err >&5
  15422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15423. (exit $ac_status); } && {
  15424. test -z "$ac_c_werror_flag" ||
  15425. test ! -s conftest.err
  15426. } && test -s conftest$ac_exeext &&
  15427. $as_test_x conftest$ac_exeext; then
  15428. lt_aix_libpath_sed='
  15429. /Import File Strings/,/^$/ {
  15430. /^0/ {
  15431. s/^0 *\(.*\)$/\1/
  15432. p
  15433. }
  15434. }'
  15435. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15436. # Check for a 64-bit object if we didn't find anything.
  15437. if test -z "$aix_libpath"; then
  15438. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15439. fi
  15440. else
  15441. echo "$as_me: failed program was:" >&5
  15442. sed 's/^/| /' conftest.$ac_ext >&5
  15443. fi
  15444. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15445. conftest$ac_exeext conftest.$ac_ext
  15446. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15447. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15448. # Warning - without using the other run time loading flags,
  15449. # -berok will link without error, but may produce a broken library.
  15450. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15451. allow_undefined_flag_GCJ=' ${wl}-berok'
  15452. # Exported symbols can be pulled into shared objects from archives
  15453. whole_archive_flag_spec_GCJ='$convenience'
  15454. archive_cmds_need_lc_GCJ=yes
  15455. # This is similar to how AIX traditionally builds its shared libraries.
  15456. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  15457. fi
  15458. fi
  15459. ;;
  15460. amigaos*)
  15461. archive_cmds_GCJ='$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)'
  15462. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15463. hardcode_minus_L_GCJ=yes
  15464. # see comment about different semantics on the GNU ld section
  15465. ld_shlibs_GCJ=no
  15466. ;;
  15467. bsdi[45]*)
  15468. export_dynamic_flag_spec_GCJ=-rdynamic
  15469. ;;
  15470. cygwin* | mingw* | pw32*)
  15471. # When not using gcc, we currently assume that we are using
  15472. # Microsoft Visual C++.
  15473. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15474. # no search path for DLLs.
  15475. hardcode_libdir_flag_spec_GCJ=' '
  15476. allow_undefined_flag_GCJ=unsupported
  15477. # Tell ltmain to make .lib files, not .a files.
  15478. libext=lib
  15479. # Tell ltmain to make .dll files, not .so files.
  15480. shrext_cmds=".dll"
  15481. # FIXME: Setting linknames here is a bad hack.
  15482. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15483. # The linker will automatically build a .lib file if we build a DLL.
  15484. old_archive_From_new_cmds_GCJ='true'
  15485. # FIXME: Should let the user specify the lib program.
  15486. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15487. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15488. enable_shared_with_static_runtimes_GCJ=yes
  15489. ;;
  15490. darwin* | rhapsody*)
  15491. case $host_os in
  15492. rhapsody* | darwin1.[012])
  15493. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15494. ;;
  15495. *) # Darwin 1.3 on
  15496. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15497. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15498. else
  15499. case ${MACOSX_DEPLOYMENT_TARGET} in
  15500. 10.[012])
  15501. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15502. ;;
  15503. 10.*)
  15504. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15505. ;;
  15506. esac
  15507. fi
  15508. ;;
  15509. esac
  15510. archive_cmds_need_lc_GCJ=no
  15511. hardcode_direct_GCJ=no
  15512. hardcode_automatic_GCJ=yes
  15513. hardcode_shlibpath_var_GCJ=unsupported
  15514. whole_archive_flag_spec_GCJ=''
  15515. link_all_deplibs_GCJ=yes
  15516. if test "$GCC" = yes ; then
  15517. output_verbose_link_cmd='echo'
  15518. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15519. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15520. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15521. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15522. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15523. else
  15524. case $cc_basename in
  15525. xlc*)
  15526. output_verbose_link_cmd='echo'
  15527. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15528. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15529. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15530. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15531. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15532. ;;
  15533. *)
  15534. ld_shlibs_GCJ=no
  15535. ;;
  15536. esac
  15537. fi
  15538. ;;
  15539. dgux*)
  15540. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15541. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15542. hardcode_shlibpath_var_GCJ=no
  15543. ;;
  15544. freebsd1*)
  15545. ld_shlibs_GCJ=no
  15546. ;;
  15547. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15548. # support. Future versions do this automatically, but an explicit c++rt0.o
  15549. # does not break anything, and helps significantly (at the cost of a little
  15550. # extra space).
  15551. freebsd2.2*)
  15552. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15553. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15554. hardcode_direct_GCJ=yes
  15555. hardcode_shlibpath_var_GCJ=no
  15556. ;;
  15557. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15558. freebsd2*)
  15559. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15560. hardcode_direct_GCJ=yes
  15561. hardcode_minus_L_GCJ=yes
  15562. hardcode_shlibpath_var_GCJ=no
  15563. ;;
  15564. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15565. freebsd* | dragonfly*)
  15566. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15567. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15568. hardcode_direct_GCJ=yes
  15569. hardcode_shlibpath_var_GCJ=no
  15570. ;;
  15571. hpux9*)
  15572. if test "$GCC" = yes; then
  15573. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  15574. else
  15575. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  15576. fi
  15577. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15578. hardcode_libdir_separator_GCJ=:
  15579. hardcode_direct_GCJ=yes
  15580. # hardcode_minus_L: Not really in the search PATH,
  15581. # but as the default location of the library.
  15582. hardcode_minus_L_GCJ=yes
  15583. export_dynamic_flag_spec_GCJ='${wl}-E'
  15584. ;;
  15585. hpux10*)
  15586. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15587. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15588. else
  15589. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15590. fi
  15591. if test "$with_gnu_ld" = no; then
  15592. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15593. hardcode_libdir_separator_GCJ=:
  15594. hardcode_direct_GCJ=yes
  15595. export_dynamic_flag_spec_GCJ='${wl}-E'
  15596. # hardcode_minus_L: Not really in the search PATH,
  15597. # but as the default location of the library.
  15598. hardcode_minus_L_GCJ=yes
  15599. fi
  15600. ;;
  15601. hpux11*)
  15602. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15603. case $host_cpu in
  15604. hppa*64*)
  15605. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15606. ;;
  15607. ia64*)
  15608. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15609. ;;
  15610. *)
  15611. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15612. ;;
  15613. esac
  15614. else
  15615. case $host_cpu in
  15616. hppa*64*)
  15617. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15618. ;;
  15619. ia64*)
  15620. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15621. ;;
  15622. *)
  15623. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15624. ;;
  15625. esac
  15626. fi
  15627. if test "$with_gnu_ld" = no; then
  15628. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15629. hardcode_libdir_separator_GCJ=:
  15630. case $host_cpu in
  15631. hppa*64*|ia64*)
  15632. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15633. hardcode_direct_GCJ=no
  15634. hardcode_shlibpath_var_GCJ=no
  15635. ;;
  15636. *)
  15637. hardcode_direct_GCJ=yes
  15638. export_dynamic_flag_spec_GCJ='${wl}-E'
  15639. # hardcode_minus_L: Not really in the search PATH,
  15640. # but as the default location of the library.
  15641. hardcode_minus_L_GCJ=yes
  15642. ;;
  15643. esac
  15644. fi
  15645. ;;
  15646. irix5* | irix6* | nonstopux*)
  15647. if test "$GCC" = yes; then
  15648. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15649. else
  15650. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15651. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15652. fi
  15653. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15654. hardcode_libdir_separator_GCJ=:
  15655. link_all_deplibs_GCJ=yes
  15656. ;;
  15657. netbsd* | netbsdelf*-gnu)
  15658. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15659. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15660. else
  15661. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15662. fi
  15663. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15664. hardcode_direct_GCJ=yes
  15665. hardcode_shlibpath_var_GCJ=no
  15666. ;;
  15667. newsos6)
  15668. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15669. hardcode_direct_GCJ=yes
  15670. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15671. hardcode_libdir_separator_GCJ=:
  15672. hardcode_shlibpath_var_GCJ=no
  15673. ;;
  15674. openbsd*)
  15675. if test -f /usr/libexec/ld.so; then
  15676. hardcode_direct_GCJ=yes
  15677. hardcode_shlibpath_var_GCJ=no
  15678. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15679. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15680. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15681. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15682. export_dynamic_flag_spec_GCJ='${wl}-E'
  15683. else
  15684. case $host_os in
  15685. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15686. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15687. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15688. ;;
  15689. *)
  15690. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15691. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15692. ;;
  15693. esac
  15694. fi
  15695. else
  15696. ld_shlibs_GCJ=no
  15697. fi
  15698. ;;
  15699. os2*)
  15700. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15701. hardcode_minus_L_GCJ=yes
  15702. allow_undefined_flag_GCJ=unsupported
  15703. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  15704. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15705. ;;
  15706. osf3*)
  15707. if test "$GCC" = yes; then
  15708. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15709. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15710. else
  15711. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15712. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15713. fi
  15714. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15715. hardcode_libdir_separator_GCJ=:
  15716. ;;
  15717. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15718. if test "$GCC" = yes; then
  15719. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15720. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15721. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15722. else
  15723. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15724. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15725. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15726. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  15727. # Both c and cxx compiler support -rpath directly
  15728. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15729. fi
  15730. hardcode_libdir_separator_GCJ=:
  15731. ;;
  15732. solaris*)
  15733. no_undefined_flag_GCJ=' -z text'
  15734. if test "$GCC" = yes; then
  15735. wlarc='${wl}'
  15736. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15737. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15738. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15739. else
  15740. wlarc=''
  15741. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15742. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15743. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15744. fi
  15745. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15746. hardcode_shlibpath_var_GCJ=no
  15747. case $host_os in
  15748. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15749. *)
  15750. # The compiler driver will combine and reorder linker options,
  15751. # but understands `-z linker_flag'. GCC discards it without `$wl',
  15752. # but is careful enough not to reorder.
  15753. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15754. if test "$GCC" = yes; then
  15755. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15756. else
  15757. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  15758. fi
  15759. ;;
  15760. esac
  15761. link_all_deplibs_GCJ=yes
  15762. ;;
  15763. sunos4*)
  15764. if test "x$host_vendor" = xsequent; then
  15765. # Use $CC to link under sequent, because it throws in some extra .o
  15766. # files that make .init and .fini sections work.
  15767. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15768. else
  15769. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15770. fi
  15771. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15772. hardcode_direct_GCJ=yes
  15773. hardcode_minus_L_GCJ=yes
  15774. hardcode_shlibpath_var_GCJ=no
  15775. ;;
  15776. sysv4)
  15777. case $host_vendor in
  15778. sni)
  15779. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15780. hardcode_direct_GCJ=yes # is this really true???
  15781. ;;
  15782. siemens)
  15783. ## LD is ld it makes a PLAMLIB
  15784. ## CC just makes a GrossModule.
  15785. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15786. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15787. hardcode_direct_GCJ=no
  15788. ;;
  15789. motorola)
  15790. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15791. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15792. ;;
  15793. esac
  15794. runpath_var='LD_RUN_PATH'
  15795. hardcode_shlibpath_var_GCJ=no
  15796. ;;
  15797. sysv4.3*)
  15798. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15799. hardcode_shlibpath_var_GCJ=no
  15800. export_dynamic_flag_spec_GCJ='-Bexport'
  15801. ;;
  15802. sysv4*MP*)
  15803. if test -d /usr/nec; then
  15804. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15805. hardcode_shlibpath_var_GCJ=no
  15806. runpath_var=LD_RUN_PATH
  15807. hardcode_runpath_var=yes
  15808. ld_shlibs_GCJ=yes
  15809. fi
  15810. ;;
  15811. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  15812. no_undefined_flag_GCJ='${wl}-z,text'
  15813. archive_cmds_need_lc_GCJ=no
  15814. hardcode_shlibpath_var_GCJ=no
  15815. runpath_var='LD_RUN_PATH'
  15816. if test "$GCC" = yes; then
  15817. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15818. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15819. else
  15820. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15821. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15822. fi
  15823. ;;
  15824. sysv5* | sco3.2v5* | sco5v6*)
  15825. # Note: We can NOT use -z defs as we might desire, because we do not
  15826. # link with -lc, and that would cause any symbols used from libc to
  15827. # always be unresolved, which means just about no library would
  15828. # ever link correctly. If we're not using GNU ld we use -z text
  15829. # though, which does catch some bad symbols but isn't as heavy-handed
  15830. # as -z defs.
  15831. no_undefined_flag_GCJ='${wl}-z,text'
  15832. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15833. archive_cmds_need_lc_GCJ=no
  15834. hardcode_shlibpath_var_GCJ=no
  15835. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15836. hardcode_libdir_separator_GCJ=':'
  15837. link_all_deplibs_GCJ=yes
  15838. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15839. runpath_var='LD_RUN_PATH'
  15840. if test "$GCC" = yes; then
  15841. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15842. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15843. else
  15844. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15845. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15846. fi
  15847. ;;
  15848. uts4*)
  15849. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15850. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15851. hardcode_shlibpath_var_GCJ=no
  15852. ;;
  15853. *)
  15854. ld_shlibs_GCJ=no
  15855. ;;
  15856. esac
  15857. fi
  15858. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15859. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  15860. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15861. #
  15862. # Do we need to explicitly link libc?
  15863. #
  15864. case "x$archive_cmds_need_lc_GCJ" in
  15865. x|xyes)
  15866. # Assume -lc should be added
  15867. archive_cmds_need_lc_GCJ=yes
  15868. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15869. case $archive_cmds_GCJ in
  15870. *'~'*)
  15871. # FIXME: we may have to deal with multi-command sequences.
  15872. ;;
  15873. '$CC '*)
  15874. # Test whether the compiler implicitly links with -lc since on some
  15875. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15876. # to ld, don't add -lc before -lgcc.
  15877. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15878. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  15879. $rm conftest*
  15880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15882. (eval $ac_compile) 2>&5
  15883. ac_status=$?
  15884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15885. (exit $ac_status); } 2>conftest.err; then
  15886. soname=conftest
  15887. lib=conftest
  15888. libobjs=conftest.$ac_objext
  15889. deplibs=
  15890. wl=$lt_prog_compiler_wl_GCJ
  15891. pic_flag=$lt_prog_compiler_pic_GCJ
  15892. compiler_flags=-v
  15893. linker_flags=-v
  15894. verstring=
  15895. output_objdir=.
  15896. libname=conftest
  15897. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15898. allow_undefined_flag_GCJ=
  15899. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15900. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15901. ac_status=$?
  15902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15903. (exit $ac_status); }
  15904. then
  15905. archive_cmds_need_lc_GCJ=no
  15906. else
  15907. archive_cmds_need_lc_GCJ=yes
  15908. fi
  15909. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15910. else
  15911. cat conftest.err 1>&5
  15912. fi
  15913. $rm conftest*
  15914. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15915. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  15916. ;;
  15917. esac
  15918. fi
  15919. ;;
  15920. esac
  15921. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15922. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  15923. library_names_spec=
  15924. libname_spec='lib$name'
  15925. soname_spec=
  15926. shrext_cmds=".so"
  15927. postinstall_cmds=
  15928. postuninstall_cmds=
  15929. finish_cmds=
  15930. finish_eval=
  15931. shlibpath_var=
  15932. shlibpath_overrides_runpath=unknown
  15933. version_type=none
  15934. dynamic_linker="$host_os ld.so"
  15935. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15936. need_lib_prefix=unknown
  15937. hardcode_into_libs=no
  15938. # when you set need_version to no, make sure it does not cause -set_version
  15939. # flags to be left without arguments
  15940. need_version=unknown
  15941. case $host_os in
  15942. aix3*)
  15943. version_type=linux
  15944. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15945. shlibpath_var=LIBPATH
  15946. # AIX 3 has no versioning support, so we append a major version to the name.
  15947. soname_spec='${libname}${release}${shared_ext}$major'
  15948. ;;
  15949. aix4* | aix5*)
  15950. version_type=linux
  15951. need_lib_prefix=no
  15952. need_version=no
  15953. hardcode_into_libs=yes
  15954. if test "$host_cpu" = ia64; then
  15955. # AIX 5 supports IA64
  15956. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15957. shlibpath_var=LD_LIBRARY_PATH
  15958. else
  15959. # With GCC up to 2.95.x, collect2 would create an import file
  15960. # for dependence libraries. The import file would start with
  15961. # the line `#! .'. This would cause the generated library to
  15962. # depend on `.', always an invalid library. This was fixed in
  15963. # development snapshots of GCC prior to 3.0.
  15964. case $host_os in
  15965. aix4 | aix4.[01] | aix4.[01].*)
  15966. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15967. echo ' yes '
  15968. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15969. :
  15970. else
  15971. can_build_shared=no
  15972. fi
  15973. ;;
  15974. esac
  15975. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15976. # soname into executable. Probably we can add versioning support to
  15977. # collect2, so additional links can be useful in future.
  15978. if test "$aix_use_runtimelinking" = yes; then
  15979. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15980. # instead of lib<name>.a to let people know that these are not
  15981. # typical AIX shared libraries.
  15982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15983. else
  15984. # We preserve .a as extension for shared libraries through AIX4.2
  15985. # and later when we are not doing run time linking.
  15986. library_names_spec='${libname}${release}.a $libname.a'
  15987. soname_spec='${libname}${release}${shared_ext}$major'
  15988. fi
  15989. shlibpath_var=LIBPATH
  15990. fi
  15991. ;;
  15992. amigaos*)
  15993. library_names_spec='$libname.ixlibrary $libname.a'
  15994. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15995. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  15996. ;;
  15997. beos*)
  15998. library_names_spec='${libname}${shared_ext}'
  15999. dynamic_linker="$host_os ld.so"
  16000. shlibpath_var=LIBRARY_PATH
  16001. ;;
  16002. bsdi[45]*)
  16003. version_type=linux
  16004. need_version=no
  16005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16006. soname_spec='${libname}${release}${shared_ext}$major'
  16007. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16008. shlibpath_var=LD_LIBRARY_PATH
  16009. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16010. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16011. # the default ld.so.conf also contains /usr/contrib/lib and
  16012. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16013. # libtool to hard-code these into programs
  16014. ;;
  16015. cygwin* | mingw* | pw32*)
  16016. version_type=windows
  16017. shrext_cmds=".dll"
  16018. need_version=no
  16019. need_lib_prefix=no
  16020. case $GCC,$host_os in
  16021. yes,cygwin* | yes,mingw* | yes,pw32*)
  16022. library_names_spec='$libname.dll.a'
  16023. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16024. postinstall_cmds='base_file=`basename \${file}`~
  16025. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16026. dldir=$destdir/`dirname \$dlpath`~
  16027. test -d \$dldir || mkdir -p \$dldir~
  16028. $install_prog $dir/$dlname \$dldir/$dlname~
  16029. chmod a+x \$dldir/$dlname'
  16030. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16031. dlpath=$dir/\$dldll~
  16032. $rm \$dlpath'
  16033. shlibpath_overrides_runpath=yes
  16034. case $host_os in
  16035. cygwin*)
  16036. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16037. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16038. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16039. ;;
  16040. mingw*)
  16041. # MinGW DLLs use traditional 'lib' prefix
  16042. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16043. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16044. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16045. # It is most probably a Windows format PATH printed by
  16046. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16047. # path with ; separators, and with drive letters. We can handle the
  16048. # drive letters (cygwin fileutils understands them), so leave them,
  16049. # especially as we might pass files found there to a mingw objdump,
  16050. # which wouldn't understand a cygwinified path. Ahh.
  16051. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16052. else
  16053. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16054. fi
  16055. ;;
  16056. pw32*)
  16057. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16058. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16059. ;;
  16060. esac
  16061. ;;
  16062. *)
  16063. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16064. ;;
  16065. esac
  16066. dynamic_linker='Win32 ld.exe'
  16067. # FIXME: first we should search . and the directory the executable is in
  16068. shlibpath_var=PATH
  16069. ;;
  16070. darwin* | rhapsody*)
  16071. dynamic_linker="$host_os dyld"
  16072. version_type=darwin
  16073. need_lib_prefix=no
  16074. need_version=no
  16075. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16076. soname_spec='${libname}${release}${major}$shared_ext'
  16077. shlibpath_overrides_runpath=yes
  16078. shlibpath_var=DYLD_LIBRARY_PATH
  16079. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16080. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16081. ;;
  16082. dgux*)
  16083. version_type=linux
  16084. need_lib_prefix=no
  16085. need_version=no
  16086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16087. soname_spec='${libname}${release}${shared_ext}$major'
  16088. shlibpath_var=LD_LIBRARY_PATH
  16089. ;;
  16090. freebsd1*)
  16091. dynamic_linker=no
  16092. ;;
  16093. freebsd* | dragonfly*)
  16094. # DragonFly does not have aout. When/if they implement a new
  16095. # versioning mechanism, adjust this.
  16096. if test -x /usr/bin/objformat; then
  16097. objformat=`/usr/bin/objformat`
  16098. else
  16099. case $host_os in
  16100. freebsd[123]*) objformat=aout ;;
  16101. *) objformat=elf ;;
  16102. esac
  16103. fi
  16104. version_type=freebsd-$objformat
  16105. case $version_type in
  16106. freebsd-elf*)
  16107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16108. need_version=no
  16109. need_lib_prefix=no
  16110. ;;
  16111. freebsd-*)
  16112. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16113. need_version=yes
  16114. ;;
  16115. esac
  16116. shlibpath_var=LD_LIBRARY_PATH
  16117. case $host_os in
  16118. freebsd2*)
  16119. shlibpath_overrides_runpath=yes
  16120. ;;
  16121. freebsd3.[01]* | freebsdelf3.[01]*)
  16122. shlibpath_overrides_runpath=yes
  16123. hardcode_into_libs=yes
  16124. ;;
  16125. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16126. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16127. shlibpath_overrides_runpath=no
  16128. hardcode_into_libs=yes
  16129. ;;
  16130. *) # from 4.6 on, and DragonFly
  16131. shlibpath_overrides_runpath=yes
  16132. hardcode_into_libs=yes
  16133. ;;
  16134. esac
  16135. ;;
  16136. gnu*)
  16137. version_type=linux
  16138. need_lib_prefix=no
  16139. need_version=no
  16140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16141. soname_spec='${libname}${release}${shared_ext}$major'
  16142. shlibpath_var=LD_LIBRARY_PATH
  16143. hardcode_into_libs=yes
  16144. ;;
  16145. hpux9* | hpux10* | hpux11*)
  16146. # Give a soname corresponding to the major version so that dld.sl refuses to
  16147. # link against other versions.
  16148. version_type=sunos
  16149. need_lib_prefix=no
  16150. need_version=no
  16151. case $host_cpu in
  16152. ia64*)
  16153. shrext_cmds='.so'
  16154. hardcode_into_libs=yes
  16155. dynamic_linker="$host_os dld.so"
  16156. shlibpath_var=LD_LIBRARY_PATH
  16157. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16159. soname_spec='${libname}${release}${shared_ext}$major'
  16160. if test "X$HPUX_IA64_MODE" = X32; then
  16161. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16162. else
  16163. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16164. fi
  16165. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16166. ;;
  16167. hppa*64*)
  16168. shrext_cmds='.sl'
  16169. hardcode_into_libs=yes
  16170. dynamic_linker="$host_os dld.sl"
  16171. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16172. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16173. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16174. soname_spec='${libname}${release}${shared_ext}$major'
  16175. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16176. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16177. ;;
  16178. *)
  16179. shrext_cmds='.sl'
  16180. dynamic_linker="$host_os dld.sl"
  16181. shlibpath_var=SHLIB_PATH
  16182. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16184. soname_spec='${libname}${release}${shared_ext}$major'
  16185. ;;
  16186. esac
  16187. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16188. postinstall_cmds='chmod 555 $lib'
  16189. ;;
  16190. interix[3-9]*)
  16191. version_type=linux
  16192. need_lib_prefix=no
  16193. need_version=no
  16194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16195. soname_spec='${libname}${release}${shared_ext}$major'
  16196. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16197. shlibpath_var=LD_LIBRARY_PATH
  16198. shlibpath_overrides_runpath=no
  16199. hardcode_into_libs=yes
  16200. ;;
  16201. irix5* | irix6* | nonstopux*)
  16202. case $host_os in
  16203. nonstopux*) version_type=nonstopux ;;
  16204. *)
  16205. if test "$lt_cv_prog_gnu_ld" = yes; then
  16206. version_type=linux
  16207. else
  16208. version_type=irix
  16209. fi ;;
  16210. esac
  16211. need_lib_prefix=no
  16212. need_version=no
  16213. soname_spec='${libname}${release}${shared_ext}$major'
  16214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16215. case $host_os in
  16216. irix5* | nonstopux*)
  16217. libsuff= shlibsuff=
  16218. ;;
  16219. *)
  16220. case $LD in # libtool.m4 will add one of these switches to LD
  16221. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16222. libsuff= shlibsuff= libmagic=32-bit;;
  16223. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16224. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16225. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16226. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16227. *) libsuff= shlibsuff= libmagic=never-match;;
  16228. esac
  16229. ;;
  16230. esac
  16231. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16232. shlibpath_overrides_runpath=no
  16233. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16234. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16235. hardcode_into_libs=yes
  16236. ;;
  16237. # No shared lib support for Linux oldld, aout, or coff.
  16238. linux*oldld* | linux*aout* | linux*coff*)
  16239. dynamic_linker=no
  16240. ;;
  16241. # This must be Linux ELF.
  16242. linux* | k*bsd*-gnu)
  16243. version_type=linux
  16244. need_lib_prefix=no
  16245. need_version=no
  16246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16247. soname_spec='${libname}${release}${shared_ext}$major'
  16248. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16249. shlibpath_var=LD_LIBRARY_PATH
  16250. shlibpath_overrides_runpath=no
  16251. # This implies no fast_install, which is unacceptable.
  16252. # Some rework will be needed to allow for fast_install
  16253. # before this can be enabled.
  16254. hardcode_into_libs=yes
  16255. # Append ld.so.conf contents to the search path
  16256. if test -f /etc/ld.so.conf; then
  16257. 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;/^$/d' | tr '\n' ' '`
  16258. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16259. fi
  16260. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16261. # powerpc, because MkLinux only supported shared libraries with the
  16262. # GNU dynamic linker. Since this was broken with cross compilers,
  16263. # most powerpc-linux boxes support dynamic linking these days and
  16264. # people can always --disable-shared, the test was removed, and we
  16265. # assume the GNU/Linux dynamic linker is in use.
  16266. dynamic_linker='GNU/Linux ld.so'
  16267. ;;
  16268. netbsdelf*-gnu)
  16269. version_type=linux
  16270. need_lib_prefix=no
  16271. need_version=no
  16272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16273. soname_spec='${libname}${release}${shared_ext}$major'
  16274. shlibpath_var=LD_LIBRARY_PATH
  16275. shlibpath_overrides_runpath=no
  16276. hardcode_into_libs=yes
  16277. dynamic_linker='NetBSD ld.elf_so'
  16278. ;;
  16279. netbsd*)
  16280. version_type=sunos
  16281. need_lib_prefix=no
  16282. need_version=no
  16283. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16285. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16286. dynamic_linker='NetBSD (a.out) ld.so'
  16287. else
  16288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16289. soname_spec='${libname}${release}${shared_ext}$major'
  16290. dynamic_linker='NetBSD ld.elf_so'
  16291. fi
  16292. shlibpath_var=LD_LIBRARY_PATH
  16293. shlibpath_overrides_runpath=yes
  16294. hardcode_into_libs=yes
  16295. ;;
  16296. newsos6)
  16297. version_type=linux
  16298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16299. shlibpath_var=LD_LIBRARY_PATH
  16300. shlibpath_overrides_runpath=yes
  16301. ;;
  16302. nto-qnx*)
  16303. version_type=linux
  16304. need_lib_prefix=no
  16305. need_version=no
  16306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16307. soname_spec='${libname}${release}${shared_ext}$major'
  16308. shlibpath_var=LD_LIBRARY_PATH
  16309. shlibpath_overrides_runpath=yes
  16310. ;;
  16311. openbsd*)
  16312. version_type=sunos
  16313. sys_lib_dlsearch_path_spec="/usr/lib"
  16314. need_lib_prefix=no
  16315. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16316. case $host_os in
  16317. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16318. *) need_version=no ;;
  16319. esac
  16320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16321. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16322. shlibpath_var=LD_LIBRARY_PATH
  16323. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16324. case $host_os in
  16325. openbsd2.[89] | openbsd2.[89].*)
  16326. shlibpath_overrides_runpath=no
  16327. ;;
  16328. *)
  16329. shlibpath_overrides_runpath=yes
  16330. ;;
  16331. esac
  16332. else
  16333. shlibpath_overrides_runpath=yes
  16334. fi
  16335. ;;
  16336. os2*)
  16337. libname_spec='$name'
  16338. shrext_cmds=".dll"
  16339. need_lib_prefix=no
  16340. library_names_spec='$libname${shared_ext} $libname.a'
  16341. dynamic_linker='OS/2 ld.exe'
  16342. shlibpath_var=LIBPATH
  16343. ;;
  16344. osf3* | osf4* | osf5*)
  16345. version_type=osf
  16346. need_lib_prefix=no
  16347. need_version=no
  16348. soname_spec='${libname}${release}${shared_ext}$major'
  16349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16350. shlibpath_var=LD_LIBRARY_PATH
  16351. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16352. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16353. ;;
  16354. rdos*)
  16355. dynamic_linker=no
  16356. ;;
  16357. solaris*)
  16358. version_type=linux
  16359. need_lib_prefix=no
  16360. need_version=no
  16361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16362. soname_spec='${libname}${release}${shared_ext}$major'
  16363. shlibpath_var=LD_LIBRARY_PATH
  16364. shlibpath_overrides_runpath=yes
  16365. hardcode_into_libs=yes
  16366. # ldd complains unless libraries are executable
  16367. postinstall_cmds='chmod +x $lib'
  16368. ;;
  16369. sunos4*)
  16370. version_type=sunos
  16371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16372. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16373. shlibpath_var=LD_LIBRARY_PATH
  16374. shlibpath_overrides_runpath=yes
  16375. if test "$with_gnu_ld" = yes; then
  16376. need_lib_prefix=no
  16377. fi
  16378. need_version=yes
  16379. ;;
  16380. sysv4 | sysv4.3*)
  16381. version_type=linux
  16382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16383. soname_spec='${libname}${release}${shared_ext}$major'
  16384. shlibpath_var=LD_LIBRARY_PATH
  16385. case $host_vendor in
  16386. sni)
  16387. shlibpath_overrides_runpath=no
  16388. need_lib_prefix=no
  16389. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16390. runpath_var=LD_RUN_PATH
  16391. ;;
  16392. siemens)
  16393. need_lib_prefix=no
  16394. ;;
  16395. motorola)
  16396. need_lib_prefix=no
  16397. need_version=no
  16398. shlibpath_overrides_runpath=no
  16399. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16400. ;;
  16401. esac
  16402. ;;
  16403. sysv4*MP*)
  16404. if test -d /usr/nec ;then
  16405. version_type=linux
  16406. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16407. soname_spec='$libname${shared_ext}.$major'
  16408. shlibpath_var=LD_LIBRARY_PATH
  16409. fi
  16410. ;;
  16411. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16412. version_type=freebsd-elf
  16413. need_lib_prefix=no
  16414. need_version=no
  16415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16416. soname_spec='${libname}${release}${shared_ext}$major'
  16417. shlibpath_var=LD_LIBRARY_PATH
  16418. hardcode_into_libs=yes
  16419. if test "$with_gnu_ld" = yes; then
  16420. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16421. shlibpath_overrides_runpath=no
  16422. else
  16423. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16424. shlibpath_overrides_runpath=yes
  16425. case $host_os in
  16426. sco3.2v5*)
  16427. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16428. ;;
  16429. esac
  16430. fi
  16431. sys_lib_dlsearch_path_spec='/usr/lib'
  16432. ;;
  16433. uts4*)
  16434. version_type=linux
  16435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16436. soname_spec='${libname}${release}${shared_ext}$major'
  16437. shlibpath_var=LD_LIBRARY_PATH
  16438. ;;
  16439. *)
  16440. dynamic_linker=no
  16441. ;;
  16442. esac
  16443. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16444. echo "${ECHO_T}$dynamic_linker" >&6; }
  16445. test "$dynamic_linker" = no && can_build_shared=no
  16446. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16447. if test "$GCC" = yes; then
  16448. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16449. fi
  16450. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16451. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16452. hardcode_action_GCJ=
  16453. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16454. test -n "$runpath_var_GCJ" || \
  16455. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16456. # We can hardcode non-existant directories.
  16457. if test "$hardcode_direct_GCJ" != no &&
  16458. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16459. # have to relink, otherwise we might link with an installed library
  16460. # when we should be linking with a yet-to-be-installed one
  16461. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16462. test "$hardcode_minus_L_GCJ" != no; then
  16463. # Linking always hardcodes the temporary library directory.
  16464. hardcode_action_GCJ=relink
  16465. else
  16466. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16467. hardcode_action_GCJ=immediate
  16468. fi
  16469. else
  16470. # We cannot hardcode anything, or else we can only hardcode existing
  16471. # directories.
  16472. hardcode_action_GCJ=unsupported
  16473. fi
  16474. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16475. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16476. if test "$hardcode_action_GCJ" = relink; then
  16477. # Fast installation is not supported
  16478. enable_fast_install=no
  16479. elif test "$shlibpath_overrides_runpath" = yes ||
  16480. test "$enable_shared" = no; then
  16481. # Fast installation is not necessary
  16482. enable_fast_install=needless
  16483. fi
  16484. # The else clause should only fire when bootstrapping the
  16485. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16486. # with your package, and you will get complaints that there are
  16487. # no rules to generate ltmain.sh.
  16488. if test -f "$ltmain"; then
  16489. # See if we are running on zsh, and set the options which allow our commands through
  16490. # without removal of \ escapes.
  16491. if test -n "${ZSH_VERSION+set}" ; then
  16492. setopt NO_GLOB_SUBST
  16493. fi
  16494. # Now quote all the things that may contain metacharacters while being
  16495. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16496. # variables and quote the copies for generation of the libtool script.
  16497. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16498. SED SHELL STRIP \
  16499. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16500. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16501. deplibs_check_method reload_flag reload_cmds need_locks \
  16502. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16503. lt_cv_sys_global_symbol_to_c_name_address \
  16504. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16505. old_postinstall_cmds old_postuninstall_cmds \
  16506. compiler_GCJ \
  16507. CC_GCJ \
  16508. LD_GCJ \
  16509. lt_prog_compiler_wl_GCJ \
  16510. lt_prog_compiler_pic_GCJ \
  16511. lt_prog_compiler_static_GCJ \
  16512. lt_prog_compiler_no_builtin_flag_GCJ \
  16513. export_dynamic_flag_spec_GCJ \
  16514. thread_safe_flag_spec_GCJ \
  16515. whole_archive_flag_spec_GCJ \
  16516. enable_shared_with_static_runtimes_GCJ \
  16517. old_archive_cmds_GCJ \
  16518. old_archive_from_new_cmds_GCJ \
  16519. predep_objects_GCJ \
  16520. postdep_objects_GCJ \
  16521. predeps_GCJ \
  16522. postdeps_GCJ \
  16523. compiler_lib_search_path_GCJ \
  16524. archive_cmds_GCJ \
  16525. archive_expsym_cmds_GCJ \
  16526. postinstall_cmds_GCJ \
  16527. postuninstall_cmds_GCJ \
  16528. old_archive_from_expsyms_cmds_GCJ \
  16529. allow_undefined_flag_GCJ \
  16530. no_undefined_flag_GCJ \
  16531. export_symbols_cmds_GCJ \
  16532. hardcode_libdir_flag_spec_GCJ \
  16533. hardcode_libdir_flag_spec_ld_GCJ \
  16534. hardcode_libdir_separator_GCJ \
  16535. hardcode_automatic_GCJ \
  16536. module_cmds_GCJ \
  16537. module_expsym_cmds_GCJ \
  16538. lt_cv_prog_compiler_c_o_GCJ \
  16539. fix_srcfile_path_GCJ \
  16540. exclude_expsyms_GCJ \
  16541. include_expsyms_GCJ; do
  16542. case $var in
  16543. old_archive_cmds_GCJ | \
  16544. old_archive_from_new_cmds_GCJ | \
  16545. archive_cmds_GCJ | \
  16546. archive_expsym_cmds_GCJ | \
  16547. module_cmds_GCJ | \
  16548. module_expsym_cmds_GCJ | \
  16549. old_archive_from_expsyms_cmds_GCJ | \
  16550. export_symbols_cmds_GCJ | \
  16551. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16552. postinstall_cmds | postuninstall_cmds | \
  16553. old_postinstall_cmds | old_postuninstall_cmds | \
  16554. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16555. # Double-quote double-evaled strings.
  16556. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16557. ;;
  16558. *)
  16559. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16560. ;;
  16561. esac
  16562. done
  16563. case $lt_echo in
  16564. *'\$0 --fallback-echo"')
  16565. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16566. ;;
  16567. esac
  16568. cfgfile="$ofile"
  16569. cat <<__EOF__ >> "$cfgfile"
  16570. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16571. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16572. # Shell to use when invoking shell scripts.
  16573. SHELL=$lt_SHELL
  16574. # Whether or not to build shared libraries.
  16575. build_libtool_libs=$enable_shared
  16576. # Whether or not to build static libraries.
  16577. build_old_libs=$enable_static
  16578. # Whether or not to add -lc for building shared libraries.
  16579. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16580. # Whether or not to disallow shared libs when runtime libs are static
  16581. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16582. # Whether or not to optimize for fast installation.
  16583. fast_install=$enable_fast_install
  16584. # The host system.
  16585. host_alias=$host_alias
  16586. host=$host
  16587. host_os=$host_os
  16588. # The build system.
  16589. build_alias=$build_alias
  16590. build=$build
  16591. build_os=$build_os
  16592. # An echo program that does not interpret backslashes.
  16593. echo=$lt_echo
  16594. # The archiver.
  16595. AR=$lt_AR
  16596. AR_FLAGS=$lt_AR_FLAGS
  16597. # A C compiler.
  16598. LTCC=$lt_LTCC
  16599. # LTCC compiler flags.
  16600. LTCFLAGS=$lt_LTCFLAGS
  16601. # A language-specific compiler.
  16602. CC=$lt_compiler_GCJ
  16603. # Is the compiler the GNU C compiler?
  16604. with_gcc=$GCC_GCJ
  16605. # An ERE matcher.
  16606. EGREP=$lt_EGREP
  16607. # The linker used to build libraries.
  16608. LD=$lt_LD_GCJ
  16609. # Whether we need hard or soft links.
  16610. LN_S=$lt_LN_S
  16611. # A BSD-compatible nm program.
  16612. NM=$lt_NM
  16613. # A symbol stripping program
  16614. STRIP=$lt_STRIP
  16615. # Used to examine libraries when file_magic_cmd begins "file"
  16616. MAGIC_CMD=$MAGIC_CMD
  16617. # Used on cygwin: DLL creation program.
  16618. DLLTOOL="$DLLTOOL"
  16619. # Used on cygwin: object dumper.
  16620. OBJDUMP="$OBJDUMP"
  16621. # Used on cygwin: assembler.
  16622. AS="$AS"
  16623. # The name of the directory that contains temporary libtool files.
  16624. objdir=$objdir
  16625. # How to create reloadable object files.
  16626. reload_flag=$lt_reload_flag
  16627. reload_cmds=$lt_reload_cmds
  16628. # How to pass a linker flag through the compiler.
  16629. wl=$lt_lt_prog_compiler_wl_GCJ
  16630. # Object file suffix (normally "o").
  16631. objext="$ac_objext"
  16632. # Old archive suffix (normally "a").
  16633. libext="$libext"
  16634. # Shared library suffix (normally ".so").
  16635. shrext_cmds='$shrext_cmds'
  16636. # Executable file suffix (normally "").
  16637. exeext="$exeext"
  16638. # Additional compiler flags for building library objects.
  16639. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16640. pic_mode=$pic_mode
  16641. # What is the maximum length of a command?
  16642. max_cmd_len=$lt_cv_sys_max_cmd_len
  16643. # Does compiler simultaneously support -c and -o options?
  16644. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16645. # Must we lock files when doing compilation?
  16646. need_locks=$lt_need_locks
  16647. # Do we need the lib prefix for modules?
  16648. need_lib_prefix=$need_lib_prefix
  16649. # Do we need a version for libraries?
  16650. need_version=$need_version
  16651. # Whether dlopen is supported.
  16652. dlopen_support=$enable_dlopen
  16653. # Whether dlopen of programs is supported.
  16654. dlopen_self=$enable_dlopen_self
  16655. # Whether dlopen of statically linked programs is supported.
  16656. dlopen_self_static=$enable_dlopen_self_static
  16657. # Compiler flag to prevent dynamic linking.
  16658. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16659. # Compiler flag to turn off builtin functions.
  16660. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16661. # Compiler flag to allow reflexive dlopens.
  16662. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16663. # Compiler flag to generate shared objects directly from archives.
  16664. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16665. # Compiler flag to generate thread-safe objects.
  16666. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16667. # Library versioning type.
  16668. version_type=$version_type
  16669. # Format of library name prefix.
  16670. libname_spec=$lt_libname_spec
  16671. # List of archive names. First name is the real one, the rest are links.
  16672. # The last name is the one that the linker finds with -lNAME.
  16673. library_names_spec=$lt_library_names_spec
  16674. # The coded name of the library, if different from the real name.
  16675. soname_spec=$lt_soname_spec
  16676. # Commands used to build and install an old-style archive.
  16677. RANLIB=$lt_RANLIB
  16678. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16679. old_postinstall_cmds=$lt_old_postinstall_cmds
  16680. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16681. # Create an old-style archive from a shared archive.
  16682. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16683. # Create a temporary old-style archive to link instead of a shared archive.
  16684. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16685. # Commands used to build and install a shared archive.
  16686. archive_cmds=$lt_archive_cmds_GCJ
  16687. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16688. postinstall_cmds=$lt_postinstall_cmds
  16689. postuninstall_cmds=$lt_postuninstall_cmds
  16690. # Commands used to build a loadable module (assumed same as above if empty)
  16691. module_cmds=$lt_module_cmds_GCJ
  16692. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16693. # Commands to strip libraries.
  16694. old_striplib=$lt_old_striplib
  16695. striplib=$lt_striplib
  16696. # Dependencies to place before the objects being linked to create a
  16697. # shared library.
  16698. predep_objects=$lt_predep_objects_GCJ
  16699. # Dependencies to place after the objects being linked to create a
  16700. # shared library.
  16701. postdep_objects=$lt_postdep_objects_GCJ
  16702. # Dependencies to place before the objects being linked to create a
  16703. # shared library.
  16704. predeps=$lt_predeps_GCJ
  16705. # Dependencies to place after the objects being linked to create a
  16706. # shared library.
  16707. postdeps=$lt_postdeps_GCJ
  16708. # The library search path used internally by the compiler when linking
  16709. # a shared library.
  16710. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16711. # Method to check whether dependent libraries are shared objects.
  16712. deplibs_check_method=$lt_deplibs_check_method
  16713. # Command to use when deplibs_check_method == file_magic.
  16714. file_magic_cmd=$lt_file_magic_cmd
  16715. # Flag that allows shared libraries with undefined symbols to be built.
  16716. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16717. # Flag that forces no undefined symbols.
  16718. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16719. # Commands used to finish a libtool library installation in a directory.
  16720. finish_cmds=$lt_finish_cmds
  16721. # Same as above, but a single script fragment to be evaled but not shown.
  16722. finish_eval=$lt_finish_eval
  16723. # Take the output of nm and produce a listing of raw symbols and C names.
  16724. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16725. # Transform the output of nm in a proper C declaration
  16726. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16727. # Transform the output of nm in a C name address pair
  16728. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16729. # This is the shared library runtime path variable.
  16730. runpath_var=$runpath_var
  16731. # This is the shared library path variable.
  16732. shlibpath_var=$shlibpath_var
  16733. # Is shlibpath searched before the hard-coded library search path?
  16734. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16735. # How to hardcode a shared library path into an executable.
  16736. hardcode_action=$hardcode_action_GCJ
  16737. # Whether we should hardcode library paths into libraries.
  16738. hardcode_into_libs=$hardcode_into_libs
  16739. # Flag to hardcode \$libdir into a binary during linking.
  16740. # This must work even if \$libdir does not exist.
  16741. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16742. # If ld is used when linking, flag to hardcode \$libdir into
  16743. # a binary during linking. This must work even if \$libdir does
  16744. # not exist.
  16745. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16746. # Whether we need a single -rpath flag with a separated argument.
  16747. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16748. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16749. # resulting binary.
  16750. hardcode_direct=$hardcode_direct_GCJ
  16751. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16752. # resulting binary.
  16753. hardcode_minus_L=$hardcode_minus_L_GCJ
  16754. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16755. # the resulting binary.
  16756. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16757. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16758. # and all subsequent libraries and executables linked against it.
  16759. hardcode_automatic=$hardcode_automatic_GCJ
  16760. # Variables whose values should be saved in libtool wrapper scripts and
  16761. # restored at relink time.
  16762. variables_saved_for_relink="$variables_saved_for_relink"
  16763. # Whether libtool must link a program against all its dependency libraries.
  16764. link_all_deplibs=$link_all_deplibs_GCJ
  16765. # Compile-time system search path for libraries
  16766. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16767. # Run-time system search path for libraries
  16768. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16769. # Fix the shell variable \$srcfile for the compiler.
  16770. fix_srcfile_path=$lt_fix_srcfile_path
  16771. # Set to yes if exported symbols are required.
  16772. always_export_symbols=$always_export_symbols_GCJ
  16773. # The commands to list exported symbols.
  16774. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16775. # The commands to extract the exported symbol list from a shared archive.
  16776. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16777. # Symbols that should not be listed in the preloaded symbols.
  16778. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16779. # Symbols that must always be exported.
  16780. include_expsyms=$lt_include_expsyms_GCJ
  16781. # ### END LIBTOOL TAG CONFIG: $tagname
  16782. __EOF__
  16783. else
  16784. # If there is no Makefile yet, we rely on a make rule to execute
  16785. # `config.status --recheck' to rerun these tests and create the
  16786. # libtool script then.
  16787. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16788. if test -f "$ltmain_in"; then
  16789. test -f Makefile && make "$ltmain"
  16790. fi
  16791. fi
  16792. ac_ext=c
  16793. ac_cpp='$CPP $CPPFLAGS'
  16794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16797. CC="$lt_save_CC"
  16798. else
  16799. tagname=""
  16800. fi
  16801. ;;
  16802. RC)
  16803. # Source file extension for RC test sources.
  16804. ac_ext=rc
  16805. # Object file extension for compiled RC test sources.
  16806. objext=o
  16807. objext_RC=$objext
  16808. # Code to be used in simple compile tests
  16809. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  16810. # Code to be used in simple link tests
  16811. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16812. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16813. # If no C compiler was specified, use CC.
  16814. LTCC=${LTCC-"$CC"}
  16815. # If no C compiler flags were specified, use CFLAGS.
  16816. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16817. # Allow CC to be a program name with arguments.
  16818. compiler=$CC
  16819. # save warnings/boilerplate of simple test code
  16820. ac_outfile=conftest.$ac_objext
  16821. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  16822. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16823. _lt_compiler_boilerplate=`cat conftest.err`
  16824. $rm conftest*
  16825. ac_outfile=conftest.$ac_objext
  16826. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  16827. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16828. _lt_linker_boilerplate=`cat conftest.err`
  16829. $rm conftest*
  16830. # Allow CC to be a program name with arguments.
  16831. lt_save_CC="$CC"
  16832. CC=${RC-"windres"}
  16833. compiler=$CC
  16834. compiler_RC=$CC
  16835. for cc_temp in $compiler""; do
  16836. case $cc_temp in
  16837. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16838. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16839. \-*) ;;
  16840. *) break;;
  16841. esac
  16842. done
  16843. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16844. lt_cv_prog_compiler_c_o_RC=yes
  16845. # The else clause should only fire when bootstrapping the
  16846. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16847. # with your package, and you will get complaints that there are
  16848. # no rules to generate ltmain.sh.
  16849. if test -f "$ltmain"; then
  16850. # See if we are running on zsh, and set the options which allow our commands through
  16851. # without removal of \ escapes.
  16852. if test -n "${ZSH_VERSION+set}" ; then
  16853. setopt NO_GLOB_SUBST
  16854. fi
  16855. # Now quote all the things that may contain metacharacters while being
  16856. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16857. # variables and quote the copies for generation of the libtool script.
  16858. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16859. SED SHELL STRIP \
  16860. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16861. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16862. deplibs_check_method reload_flag reload_cmds need_locks \
  16863. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16864. lt_cv_sys_global_symbol_to_c_name_address \
  16865. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16866. old_postinstall_cmds old_postuninstall_cmds \
  16867. compiler_RC \
  16868. CC_RC \
  16869. LD_RC \
  16870. lt_prog_compiler_wl_RC \
  16871. lt_prog_compiler_pic_RC \
  16872. lt_prog_compiler_static_RC \
  16873. lt_prog_compiler_no_builtin_flag_RC \
  16874. export_dynamic_flag_spec_RC \
  16875. thread_safe_flag_spec_RC \
  16876. whole_archive_flag_spec_RC \
  16877. enable_shared_with_static_runtimes_RC \
  16878. old_archive_cmds_RC \
  16879. old_archive_from_new_cmds_RC \
  16880. predep_objects_RC \
  16881. postdep_objects_RC \
  16882. predeps_RC \
  16883. postdeps_RC \
  16884. compiler_lib_search_path_RC \
  16885. archive_cmds_RC \
  16886. archive_expsym_cmds_RC \
  16887. postinstall_cmds_RC \
  16888. postuninstall_cmds_RC \
  16889. old_archive_from_expsyms_cmds_RC \
  16890. allow_undefined_flag_RC \
  16891. no_undefined_flag_RC \
  16892. export_symbols_cmds_RC \
  16893. hardcode_libdir_flag_spec_RC \
  16894. hardcode_libdir_flag_spec_ld_RC \
  16895. hardcode_libdir_separator_RC \
  16896. hardcode_automatic_RC \
  16897. module_cmds_RC \
  16898. module_expsym_cmds_RC \
  16899. lt_cv_prog_compiler_c_o_RC \
  16900. fix_srcfile_path_RC \
  16901. exclude_expsyms_RC \
  16902. include_expsyms_RC; do
  16903. case $var in
  16904. old_archive_cmds_RC | \
  16905. old_archive_from_new_cmds_RC | \
  16906. archive_cmds_RC | \
  16907. archive_expsym_cmds_RC | \
  16908. module_cmds_RC | \
  16909. module_expsym_cmds_RC | \
  16910. old_archive_from_expsyms_cmds_RC | \
  16911. export_symbols_cmds_RC | \
  16912. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16913. postinstall_cmds | postuninstall_cmds | \
  16914. old_postinstall_cmds | old_postuninstall_cmds | \
  16915. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16916. # Double-quote double-evaled strings.
  16917. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16918. ;;
  16919. *)
  16920. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16921. ;;
  16922. esac
  16923. done
  16924. case $lt_echo in
  16925. *'\$0 --fallback-echo"')
  16926. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16927. ;;
  16928. esac
  16929. cfgfile="$ofile"
  16930. cat <<__EOF__ >> "$cfgfile"
  16931. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16932. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16933. # Shell to use when invoking shell scripts.
  16934. SHELL=$lt_SHELL
  16935. # Whether or not to build shared libraries.
  16936. build_libtool_libs=$enable_shared
  16937. # Whether or not to build static libraries.
  16938. build_old_libs=$enable_static
  16939. # Whether or not to add -lc for building shared libraries.
  16940. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16941. # Whether or not to disallow shared libs when runtime libs are static
  16942. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16943. # Whether or not to optimize for fast installation.
  16944. fast_install=$enable_fast_install
  16945. # The host system.
  16946. host_alias=$host_alias
  16947. host=$host
  16948. host_os=$host_os
  16949. # The build system.
  16950. build_alias=$build_alias
  16951. build=$build
  16952. build_os=$build_os
  16953. # An echo program that does not interpret backslashes.
  16954. echo=$lt_echo
  16955. # The archiver.
  16956. AR=$lt_AR
  16957. AR_FLAGS=$lt_AR_FLAGS
  16958. # A C compiler.
  16959. LTCC=$lt_LTCC
  16960. # LTCC compiler flags.
  16961. LTCFLAGS=$lt_LTCFLAGS
  16962. # A language-specific compiler.
  16963. CC=$lt_compiler_RC
  16964. # Is the compiler the GNU C compiler?
  16965. with_gcc=$GCC_RC
  16966. # An ERE matcher.
  16967. EGREP=$lt_EGREP
  16968. # The linker used to build libraries.
  16969. LD=$lt_LD_RC
  16970. # Whether we need hard or soft links.
  16971. LN_S=$lt_LN_S
  16972. # A BSD-compatible nm program.
  16973. NM=$lt_NM
  16974. # A symbol stripping program
  16975. STRIP=$lt_STRIP
  16976. # Used to examine libraries when file_magic_cmd begins "file"
  16977. MAGIC_CMD=$MAGIC_CMD
  16978. # Used on cygwin: DLL creation program.
  16979. DLLTOOL="$DLLTOOL"
  16980. # Used on cygwin: object dumper.
  16981. OBJDUMP="$OBJDUMP"
  16982. # Used on cygwin: assembler.
  16983. AS="$AS"
  16984. # The name of the directory that contains temporary libtool files.
  16985. objdir=$objdir
  16986. # How to create reloadable object files.
  16987. reload_flag=$lt_reload_flag
  16988. reload_cmds=$lt_reload_cmds
  16989. # How to pass a linker flag through the compiler.
  16990. wl=$lt_lt_prog_compiler_wl_RC
  16991. # Object file suffix (normally "o").
  16992. objext="$ac_objext"
  16993. # Old archive suffix (normally "a").
  16994. libext="$libext"
  16995. # Shared library suffix (normally ".so").
  16996. shrext_cmds='$shrext_cmds'
  16997. # Executable file suffix (normally "").
  16998. exeext="$exeext"
  16999. # Additional compiler flags for building library objects.
  17000. pic_flag=$lt_lt_prog_compiler_pic_RC
  17001. pic_mode=$pic_mode
  17002. # What is the maximum length of a command?
  17003. max_cmd_len=$lt_cv_sys_max_cmd_len
  17004. # Does compiler simultaneously support -c and -o options?
  17005. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17006. # Must we lock files when doing compilation?
  17007. need_locks=$lt_need_locks
  17008. # Do we need the lib prefix for modules?
  17009. need_lib_prefix=$need_lib_prefix
  17010. # Do we need a version for libraries?
  17011. need_version=$need_version
  17012. # Whether dlopen is supported.
  17013. dlopen_support=$enable_dlopen
  17014. # Whether dlopen of programs is supported.
  17015. dlopen_self=$enable_dlopen_self
  17016. # Whether dlopen of statically linked programs is supported.
  17017. dlopen_self_static=$enable_dlopen_self_static
  17018. # Compiler flag to prevent dynamic linking.
  17019. link_static_flag=$lt_lt_prog_compiler_static_RC
  17020. # Compiler flag to turn off builtin functions.
  17021. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17022. # Compiler flag to allow reflexive dlopens.
  17023. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17024. # Compiler flag to generate shared objects directly from archives.
  17025. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17026. # Compiler flag to generate thread-safe objects.
  17027. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17028. # Library versioning type.
  17029. version_type=$version_type
  17030. # Format of library name prefix.
  17031. libname_spec=$lt_libname_spec
  17032. # List of archive names. First name is the real one, the rest are links.
  17033. # The last name is the one that the linker finds with -lNAME.
  17034. library_names_spec=$lt_library_names_spec
  17035. # The coded name of the library, if different from the real name.
  17036. soname_spec=$lt_soname_spec
  17037. # Commands used to build and install an old-style archive.
  17038. RANLIB=$lt_RANLIB
  17039. old_archive_cmds=$lt_old_archive_cmds_RC
  17040. old_postinstall_cmds=$lt_old_postinstall_cmds
  17041. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17042. # Create an old-style archive from a shared archive.
  17043. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17044. # Create a temporary old-style archive to link instead of a shared archive.
  17045. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17046. # Commands used to build and install a shared archive.
  17047. archive_cmds=$lt_archive_cmds_RC
  17048. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17049. postinstall_cmds=$lt_postinstall_cmds
  17050. postuninstall_cmds=$lt_postuninstall_cmds
  17051. # Commands used to build a loadable module (assumed same as above if empty)
  17052. module_cmds=$lt_module_cmds_RC
  17053. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17054. # Commands to strip libraries.
  17055. old_striplib=$lt_old_striplib
  17056. striplib=$lt_striplib
  17057. # Dependencies to place before the objects being linked to create a
  17058. # shared library.
  17059. predep_objects=$lt_predep_objects_RC
  17060. # Dependencies to place after the objects being linked to create a
  17061. # shared library.
  17062. postdep_objects=$lt_postdep_objects_RC
  17063. # Dependencies to place before the objects being linked to create a
  17064. # shared library.
  17065. predeps=$lt_predeps_RC
  17066. # Dependencies to place after the objects being linked to create a
  17067. # shared library.
  17068. postdeps=$lt_postdeps_RC
  17069. # The library search path used internally by the compiler when linking
  17070. # a shared library.
  17071. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17072. # Method to check whether dependent libraries are shared objects.
  17073. deplibs_check_method=$lt_deplibs_check_method
  17074. # Command to use when deplibs_check_method == file_magic.
  17075. file_magic_cmd=$lt_file_magic_cmd
  17076. # Flag that allows shared libraries with undefined symbols to be built.
  17077. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17078. # Flag that forces no undefined symbols.
  17079. no_undefined_flag=$lt_no_undefined_flag_RC
  17080. # Commands used to finish a libtool library installation in a directory.
  17081. finish_cmds=$lt_finish_cmds
  17082. # Same as above, but a single script fragment to be evaled but not shown.
  17083. finish_eval=$lt_finish_eval
  17084. # Take the output of nm and produce a listing of raw symbols and C names.
  17085. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17086. # Transform the output of nm in a proper C declaration
  17087. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17088. # Transform the output of nm in a C name address pair
  17089. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17090. # This is the shared library runtime path variable.
  17091. runpath_var=$runpath_var
  17092. # This is the shared library path variable.
  17093. shlibpath_var=$shlibpath_var
  17094. # Is shlibpath searched before the hard-coded library search path?
  17095. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17096. # How to hardcode a shared library path into an executable.
  17097. hardcode_action=$hardcode_action_RC
  17098. # Whether we should hardcode library paths into libraries.
  17099. hardcode_into_libs=$hardcode_into_libs
  17100. # Flag to hardcode \$libdir into a binary during linking.
  17101. # This must work even if \$libdir does not exist.
  17102. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17103. # If ld is used when linking, flag to hardcode \$libdir into
  17104. # a binary during linking. This must work even if \$libdir does
  17105. # not exist.
  17106. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17107. # Whether we need a single -rpath flag with a separated argument.
  17108. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17109. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17110. # resulting binary.
  17111. hardcode_direct=$hardcode_direct_RC
  17112. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17113. # resulting binary.
  17114. hardcode_minus_L=$hardcode_minus_L_RC
  17115. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17116. # the resulting binary.
  17117. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17118. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17119. # and all subsequent libraries and executables linked against it.
  17120. hardcode_automatic=$hardcode_automatic_RC
  17121. # Variables whose values should be saved in libtool wrapper scripts and
  17122. # restored at relink time.
  17123. variables_saved_for_relink="$variables_saved_for_relink"
  17124. # Whether libtool must link a program against all its dependency libraries.
  17125. link_all_deplibs=$link_all_deplibs_RC
  17126. # Compile-time system search path for libraries
  17127. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17128. # Run-time system search path for libraries
  17129. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17130. # Fix the shell variable \$srcfile for the compiler.
  17131. fix_srcfile_path=$lt_fix_srcfile_path
  17132. # Set to yes if exported symbols are required.
  17133. always_export_symbols=$always_export_symbols_RC
  17134. # The commands to list exported symbols.
  17135. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17136. # The commands to extract the exported symbol list from a shared archive.
  17137. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17138. # Symbols that should not be listed in the preloaded symbols.
  17139. exclude_expsyms=$lt_exclude_expsyms_RC
  17140. # Symbols that must always be exported.
  17141. include_expsyms=$lt_include_expsyms_RC
  17142. # ### END LIBTOOL TAG CONFIG: $tagname
  17143. __EOF__
  17144. else
  17145. # If there is no Makefile yet, we rely on a make rule to execute
  17146. # `config.status --recheck' to rerun these tests and create the
  17147. # libtool script then.
  17148. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17149. if test -f "$ltmain_in"; then
  17150. test -f Makefile && make "$ltmain"
  17151. fi
  17152. fi
  17153. ac_ext=c
  17154. ac_cpp='$CPP $CPPFLAGS'
  17155. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17156. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17157. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17158. CC="$lt_save_CC"
  17159. ;;
  17160. *)
  17161. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17162. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17163. { (exit 1); exit 1; }; }
  17164. ;;
  17165. esac
  17166. # Append the new tag name to the list of available tags.
  17167. if test -n "$tagname" ; then
  17168. available_tags="$available_tags $tagname"
  17169. fi
  17170. fi
  17171. done
  17172. IFS="$lt_save_ifs"
  17173. # Now substitute the updated list of available tags.
  17174. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17175. mv "${ofile}T" "$ofile"
  17176. chmod +x "$ofile"
  17177. else
  17178. rm -f "${ofile}T"
  17179. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17180. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17181. { (exit 1); exit 1; }; }
  17182. fi
  17183. fi
  17184. # This can be used to rebuild libtool when needed
  17185. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17186. # Always use our own libtool.
  17187. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17188. # Prevent multiple expansion
  17189. # Find a good install program. We prefer a C program (faster),
  17190. # so one script is as good as another. But avoid the broken or
  17191. # incompatible versions:
  17192. # SysV /etc/install, /usr/sbin/install
  17193. # SunOS /usr/etc/install
  17194. # IRIX /sbin/install
  17195. # AIX /bin/install
  17196. # AmigaOS /C/install, which installs bootblocks on floppy discs
  17197. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  17198. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  17199. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17200. # OS/2's system install, which has a completely different semantic
  17201. # ./install, which can be erroneously created by make from ./install.sh.
  17202. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17203. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  17204. if test -z "$INSTALL"; then
  17205. if test "${ac_cv_path_install+set}" = set; then
  17206. echo $ECHO_N "(cached) $ECHO_C" >&6
  17207. else
  17208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17209. for as_dir in $PATH
  17210. do
  17211. IFS=$as_save_IFS
  17212. test -z "$as_dir" && as_dir=.
  17213. # Account for people who put trailing slashes in PATH elements.
  17214. case $as_dir/ in
  17215. ./ | .// | /cC/* | \
  17216. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17217. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17218. /usr/ucb/* ) ;;
  17219. *)
  17220. # OSF1 and SCO ODT 3.0 have their own names for install.
  17221. # Don't use installbsd from OSF since it installs stuff as root
  17222. # by default.
  17223. for ac_prog in ginstall scoinst install; do
  17224. for ac_exec_ext in '' $ac_executable_extensions; do
  17225. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  17226. if test $ac_prog = install &&
  17227. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17228. # AIX install. It has an incompatible calling convention.
  17229. :
  17230. elif test $ac_prog = install &&
  17231. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17232. # program-specific install script used by HP pwplus--don't use.
  17233. :
  17234. else
  17235. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17236. break 3
  17237. fi
  17238. fi
  17239. done
  17240. done
  17241. ;;
  17242. esac
  17243. done
  17244. IFS=$as_save_IFS
  17245. fi
  17246. if test "${ac_cv_path_install+set}" = set; then
  17247. INSTALL=$ac_cv_path_install
  17248. else
  17249. # As a last resort, use the slow shell script. Don't cache a
  17250. # value for INSTALL within a source directory, because that will
  17251. # break other packages using the cache if that directory is
  17252. # removed, or if the value is a relative name.
  17253. INSTALL=$ac_install_sh
  17254. fi
  17255. fi
  17256. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  17257. echo "${ECHO_T}$INSTALL" >&6; }
  17258. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17259. # It thinks the first close brace ends the variable substitution.
  17260. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17261. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17262. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17263. # Checks for libraries
  17264. case "$host" in
  17265. *-*-*freebsd4*)
  17266. LDFLAGS="$LDFLAGS -pthread"
  17267. HAVE_LIBPTHREAD=1
  17268. ;;
  17269. *)
  17270. { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
  17271. echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
  17272. if test "${ac_cv_lib_pthread_main+set}" = set; then
  17273. echo $ECHO_N "(cached) $ECHO_C" >&6
  17274. else
  17275. ac_check_lib_save_LIBS=$LIBS
  17276. LIBS="-lpthread $LIBS"
  17277. cat >conftest.$ac_ext <<_ACEOF
  17278. /* confdefs.h. */
  17279. _ACEOF
  17280. cat confdefs.h >>conftest.$ac_ext
  17281. cat >>conftest.$ac_ext <<_ACEOF
  17282. /* end confdefs.h. */
  17283. int
  17284. main ()
  17285. {
  17286. return main ();
  17287. ;
  17288. return 0;
  17289. }
  17290. _ACEOF
  17291. rm -f conftest.$ac_objext conftest$ac_exeext
  17292. if { (ac_try="$ac_link"
  17293. case "(($ac_try" in
  17294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17295. *) ac_try_echo=$ac_try;;
  17296. esac
  17297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17298. (eval "$ac_link") 2>conftest.er1
  17299. ac_status=$?
  17300. grep -v '^ *+' conftest.er1 >conftest.err
  17301. rm -f conftest.er1
  17302. cat conftest.err >&5
  17303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17304. (exit $ac_status); } && {
  17305. test -z "$ac_c_werror_flag" ||
  17306. test ! -s conftest.err
  17307. } && test -s conftest$ac_exeext &&
  17308. $as_test_x conftest$ac_exeext; then
  17309. ac_cv_lib_pthread_main=yes
  17310. else
  17311. echo "$as_me: failed program was:" >&5
  17312. sed 's/^/| /' conftest.$ac_ext >&5
  17313. ac_cv_lib_pthread_main=no
  17314. fi
  17315. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17316. conftest$ac_exeext conftest.$ac_ext
  17317. LIBS=$ac_check_lib_save_LIBS
  17318. fi
  17319. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
  17320. echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
  17321. if test $ac_cv_lib_pthread_main = yes; then
  17322. cat >>confdefs.h <<_ACEOF
  17323. #define HAVE_LIBPTHREAD 1
  17324. _ACEOF
  17325. LIBS="-lpthread $LIBS"
  17326. fi
  17327. ;;
  17328. esac
  17329. # Checks for header files
  17330. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17331. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  17332. if test "${ac_cv_header_stdc+set}" = set; then
  17333. echo $ECHO_N "(cached) $ECHO_C" >&6
  17334. else
  17335. cat >conftest.$ac_ext <<_ACEOF
  17336. /* confdefs.h. */
  17337. _ACEOF
  17338. cat confdefs.h >>conftest.$ac_ext
  17339. cat >>conftest.$ac_ext <<_ACEOF
  17340. /* end confdefs.h. */
  17341. #include <stdlib.h>
  17342. #include <stdarg.h>
  17343. #include <string.h>
  17344. #include <float.h>
  17345. int
  17346. main ()
  17347. {
  17348. ;
  17349. return 0;
  17350. }
  17351. _ACEOF
  17352. rm -f conftest.$ac_objext
  17353. if { (ac_try="$ac_compile"
  17354. case "(($ac_try" in
  17355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17356. *) ac_try_echo=$ac_try;;
  17357. esac
  17358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17359. (eval "$ac_compile") 2>conftest.er1
  17360. ac_status=$?
  17361. grep -v '^ *+' conftest.er1 >conftest.err
  17362. rm -f conftest.er1
  17363. cat conftest.err >&5
  17364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17365. (exit $ac_status); } && {
  17366. test -z "$ac_c_werror_flag" ||
  17367. test ! -s conftest.err
  17368. } && test -s conftest.$ac_objext; then
  17369. ac_cv_header_stdc=yes
  17370. else
  17371. echo "$as_me: failed program was:" >&5
  17372. sed 's/^/| /' conftest.$ac_ext >&5
  17373. ac_cv_header_stdc=no
  17374. fi
  17375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17376. if test $ac_cv_header_stdc = yes; then
  17377. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17378. cat >conftest.$ac_ext <<_ACEOF
  17379. /* confdefs.h. */
  17380. _ACEOF
  17381. cat confdefs.h >>conftest.$ac_ext
  17382. cat >>conftest.$ac_ext <<_ACEOF
  17383. /* end confdefs.h. */
  17384. #include <string.h>
  17385. _ACEOF
  17386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17387. $EGREP "memchr" >/dev/null 2>&1; then
  17388. :
  17389. else
  17390. ac_cv_header_stdc=no
  17391. fi
  17392. rm -f conftest*
  17393. fi
  17394. if test $ac_cv_header_stdc = yes; then
  17395. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17396. cat >conftest.$ac_ext <<_ACEOF
  17397. /* confdefs.h. */
  17398. _ACEOF
  17399. cat confdefs.h >>conftest.$ac_ext
  17400. cat >>conftest.$ac_ext <<_ACEOF
  17401. /* end confdefs.h. */
  17402. #include <stdlib.h>
  17403. _ACEOF
  17404. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17405. $EGREP "free" >/dev/null 2>&1; then
  17406. :
  17407. else
  17408. ac_cv_header_stdc=no
  17409. fi
  17410. rm -f conftest*
  17411. fi
  17412. if test $ac_cv_header_stdc = yes; then
  17413. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17414. if test "$cross_compiling" = yes; then
  17415. :
  17416. else
  17417. cat >conftest.$ac_ext <<_ACEOF
  17418. /* confdefs.h. */
  17419. _ACEOF
  17420. cat confdefs.h >>conftest.$ac_ext
  17421. cat >>conftest.$ac_ext <<_ACEOF
  17422. /* end confdefs.h. */
  17423. #include <ctype.h>
  17424. #include <stdlib.h>
  17425. #if ((' ' & 0x0FF) == 0x020)
  17426. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17427. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17428. #else
  17429. # define ISLOWER(c) \
  17430. (('a' <= (c) && (c) <= 'i') \
  17431. || ('j' <= (c) && (c) <= 'r') \
  17432. || ('s' <= (c) && (c) <= 'z'))
  17433. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17434. #endif
  17435. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17436. int
  17437. main ()
  17438. {
  17439. int i;
  17440. for (i = 0; i < 256; i++)
  17441. if (XOR (islower (i), ISLOWER (i))
  17442. || toupper (i) != TOUPPER (i))
  17443. return 2;
  17444. return 0;
  17445. }
  17446. _ACEOF
  17447. rm -f conftest$ac_exeext
  17448. if { (ac_try="$ac_link"
  17449. case "(($ac_try" in
  17450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17451. *) ac_try_echo=$ac_try;;
  17452. esac
  17453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17454. (eval "$ac_link") 2>&5
  17455. ac_status=$?
  17456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17457. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17458. { (case "(($ac_try" in
  17459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17460. *) ac_try_echo=$ac_try;;
  17461. esac
  17462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17463. (eval "$ac_try") 2>&5
  17464. ac_status=$?
  17465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17466. (exit $ac_status); }; }; then
  17467. :
  17468. else
  17469. echo "$as_me: program exited with status $ac_status" >&5
  17470. echo "$as_me: failed program was:" >&5
  17471. sed 's/^/| /' conftest.$ac_ext >&5
  17472. ( exit $ac_status )
  17473. ac_cv_header_stdc=no
  17474. fi
  17475. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17476. fi
  17477. fi
  17478. fi
  17479. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17480. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  17481. if test $ac_cv_header_stdc = yes; then
  17482. cat >>confdefs.h <<\_ACEOF
  17483. #define STDC_HEADERS 1
  17484. _ACEOF
  17485. fi
  17486. for ac_header in stdlib.h
  17487. do
  17488. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17489. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17490. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17491. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17492. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17493. echo $ECHO_N "(cached) $ECHO_C" >&6
  17494. fi
  17495. ac_res=`eval echo '${'$as_ac_Header'}'`
  17496. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17497. echo "${ECHO_T}$ac_res" >&6; }
  17498. else
  17499. # Is the header compilable?
  17500. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17501. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17502. cat >conftest.$ac_ext <<_ACEOF
  17503. /* confdefs.h. */
  17504. _ACEOF
  17505. cat confdefs.h >>conftest.$ac_ext
  17506. cat >>conftest.$ac_ext <<_ACEOF
  17507. /* end confdefs.h. */
  17508. $ac_includes_default
  17509. #include <$ac_header>
  17510. _ACEOF
  17511. rm -f conftest.$ac_objext
  17512. if { (ac_try="$ac_compile"
  17513. case "(($ac_try" in
  17514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17515. *) ac_try_echo=$ac_try;;
  17516. esac
  17517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17518. (eval "$ac_compile") 2>conftest.er1
  17519. ac_status=$?
  17520. grep -v '^ *+' conftest.er1 >conftest.err
  17521. rm -f conftest.er1
  17522. cat conftest.err >&5
  17523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17524. (exit $ac_status); } && {
  17525. test -z "$ac_c_werror_flag" ||
  17526. test ! -s conftest.err
  17527. } && test -s conftest.$ac_objext; then
  17528. ac_header_compiler=yes
  17529. else
  17530. echo "$as_me: failed program was:" >&5
  17531. sed 's/^/| /' conftest.$ac_ext >&5
  17532. ac_header_compiler=no
  17533. fi
  17534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17535. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17536. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17537. # Is the header present?
  17538. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17539. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17540. cat >conftest.$ac_ext <<_ACEOF
  17541. /* confdefs.h. */
  17542. _ACEOF
  17543. cat confdefs.h >>conftest.$ac_ext
  17544. cat >>conftest.$ac_ext <<_ACEOF
  17545. /* end confdefs.h. */
  17546. #include <$ac_header>
  17547. _ACEOF
  17548. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17549. case "(($ac_try" in
  17550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17551. *) ac_try_echo=$ac_try;;
  17552. esac
  17553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17554. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17555. ac_status=$?
  17556. grep -v '^ *+' conftest.er1 >conftest.err
  17557. rm -f conftest.er1
  17558. cat conftest.err >&5
  17559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17560. (exit $ac_status); } >/dev/null && {
  17561. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17562. test ! -s conftest.err
  17563. }; then
  17564. ac_header_preproc=yes
  17565. else
  17566. echo "$as_me: failed program was:" >&5
  17567. sed 's/^/| /' conftest.$ac_ext >&5
  17568. ac_header_preproc=no
  17569. fi
  17570. rm -f conftest.err conftest.$ac_ext
  17571. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17572. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17573. # So? What about this header?
  17574. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17575. yes:no: )
  17576. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17577. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17578. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17579. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17580. ac_header_preproc=yes
  17581. ;;
  17582. no:yes:* )
  17583. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17584. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17585. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17586. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17587. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17588. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17589. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17590. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17591. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17592. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17593. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17594. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17595. ;;
  17596. esac
  17597. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17598. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17599. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17600. echo $ECHO_N "(cached) $ECHO_C" >&6
  17601. else
  17602. eval "$as_ac_Header=\$ac_header_preproc"
  17603. fi
  17604. ac_res=`eval echo '${'$as_ac_Header'}'`
  17605. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17606. echo "${ECHO_T}$ac_res" >&6; }
  17607. fi
  17608. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17609. cat >>confdefs.h <<_ACEOF
  17610. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17611. _ACEOF
  17612. fi
  17613. done
  17614. for ac_header in pthread.h
  17615. do
  17616. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17617. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17618. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17619. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17620. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17621. echo $ECHO_N "(cached) $ECHO_C" >&6
  17622. fi
  17623. ac_res=`eval echo '${'$as_ac_Header'}'`
  17624. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17625. echo "${ECHO_T}$ac_res" >&6; }
  17626. else
  17627. # Is the header compilable?
  17628. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17629. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17630. cat >conftest.$ac_ext <<_ACEOF
  17631. /* confdefs.h. */
  17632. _ACEOF
  17633. cat confdefs.h >>conftest.$ac_ext
  17634. cat >>conftest.$ac_ext <<_ACEOF
  17635. /* end confdefs.h. */
  17636. $ac_includes_default
  17637. #include <$ac_header>
  17638. _ACEOF
  17639. rm -f conftest.$ac_objext
  17640. if { (ac_try="$ac_compile"
  17641. case "(($ac_try" in
  17642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17643. *) ac_try_echo=$ac_try;;
  17644. esac
  17645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17646. (eval "$ac_compile") 2>conftest.er1
  17647. ac_status=$?
  17648. grep -v '^ *+' conftest.er1 >conftest.err
  17649. rm -f conftest.er1
  17650. cat conftest.err >&5
  17651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17652. (exit $ac_status); } && {
  17653. test -z "$ac_c_werror_flag" ||
  17654. test ! -s conftest.err
  17655. } && test -s conftest.$ac_objext; then
  17656. ac_header_compiler=yes
  17657. else
  17658. echo "$as_me: failed program was:" >&5
  17659. sed 's/^/| /' conftest.$ac_ext >&5
  17660. ac_header_compiler=no
  17661. fi
  17662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17663. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17664. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17665. # Is the header present?
  17666. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17667. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17668. cat >conftest.$ac_ext <<_ACEOF
  17669. /* confdefs.h. */
  17670. _ACEOF
  17671. cat confdefs.h >>conftest.$ac_ext
  17672. cat >>conftest.$ac_ext <<_ACEOF
  17673. /* end confdefs.h. */
  17674. #include <$ac_header>
  17675. _ACEOF
  17676. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17677. case "(($ac_try" in
  17678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17679. *) ac_try_echo=$ac_try;;
  17680. esac
  17681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17682. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17683. ac_status=$?
  17684. grep -v '^ *+' conftest.er1 >conftest.err
  17685. rm -f conftest.er1
  17686. cat conftest.err >&5
  17687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17688. (exit $ac_status); } >/dev/null && {
  17689. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17690. test ! -s conftest.err
  17691. }; then
  17692. ac_header_preproc=yes
  17693. else
  17694. echo "$as_me: failed program was:" >&5
  17695. sed 's/^/| /' conftest.$ac_ext >&5
  17696. ac_header_preproc=no
  17697. fi
  17698. rm -f conftest.err conftest.$ac_ext
  17699. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17700. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17701. # So? What about this header?
  17702. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17703. yes:no: )
  17704. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17705. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17706. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17707. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17708. ac_header_preproc=yes
  17709. ;;
  17710. no:yes:* )
  17711. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17712. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17713. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17714. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17715. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17716. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17717. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17718. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17719. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17720. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17721. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17722. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17723. ;;
  17724. esac
  17725. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17726. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17727. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17728. echo $ECHO_N "(cached) $ECHO_C" >&6
  17729. else
  17730. eval "$as_ac_Header=\$ac_header_preproc"
  17731. fi
  17732. ac_res=`eval echo '${'$as_ac_Header'}'`
  17733. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17734. echo "${ECHO_T}$ac_res" >&6; }
  17735. fi
  17736. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17737. cat >>confdefs.h <<_ACEOF
  17738. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17739. _ACEOF
  17740. fi
  17741. done
  17742. # Checks for typedefs, structures, and compiler characteristics.
  17743. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17744. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  17745. if test "${ac_cv_c_const+set}" = set; then
  17746. echo $ECHO_N "(cached) $ECHO_C" >&6
  17747. else
  17748. cat >conftest.$ac_ext <<_ACEOF
  17749. /* confdefs.h. */
  17750. _ACEOF
  17751. cat confdefs.h >>conftest.$ac_ext
  17752. cat >>conftest.$ac_ext <<_ACEOF
  17753. /* end confdefs.h. */
  17754. int
  17755. main ()
  17756. {
  17757. /* FIXME: Include the comments suggested by Paul. */
  17758. #ifndef __cplusplus
  17759. /* Ultrix mips cc rejects this. */
  17760. typedef int charset[2];
  17761. const charset cs;
  17762. /* SunOS 4.1.1 cc rejects this. */
  17763. char const *const *pcpcc;
  17764. char **ppc;
  17765. /* NEC SVR4.0.2 mips cc rejects this. */
  17766. struct point {int x, y;};
  17767. static struct point const zero = {0,0};
  17768. /* AIX XL C 1.02.0.0 rejects this.
  17769. It does not let you subtract one const X* pointer from another in
  17770. an arm of an if-expression whose if-part is not a constant
  17771. expression */
  17772. const char *g = "string";
  17773. pcpcc = &g + (g ? g-g : 0);
  17774. /* HPUX 7.0 cc rejects these. */
  17775. ++pcpcc;
  17776. ppc = (char**) pcpcc;
  17777. pcpcc = (char const *const *) ppc;
  17778. { /* SCO 3.2v4 cc rejects this. */
  17779. char *t;
  17780. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17781. *t++ = 0;
  17782. if (s) return 0;
  17783. }
  17784. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17785. int x[] = {25, 17};
  17786. const int *foo = &x[0];
  17787. ++foo;
  17788. }
  17789. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17790. typedef const int *iptr;
  17791. iptr p = 0;
  17792. ++p;
  17793. }
  17794. { /* AIX XL C 1.02.0.0 rejects this saying
  17795. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17796. struct s { int j; const int *ap[3]; };
  17797. struct s *b; b->j = 5;
  17798. }
  17799. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17800. const int foo = 10;
  17801. if (!foo) return 0;
  17802. }
  17803. return !cs[0] && !zero.x;
  17804. #endif
  17805. ;
  17806. return 0;
  17807. }
  17808. _ACEOF
  17809. rm -f conftest.$ac_objext
  17810. if { (ac_try="$ac_compile"
  17811. case "(($ac_try" in
  17812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17813. *) ac_try_echo=$ac_try;;
  17814. esac
  17815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17816. (eval "$ac_compile") 2>conftest.er1
  17817. ac_status=$?
  17818. grep -v '^ *+' conftest.er1 >conftest.err
  17819. rm -f conftest.er1
  17820. cat conftest.err >&5
  17821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17822. (exit $ac_status); } && {
  17823. test -z "$ac_c_werror_flag" ||
  17824. test ! -s conftest.err
  17825. } && test -s conftest.$ac_objext; then
  17826. ac_cv_c_const=yes
  17827. else
  17828. echo "$as_me: failed program was:" >&5
  17829. sed 's/^/| /' conftest.$ac_ext >&5
  17830. ac_cv_c_const=no
  17831. fi
  17832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17833. fi
  17834. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17835. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  17836. if test $ac_cv_c_const = no; then
  17837. cat >>confdefs.h <<\_ACEOF
  17838. #define const
  17839. _ACEOF
  17840. fi
  17841. # Checks for library functions.
  17842. for ac_func in vprintf
  17843. do
  17844. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17845. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17846. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17847. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17848. echo $ECHO_N "(cached) $ECHO_C" >&6
  17849. else
  17850. cat >conftest.$ac_ext <<_ACEOF
  17851. /* confdefs.h. */
  17852. _ACEOF
  17853. cat confdefs.h >>conftest.$ac_ext
  17854. cat >>conftest.$ac_ext <<_ACEOF
  17855. /* end confdefs.h. */
  17856. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17857. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17858. #define $ac_func innocuous_$ac_func
  17859. /* System header to define __stub macros and hopefully few prototypes,
  17860. which can conflict with char $ac_func (); below.
  17861. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17862. <limits.h> exists even on freestanding compilers. */
  17863. #ifdef __STDC__
  17864. # include <limits.h>
  17865. #else
  17866. # include <assert.h>
  17867. #endif
  17868. #undef $ac_func
  17869. /* Override any GCC internal prototype to avoid an error.
  17870. Use char because int might match the return type of a GCC
  17871. builtin and then its argument prototype would still apply. */
  17872. #ifdef __cplusplus
  17873. extern "C"
  17874. #endif
  17875. char $ac_func ();
  17876. /* The GNU C library defines this for functions which it implements
  17877. to always fail with ENOSYS. Some functions are actually named
  17878. something starting with __ and the normal name is an alias. */
  17879. #if defined __stub_$ac_func || defined __stub___$ac_func
  17880. choke me
  17881. #endif
  17882. int
  17883. main ()
  17884. {
  17885. return $ac_func ();
  17886. ;
  17887. return 0;
  17888. }
  17889. _ACEOF
  17890. rm -f conftest.$ac_objext conftest$ac_exeext
  17891. if { (ac_try="$ac_link"
  17892. case "(($ac_try" in
  17893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17894. *) ac_try_echo=$ac_try;;
  17895. esac
  17896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17897. (eval "$ac_link") 2>conftest.er1
  17898. ac_status=$?
  17899. grep -v '^ *+' conftest.er1 >conftest.err
  17900. rm -f conftest.er1
  17901. cat conftest.err >&5
  17902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17903. (exit $ac_status); } && {
  17904. test -z "$ac_c_werror_flag" ||
  17905. test ! -s conftest.err
  17906. } && test -s conftest$ac_exeext &&
  17907. $as_test_x conftest$ac_exeext; then
  17908. eval "$as_ac_var=yes"
  17909. else
  17910. echo "$as_me: failed program was:" >&5
  17911. sed 's/^/| /' conftest.$ac_ext >&5
  17912. eval "$as_ac_var=no"
  17913. fi
  17914. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17915. conftest$ac_exeext conftest.$ac_ext
  17916. fi
  17917. ac_res=`eval echo '${'$as_ac_var'}'`
  17918. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17919. echo "${ECHO_T}$ac_res" >&6; }
  17920. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17921. cat >>confdefs.h <<_ACEOF
  17922. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17923. _ACEOF
  17924. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17925. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17926. if test "${ac_cv_func__doprnt+set}" = set; then
  17927. echo $ECHO_N "(cached) $ECHO_C" >&6
  17928. else
  17929. cat >conftest.$ac_ext <<_ACEOF
  17930. /* confdefs.h. */
  17931. _ACEOF
  17932. cat confdefs.h >>conftest.$ac_ext
  17933. cat >>conftest.$ac_ext <<_ACEOF
  17934. /* end confdefs.h. */
  17935. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17936. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17937. #define _doprnt innocuous__doprnt
  17938. /* System header to define __stub macros and hopefully few prototypes,
  17939. which can conflict with char _doprnt (); below.
  17940. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17941. <limits.h> exists even on freestanding compilers. */
  17942. #ifdef __STDC__
  17943. # include <limits.h>
  17944. #else
  17945. # include <assert.h>
  17946. #endif
  17947. #undef _doprnt
  17948. /* Override any GCC internal prototype to avoid an error.
  17949. Use char because int might match the return type of a GCC
  17950. builtin and then its argument prototype would still apply. */
  17951. #ifdef __cplusplus
  17952. extern "C"
  17953. #endif
  17954. char _doprnt ();
  17955. /* The GNU C library defines this for functions which it implements
  17956. to always fail with ENOSYS. Some functions are actually named
  17957. something starting with __ and the normal name is an alias. */
  17958. #if defined __stub__doprnt || defined __stub____doprnt
  17959. choke me
  17960. #endif
  17961. int
  17962. main ()
  17963. {
  17964. return _doprnt ();
  17965. ;
  17966. return 0;
  17967. }
  17968. _ACEOF
  17969. rm -f conftest.$ac_objext conftest$ac_exeext
  17970. if { (ac_try="$ac_link"
  17971. case "(($ac_try" in
  17972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17973. *) ac_try_echo=$ac_try;;
  17974. esac
  17975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17976. (eval "$ac_link") 2>conftest.er1
  17977. ac_status=$?
  17978. grep -v '^ *+' conftest.er1 >conftest.err
  17979. rm -f conftest.er1
  17980. cat conftest.err >&5
  17981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17982. (exit $ac_status); } && {
  17983. test -z "$ac_c_werror_flag" ||
  17984. test ! -s conftest.err
  17985. } && test -s conftest$ac_exeext &&
  17986. $as_test_x conftest$ac_exeext; then
  17987. ac_cv_func__doprnt=yes
  17988. else
  17989. echo "$as_me: failed program was:" >&5
  17990. sed 's/^/| /' conftest.$ac_ext >&5
  17991. ac_cv_func__doprnt=no
  17992. fi
  17993. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17994. conftest$ac_exeext conftest.$ac_ext
  17995. fi
  17996. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17997. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17998. if test $ac_cv_func__doprnt = yes; then
  17999. cat >>confdefs.h <<\_ACEOF
  18000. #define HAVE_DOPRNT 1
  18001. _ACEOF
  18002. fi
  18003. fi
  18004. done
  18005. for ac_func in atexit
  18006. do
  18007. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18008. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18009. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18010. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18011. echo $ECHO_N "(cached) $ECHO_C" >&6
  18012. else
  18013. cat >conftest.$ac_ext <<_ACEOF
  18014. /* confdefs.h. */
  18015. _ACEOF
  18016. cat confdefs.h >>conftest.$ac_ext
  18017. cat >>conftest.$ac_ext <<_ACEOF
  18018. /* end confdefs.h. */
  18019. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18020. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18021. #define $ac_func innocuous_$ac_func
  18022. /* System header to define __stub macros and hopefully few prototypes,
  18023. which can conflict with char $ac_func (); below.
  18024. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18025. <limits.h> exists even on freestanding compilers. */
  18026. #ifdef __STDC__
  18027. # include <limits.h>
  18028. #else
  18029. # include <assert.h>
  18030. #endif
  18031. #undef $ac_func
  18032. /* Override any GCC internal prototype to avoid an error.
  18033. Use char because int might match the return type of a GCC
  18034. builtin and then its argument prototype would still apply. */
  18035. #ifdef __cplusplus
  18036. extern "C"
  18037. #endif
  18038. char $ac_func ();
  18039. /* The GNU C library defines this for functions which it implements
  18040. to always fail with ENOSYS. Some functions are actually named
  18041. something starting with __ and the normal name is an alias. */
  18042. #if defined __stub_$ac_func || defined __stub___$ac_func
  18043. choke me
  18044. #endif
  18045. int
  18046. main ()
  18047. {
  18048. return $ac_func ();
  18049. ;
  18050. return 0;
  18051. }
  18052. _ACEOF
  18053. rm -f conftest.$ac_objext conftest$ac_exeext
  18054. if { (ac_try="$ac_link"
  18055. case "(($ac_try" in
  18056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18057. *) ac_try_echo=$ac_try;;
  18058. esac
  18059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18060. (eval "$ac_link") 2>conftest.er1
  18061. ac_status=$?
  18062. grep -v '^ *+' conftest.er1 >conftest.err
  18063. rm -f conftest.er1
  18064. cat conftest.err >&5
  18065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18066. (exit $ac_status); } && {
  18067. test -z "$ac_c_werror_flag" ||
  18068. test ! -s conftest.err
  18069. } && test -s conftest$ac_exeext &&
  18070. $as_test_x conftest$ac_exeext; then
  18071. eval "$as_ac_var=yes"
  18072. else
  18073. echo "$as_me: failed program was:" >&5
  18074. sed 's/^/| /' conftest.$ac_ext >&5
  18075. eval "$as_ac_var=no"
  18076. fi
  18077. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18078. conftest$ac_exeext conftest.$ac_ext
  18079. fi
  18080. ac_res=`eval echo '${'$as_ac_var'}'`
  18081. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18082. echo "${ECHO_T}$ac_res" >&6; }
  18083. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18084. cat >>confdefs.h <<_ACEOF
  18085. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18086. _ACEOF
  18087. fi
  18088. done
  18089. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/diag/Makefile tests/fail/Makefile tests/ok/Makefile tests/ok/ok-hash/Makefile tests/ok/ok-numeric/Makefile tests/ok/ok/Makefile tests/pass/Makefile tests/plan/Makefile tests/plan/no-tests/Makefile tests/plan/no_plan/Makefile tests/plan/not-enough-tests/Makefile tests/plan/sane/Makefile tests/plan/skip_all/Makefile tests/plan/too-many-plans/Makefile tests/plan/too-many-tests/Makefile tests/skip/Makefile tests/todo/Makefile"
  18090. cat >confcache <<\_ACEOF
  18091. # This file is a shell script that caches the results of configure
  18092. # tests run on this system so they can be shared between configure
  18093. # scripts and configure runs, see configure's option --config-cache.
  18094. # It is not useful on other systems. If it contains results you don't
  18095. # want to keep, you may remove or edit it.
  18096. #
  18097. # config.status only pays attention to the cache file if you give it
  18098. # the --recheck option to rerun configure.
  18099. #
  18100. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18101. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18102. # following values.
  18103. _ACEOF
  18104. # The following way of writing the cache mishandles newlines in values,
  18105. # but we know of no workaround that is simple, portable, and efficient.
  18106. # So, we kill variables containing newlines.
  18107. # Ultrix sh set writes to stderr and can't be redirected directly,
  18108. # and sets the high bit in the cache file unless we assign to the vars.
  18109. (
  18110. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18111. eval ac_val=\$$ac_var
  18112. case $ac_val in #(
  18113. *${as_nl}*)
  18114. case $ac_var in #(
  18115. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18116. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  18117. esac
  18118. case $ac_var in #(
  18119. _ | IFS | as_nl) ;; #(
  18120. *) $as_unset $ac_var ;;
  18121. esac ;;
  18122. esac
  18123. done
  18124. (set) 2>&1 |
  18125. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18126. *${as_nl}ac_space=\ *)
  18127. # `set' does not quote correctly, so add quotes (double-quote
  18128. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18129. sed -n \
  18130. "s/'/'\\\\''/g;
  18131. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18132. ;; #(
  18133. *)
  18134. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18135. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18136. ;;
  18137. esac |
  18138. sort
  18139. ) |
  18140. sed '
  18141. /^ac_cv_env_/b end
  18142. t clear
  18143. :clear
  18144. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18145. t end
  18146. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18147. :end' >>confcache
  18148. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18149. if test -w "$cache_file"; then
  18150. test "x$cache_file" != "x/dev/null" &&
  18151. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18152. echo "$as_me: updating cache $cache_file" >&6;}
  18153. cat confcache >$cache_file
  18154. else
  18155. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18156. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18157. fi
  18158. fi
  18159. rm -f confcache
  18160. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18161. # Let make expand exec_prefix.
  18162. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18163. # Transform confdefs.h into DEFS.
  18164. # Protect against shell expansion while executing Makefile rules.
  18165. # Protect against Makefile macro expansion.
  18166. #
  18167. # If the first sed substitution is executed (which looks for macros that
  18168. # take arguments), then branch to the quote section. Otherwise,
  18169. # look for a macro that doesn't take arguments.
  18170. ac_script='
  18171. t clear
  18172. :clear
  18173. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  18174. t quote
  18175. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  18176. t quote
  18177. b any
  18178. :quote
  18179. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  18180. s/\[/\\&/g
  18181. s/\]/\\&/g
  18182. s/\$/$$/g
  18183. H
  18184. :any
  18185. ${
  18186. g
  18187. s/^\n//
  18188. s/\n/ /g
  18189. p
  18190. }
  18191. '
  18192. DEFS=`sed -n "$ac_script" confdefs.h`
  18193. ac_libobjs=
  18194. ac_ltlibobjs=
  18195. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18196. # 1. Remove the extension, and $U if already installed.
  18197. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18198. ac_i=`echo "$ac_i" | sed "$ac_script"`
  18199. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18200. # will be set to the directory where LIBOBJS objects are built.
  18201. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18202. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18203. done
  18204. LIBOBJS=$ac_libobjs
  18205. LTLIBOBJS=$ac_ltlibobjs
  18206. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18207. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  18208. Usually this means the macro was only invoked conditionally." >&5
  18209. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  18210. Usually this means the macro was only invoked conditionally." >&2;}
  18211. { (exit 1); exit 1; }; }
  18212. fi
  18213. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18214. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  18215. Usually this means the macro was only invoked conditionally." >&5
  18216. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  18217. Usually this means the macro was only invoked conditionally." >&2;}
  18218. { (exit 1); exit 1; }; }
  18219. fi
  18220. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18221. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  18222. Usually this means the macro was only invoked conditionally." >&5
  18223. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  18224. Usually this means the macro was only invoked conditionally." >&2;}
  18225. { (exit 1); exit 1; }; }
  18226. fi
  18227. : ${CONFIG_STATUS=./config.status}
  18228. ac_clean_files_save=$ac_clean_files
  18229. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18230. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  18231. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18232. cat >$CONFIG_STATUS <<_ACEOF
  18233. #! $SHELL
  18234. # Generated by $as_me.
  18235. # Run this file to recreate the current configuration.
  18236. # Compiler output produced by configure, useful for debugging
  18237. # configure, is in config.log if it exists.
  18238. debug=false
  18239. ac_cs_recheck=false
  18240. ac_cs_silent=false
  18241. SHELL=\${CONFIG_SHELL-$SHELL}
  18242. _ACEOF
  18243. cat >>$CONFIG_STATUS <<\_ACEOF
  18244. ## --------------------- ##
  18245. ## M4sh Initialization. ##
  18246. ## --------------------- ##
  18247. # Be more Bourne compatible
  18248. DUALCASE=1; export DUALCASE # for MKS sh
  18249. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18250. emulate sh
  18251. NULLCMD=:
  18252. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18253. # is contrary to our usage. Disable this feature.
  18254. alias -g '${1+"$@"}'='"$@"'
  18255. setopt NO_GLOB_SUBST
  18256. else
  18257. case `(set -o) 2>/dev/null` in
  18258. *posix*) set -o posix ;;
  18259. esac
  18260. fi
  18261. # PATH needs CR
  18262. # Avoid depending upon Character Ranges.
  18263. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18264. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18265. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18266. as_cr_digits='0123456789'
  18267. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18268. # The user is always right.
  18269. if test "${PATH_SEPARATOR+set}" != set; then
  18270. echo "#! /bin/sh" >conf$$.sh
  18271. echo "exit 0" >>conf$$.sh
  18272. chmod +x conf$$.sh
  18273. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  18274. PATH_SEPARATOR=';'
  18275. else
  18276. PATH_SEPARATOR=:
  18277. fi
  18278. rm -f conf$$.sh
  18279. fi
  18280. # Support unset when possible.
  18281. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  18282. as_unset=unset
  18283. else
  18284. as_unset=false
  18285. fi
  18286. # IFS
  18287. # We need space, tab and new line, in precisely that order. Quoting is
  18288. # there to prevent editors from complaining about space-tab.
  18289. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18290. # splitting by setting IFS to empty value.)
  18291. as_nl='
  18292. '
  18293. IFS=" "" $as_nl"
  18294. # Find who we are. Look in the path if we contain no directory separator.
  18295. case $0 in
  18296. *[\\/]* ) as_myself=$0 ;;
  18297. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18298. for as_dir in $PATH
  18299. do
  18300. IFS=$as_save_IFS
  18301. test -z "$as_dir" && as_dir=.
  18302. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18303. done
  18304. IFS=$as_save_IFS
  18305. ;;
  18306. esac
  18307. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18308. # in which case we are not to be found in the path.
  18309. if test "x$as_myself" = x; then
  18310. as_myself=$0
  18311. fi
  18312. if test ! -f "$as_myself"; then
  18313. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18314. { (exit 1); exit 1; }
  18315. fi
  18316. # Work around bugs in pre-3.0 UWIN ksh.
  18317. for as_var in ENV MAIL MAILPATH
  18318. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  18319. done
  18320. PS1='$ '
  18321. PS2='> '
  18322. PS4='+ '
  18323. # NLS nuisances.
  18324. for as_var in \
  18325. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  18326. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  18327. LC_TELEPHONE LC_TIME
  18328. do
  18329. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  18330. eval $as_var=C; export $as_var
  18331. else
  18332. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  18333. fi
  18334. done
  18335. # Required to use basename.
  18336. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18337. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18338. as_expr=expr
  18339. else
  18340. as_expr=false
  18341. fi
  18342. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18343. as_basename=basename
  18344. else
  18345. as_basename=false
  18346. fi
  18347. # Name of the executable.
  18348. as_me=`$as_basename -- "$0" ||
  18349. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18350. X"$0" : 'X\(//\)$' \| \
  18351. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18352. echo X/"$0" |
  18353. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18354. s//\1/
  18355. q
  18356. }
  18357. /^X\/\(\/\/\)$/{
  18358. s//\1/
  18359. q
  18360. }
  18361. /^X\/\(\/\).*/{
  18362. s//\1/
  18363. q
  18364. }
  18365. s/.*/./; q'`
  18366. # CDPATH.
  18367. $as_unset CDPATH
  18368. as_lineno_1=$LINENO
  18369. as_lineno_2=$LINENO
  18370. test "x$as_lineno_1" != "x$as_lineno_2" &&
  18371. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  18372. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  18373. # uniformly replaced by the line number. The first 'sed' inserts a
  18374. # line-number line after each line using $LINENO; the second 'sed'
  18375. # does the real work. The second script uses 'N' to pair each
  18376. # line-number line with the line containing $LINENO, and appends
  18377. # trailing '-' during substitution so that $LINENO is not a special
  18378. # case at line end.
  18379. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  18380. # scripts with optimization help from Paolo Bonzini. Blame Lee
  18381. # E. McMahon (1931-1989) for sed's syntax. :-)
  18382. sed -n '
  18383. p
  18384. /[$]LINENO/=
  18385. ' <$as_myself |
  18386. sed '
  18387. s/[$]LINENO.*/&-/
  18388. t lineno
  18389. b
  18390. :lineno
  18391. N
  18392. :loop
  18393. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  18394. t loop
  18395. s/-\n.*//
  18396. ' >$as_me.lineno &&
  18397. chmod +x "$as_me.lineno" ||
  18398. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  18399. { (exit 1); exit 1; }; }
  18400. # Don't try to exec as it changes $[0], causing all sort of problems
  18401. # (the dirname of $[0] is not the place where we might find the
  18402. # original and so on. Autoconf is especially sensitive to this).
  18403. . "./$as_me.lineno"
  18404. # Exit status is that of the last command.
  18405. exit
  18406. }
  18407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18408. as_dirname=dirname
  18409. else
  18410. as_dirname=false
  18411. fi
  18412. ECHO_C= ECHO_N= ECHO_T=
  18413. case `echo -n x` in
  18414. -n*)
  18415. case `echo 'x\c'` in
  18416. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18417. *) ECHO_C='\c';;
  18418. esac;;
  18419. *)
  18420. ECHO_N='-n';;
  18421. esac
  18422. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18423. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18424. as_expr=expr
  18425. else
  18426. as_expr=false
  18427. fi
  18428. rm -f conf$$ conf$$.exe conf$$.file
  18429. if test -d conf$$.dir; then
  18430. rm -f conf$$.dir/conf$$.file
  18431. else
  18432. rm -f conf$$.dir
  18433. mkdir conf$$.dir
  18434. fi
  18435. echo >conf$$.file
  18436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18437. as_ln_s='ln -s'
  18438. # ... but there are two gotchas:
  18439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18441. # In both cases, we have to default to `cp -p'.
  18442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18443. as_ln_s='cp -p'
  18444. elif ln conf$$.file conf$$ 2>/dev/null; then
  18445. as_ln_s=ln
  18446. else
  18447. as_ln_s='cp -p'
  18448. fi
  18449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18450. rmdir conf$$.dir 2>/dev/null
  18451. if mkdir -p . 2>/dev/null; then
  18452. as_mkdir_p=:
  18453. else
  18454. test -d ./-p && rmdir ./-p
  18455. as_mkdir_p=false
  18456. fi
  18457. if test -x / >/dev/null 2>&1; then
  18458. as_test_x='test -x'
  18459. else
  18460. if ls -dL / >/dev/null 2>&1; then
  18461. as_ls_L_option=L
  18462. else
  18463. as_ls_L_option=
  18464. fi
  18465. as_test_x='
  18466. eval sh -c '\''
  18467. if test -d "$1"; then
  18468. test -d "$1/.";
  18469. else
  18470. case $1 in
  18471. -*)set "./$1";;
  18472. esac;
  18473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  18474. ???[sx]*):;;*)false;;esac;fi
  18475. '\'' sh
  18476. '
  18477. fi
  18478. as_executable_p=$as_test_x
  18479. # Sed expression to map a string onto a valid CPP name.
  18480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18481. # Sed expression to map a string onto a valid variable name.
  18482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18483. exec 6>&1
  18484. # Save the log message, to keep $[0] and so on meaningful, and to
  18485. # report actual input values of CONFIG_FILES etc. instead of their
  18486. # values after options handling.
  18487. ac_log="
  18488. This file was extended by tap $as_me 1.01, which was
  18489. generated by GNU Autoconf 2.61. Invocation command line was
  18490. CONFIG_FILES = $CONFIG_FILES
  18491. CONFIG_HEADERS = $CONFIG_HEADERS
  18492. CONFIG_LINKS = $CONFIG_LINKS
  18493. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18494. $ $0 $@
  18495. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18496. "
  18497. _ACEOF
  18498. cat >>$CONFIG_STATUS <<_ACEOF
  18499. # Files that config.status was made for.
  18500. config_files="$ac_config_files"
  18501. config_commands="$ac_config_commands"
  18502. _ACEOF
  18503. cat >>$CONFIG_STATUS <<\_ACEOF
  18504. ac_cs_usage="\
  18505. \`$as_me' instantiates files from templates according to the
  18506. current configuration.
  18507. Usage: $0 [OPTIONS] [FILE]...
  18508. -h, --help print this help, then exit
  18509. -V, --version print version number and configuration settings, then exit
  18510. -q, --quiet do not print progress messages
  18511. -d, --debug don't remove temporary files
  18512. --recheck update $as_me by reconfiguring in the same conditions
  18513. --file=FILE[:TEMPLATE]
  18514. instantiate the configuration file FILE
  18515. Configuration files:
  18516. $config_files
  18517. Configuration commands:
  18518. $config_commands
  18519. Report bugs to <bug-autoconf@gnu.org>."
  18520. _ACEOF
  18521. cat >>$CONFIG_STATUS <<_ACEOF
  18522. ac_cs_version="\\
  18523. tap config.status 1.01
  18524. configured by $0, generated by GNU Autoconf 2.61,
  18525. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  18526. Copyright (C) 2006 Free Software Foundation, Inc.
  18527. This config.status script is free software; the Free Software Foundation
  18528. gives unlimited permission to copy, distribute and modify it."
  18529. ac_pwd='$ac_pwd'
  18530. srcdir='$srcdir'
  18531. INSTALL='$INSTALL'
  18532. MKDIR_P='$MKDIR_P'
  18533. _ACEOF
  18534. cat >>$CONFIG_STATUS <<\_ACEOF
  18535. # If no file are specified by the user, then we need to provide default
  18536. # value. By we need to know if files were specified by the user.
  18537. ac_need_defaults=:
  18538. while test $# != 0
  18539. do
  18540. case $1 in
  18541. --*=*)
  18542. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18543. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18544. ac_shift=:
  18545. ;;
  18546. *)
  18547. ac_option=$1
  18548. ac_optarg=$2
  18549. ac_shift=shift
  18550. ;;
  18551. esac
  18552. case $ac_option in
  18553. # Handling of the options.
  18554. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18555. ac_cs_recheck=: ;;
  18556. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18557. echo "$ac_cs_version"; exit ;;
  18558. --debug | --debu | --deb | --de | --d | -d )
  18559. debug=: ;;
  18560. --file | --fil | --fi | --f )
  18561. $ac_shift
  18562. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  18563. ac_need_defaults=false;;
  18564. --he | --h | --help | --hel | -h )
  18565. echo "$ac_cs_usage"; exit ;;
  18566. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18567. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18568. ac_cs_silent=: ;;
  18569. # This is an error.
  18570. -*) { echo "$as_me: error: unrecognized option: $1
  18571. Try \`$0 --help' for more information." >&2
  18572. { (exit 1); exit 1; }; } ;;
  18573. *) ac_config_targets="$ac_config_targets $1"
  18574. ac_need_defaults=false ;;
  18575. esac
  18576. shift
  18577. done
  18578. ac_configure_extra_args=
  18579. if $ac_cs_silent; then
  18580. exec 6>/dev/null
  18581. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18582. fi
  18583. _ACEOF
  18584. cat >>$CONFIG_STATUS <<_ACEOF
  18585. if \$ac_cs_recheck; then
  18586. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  18587. CONFIG_SHELL=$SHELL
  18588. export CONFIG_SHELL
  18589. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18590. fi
  18591. _ACEOF
  18592. cat >>$CONFIG_STATUS <<\_ACEOF
  18593. exec 5>>config.log
  18594. {
  18595. echo
  18596. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18597. ## Running $as_me. ##
  18598. _ASBOX
  18599. echo "$ac_log"
  18600. } >&5
  18601. _ACEOF
  18602. cat >>$CONFIG_STATUS <<_ACEOF
  18603. #
  18604. # INIT-COMMANDS
  18605. #
  18606. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18607. _ACEOF
  18608. cat >>$CONFIG_STATUS <<\_ACEOF
  18609. # Handling of arguments.
  18610. for ac_config_target in $ac_config_targets
  18611. do
  18612. case $ac_config_target in
  18613. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18614. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18615. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  18616. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  18617. "tests/diag/Makefile") CONFIG_FILES="$CONFIG_FILES tests/diag/Makefile" ;;
  18618. "tests/fail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fail/Makefile" ;;
  18619. "tests/ok/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/Makefile" ;;
  18620. "tests/ok/ok-hash/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok-hash/Makefile" ;;
  18621. "tests/ok/ok-numeric/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok-numeric/Makefile" ;;
  18622. "tests/ok/ok/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok/Makefile" ;;
  18623. "tests/pass/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pass/Makefile" ;;
  18624. "tests/plan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/Makefile" ;;
  18625. "tests/plan/no-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/no-tests/Makefile" ;;
  18626. "tests/plan/no_plan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/no_plan/Makefile" ;;
  18627. "tests/plan/not-enough-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/not-enough-tests/Makefile" ;;
  18628. "tests/plan/sane/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/sane/Makefile" ;;
  18629. "tests/plan/skip_all/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/skip_all/Makefile" ;;
  18630. "tests/plan/too-many-plans/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/too-many-plans/Makefile" ;;
  18631. "tests/plan/too-many-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/too-many-tests/Makefile" ;;
  18632. "tests/skip/Makefile") CONFIG_FILES="$CONFIG_FILES tests/skip/Makefile" ;;
  18633. "tests/todo/Makefile") CONFIG_FILES="$CONFIG_FILES tests/todo/Makefile" ;;
  18634. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  18635. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  18636. { (exit 1); exit 1; }; };;
  18637. esac
  18638. done
  18639. # If the user did not use the arguments to specify the items to instantiate,
  18640. # then the envvar interface is used. Set only those that are not.
  18641. # We use the long form for the default assignment because of an extremely
  18642. # bizarre bug on SunOS 4.1.3.
  18643. if $ac_need_defaults; then
  18644. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18645. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18646. fi
  18647. # Have a temporary directory for convenience. Make it in the build tree
  18648. # simply because there is no reason against having it here, and in addition,
  18649. # creating and moving files from /tmp can sometimes cause problems.
  18650. # Hook for its removal unless debugging.
  18651. # Note that there is a small window in which the directory will not be cleaned:
  18652. # after its creation but before its name has been assigned to `$tmp'.
  18653. $debug ||
  18654. {
  18655. tmp=
  18656. trap 'exit_status=$?
  18657. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  18658. ' 0
  18659. trap '{ (exit 1); exit 1; }' 1 2 13 15
  18660. }
  18661. # Create a (secure) tmp directory for tmp files.
  18662. {
  18663. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18664. test -n "$tmp" && test -d "$tmp"
  18665. } ||
  18666. {
  18667. tmp=./conf$$-$RANDOM
  18668. (umask 077 && mkdir "$tmp")
  18669. } ||
  18670. {
  18671. echo "$me: cannot create a temporary directory in ." >&2
  18672. { (exit 1); exit 1; }
  18673. }
  18674. #
  18675. # Set up the sed scripts for CONFIG_FILES section.
  18676. #
  18677. # No need to generate the scripts if there are no CONFIG_FILES.
  18678. # This happens for instance when ./config.status config.h
  18679. if test -n "$CONFIG_FILES"; then
  18680. _ACEOF
  18681. ac_delim='%!_!# '
  18682. for ac_last_try in false false false false false :; do
  18683. cat >conf$$subs.sed <<_ACEOF
  18684. SHELL!$SHELL$ac_delim
  18685. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  18686. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  18687. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  18688. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  18689. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  18690. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  18691. exec_prefix!$exec_prefix$ac_delim
  18692. prefix!$prefix$ac_delim
  18693. program_transform_name!$program_transform_name$ac_delim
  18694. bindir!$bindir$ac_delim
  18695. sbindir!$sbindir$ac_delim
  18696. libexecdir!$libexecdir$ac_delim
  18697. datarootdir!$datarootdir$ac_delim
  18698. datadir!$datadir$ac_delim
  18699. sysconfdir!$sysconfdir$ac_delim
  18700. sharedstatedir!$sharedstatedir$ac_delim
  18701. localstatedir!$localstatedir$ac_delim
  18702. includedir!$includedir$ac_delim
  18703. oldincludedir!$oldincludedir$ac_delim
  18704. docdir!$docdir$ac_delim
  18705. infodir!$infodir$ac_delim
  18706. htmldir!$htmldir$ac_delim
  18707. dvidir!$dvidir$ac_delim
  18708. pdfdir!$pdfdir$ac_delim
  18709. psdir!$psdir$ac_delim
  18710. libdir!$libdir$ac_delim
  18711. localedir!$localedir$ac_delim
  18712. mandir!$mandir$ac_delim
  18713. DEFS!$DEFS$ac_delim
  18714. ECHO_C!$ECHO_C$ac_delim
  18715. ECHO_N!$ECHO_N$ac_delim
  18716. ECHO_T!$ECHO_T$ac_delim
  18717. LIBS!$LIBS$ac_delim
  18718. build_alias!$build_alias$ac_delim
  18719. host_alias!$host_alias$ac_delim
  18720. target_alias!$target_alias$ac_delim
  18721. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  18722. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  18723. INSTALL_DATA!$INSTALL_DATA$ac_delim
  18724. am__isrc!$am__isrc$ac_delim
  18725. CYGPATH_W!$CYGPATH_W$ac_delim
  18726. PACKAGE!$PACKAGE$ac_delim
  18727. VERSION!$VERSION$ac_delim
  18728. ACLOCAL!$ACLOCAL$ac_delim
  18729. AUTOCONF!$AUTOCONF$ac_delim
  18730. AUTOMAKE!$AUTOMAKE$ac_delim
  18731. AUTOHEADER!$AUTOHEADER$ac_delim
  18732. MAKEINFO!$MAKEINFO$ac_delim
  18733. install_sh!$install_sh$ac_delim
  18734. STRIP!$STRIP$ac_delim
  18735. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  18736. mkdir_p!$mkdir_p$ac_delim
  18737. AWK!$AWK$ac_delim
  18738. SET_MAKE!$SET_MAKE$ac_delim
  18739. am__leading_dot!$am__leading_dot$ac_delim
  18740. AMTAR!$AMTAR$ac_delim
  18741. am__tar!$am__tar$ac_delim
  18742. am__untar!$am__untar$ac_delim
  18743. CC!$CC$ac_delim
  18744. CFLAGS!$CFLAGS$ac_delim
  18745. LDFLAGS!$LDFLAGS$ac_delim
  18746. CPPFLAGS!$CPPFLAGS$ac_delim
  18747. ac_ct_CC!$ac_ct_CC$ac_delim
  18748. EXEEXT!$EXEEXT$ac_delim
  18749. OBJEXT!$OBJEXT$ac_delim
  18750. DEPDIR!$DEPDIR$ac_delim
  18751. am__include!$am__include$ac_delim
  18752. am__quote!$am__quote$ac_delim
  18753. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  18754. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  18755. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  18756. CCDEPMODE!$CCDEPMODE$ac_delim
  18757. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  18758. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  18759. build!$build$ac_delim
  18760. build_cpu!$build_cpu$ac_delim
  18761. build_vendor!$build_vendor$ac_delim
  18762. build_os!$build_os$ac_delim
  18763. host!$host$ac_delim
  18764. host_cpu!$host_cpu$ac_delim
  18765. host_vendor!$host_vendor$ac_delim
  18766. host_os!$host_os$ac_delim
  18767. SED!$SED$ac_delim
  18768. GREP!$GREP$ac_delim
  18769. EGREP!$EGREP$ac_delim
  18770. LN_S!$LN_S$ac_delim
  18771. ECHO!$ECHO$ac_delim
  18772. AR!$AR$ac_delim
  18773. RANLIB!$RANLIB$ac_delim
  18774. CPP!$CPP$ac_delim
  18775. CXX!$CXX$ac_delim
  18776. CXXFLAGS!$CXXFLAGS$ac_delim
  18777. ac_ct_CXX!$ac_ct_CXX$ac_delim
  18778. CXXDEPMODE!$CXXDEPMODE$ac_delim
  18779. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  18780. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  18781. _ACEOF
  18782. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  18783. break
  18784. elif $ac_last_try; then
  18785. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  18786. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  18787. { (exit 1); exit 1; }; }
  18788. else
  18789. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18790. fi
  18791. done
  18792. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  18793. if test -n "$ac_eof"; then
  18794. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  18795. ac_eof=`expr $ac_eof + 1`
  18796. fi
  18797. cat >>$CONFIG_STATUS <<_ACEOF
  18798. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  18799. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18800. _ACEOF
  18801. sed '
  18802. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  18803. s/^/s,@/; s/!/@,|#_!!_#|/
  18804. :n
  18805. t n
  18806. s/'"$ac_delim"'$/,g/; t
  18807. s/$/\\/; p
  18808. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  18809. ' >>$CONFIG_STATUS <conf$$subs.sed
  18810. rm -f conf$$subs.sed
  18811. cat >>$CONFIG_STATUS <<_ACEOF
  18812. CEOF$ac_eof
  18813. _ACEOF
  18814. ac_delim='%!_!# '
  18815. for ac_last_try in false false false false false :; do
  18816. cat >conf$$subs.sed <<_ACEOF
  18817. CXXCPP!$CXXCPP$ac_delim
  18818. F77!$F77$ac_delim
  18819. FFLAGS!$FFLAGS$ac_delim
  18820. ac_ct_F77!$ac_ct_F77$ac_delim
  18821. LIBTOOL!$LIBTOOL$ac_delim
  18822. LIBOBJS!$LIBOBJS$ac_delim
  18823. LTLIBOBJS!$LTLIBOBJS$ac_delim
  18824. _ACEOF
  18825. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
  18826. break
  18827. elif $ac_last_try; then
  18828. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  18829. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  18830. { (exit 1); exit 1; }; }
  18831. else
  18832. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18833. fi
  18834. done
  18835. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  18836. if test -n "$ac_eof"; then
  18837. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  18838. ac_eof=`expr $ac_eof + 1`
  18839. fi
  18840. cat >>$CONFIG_STATUS <<_ACEOF
  18841. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  18842. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  18843. _ACEOF
  18844. sed '
  18845. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  18846. s/^/s,@/; s/!/@,|#_!!_#|/
  18847. :n
  18848. t n
  18849. s/'"$ac_delim"'$/,g/; t
  18850. s/$/\\/; p
  18851. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  18852. ' >>$CONFIG_STATUS <conf$$subs.sed
  18853. rm -f conf$$subs.sed
  18854. cat >>$CONFIG_STATUS <<_ACEOF
  18855. :end
  18856. s/|#_!!_#|//g
  18857. CEOF$ac_eof
  18858. _ACEOF
  18859. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  18860. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  18861. # trailing colons and then remove the whole line if VPATH becomes empty
  18862. # (actually we leave an empty line to preserve line numbers).
  18863. if test "x$srcdir" = x.; then
  18864. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  18865. s/:*\$(srcdir):*/:/
  18866. s/:*\${srcdir}:*/:/
  18867. s/:*@srcdir@:*/:/
  18868. s/^\([^=]*=[ ]*\):*/\1/
  18869. s/:*$//
  18870. s/^[^=]*=[ ]*$//
  18871. }'
  18872. fi
  18873. cat >>$CONFIG_STATUS <<\_ACEOF
  18874. fi # test -n "$CONFIG_FILES"
  18875. for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
  18876. do
  18877. case $ac_tag in
  18878. :[FHLC]) ac_mode=$ac_tag; continue;;
  18879. esac
  18880. case $ac_mode$ac_tag in
  18881. :[FHL]*:*);;
  18882. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  18883. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  18884. { (exit 1); exit 1; }; };;
  18885. :[FH]-) ac_tag=-:-;;
  18886. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18887. esac
  18888. ac_save_IFS=$IFS
  18889. IFS=:
  18890. set x $ac_tag
  18891. IFS=$ac_save_IFS
  18892. shift
  18893. ac_file=$1
  18894. shift
  18895. case $ac_mode in
  18896. :L) ac_source=$1;;
  18897. :[FH])
  18898. ac_file_inputs=
  18899. for ac_f
  18900. do
  18901. case $ac_f in
  18902. -) ac_f="$tmp/stdin";;
  18903. *) # Look for the file first in the build tree, then in the source tree
  18904. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18905. # because $ac_f cannot contain `:'.
  18906. test -f "$ac_f" ||
  18907. case $ac_f in
  18908. [\\/$]*) false;;
  18909. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18910. esac ||
  18911. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  18912. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  18913. { (exit 1); exit 1; }; };;
  18914. esac
  18915. ac_file_inputs="$ac_file_inputs $ac_f"
  18916. done
  18917. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18918. # use $as_me), people would be surprised to read:
  18919. # /* config.h. Generated by config.status. */
  18920. configure_input="Generated from "`IFS=:
  18921. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  18922. if test x"$ac_file" != x-; then
  18923. configure_input="$ac_file. $configure_input"
  18924. { echo "$as_me:$LINENO: creating $ac_file" >&5
  18925. echo "$as_me: creating $ac_file" >&6;}
  18926. fi
  18927. case $ac_tag in
  18928. *:-:* | *:-) cat >"$tmp/stdin";;
  18929. esac
  18930. ;;
  18931. esac
  18932. ac_dir=`$as_dirname -- "$ac_file" ||
  18933. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18934. X"$ac_file" : 'X\(//\)[^/]' \| \
  18935. X"$ac_file" : 'X\(//\)$' \| \
  18936. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18937. echo X"$ac_file" |
  18938. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18939. s//\1/
  18940. q
  18941. }
  18942. /^X\(\/\/\)[^/].*/{
  18943. s//\1/
  18944. q
  18945. }
  18946. /^X\(\/\/\)$/{
  18947. s//\1/
  18948. q
  18949. }
  18950. /^X\(\/\).*/{
  18951. s//\1/
  18952. q
  18953. }
  18954. s/.*/./; q'`
  18955. { as_dir="$ac_dir"
  18956. case $as_dir in #(
  18957. -*) as_dir=./$as_dir;;
  18958. esac
  18959. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  18960. as_dirs=
  18961. while :; do
  18962. case $as_dir in #(
  18963. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  18964. *) as_qdir=$as_dir;;
  18965. esac
  18966. as_dirs="'$as_qdir' $as_dirs"
  18967. as_dir=`$as_dirname -- "$as_dir" ||
  18968. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18969. X"$as_dir" : 'X\(//\)[^/]' \| \
  18970. X"$as_dir" : 'X\(//\)$' \| \
  18971. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18972. echo X"$as_dir" |
  18973. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18974. s//\1/
  18975. q
  18976. }
  18977. /^X\(\/\/\)[^/].*/{
  18978. s//\1/
  18979. q
  18980. }
  18981. /^X\(\/\/\)$/{
  18982. s//\1/
  18983. q
  18984. }
  18985. /^X\(\/\).*/{
  18986. s//\1/
  18987. q
  18988. }
  18989. s/.*/./; q'`
  18990. test -d "$as_dir" && break
  18991. done
  18992. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18993. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  18994. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  18995. { (exit 1); exit 1; }; }; }
  18996. ac_builddir=.
  18997. case "$ac_dir" in
  18998. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18999. *)
  19000. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  19001. # A ".." for each directory in $ac_dir_suffix.
  19002. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  19003. case $ac_top_builddir_sub in
  19004. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19005. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19006. esac ;;
  19007. esac
  19008. ac_abs_top_builddir=$ac_pwd
  19009. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19010. # for backward compatibility:
  19011. ac_top_builddir=$ac_top_build_prefix
  19012. case $srcdir in
  19013. .) # We are building in place.
  19014. ac_srcdir=.
  19015. ac_top_srcdir=$ac_top_builddir_sub
  19016. ac_abs_top_srcdir=$ac_pwd ;;
  19017. [\\/]* | ?:[\\/]* ) # Absolute name.
  19018. ac_srcdir=$srcdir$ac_dir_suffix;
  19019. ac_top_srcdir=$srcdir
  19020. ac_abs_top_srcdir=$srcdir ;;
  19021. *) # Relative name.
  19022. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19023. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19024. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19025. esac
  19026. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19027. case $ac_mode in
  19028. :F)
  19029. #
  19030. # CONFIG_FILE
  19031. #
  19032. case $INSTALL in
  19033. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19034. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19035. esac
  19036. ac_MKDIR_P=$MKDIR_P
  19037. case $MKDIR_P in
  19038. [\\/$]* | ?:[\\/]* ) ;;
  19039. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19040. esac
  19041. _ACEOF
  19042. cat >>$CONFIG_STATUS <<\_ACEOF
  19043. # If the template does not know about datarootdir, expand it.
  19044. # FIXME: This hack should be removed a few years after 2.60.
  19045. ac_datarootdir_hack=; ac_datarootdir_seen=
  19046. case `sed -n '/datarootdir/ {
  19047. p
  19048. q
  19049. }
  19050. /@datadir@/p
  19051. /@docdir@/p
  19052. /@infodir@/p
  19053. /@localedir@/p
  19054. /@mandir@/p
  19055. ' $ac_file_inputs` in
  19056. *datarootdir*) ac_datarootdir_seen=yes;;
  19057. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19058. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19059. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19060. _ACEOF
  19061. cat >>$CONFIG_STATUS <<_ACEOF
  19062. ac_datarootdir_hack='
  19063. s&@datadir@&$datadir&g
  19064. s&@docdir@&$docdir&g
  19065. s&@infodir@&$infodir&g
  19066. s&@localedir@&$localedir&g
  19067. s&@mandir@&$mandir&g
  19068. s&\\\${datarootdir}&$datarootdir&g' ;;
  19069. esac
  19070. _ACEOF
  19071. # Neutralize VPATH when `$srcdir' = `.'.
  19072. # Shell code in configure.ac might set extrasub.
  19073. # FIXME: do we really want to maintain this feature?
  19074. cat >>$CONFIG_STATUS <<_ACEOF
  19075. sed "$ac_vpsub
  19076. $extrasub
  19077. _ACEOF
  19078. cat >>$CONFIG_STATUS <<\_ACEOF
  19079. :t
  19080. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19081. s&@configure_input@&$configure_input&;t t
  19082. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19083. s&@srcdir@&$ac_srcdir&;t t
  19084. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19085. s&@top_srcdir@&$ac_top_srcdir&;t t
  19086. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19087. s&@builddir@&$ac_builddir&;t t
  19088. s&@abs_builddir@&$ac_abs_builddir&;t t
  19089. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19090. s&@INSTALL@&$ac_INSTALL&;t t
  19091. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19092. $ac_datarootdir_hack
  19093. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  19094. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19095. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  19096. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  19097. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19098. which seems to be undefined. Please make sure it is defined." >&5
  19099. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19100. which seems to be undefined. Please make sure it is defined." >&2;}
  19101. rm -f "$tmp/stdin"
  19102. case $ac_file in
  19103. -) cat "$tmp/out"; rm -f "$tmp/out";;
  19104. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  19105. esac
  19106. ;;
  19107. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  19108. echo "$as_me: executing $ac_file commands" >&6;}
  19109. ;;
  19110. esac
  19111. case $ac_file$ac_mode in
  19112. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  19113. # Strip MF so we end up with the name of the file.
  19114. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19115. # Check whether this is an Automake generated Makefile or not.
  19116. # We used to match only the files named `Makefile.in', but
  19117. # some people rename them; so instead we look at the file content.
  19118. # Grep'ing the first line is not enough: some people post-process
  19119. # each Makefile.in and add a new line on top of each file to say so.
  19120. # Grep'ing the whole file is not good either: AIX grep has a line
  19121. # limit of 2048, but all sed's we know have understand at least 4000.
  19122. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  19123. dirpart=`$as_dirname -- "$mf" ||
  19124. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19125. X"$mf" : 'X\(//\)[^/]' \| \
  19126. X"$mf" : 'X\(//\)$' \| \
  19127. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19128. echo X"$mf" |
  19129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19130. s//\1/
  19131. q
  19132. }
  19133. /^X\(\/\/\)[^/].*/{
  19134. s//\1/
  19135. q
  19136. }
  19137. /^X\(\/\/\)$/{
  19138. s//\1/
  19139. q
  19140. }
  19141. /^X\(\/\).*/{
  19142. s//\1/
  19143. q
  19144. }
  19145. s/.*/./; q'`
  19146. else
  19147. continue
  19148. fi
  19149. # Extract the definition of DEPDIR, am__include, and am__quote
  19150. # from the Makefile without running `make'.
  19151. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19152. test -z "$DEPDIR" && continue
  19153. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19154. test -z "am__include" && continue
  19155. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19156. # When using ansi2knr, U may be empty or an underscore; expand it
  19157. U=`sed -n 's/^U = //p' < "$mf"`
  19158. # Find all dependency output files, they are included files with
  19159. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19160. # simplest approach to changing $(DEPDIR) to its actual value in the
  19161. # expansion.
  19162. for file in `sed -n "
  19163. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19164. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  19165. # Make sure the directory exists.
  19166. test -f "$dirpart/$file" && continue
  19167. fdir=`$as_dirname -- "$file" ||
  19168. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19169. X"$file" : 'X\(//\)[^/]' \| \
  19170. X"$file" : 'X\(//\)$' \| \
  19171. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19172. echo X"$file" |
  19173. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19174. s//\1/
  19175. q
  19176. }
  19177. /^X\(\/\/\)[^/].*/{
  19178. s//\1/
  19179. q
  19180. }
  19181. /^X\(\/\/\)$/{
  19182. s//\1/
  19183. q
  19184. }
  19185. /^X\(\/\).*/{
  19186. s//\1/
  19187. q
  19188. }
  19189. s/.*/./; q'`
  19190. { as_dir=$dirpart/$fdir
  19191. case $as_dir in #(
  19192. -*) as_dir=./$as_dir;;
  19193. esac
  19194. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  19195. as_dirs=
  19196. while :; do
  19197. case $as_dir in #(
  19198. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  19199. *) as_qdir=$as_dir;;
  19200. esac
  19201. as_dirs="'$as_qdir' $as_dirs"
  19202. as_dir=`$as_dirname -- "$as_dir" ||
  19203. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19204. X"$as_dir" : 'X\(//\)[^/]' \| \
  19205. X"$as_dir" : 'X\(//\)$' \| \
  19206. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19207. echo X"$as_dir" |
  19208. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19209. s//\1/
  19210. q
  19211. }
  19212. /^X\(\/\/\)[^/].*/{
  19213. s//\1/
  19214. q
  19215. }
  19216. /^X\(\/\/\)$/{
  19217. s//\1/
  19218. q
  19219. }
  19220. /^X\(\/\).*/{
  19221. s//\1/
  19222. q
  19223. }
  19224. s/.*/./; q'`
  19225. test -d "$as_dir" && break
  19226. done
  19227. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19228. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  19229. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  19230. { (exit 1); exit 1; }; }; }
  19231. # echo "creating $dirpart/$file"
  19232. echo '# dummy' > "$dirpart/$file"
  19233. done
  19234. done
  19235. ;;
  19236. esac
  19237. done # for ac_tag
  19238. { (exit 0); exit 0; }
  19239. _ACEOF
  19240. chmod +x $CONFIG_STATUS
  19241. ac_clean_files=$ac_clean_files_save
  19242. # configure is writing to config.log, and then calls config.status.
  19243. # config.status does its own redirection, appending to config.log.
  19244. # Unfortunately, on DOS this fails, as config.log is still kept open
  19245. # by configure, so config.status won't be able to write to it; its
  19246. # output is simply discarded. So we exec the FD to /dev/null,
  19247. # effectively closing config.log, so it can be properly (re)opened and
  19248. # appended to by config.status. When coming back to configure, we
  19249. # need to make the FD available again.
  19250. if test "$no_create" != yes; then
  19251. ac_cs_success=:
  19252. ac_config_status_args=
  19253. test "$silent" = yes &&
  19254. ac_config_status_args="$ac_config_status_args --quiet"
  19255. exec 5>/dev/null
  19256. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19257. exec 5>>config.log
  19258. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19259. # would make configure fail if this is the last instruction.
  19260. $ac_cs_success || { (exit 1); exit 1; }
  19261. fi